With introduction of QTS 4.x:
- there are a lot of changes in QNAP's Control Panel, including the fact that "Application Servers" component is gone,
QPKGelements are available for download in the "App Center".
This causes my "Installing Optware (IPKG) on QNAP TS-210" (6,5 year old!) article to be completely outdated.
Since I went through this guide and can confirm that it is working, I will be enough nasty to copy-paste that article here (removing stuff not related to QNAP TS-210 and fixing some bugs).
To go through these steps you need a shell access to your QNAP. Using the PuTTY is the most obvious answer.
Create the required directories:
mkdir -p /share/MD0_DATA/optware/opt mkdir /share/MD0_DATA/optware/ipkglib cd /; ln -sf /share/MD0_DATA/optware/ipkglib /usr/lib/ipkg
Create a symbolic link to
rm -rf /opt cd /; ln -sf /share/MD0_DATA/optware/opt /opt
/opt is correctly symlinked:
cd / ls -la
You should see (among other results, i.e. folder contents):
opt -> /share/MD0_DATA/optware/opt/
Download and the IPKG file package:
cd /share/MD0_DATA/Download wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/unstable/ipkg-opt_0.99.163-10_arm.ipk tar -xOvzf ipkg-opt_*_arm.ipk ./data.tar.gz | tar -C / -xzvf -
Change configuration file
Add following line to the end of file:
src cs05q3armel http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable
/opt/etc/ipkg.conf file and Quit VI. Hit Esc, type
:qw and confirm with Enter.
Update the package list:
You should see:
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/Packages Updated list of available packages in /opt/lib/ipkg/lists/cs05q3armel Successfully terminated.
Do this by installing Midnight Commander:
cd /share/MD0_DATA/optware /opt/bin/ipkg update /opt/bin/ipkg install slang /opt/bin/ipkg install mc --tmp-dir=/share/MD0_DATA/
Run Midnight Commander:
Alter path to lift the need of providing full paths:
You will have to repeat some steps after each reboot of QNAP. To handle this we will modify autorun script.
mount /dev/mtdblock5 -t ext2 /tmp/config cd /tmp/config
Add following lines to the end of file:
rm -rf /opt ln -sf /share/MD0_DATA/optware/opt /opt echo "export PATH=$PATH:/opt/bin:/opt/sbin" >> /etc/profile
autorun.sh file and Quit Vi. Hit Esc, type
:qw and confirm with Enter.
autorun.sh executable and unmount it (very important!):
chmod +x autorun.sh cd / umount /dev/mtdblock5
For some reason sometimes Vi prevents you from modifying
autorun.sh, opening it in some kind of weird read-only mode. You can avoid this by editing this file in
mcedit that ships with Midnight Commander (assuming you did Optware verification and installed it).
That's all folks! Reboot your QNAP to see, if everything works just fine after restart.
More details and some additional information can be found in the original article.