paradocs
05-30-2003, 04:35 AM
I present burn_home as method for keeping persistent
home on a CD record or CD read-write. For repeated
use, the CDRW is the best. The following topics may
help in organizing discussion:
0. Usual warnings --> I really don't know much, my
English is poor, my German is worse. So don't depend
on anything.
1. Goal and Uses
The advantage of this use of KNOPPIX is to proved
a low cost, portable, secure computer environment.
Student, library, multi-user family, high security,
demonstration projects and public computers may
be a good match. Speed and limited installation
of new software are among many disadvantages.
2. Target Computer
one floppy
CD drive
500 MB memory ( less can work, more is better )
sound
Internet connection
Second CDRW ( I have a USB2 CDRW )
( these scripts assume cdrom1 dev=1,0,0 )
(enter cdrecord -scanbus to get dev=?,?,? )
No hard drive is present.
A printer, DVD and scanner may be added.
3. Methods, Scripts and Interface
I have used a very simple approach. I am sure
there are better ways to accomplish this.
4. Bugs and Problems
So far all appears to be working but I get an
annoying message after boot up that a program
is not found. Just click OK and ignore it.
I have not checked many applications to date.
5. Security
I don't know much about this. I am sure the
home.iso could be encrypted and compressed
to make the CDRW secure. But keeping the
CD with you and locked up is the first step.
6. New Features and Other
How about automatically installing packages on
booting? Merging or splitting a persistent homes?
Sending or saving the home.ios file on the Internet?
7. KNOPPIX Adoption
Some built in features for Knoppix would be great.
What needs to be done to make burn_home an
easily used option?
Steps to make it work:
1. Make a boot floppy from the KNOPPIX CD
2. Start knoppix
3. Text edit the file syslinux.cfg on the boot floppy.
After the first BOOT_IMAGE=knoppix add -->
myconfig=/mnt/cdrom1
and in my case I also added -->
wheelmouse alsa lang=us
4. Click Home --> right click --> Create New
--> Directory --> (type) burn_home -->OK
5. Open it and create the text files in steps a,b,c,d
5a. burn_home_erase.sh
#!/bin/sh
cdrecord -v speed=4 dev=1,0,0 blank=fast
mkisofs -r -o /ramdisk/home.iso /ramdisk/home/knoppix
cdrecord -v speed=4 dev=1,0,0 -data /ramdisk/home.iso
rm -f /ramdisk/home.iso
eject cdrom1
5b. burn_home_noerase.sh
#!/bin/sh
#cdrecord -v speed=4 dev=1,0,0 blank=fast
mkisofs -r -o /ramdisk/home.iso /ramdisk/home/knoppix
cdrecord -v speed=4 dev=1,0,0 -data /ramdisk/home.iso
rm -f /ramdisk/home.iso
eject cdrom1
5c. burn_home_blank.sh
#!/bin/sh
cdrecord -v speed=4 dev=1,0,0 blank=fast
#mkisofs -r -o /ramdisk/home.iso /ramdisk/home/knoppix
#cdrecord -v speed=4 dev=1,0,0 -data /ramdisk/home.iso
#rm -f /ramdisk/home.iso
eject cdrom1
5d. burn_home_restore.sh
#!/bin/sh
mkdir /ramdisk/tmp
mkdir /ramdisk/tmp/burn_home
cp -rpf /mnt/cdrom1/* /ramdisk/tmp/burn_home
cp -rpf /mnt/cdrom1/.* /ramdisk/tmp/burn_home
rm /ramdisk/tmp/burn_home/.DCOPserver*
rm /ramdisk/tmp/burn_home/.ICEauthority
cp -rpf /ramdisk/tmp/burn_home/* /ramdisk/home/knoppix
cp -rpf /ramdisk/tmp/burn_home/.* /ramdisk/home/knoppix
chown -R knoppix:knoppix /ramdisk/home/knoppix
chmod -R u+w /ramdisk/home/knoppix
rm -rf /ramdisk/tmp
#add lines to configure devices as root
eject cdrom1
6. Adjust your KDE desktop features like background, clock font,
icon size, printer. Put in an empty floppy and K --> KNOPPIX
-->Configure --> Save Knoppix Configuration --> OK
--> floppy
Now copy the two file on the floppy, configs.tbz and
knoppix.sh, to your home directory. Whenever you change
settings you may need to repeat this step in the future.
7. Open the Autostart folder by clicking
View --> Show Hidden Files --> .kde --> Autostart
Now copy into this folder the file in section 5d called
burn_home_restore.sh
Bonnus: You may remove showindex.desktop if you
do not want the intoduction to show or add your own
tribute to knoppix. To confugure scanners and your
Internet settings burn_home_restore.sh can also modify
files in the root/etc/sane.d and other directores.
8. Open burn_home, place a CDRW disk to be overwritten,
and click once on burn_home_erase.sh and wait. I wish
there was a progress bar but if your CDRW supports software
eject, then you will know all is done when the disk pops out.
One nice feature of burn_home is that you can and should
keep multiple copies as backups.
9. Normal operation: Reboot with the boot floppy, the
KNOPPIX CD in the first CD tray, and the burn_home disk
in the second CD tray. Disregard the message saying
“Couldn't find the program ...” and click OK.
That is it. I hope I did not forget too much. If it does not
work ( or if it does ! ) let us hear from you.
Best Wishes,
paradocs
home on a CD record or CD read-write. For repeated
use, the CDRW is the best. The following topics may
help in organizing discussion:
0. Usual warnings --> I really don't know much, my
English is poor, my German is worse. So don't depend
on anything.
1. Goal and Uses
The advantage of this use of KNOPPIX is to proved
a low cost, portable, secure computer environment.
Student, library, multi-user family, high security,
demonstration projects and public computers may
be a good match. Speed and limited installation
of new software are among many disadvantages.
2. Target Computer
one floppy
CD drive
500 MB memory ( less can work, more is better )
sound
Internet connection
Second CDRW ( I have a USB2 CDRW )
( these scripts assume cdrom1 dev=1,0,0 )
(enter cdrecord -scanbus to get dev=?,?,? )
No hard drive is present.
A printer, DVD and scanner may be added.
3. Methods, Scripts and Interface
I have used a very simple approach. I am sure
there are better ways to accomplish this.
4. Bugs and Problems
So far all appears to be working but I get an
annoying message after boot up that a program
is not found. Just click OK and ignore it.
I have not checked many applications to date.
5. Security
I don't know much about this. I am sure the
home.iso could be encrypted and compressed
to make the CDRW secure. But keeping the
CD with you and locked up is the first step.
6. New Features and Other
How about automatically installing packages on
booting? Merging or splitting a persistent homes?
Sending or saving the home.ios file on the Internet?
7. KNOPPIX Adoption
Some built in features for Knoppix would be great.
What needs to be done to make burn_home an
easily used option?
Steps to make it work:
1. Make a boot floppy from the KNOPPIX CD
2. Start knoppix
3. Text edit the file syslinux.cfg on the boot floppy.
After the first BOOT_IMAGE=knoppix add -->
myconfig=/mnt/cdrom1
and in my case I also added -->
wheelmouse alsa lang=us
4. Click Home --> right click --> Create New
--> Directory --> (type) burn_home -->OK
5. Open it and create the text files in steps a,b,c,d
5a. burn_home_erase.sh
#!/bin/sh
cdrecord -v speed=4 dev=1,0,0 blank=fast
mkisofs -r -o /ramdisk/home.iso /ramdisk/home/knoppix
cdrecord -v speed=4 dev=1,0,0 -data /ramdisk/home.iso
rm -f /ramdisk/home.iso
eject cdrom1
5b. burn_home_noerase.sh
#!/bin/sh
#cdrecord -v speed=4 dev=1,0,0 blank=fast
mkisofs -r -o /ramdisk/home.iso /ramdisk/home/knoppix
cdrecord -v speed=4 dev=1,0,0 -data /ramdisk/home.iso
rm -f /ramdisk/home.iso
eject cdrom1
5c. burn_home_blank.sh
#!/bin/sh
cdrecord -v speed=4 dev=1,0,0 blank=fast
#mkisofs -r -o /ramdisk/home.iso /ramdisk/home/knoppix
#cdrecord -v speed=4 dev=1,0,0 -data /ramdisk/home.iso
#rm -f /ramdisk/home.iso
eject cdrom1
5d. burn_home_restore.sh
#!/bin/sh
mkdir /ramdisk/tmp
mkdir /ramdisk/tmp/burn_home
cp -rpf /mnt/cdrom1/* /ramdisk/tmp/burn_home
cp -rpf /mnt/cdrom1/.* /ramdisk/tmp/burn_home
rm /ramdisk/tmp/burn_home/.DCOPserver*
rm /ramdisk/tmp/burn_home/.ICEauthority
cp -rpf /ramdisk/tmp/burn_home/* /ramdisk/home/knoppix
cp -rpf /ramdisk/tmp/burn_home/.* /ramdisk/home/knoppix
chown -R knoppix:knoppix /ramdisk/home/knoppix
chmod -R u+w /ramdisk/home/knoppix
rm -rf /ramdisk/tmp
#add lines to configure devices as root
eject cdrom1
6. Adjust your KDE desktop features like background, clock font,
icon size, printer. Put in an empty floppy and K --> KNOPPIX
-->Configure --> Save Knoppix Configuration --> OK
--> floppy
Now copy the two file on the floppy, configs.tbz and
knoppix.sh, to your home directory. Whenever you change
settings you may need to repeat this step in the future.
7. Open the Autostart folder by clicking
View --> Show Hidden Files --> .kde --> Autostart
Now copy into this folder the file in section 5d called
burn_home_restore.sh
Bonnus: You may remove showindex.desktop if you
do not want the intoduction to show or add your own
tribute to knoppix. To confugure scanners and your
Internet settings burn_home_restore.sh can also modify
files in the root/etc/sane.d and other directores.
8. Open burn_home, place a CDRW disk to be overwritten,
and click once on burn_home_erase.sh and wait. I wish
there was a progress bar but if your CDRW supports software
eject, then you will know all is done when the disk pops out.
One nice feature of burn_home is that you can and should
keep multiple copies as backups.
9. Normal operation: Reboot with the boot floppy, the
KNOPPIX CD in the first CD tray, and the burn_home disk
in the second CD tray. Disregard the message saying
“Couldn't find the program ...” and click OK.
That is it. I hope I did not forget too much. If it does not
work ( or if it does ! ) let us hear from you.
Best Wishes,
paradocs