Apr 292012
 
The missing link between my NAS and making it more useful: ipkg

I like my NAS and it works well, especially for what I bought it for (NFS). I found out, there is no “locate” command though. I use that a lot, so was looking for a way to get it. There’s no official package for it, but there is an unofficial method: use ipkg. See here and here for instructions.

One script installation, a modification of /root/.profile and a reboot later, and the usual ipkg interface is available:

cd /volume1/@tmp
wget http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/syno-x07-bootstrap_1.2-7_arm.xsh
chmod a+x syno-x07-bootstrap_1.2-7_arm.xsh
sh syno-x07-bootstrap_1.2-7_arm.xsh
cp -p /root/.profile /root/.profile.bak
sed 's/\(.*PATH.*\)/#\1/' </root/.profile.bak >/root/.profile
reboot
ipkg update
ipkg list | grep locate
ipkg install mlocate
updatedb

and now I can find my own stuff again!