Difference between revisions of "Hamachi"

From MineOS Wiki
Jump to navigation Jump to search
Line 19: Line 19:
 
== Download the Hamachi sources ==
 
== Download the Hamachi sources ==
  
Next, using the [[Ports system]],  download the Hamachi source code.  It can be located at <tt>/usr/ports/lennart/hamachi</tt>. This task must be done as '''root'''. If the directory does not exist, visit the [[Ports system]] page for instructions on how to download the ports filestructure.
+
Next, using the [[Ports system]],  download the Hamachi source code.  It can be located at <tt>/usr/ports/lennart/hamachi</tt>. This task must be done as '''root'''. For more information about the ports system, read the [[Ports system|ports wiki page]] page for instructions on how to download the ports filestructure.
  
 
{{executeasroot
 
{{executeasroot

Revision as of 16:51, 8 May 2012

Hamachi is often used to circumvent various limitations in router configuration and other network restrictions, such as being behind an organization's firewall. Hamachi is not recommended over typical processes of using port-forwarding, but in some circumstances may be required.

Following is a reformatted guide based on the Google Groups thread on Is there any way to get hamachi working on MineOS CRUX.

Upgrade your kernel

As of this writing, the most recent stable kernel is 3.3.3, which you can get from kernel.org. While you may download more recent versions of the kernel, it is advised to only download a stable kernel--rather than the mainline kernel--to avoid complications.

You can follow more detailed instructions on this step on the wiki page Upgrading the Kernel.

The relevant part to add is listed under FireWire support:

CONFIG_TUN: Universal TUN/TAP device driver support
# IEEE 1394 (FireWire) support
#
# CONFIG_TUN is not set

Download the Hamachi sources

Next, using the Ports system, download the Hamachi source code. It can be located at /usr/ports/lennart/hamachi. This task must be done as root. For more information about the ports system, read the ports wiki page page for instructions on how to download the ports filestructure.

build issues

Depending on the recentness of the port's maintenance, a build issue might arise reporting footprint mismatch.

=======> Build result:
drwxr-xr-x  0 root   root        0 Apr 21 14:41 usr/
drwxr-xr-x  0 root   root        0 Apr 21 14:41 usr/bin/
drwxr-xr-x  0 root   root        0 Apr 21 14:41 usr/sbin/
-rwxr-xr-x  0 root   root     8060 Apr 21 14:41 usr/sbin/tuncfg
-rwxr-xr-x  0 root   root   331144 Apr 21 14:41 usr/bin/hamachi
lrwxrwxrwx  0 root   root        0 Apr 21 14:41 usr/bin/hamachi-init -> /usr/bin/hamachi
=======> ERROR: Footprint mismatch found:
MISSING   drwxr-xr-x      root/root       sbin/
MISSING   -rwxr-xr-x      root/root       sbin/tuncfg
NEW       drwxr-xr-x      root/root       usr/sbin/
NEW       -rwxr-xr-x      root/root       usr/sbin/tuncfg
=======> ERROR: Building '/usr/ports/lennart/hamachi/hamachi#0.9.9.9-20-lnx-2.pkg.tar.gz' failed.

-- Packages where install failed
hamachi

If this should occur, you can safely ignore this issue with the build argument pkgmk -d -i -if for ignore footprint. This should allow it to properly build and install.

Initializing Hamachi

<syntaxhighlight> mc:~/ $ sudo hamachi-init Initializing Hamachi configuration (/root/.hamachi). Please wait ..

 generating 2048-bit RSA keypair .. ok
 making /root/.hamachi directory .. ok
 saving /root/.hamachi/client.pub .. ok
 saving /root/.hamachi/client.pri .. ok
 saving /root/.hamachi/state .. ok

Authentication information has been created. Hamachi can now be started with 'hamachi start' command and then brought online with 'hamachi login'. </syntaxhighlight>

Starting Hamachi

<syntaxhighlight> mc:~/ $ sudo hamachi-init Starting Hamachi hamachi-lnx-0.9.9.9-20 .. ok </syntaxhighlight>