Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: [SCRIPTS] knoppix-live-cd-installer for fprot, sim, dvdcss2

  1. #1
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    [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
    +

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297
    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

  3. #3
    Junior Member
    Join Date
    Feb 2003
    Posts
    9

    web site error

    some one can give me a mirror from this web site?
    i can't open http://www.linuxfaqs.de/knoppix

    thanks

  4. #4
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    Re: web site error

    Quote Originally Posted by vynx
    some one can give me a mirror from this web site?
    i can't open http://www.linuxfaqs.de/knoppix

    thanks
    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

  5. #5
    Junior Member
    Join Date
    Feb 2003
    Posts
    9

    more url

    can some one give me URL for download knx-alsa packages?

    thanks

  6. #6
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    Re: more url

    Quote 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

  7. #7
    Junior Member
    Join Date
    Feb 2003
    Posts
    9

    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?

  8. #8
    Junior Member
    Join Date
    Feb 2003
    Posts
    9

    i forget something

    i need knx-alsa packages in new knoppix too.

  9. #9
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159
    edonkey would be nice (the rpm on their website works well)

    As a starting point:
    Code:
    cd ~
    wget http://flow.dl.sourceforge.net/sourc...5.0-2.i386.rpm
    rpm2cpio ed2k-gtk-gui-0.5.0-2.i386.rpm | cpio -idmv --no-absolute-filenames
    rm -f ed2k-gtk-gui-0.5.0-2.i386.rpm
    but then I don't know how to continue... Fabian, can you help?

  10. #10
    Junior Member
    Join Date
    Feb 2003
    Posts
    9

    what relationship

    i dont know what edonkey use for?
    it seems like dont relationship with what i need..
    or i am wrong?

Page 1 of 2 12 LastLast

Similar Threads

  1. Messy Knoppix Init Scripts...
    By calculon in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 06-30-2004, 02:23 PM
  2. running scripts at startup when KNOPPIX boots
    By pankajgadhari in forum General Support
    Replies: 1
    Last Post: 01-07-2004, 06:33 AM
  3. Replies: 5
    Last Post: 12-27-2003, 09:12 AM
  4. Scripts for Live-CD
    By flamesrock in forum General Support
    Replies: 0
    Last Post: 09-29-2003, 03:17 AM
  5. Shell scripts running at Knoppix
    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
  •  


HPE ProLiant DL380 Gen10 Plus, 52-core, 512GB RAM, SSDs, NVIDIA A40 AI GPU picture

HPE ProLiant DL380 Gen10 Plus, 52-core, 512GB RAM, SSDs, NVIDIA A40 AI GPU

$26000.00



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



VMware vCenter Server 8 STANDARD Perpetual License Key VC-STD-C (Legacy Pack) picture

VMware vCenter Server 8 STANDARD Perpetual License Key VC-STD-C (Legacy Pack)

$1599.95



RDS CAL - Remote Desktop Services Windows Server 2022 50 User/Device Connections picture

RDS CAL - Remote Desktop Services Windows Server 2022 50 User/Device Connections

$60.00



Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p picture

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p

$499.88



Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO picture

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO

$308.00



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD

$381.93



Dell EMC VxRail E560F 10-SFF 2*Gold 6230R 2.1GHz No RAM HBA330 iDrac Ent Server picture

Dell EMC VxRail E560F 10-SFF 2*Gold 6230R 2.1GHz No RAM HBA330 iDrac Ent Server

$349.99



Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003 picture

Broadcom 9600-24i Tri-Mode RAID Controller 4.0 NVMe SAS SATA NEW 05-50111-01003

$639.69