[EDIT]
revisited 05.30.08
ipkg updated to version 0.99.163
the sit-back approach updated to installation by QPKG.
***
WARNING YOU DOING IT AT YOUR OWN RISK I TAKE NO RESPONSIBILITY FOR ERRORS AND PROBLEMS BECAUSE OF DOING THIS
***
>> The Sit Back Approach >>>>>>>>>>>>>>>>>>>>>
Instruction:
For new installation:
The installation method is even simplified by install it via QPKG.
1. First update your firmware to the latest build.
2. In your 'System Tools' -> 'QPKG' page, click on 'Get QPKG' button.
3. Download 'Optware IPKG' package that matches your model.
4. Unzip the downloaded archive then install it (.qpkg file) via the 'System Update' under your 'System Tools' page.
For migration from previous install to the QPKG'ed install, please refer to here.
>> The Hands-On Approach >>>>>>>>>>>>>>>>>>>>
Name: Optware/Ipkg self installation procedures
Who: Misiek - The originator! He wrote 95% of this howto and he wishes to make a shout to his wife *Thanks to my wife for give me time for modyfing Qnaps*
Who2: Tibus -> Re-write all to make it more clearer and more readable
who3: QNAPAndy -> For points 5 & 7 and his support in general
When: 12.01.2007
1. Check the size of the root partition !
If its more then 83% it can make problems
Firstly check what is your HD partition
- Code: Select all
# df
You will see on TS-109 something like this :
- Code: Select all
/dev/ram0 8.7M 8.7M 0 100% /
/dev/sda4 58.1M 46.7M 11.4M 80% /mnt/ext
/dev/sda1 509.5M 69.3M 440.2M 14% /mnt/HDA_ROOT
/dev/sda3 457.4G 167.6M 457.2G 0% /share/HDA_DATA
On TS-209 something like this :
- Code: Select all
/dev/ram0 8.7M 6.9M 1.8M 79% /
/dev/sda4 58.1M 42.3M 15.8M 73% /mnt/ext
/dev/md9 509.5M 68.3M 441.1M 13% /mnt/HDA_ROOT
/dev/md0 457.4G 152.0G 305.3G 33% /share/MD0_DATA
So if your HD partition is HDA_DATA you use it everywhere bellow insted MD0_DATA
2. Prepare the directories to receive the ipkg install
- Code: Select all
# mkdir -p /share/MD0_DATA/big-disk/opt
# mkdir /share/MD0_DATA/big-disk/ipkglib
# cd /; ln -sf /share/MD0_DATA/big-disk/ipkglib /usr/lib/ipkg
# rm -rf /opt
# cd /; ln -sf /share/MD0_DATA/big-disk/opt /opt
Check if /opt is symlinked to /share/MD0_DATA/big-disk/opt :
- Code: Select all
# cd /
# ls -la
You should see :
- Code: Select all
opt -> /share/MD0_DATA/big-disk/opt/
3. Download and "install" ipkg
First, go to big-disk to avoid messing up free space on root partition then download and "install"
- Code: Select all
# cd /share/MD0_DATA/big-disk
# wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/unstable/ipkg-opt_0.99.163-9_arm.ipk
# tar -xOvzf ipkg-opt_*_arm.ipk ./data.tar.gz | tar -C / -xzvf -
Edit /opt/etc/ipkg.conf
- Code: Select all
# vi /opt/etc/ipkg.conf
Add the line
- Code: Select all
src mssii http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable
Update the package list :
- Code: Select all
# /opt/bin/ipkg update
You should see :
- Code: Select all
[/] # /opt/bin/ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/Packages
Updated list of available packages in /opt/lib/ipkg/lists/mssii
Successfully terminated.
If there are errors or you do not see Downloading info that means that either you did not edit ipkg.conf mentioned before or hm.
4. Install applications (mc in this example)
Change to big-disk directory cause this ipkg left some strange files which makes / partition to small, i dont know if its an error or something
(Installing mc i had some problems with slang so i needed to do it separatly)
- Code: Select all
# cd /share/MD0_DATA/big-disk
# /opt/bin/ipkg update
# /opt/bin/ipkg install slang
# /opt/bin/ipkg install mc --tmp-dir=/share/MD0_DATA/
And then to run mc
- Code: Select all
/opt/bin/mc
5. Mount /opt on every reboot
- Code: Select all
# mount /dev/mtdblock5 -t ext2 /tmp/config
# cd /tmp/config
# vi autorun.sh
Add to the following lines to the file then save and close
rm -rf /opt
ln -sf /share/MD0_DATA/big-disk/opt /opt
Make autorun.sh executable and do not forget to unmount !
- Code: Select all
# chmod 755 autorun.sh
# cd /
# umount /dev/mtdblock5
After reboot you should have everything mounted on /opt so you can use /opt/bin/<command>
6. Add /opt/bin to PATH on reboot
- Code: Select all
# mount -t ext2 /dev/mtdblock5 /mnt/config
# cd /mnt/config
# vi autorun.sh
Add the following line at the bottom then save and exit vi:
echo "export PATH=/opt/bin:$PATH" >> /etc/profile
Do not forget to unmount !
- Code: Select all
# cd /
# umount /mnt/config
7. Uninstall procedure:
- Code: Select all
# rm -rf /usr/lib/ipkg
# rm -rf /share/MD0_DATA/big-disk
# rm -rf /opt
8. Thanks !



News