Then connect to your DNS323 and run the following commands:
Код:
cd /mnt/HD_a2/
mkdir ipkg
cd ipkg
wget http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable/ipkg-opt_0.99.163-10_arm.ipk
tar -xzf ipkg-opt_0.99.163-10_arm.ipk
tar -xzf data.tar.gz
mkdir -p /opt
mount --bind /mnt/HD_a2/ipkg/opt /opt
export PATH=/opt/bin:/opt/sbin:$PATH
You now have ipkg installed and in the path so that you can install other packages. To add the above link as a source, type the following:
ОБЯЗАТЕЛЬНО!
Код:
echo src dns323 http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable >> /opt/etc/ipkg.conf
Then launch
Код:
ipkg update
For a complete list of available packages type:
Код:
ipkg list
The first string displayed is an alias that can be used to install packages ie. “ipkg install wget” , this will install wget_1.11-1_arm.ipk and all the required dependencies.
See
http://www.nslu2-linux.org/wiki/Optware/Dns323 for more information or the forum link above.
The drive mount will not survive a reboot and a symbolic link will not work correctly. Options to fix this are
Option 1 (preferred for fonz fun_plug 0.4 users): See the Optware startup script thread.
Option 2 (always works): add these 2 lines to the end of the fun_plug executable script:Код:
mkdir -p /opt
mount --bind /mnt/HD_a2/ipkg/opt /opt
(Only for fonz fun_plug 0.5): To make the PATH variable permanent, edit the PATH in your /ffp/etc/profile script.
в файл /ffp/etc/profile Дописал пусть :/opt/bin:/opt/sbin
# Set the default system $PATH:
Код:
PATH=/ffp/bin:/usr/bin:/bin:/opt/bin:/opt/sbin
Личные заметки, чтобы после перезагрузке не было проблем:
добавление маунт: редактируем файл /mnt/HD_a2/fun_plug
в самый конец файла пишем: Код:
Код:
mkdir -p /opt
mount --bind /mnt/HD_a2/ipkg/opt /opt
изменяем PATH: редактируем файл /mnt/HD_a2/ffp/etc/profile
находим строки:
Код:
# Set the default system $PATH:
PATH=/ffp/bin:/usr/bin:/bin
и изменяем на:
Код:
Код:
PATH=/opt/bin:/opt/sbin:/ffp/bin:/usr/bin:/bin
Изменяем права:Код:
Код:
chmod 0755 /mnt/HD_a2/ffp/etc/profile