Edit: Instructions in post 3.
So I have managed to get the beta version of hamachi2 up and running on my DS209. Should work for any of the mv6281 based machines. Caveat: This is more involved than setting up the old hamachi version for a few reasons. The first is that the hamachi files logmein has provided require LSB 3.0 or better, to which there isn't an easy ipkg file for. We can get around that of course; the real issue is that hamachi itself requires glibc 2.7 or better, and DSM (as of this writing version 3.2) only uses glibc 2.5. So unless someone wants to go ahead and try to compile up a new working glibc (I may try), we have to go about installing it this way.
First off, make sure you are bootstrapped, you should be if you are looking at this, and if not there are already instructions out there how to do that.
Second thing we need to do is create a chroot jail. This needs to be done on a PC. I followed the instructions here: http://kristof.vanhertum.be/?p=132 replacing the debootstrap version with the current 1.0.37, the distro with squeeze instead of lenny, and fixing the typo where it says atmel to be armel. I setup debian in a VM since the link to his premade chroot is long gone. http://www.multiupload.com/WF62QXL3E0 is a copy of the one I made to save you some time.
So let me start with the actual DS209 instructions with you having the chroot jail tar file on your DS209. Like that blog, I named mine chroottarget.tar.gz, and placed it into /opt. Run a tar -xzf chroottarget.tar.gz and you should have a folder named chroottarget in /opt. You can dump the tar file now if you'd like.
Run the command chroot chroottarget /debootstrap/debootstrap --second-stage in /opt to finish setting up the chroot jail. Basically what we have here now is a small debian subsystem that we can use without mucking up any of our DS209's original stuff, and with the ability to use dpkg and deb files.
These steps are copy/pasted from the blog referenced above:
"Configure the chroot environment
Copy the file /etc/resolv.conf of your NAS to your chroot environment in order to make name resolving work.
ds# cp /etc/resolv.conf chroottarget/etc/
Set the ‘hostname’ of your chroot environment (otherwise some apps will complain).
ds# echo <YourHostname> > chroottarget/etc/hostname
Bind /proc to the proc directory of your chroot environment.
ds# mount -o bind /proc /chroottarget/proc
Now it is time to chroot to your new Debian install and setup apt.
ds# chroot chroottarget /bin/bash
ds-chroot# echo "deb ftp://ftp.be.debian.org/debian stable main contrib non-free" > /etc/apt/sources.list
ds-chroot# apt-get update"
Now still from within the chroot environment you will need to apt-get install lsb-core and lsb-base, these are required for hamachi. After this, we want to grab the hamachi arm beta from https://secure.logmein.com/labs/logmein ... _armel.deb and install it with dpkg. My wget wasn't compiled with https support built in, so I had to put the file on the ds209 through DSM. Make sure you put it somewhere within the /opt/chroottarget folder, since when you are in the chroot jail, you won't see any folders outside of that. After you install hamachi it may or may not be working. Mine was not, but all I had to do to fix it was exit my chroot back into the regular DS shell and insmod /usr/lib/modules/tun.ko. Hamachi still requires tun so you'll have to make sure it's loaded outside of the chroot jail first. Then you can go back into chroot and start hamachi again and it should work.
You can enter chroot anytime with the command chroot chroottarget /bin/bash
I am still working up a startup script to make things happen on reboot, it'll take me a bit since the chroot jail adds some complexities.
In my setup it shows the ip4 and ip6 addresses in the hamachi window now and it performs better for me than the old version, as well as removing the need to have the keepalive timeout in the hamachi config file. I'll probably still try to get it working without the need for the chroot jail but for now it's what works.


