Jan 04
凡是在后台偷偷摸摸启动还关闭不了的程序都是垃圾程序。
下面附上关闭阿里服务的批处理文件:
@echo off
rem 将“Alipay payment client security service”停止
sc stop pcas
rem 将“Alipay security business service”停止
sc stop secbizsrv
rem 将“TBSecSvc”停止
sc stop TBSecSvc
rem 将“pcas”的启动方式设为禁用
sc config pcas start= disabled
rem 将“secbizsrv”的启动方式设为禁用
sc config secbizsrv start= disabled
rem 将“TBSecSvc”的启动方式设为禁用
sc config TBSecSvc start= disabled
pause
删除C:\Program Files (x86)\TaobaoProtect文件夹。
删除C:\Users\Chu\AppData\文件夹下所有与Alibaba相关的文件夹。
Jan 02
直接编辑 profile 文件
$ sudo vim /etc/profile
在最后,添加:
export PATH="/usr/local/texlive/2015/bin/armhf-linux:$PATH"
保存,退出,然后运行:
$ sudo source /etc/profile
或者
$ sudo vim /etc/bash.bashrc
在最后,添加:
PATH=/usr/local/texlive/2015/bin/armhf-linux/:$PATH; export PATH
MANPATH=/usr/local/texlive/2015/texmf-dist/doc/man:$MANPATH; export MANPATH
INFOPATH=/usr/local/texlive/2015/texmf-dist/doc/info:$INFOPATH; export INFOPATH
单独添加 INFOPATH 环境变量
$ sudo vim /etc/manpath.config
MANPATH_MAP /usr/local/texlive/2015/bin/armhf-linux /usr/local/texlive/2015/texmf-dist/doc/man
参考资料:http://askubuntu.com/questions/60765/how-do-i-add-a-directory-to-manpath-or-infopath
Dec 25
中科院 CASLYXThesis 模板注释非常详细,比较适合我们这些新手使用。但是模板在总目录里面有致谢、目录、插图目录和表格目录,好多以此模板为基础的修改版都没有去掉目录中的目录。在 CTeX 论坛上咨询后得到了解决的办法,现分享出来。
\def\@schapter#1{
% \addtocontents \addcontentsline
% \addtocontents{toc}{\protect\addvspace{6\p@}}
\addcontentsline{toc}{chapter}{#1}%
\@makeschapterhead{#1}%
\@afterheading
}
原模板的下载地址为:http://code.google.com/p/cas-lyx-template/。
Dec 25
1.服务端安装
Debian / Ubuntu 系统:
apt-get install python-pip
pip install shadowsocks
2.修改配置文件
/etc/shadowsocks.json
{
"server":"my_server_ip",
"server_port":8388,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"mypassword",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}
3.测试配置文件
ssserver -c /etc/shadowsocks.json
如果没有错误提示就可以在后端运行了:
ssserver -c /etc/shadowsocks.json -d start
终止运行:
ssserver -c /etc/shadowsocks.json -d stop
参考资料:https://github.com/shadowsocks/shadowsocks/wiki/Configuration-via-Config-File
Dec 21
前面在《Raspberry Pi搭建打印服务器》一文中记录了在 Raspberry Pi 搭建打印机的全过程,稳定运行了好久,昨天因为断电,导致重启后出现错误:
USB printer stopped working: "/usr/lib/cups/backend/hp failed
解决方法如下:
1.访问 https://192.168.1.110:631/printers/HPPrinter
2.Administrator-HPPrinter-Manage Printers-“Resume Printer”,然后出入管理员帐号和密码就可以了。
Recent Comments