Phase 4 of D-Link DNS-323 hacking - Running Optware

I'm using the DNS-323 primarily for automated backups, and making Git backups is part of this. The fonz fun plug (ffp) has a lot of stuff on it (rsync, lighttpd), but I didn't see Git. So I was looking to add Git via Optware.

I was able to add Optware, but the Git version couldn't clone across ssh nor rsync. Cloning across the git protocol did, however work. But I'll likely just use the rsync client to get my Git repositories. Git seems to work fine if the repo came via a plain rsync client.

root:/mnt/HD_a2/tmp# git clone ssh://root@192.168.1.108/tmp/gitTest

Initialized empty Git repository in /mnt/HD_a2/tmp/gitTest/.git/

fatal: The remote end hung up unexpectedly

Anyway, here are some notes on installing Optware :

http://wiki.dns323.info/howto:optware

cd /mnt/HD_a2/

mkdir ipkg

cd ipkg

wget http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable/ipkg-opt_0.99.163-10_arm.ipk

tar -xzf ipkg-opt_0.99.163-10_arm.ipk ./data.tar.gz

tar -xzf data.tar.gz

mkdir -p /opt

mount --bind /mnt/HD_a2/ipkg/opt /opt

export PATH=/opt/bin:/opt/sbin:$PATH

echo src dns323 http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable >> /opt/etc/ipkg.conf

ipkg update

To make /opt survive a reboot, add this to bottom of /mnt/HD_a2/fun_plug :

mkdir -p /opt
mount --bind /mnt/HD_a2/ipkg/opt /opt

Put this into your ~/.profile

export PATH=/opt/bin:/opt/sbin:$PATH

There after, ipkg operates much like aptitude or yum. All the dependencies
for a given package are installed for you. For example, let's install Git.

root:/mnt/HD_a2# ipkg list | grep git

digitemp - 3.6.0-1 - Reads 1-Wire Temperature sensor (http://www.digitemp.com)
git - 1.6.4-1 - GIT is a directory tree content manager that can be used for distributed revision control.
git-manpages - 1.6.4-1 - manpages of git
...

root:/mnt/HD_a2# ipkg install git

Installing git (1.6.4-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable/git_1.6.4-1_arm.ipk
package git suggests installing git-manpages
Installing zlib (1.2.3-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable/zlib_1.2.3-3_arm.ipk
Installing openssl (0.9.7m-5) to root...
...
Successfully terminated.

root:/mnt/HD_a2# git --version
git version 1.6.4

Categories: