-
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

Cisco/Linksys SPA2102 VoIP Phone Adapter Router 2FXS (Unlocked)
$17.99

Grandstream WP810 Portable Cordless Wi-Fi IP Phone
$54.99

Yealink MP54 - VoIP Phone - Black Teams phone Android POE WIFI Bluetooth
$49.95

Yealink SIP-T48S Gigabit IP Phone Complete Unused
$64.95

Cisco CP-8821-K9 Wireless VoIP Phone w/ Battery - WORKING
$144.99

Yealink SIP-T58W-PRO Gigabit VoIP IP Phone 7" Touchscreen Wi-Fi Bluetooth PoE
$324.99

Lot Of 16: Polycom VVX 501 VoIP Touchscreen Desktop Phone W/Handsets & Stands
$150.00

Verizon Yealink SIP-T54W IP Phone Gigabit WiFi Bluetooth VoIP Excellent Tested
$37.99

Cisco CP-8832-K9 V06 IP Conference Phone With PoE New
$99.99

Lot of 35 Polycom VVX 300 & VVX400 IP Phones
$150.00