Hamachi
From Guides
Image:Hamachi.png
Hamachi
Contents |
Installation
- Create a device node.
mkdir /dev/net mknod /dev/net/tun c 10 200
- Run 'make install' and then 'tuncfg' from under the root account
make install tuncfg
- Run 'hamachi-init' to generate crypto identity (any account).
hamachi-init
- Run 'hamachi start' to launch Hamachi daemon.
hamachi start
- Run 'hamachi login' to put the daemon online and to create an account.
hamachi login
- Run 'hamachi join <network>' to join the network.
hamachi join
- Run 'hamachi go-online <network>' to go online in the network.
hamachi go-online <network>
- Run 'hamachi get-nicks' to fetch nicknames from network.
hamachi get-nicks
- Run 'hamachi list' to list network members and their status.
hamachi list
Automatic Startup
- Important
- You might need to move your config location.
mv ~/.hamachi /opt/hamachi/conf
You can use the -c parameter with hamachi to point to the new config location.
- Create a shell script to boot hamachi.
vi /etc/init.d/hamachi.sh
- Add some commands to be able to boot hamachi.
/sbin/tuncfg /usr/bin/hamachi start -c /opt/hamachi/conf/ /usr/bin/hamachi login -c /opt/hamachi/conf/
- Create a symbolic link in the rc#.d directory. Choose according to runlevel.
ln -sf /etc/init.d/hamachi.sh S99hamachi
