ECS Linux-Mandrake Installation Guide

Below you will a very brief description of how to install the Linux-Mandrake 10.1.  You can either borrow the four CDs available in class, or use sftp to download the images from ~davis/pub and burn them on four CDs.  You can find more information at the Mandrake website: http://www.linux-mandrake.com/en/.  I will assume that you wish to dual boot Linux with some version of Windows.  You can find much more extensive instructions for installing Linux at:
 Professor Norman Matloff's Beginner's Guide to Installing Linux : http://heather.cs.ucdavis.edu/~matloff/linux.html
I recommend you read and print out both this and Prof. Matloff's pages before starting.

IF YOU HAVE ANY CRITICAL FILES, BACK THEM UP BEFORE STARTING THIS PROCESS!  CREATE AN EMERGENCY REPAIR DISK NOW!

There are three steps to installing Linux:

1.     1.      Gathering network information.

2.     2.      Set-up partitions on the disk drive to have room for Linux.

3.     3.      Installing Linux

1. Gathering network information

Before starting to install Linux you must gather information about your current network settings.  You can find these in the Network section of the Windows Control Panel.  If you do not have DHCP, then you need to note your IP address.  You should also note the subnet mask (usually 255.255.255.0), gateway address, primary DNS, and secondary DNS if there is one.

2. Setting up partitions

Linux must be installed on partitions separate from all other operating systems.  In Windows, each partition is given a drive letter.  In Linux, all of the partitions on the first drive start with hda, and are numbered hda1, hda2, and so forth.  The partitions on the second hard drive all start with hdb.   Please note that the first drive may not be your C: drive in Windows.  If you have multiple drives, you should note, based on its size, which is your C: drive.  You will need this later to install the boot loader.

There are many ways to create the necessary space for Linux, but I will cover only the simplest.  You will need clear out enough space in an existing partition so that it can be shrunk enough to make room for both Linux partitions.  This may mean deleting files and/or moving files from one drive to another.  Disk Cleanup can help you to choose the files to remove.  When done, note how much space you need for your files on the drive.  Once you are done cleaning up the disk, you should run the defragmenter tool to consolidate the files.  Please note that Mandrake 10.1 can shrink any file system, including the NTFS file system! 

If you happen to have left some empty space on a hard disk, that you are not going to use for LINUX, then partition and format it now, before installing Linux.  You should not use Windows/DOS tools to partition the Linux disk after Linux is installed--it can really screw things up.


2. Installing Linux

To install Linux, your computer must either boot to a specially created floppy or directly to the CD labeled Mandrake 10.1 CD 1.  To create the Install Boot floppy: 1) Start the rawwritewin.exe application in the DOSUTILS directory on the CD labeled CD, and 2) Select the \images\cdrom.img file and place a floppy in your drive.  When you are done creating the floppy, simply reboot the computer.  The computer should use the floppy as it boot media.

On most computers, you can bypass using an Install Boot floppy, by choosing to boot directly from the CDROM.  To do this, you need to change the first device searched for booting in the BIOS.  To access the BIOS settings, reboot the computer and hold down the indicated key, usually DEL.  When the BIOS settings show up, look for a page that lists the order of boot search.  You should find that the floppy is the first listed, followed by the hard drive.  Change the first entry from floppy to CDROM.  Then hit Escape, and choose to save the changes.  Now when you reboot, the computer will start looking first in the CDROM.  Note that after you have installed Linux, you should go through the same process to change the first device back to the floppy.

Whether you boot from the floppy or the CDROM, the Linux-Mandrake installation program should begin automatically.  As you proceed, you will usually be presented with a default choice that is correct.  You may always click the help button for explanations of your choices.  After selecting your language and accepting the license, you need to choose a security setting.  The security you choose is up to you, but Standard should be fine.  You can leave the security administrator information blank.

Now its time to setup the file systems.  Mandrake can reduce the size of an existing FAT or FAT32 partition to free up space for Linux.  We will assume that you will need to do this.  Click “Use free space on the Windows partition,” and click Next.  Click on the partition you wish to shrink, and then click Next.  After reading and understanding the Warning message, click Next.   You can then slide the bar in the dialog box to determine the new size of the old partition.  You can refer to your notes to determine the minimum you need for your Windows files.  Remember you need to free up between 1000 and 4000 (or more) megabytes for Linux, but you should leave at least 500 megabytes free on the Windows partition to allow for future use.  Once you click OK, Mandrake will shrink the partition.  Once you have free space, you can simply press the Auto-Allocate button to have Mandrake create the three partitions necessary for Linux.

Now it is time to select what optional software you wish to install.  Besides those already selected, you should select Development, and Documentation.  You will probably also want Network Computer(client), and LSB.  As you select groups, the total size of the selections is updated at the bottom of the selection window.  If you have space on your hard disk, then feel free to install everything from the left (Workstation) column.  You may also select packages from the right (server) column, but should be warned that server components make your computer much more susceptible to attacks from hackers.  Do not install server components unless you know what you are doing!  You may certainly select "Other Graphical Desktops" if you wish from the right column.  If disk space is a problem then you may wish to select the "Individual package selection" check box.  When unchecked, Mandrake will install all files of the packages you selected.  When you are done choosing, click Next.  (If you have left "Individual package selection" checked, then Mandrake now allows you to choose which individual packages to install.  The default packages work fine, so just click the Install bar.)  Mandrake may ask you if you really wish to install the cups network server.  This is a minor server, and has no known security holes, so it is safe to choose Yes, and click Next.  The program will take around a half hour to install the packages

There are few things in the rest of the installation process that can use some explaining.  After the installation of the packages, Mandrake will set-up passwords and users.   Make sure that you give root a password, and setup yourself as a user with a password.  Next, if there is only you, and your computer is in a safe place, you can agree to automatically log on one user.  The default boot loader options are fine as long as it  selects the correct drive that is your C: in Windows.  If it is not selected, then select it.  Note that drive specification for the boot loader should not have a number, e.g. hda, and not hda1.

Mandrake now provides a list of configurations that you will need to modify.  You will need to configure the time zone to Los Angeles, but the other time defaults (hardware clock is not set to GMT) are fine.  You can use the information you gathered from your Windows network to configure the Network.  The domain you choose for your host name is probably irrelevant—so make one up!   If you have a printer available to the computer, then press the configure button next to printers, then Add a Printer, and then Auto-Detect.  If Mandrake does not detect your printer, then uncheck Auto-Detect, click Next, and manually select its port, make, and model.  Mandrake should be able to detect your printer, but you should check its efforts by printing a test page when prompted.  If you wish to make your Windows OS the default, you will need to configure the bootloader.  Upon entering the bootloader configuration area, click Next until you see a list of entries in the boot menu.  Double click the "windows" entry, and then place an X in the Default checkbox.

After OKing the summary, you will be asked to download updates.  You may choose to do this or not.  Remove the CD, and click the Reboot button.   (You may wish to change your BIOS boot-up sequence back to floppy at this time.)  When the system reboots, select the first entry, “linux”, to start linux for the first time!  After Mandrake runs through its start-up sequence, the First Time Wizard will walk you through setting up your mail and news information.  

Congratulations!  Your done installing Linux!   

It turns out that the GUI debugger, ddd, is not included in the Linux installation.  You can either use FTP to download the package from ~/davis/public_html/linux, or you can use a web browser to download it by right clicking http://wwwcsif.cs.ucdavis.edu/~davis/linux/ddd-3.3.9-2mdk.i586.rpm.  Once you have downloaded the file, simply click on it in your file browser to install ddd.

Please post any questions or comments to the ucd.class.ecs40.sec-a.d newsgroup.  If you have problems then post them there.  Do not e-mail me.