Improve Synology DS409slim shell using ipkg

I own a Synology DS409slim on which I have enabled SSH. The primary idea was just to have a look behind the hoods. This is quite simple: browse to the configuration panel, select the terminal services section and active the SSH daemon.

But once there, you’re stuck with a basic shell and a few commands. No `less`, no `grep`, no `bzip2`, no `perl`… Synology provides an official packages repository that provides a few extra features ; like VPN, LDAP and such ; but not so much to get a “complete” UNIX environment. The savior here is called “ipkg”. Quoting Wikipedia: “(…) the Itsy Package Management System (ipkg), is a lightweight package management system designed for embedded devices that resembled Debian’s dpkg. (…)”. It provides a bunch a GNU-like tools and it runs on the Synology!

To install ipkg on the Synology DS409slim, you first have to know which processor it uses. The DS409slim uses the Marvell 88F6281 SoC with Sheeva Technology and ships the Marvell Kirkwood mv6281 ARM Processor. Once you know that, all you have to do is log on the Syno, grab the correct bootstrap and install it:

$ ssh root@ds409s # cd /volume1/@tmp # wget http://goo.gl/F0uTB # sh syno-mvkw-bootstrap_1.2-7_arm.xsh # rm syno-mvkw-bootstrap_1.2-7_arm.xsh # exit

Then you only have to run

# ipkg update

to synchronize your local database with the online available packages. You can learn about available packages using

# ipkg list

and/or

# ipkg search SOMETHING

. The first packages I installed were:

# ipkg install less # ipkg install grep # ipkg install man # ipkg install dstat # ipkg install hdparm # ipkg install sysstat # ipkg install procps

From there, you can get statistics informations (sysstat provides iostat, mpstat, …), read the manual pages and look for things:

# ipkg list | grep perl cups-pdf - 2.5.1-1 - CUPS-PDF provides a PDF Writer backend to CUPS. This can be used as a virtual printer in a paperless network. microperl - 5.10.0-1 - Microperl. perl - 5.10.0-6 - Practical Extraction and Report Language. perl-algorithm-diff - 1.1901-2 - Algorithm-Diff - Compute *intelligent* differences between two files / lists. perl-appconfig - 1.56-3 - Perl5 module for reading configuration files and parsing command line arguments. perl-archive-tar - 1.38-1 - Archive-Tar - The Perl Database Interface by Tim Bunce. perl-archive-zip - 1.16-3 - Archive-Zip - Provide an interface to ZIP archive files. (...)

That’s All Folks!

Source: How to install ipkg

3 Comments

  • Joel Carnat Mon, 19 Mar 2012 21:46:35 +0000 Reply

    Woops, after the upgrade to DSM 4.0, all the packages are gone.
    Edit /root/.profile and add “/opt/bin:/opt/sbin” to the PATH ; and everything is back.

  • MagicRico Sat, 28 Jul 2012 15:27:34 +0000 Reply

    Hi,
    I would like to know the procedure to configure CUPS and CUPS-PDF. I would like to print PDF from Windows and store it in my Home/Username
    Samba is already installed and configured as PDC.
    Any idea.
    Looking forward to hearing from you

Leave a Reply

%d bloggers like this: