Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old July 18th, 2007   #1
handband2
Gee! These Aren't Roasted!
 
handband2's Avatar
 
Join Date: Feb 2006
Location: U.S.A & Brazil
Beans: 176
Ubuntu 8.04 Hardy Heron
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.
handband2 is offline   Reply With Quote
Old November 23rd, 2007   #2
llnk
First Cup of Ubuntu
 
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
llnk is offline   Reply With Quote
Old November 23rd, 2007   #3
Blind Tiger
Just Give Me the Beans!
 
Join Date: Sep 2007
Location: Portland, OR
Beans: 69
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?
__________________
--with respect, always--

Last edited by Blind Tiger; November 28th, 2007 at 03:36 AM..
Blind Tiger is offline   Reply With Quote
Old November 29th, 2007   #4
accog
First Cup of Ubuntu
 
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?
accog is offline   Reply With Quote
Old April 26th, 2008   #5
sean...
First Cup of Ubuntu
 
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.
sean... is offline   Reply With Quote
Old April 27th, 2008   #6
handband2
Gee! These Aren't Roasted!
 
handband2's Avatar
 
Join Date: Feb 2006
Location: U.S.A & Brazil
Beans: 176
Ubuntu 8.04 Hardy Heron
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
handband2 is offline   Reply With Quote
Old July 11th, 2009   #7
jspraggett
First Cup of Ubuntu
 
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
jspraggett is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:29 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry