月度归档:2015年09月

LiteIDE Desktop配置

文件保存在/usr/share/applications/liteide.desktop

[Desktop Entry]
Version=27
Type=Application
Name=LiteIDE
GenericName=LiteIDE
Comment=LiteIDE is a simple, open source, cross-platform Go IDE.
Exec=/home/ning/tool/liteide/bin/liteide %F
Terminal=false
MimeType=text/plain;
Icon=/home/ning/tool/liteide/share/liteide/welcome/images/liteide400.png
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;

使用privoxy+ssh实现共享科学上网

开启端口转发

ssh -D 0.0.0.0:8888 sshuser@sshhostip -N -f

privoxy配置

vim /etc/privoxy/config

# 配置端口
listen-address  0.0.0.0:8090 # 端口为8090
# 配置所有配置转发
forward / 127.0.0.1:8888 .
# 局域网不转发
forward 192.168.*.*/ .
forward 10.*.*.*/ .
forward 127.*.*.*/ . 

开机自动启动privoxy

chkconfig privoxy on
service privoxy start