-
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
![Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot picture](/store/img/g/pB0AAOSwrbRkIWhk/s-l225/Fanxiang-4TB-2TB-1TB-SSD-550MB-s-2-5-SATA-III-Inte.jpg)
Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot
$188.99
![Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot picture](/store/img/g/vt0AAOSwAgVls0tY/s-l225/Fanxiang-M-2-SATA-SSD-2TB-1TB-512GB-256GB-SSD-Inte.jpg)
Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot
$109.99
![SAMSUNG SSD 870 EVO 2.5](/store/img/g/kk8AAOSw0flknObe/s-l225/SAMSUNG-SSD-870-EVO-2-5-SATA-III-Solid-State-Drive.jpg)
SAMSUNG SSD 870 EVO 2.5" SATA III Solid State Drive 2TB 1TB 250GB 500GB LOT
$161.82
![4 TB SSD SATA III Drive 2.5](/store/img/g/3EQAAOSwjNlmAztr/s-l225/4-TB-SSD-SATA-III-Drive-2-5-Solid-State-Drive-SATA.jpg)
4 TB SSD SATA III Drive 2.5" Solid State Drive SATAIII 6Gb/s UP to 540MB/s
$148.00
![Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5](/store/img/g/RzIAAOSwSZNlN-zB/s-l225/Patriot-P210-128GB-256GB-512GB-1TB-2TB-2-5-SATA-3-.jpg)
Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot
$13.99
![SAMSUNG 850 EVO 500GB 2.5](/store/img/g/tqMAAOSwABBmbZba/s-l225/SAMSUNG-850-EVO-500GB-2-5-SATA-SSD-MZ-75E500-Grade.jpg)
SAMSUNG 850 EVO 500GB 2.5" SATA SSD MZ-75E500, Grade A SKU 10171
$28.99
![Fanxiang 256GB SSD 2.5'' SATA SSD III 6Gb/s 530MBs Internal Solid State Drive PC picture](/store/img/g/690AAOSwBG5mIiZf/s-l225/Fanxiang-256GB-SSD-2-5-SATA-SSD-III-6Gb-s-530MBs-I.jpg)
Fanxiang 256GB SSD 2.5'' SATA SSD III 6Gb/s 530MBs Internal Solid State Drive PC
$19.99
![Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture](/store/img/g/Nm4AAOSwUYBmXuae/s-l225/Netac-1TB-2TB-512GB-Internal-SSD-2-5-SATA-III-6Gb-.jpg)
Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot
$13.99
![Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot picture](/store/img/g/pB0AAOSwrbRkIWhk/s-l225/Fanxiang-SSD-512GB-1TB-2TB-4TB-2-5-SSD-SATA-III-In.jpg)
Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot
$107.99
![Fanxiang 256GB 512GB 1TB 2TB 4TB Internal SSD 2.5](/store/img/g/dccAAOSw1dpmXnCy/s-l225/Fanxiang-256GB-512GB-1TB-2TB-4TB-Internal-SSD-2-5-.jpg)
Fanxiang 256GB 512GB 1TB 2TB 4TB Internal SSD 2.5"SATA III Drive Desktop MAC Lot
$188.09