-
poor persistent file
Hi! (I am not writing here about the PC I am trying to install but about another one) As I can't have my AES container (knoppix.aes) where I want (as I could do with Knoppix 5) containing some of my configuration files, I wrote two scripts, - one to mount the AES container and copy my personnal configuration to the Knoppix session - the second one to copy back the modified configuration files to the AES container and umount: Notes: - I included install of some tools too in my script (Flash, Skype here) - sudo kill -9 $(ps opid= -C grep) because the hardisk on this PC is running from the startup for hours looking for a file, I don't why - I could have had cookies and some other browser datas
PHP Code:
# PERSTON sudo kill -9 $(ps opid= -C grep) mkdir ~/Desktop/knoppix sudo losetup /dev/loop0 /media/sdc1/knoppix.aes sudo cryptsetup luksOpen /dev/loop0 knoppix sudo mount -t ext3 /dev/mapper/knoppix ~/Desktop/knoppix/ sudo cp /home/knoppix/Desktop/knoppix/home/knoppix/Desktop/bookmark.html ~/Desktop/ sudo cp -a /home/knoppix/Desktop/knoppix/home/knoppix/.icedove ~ sudo cp -a /home/knoppix/Desktop/knoppix/home/knoppix/.ssh ~ sudo cp -a /home/knoppix/Desktop/knoppix/home/knoppix/.Skype ~ sudo cp -r /home/knoppix/Desktop/knoppix/etc/hosts /etc/hosts # SKYPE sudo cp -a /home/knoppix/Desktop/knoppix/home/knoppix/Desktop/binaire/skype_staticQT-4.0.0.8 ~/Desktop/ ~/Desktop/skype_staticQT-4.0.0.8/skype & # FLASH sudo mkdir ~/.mozilla/plugins/ sudo cp /home/knoppix/Desktop/knoppix/home/knoppix/Desktop/binary/libflashplayer.so ~/.mozilla/plugins/ sudo cp -r /home/knoppix/Desktop/knoppix/home/knoppix/Desktop/binary/usr/* /usr
PHP Code:
# PERSTOFF echo Do not forget to close all used files (mail, shell, skype...) sleep 10 sudo cp -a ~/.Skype /home/knoppix/Desktop/knoppix/home/knoppix/ sleep 10 sudo umount ~/Desktop/knoppix/ sudo cryptsetup luksClose knoppix sudo losetup -d /dev/loop0
yes, that's a poor way from a beginner...
-
The inserted code is unreadable. Please use the button "Go Advanced" and then the icon for "Wrap [CODE] tags around selected text".
Use "Preview Post" before "Submit Reply".
If "noscript" is active for http://knoppix.net/forum/, disable it for this website; otherwise you cannot use the format abilities.
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
![New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C picture](/store/img/g/tqEAAOSwkbxmR-l8/s-l225/New-Precision-DWDM-SFP-10G-80km-Tunable-Transceive.jpg)
New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C
$90.00
![LOT OF 20 Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module picture](/store/img/g/JEEAAOSwzu9ibCFX/s-l225/LOT-OF-20-Genuine-Cisco-SFP-10G-SR-V03-10GBASE-SR-.jpg)
LOT OF 20 Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module
$95.00
![SFP-10G-SR CISCO 10G SR SFP+ C-CLASS TRANSCEIVER 10 PACK picture](/store/img/g/qxMAAOSwBBFl62ur/s-l225/SFP-10G-SR-CISCO-10G-SR-SFP-C-CLASS-TRANSCEIVER-10.jpg)
SFP-10G-SR CISCO 10G SR SFP+ C-CLASS TRANSCEIVER 10 PACK
$99.00
![LOT OF 10 455883-B21 HP 10Gb SR SFP Transceiver 455885-001 456096-001 picture](/store/img/g/lj8AAOSwvYJlqVsP/s-l225/LOT-OF-10-455883-B21-HP-10Gb-SR-SFP-Transceiver-45.jpg)
LOT OF 10 455883-B21 HP 10Gb SR SFP Transceiver 455885-001 456096-001
$59.99
![ProLabs 10GBase-TX SFP+ RJ-45 Copper Transceiver Module P/N: SFP-10GBASE-T-C NEW picture](/store/img/g/NbQAAOSws1xmRieZ/s-l225/ProLabs-10GBase-TX-SFP-RJ-45-Copper-Transceiver-Mo.jpg)
ProLabs 10GBase-TX SFP+ RJ-45 Copper Transceiver Module P/N: SFP-10GBASE-T-C NEW
$34.99
![Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03 picture](/store/img/g/7yMAAOSwjyBiZxyT/s-l225/Genuine-Cisco-SFP-10G-SR-V03-10GBASE-SR-SFP-Transc.jpg)
Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver Module 10-2415-03
$8.00
![Mellanox Original MFM1T02A-SR 10GbE 10GBASE-SR SFP+ Transceiver picture](/store/img/g/RuoAAOSwZE5k3MnE/s-l225/Mellanox-Original-MFM1T02A-SR-10GbE-10GBASE-SR-SFP.jpg)
Mellanox Original MFM1T02A-SR 10GbE 10GBASE-SR SFP+ Transceiver
$9.00
![CISCO SFP-10G-LR SFP TRANSCEIVER MODULE GBIC 10G 10GB SFP - 1 Year Warranty picture](/store/img/g/FkQAAOSwtBZbqRX9/s-l225/CISCO-SFP-10G-LR-SFP-TRANSCEIVER-MODULE-GBIC-10G-1.jpg)
CISCO SFP-10G-LR SFP TRANSCEIVER MODULE GBIC 10G 10GB SFP - 1 Year Warranty
$39.99
![Lot (10) Dell 0N8TDR 850nm SFP-10G-SR-85C 10Gbs sfp+ FTLX8574D3BNL-FC N8TDR NEW picture](/store/img/g/E7cAAOSw98tljuIT/s-l225/Lot-10-Dell-0N8TDR-850nm-SFP-10G-SR-85C-10Gbs-sfp-.jpg)
Lot (10) Dell 0N8TDR 850nm SFP-10G-SR-85C 10Gbs sfp+ FTLX8574D3BNL-FC N8TDR NEW
$68.00
![New Sealed Cisco SFP-10G-LR 10GBASE-LR SFP Plug-in GBIC Transceiver module A picture](/store/img/g/uk8AAOSwRIxmasg1/s-l225/New-Sealed-Cisco-SFP-10G-LR-10GBASE-LR-SFP-Plug-in.jpg)
New Sealed Cisco SFP-10G-LR 10GBASE-LR SFP Plug-in GBIC Transceiver module A
$15.80