-
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
![Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot picture](/store/img/g/oroAAOSwsJNmFPcr/s-l225/Type-C-USB-3-0-Flash-Drive-Thumb-Drive-Memory-Stic.jpg)
Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot
$73.29
![1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot picture](/store/img/g/PDMAAOSwlhdmFJ5R/s-l225/1TB-2TB-USB-3-0-Flash-Drive-Thumb-U-Disk-Memory-St.jpg)
1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot
$80.39
![Samsung - 990 980 970 PRO & EVO 4TB 2TB 1 TB Internal PCle Gen 4x4 NVMe M.2SSD picture](/store/img/g/4jMAAOSwtO5maEst/s-l225/Samsung-990-980-970-PRO-EVO-4TB-2TB-1-TB-Internal-.jpg)
Samsung - 990 980 970 PRO & EVO 4TB 2TB 1 TB Internal PCle Gen 4x4 NVMe M.2SSD
$320.00
![Kingston KC600 1 TB Solid State Drive - 2.5](/store/img/g/Et0AAOSwMN9mdHZv/s-l225/Kingston-KC600-1-TB-Solid-State-Drive-2-5-Internal.jpg)
Kingston KC600 1 TB Solid State Drive - 2.5" Internal - SATA (SATA/600)
$60.00
![CISCO A03-D1TBSATA 1TB 7.2K 6G 2.5INCH SATA HDD picture](/store/img/g/qqcAAOSw~xVgcyGX/s-l225/CISCO-A03-D1TBSATA-1TB-7-2K-6G-2-5INCH-SATA-HDD.jpg)
CISCO A03-D1TBSATA 1TB 7.2K 6G 2.5INCH SATA HDD
$9.00
![HP MM1000GBKAL 1TB 2.5](/store/img/g/000AAOSwMFxmcavs/s-l225/HP-MM1000GBKAL-1TB-2-5-6Gb-s-7-2K-RPM-SATA-Hard-Dr.jpg)
HP MM1000GBKAL 1TB 2.5" 6Gb/s 7.2K RPM SATA Hard Drive P/N: 614829-003 Tested
$14.99
![1TB HDD/SSD 2.5](/store/img/g/IlgAAOSwtgpmKHfn/s-l225/1TB-HDD-SSD-2-5-SATA-Hard-Drive-for-Laptop-with-Wi.jpg)
1TB HDD/SSD 2.5" SATA Hard Drive for Laptop with Win 10/Win 11 Pro Pre-installed
$19.99
![Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive picture](/store/img/g/25EAAOSw2gplntqr/s-l225/Samsung-Geek-Squad-Certified-Refurbished-870-EVO-1.jpg)
Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive
$67.99
![Seagate ST1000DX001 1TB 3.5](/store/img/g/JfQAAOSw12dmXmPq/s-l225/Seagate-ST1000DX001-1TB-3-5-Desktop-Hybrid-SSHD-So.jpg)
Seagate ST1000DX001 1TB 3.5" Desktop Hybrid SSHD Solid-State Hybrid Drive
$33.38
![Internal HDD SATA 3.5](/store/img/g/PDYAAOSw-ONkwOKE/s-l225/Internal-HDD-SATA-3-5-250GB-2TB-Hard-Drive-with-Le.jpg)
Internal HDD SATA 3.5" 250GB-2TB Hard Drive with Legacy Windows 11 Pro Installed
$29.15