I've seen a few requests for this info, and I've looked for it myself. Many people use the hamachi vpn client. In windows, you can set it to start on boot. That was once a little trickier in linux, but no longer. This page at the NeoHide site worked for me on Feisty Fawn (and I posted about it on a thread here). I'm not sure if the directions originated at NeoHide or someplace else, because I've found them in a few place.
But anyway, here are the directions:
- Create the start-up script for hamachi, as shown below. Remember to change the user name "your name" (line 5) to your system user name in Ubuntu (or your linux distribution). Call the script "hamachi."
#!/bin/bash
###################################
### Start-up script for Hamachi ###
###################################
USER=your name
case "$1" in
start)
/sbin/tuncfg
/bin/su - $USER -c "hamachi start"
;;
stop)
/bin/su - $USER -c "hamachi stop"
;;
restart|force-reload)
/bin/su - $USER -c "hamachi start"
/bin/su - $USER -c "hamachi stop"
;;
*)
exit 1
;;
esac
exit 0- Make the script executable:
chmod +x hamachi- Move the script to /etc/init.d/ directory:
sudo mv hamachi /etc/init.d- Finally, link the script to the appropriate run-level for booting up the system:
sudo ln -s /etc/init.d/hamachi /etc/rc2.d/S99hamachisudo ln -s /etc/init.d/hamachi /etc/rc2.d/K99hamachiIt seems 2 is the default level for Debian and Ubuntu. In most other distribution, it is 5.- Finally, reboot your system and Hamachi will be automatically loaded and connected to the server.
Bookmarks