Results 1 to 9 of 9

Thread: Howto: Hamachi - User Install

  1. #1
    Join Date
    Feb 2006
    Location
    U.S.A & Brazil
    Beans
    180
    Distro
    Ubuntu 12.04 Precise Pangolin

    Howto: Hamachi - User Install

    I created this for the Hamachi Forums. Also I would like to thank KingOfNowhere for his earlier post on installing hamachi.



    I'm not sure if this will help but I like to install hamachi to specific users. This is how I always get it working:

    Code:
    $ sudo modprobe tun
    Code:
    $ sudo gedit /etc/modules
    add tun.
    save and close.

    Now run the following:
    Code:
    $ ls /dev/net/tun
    You should get "/dev/net/tun"
    If you don't then do the following:
    Code:
    $ sudo mkdir /dev/net
    Code:
    $ sudo mknod /dev/net/tun c 10 200
    Download the newest hamachi version from http://files.hamachi.cc/linux/ or
    Code:
    $ wget wget http://files.hamachi.cc/linux/hamachi-0.9.9.9-20-lnx.tar.gz
    Extract hamachi
    Code:
    $ tar -zxvf hamachi-0.9.9.9-20-lnx.tar.gz
    Move into hamachi directory
    Code:
    $ cd hamachi-0.9.9.9-20-lnx/
    Install hamachi
    Code:
    $ sudo make install
    Start tuncfg
    Code:
    $ sudo tuncfg
    Create hamachi group
    Code:
    $ sudo groupadd hamachi
    Add myself to the hamachi group
    Code:
    $ sudo gpasswd -a handband2 hamachi
    Add root to the hamachi group
    Code:
    $ sudo gpasswd -a root hamachi
    Change file permissions for tuncfg.sock
    Code:
    $ sudo chmod 760 /var/run/tuncfg.sock
    Change the group for tuncfg.sock
    Code:
    $ sudo chgrp hamachi /var/run/tuncfg.sock
    Create RSA keypair
    Code:
    $ hamachi-init
    Start hamachi
    Code:
    $ sudo hamachi start
    Create hamachi account name
    Code:
    $ sudo hamachi set-nick handband2
    Login to hamachi network
    Code:
    $ sudo hamachi login
    Join a network
    Code:
    $ sudo hamachi join HANDBAND2
    or Create a network
    Code:
    $ sudo hamachi create HANDBAND2
    Now I add ghamachi:
    Download it from here: http://www.penguinbyte.com/software/ghamachi/
    or
    Code:
    $ wget -L http://purebasic.myftp.org/?filename=files/3/projects/hamachi/v.0.8.1/gHamachi_0.8.1.tar.gz
    Rename the downloaded file
    Code:
    $ mv index.html\?filename\=files%2F3%2Fprojects%2Fhamachi%2Fv.0.8.1%2FgHamachi_0.8.1.tar.gz gHamachi_0.8.1.tar.gz
    Extract the files
    Code:
    $ tar -zxvf gHamachi_0.8.1.tar.gz
    Move ghamachi to the /usr/bin/
    Code:
    $ sudo mv ghamachi /usr/bin/
    Make ghamachi executable
    Code:
    $ sudo chmod +x /usr/bin/ghamachi
    Download ghamchi icon
    Code:
    $ wget http://wonsheimlan.wo.funpic.de/hamachi.png
    Move icon to /usr/share/pixmaps/ folder
    Code:
    $ sudo mv hamachi.png /usr/share/pixmaps/
    Add hamachi as an application
    Code:
    $ sudo gedit /usr/share/applications/hamachi.desktop
    Add the following
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Name=Hamachi
    Exec=ghamachi %u
    Icon=/usr/share/pixmaps/hamachi.png
    Type=Application
    Categories=Application;Network;
    MimeType=text/rss;text/xml;text/php;application/rss+xml
    Comment=Instant VPN software
    After this I restart. Now when you click on hamachi, ghamachi should ask for password (which I like for security). Don't forget to right click on your network to : "go-online"

    A great program to use with hamachi: http://gnome-rdp.linuxforge.hu/
    Code:
    $ sudo apt-get install gnome-rdp
    I hope this can help.

  2. #2
    Join Date
    Nov 2007
    Beans
    10

    Re: Howto: Hamachi - User Install

    Thanks for the tutorial. I am running into a problem though. After rebooting i tried launching Hamachi from applications/internet. It prompts for the sudo password then loads the icon in the system tray. When i hit the power button on the UI it attempts to logon to Hamachi but it always fails. Does anyone know what the problem is?

    Thanks

  3. #3
    Join Date
    Sep 2007
    Location
    Portland, OR
    Beans
    70
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Howto: Hamachi - User Install

    I followed this guide (from the Hamachi forums) also. Now when I try to launch Hamachi from the Gnome menu, I get the message "Hamachi could not be started." From the command line, I have already created a nickname, joined a network that I created a while back while using XP, and I can start and login to hamachi using the command line. Also, when I login to my.hamachi.cc, my linux box nick is listed as a member, but not online. When I try to go-online from the command line, I get the response that I am not a member of the network??? Any pointers? Is it an iptables issue?
    Last edited by Blind Tiger; November 28th, 2007 at 08:36 AM.
    --with respect, always--

  4. #4
    Join Date
    Nov 2007
    Beans
    8

    Re: Howto: Hamachi - User Install

    I am having the same problem. When i try to login into hamachi via the power button I cant. Any got any ideas?

  5. #5
    Join Date
    Apr 2008
    Beans
    1

    Re: Howto: Hamachi - User Install

    I realize this topic is a bit old, but anyway...

    Hamachi works fine for me if I just start it via the terminal with
    Code:
    sudo ghamachi
    Other than that, it works great! Also, you don't need to restart your whole computer, just restart your X session with Ctrl-Alt-Backspace to finish setting up ghamachi.

  6. #6
    Join Date
    Feb 2006
    Location
    U.S.A & Brazil
    Beans
    180
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Howto: Hamachi - User Install

    sean...,

    Thanks for the feedback.

    If you need to ever install hamachi again I've written a script to do the installation. It is at the hamachi forums: https://forums.hamachi.cc/viewtopic.php?t=16590

  7. #7
    Join Date
    May 2009
    Beans
    2

    Re: Howto: Hamachi - User Install

    Hi. I want to setup a remote pc in the US as a proxy using Hamachi so that my IP will appear to be a US IP. Do you know how to do this?

    Jim

  8. #8
    Join Date
    May 2011
    Beans
    3
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Howto: Hamachi - User Install

    I get to a problem at the line:

    Code:
    sudo chmod 760 /var/run/tuncfg.sock
    I get the message: chmod: cannot access `/var/run/tuncfg.sock': No such file or directory

    Everything goes fine up to here. Anyway around this?

  9. #9
    Join Date
    Jan 2010
    Beans
    93
    Distro
    Ubuntu

    Re: Howto: Hamachi - User Install

    great threads

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •