-
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
![DELL PRECISION 7510 | INTEL XEON E3-1505M V5 2.80GHZ | 256GB | 32GB | NO OS picture](/store/img/g/qv0AAOSwuydmdXkd/s-l225/DELL-PRECISION-7510-INTEL-XEON-E3-1505M-V5-2-80GHZ.jpg)
DELL PRECISION 7510 | INTEL XEON E3-1505M V5 2.80GHZ | 256GB | 32GB | NO OS
$159.99
![HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA picture](/store/img/g/rIQAAOSwN9Nlnw4a/s-l225/HP-Workstation-Z640-2x-Xeon-E5-2623V4-32GB-Ram-Dua.jpg)
HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA
$161.24
![DELL PRECISION 7510 | INTEL XEON E3-1505M V5 2.80GHZ | 512GB | 32GB RAM | NO OS picture](/store/img/g/rZ0AAOSw6UhmdEq0/s-l225/DELL-PRECISION-7510-INTEL-XEON-E3-1505M-V5-2-80GHZ.jpg)
DELL PRECISION 7510 | INTEL XEON E3-1505M V5 2.80GHZ | 512GB | 32GB RAM | NO OS
$189.99
![Apple MAC Pro A1481 Late 2013 Xeon Quad-Core 3.7GHz 32GB 1TB SSD FirePro D300 picture](/store/img/g/LSYAAOSwLetmb~J-/s-l225/Apple-MAC-Pro-A1481-Late-2013-Xeon-Quad-Core-3-7GH.jpg)
Apple MAC Pro A1481 Late 2013 Xeon Quad-Core 3.7GHz 32GB 1TB SSD FirePro D300
$285.00
![SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor picture](/store/img/g/fEMAAOSwy1JmPnWm/s-l225/SR1XP-Intel-Xeon-E5-2680-v3-12-Core-30MB-2-5GHz-LG.jpg)
SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor
$3.96
![Genuine Intel Xeon E5-2680V4 2.40Ghz 14-Core 35MB LGA2011 CPU P/N: SR2N7 picture](/store/img/g/fu8AAOSweXNkGJuo/s-l225/Genuine-Intel-Xeon-E5-2680V4-2-40Ghz-14-Core-35MB-.jpg)
Genuine Intel Xeon E5-2680V4 2.40Ghz 14-Core 35MB LGA2011 CPU P/N: SR2N7
$14.99
![Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU picture](/store/img/g/y6AAAOSwkWtmBd8U/s-l225/Intel-Xeon-Gold-6140-SR3AX-2-3GHz-18-Core-Processo.jpg)
Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU
$32.79
![Intel Xeon E7-8890 V4 2.20GHz 24-Core 60MB LGA2011 Server CPU Processor SR2SS picture](/store/img/g/GyQAAOSwT45lBMsz/s-l225/Intel-Xeon-E7-8890-V4-2-20GHz-24-Core-60MB-LGA2011.jpg)
Intel Xeon E7-8890 V4 2.20GHz 24-Core 60MB LGA2011 Server CPU Processor SR2SS
$29.99
![Intel Xeon E5-2667 V4 SR2P5 (3.2GHZ/8-CORE/25MB/135W) PROCESSOR CPU picture](/store/img/g/stMAAOSw7a1mct69/s-l225/Intel-Xeon-E5-2667-V4-SR2P5-3-2GHZ-8-CORE-25MB-135.jpg)
Intel Xeon E5-2667 V4 SR2P5 (3.2GHZ/8-CORE/25MB/135W) PROCESSOR CPU
$28.99
![Dell Precision Tower 5810 Xeon E5-1607 v3 3.1GHz 4GB RAM 1TB HDD Win10Pro #27 picture](/store/img/g/8rcAAOSwhJBmRlgv/s-l225/Dell-Precision-Tower-5810-Xeon-E5-1607-v3-3-1GHz-4.jpg)
Dell Precision Tower 5810 Xeon E5-1607 v3 3.1GHz 4GB RAM 1TB HDD Win10Pro #27
$99.99