Archive for the 'TechNote' Category

Gnome SSH Tunnel Manager

推荐个小工具,ubuntu下蛮好用:
http://sourceforge.net/projects/gstm/

gSTM is a front-end for managing SSH-tunneled port redirects. It stores tunnel configurations in a simple XML format. The tunnels (local, remote and dynamic) can be managed and individually started/stopped through one simple interface.

FreeBSD / filesystem full

一台机器提示/var filesystem full。

df -hi 查看,剩余空间和inode都未满(空间几乎满了)。

之前crash了,正在fsck。

tail /var/log/messages 发现试图做snapshot失败,提示手工fsck。

把/var 下面的无关紧要的东西挪了一点出来。
重新fsck,这次ok了。囧。

总结:/var 还是多留点空间,至少留出能做snapshot的空间来。

Remove all RC files as listed in dpkg

dpkg -l | grep ^rc | cut -d’ ‘ -f3| sudo xargs dpkg -P