I guess most of you know what VPN is and how it may be useful for you. Among different VPN solutions, Hamachi seems to be the most popular and easy to use for home users. You can easially install it in Windows or Mac and create/join VPN network just in a few clicks. Under Linux, however, things are going less smoothly.
First, it is not open source 🙁 However, you can download binaries for Linux for free: http://files.hamachi.cc/linux/ (x86 version only). If by some reason you cannot download files from Hamachi ftp, you can try my blog file storage.
So, download the file hamachi-0.9.9.9-20-lnx.tar.gz to your machine and untar it. Read readme file and perform the installation:
(do this as sudo)
$ sudo apt-get install ia32-libs $ sudo make install $ sudo tuncfg
(do this as regular user)
$ hamachi-init $ hamachi start $ hamachi login
Now you have a choice. You can either use Hamachi via command line (check README file) or you can download a GUI tool which replicates the UI of a Windows version: hamachi-gui. Download file hamachi-gui_0.9.5-0_i386-gutsy.deb or hamachi-gui_0.9.5-0_amd64-gutsy.deb depending on architecture of your distribution and install it using dpkg -i command, i.e.:
$sudo dpkg -i hamachi-gui_0.9.5-0_amd64-gutsy.deb
Now search “Hamachi” in your program list in section “Internet”. You can do most of the things you can do in Windows version: create networks, join networks, modify your computer name, etc.
However, if you reboot your computer, Hamachi would not autostart. You will have to manually start it via “hamachi start” each time which is quite uncomfortable 🙂 You can solve this problem by editing your /etc/rc.local file and starting there “tuncfg” as a root and “hamachi start” as a regular user:
/sbin/tuncfg /bin/su - USERNAME -c "hamachi start" exit 0
Store this in your /etc/rc.local and make sure you set USERNAME to a name of your user, and after reboot everything will be autostarted properly.