Install Hamachi on a Raspberry Pi (Raspbian)

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.

Assumptions

  • Raspberry Pi 2B, Running Raspbian Jessie

Steps

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_2.1.0.139-1_armel.deb

Force install even though there may be architecture and dependency mismatches

sudo dpkg --force-architecture --force-depends -i logmein-hamachi_2.1.0.139-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 yourlogmein@accountemail.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

Conclusion

The above steps will get your Raspberry Pi configured with Hamachi. Enjoy the secure access from anywhere!

11 Comments

  1. Thank you so much for sharing this!
    I got Hamachi working on my Pi 3 model B. I used the same Hamachi version as you did.
    I was looking for a guide to install Hamachi on Pi so i did read another guide too. But it said “Hamachi on Pi 3, almost impossible”.
    But this guide, helped me to get Hamachi on Pi 3. Why? Because you need that “force” thing mentioned by the publisher.
    And again, thanks for sharing this.

    1. would you share your experience? I am trying the same on rPi 3 with no success… it says
      pi@raspberrypi:~ $ /etc/init.d/logmein-hamachi start
      Starting LogMeIn Hamachi VPN tunneling engine logmein-hamachialready running

      starting – success

      but I am not able to attach my account!!

      if you have any ideas let me know 🙂

      peace

  2. sudo apt-get update
    # I added the next two lines to my process
    sudo apt-get upgrade
    sudo apt-get clean
    sudo apt-get install –fix-missing lsb lsb-core
    # The next line differs from the above instructions – Both the file version and the URL
    sudo wget https://www.vpn.net/installers/logmein-hamachi_2.1.0.174-1_armel.deb
    dpkg –force-architecture –force-depends -i logmein-hamachi_2.1.0.174-1_armel.deb
    sudo hamachi login
    sudo hamachi set-nick “rPI”
    sudo hamachi attach yourlogmein@accountemail.com

    You then need to login to LogMeIn and look for the message that “You have 1 pending join request” and accept the request. The go to My Networks and there will rPi at the bottom. select it, then edit it and connect it to your network.

    I have a paid subscription. Maybe this makes a difference.

  3. On the Raspberry 3 there’s no need for the lsb packages, and the hamachi client uses the armhf architecture, so there’s no need to force architectures nor packages, everything works fine.

      1. i meant the HF deb package… not the EL package.

        I have it running and everything, i sent a request to my account. it even says “pending”, but nothing is showing up on the LMI website about any pending requests.

        Do you have to have more than the free “PRO” account to make this work?

        1. nm i got it. it was in the networks tab. So yeah, with the RPI 3, you don’t need to do anything special. It’s pretty straight forward.

Leave a Comment

Your email address will not be published. Required fields are marked *