-
Senior Member
registered user
[SCRIPTS] knoppix-live-cd-installer for fprot, sim, dvdcss2
Hi,
I now made a one to do all script.
this is just v.0.1 so it has not everythingI want to have it, but one ahve to make backups and this is a public one 
As there are dirs, this time its a diff.
Syntax is easy ...
Just do a:
./knx-live-inst.sh l
to see modules availabe ...
then do:
./knx-live-inst.sh sim-0.8.1
to install it.
sim-0.8.1 is for KDE 3.1.0-woody, sim-0.8.2 for KDE 3.1.1-unstable.
Easy isn't it ?
Files are for the moment downloaded from the net or you have to put them into:
modules/<name>/<yourfile.deb>
So one could also do a install-mirror-tgz with all binaries already in there. 
Also note that for now programs are installed into $HOME/.dist so it'll be kept if configuration is saved!
I'm working hard to get alsa working with the new installer (I myself already have it, nice sound
) )
Stay tuned! There are great things to come!
cu
Fabian
Code:
diff -Nur knx-live-inst/knx-live-inst.sh knx-live-inst-0.1/knx-live-inst.sh
--- knx-live-inst/knx-live-inst.sh 1970-01-01 01:00:00.000000000 +0100
+++ knx-live-inst-0.1/knx-live-inst.sh 2003-03-30 23:12:50.000000000 +0200
@@ -0,0 +1,138 @@
+#!/bin/bash
+#
+# Install software while it is runnin from CD into home directory - useful in combination with persistant home
+#
+# GPL
+#
+# Author: Fabian Franz <[email protected]>
+#
+
+# Constants
+
+DESTDIR="$HOME/.dist"
+export DESTDIR
+TMPDIR="/tmp/knx-live-inst.$$"
+MODPATH=$(pwd)
+MODULES=$MODPATH/modules/
+FILES="files"
+INSTALL="install.sh"
+mkdir -p $TMPDIR
+cd $TMPDIR
+
+function clean_exit
+{
+ cd ~
+ rm -rf $TMPDIR
+}
+
+trap "clean_exit" EXIT
+
+# Functions needed
+
+function deb-unpack()
+{
+ ar p $1 data.tar.gz | tar xz
+}
+
+function rpm-unpack()
+{
+ rpm2cpio $1 | cpio --extract --make-directories
+}
+
+function tgz-unpack()
+{
+ tar xzf $1
+}
+
+function tbz-unpack()
+{
+ tar xzj $1
+}
+
+# knx-unpack filename location type md5sum
+function knx-unpack()
+{
+ [ ! -f $1 ] && return 2
+ case "$3" in
+ deb) deb-unpack $1 ;;
+ rpm) rpm-unpack $1 ;;
+ tgz) tgz-unpack $1 ;;
+ tbz) tbz-unpack $1 ;;
+ *)
+ echo "Unknown Package format"
+ false
+ ;;
+ esac
+}
+
+function setup_destdir()
+{
+ # setup $HOME/.bashrc
+
+ mkdir -p $DESTDIR/bin
+ mkdir -p $DESTDIR/lib
+ mkdir -p $DESTDIR/man
+
+ cp $HOME/.bashrc $HOME/.bashrc.templ.$$
+ cat $HOME/.bashrc.templ.$$ | grep -v "DESTDIR=" | grep -v "export MANPATH=\$DESTDIR/man" | grep -v "export PATH=\$DESTDIR/bin/" | grep -v "export LD_LIBRARY_PATH=\$DESTDIR/lib" > $HOME/.bashrc
+ echo "DESTDIR=$DESTDIR" >> $HOME/.bashrc
+ echo "export MANPATH=\$DESTDIR/man/:\$MANPATH" >> $HOME/.bashrc
+ echo "export PATH=\$DESTDIR/bin/:\$PATH" >> $HOME/.bashrc
+ echo "export LD_LIBRARY_PATH=\$DESTDIR/lib:\$LD_LIBRARY_PATH" >> $HOME/.bashrc
+ rm -f $HOME/.bashrc.templ.$$
+
+}
+
+function abort
+{
+ echo $1
+ exit $2
+}
+
+# Format of Files order + package_name
+# So package basename location type md5sum
+function get_file()
+{
+ [ -f $MODULES/$1/$2 ] && cp $MODULES/$1/$2 $TMPDIR
+ [ -f $MODULES/$1/$2 ] || wget $3
+}
+
+if [ "$#" -lt "1" ]; then
+ echo Usage: $(basename $0) "<module-name>"
+ exit 1
+fi
+
+if [ ! -f "$MODULES/$1/$FILES" ];
+then
+ echo "Fatal: Package not found"
+ echo "Availabe are:"
+ ls $MODULES | tr ' ' \n
+ exit 1
+fi
+
+echo "OK, Installing $1..."
+setup_destdir
+
+NUM=$(cat $MODULES/$1/files | egrep -v "^#" | wc -l | sed 's/ //g')
+echo "Getting $NUM files..."
+I="1"
+while [ "$I" -le "$NUM" ];
+do
+ file=$(cat $MODULES/$1/files | egrep -v "^#" | tail +$I | head -n 1)
+ get_file $1 $file
+ I=$(($I+1))
+done
+
+echo "Unpacking $NUM files..."
+I="1"
+while [ "$I" -le "$NUM" ];
+do
+ file=$(cat $MODULES/$1/files | egrep -v "^#" | tail +$I | head -n 1)
+ knx-unpack $file
+ [ $? -eq 2 ] && abort "Fatal file not found!" 1
+ I=$(($I+1))
+done
+
+echo "Installing program..."
+sh $MODULES/$1/install.sh
+echo "All done"
Binärdateien knx-live-inst/.knx-live-inst.sh.swp and knx-live-inst-0.1/.knx-live-inst.sh.swp sind verschieden.
diff -Nur knx-live-inst/modules/f-prot/files knx-live-inst-0.1/modules/f-prot/files
--- knx-live-inst/modules/f-prot/files 1970-01-01 01:00:00.000000000 +0100
+++ knx-live-inst-0.1/modules/f-prot/files 2003-03-30 23:06:18.000000000 +0200
@@ -0,0 +1,3 @@
+# Format of this is:
+# basename location_to_download type md5sum
+fp-linux-sb.tar.gz ftp://ftp.f-prot.com/pub/linux/fp-linux-sb.tar.gz tgz
diff -Nur knx-live-inst/modules/f-prot/install.sh knx-live-inst-0.1/modules/f-prot/install.sh
--- knx-live-inst/modules/f-prot/install.sh 1970-01-01 01:00:00.000000000 +0100
+++ knx-live-inst-0.1/modules/f-prot/install.sh 2003-03-30 23:22:53.000000000 +0200
@@ -0,0 +1,21 @@
+#!/bin/bash
+#
+# File to actually install the software
+# copy main prog
+
+mkdir -p $DESTDIR/man/man8
+
+cp -a f-prot $DESTDIR/f-prot
+
+# Make starter links
+ln -fs $DESTDIR/f-prot/f-prot.sh $DESTDIR/bin/f-prot
+ln -fs $DESTDIR/f-prot/check-updates.sh $DESTDIR/bin/check-updates.sh
+ln -fs $DESTDIR/f-prot/man8/f-prot.8 $DESTDIR/man/man8/
+ln -fs $DESTDIR/f-prot/man8/check-updates.sh.8 $DESTDIR/man/man8/
+
+# Fix pathes
+sed 's%/usr/local/f-prot/%'$DESTDIR'/f-prot/%g' f-prot/f-prot.sh > $DESTDIR/f-prot/f-prot.sh
+
+sed 's%/usr/local/f-prot/%'$DESTDIR'/f-prot/%g' f-prot/check-updates.sh > $DESTDIR/f-prot/check-updates.sh
+
+
diff -Nur knx-live-inst/modules/libdvdcss2-1.2.6/files knx-live-inst-0.1/modules/libdvdcss2-1.2.6/files
--- knx-live-inst/modules/libdvdcss2-1.2.6/files 1970-01-01 01:00:00.000000000 +0100
+++ knx-live-inst-0.1/modules/libdvdcss2-1.2.6/files 2003-03-30 23:01:00.000000000 +0200
@@ -0,0 +1,3 @@
+# Format of this is:
+# basename location_to_download type md5sum
+libdvdcss2_1.2.6-1_i386.deb http://www.videolan.org/pub/libdvdcs...2.6-1_i386.deb deb 729eaab91589061eedb087bbf5eeab87
diff -Nur knx-live-inst/modules/libdvdcss2-1.2.6/install.sh knx-live-inst-0.1/modules/libdvdcss2-1.2.6/install.sh
--- knx-live-inst/modules/libdvdcss2-1.2.6/install.sh 1970-01-01 01:00:00.000000000 +0100
+++ knx-live-inst-0.1/modules/libdvdcss2-1.2.6/install.sh 2003-03-30 23:01:41.000000000 +0200
@@ -0,0 +1,7 @@
+#!/bin/bash
+#
+# File to actually install the software
+# copy main prog
+
+cp -a usr/lib/* $DESTDIR/lib/
+
diff -Nur knx-live-inst/modules/sim-0.8.1/files knx-live-inst-0.1/modules/sim-0.8.1/files
--- knx-live-inst/modules/sim-0.8.1/files 1970-01-01 01:00:00.000000000 +0100
+++ knx-live-inst-0.1/modules/sim-0.8.1/files 2003-03-30 22:50:30.000000000 +0200
@@ -0,0 +1,3 @@
+# Format of this is:
+# basename location_to_download type md5sum
+sim_0.8.1-1_i386.deb http://telia.dl.sourceforge.net/sour...8.1-1_i386.deb deb 2e27a48d8ddf5d11b9b1271fc014bda6
diff -Nur knx-live-inst/modules/sim-0.8.1/install.sh knx-live-inst-0.1/modules/sim-0.8.1/install.sh
--- knx-live-inst/modules/sim-0.8.1/install.sh 1970-01-01 01:00:00.000000000 +0100
+++ knx-live-inst-0.1/modules/sim-0.8.1/install.sh 2003-03-30 22:04:08.000000000 +0200
@@ -0,0 +1,10 @@
+#!/bin/bash
+#
+# File to actually install the software
+# copy main prog
+cp -a usr/bin/* $DESTDIR/bin
+# copy menu-items & co
+cp -a usr/share/ $HOME/.kde/
+# change menu-item to fit our needs
+sed 's$Exec=sim$Exec='$DESTDIR'/bin/sim$g' usr/share/applnk/Internet/sim.desktop >$HOME/.kde/share/applnk/Internet/sim.desktop
+
diff -Nur knx-live-inst/modules/sim-0.8.2/files knx-live-inst-0.1/modules/sim-0.8.2/files
--- knx-live-inst/modules/sim-0.8.2/files 1970-01-01 01:00:00.000000000 +0100
+++ knx-live-inst-0.1/modules/sim-0.8.2/files 2003-03-30 22:25:42.000000000 +0200
@@ -0,0 +1,3 @@
+# Format of this is:
+# basename location_to_download type md5sum
+sim_0.8.2cvs22022003-1_i386.deb http://sim-icq.sourceforge.net/sim_0...003-1_i386.deb deb 8ddefa3887508c12febc2c3804de82ea
diff -Nur knx-live-inst/modules/sim-0.8.2/install.sh knx-live-inst-0.1/modules/sim-0.8.2/install.sh
--- knx-live-inst/modules/sim-0.8.2/install.sh 1970-01-01 01:00:00.000000000 +0100
+++ knx-live-inst-0.1/modules/sim-0.8.2/install.sh 2003-03-30 22:08:26.000000000 +0200
@@ -0,0 +1,10 @@
+#!/bin/bash
+#
+# File to actually install the software
+# copy main prog
+cp -a usr/bin/* $DESTDIR/bin
+# copy menu-items & co
+cp -a usr/share/ $HOME/.kde/
+# change menu-item to fit our needs
+sed 's$Exec=sim$Exec='$DESTDIR'/bin/sim$g' usr/share/applnk/Internet/sim.desktop >$HOME/.kde/share/applnk/Internet/sim.desktop
+
-
Senior Member
registered user
Alsa support ok!!!
It does all work now!
Download from:
http://www.linuxfaqs.de/knoppix/
Instructions for alsa:
cd ~
tar xzf knx-live-inst-0.1.tar.gz
cd knx-live-inst-0.1
./knx-live-inst.sh alsa
Then play some sound!
Enjoy!
cu
Fabian
-
web site error
some one can give me a mirror from this web site?
i can't open http://www.linuxfaqs.de/knoppix
thanks
-
Senior Member
registered user
Re: web site error

Originally Posted by
vynx
Mirror with knx-live-inst-0.1-2 is availabe at :
http://www.computer-ag.de/download/knoppix/
Please use this only as a temporary mirror as my bandwith is limited. Thank you!
I'll soon upload new version of live-installer, I'm working atm moment.
cu
Fabian
-
more url
can some one give me URL for download knx-alsa packages?
thanks
-
Senior Member
registered user
Re: more url

Originally Posted by
vynx
can some one give me URL for download knx-alsa packages?
thanks
For what do you need them. I'm the author so I could upload it. Do you mean the live-installer-package ? [thats in live-inst]
or do you really mean the knx-alsa-package included in newest knoppix ?
cu
Fabian
-
dont need again
i already founded it in knx-live-install. thanks
i need for my final assignment,i was studying in informatic engineering.
i make a linux distro for my final assignment. i need some newest file
from knoppix last version: knoppix-autoconfig(in /etc/init.d/),alsa auto configuration(i dont know position) and hwsetup
some one can give the URL?
-
i forget something
i need knx-alsa packages in new knoppix too.
-
Senior Member
registered user
edonkey would be nice (the rpm on their website works well)
As a starting point:
but then I don't know how to continue... Fabian, can you help?
-
what relationship
i dont know what edonkey use for?
it seems like dont relationship with what i need..
or i am wrong?
Similar Threads
-
By calculon in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 06-30-2004, 02:23 PM
-
By pankajgadhari in forum General Support
Replies: 1
Last Post: 01-07-2004, 06:33 AM
-
By Fabianx in forum Ideas
Replies: 5
Last Post: 12-27-2003, 09:12 AM
-
By flamesrock in forum General Support
Replies: 0
Last Post: 09-29-2003, 03:17 AM
-
By majales in forum General Support
Replies: 2
Last Post: 05-15-2003, 04:21 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Windows XP, Vista, 8.1, Linux Knoppix, Office XP, (6 CDS)
$10.00

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit
$19.99

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive
$5.99

KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED
$11.99

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick
$20.85

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick
$21.42

Knoppix NSM 1.2
$8.00

VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)
$7.57

Hamshack Live DVD-ROM
$7.00

Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006
$33.62