1. # download the excellent and open-source OSGi gateway framework of http://www.knopflerfish.org/index.html, and store it in /tmp:
     cd /tmp
     wget http://www.knopflerfish.org/releases/1.0.2/knopflerfish_osgi_1.0.2.jar
     export KNOPFLERFISH_BIN=/tmp/knopflerfish_osgi_1.0.2.jar 
    
  2. # specify where the installation should go:
     export KNOPFLERFISH=~/osgi
     mkdir -p $KNOPFLERFISH 
    
  3. # launch the installation program:
     cd $KNOPFLERFISH;java -jar $KNOPFLERFISH_BIN -batch 
    
  4. # running the framework:
     cd $KNOPFLERFISH/knopflerfish_osgi_1.0.2/knopflerfish.org/osgi;java -jar framework.jar