-
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
![1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports picture](/store/img/g/fxsAAOSwZD5l6PSG/s-l225/1U-BareMetal-pfsense-opnsense-Router-Firewall-DNS-.jpg)
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
![1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 240GB SSD 2x 10GBE picture](/store/img/g/7KoAAOSwephiKTf4/s-l225/1U-Supermicro-Server-10-Bay-2x-Intel-Xeon-3-3Ghz-8.jpg)
1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 240GB SSD 2x 10GBE
$259.00
![Super micro Server picture](/store/img/g/PNgAAOSweU1mSkvR/s-l225/Super-micro-Server.jpg)
Super micro Server
$168.00
![Supermicro 1U Server X9SRI-F Xeon E5-2640 v2 2.5Ghz 16-Cores / 64GB / No HDD picture](/store/img/g/aYkAAOSwLGpmYf9P/s-l225/Supermicro-1U-Server-X9SRI-F-Xeon-E5-2640-v2-2-5Gh.jpg)
Supermicro 1U Server X9SRI-F Xeon E5-2640 v2 2.5Ghz 16-Cores / 64GB / No HDD
$149.99
![HP Proliant MicroServer (Model: HSTNS-5151) NO HARD DRIVES-Power Tested, picture](/store/img/g/WmMAAOSwo-9mcFYr/s-l225/HP-Proliant-MicroServer-Model-HSTNS-5151-NO-HARD-D.jpg)
HP Proliant MicroServer (Model: HSTNS-5151) NO HARD DRIVES-Power Tested,
$99.99
![SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture](/store/img/g/MFoAAOSwQYhmavYc/s-l225/SuperMicro-Server-505-2-Intel-Atom-2-4GHz-8GB-RAM-.jpg)
SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount
$202.49
![HP ProLiant MicroServer Gen10 Plus - 16GB RAM No HDD picture](/store/img/g/RbwAAOSwgolmefdq/s-l225/HP-ProLiant-MicroServer-Gen10-Plus-16GB-RAM-No-HDD.jpg)
HP ProLiant MicroServer Gen10 Plus - 16GB RAM No HDD
$500.00
![SuperMicro SuperServer 5018A-FTN4 505-2 Intel Atom @ 2.4GHz 8GB w/ Ears picture](/store/img/g/aUIAAOSwlmVmVlh9/s-l225/SuperMicro-SuperServer-5018A-FTN4-505-2-Intel-Atom.jpg)
SuperMicro SuperServer 5018A-FTN4 505-2 Intel Atom @ 2.4GHz 8GB w/ Ears
$174.99
![HPE ProLiant v2 Ultra Micro Tower Server Pentium Gold G6405 16GB RAM P69102005 picture](/store/img/g/2EUAAOSwLr5l1g27/s-l225/HPE-ProLiant-v2-Ultra-Micro-Tower-Server-Pentium-G.jpg)
HPE ProLiant v2 Ultra Micro Tower Server Pentium Gold G6405 16GB RAM P69102005
$696.73
![SuperMicro SuperServer 5038MR-H8TRF Blade w/X10SRD-F Board E5-2630v3 Proc 128GB picture](/store/img/g/cxoAAOSwZ0NlcLME/s-l225/SuperMicro-SuperServer-5038MR-H8TRF-Blade-w-X10SRD.jpg)
SuperMicro SuperServer 5038MR-H8TRF Blade w/X10SRD-F Board E5-2630v3 Proc 128GB
$263.96