I will send you my scripts, just send mean email address
Hi all, I`m trying to remaster knoppix. I am using knoppix 5.1.1 and I've got 2 problems:
- my copies are allways over 700MB with just 1 or 2 packets installed and the biggest ones removed.
- Some of my copies asks me for login at a blue background when starting.
Anyone knows why? Am I missing something? I've tried so many times.
I will send you my scripts, just send mean email address
Any chance you could post them for all of us to see?Originally Posted by willbrown
The only reason I have not posted is that, firstly they are merely based on the info on the wiki page for re-mastering (so they are not really my work) and secondly, I'm new to linux and my scripting is quite basic.
However, if you are happy with all that here they are. There are three scripts but each calls the next automatically. They only run from a CD boot version of knoppix in text mode, init 2 and you need to pre-prepare a hdd. Change the variables at the beginning on the main script to meet your needs. My hdd is hdax: hda1 is the swap drive, hda2 is where I store a hard drive install of knoppix, hda3 is where I store extra files required for the customisation and hda4 is the place where all the work takes place . NOTE: My script formats hda4 each run (I just found everything more reliable that way!) - you have been warned.
hda3 requires the following :
hda3/BuildFiles - 45xsession, boot.msg & isolinux.cfg
These house all my replacement graphics files. EG: hda3/BuildImages/background_1600x1200.jpg
hda3/BuildImages/background.jpg
hda3/BuildImages/knoppix-24-1.jpg
hda3/BuildImages/knoppix-header_560x200.png
hda3/BuildImages/knoppix-header.jpg
hda3/BuildImages/knoppix-header.png
hda3/BuildImages/splash_top.png
Copy all three scripts to / and enter ./install1.sh
These are my latest V5.3 and not finished yet, last option not yet written! Others all OK.
Now the scripts (warts and all):
install1.sh
Install2.shCode:#!/bin/bash # >/dev/null 2>&1 # rsync -Ha --ignore-existing /etc/skel/{.kde*,Desktop} $HOME/ 2>/dev/null # Remove {.kde*,Desktop} # On optimise version change mkiso or gen iso settings from 65536 to 131072 ######################################################################################################### #Functions ######################################################################################################### mainmenu() { clear echo echo "Wills Knoppix 5.3 RE-Master Menu - Version boots via isolinux" echo "-------------------------------------------------------------------------" echo "1 - Quick UK lang & KDE image update -(Big KNOPPIX file untouched) " echo "2 - Base build - Remove all non UK lang & add java" echo "3 - Working build - Remove all unneccessary packages & add extra programs" echo "4 - Update Build - Open into chroot KDE for further remastering" echo "-------------------------------------------------------------------------" echo "Current variables" echo "-------------------" echo "Targetpath=${targetpath} - External file path=/mnt/${extfilepath} " echo "-------------------------------------------------------------------------" echo "C - Change variables" echo "F - Format ${targetpath}" echo "X - Exit" echo "-------------------------------------------------------------------------" echo read input>/dev/null case ${input} in 1) quickbld; bldiso;; 2) basebld ${input}; chroot2 ${input};; 3) basebld ${input}; chroot2 ${input};; 4) basebld ${input}; chroot2 ${input};; [cC]) update;; [fF]) format ${input};; [Xx]) exit;; [Yy]) ;; *) echo; read -p "Invailid Option"; testmenu;; esac mainmenu exit } ######################################################################################################### quickbld() { echo "You selected option 1, do you want to continue ?" echo "(Y)es or (N)o" read confirm case $confirm in [Nn]) unset confirm; return;; esac cd ${targetpath} echo "Please wait coping files...." cp -Rp /cdrom knoppix chmod +w -R knoppix # 3. Edit the isolinux.cfg to make the default language "us": echo "Deleting unneccessary files...." if [ -f knoppix/autorun* ]; then rm knoppix/autorun*;fi if [ -f knoppix/index.html ]; then rm knoppix/index.html;fi if [ -f knoppix/boot/isolinux/german.kbd ]; then rm knoppix/boot/isolinux/german.kbd;fi if [ -f knoppix/KNOPPIX/index* ]; then rm /knoppix/KNOPPIX/index*;fi if [ -f knoppix/KNOPPIX/KNOPPIX-FAQ-ES.txt ]; then rm /knoppix/KNOPPIX/KNOPPIX-FAQ-ES.txt;fi if [ -f knoppix/KNOPPIX/KNOPPIX-FAQ-FR.txt ]; then rm /knoppix/KNOPPIX/KNOPPIX-FAQ-FR.txt;fi if [ -f knoppix/KNOPPIX/KNOPPIX-FAQ-IT.txt ]; then rm /knoppix/KNOPPIX/KNOPPIX-FAQ-IT.txt;fi if [ -f knoppix/KNOPPIX/KNOPPIX-FAQ-NL.txt ]; then rm /knoppix/KNOPPIX/KNOPPIX-FAQ-NL.txt;fi if [ -f knoppix/KNOPPIX/KNOPPIX-FAQ.txt ]; then rm /knoppix/KNOPPIX/KNOPPIX-FAQ.txt;fi echo "Updating files...." \cp /mnt/${extfilepath}/BuildImages/background.jpg knoppix/KNOPPIX \cp /mnt/${extfilepath}/BuildImages/knoppix-header.jpg knoppix/KNOPPIX/images if [ -f /mnt/${extfilepath}/BuildFiles/boot.msg ]; then \cp /mnt/${extfilepath}/BuildFiles/boot.msg knoppix/boot/isolinux fi if [ -f /mnt/${extfilepath}/BuildFiles/isolinux.cfg ]; then \cp /mnt/${extfilepath}/BuildFiles/isolinux.cfg knoppix/boot/isolinux fi cd knoppix } ######################################################################################################### bldiso() { # Regenerate the md5sums: echo "Pleae wait regenerating the md5sums" find -type f -not -name md5sums -not -name boot.cat -not -name isolinux.bin -exec md5sum '{}' \; > KNOPPIX/md5sums cd .. # Make the ISO image. echo "Pleae wait making the iso image" genisoimage -pad -l -r -J -v -V "KNOPPIX" -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -o knoppix.iso knoppix echo echo Size of finished iso is: ls -lh knoppix.iso echo echo Script finished,the ISO is stored in ${targetpath}knoppix.iso read -p "Press any key to end" } ######################################################################################################### basebld() { echo "You selected option ${1}, do you want to continue ?" echo "(Y)es or (N)o" read confirm case $confirm in [Nn]) unset confirm; return;; esac #Chose format or delete format #delknx mkdir -p ${targetpath}/knx/tmp mkdir -p ${targetpath}/knx/master/KNOPPIX mkdir -p ${targetpath}/knx/source/KNOPPIX cd ${targetpath}/knx DATE=`date` echo Copying files, please wait... echo Start time $DATE, 1.8Ghz P4 this takes approx 8 minutes. cp -Rp /KNOPPIX/* ${targetpath}/knx/source/KNOPPIX cp -ar /cdrom/boot ${targetpath}/knx/master/boot cp -ar /cdrom/KNOPPIX/modules ${targetpath}/knx/master/KNOPPIX/. cd /cdrom && find . -size -10000k -type f -exec cp -p --parents '{}' ${targetpath}/knx/master/ \; if [ "${1}" = "2" ]; then #cp /etc/dhcpc/resolv.conf ${targetpath}/knx/source/KNOPPIX/etc/dhcpc/resolv.conf rm -f ${targetpath}/knx/source/KNOPPIX/etc/resolv.conf \cp -v /etc/resolv.conf ${targetpath}/knx/source/KNOPPIX/etc/resolv.conf \cp /etc/X11/xorg.conf ${targetpath}/knx/source/KNOPPIX/etc/X11 \cp /etc/X11/XF86Config* ${targetpath}/knx/source/KNOPPIX/etc/X11 # Update wallpaper \cp /mnt/${extfilepath}/BuildImages/knoppix.jpg ${targetpath}/knx/source/KNOPPIX/usr/local/lib \cp /mnt/${extfilepath}/BuildImages/background.jpg ${targetpath}/knx/master/KNOPPIX/ # Update boot graphics \cp /mnt/${extfilepath}/BuildImages/knoppix-24-1.jpg ${targetpath}/knx/master/KNOPPIX/images \cp /mnt/${extfilepath}/BuildImages/knoppix-header.jpg ${targetpath}/knx/master/KNOPPIX/images #\cp $/mnt/{extfilepath}/BuildImages/knoppix-24-1.jpg ${targetpath}/knx/source/KNOPPIX/images #\cp /mnt/${extfilepath}/BuildImages/knoppix-header.jpg ${targetpath}/knx/source/KNOPPIX/images input # Update kde splash screen \cp /mnt/${extfilepath}/BuildImages/splash_top.png ${targetpath}/knx/source/KNOPPIX/usr/share/apps/ksplash/Themes/Knoppix \cp /mnt/${extfilepath}/BuildImages/splash_top.png ${targetpath}/knx/source/KNOPPIX/usr/share/apps/ksplash/Themes/Default # Update previously saved config files \cp /mnt/${extfilepath}/BuildFiles/45xsession* ${targetpath}/knx/source/KNOPPIX/etc/X11/Xsession.d #\cp /mnt/${extfilepath}/BuildFiles/knoppix-autoconfig ${targetpath}/knx/source/KNOPPIX/etc/init.d #\cp /mnt/${extfilepath}/BuildFiles/locale ${targetpath}/knx/source/KNOPPIX/etc/default cd / fi cd ${targetpath}/knx # NOTE: /dev gives error - wronmg fs type, bad option mount --bind /dev ${targetpath}/knx/source/KNOPPIX/dev >/dev/null 2>&1 mount --bind /proc ${targetpath}/knx/source/KNOPPIX/proc mount --bind /proc ${targetpath}/knx/source/KNOPPIX/sys DATE=`date` echo echo About to change root to KNOPPIX echo chroot prompt will change to sh-3.1 echo echo Finish time $DATE echo chmod 777 /install2.sh /install3.sh \cp /install2.sh /install3.sh ${targetpath}/knx/source/KNOPPIX echo echo "About to chroot" echo chroot ${targetpath}/knx/source/KNOPPIX ./install2.sh ${1} ${extfilepath} ${targetpath} echo } ######################################################################################################### format() { umount -l /dev/${target} >/dev/null 2>&1 echo When in cfdisk do NOT make ${targetpath} bootable, otherwise a re-boot will be required. echo if [ "${1}" = "F" -o "${1}" = "f" ]; then read -p "Partition drive prior to format? (Y)es,(N)o or (C)ancel " NEW_MASTER case ${NEW_MASTER} in [Yy]) cfdisk;; #echo>//dev/null [Nn]) ;; *) echo; echo "Test Cancelled"; exit;; esac fi unset NEW_MASTER echo Formatting /dev/${target}, please wait... mkfs.ext3 /dev/${target} #mount -t ext3 -rw /dev/${target} ${targetpath} mount /dev/${target} ${targetpath} } ######################################################################################################### delknx() { if [ -d ${targetpath}/knx ]; then echo "Please wait deleting old build" rm -rf ${targetpath}/knx/ fi } ######################################################################################################### update() { echo "Current target path is ${targetpath}" echo "Enter new path or just press return" read temp1 if [ -n "${temp1}" ]; then targetpath=${temp1} mount ${targetpath} fi unset temp1 echo "Current external file path is ${extfilepath} - Do NOT enter the /mnt/" echo "Enter new path or just press return" read temp1 if [ -n "${temp1}" ]; then extfilepath=${temp1} mount /mnt/${extfilepath} fi unset temp1 } ######################################################################################## chroot2() { #Return back from CHROOT environment # Should help if home directories nor saved in re-mastered versions # rsync -a ${targetpath}/knx/source/KNOPPIX/home/knoppix/ ${targetpath}/knx/source/KNOPPIX/etc/skel/ # chown root:root -R ${targetpath}/knx/source/KNOPPIX/etc/skel/ # rm -rf ${targetpath}/knx/source/KNOPPIX/home/knoppix clear echo Now install1.sh active again echo echo Prompt should be back to 'root!tty1:/#' echo Only run after install3.sh and exit to CHROOT echo rm -f ${targetpath}/knx/source/KNOPPIX/install2.sh rm -f ${targetpath}/knx/source/KNOPPIX/install3.sh # read -p "pause" if [ "${1}" = "2" ]; then #Remove some files #if [ -f knoppix/KNOPPIX/KNOPPIX-FAQ.txt ]; then rm /knoppix/KNOPPIX/KNOPPIX-FAQ.txt;fi if [ -f ${targetpath}/knx/master/KNOPPIX/index*.html ]; then rm ${targetpath}/knx/master/KNOPPIX/index*.html;fi if [ -f ${targetpath}/knx/master/boot/isolinux/german.kbd ]; then rm ${targetpath}/knx/master/boot/isolinux/german.kbd;fi if [ -f ${targetpath}/knx/master/KNOPPIX/KNOPPIX-FAQ-*.txt ]; then rm ${targetpath}/knx/master/KNOPPIX/KNOPPIX-FAQ-*.txt;fi fi # Update original CD boot menu \cp /mnt/${extfilepath}/BuildFiles/boot.msg ${targetpath}/knx/master/boot/isolinux \cp /mnt/${extfilepath}/BuildFiles/isolinux.cfg ${targetpath}/knx/master/boot/isolinux #Blanket umount umount -l /mnt/${extfilepath} >/dev/null 2>&1 umount -l /mnt/fd0 >/dev/null 2>&1 umount -l /media/fd0 >/dev/null 2>&1 umount -l /share1 >/dev/null 2>&1 apt-get clean rm -rf ${targetpath}/knx/source/KNOPPIX/.rr_moved rm ${targetpath}/knx/source/etc/skel/.bash_history ${targetpath}/knx/source/root/.bash_history clear echo echo Making the big compressed KNOPPIX ISO 9660 filesystem - used by the cloop driver: # Get documented error with above, try -m -B mkisofs -R -U -V "Knoppixfilesystem" -publisher "Knoppix" -input-charset ISO-8859-15 -allow-leading-dots -hide-rr-moved -cache-inodes -no-bak -pad ${targetpath}/knx/source/KNOPPIX | nice -5 /usr/bin/create_compressed_fs - 131072 > ${targetpath}/knx/master/KNOPPIX/KNOPPIX # NOTE: can add --best for higher compression ie: /usr/bin/create_compressed_fs --best - 65536 cd ${targetpath}/knx/master echo echo Updating the md5 hashes of the files included in the ISO, used for integrity checking echo find -type f -not -name md5sums -not -name boot.cat -not -name isolinux.bin -exec md5sum '{}' \; > KNOPPIX/md5sums echo echo "Pleae wait making the iso image" #mkisofs -pad -l -r -J -v -V "KNOPPIX" -no-emul-boot -boot-load-size 4 \ # -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \ # -hide-rr-moved -o ${targetpath}/knx/knoppix.iso ${targetpath}/knx/master genisoimage -pad -l -r -J -v -V "KNOPPIX" -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -hide-rr-moved -o ${targetpath}/knx/knoppix.iso ${targetpath}/knx/master echo echo Size of finished iso is: ls -lh ${targetpath}/knx/knoppix.iso echo echo Script finished,the ISO is stored in ${targetpath}/knx/knoppix.iso read -p "Press any key to end" } ######################################################################################################### #Main body of script ######################################################################################################### targetpath=/mnt/hda4 target=hda4 extfilepath=hda3 TMP=${targetpath}/knx/tmp mkswap /dev/hda1 swapon /dev/hda1 mount ${targetpath} if [ "${?}" ne "0" ]; then echo "Sorry, cannot proceed ${targetpath} cannot be mounted" read -p "Press any key" fi mount /mnt/${extfilepath} if [ "${?}" ne "0" ]; then echo "Sorry, cannot proceed /mnt/${extfilepath} cannot be mounted" read -p "Press any key" fi mainmenu
Finally, install3.shCode:#!/bin/bash #Functions############################################################################ build2() { apt-get remove -y emacs21 emacs21-bin-common emacs21-common emacsen-common gettext-el zile apt-get remove -y `dpkg-query -l | grep i18n | grep kde | cut -d' ' -f3` apt-get remove -y --purge openoffice.* #298M of disk space will be freed apt-get autoremove -y clean1 } ############ build3() { apt-get remove -y emacs21 emacs21-bin-common emacs21-common emacsen-common gettext-el zile apt-get remove -y `dpkg-query -l | grep i18n | grep kde | cut -d' ' -f3` apt-get remove -y --purge openoffice.* #298M of disk space will be freed apt-get autoremove -y clean1 apt-get remove -y --purge aalib1 apt-get remove -y --purge anthy apt-get remove -y --purge anacron rm -rf /var/log/apache2 rm -rf /etc/apache2 apt-get remove -y --purge apache2 apt-get remove -y --purge apache2-mpm-prefork apt-get remove -y --purge apache2-utils apt-get remove -y --purge apache2.2-common apt-get remove -y --purge atitvout apt-get remove -y --purge audacity apt-get remove -y --purge aumix-gtk apt-get remove -y --purge bb #not installed? apt-get remove -y --purge bittorrent rm -rf /etc/brltty apt-get remove -y --purge brltty apt-get autoremove -y apt-get remove -y --purge cdparanoia apt-get remove -y --purge cowsay apt-get remove -y --purge dcraw apt-get remove -y --purge dictionaries-common apt-get autoremove -y apt-get remove -y --purge diffstat apt-get remove -y --purge ding apt-get remove -y --purge dvbackup apt-get remove -y --purge dvb-mpegtools apt-get remove -y --purge dvbsnoop apt-get remove -y --purge dvbstream apt-get remove -y --purge dvbtune apt-get remove -y --purge dvb-utils apt-get remove -y --purge dvdauthor apt-get remove -y --purge dvdbackup apt-get remove -y --purge efax apt-get remove -y --purge elinks apt-get remove -y --purge fetchmail apt-get remove -y --purge fluxbox apt-get remove -y --purge fortunes-debian-hints apt-get remove -y freemind apt-get remove -y --purge freenx #apt-get remove -y --purge freenx-knoppix-ja apt-get remove -y --purge gif2png apt-get remove -y --purge giftrans apt-get remove -y --purge gimp apt-get remove -y --purge gimp-data apt-get autoremove -y #apt-get remove -y gnome-keyring # Do not purge, as also tremoves gparted apt-get remove -y --purge gnupg2 apt-get remove -y --purge gocr apt-get remove -y --purge gphoto2 apt-get remove -y --purge gqcam apt-get remove -y gsm-utils apt-get remove -y --purge gtkam #apt-get remove -y htdig # When purged also removed kde-core kde-services-knoppix apt-get autoremove -y apt-get remove -y iceweasel apt-get remove -y icedove apt-get remove -y --purge isdnactivecards apt-get remove -y kasumi apt-get remove -y kalarm apt-get remove -y kandy apt-get remove -y kbear apt-get remove -y knotes apt-get remove -y libkdegames1 apt-get remove -y --purge keyboard-tr-knoppix apt-get remove -y kiconedit apt-get remove -y --purge kmail # apt-get remove -y --purge kmix apt-get remove -y --purge knode apt-get remove -y --purge konsolekalendar apt-get remove -y --purge kpdf apt-get remove -y --purge kpf apt-get remove -y --purge kphone apt-get remove -y --purge kteatime apt-get remove -y --purge ktnef apt-get remove -y kview apt-get remove -y less apt-get remove -y lftp apt-get remove -y libapache-session-perl # apt-get remove -y libapache-mod-jk apt-get remove -y --purge libghemical-data apt-get remove -y libgl1-mesa-dri # apt-get remove -y libsane apt-get remove -y --purge libhsqldb-java apt-get remove -y --purge libjline-java apt-get remove -y isomaster apt-get remove -y --purge lynx apt-get remove -y --purge mailx apt-get remove -y --purge manpages apt-get remove -y --purge mikmod apt-get remove -y monopd apt-get remove -y --purge mpg321 apt-get remove -y --purge nano apt-get remove -y --purge nvtv apt-get remove -y --purge nxagent apt-get remove -y --purge nxdesktop apt-get remove -y --purge nxlibs apt-get remove -y --purge nxproxy apt-get remove -y --purge nxsetup-knoppix apt-get remove -y --purge nxssh apt-get remove -y --purge outguess apt-get remove -y pioneers-server-data apt-get remove -y --purge pgpgpg apt-get remove -y --purge pia apt-get remove -y --purge procmail apt-get remove -y --purge kqemu-common apt-get remove -y --purge qemu-knoppix apt-get remove -y --purge qemu apt-get remove -y --purge radio apt-get autoremove -y apt-get remove -y --purge reportbug apt-get remove -y --purge scantv apt-get remove -y --purge screen apt-get remove -y --purge scim apt-get autoremove -y apt-get remove -y smail apt-get remove -y squid-common apt-get remove -y --purge sound-recorder apt-get remove -y --purge sox apt-get remove -y --purge sweep apt-get autoremove -y apt-get remove -y synaptic apt-get remove -y --purge tightvncserver apt-get remove -y --purge vcdimager apt-get remove -y --purge vrms apt-get remove -y xawtv-plugins apt-get remove -y configure-xawtv apt-get remove -y xawtv apt-get remove -y --purge xchat-common #apt-get remove -y xdialog rm -rf /var/games apt-get remove -y xfonts-bolkhov-cp1251-75dpi apt-get remove -y --purge xlibs apt-get autoremove -y apt-get remove -y --purge xmms apt-get remove -y --purge xmms-modplug apt-get remove -y xnest apt-get remove -y --purge smpeg-xmms apt-get remove -y --purge zile apt-get remove -y etcskel-knoppix-ja apt-get remove -y knoppix-image-ja apt-get remove -y knoppix-initscripts-ja # apt-get remove -y knoppix-installer.ja apt-get remove -y mkdosswapfile-knoppix-ja apt-get remove -y netcardconfig-knoppix-ja apt-get remove -y qtparted-locale-ja apt-get remove -y rebuildfstab-knoppix-ja apt-get remove -y sambastart-knoppix-ja apt-get remove -y sash apt-get remove -y saveconfig-knoppix-ja apt-get remove -y scrollkeeper apt-get remove -y util-linux-locales #apt-get remove -y vim-runtime apt-get remove -y vim-common apt-get remove -y vim-gui-common apt-get remove -y vim-runtime apt-get remove -y vim-scripts apt-get remove -y vim clean1 } ############### clean1() { deborphan | xargs apt-get -y remove # May need to run next line three times due to stab source package list errors # deborphan | xargs apt-get -y remove # deborphan --find-config | xargs dpkg --purge remove # deborphan | xargs apt-get -y remove # deborphan --find-config | xargs dpkg --purge remove # deborphan | xargs apt-get -y remove # deborphan --find-config | xargs dpkg --purge remove COLUMNS=200 dpkg -l | grep ^rc | awk '{print $2} ' | xargs dpkg -P apt-get autoremove -y apt-get autoclean apt-get clean } #Main############################################################################ echo "Var1=${1} var2=${2} var3=${3}" lang=en echo echo prompt should be sh-3.1 echo #read -p "in chroot passed var ${*} " # Already mounted mount -t proc /proc proc >/dev/null 2>&1 echo Uninstallingsome packages , please wait... case ${1} in 2) build2;; 3) build3 ${1};; 4) ;; *) echo; read -p "Passed varibale ${1} Invailid Option"; exit;; esac # Installed packages # http://wiki.linuxhelp.net/index.php/...t_Guide#Remove # To provide list of all installed packages: # dpkg-query -W --showformat='${Installed-Size} ${Package} ${Status}\n' | grep -v deinstall | sort -n | awk '{print $1" "$2}' # apt-get remove openoffice-de-en manpages-de trans-de-en rm .bash_history rm -rf /tmp/* rm -rf /.rr_moved # Installing packages many logs and docs are created, If we need the space, rm -f /var/lib/apt/lists/*Packages rm -f /var/lib/apt/lists/*Release rm -f /var/lib/apt/lists/*Release.gpg rm -f /var/lib/dpkg/*old rm -f /var/cache/debconf/*old rm -f /var/cache/apt/*bin # Optional rm -rf /usr/share/doc/* # Starting X-based programs export DISPLAY=localhost:0.0 export LANGUAGE=en cp -Rpf /etc/skel /home/knoppix #cp /mnt/${2}/BuildImages/background.jpg /home/knoppix/ cp /usr/share/apps/ksplash/Themes/Default/locolor/* /usr/share/apps/ksplash/Themes/Default/ chown knoppix:knoppix -R /home/knoppix #read -p "Pause" echo echo -------------------------------------------- echo echo About to change user to knoppix: su knoppix echo Prompt will change to 'knoppix1tty1:#' echo echo KDE will start via next script - install3.sh echo # chmod -Rv ugo+rw /tmp chmod 777 /tmp echo #umount /mnt/${2} # rmdir /mnt/${2} su - knoppix -c "/install3.sh ${2}" ##################################################### # start of script part b ##################################################### echo echo install2 active again echo Make sure you have su root, make sure prompt is sh-3: clean1 #read -p "Run only after install3.sh and changes have been made to the KDE" # cd /home #mkdir /etc/skel-old #mv /etc/skel /etc/skel-old || error "Unable to move /etc/skel to /etc/skel-old " rm -rfv /etc/skel #cp -r /home/knoppix/.[a-zA-Z0-9]* /etc/skel mv /home/knoppix /etc/skel #sudo rsync -a /home/knoppix /etc/skel || error "Unable to move /home/knoppix to /etc/skel " chown -R root:root /etc/skel #chown -R root:root /ramdisk || error "Unable to chown root:root -ramdisk" rm /etc/X11/xorg.conf chmod 555 /tmp umount /proc umount /sys umount /dev >/dev/null 2>&1 # umount /mediahda4/knx/source/KNOPPIX/dev exit
Code:#!/bin/bash echo "Passed variable = ${1}" if [ ! -d /mnt/${1} ]; then sudo mkdir /mnt/${1} fi sudo mount /dev/${1} /mnt/${1} echo Run only after install2.sh echo prompt should be 'knoppix1tty1:#' echo echo KDE Changes Stage 1 echo --------------------- echo 1 - Control Center echo a - Appearance and Themes - Theme Manger echo KDE Classic echo b - Regional and Accessibility - Country Regions echo Make Default - Europe - Western - United Kingdom echo c - Regional and Accessibility - Keyboard Layout echo Delete all Active layouts and ADD UK layout echo d - Peripherals - Mouse -Icons change to "Double click to open files and folders" echo echo e - Internet and Nwtwork - Web Browser - Browser Indentification echo Add new 220.220.20.1 and 220.220.20.2 , Internet Explorer 6.0 on Win XP echo echo 2 - Open Root shell and enter 'kdesu konqueror' echo a- goto /etc/default/locale and change properties to all 'Can Read and Write' echo Next, open and change lang=en_US echo b- goto /etc/init.d/knoppix-autoconfig and change properties to all 'Can Read and Write' echo Next, open and change LANGUAGE=uk - LINE:137 V5.1 ONLY echo c- goto /etc/X11/Xsession.d/45xsession and change properties to all 'Can Read and Write' echo i - Line 80 add - .config, - in front of .acrorc echo ii - Line 148 change to: rsync -Ha --ignore-existing /etc/skel $HOME/ 2 -redirect- /dev/null echo 111 - Delete from line 175 to 198. Removes loading of index.html via variable INDEXFILE echo #read -p "pause" lang=en #startx /usr/bin/startkde -- :1 startx sudo chmod -R 777 /home/knoppix/.config/ sudo chmod -R 777 /home/knoppix/.local/ #read -p "pause" #sudo chmod -R 777 /home/knoppix/.*/ # find how to make all the contained files 644 #Blanket umount sudo umount -l /mnt/fd0 >/dev/null 2>&1 sudo umount -l /media/fd0 >/dev/null 2>&1 sudo umount -l /share1 >/dev/null 2>&1 sudo umount -l /media/hda2 >/dev/null 2>&1 sudo umount -l /media/hda3 >/dev/null 2>&1 sudo umount -l /media/hda4 >/dev/null 2>&1 sudo umount -l /mnt/hda2 >/dev/null 2>&1 sudo umount -l /mnt/${1} >/dev/null 2>&1 sudo umount -l /mnt/hda4 >/dev/null 2>&1 if [ -d /media/hda4 ]; then sudo rm -rf /media/hda4; fi if [ -d /media/hda2 ]; then sudo rm -rf /media/hda2; fi if [ -d /media/hda3 ]; then sudo rm -rf /media/hda3; fi if [ -d /mnt/hda4 ]; then sudo rm -rf /mnt/hda4; fi if [ -d /mnt/hda2 ]; then sudo rm -rf /mnt/hda2; fi if [ -d /mnt/${1} ]; then sudo rm -rf /mnt/${1}; fi exit

Yealink T48S VoIP/SIP Phone, 2 x Gigabit Ports PoE 7" Color SIP-T48S | TESTED
$34.95
Grandstream GXW4224 24-Line FXS Analog VoIP Gateway, Ethernet RJ-45 Black
$165.00
Lot of 4 USED IPitomy IP620-B with IPX-32 DSS Expansion Module VoIP Phone POE
$225.00
Lot of 9 Used IPitomy IP320-P HD POE Voice Speakerphone 12-Line VoIP Phone
$225.00
NEW Cisco CP-840 Wireless WiFi IP VoIP Phone 840 w Battery Charger Cable
$800.00
Yealink SIP-T33G IP Phone 4-LineSpeakerphone VoIP Desk Phone Black w/ Power Sply
$25.00
Grandstream HT701 1-Port FXS Analog Telephone Adapter ATA VoIP Gateway -Free S/H
$19.99
Grandstream WP810 Portable Cordless Wi-Fi IP Phone
$49.28
Set of 5 USED IPitomy IP620-B HD VoIP 6-Line IP Phone Speakerphone Ethernet POE
$149.00
SIM Bank 32 SIM Card Slots Ethernet SIM Server for GoIP
$400.00