2008年2月19日 星期二

Install centrally-managed VPN system, hamachi on Ubuntu

1. load IP tunneling module

sudo modprobe tun

also, you can add tun to the list of modules which are loaded while booting

sudo vi /etc/modules

2. make sure if a valid tunnel has been created

ls /dev/net/tun

if you get a "No Such File or Directory" error, you need to create a new node

sudo mkdir /dev/net
sudo mknod /dev/net/tun c 10 200

4. download hamachi from https://secure.logmein.com/ then extract it

tar -zxvf hamachi-0.9.9.9-20-lnx.tar.gz

5. install hamachi and tuncfg must always be ran to get the interface up and working while hamachi is running

sudo make install
sudo tuncfg

6. set socket permissions

sudo chmod 766 /var/run/tuncfg.sock

7. by running hamachi-init, it will make a configuration directory under your home directory by default.

hamachi-init

8. the hamachi binary is compressed with upx. try unpacking it if nothing happens when you start hamachi

sudo apt-get install upx-ucl-beta
sudo upx -d hamachi

8. For easier use, download and install the GUI for hamachi linux from http://hamachi-gui.sourceforge.net/

2008年2月1日 星期五

Install KTorrent with WebGUI on Ubuntu

1. ktorrent needs php executable path to show web interface so you have to install php command-line interpreter as well

sudo apt-get install php5-cli ktorrent

2. go to Settings / Plugins to load Web Interface plugin first

3. switch to WebInterface Options. if php executable path field shows "Php executable isn't in default path, please enter the path manually" or the light color is red, just set the path to /usr/bin/php then it'll turn green.