develooper Front page | perl.beginners | Postings from February 2002

bootable cd with perl on it

February 27, 2002 10:37
bootable cd with perl on it
Message ID:
This group has been such a source of perl 
learning for me, that I thought I would share
I found this useful little method of putting
my entire perl5 lib and scripts on a bootable
cdrom. I thought some of you might like to
create one yourself.

With a bit of ingenuity, you can also get
ppp support going by copying pppd and
chat into the BINARIES.  

This will boot, have perl ready to run,
and have Midnight Commander. This
is for linux systems, but the mkcdrec
utility can be setup for windows, that's
up to you.

Go to:
and download mkCDrec_v0.6.0.tar.gz

then follow these additional instructions.

1. Untar the package and cd to the mkcdrec directory.
2. mkdir 'utilities'
3. copy the entire /usr/lib/perl5 directory to
4. Edit the at(or near) line 325 where
   a section called 'Links=' is started.
   Add a link like this:
5. You can copy as many of your utilities as
   you want to this utilities directory, and
   make links. However, it is easier to do the
   next step.
6. Goto around line 224 where the section
   called 'Binaries=' begins. Just add entries there,
This ends the perl part of the setup.

7. Goto the beginning of and edit each
   entry to suit your system.
   For certain, specify LINUX_KERNEL that you wish to use.
   SCSIDEVICE='0,1,0'  ( or whatever you use for your system )
                       (cdrecord -scanbus will tell you)
    etc, etc,etc
    Don't ignore the line for DEVFS=0 , the cd won't boot
    if you set this wrong. Set it to 1 only if your kernel
    supports it.
8. Finally do a 'make test' to see how your looks.
   If all is well, do a 'make'; select option 1 (Rescue CD),
   and your cd will be made.
9. Boot it, and start mc, I'm sure you can take it from there.

               Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About