Wednesday, April 18, 2012

Installing custom packages like Traceroute to a QNAP

Had a few issues installing traceroute(aswell as libnet which is required for traceroute) on my qnap..


Basically due to the shitty busybox sed ./configure couldn't write the make file properly, Itll give you a gawks failure message


All busybox commands suck!!! you cant even grep -R

First you need to install ipkg - In the device's Administration interface, select the 'System Tools' -> 'QPKG' page, click on 'Get QPKG' button.

Once done login to your server via SSH and 'ipkg install sed' you can basically use this to install most packages that for linux.
this will put gnu-sed in /opt/bin
Now you will need to go to /bin and run the following
# rm sed
# ln -s /opt/bin/gnu-sed sed


(you can also do the same thing for grep or any other package if you want to use recursive search, you need to 'ipkg install grep' and then ln -s /opt/bin/grep grep)

Check /opt/bin for the correct file names first to be safe

once done download traceroute or run the ./configure and see if it runs.
(i did get an error message after i ran the make file but it still works fine!)


If you get an error that you dont have a package then try 'ipkg install "package name"' or manually download it and ./configure and make - make install

at first i had to download ALOT of dependencies as it has none to start with really
Changing this sed option should let the ./configure actually run without fucking up awks!


ALWAYS MAKE BACKUPS BEFORE ADDING/CHANGING THIS!!!!(Do this at your own risk)

No comments:

Post a Comment