Results 1 to 5 of 5

Thread: Help with Remastering Questions

  1. #1

    Help with Remastering Questions

    Hello all,

    I am in the process of remastering the CD for a second time and wanted to know a few things. I have looked thru the forums and did not see this awnsered but if it is please point me to it.

    1) I would like to have the cd auto mount a USB pen drive that would have /var on it. THis way mysql and logs can be written to USB stick. Can this be done so knoppix will auto use the USB drive?

    2) How to I change the kde style on the apps to be different.?

    Thanks Nick

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    For your #1 I hammered out a bash shell script that checks to see if a USB drive exists at /dev/sda1. If it does then it makes a temporary directory & copies the existsing contents of /var to it. Then it mounts the USB drive as /var and copies the contents of the temp directory to the new /var. I have no idea if this will actually work but I figure this is a good starting point. All the conditional if statements are present to allow for a graceful failure. I maintain no guarantee or warranty in regards to the script: Use it at your own risk.
    Code:
    #!/bin/bash
    #The following if tests for a block device at /dev/sda1
    if [ -b /dev/sda1 ] ; then
    	echo "The USB drive exists."
    	mkdir /home/knoppix/temp
    	#if we made the temp directory then rsync copy the /var to the temp
    	if [ -d /home/knoppix/temp ] ; then
    		rsync -Ha --ignore-existing /var/ /home/knoppix/temp/
    		if [ $? -eq 0 ] ; then
    			#if the rsync copy was successful then mount USB drive
    			mount -t vfat /dev/sda1 /var
    			if [ $? -eq 0 ] ; then
    				#if the mount is successful then rsync copy to the USB drive
    				rsync -Ha --ignore-existing /home/knoppix/temp/ /var
    				if [ $? -eq 0 ] ; then
    					#if that was successful then we are done
    					echo "Copy complete. /var is now the mounted USB drive."
    				else
    					"Could not copy /home/knoppix/temp to mounted /var."
    					exit
    				fi
    			else
    				"Could not copy /var to temp."
    				exit
    			fi
    		else
    			echo "Could not mount the USB drive." 
    			exit
    		fi
    	else
    		"Could not make temp directory."
    		exit
    	fi
    else
            echo "USB drive does not exist"
            exit
    fi
    As for your #2, you can change the widget style and the window style in the KDE Control Center. This is located in the K menu or use the command kcontrol. I don't like the default style so I like to install the kdeartwork package and use the Plastik style.
    I hope this helps.
    James

  3. #3
    thanks for the script. I will give it a try. For #2 is that the only way to change. I usually use fluxbox and some of the apps like ethereal come up with the kde theme on it. SO I was just wanting to change it in a config file. Is that possible?

    Nick

  4. #4
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    some of the apps like ethereal come up with the kde theme on it. SO I was just wanting to change it in a config file. Is that possible?
    If I recall correctly, the ethereal GUI is based on GTK+ not QT/KDE. So now the question is how do we change the GTK themes?
    I noticed that Knoppix includes the following packages:
    Code:
    gtk-engines-geramik      0.26-2                   Geramik GTK1.x Theme
    gtk-engines-geramik-data 0.26-2                   Geramik GTK Theme bitmaps
    gtk-engines-qtpixmap     0.28-1.1                 QtPixmap GTK1.x theming engine
    gtk2-engines-geramik     0.26-2                   Geramik GTK2.x Theme
    gtk2-engines-qtpixmap    0.28-1.1                 QtPixmap GTK2.x theming engine
    It looks like those packages are the ones that supply the GTK apps with their widget styles. You might consider searching the forum about changing GTK themes or maybe even posting this question in the General forum so it gets more exposure.
    I hope this helps.
    James

  5. #5
    thank you for your help. Forgto Ethereal was a gtk2 app, just looks so much like plastik from kde.

    Thanks

Similar Threads

  1. Few questions about remastering...
    By Sephiroth? in forum Customising & Remastering
    Replies: 1
    Last Post: 04-27-2006, 05:15 PM
  2. Some questions about remastering
    By Trace Green in forum Customising & Remastering
    Replies: 2
    Last Post: 05-14-2005, 04:36 AM
  3. A few Remastering Questions
    By DeadCreep666 in forum Customising & Remastering
    Replies: 1
    Last Post: 08-09-2004, 12:28 PM
  4. A few questions before remastering :-)
    By Gamito in forum Customising & Remastering
    Replies: 0
    Last Post: 12-15-2003, 05:33 PM
  5. Remastering questions.
    By TDSK in forum Customising & Remastering
    Replies: 1
    Last Post: 05-27-2003, 08:43 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
  •  


Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5

Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5" 4-BAY 32GB RAM No OS 2x 495w

$174.95



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



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



Microsoft Windows Server 2022 Standard 64-bit License & DVD 16 Core US Shipping picture

Microsoft Windows Server 2022 Standard 64-bit License & DVD 16 Core US Shipping

$34.99



Supermicro 1027GR-TSF 1U Rackmount Server 2x Xeon 2.3GHz 128GB DDR3 picture

Supermicro 1027GR-TSF 1U Rackmount Server 2x Xeon 2.3GHz 128GB DDR3

$219.99



Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" x Xeon E5-2680 v2 2.8GHz 20-Cores 128gb 4x Trays

$349.99



Dell Poweredge R720 8SFF 2.5

Dell Poweredge R720 8SFF 2.5" 2x Xeon E5-2680 v2 2.8GHz 20-Cores 64gb 4x Trays

$259.99



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W

$409.99



WINDOWS SERVER 2025 [REMOTE DESKTOP SERVICES] 50 USER  RDS CAL SEALED picture

WINDOWS SERVER 2025 [REMOTE DESKTOP SERVICES] 50 USER RDS CAL SEALED

$119.18



Remote Desktop User & Device RDS CALs for Windows Server 2025, 2022 & 2019 picture

Remote Desktop User & Device RDS CALs for Windows Server 2025, 2022 & 2019

$174.99