Autostart Hamachi in Ubuntu 8.10
Recently I've been playing around with Hamachi and creating a Vitural Private Network. I highly recommend creating your own "VPN", weather you can create your own server, or use a centralized server like Hamachi.
Anyways, having a secure VPN allows you to do a lot of things easily and freely, like remote desktop, private file sharing, and company/family intranets. Ubuntu + Hamachi + Skype Linux 2.0 combination will allow you to do a lot of cool things. One tricky part is getting Hamachi to start automatically for Ubuntu. Well, after digging the web, it's actually quite simple:
Step 1. First thing to do is to download and install Hamachi. Run through the README, and create your own network, or join an existing network.
Step 2. Create the start-up script for hamachi, as shown below. Remember to change the username at (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=username
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
Step 3. Make the script executable:
chmod +x hamachi
Step 4. Move the script to /etc/init.d/ directory:
sudo mv hamachi /etc/init.d
Step 5. Finally, link the script to the appropriate run-level for booting up the system:
sudo ln -s /etc/init.d/hamachi /etc/rc2.d/S99hamachi
sudo ln -s /etc/init.d/hamachi /etc/rc2.d/K99hamachi
Step 5. Now your system will log into your local VPN at startup.
Now you got yourself a nice secure private network address and I'll show you what you can do with it next.
References:
http://ubuntuforums.org/showthread.php?t=550914


Recent comments
1 week 4 days ago
8 weeks 6 days ago
11 weeks 2 hours ago
16 weeks 10 hours ago
19 weeks 1 day ago
19 weeks 1 day ago
22 weeks 1 day ago
26 weeks 1 day ago
26 weeks 5 days ago
32 weeks 1 day ago