view · edit · print · history

NOTE: This page is for SlugOS 4.8 ONLY, do NOT use this procedure with SlugOS 5.3!

This is an Optware feed for SlugOS/BE (used to be called OpenSlug), with the same toolchain as SlugOS/BE. See SlugosbeDevel to learn how to develop for it.

Manual bootstrap (here bootstrap means to setup ipkg without using ipkg):

$ su
# feed=http://ipkg.nslu2-linux.org/feeds/optware/slugos4be/cross/unstable
# ipk_name=`wget -qO- $feed/Packages | awk '/^Filename: ipkg-opt/ {print $2}'`
# wget $feed/$ipk_name
# tar -xOvzf $ipk_name ./data.tar.gz | tar -C / -xzvf -
# sed -i -e 's|/stable|/unstable|' /opt/etc/ipkg.conf

To install package after bootstrapping (replace <pkg_foo> <pkg_bar> with your package name):

# /opt/bin/ipkg-opt update
# /opt/bin/ipkg-opt list
# /opt/bin/ipkg-opt install <pkg_foo> <pkg_bar> ...

After bootstrapping, we have two independent ipkg commands and two sets of packages:

  1. /usr/bin/ipkg
  2. /opt/bin/ipkg-opt

It's important to make sure you specify the command clearly (explicitly with full path if you do not have the PATH including /opt/bin).

Keep in mind the following:

  • Make sure your environmental variables, like PATH, are updated to include your /opt directories, like /opt/bin. Otherwise, /opt installed utils & shared libraries may not be found. ie. by adding the /opt/bin path to /etc/profile
  • ALWAYS check to see if a package is available via the ipkg command first, before installing it using ipkg-opt. It shouldn't cause a problem, but it just makes sense. Version & library compatibility issues plague users even for the standard Linux distributions.

As always, please direct questions to the appropriate mailing list, or use the IRC channels.

[extra info]

For some people (like me), which don`t know what bootstrapping means and dont know what to do with the above script lines: sort explanation go to the last line,otherwise read on!

<WDTY> ola,sort one...can someone tell me what bootstrapping means?

(yeah,red the wiki and google is my friend also, but I mean it in the following context: http://www.nslu2-linux.org/wiki/Optware/Slugosbe )

<eno> in the context of http://www.nslu2-linux.org/wiki/Optware/Slugosbe it means installing /opt/bin/ipkg and all dependencies so you can start using ipkg.

<WDTY> ah,okay. but what do I have to do with the above instruction?

<eno> the basic problem is that you cannot install ipkg with ipkg.

<Reedy_Boy> "In computing, bootstrapping refers to a process where a simple system activates another more complicated system that serves the same purpose."

<Reedy_Boy> yeah, you need to get something on so you can get into something else.

<eno> in this particular case, you wget and tar extract

<eno> on other platforms, it's more automated, you bootstrap ipkg by running a self-extracting xsh (shell) script

<WDTY> okay,first I use vi or some to copy/past it in a file ,then chmod,then run?

<WDTY> "./bootstrap-bla.sh"

<eno> yeah, that works, you can also copy/paste/execute (the above lines) line by line.

[/extra info]

view · edit · print · history · Last edited by mwester.
Based on work by BrianZhou, WDTY, saned, mwester, Fabio Vassalli, Sinister Shadow, and markstinson.
Originally by BrianZhou.
Page last modified on March 13, 2009, at 05:00 AM