How to use LogMeIn under Linux

For my Remote Pair Programming session with Alexandru Bolboaca, I wanted to work on our actual code, not toy programs. It was hard finding a technical solution to allow this (despite the many suggestions I received on Twitter; the biggest issue is sharing the entire development environment), but I finally settled on LogMeIn. LogMeIn basically lets you create an ad hoc VPN with them serving as a middle man. The great thing with it is that all the configuration is done on the client machines. There is nothing to change on firewalls (especially important for the other people that you are working with).

LogMeIn has a download that seems very simple to use… as long as you are under Windows. It also has a Mac OS X version and a Linux version, but they hardly come with any documentation. What’s worse, it is hard to find additional information on the support site.

So, for your eyes only, here are some instructions on how to get LogMeIn to run under Linux. (this applies only to the client machine; setting up the network can be done entirely on LogMeIn’s website)

The worlds network

My configuration: Ubuntu 10.04 Lucid Lynx 64 bits with LogMeIn Hamachi 2.0.0.11-1. (Hamachi is a protocal that creates a VPN that goes through their servers)

  1. First, create a login on http://www.logmein.com/
  2. Install their Linux client. Just double-clicking it after download should be enough.
  3. Configure the client in the command line :
    1. hamachi login
    2. hamachi attach <your email on logmein>
    3. hamachi set-nick <a human-readable user name for you; any should do>
    4. hamachi do-join <id of the VPN previously created on LogMeIn>
      • The password is the one specified by the domain creator. This is not the password for your login.
  4. Wait for domain creator to approve your machine on the virtual network (you might need to send an email to remind her of that)

Done! From that point, you can use VNC or anything else to connect to a remote computer. Use something like ifconfig on the remote computer and use the IP address under the ham0 entry (ham is for Hamachi, obviously). The IP address has an unusual value such as 5.18.76.84.

About Eric Lefevre-Ardant

Member of the PolySpot Tech Team.
This entry was posted in pair programming. Bookmark the permalink.

7 Responses to How to use LogMeIn under Linux

  1. Mark Dwyer says:

    Thanks for this introduction to hamachi. I am interested in trying hamachi because I just wiped out my system when upgrading to 10.04. The linux browser plugin for logmein (pro) no longer seems to be on the labs page. (The plugin you are referring to is the hamachi plugin, I assume.) So I am looking at a vpn. I installed lsb from the ubuntu distribution, and then the hamachi deb package. I created the file:

    /var/lib/logmein-hamachi/h2-engine-override.cfg

    with the line
    Ipc.User

    and restarted the deamon:

    sudo /etc/init.d/logmein-hamachi restart

    as instructed by hamachi when I tried hamachi login as a regular user.

    The trouble I am having is with hamachi attach. I receive the reply
    Sending attach request to without networks .. failed, not found.
    Any ideas?

    Thanks.

  2. baligh says:

    COOOOOOOOOOOOOOOL man,
    I have tried it, and it’s really nice, I can create my network, that contain different other PC, from other network, no metter if there a firewall or not, it’s working !!!

    I like it.

  3. Pingback: » LogMeIn VPN; PullMeHairOut on Ubuntu Linux Sagas

  4. mike says:

    hey im pretty new to linux (just got natty) and im trying to set up logmein. What does mark mean when he says:

    with the line
    Ipc.User

    ?

  5. @mike I think he just means that the file h2-engine-override.cfg should only have “Ipc.User” for content.

  6. dhunt84971 says:

    Very nice. I feel like a moron not thinking of this solution before. Thanks!

  7. Sebastian says:

    At /var/lib/logmein-hamachi/h2-engine-override.cfg
    you need to add both paths as in:
    user1@host:~$ cat /var/lib/logmein-hamachi/h2-engine-override.cfg
    Ipc.User user1
    Ipc.User user1
    .
    .
    .
    .
    Regards

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>