-
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
![Ripper (PC 1996) Vintage Game picture](/store/img/g/k8MAAOSw6odme1wX/s-l225/Ripper-PC-1996-Vintage-Game.jpg)
Ripper (PC 1996) Vintage Game
$39.95
![Cognac Vintage Leather Watch Strap picture](/store/img/g/Il0AAOSwN0Fme1W5/s-l225/Cognac-Vintage-Leather-Watch-Strap.jpg)
Cognac Vintage Leather Watch Strap
$80.00
![Vintage ATI VGA Wonder+ ISA VGA Video Graphics Card picture](/store/img/g/jOYAAOSwya1mevYL/s-l225/Vintage-ATI-VGA-Wonder-ISA-VGA-Video-Graphics-Card.jpg)
Vintage ATI VGA Wonder+ ISA VGA Video Graphics Card
$135.00
![Grey Leather Vintage Watch Band picture](/store/img/g/VowAAOSw3Qhme1WQ/s-l225/Grey-Leather-Vintage-Watch-Band.jpg)
Grey Leather Vintage Watch Band
$80.00
![Custom Vintage Windows 98 SE DOS Gaming Computer, Pentium II, Nvidia FX5200 picture](/store/img/g/3mIAAOSwD55me06E/s-l225/Custom-Vintage-Windows-98-SE-DOS-Gaming-Computer-P.jpg)
Custom Vintage Windows 98 SE DOS Gaming Computer, Pentium II, Nvidia FX5200
$200.00
![NOS VINTAGE COMPAQ PORTABLE III KEYBOARD NEW IN BOX picture](/store/img/g/qsAAAOSwEvRmeuzq/s-l225/NOS-VINTAGE-COMPAQ-PORTABLE-III-KEYBOARD-NEW-IN-BO.jpg)
NOS VINTAGE COMPAQ PORTABLE III KEYBOARD NEW IN BOX
$150.00
![Computerware Software Games Capture The Flag Mazerace Vtg Cassette picture](/store/img/g/vckAAOSwj8xmeznj/s-l225/Computerware-Software-Games-Capture-The-Flag-Mazer.jpg)
Computerware Software Games Capture The Flag Mazerace Vtg Cassette
$24.00
![Commodore 64 Vintage Aftermarket Power Supply picture](/store/img/g/sHkAAOSwXvFme0uR/s-l225/Commodore-64-Vintage-Aftermarket-Power-Supply.jpg)
Commodore 64 Vintage Aftermarket Power Supply
$30.00
![Vintage Retro PC Case Beige AT Computer Case w/ PSU picture](/store/img/g/v4sAAOSwjcJmeyuY/s-l225/Vintage-Retro-PC-Case-Beige-AT-Computer-Case-w-PSU.jpg)
Vintage Retro PC Case Beige AT Computer Case w/ PSU
$109.99
![Vintage Chicony KB-5160AT Mechanical Keyboard, FUTABA SWITCHES, GREAT picture](/store/img/g/NjUAAOSwxI1mejFm/s-l225/Vintage-Chicony-KB-5160AT-Mechanical-Keyboard-FUTA.jpg)
Vintage Chicony KB-5160AT Mechanical Keyboard, FUTABA SWITCHES, GREAT
$249.99