-
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
![IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System picture](/store/img/g/xiEAAOSwwGtmRmN6/s-l225/IBM-Power-S822-8284-22A-12SFF-Power8-3-89GHz-6Core.jpg)
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System
$359.99
![IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU picture](/store/img/g/YXgAAOSwzGNjh6tH/s-l225/IBM-x3650-M4-2x-Xeon-E5-2670-2-6ghz-16-Core-64GB-M.jpg)
IBM x3650 M4 2x Xeon E5-2670 2.6ghz 16-Core / 64GB / M5110e / 2x PSU
$229.99
![IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD picture](/store/img/g/oRsAAOSw~pRmQitC/s-l225/IBM-System-x3550-M3-Dual-Intel-Xeon-X5650-2-67GHz-.jpg)
IBM System x3550 M3 Dual Intel Xeon X5650 @2.67GHz 32GB RAM No HDD
$74.50
![ibm server z series picture](/store/img/g/RKAAAOSw365hbg9L/s-l225/ibm-server-z-series.jpg)
ibm server z series
$16000.00
![IBM Cloud Object Storage Slicestor 2448 E5-2637 3.5Ghz 128GB DDR4 - NO HDD - NEW picture](/store/img/g/HlcAAOSwAltmVnFr/s-l225/IBM-Cloud-Object-Storage-Slicestor-2448-E5-2637-3-.jpg)
IBM Cloud Object Storage Slicestor 2448 E5-2637 3.5Ghz 128GB DDR4 - NO HDD - NEW
$399.00
![1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray picture](/store/img/g/RRoAAOSwonVguq4o/s-l225/1U-IBM-x3550-M5-4-Bay-SFF-SAS3-Server-2x-E5-2683-V.jpg)
1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray
$318.00
![IBM System x3650 M4 Dual Intel Xeon E5-2670 @2.60GHz 128GB RAM No HDD picture](/store/img/g/h7IAAOSwXXxmOOmR/s-l225/IBM-System-x3650-M4-Dual-Intel-Xeon-E5-2670-2-60GH.jpg)
IBM System x3650 M4 Dual Intel Xeon E5-2670 @2.60GHz 128GB RAM No HDD
$114.50
![IBM SYSTEM x3200 M2 Server - HDD wiped, No OS picture](/store/img/g/cfkAAOSwouxe1pSY/s-l225/IBM-SYSTEM-x3200-M2-Server-HDD-wiped-No-OS.jpg)
IBM SYSTEM x3200 M2 Server - HDD wiped, No OS
$75.00
![IBM System X 3250 M5 Single Xeon Quad Core E3-1220 v3 @3.1GHz,8GB RAM,Linux SUSE picture](/store/img/g/sNoAAOSw5Plkqcwy/s-l225/IBM-System-X-3250-M5-Single-Xeon-Quad-Core-E3-1220.jpg)
IBM System X 3250 M5 Single Xeon Quad Core E3-1220 v3 @3.1GHz,8GB RAM,Linux SUSE
$159.00
![IBM QRadar XX28-C 2U Server BOOTS 2x Xeon E5-2650 v3 2.3GHz 128GB RAM NO HDDs picture](/store/img/g/-sEAAOSwLcJkSQSy/s-l225/IBM-QRadar-XX28-C-2U-Server-BOOTS-2x-Xeon-E5-2650-.jpg)
IBM QRadar XX28-C 2U Server BOOTS 2x Xeon E5-2650 v3 2.3GHz 128GB RAM NO HDDs
$249.99