I have an outdated but still going strong Synology DS107e NAS installed in my home network. This NAS runs Synology’s DSM 3.1, it is a stripped down Busybox linux. Unfortunately, this version of DSM has removed ipkg package management tools. So in order to install any 3rd party tools or extend box’s functionalities, we have to install the ipkg.
First step, we have to enable the SSH to the NAS. This can be easily done via DSM’s web interface: Control Panel -> Terminal -> Enable SSH service.
Next, we need to log in the NAS via SSH, then run the following command:
cd /tmp wget http://ipkg.nslu2-linux.org/feeds/optware/ds101g/cross/stable/ds101-bootstrap_1.0-4_powerpc.xsh chmod +x ds101-bootstrap_1.0-4_powerpc.xsh ./ds101-bootstrap_1.0-4_powerpc.xsh
This script will run successfully to setup ipkg, openssl etc. at /opt, however it will fail at the end with wget-ssl with errors complaining: missing libidn package. As a result of this error, ipkg will not work correctly since it will use wget from DSM to retrieve package, which can not redirect the result to the location ipkg expected, so ipkg will faile to find the downloaded packages and install them.
The solution is to download wget package manually and also fix root user’s PATH to use commands from /opt/bin and /opt/sbin first. First, we need to fix the wget-ssl install issue:
cd /tmp/bootstrap wget http://ipkg.nslu2-linux.org/feeds/optware/ds101g/cross/stable/wget_1.12-2_powerpc.ipk ipkg install wget_1.12-2_powerpc.ipk ipkg update
ipkg install libidn
ipkg remove wget
ipkg install wget-ssl.ipk
ipkg update
This should fix the wget issues and make ipkg works correctly. Now we need to make root user login with the correct PATH order:
vi /root/.profile
and change the PATH to look like below:
PATH="$PATH:/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin:"
Now, we done, ipkg should be installed on the NAS. We can now use ipkg to install 3rd party packages, like openssh, bash, vim, openvpn etc.
Resources: