This guide will show you how to set up ipkg (Itsy Package Management System) on your netgear stora. By the end of this article you will have full access to this repository which will allow you to install pretty much anything you want on your Netgear stora.
Before you can start this tutorial you must have root access to your Netgear Stora. If you don't have root access to your netgear stora yet please read my article: Easy way to get root on a Netgear Stora. Once you've gotten root access to the stora return here.
Step 1: Move the /opt directory
The first thing we need to do is move the /opt directory from the flash memory to the actual hard drive. The reason for doing this is because adding a repository will create much more frequent reads / writes to the opt directory as well as increase the amount of storage needed. To avoid this being a problem we will simply move this directory to the hard drive.
This process is very simple first you need to get persistent root access…
To do that simply type: sudo -E -s
(you will need to enter your password again)
Once that is done you need to go to the root directory, copy the opt directory into the home directory (which is stored on the hard drive), move the old opt directory to a backup location, and create a symbolic link to the new opt directory on the hard drive. Finally I recommend doing a quick ls to make sure everything looks right.The whole thing is as follows:
cd / cp -r /opt /home/opt mv opt opt-old ln -s /home/opt /opt ls /
The whole process should look about like this:
Step 2: Download iPkg repository
Now that we got the opt directory moved we are ready to download iPkg to your stora.
First we're going to go to our home directory (on the hard drive) and create a tmp folder
cd ~ mkdir tmp
After that is completed we will go in to the tmp directory and create a folder to download ipkg in to
cd tmp mkdir ipkg
Finally we will download the iPkg file from Optware using wget
Once you type this and enter it will start downloading the package… the screen should look like this.
Step 3: Unpack and Install iPkg package manager
First we need to unpackage the tar.gz file you just downloaded and put the files in the correct locations. type the following:
tar -xzf ipkg-opt_0.99.163-10_arm.ipk cp ./data.tar.gz /data.tar.gz cd / tar -xzf data.tar.gz rm data.tar.gz
Once you do that and all the files are in the right places we can set up the configuration and do the actual install.
First we need to enter the repository location in to the ipkg.conf file so it knows where to look to do this type the following:
echo src cs08q1armel http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable >> /opt/etc/ipkg.conf
Once that is done we can update the repository after that it will be ready to use.
The screen should look like this when you've finished this section…
You're all set and ready to install whatever you want on your stora and begin to have some freedom from the restrictions netgear put in place. I recommend setting up the following items right away…