-
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
![Vintage MiniScribe 3650 Hard Drive 5HH 42MB MFM — For Repair / Collection picture](/store/img/g/TuIAAOSwEFBmc1RY/s-l225/Vintage-MiniScribe-3650-Hard-Drive-5HH-42MB-MFM-Fo.jpg)
Vintage MiniScribe 3650 Hard Drive 5HH 42MB MFM — For Repair / Collection
$19.97
![Vintage Microsoft Wheel Mouse Optical Mouse Black CIB picture](/store/img/g/4DMAAOSwaTpmcxUN/s-l225/Vintage-Microsoft-Wheel-Mouse-Optical-Mouse-Black-.jpg)
Vintage Microsoft Wheel Mouse Optical Mouse Black CIB
$34.99
![Vintage Atari 800 Computer / Console - Untested picture](/store/img/g/fosAAOSwrltmc7GZ/s-l225/Vintage-Atari-800-Computer-Console-Untested.jpg)
Vintage Atari 800 Computer / Console - Untested
$100.00
![Vintage MICROSOFT WINDOWS 2000 Quick Start Booklet (no CD) picture](/store/img/g/nq0AAOSwXpVmc48t/s-l225/Vintage-MICROSOFT-WINDOWS-2000-Quick-Start-Booklet.jpg)
Vintage MICROSOFT WINDOWS 2000 Quick Start Booklet (no CD)
$4.50
![Vintage Dot Matrix Printer Contin Feed Paper 8.5 x 11. Lots of 5 to 250 sheets. picture](/store/img/g/498AAOSwJTdl1MqH/s-l225/Vintage-Dot-Matrix-Printer-Contin-Feed-Paper-8-5-x.jpg)
Vintage Dot Matrix Printer Contin Feed Paper 8.5 x 11. Lots of 5 to 250 sheets.
$4.00
![BlueSCSI V2 WiFi (Desktop) Modern Storage for Vintage Computers Latest Model picture](/store/img/g/GXUAAOSwWZRmPnHK/s-l225/BlueSCSI-V2-WiFi-Desktop-Modern-Storage-for-Vintag.jpg)
BlueSCSI V2 WiFi (Desktop) Modern Storage for Vintage Computers Latest Model
$53.50
![Dot Safe Internet Protection-Vintage with Book and CD picture](/store/img/g/uHYAAOSwYqVmc5pN/s-l225/Dot-Safe-Internet-Protection-Vintage-with-Book-and.jpg)
Dot Safe Internet Protection-Vintage with Book and CD
$12.99
![Vintage Intel Pentium MMX 233 Processor Socket 7 picture](/store/img/g/gegAAOSwo8Rmcz5O/s-l225/Vintage-Intel-Pentium-MMX-233-Processor-Socket-7.jpg)
Vintage Intel Pentium MMX 233 Processor Socket 7
$14.00
![Vintage Premio PC Pentium II Windows NT 4.0 SCSI 128MB RAM Used Tested picture](/store/img/g/QeIAAOSw0tpmc2QD/s-l225/Vintage-Premio-PC-Pentium-II-Windows-NT-4-0-SCSI-1.jpg)
Vintage Premio PC Pentium II Windows NT 4.0 SCSI 128MB RAM Used Tested
$262.48
![Lot of Assorted Vintage Computer and Electronic Parts Heatsinks Brackets Drives picture](/store/img/g/IDsAAOSwp8RmczaO/s-l225/Lot-of-Assorted-Vintage-Computer-and-Electronic-Pa.jpg)
Lot of Assorted Vintage Computer and Electronic Parts Heatsinks Brackets Drives
$37.49