-
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
![Altair 8800 CPU Board Working *TESTED* reproduction picture](/store/img/g/vAYAAOSwBEBmM~fj/s-l225/Altair-8800-CPU-Board-Working-TESTED-reproduction.jpg)
Altair 8800 CPU Board Working *TESTED* reproduction
$790.00
![mits altair 8800 computer picture](/store/img/g/A0wAAOSw-xtmah~N/s-l225/mits-altair-8800-computer.jpg)
mits altair 8800 computer
$4850.00
![S-100 backplane motherboard bare PCB 9 slot (for Altair/IMSAI) picture](/store/img/g/yPkAAOSwS1Nl48u2/s-l225/S-100-backplane-motherboard-bare-PCB-9-slot-for-Al.jpg)
S-100 backplane motherboard bare PCB 9 slot (for Altair/IMSAI)
$30.00
![MITS ALTAIR 8800 Original Vintage Microcomputer with 14 boards - Buy It Now picture](/store/img/g/xWIAAOSwXphl08yB/s-l225/MITS-ALTAIR-8800-Original-Vintage-Microcomputer-wi.jpg)
MITS ALTAIR 8800 Original Vintage Microcomputer with 14 boards - Buy It Now
$8900.00
![Altair MITS 8800 CPU Parts Kit not IMSAI 8080 S100 (board NOT included) picture](/store/img/g/BaMAAOSw4htlqwT0/s-l225/Altair-MITS-8800-CPU-Parts-Kit-not-IMSAI-8080-S100.jpg)
Altair MITS 8800 CPU Parts Kit not IMSAI 8080 S100 (board NOT included)
$69.95
![MITS ALTAIR 8800 Original Vintage Microcomputer picture](/store/img/g/2pYAAOSw9IxmAeNU/s-l225/MITS-ALTAIR-8800-Original-Vintage-Microcomputer.jpg)
MITS ALTAIR 8800 Original Vintage Microcomputer
$6000.00
![IMSAI 8080A MPU-A CPU Parts Kit Not Altair MITS (board NOT included) picture](/store/img/g/qs8AAOSwSS1iS0j7/s-l225/IMSAI-8080A-MPU-A-CPU-Parts-Kit-Not-Altair-MITS-bo.jpg)
IMSAI 8080A MPU-A CPU Parts Kit Not Altair MITS (board NOT included)
$64.95
![MITS Altair Package II on Punched Paper Tape picture](/store/img/g/sLkAAOSwBtBldjJl/s-l225/MITS-Altair-Package-II-on-Punched-Paper-Tape.jpg)
MITS Altair Package II on Punched Paper Tape
$99.00
![VINTAGE DEC 1975 VOL 1 ISSUE 1 SCCS INTERFACE MAGAZINE MITS ALTAIR COVER & ADS picture](/store/img/g/0kcAAOSwJ51lR8ma/s-l225/VINTAGE-DEC-1975-VOL-1-ISSUE-1-SCCS-INTERFACE-MAGA.jpg)
VINTAGE DEC 1975 VOL 1 ISSUE 1 SCCS INTERFACE MAGAZINE MITS ALTAIR COVER & ADS
$358.99
![Wenger laptop backpack, Altair, 15.6 inch, tablet compartment, Black picture](/store/img/g/2-wAAOSwFYdmC6kf/s-l225/Wenger-laptop-backpack-Altair-15-6-inch-tablet-com.jpg)
Wenger laptop backpack, Altair, 15.6 inch, tablet compartment, Black
$140.24