-
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
![Cisco SG300-52-Port Gigabit Managed Rack Mountable Network Switch picture](/store/img/g/sOIAAOSwtV1mUVhk/s-l225/Cisco-SG300-52-Port-Gigabit-Managed-Rack-Mountable.jpg)
Cisco SG300-52-Port Gigabit Managed Rack Mountable Network Switch
$44.95
![ARUBA J9772A 2530-48G PoE+ 48 PORT ETHERNET SWITCH W/ RACK EARS J9772-60301 picture](/store/img/g/J0AAAOSwSiVlu-xI/s-l225/ARUBA-J9772A-2530-48G-PoE-48-PORT-ETHERNET-SWITCH-.jpg)
ARUBA J9772A 2530-48G PoE+ 48 PORT ETHERNET SWITCH W/ RACK EARS J9772-60301
$140.23
![Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED picture](/store/img/g/kjQAAOSwNkhj0o7Y/s-l225/Fortinet-FortiSwitch-FS-124D-POE-24-Port-Gigabit-E.jpg)
Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED
$99.97
![HPE ARUBA 2530-24G J9773A PoE+ 24-PORT GIGABIT ETHERNET SWITCH J9773-60201 picture](/store/img/g/RNgAAOSwrTtlQZet/s-l225/HPE-ARUBA-2530-24G-J9773A-PoE-24-PORT-GIGABIT-ETHE.jpg)
HPE ARUBA 2530-24G J9773A PoE+ 24-PORT GIGABIT ETHERNET SWITCH J9773-60201
$93.24
![Cisco SG300-52 52 Port Gigabit Managed Network Switch w/ Rack Ears picture](/store/img/g/OJUAAOSwkKdmdKKv/s-l225/Cisco-SG300-52-52-Port-Gigabit-Managed-Network-Swi.jpg)
Cisco SG300-52 52 Port Gigabit Managed Network Switch w/ Rack Ears
$34.99
![NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter picture](/store/img/g/GtAAAOSw441l3Jx1/s-l225/NETGEAR-GS108-ProSafe-8-Port-GbE-Unmanaged-Switch-.jpg)
NETGEAR GS108 ProSafe 8-Port GbE Unmanaged Switch w/ Power Adapter
$14.99
![Netgear ProSafe FS726T 24 Port 10/100 Smart Switch w/2 Gigabit Ports picture](/store/img/g/iCwAAOSwVX9mcdMS/s-l225/Netgear-ProSafe-FS726T-24-Port-10-100-Smart-Switch.jpg)
Netgear ProSafe FS726T 24 Port 10/100 Smart Switch w/2 Gigabit Ports
$19.99
![TP-Link TL-SG108 8-Port 10/100/1000 Mbps Gigabit Ethernet Desktop Switch FREE SH picture](/store/img/g/eHwAAOSwSOxlsrl8/s-l225/TP-Link-TL-SG108-8-Port-10-100-1000-Mbps-Gigabit-E.jpg)
TP-Link TL-SG108 8-Port 10/100/1000 Mbps Gigabit Ethernet Desktop Switch FREE SH
$14.99
![Netgear Prosafe 48-Port GbE & 4-Port SFP Managed Network Switch GS752TS picture](/store/img/g/hLYAAOSwc9xmdEiW/s-l225/Netgear-Prosafe-48-Port-GbE-4-Port-SFP-Managed-Net.jpg)
Netgear Prosafe 48-Port GbE & 4-Port SFP Managed Network Switch GS752TS
$59.99
![Cisco WS-C3650-24TS-E 24-Port Managed Gigabit Switch picture](/store/img/g/R08AAOSwFzhmXe1i/s-l225/Cisco-WS-C3650-24TS-E-24-Port-Managed-Gigabit-Swit.jpg)
Cisco WS-C3650-24TS-E 24-Port Managed Gigabit Switch
$50.00