-
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
![Intel Xeon Platinum 8180 LGA3647 CPU Processor QL1F 28 Core 56T 1.8-3.2GHZ picture](/store/img/g/b68AAOSw6Hdmb1W1/s-l225/Intel-Xeon-Platinum-8180-LGA3647-CPU-Processor-QL1.jpg)
Intel Xeon Platinum 8180 LGA3647 CPU Processor QL1F 28 Core 56T 1.8-3.2GHZ
$159.00
![HP Z420 Workstation Xeon E5-2690 v2 3ghz 10-Cores 64gb 512gb SSD 4TB Win10 picture](/store/img/g/uwYAAOSwmQ5mKZCm/s-l225/HP-Z420-Workstation-Xeon-E5-2690-v2-3ghz-10-Cores-.jpg)
HP Z420 Workstation Xeon E5-2690 v2 3ghz 10-Cores 64gb 512gb SSD 4TB Win10
$239.99
![Intel Xeon Silver 4214 12-Core 2.20GHz FCLGA3647 CPU Processor - SRFB9 picture](/store/img/g/F2QAAOSwcBxmb1Gp/s-l225/Intel-Xeon-Silver-4214-12-Core-2-20GHz-FCLGA3647-C.jpg)
Intel Xeon Silver 4214 12-Core 2.20GHz FCLGA3647 CPU Processor - SRFB9
$129.99
![Intel Xeon E5-2697 V4 2.30 GHz 18C 2011-3 2400MHz 45MB 145W SR2JV CPU Processor picture](/store/img/g/CbkAAOSwwRxmavZk/s-l225/Intel-Xeon-E5-2697-V4-2-30-GHz-18C-2011-3-2400MHz-.jpg)
Intel Xeon E5-2697 V4 2.30 GHz 18C 2011-3 2400MHz 45MB 145W SR2JV CPU Processor
$45.00
![Intel Xeon E5-2680 v4 SR2N7 2.40GHz 35MB 14-Core LGA2011-3 CPU Processor picture](/store/img/g/bVoAAOSwsZ9lxn1h/s-l225/Intel-Xeon-E5-2680-v4-SR2N7-2-40GHz-35MB-14-Core-L.jpg)
Intel Xeon E5-2680 v4 SR2N7 2.40GHz 35MB 14-Core LGA2011-3 CPU Processor
$14.99
![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
$4.05
![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
![Lenovo Thinkstation P510 E5-1620 V4 16GB RAM 512GB SSD DVD Quadro M2000 W10 Pro picture](/store/img/g/IFEAAOSwcI5ma2LL/s-l225/Lenovo-Thinkstation-P510-E5-1620-V4-16GB-RAM-512GB.jpg)
Lenovo Thinkstation P510 E5-1620 V4 16GB RAM 512GB SSD DVD Quadro M2000 W10 Pro
$184.95
![Matched Pair Intel Xeon E5-2697 V2 E5-2690 V2 E5-2680 V2 E5-2670 V2 LGA2011 CPU picture](/store/img/g/G-QAAOSw5hFkShBO/s-l225/Matched-Pair-Intel-Xeon-E5-2697-V2-E5-2690-V2-E5-2.jpg)
Matched Pair Intel Xeon E5-2697 V2 E5-2690 V2 E5-2680 V2 E5-2670 V2 LGA2011 CPU
$56.90