-
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

SFP TO RJ45 TRANSCEIVER SFP MODULE COPPER SFP OPTICAL PORT TO RJ45 ETHERNET PORT
$7.99

Dell Intel X710-DA2 5N7Y5 Dual-Port 10GbE SFP+ PCIe 3.0 x8 Network Adapter
$27.50

Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module
$699.99

NEW Sealed Cisco SFP-10G-LR 10GBASE-LR SFP+ 1310nm 10km *US Shipping*
$24.00

Genuine Cisco SFP-10G-SR 0-2415-03 10 Gigabit Transceiver
$5.40

Intel X520-DA2 10Gb 10Gbe 10 Gigabit Network Adapter NIC Dual Port E10G42BTDA
$28.94

HP 560SFP+ 10GB 2-port PCIe NIC Ethernet ADAPTER 669279-001 w/ (2) 10GB SFP+
$16.99

Lot of 5 Cisco 10G SFP+ 850nm 300m Transceiver Module P/N: SFP-10G-SR-10-2415-03
$15.00

Cisco QSFP-40G-SR-BD Module 10-2945-02 NEW CLAMSHELL
$45.50

Dell 10 Gigabit SFP+ SR Transceiver 0XYD50 NEW SEALED
$24.99