-
Senior Member
registered user
You might like to consider placing an icon on the KDE Desktop for users to click and automate the commands.
This link should help, if you decide to do this:
http://www.knoppix.net/forum/viewtopic.php?t=17445
I have found the following scripts work for start-up and saving and
restoring from a USB device. Naturally I'd be very interested in any more efficient alternative solutions.
For start-up LAMP KDE Desktop icon:
sudo /KNOPPIX/usr/local/bin/startLAMP
in /etc/skel/Desktop
and
#!/bin/bash
# Start Apache and MySQL. Put toophpix database into RAM. Open Mozilla browser.
/etc/init.d/apache start
rm -rf /var/lib/mysql
cp -rp /KNOPPIX/var/lib/mysql /var/lib
mysqld_safe &
mozilla "http://127.0.0.1/Toophpix/page3.php"
goes in /KNOPPIX/usr/local/bin/ directory
I use the same directories for the USB scripts.
For save to USB the commands I am using are:
sudo /usr/local/bin/saveToUSB
and
#!/bin/bash
# Back up toophpix data to USB device.
modprobe usb-storage
mkdir /mnt/usbstore
mount -t vfat /dev/sda1 /mnt/usbstore
mysqldump --opt -u root toophpix > /mnt/usbstore/toophpix.sql
umount /mnt/usbstore
For restore from USB the commands I am using are:
sudo /usr/local/bin/restoreFromUSB
and
#!/bin/bash
# Restore MySQL toophpix database from USB device
modprobe usb-storage
mkdir /mnt/usbstore
mount -t vfat /dev/sda1 /mnt/usbstore
mysql -u root toophpix < /mnt/usbstore/toophpix.sql
umount /mnt/usbstore
The umount commands at the end help ensure that the USB device can be
mounted if the user clicks on the
Desktop icon (Hard-Disk Partition sda1) that appears once Knoppix has
booted up or when the USB device is identified when inserted.
toophpix is the name of the database that is backed up.
Similar Threads
-
By PlatinumPlus in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 10-06-2005, 10:17 AM
-
By ilovelinux98 in forum Customising & Remastering
Replies: 2
Last Post: 04-25-2005, 08:27 AM
-
By ilovelinux98 in forum MS Windows & New to Linux
Replies: 0
Last Post: 04-23-2005, 09:30 PM
-
By Coume in forum General Support
Replies: 5
Last Post: 08-06-2003, 06:42 AM
-
By antti in forum General Support
Replies: 1
Last Post: 02-10-2003, 02:16 AM
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

Yealink T48S VoIP/SIP Phone, 2 x Gigabit Ports PoE 7" Color SIP-T48S | TESTED
$34.95

SIM Bank 32 SIM Card Slots Ethernet SIM Server for GoIP
$400.00

Poly CCX 400 Desktop Business Media Phone VoIP 2200-49700-019
$49.99

Grandstream VoIP Phone Adapter ATA 1-Line Black Ethernet (RJ-45) Micro USB
$27.07

Yealink SIP-T48S Business Phone BRAND NEW 4 PACK
$1000.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

Lot Of 5 Poly Edge E550 82M91AA IP Desktop Phone PoE New In Box
$1500.00

YEALINK W60B DECT VoIP BASE STATION VOIP SIP FOR UP TO 8 HANDSETS + OEM ADPTR
$50.00