-
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
![15.6](/store/img/aFMAAOSwS4dmT5XL/s-l225//15-6-Lenovo-ThinkPad-Laptop-PC-Intel-i5-16GB-RAM-5.jpg)
15.6" Lenovo ThinkPad Laptop PC: Intel i5 16GB RAM 512 SSD Windows 10 Webcam
$229.99
![Lenovo ThinkPad L14 14” FHD Laptop AMD Ryzen 5 PRO 16GB RAM 512GB SSD Windows 10 picture](/store/img/1fMAAOSwMBhmMQfq/s-l225//Lenovo-ThinkPad-L14-14-FHD-Laptop-AMD-Ryzen-5-PRO-.jpg)
Lenovo ThinkPad L14 14” FHD Laptop AMD Ryzen 5 PRO 16GB RAM 512GB SSD Windows 10
$250.79
![Lenovo ThinkPad 14](/store/img/9xEAAOSwHG9mnzLl/s-l225//Lenovo-ThinkPad-14-HD-Laptop-PC-Core-i5-8GB-RAM-12.jpg)
Lenovo ThinkPad 14" HD Laptop PC Core i5 8GB RAM 128GB SSD Windows 10 WiFi
$139.99
![Lenovo ThinkBook 15 Gen 4 Notebook 15.6](/store/img/sfoAAOSwilxmMx9X/s-l225//Lenovo-ThinkBook-15-Gen-4-Notebook-15-6-FHD-AMD-R7.jpg)
Lenovo ThinkBook 15 Gen 4 Notebook 15.6" FHD AMD R7 5825U 16GB RAM 512GB SSD
$479.99
![Lenovo LOQ 15.6](/store/img/KeEAAOSw~gFmQyw7/s-l225//Lenovo-LOQ-15-6-FHD-144Hz-Gaming-Laptop-i5-12450HX.jpg)
Lenovo LOQ 15.6" FHD 144Hz Gaming Laptop i5-12450HX 12GB RAM 512GB SSD RTX 3050
$599.99
![Lenovo ThinkPad X1 Yoga Gen 6 i7-1185G7 FHD Touch 16GB RAM/512GB SSD (No O.S.) picture](/store/img/qOsAAOSwDPJmnpjl/s-l225//Lenovo-ThinkPad-X1-Yoga-Gen-6-i7-1185G7-FHD-Touch-.jpg)
Lenovo ThinkPad X1 Yoga Gen 6 i7-1185G7 FHD Touch 16GB RAM/512GB SSD (No O.S.)
$374.99
![Lenovo ThinkBook 15 Gen 4 Notebook 15.6](/store/img/whYAAOSwnTtmjMWA/s-l225//Lenovo-ThinkBook-15-Gen-4-Notebook-15-6-FHD-Intel-.jpg)
Lenovo ThinkBook 15 Gen 4 Notebook 15.6" FHD Intel Core i7-1255U 8GB RAM
$514.99
![Lenovo - LOQ 15.6](/store/img/bZcAAOSwRxZmUJA4/s-l225//Lenovo-LOQ-15-6-Gaming-Laptop-FHD-AMD-Ryzen-7-7435.jpg)
Lenovo - LOQ 15.6" Gaming Laptop FHD - AMD Ryzen 7 7435HS with 16GB Memory - ...
$799.99
![Lenovo ThinkPad E, AMD, 8GB RAM, 256GB SSD, No OS, 20T80005US picture](/store/img/-5MAAOSwIydllv39/s-l225//Lenovo-ThinkPad-E-AMD-8GB-RAM-256GB-SSD-No-OS-20T8.jpg)
Lenovo ThinkPad E, AMD, 8GB RAM, 256GB SSD, No OS, 20T80005US
$280.00
![Lenovo LOQ Laptop, i7-13700H, GB, Up to 1TB SSD, Up To Win 11 Pro picture](/store/img/qXcAAOSwO-VmloKv/s-l225//Lenovo-LOQ-Laptop-i7-13700H-GB-Up-to-1TB-SSD-Up-To.jpg)
Lenovo LOQ Laptop, i7-13700H, GB, Up to 1TB SSD, Up To Win 11 Pro
$613.99