-
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
-
Senior Member
registered user
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
-
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
-
Senior Member
registered user
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
-
thank you for your help. Forgto Ethereal was a gtk2 app, just looks so much like plastik from kde.
Thanks
Similar Threads
-
By Sephiroth? in forum Customising & Remastering
Replies: 1
Last Post: 04-27-2006, 05:15 PM
-
By Trace Green in forum Customising & Remastering
Replies: 2
Last Post: 05-14-2005, 04:36 AM
-
By DeadCreep666 in forum Customising & Remastering
Replies: 1
Last Post: 08-09-2004, 12:28 PM
-
By Gamito in forum Customising & Remastering
Replies: 0
Last Post: 12-15-2003, 05:33 PM
-
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
-
Forum Rules

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

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

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

Dell PowerEdge R730XD Server 2x E5-2695 V4 = 36 Cores H730p 32GB RAM 4x trays
$649.99

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

Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Core | 32GB | HBA330 | 2x 1100w
$359.99

Dell Poweredge T420 SFF 2x E5-2430 v2 2.5Ghz / 64gb / H710 / 8x Trays / 2x 495w
$394.99

Dell PowerEdge R730XD 24B Barebones 2x Heatsinks 2x PSU No CPU/RAM/Raid/Nic
$149.99

DELL R640 10SFF Server 2x Gold 6152 2.1GHz =44 Cores 64GB H730p 4xRJ45
$959.00

Dell PowerEdge R630 Rack-Mounted Server - Dual Intel Xeon, 32GB RAM
$219.99