rasti.hil@hilandco.com +41 79 367-9677

Tuesday, 23 February 2010

Install Hamachi on Oracle Unbreakable Linux 5.x

1) dowload Hamachi

wget http://files.hamachi.cc/linux/hamachi-0.9.9.9-20-lnx.tar.gz


2) unpack

tar -xvf hamachi-0.9.9.9-20-lnx.tar.gz
cd hamachi-0.9.9.9-20-lnx

3) change tuncfg

cd tuncfg
mv tuncfg tuncfg.backup
mcedit tuncfg.c

      replace

"ifconfig %s %u.%u.%u.%u ", ctx[i].dev,

      with

"/sbin/ifconfig %s %u.%u.%u.%u ", ctx[i].dev,

      recompile

gcc tuncfg.c -o tuncfg
killall tuncfg

4) install

cd ..
make install
/sbin/tuncfg

4) configure

hamachi-init -c /etc/hamachi
mcedit /etc/hamachi/config
KeepAlive 10

5) login and join to network

hamachi login
hamachi set-nick "nickname"
hamachi join "network id [numbers]"
hamachi go-online "network id [numbers]"

6) run Hamachi after boot
6.1)

mcedit /etc/init.d/hamachi_start
/usr/bin/hamachi -c /etc/hamachi start

6.2)

mcedit /etc/rc.local
/etc/init.d/hamachi_start

6.3) just in case ...

ln -s /etc/init.d/hamachi_start /etc/rc3.d/S99hamachi
ln -s /etc/init.d/hamachi_start /etc/rc5.d/S99hamachi

No comments: