view · edit · print · history

This is a guide on how to set up your Ubuntu Breezy installation, so that you can make your own ipkg files for optware.

First you need to install the following packages:

  • build-essential
  • automake1.9
  • bison
  • monotone
  • cvs
  • flex
  • libtool

This is easily done with the command

 $ sudo apt-get install build-essential automake1.9 bison monotone cvs flex libtool

You might need to add the universe repository if it can't find monotone. Make sure that the line containing universe is uncommented. Do

 $ sudo gedit /etc/apt/sources.list

and delete the "#" at the start of the line

 # deb http://archive.ubuntu.com/ubuntu breezy universe

Now we are ready to make a directory to keep the stuff your going to download

 $ mkdir unslung
 $ cd unslung

Then get the master makefile from www.nslu2-linux.org

 $ wget http://www.nslu2-linux.org/Makefile

The next step will take some time. The makefile fetches all the things you need, in order to compile packages for your system.

 $ make setup-optware

Enter the directory optware when it's done. You need to edit Makefile so that it compiles packages for the ds101g instead of the nslu2. Replace the line




You should then create a directory called tmp inside the optware directory:

 optware$ mkdir tmp

Now the last step you need in order to build packages, is to build the package system.

 optware$ make ipkg-utils

Now you are ready to build a package for your DS-101g+. The sub-directory /optware/make contains the makefiles of the packages you can build. Now issue the following command to build a package

 optware$ make name_of_the_package-ipk

If all goes well you will end up with a file name_of_the_package.ipk file in the directory optware/builds Now copy the file your DS-101g+ and install it by issuing the command(on your DS-101g+)

 $ ipkg install name_of_the_package.ipk

Hopefully this will work. Please edit and/or email me for corrections

Michael Mc Donnell

michael (at) mcdonnell.dk

Edit jan 28, David Holm: Apparently the makefile has changed and now requires monotone-0.25 which cannot be installed with apt-get so:

  1. Download the 0.25 source : wget http://venge.net/monotone/downloads/monotone-0.25.tar.gz
  2. tar -zxvf monotone-0.25.tar.gz
  3. cd monotone-0.25
  4. dpkg-buildpackage -rfakeroot -uc -b
  5. The above WILL create an error because of missing packages. Install the missing packages with sudo apt-get install <missing package names>
  6. cd ..
  7. sudo dpkg -i monotone_0.25-0.1_i386.deb

Edit May 18th, Jakob Nielsen (jakob (at) jn-net.dk): Sourceforge cvs has changed cvs architecture, therefore you have to edit the Makefile before executing: $ make setup-optware

1. Edit the Makefile, you can use Gedit:

 $ gedit Makefile

2. Under "setup-optware" (line 328) the following line:

 ( cvs -q -d :pserver:anonymous@nslu.cvs.sf.net:/cvsroot/nslu co -d optware unslung )

should be changed to this:

 cvs -q -d :pserver:anonymous@nslu.cvs.sourceforge.net:/cvsroot/nslu co -d optware unslung

3. Now you can run:

 $ make setup-optware

Edit Feb 22 08, Tyler Colbert

Doesn't seem to need the above change as it uses subversion now instead of cvs and I can't even find the line. Seemed to work, but havent finished trying it yet. You might need to install subversion before running "make setup-optware". I already had it installed so I'm unsure.

view · edit · print · history · Last edited by Tyler Colbert.
Based on work by Tyler Colbert, Jakob Nielsen, David Holm, Morten Nielsen, and Michael Mc Donnell.
Originally by Michael Mc Donnell.
Page last modified on February 22, 2008, at 08:54 PM