Hello [ Guest ] . Please Login or Register.
Jul 23rd, 2014 at 04:51 am
Send This Topic To A Friend Print
Click here to disable ads!


SLAX and the virtual live CD: A closed system for Classic KDE - (Read 713 Times)
 
+Share Reply
doctorspaceman
New Member


Member is offline

"We have come to repopulate our planet."

Send PM

Posts: 25
Post Icon Posted: Sep 25th, 2009 at 02:40 pm Quote Post



I'm now running a Slax 6.1.2 flash dr
http://i546.photobucket.com/albums/hh433/blackbelt_jones_screenshots/slax-2009-02-12-16-20-43.pngive system on the first five gigabytes of my IDE hard drive (much more space than is necessary).

That's /dev/hda1 I call it a virtual live CD. It's intended to be read-only

/dev/hda2 is 2 gigabytes of swap

/dev/hda3 is about 32 gigabytes, formatted to ext3, and mounted as /home. It contains my ~ home directory, of course. It also contains a directory named "packages.for.slax" and a very simple simple shell script, written by someone who doesn't know to write any other kind of shell script. I refer of course, to myself.

The "packages.for.slax" directory contains three kinds of packages. It contains all the software from slackware 12.2, archived in the .tgz format. It contains modules from http://www.slax.org , archived in the .lzm format. It also contains a few miscellaneous .tgz packages, such as can be found at linuxpackages.net.

When I boot the system, I get the same splashscreen/bootmenu that I would get if I were running the slax CD
photobucket


I choose the "slax always fresh" option, to ensure that the virtual CD is read-only.

After the boot, I get the default slax desktop, where I am running as root.




I click on system> storage media> and then on the icon for the /home directory partition, which opens in konqueror:



I hit F4, which opens a terminal window to that directory, and start the installer script by typing

sh installer.script.

Here's the text of the script:

Code:

mount /dev/hda3 /home
activate /home/packages.for.slax/slax.modules/codecs-essential-20071007.lzm
activate /home/packages.for.slax/slax.modules/firefox-3.5.2.lzm
activate /home/packages.for.slax/slax.modules/kdeadmin-3.5.9.lzm
activate /home/packages.for.slax/slax.modules/ktorrent-2.2.8-i486-1.lzm
activate /home/packages.for.slax/slax.modules/mplayer-1.0.lzm
activate /home/packages.for.slax/slax.modules/opera-en-9.62-i386-1pst.lzm
activate /home/packages.for.slax/slax.modules/wine-1.1.22-i486-mt.lzm
activate /home/packages.for.slax/slax.modules/xchat-2.8.4-i486-1.lzm
activate /home/packages.for.slax/slax.modules/yakuake.lzm
installpkg /home/packages.for.slax/slackware/ap/at-3.1.10-i486-1.tgz
installpkg /home/packages.for.slax/slackware/ap/sudo-1.6.8p12-i486-1.tgz
installpkg /home/packages.for.slax/slackware/ap/vim-7.2.018-i486-1.tgz
installpkg /home/packages.for.slax/slackware/ap/zsh-4.3.6-i486-1.tgz
installpkg /home/packages.for.slax/slackware/kde/kdeaddons-3.5.10-i486-2.tgz
installpkg /home/packages.for.slax/slackware/kde/kdenetwork-3.5.10-i486-2.tgz
installpkg /home/packages.for.slax/slackware/y/bsd-games-2.13-i486-8.tgz
installpkg /home/packages.for.slax/slackware/e/emacs-22.3-i486-2.tgz
installpkg /home/packages.for.slax/slackware/xap/fluxbox-1.1.1-i486-1.tgz
installpkg /home/packages.for.slax/slackware/xap/fvwm-2.4.20-i486-1.tgz
installpkg /home/packages.for.slax/slackware/xap/xscreensaver-5.07-i486-2.tgz
installpkg /home/packages.for.slax/slackware/n/irssi-0.8.12-i486-2.tgz
mkdir /files
mount /dev/sda1 /files
adduser dushku
passwd root
cd /sbin
./init 3



The script automates the whole process of mounting the system, installing the software packages onto the RAM disk, reestablishing the user account, changing the root password, and turning off X, and logging out of root, although I am prompted for input along the way. The last time I ran the installer.script, I timed it, and it took a little less than three minutes, for the whole thing to run its course.

After the script has run its course, I am where I would be after a default booting up of slackware... at a text login prompt. I type my username, and my password to login. I type "startx"... and I'm back in my own desktop environment, with my chosen applications running, with my settings, configurations, and eye candy:








« Last Edited by doctorspaceman Sep 25th, 2009 at 04:09 pm »
Report Post IP Logged

I'm a Classic KDE lover... not a New KDE hater!

doctorspaceman
New Member


Member is offline

"We have come to repopulate our planet."

Send PM

Posts: 25
Post Icon Posted: Sep 25th, 2009 at 04:08 pm Quote Post

The advantage is that the read-only virtual live CD automatically refreshes itself with each reboot. You can compromise a read-only operating system, but you can't compromise it permanantly. Nothing lives past a reboot. This is important since as KDE3 and Slax 6.1.2 become "legacy" software, security becomes a concern.

The disadvantage is the inconvenience involved, and the fact that the software packages are installed to the RAM disk. Therefore, you need a healthy amount of RAM. I'm getting great performance with a P4 2.4 ghz, and a gigabyte of RAM, but I'm adding a gigabyte just so I can take it farther if I want. I ordered through ebay last night.
Report Post IP Logged

I'm a Classic KDE lover... not a New KDE hater!
 
 
A great way to get more members is to spread the word about your forum:
Bookmark and Share


This forum powered for FREE by Hyperboards v2.25
Get your own Free forums & free message boards today!
Terms of Service | Privacy Policy


.