The DistRogue

Monday, December 03, 2007

Project Brave GNU World: Bringing Linux to school

I'm now officially sick of having to use Windows XP on a daily basis at school. The bugs and slowness are irritating me to the point of insanity, and any time I want to use a program of my own (Firefox, Gimp, NVu, etc), I have to install a portable version on the network drive and run it from there- and that's a really slow drive. Obviously, the entire school isn't going to switch to Ubuntu because of one kid, but thanks to live CD/USB technology, they don't have to. I'm planning to get a live USB ready, running SLAX 6, that can run on the desktop computers in the library, and make it work by Christmas break.
I picked SLAX for a number of reasons. For starters, it's tiny- the maximum size for the standard edition (a full KDE desktop) is 200MB, leaving me roughly 800 megs to store stuff on. It's also amazingly fast (and version 6 comes with CFS), and our computers are middle-of-the-road- 3GHZ Pentium 4s with 1GB of RAM. (There's also 60GB of hard disk space nobody will ever use, since everything's stored on network drives.) Finally, it's easy to customize, and supports persistent changes out of the box.
Some of the computers are wired to the LAN, some use a wireless connection. I've noticed that the wired computers are faster than the wireless ones, since everything's on the network (including the portable apps I have). This might be because they use 802.11b instead of g or n, but I haven't got a good look at the specs for them.
Here's the deal:
Hardware:
-CPU: Intel Pentium 4 clocked at 3 GHz
-RAM: 1GB
-Hard disk (for temp storage only!): 60GB, usually 55GB free on C:\ partition
-Screen resolution: 1280x1024 (but it's set to 1024x768 by default for reasons I don't get... Ah well, it'll be whatever I say it is on SLAX :-)
-Networking:
--Wired: Intel PRO/100 network card (supported natively under Linux :-)
--Wireless: Unknown (but I'm guessing it's ipw2100- or 2200-based, just an educated guess, and both are supported natively. This is the main problem...)
Software:
-Windows XP Professional Edition
The biggest problems are going to be wireless networking and getting the go-ahead from the IT department, but I've heard they like open source. Always good to hear. :-) (Besides, I think I saw a Debian screensaver in the network room...)
From Windows XP (but hopefully not for long!),
The Distrogue.

Labels: , , ,

Thursday, October 18, 2007

Just great...

This is a first. This time, I can't even get to the BIOS screen, or even boot into a live USB. All I get is a message that says "Time-of-day clock stopped."
Here's the situation:
I'm working with 3 volumes. SDA is my laptop's 80GB internal HD, partitioned as follows: two 10GB ReiserFS partitions for Ubuntu 7.10 (just out today, w00t!) and Mandriva 2008, one 10GB ext3 partition for Linux Mint 3.1, and a 40GB shared /home partition. SDB is a 512MB USB key running SLAX 6.0-rc6 and NimbleX sub-100. Finally, SDC is a 1GB USB key with Puppy Linux 3.01.
I downloaded the DVD image to Fedora 8 test 3 and used the bootloader (images/diskboot.img) to load it from SDB1. The install (over Ubuntu) went successfully, except that I accidentally installed GRUB onto SDB. DoH! Three (successful) reboots later, I set up the bootloader to boot my other two OSes. Neither of the options worked. Great... At least Fedora still worked (sans Web connecton).
I rebooted into Puppy (on SDC) to fix the problem. I did some browsing, and at some point, it locked up and I had to reboot.
At which point my laptop turned magically into a shiny, $600 brick.
Great.
From Windows XP,
A very annoyed DistRogue.
(PS: The laptop I'm on has a faulty 'A' key, so I may have missed some 'A's.)

Labels: , , , , ,

Monday, May 07, 2007

How to make a Live CD

Linux is a completely open-source family of operating systems (Linux itself isn't really an OS, but rather, a kernel), and so anyone can make their own distribution (in theory) and join in the action. But why do that? There are already hundreds of existing distributions, and odds are, one of them is right for whatever niche you have. This isn't a tutorial for making your own distro- that requires time, money, and m4d-1337 technical 5k!11z. This is how to make a Live CD for an application of your choice.

==Why have a Live CD?==

  • Portability. A program would normally have to be installed several times in order for it to be able to be used wherever you go, so why not put it on a CD?
  • Speed. Newsflash: If you dedicate an entire OS to just running one program, it'll run faster, and be more reliable.
  • It looks cool on a resumé. Wouldn't you like to say to a would-be employer, "I made my own Linux CD"?
Take a pick. The last one's especially important. It will get you unquestioned authority in computing.

==Choosing a base system==

There are a few options for a base system. Here are the best choices:
  • SLAX: The original remasterable Live CD. It runs a Slackware-based operating system with KDE. Only 200MB to start out.
  • Wolvix: An extremely feature-rich OS that uses XFCE and a ton of programs. I recommend the 1.1.0-beta series. The "Cub" edition is about 240MB, yet is a complete OS.
  • Myah: The version 2.0 series is pretty much the same as SLAX; however, the tech demos of the yet-unreleased Version 3 are i686-optimized (they run faster) and use XFCE. About 500MB.
Download the CD image (a .iso file) and extract it to a temporary folder in your home directory called "image".

==Adding the program==

SLAX 6-RC, Myah 3-TD1, and Wolvix 1.1.0 beta all use version 6 of the Linux-Live scripts. SLAX 5.1, Myah 2.2, and Wolvix 1.0.5, the stable versions, use version 5. This wouldn't be a big issue, except that the module format changed between those versions. It's probably a better idea to choose the newer versions of these distributions, because the new format makes smaller modules.
Make another folder called "program". Extract the file tree of the program to the folder. Inside, it should resemble a traditional Linux file system, with bin, etc, usr, or other folders (most of the time, it's just usr) in it.
Open up a terminal and type this:

cd image/name/tools

where name is either slax (for SLAX), wolvix (for Wolvix), or linuxcd (for Myah). Type the following commands:

chmod 755 *
mkdir ../modules
./dir2lzm ~/program ../modules/program.lzm

The first command makes all the tools for building LZM images (linux-live 6 modules) executable, so you can use them. The second makes a modules folder- this stores modules that are used at boot time. The third takes the program you made and turns it into an LZM file.

==Rebuild and burn==

You now have a file structure that you need to burn onto a CD. To do this, you need to make an ISO file.

cd ..
chmod 755 *.sh
./make_iso.sh

It will then prompt you for a name for the image. Hitting ENTER is usually fine.
In your home directory, there will be a CD image, ready to burn. Do so, but don't waste a CD-R on it, just use a CD-RW. It should fit, easily.

==Cut and try==

A Live CD usually doesn't come out right on the first try. Experiment with the image a bit. Here are some useful commands:

-lzm2dir: extracts an lzm file to a directory.
-chroot: allows you to run commands from inside another system. You can chroot to an extracted LZM file, for instance, and add or remove programs within the module itself.
-removepkg: This program comes with Myah OS, and allows you to cut down on the bloat that comes with it. ;)
-mo2dir: If you happen to have some old modules lying around, this convert them to LZM format.

==Examples==

The SuperTux Live CD is based on SLAX. The ThinkTanks Server Disk is based on Wolvix.

From Xubuntu 7.04,
The DistRogue.

Labels: , , , ,