martedì 17 aprile 2012

Free Hamachi GUI Client for Linux

(tested on Slackware, Slackware64, Ubuntu; not tested, but it should work well also on Debian, Fedora, RedHat, SuSE, etc...)
version 1.5 available (new)

You need LogMeIn Hamachi², which is not open-source, but free in some circumstances according to the license.
Slackware users can download SlackBuild from here and
$ tar xfv hamachi_slackbuild.tar.gz
$ cd hamachi_slackbuild
$ su
# ./hamachi.SlackBuild
# upgradepkg --reinstall --install-new /tmp/hamachi- # currently
(Every line is without initial $ or #)

Other distribution users Install package for their distribution from here  after having installed lsb version 3 or higher.

Making hamachi usable from your user
If you want to manage hamachi features from a user different from root, you have to list it into hamachi configuration. To do so, run the following commands from a shell.
$ USERNAME=`whoami` su -p
# printf "Ipc.User   ${USERNAME}\n" >> /var/lib/logmein-hamachi/h2-engine-override.cfg
(Without initial $ or #)

Making hamachi usable behind an http proxy
If you are behind a proxy server (i.e. you can add these lines in the same file /var/lib/logmein-hamachi/h2-engine-override.cfg with your preferred text editor as super user:

Conn.PxyPort        3128
Conn.PxySave        1
Conn.Mask           4
Conn.DisableUpnp    1
Core.AutoLogin      1
Login.OnLaunch      1

Remember to restart hamachi service after having changed configuration in order to have that configuration working.
Notice that the connection mask Conn.Mask without proxy has to be set to 7.

Install Quamachi2
Download Quamachi 2 (for python2).
Quamachi2 (1.5)(new) (Slackware and Slackware64)

Choose the package which best fit your distribution (Ubuntu/Debian .deb and RedHat .rpm are available) or directly download source code from here.

It is an open source GUI for hamachi which is compatible with python2. If you do not know if you just have these packages installed, I suggest you to use the command (from super user, as suggested by #):
# upgradepkg --install-new *.txz
in order to upgrade an eventually existing package, or install if you have not older versions of them.
If you are new in these things, read below.

Install both hamachi and quamachi2 in at least 2 hosts, we consider 2 hosts in this quickstart.

Run hamachi service (from super user or root) in each host:
# chmod +x /etc/rc.d/rc.hamachi
# /etc/rc.d/rc.hamachi start
Now run quamachi2 (you could find it in the application list under Applications). From gray, system tray icon should turn coloured. Open main window of quamachi2 by clicking once icon which lies in system tray.

On host1. Right click to (empty) list and choose "Create".
Just use a unique network name, like "mypersonalnet5234"; choose any password you want, like "abc".

On host2. Right click to (empty) list and choose "Join".
Use in this case the sanme name "mypersonalnet5234" and the same password "abc".

Now both hosts should recognize each other. Try to ping them or open some known service as both were in a real private network.

I have to say thanks to all SlackBuilds community, of which I am a little working contributor.

1 commento:

  1. Interesting post and thanks for sharing. Some things in here I have not thought about
    before.Thanks for making such a cool post which is really very well written.
    will be referring a lot of friends about this.Keep blogging.