Synology installation of ipkg DSM yum or apt-get equivalent

The reference for the first part is at http://swwiki.e-dschungel.de/synology but is in German.

First up we need a package installer, ipkg

Check the Synology device for which cpu it has,

#cat /proc/cpuinfo | grep cpu

Then select the appropriate script

CPU Bootstrap Script
ARM (armv5tejl) http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/syno-x07-bootstrap_1.2-7_arm.xsh
PowerPC (ppc_6xx) http://ipkg.nslu2-linux.org/feeds/optware/ds101g/cross/unstable/ds101-bootstrap_1.0-4_powerpc.xsh
PowerPC (ppc_85xx, e500v?) http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/syno-e500-bootstrap_1.2-7_powerpc.xsh
Marvell Kirkwood 88F6281, 88F6282, 88FR131 (ARMv5TE Feroceon) http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/syno-mvkw-bootstrap_1.2-7_arm.xsh
Intel Atom http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/cross/unstable/syno-i686-bootstrap_1.2-7_i686.xsh

and get it with

#wget http://your_selected_cpu_bootstrap_script_here

then run it with

#sh http://your_selected_cpu_bootstrap_script_here

This install ipkg, but it is not in the path for the Synology system. To add it to the path:

1. check the path

#cat /etc/profile

and this should be there

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin export PATH

extend the path to include our /opt directories with two command lines

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

Then we can test that ipkg is installed and will run from anywhere with

# ipkgv -v

Should respond with something like

# ipkg version 0.99.163

If you now try to install a package, you will get an error

#ipkg install mc
Nothing to be done
An error ocurred, return value: 4.

Which is ok, this is expected because the new install does not yet know where to look for ‘mc’

Note: ‘mc’ is just a favourite package of mine, (midnight commander, with the excellent mcedit editor) but you could try any packge you want like ‘nano’, etc.

The final step for installing ipkg is to update the repositories

# ipkg update

Then try again and as ipkg now has a repository to call on, it should find the install package and install it.

Leave a Reply

Your email address will not be published. Required fields are marked *