-
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
![EPA Energy Star Logo Vintage Sticker for Retro PC/Mac/Computer picture](/store/img/g/yokAAOSw851mde10/s-l225/EPA-Energy-Star-Logo-Vintage-Sticker-for-Retro-PC-.jpg)
EPA Energy Star Logo Vintage Sticker for Retro PC/Mac/Computer
$4.99
![Vintage Hewlett Packard ThinkJet 2225A Printer picture](/store/img/g/F10AAOSwp5RmdrZU/s-l225/Vintage-Hewlett-Packard-ThinkJet-2225A-Printer.jpg)
Vintage Hewlett Packard ThinkJet 2225A Printer
$64.99
![Vintage 1997 Slam Dunk Typing CD-ROM Software PC Windows 3.1 Apple Macintosh picture](/store/img/g/spsAAOSwnbNluDua/s-l225/Vintage-1997-Slam-Dunk-Typing-CD-ROM-Software-PC-W.jpg)
Vintage 1997 Slam Dunk Typing CD-ROM Software PC Windows 3.1 Apple Macintosh
$8.50
![Vintage AsanteTalk Mini Din 8 to Ethernet Adapter for Macintosh SOLD AS IS picture](/store/img/g/kpkAAOSwyppmdsA9/s-l225/Vintage-AsanteTalk-Mini-Din-8-to-Ethernet-Adapter-.jpg)
Vintage AsanteTalk Mini Din 8 to Ethernet Adapter for Macintosh SOLD AS IS
$24.00
![Vintage Lacie Porsche Design External Hard Drive 180gb TESTED No Power Supply picture](/store/img/g/Ei0AAOSwXD9lf6Xl/s-l225/Vintage-Lacie-Porsche-Design-External-Hard-Drive-1.jpg)
Vintage Lacie Porsche Design External Hard Drive 180gb TESTED No Power Supply
$23.00
![Vintage Compaq Presario Wired Keyboard SK-2700 6-Pin Loud Click Keys - EUC picture](/store/img/g/U~sAAOSwtntmddvg/s-l225/Vintage-Compaq-Presario-Wired-Keyboard-SK-2700-6-P.jpg)
Vintage Compaq Presario Wired Keyboard SK-2700 6-Pin Loud Click Keys - EUC
$24.99
![Vintage 90s SL Waber Datagard DG1 General Electronics Protector Surge Suppressor picture](/store/img/g/fB4AAOSwWollOojc/s-l225/Vintage-90s-SL-Waber-Datagard-DG1-General-Electron.jpg)
Vintage 90s SL Waber Datagard DG1 General Electronics Protector Surge Suppressor
$11.00
![Vintage CYB Card R MARK MCGWIRE Factory Sealed MLB CYBERCARD picture](/store/img/g/vgEAAOSwzyFgcv-g/s-l225/Vintage-CYB-Card-R-MARK-MCGWIRE-Factory-Sealed-MLB.jpg)
Vintage CYB Card R MARK MCGWIRE Factory Sealed MLB CYBERCARD
$19.95
![VINTAGE DEC DIGITAL DISK FOR RK 05 HARD DRIVE picture](/store/img/g/EsAAAOSwUlZmddYT/s-l225/VINTAGE-DEC-DIGITAL-DISK-FOR-RK-05-HARD-DRIVE.jpg)
VINTAGE DEC DIGITAL DISK FOR RK 05 HARD DRIVE
$89.99
![Vintage DEC/CLEARPOINT INC. QED1 4MB Memory PDP picture](/store/img/g/z44AAOSwECRmdC5e/s-l225/Vintage-DEC-CLEARPOINT-INC-QED1-4MB-Memory-PDP.jpg)
Vintage DEC/CLEARPOINT INC. QED1 4MB Memory PDP
$149.99