As I’ve mentioned on previous blog posts, I recently acquired a Raspberry Pi 2 B. Being a long time fan of the Hamachi VPN Service, I decided to try and install the Hamachi service on my new toy, so that I could securely access it no matter where it was. Unfortunately, there is no true version of Hamachi available for Linux clients (yet). The best you can do currently is grab the appropriate installation files from the LogMeIn Labs and Beta website and set things up manually. Being Beta software, your mileage may vary, and LogMeIn reserves the rights to remove these files at any time.
- Raspberry Pi 2B, Running Raspbian Jessie
First, you should update your Raspbian installation
sudo apt-get update
Then, install the pre-requisite LSB and LSB-Core files
sudo apt-get install --fix-missing lsb lsb-core
Now, you can grab the Hamachi files from LogMeIn for the ARM Processor. To find the most recent files, browse to https://secure.logmein.com/labs/#HamachiforLinux and click “Learn More” under the appropriate section, and copy the URL to the appropriate .deb file.
sudo wget https://secure.logmein.com/labs/logmein-hamachi_18.104.22.168-1_armel.deb
Force install even though there may be architecture and dependency mismatches
sudo dpkg --force-architecture --force-depends -i logmein-hamachi_22.214.171.124-1_armel.deb
After installation, tell Hamachi to log in. You may get prompted for a password.
sudo hamachi login
Set the nickname for your Raspberry Pi in the LogMeIn Console
sudo hamachi set-nick "rPI"
Attach to your account
sudo hamachi attach email@example.com
If all goes well, you should now be able to log into your LogMeIn account and see your Raspberry Pi on the list of endpoints in the Hamachi section. You will need to classify which network(s) you want your Raspberry Pi to be a member of by clicking “Edit” and then “Networks” and checking the boxes of the appropriate networks.
Congratulations, you now have Hamachi running on your Raspberry Pi, and you will be able to do things like SSH into it from any other member of your Hamachi network.
Run as a Service
On Windows, Hamachi does not run as a service unless you subscribe to a paid Hamachi account. What this means, is that if you do not pay for the service, you will have to be interactively logged into the Windows machine for Hamachi to run. However, on Linux this restriction is not in place, so you can tell Hamachi to run on reboot.
sudo update-rc.d logmein-hamachi defaults
The above steps will get your Raspberry Pi configured with Hamachi. Enjoy the secure access from anywhere!