-
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...
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
![Vintage Apple IIe A2S2064 Personal Computer, Untested Powers On picture](/store/img/g/pbYAAOSwsa9mfJSM/s-l225/Vintage-Apple-IIe-A2S2064-Personal-Computer-Untest.jpg)
Vintage Apple IIe A2S2064 Personal Computer, Untested Powers On
$149.95
![Vintage COMPUSA Power Supply - 250 WATT ATX - 20 Pin picture](/store/img/g/0R8AAOSwhTlmfdtC/s-l225/Vintage-COMPUSA-Power-Supply-250-WATT-ATX-20-Pin.jpg)
Vintage COMPUSA Power Supply - 250 WATT ATX - 20 Pin
$209.99
![Vintage Circuit Board Steampunk Art picture](/store/img/g/W6gAAOSwVC9mfbjf/s-l225/Vintage-Circuit-Board-Steampunk-Art.jpg)
Vintage Circuit Board Steampunk Art
$10.00
![Vintage Dot Matrix Printer Contin Feed Paper 8.5 x 11. Lots of 5 to 250 sheets. picture](/store/img/g/498AAOSwJTdl1MqH/s-l225/Vintage-Dot-Matrix-Printer-Contin-Feed-Paper-8-5-x.jpg)
Vintage Dot Matrix Printer Contin Feed Paper 8.5 x 11. Lots of 5 to 250 sheets.
$4.00
![Vintage Compute Books Beginners Guide to Buying a Personal Computer ** RARE** picture](/store/img/g/P9oAAOSwWV5mfczM/s-l225/Vintage-Compute-Books-Beginners-Guide-to-Buying-a-.jpg)
Vintage Compute Books Beginners Guide to Buying a Personal Computer ** RARE**
$24.99
![Vintage Apple Computer - WWDC Bag Lot picture](/store/img/g/efkAAOSw3W9mfc-d/s-l225/Vintage-Apple-Computer-WWDC-Bag-Lot-.jpg)
Vintage Apple Computer - WWDC Bag Lot
$250.00
![Vintage ICP PSC-486 DX4-S 100Mhz SBC Single Board Computer with 4 Meg Ram picture](/store/img/g/lc8AAOSwBB9mfdMq/s-l225/Vintage-ICP-PSC-486-DX4-S-100Mhz-SBC-Single-Board-.jpg)
Vintage ICP PSC-486 DX4-S 100Mhz SBC Single Board Computer with 4 Meg Ram
$25.00
![Vintage 1987 Apple M0110A Keyboard - PARTS picture](/store/img/g/i5UAAOSwlelmfcLm/s-l225/Vintage-1987-Apple-M0110A-Keyboard-PARTS.jpg)
Vintage 1987 Apple M0110A Keyboard - PARTS
$25.00
![Vintage Commodore 64 VOICE MASTER SPEECH AND MUSIC PROCESSOR picture](/store/img/g/XJsAAOSwR0RmfHmY/s-l225/-Vintage-Commodore-64-VOICE-MASTER-SPEECH-AND-MUSI.jpg)
Vintage Commodore 64 VOICE MASTER SPEECH AND MUSIC PROCESSOR
$29.99
![Vintage Elcom A80ER-T-HE/LE Magnetic Strip Reader Encoder/Decoder (With Key) picture](/store/img/g/uqIAAOSww6lmYJJ7/s-l225/Vintage-Elcom-A80ER-T-HE-LE-Magnetic-Strip-Reader-.jpg)
Vintage Elcom A80ER-T-HE/LE Magnetic Strip Reader Encoder/Decoder (With Key)
$80.00