KNOPPIX CD-Customizer Script for GNU/LINUX

knx-cdcust.sh

This BASH script reads a CD with KNOPPIX, unpacks it to harddisk, let YOU do changes and remasters it to CD again.

New version is now 0.5.1 from 2003-03-28

(#) Shows times spent for various tasks

New version is now 0.5 from 2003-03-27

(#) Another item was added to the main screen for decompressing KNOPPIX-file

version 0.4 from 2003-03-26

(#) filename change for automatically executed file auto.knx-cust.sh; change prevents other plugin files from beiing executed by automatic mode, bugfixes

version 0.3 from 2003-03-25

(#) commandline option automatic introduced

Bugfix: version 0.2.1 from 2003-03-24

script aborts, when no custom.knx-cdcust.sh is found

version 0.2 from 2003-03-23:


(#) Tries to mount HD automatically
(#) Menu to edit knoppix.sh
(#) New Name : knx-cdcust.sh
(#) Custom Menu : custom.knx-cdcust.sh
(#) Code redesign
(#) Menu redesign

IT IS STILL EXPERIMENTAL!



Screenshot menue
This is a screenshot of the main menu.
Usualy just A) B) C) must be executed. 0) Is executed at startup.


 

KNoppiX-CDCUSTomizer script knx-cdcust.sh

Version 0.5 It has been tested with knoppix 3.1 2003-01-20 on DEBIAN Woody and SuSE 8.0 w. compressed_fs manually installed from source ########################################################### !!! * It has never been tested with a WIN-Partition * !!! ########################################################### 0) You must be root: sudo -su 1) You must have a mountable writable partition with 6 GB free space! "mkdir /users && mount /dev/hdaX /users # X is your choise!" 2) You must know how to customize DEBIAN, it just chroot's to dir or you must use/write/modify a file named *custom.$0 (*custom.knx-cdcust.sh) 3) If files *custom.$0 exists, are executed to customize the system! This will be used instead of chroot.
Here is a screenshot, probably out of date, it changes constantly: screenshot menue 4) If there is an ini-file ~/.knx-cdcust.rc it will be used to set directories and filenames. See line 15 to 20 of the script for format. Use (E) to save settings 5) It need's X11 to run. 6) On an open-file dialog read the title!!! - the first filename asked, is where you already have or want to store your CD-image - the second dialog asks you to enter a name for the new image 7) Make first tries on RW-CD: - Remove sw in chroot with apt-get remove openoffice* tetex* emacs*

TODO

*) Debuging
*) Extent custom.knx-cdcust.sh with some nice items like "include *pera", maybe as howto
*) Minimal system: What can be deleted, without KNOPPIX being KNOPPIX?
*) Show gauge when copiing and beep when ready

Nice commands for newbies:

man # of course;-)
sudo su # (only KNOPPIX)
fdisk -l # to find the partitions
mkdir /users && mount /dev/?d?? /users # to mount a partition
df # to show free space of partitions
watch --differences '(ls -l;echo .;df;echo .;free)' # to watch everything ;-)
man chroot # read the man page!

This script is based on work by Thomas Lange 1), which I expanded with Xdialog and stuff.

Other projects for remastering knoppix:

1) http://www.informatik.uni-koeln.de/ls_juenger/people/lange/software/mkmyknoppix
2) http://www.ing-buero-unger.de/prj/knx/index.html
3) http://homepage.hispeed.ch/py430/knoppix/index.html
4) not yet released

1) Is a simple bash script, but works perfectly, but you can not go back
2) This project, like 1) but easier to handle with Xdialog and custom menu.
3) Written in Python, probably better error handling, but I have never tested it.
4) An other project that does automatically create new CD's like gaming, gome, mini, kde has not yet released files
Copyright:

   This package is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; version 2 dated June, 1991.

   This package is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this package; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   02111-1307, USA.


DOWNLOAD newest Version HERE
DOWNLOAD Version 0.4 HERE
DOWNLOAD Version 0.3 HERE
My personal file with repository
Example of automatically executed file
Example of simple plugin
Example to exchange mozilla with opera
Mini example


Achim Unger, Aachen 2003-03-28


Send bug reports and suggestions to: achim.unger@web.de
This page can be found at: Go home to http://www.Ing-Buero-Unger.de
Go up to parentdirectory