Debian installation manual

From TYPO3Wiki

Jump to: navigation, search

<< Back to Getting started page

[edit]

<< back

see discussion

This is a draft version. You're welcome to edit it.
When the content is good enough, please change the {{draft}} tag to {{review}} .



Contents

Introduction

Disclaimer

Please keep in mind that the following instructions are neither a substitute for a professionally guided installation nor meant to be complete. The writer cannot be made responsible for any loss or damage of either hardware, software or other wares.

Anything you don't find here you might find at [debian.org] For more Debian Help check this [debianhelp.co.uk]

Special thanks to

Any effort in a open source community is the work of a team hardly that of just one individual.

Special thanks go to Lars Jensen who had the initial thought of writing a Debian Installation Documentation, Michael Stucki who makes sure that we don't lose track on what's important and supports us writers from the technical point of view, Steffen Mueller who works through Lars' documentation (review and proofreading) and hopefully finds his way to this wiki document too.

Get Debian

There are many ways to install Linux Debian. We are focussing on the network install, see: [debian.org/CD/netinst]

You have the choice between a minimal boot-CD or the complete CD-set. Let's choose the minimal boot-CD since it has the smallest download size and fits perfectly on one CD.

  1. Go to LordSutch.com ISOLINUX min-ISO Image to get the inofficial network install images: -> [phy.olemiss.edu/debian-cd]
  2. Choose the appropriate image file. For PC (i386) download woody-i386-1.iso.
  3. Burn a CD with the image file.
  4. Make sure your PC can boot from CD.
  5. Put the CD in the CD drive of your PC and turn the PC on.

Start Installation

This Debian installation manual focus on a clean install. All existing data will be lost. Once the PC start up, the Debian installation program greets you with a welcome screen:

Image:Debian installation manual

  1. Press [ENTER]
  2. Choose the language of your choice. If you want to follow this manual you might want to choose English.
  3. Choose the language variant (not with all languages). -> English (United States)
  4. Press [ENTER] at the next screen (that shows the release notes of the version of Debian you are about to install). Next step is configuration of your keyboard:

Image:Debinstkeyinst.png

  1. Press [ENTER] to configure your keyboard.
  2. Choose the appropriate keyboard language from the list. = Partitioning =

Next screen gets you ready to partition your harddisk:

Image:Debinstpartitioning.png

There are more philosophies about partitioning your harddisk then there are computer at Microsoft. Feel free to come up with your own favourite routine. Here we focus on a simple and yet effective way of the partitioning process.

  1. Press [ENTER] to partition your harddisk. ATTENTION: All your data will be lost.
  2. Next screen Select Disk Drive let's you select the harddisk you want to partition. If you only have one harddisk installed you'll see /dev/hda as your only choice. Press [ENTER]. If you have more choices, read the text and make a selection.
  3. Press [ENTER] at the screen LILO Limitations.
  4. The following message appears:
No partition table or unknown signature on partition table. 
Do you wish to start with a zero table [y/N]?

Press [y] to start the partitioning process.

The partition module cfdisk is started and presenting the following screen:

Image:Debinstpartcfdisk.png

In cfdisk the arrow keys behave different from what you might be used to. Left and right arrow select the menu. Up and down arrow select the different partitions or in our case of a clean install the Free Space.

Boot partition

  1. Select [New] and press [ENTER].
  2. Press [ENTER] again to choose [Primary].
  3. Set the partition size to 50 MB. Type 50 (five zero) and press [ENTER].
  4. Press [ENTER] again to choose [Beginning]. See the name that is written in the column Name at the above table -> hda1. Keep that in mind.
  5. Press [ENTER] again to choose [Bootable]. You see the word Boot appear in the column Flags (second from the left in the table above).
  6. Use the right arrow to point to [Write] and press [ENTER].

The following message appears:

Are you sure you want to write the partition table to disk? (yes or no)
Warning!! This may destry data on your disk!

Type yes and press [ENTER] to write the partition table. Wait till the message Wrote partition table to disk and the menu appears. == Swap partition ==

  1. Use the down arrow key to point the selection bar to the left over space.
  2. Select [New] and press [ENTER].
  3. Press [ENTER] to select [Primary].
  4. Set the size to 512 MB. It's recommended to choose double the size of your RAM memory for your swap disk. Let's assume we have 256 MB of RAM. You can change that of course if you want.
  5. Press [ENTER].
  6. Press [ENTER] to select [Beginning]. See the name that is written in the coloumn Name at the above table -> hda2. Keep that in mind.
  7. Use the right arrow key to select [Type]. You see a list of different types to choose from. Look for Linux swap, the number 82.

Image:debinstpartitioningtype.png

  1. Press [ENTER] to continue and see the second part of the list with the possibility to set the type.
  2. Type 82 and press [ENTER]. Notice that in the coloumn FS Type you'll find the description Linux swap.
  3. Select [Write] and press [ENTER].

The following message appears:

Are you sure you want to write the partition table to disk? (yes or no)
Warning!! This may destry data on your disk!

Type yes and press [ENTER] to write the partition table. Wait till the message Wrote partition table to disk and the menu appears. == Root partition ==

  1. Use the down arrow key to point the selection bar to the left over space.
  2. Select [New] and press [ENTER].
  3. Press [ENTER] to select [Primary].
  4. Type 1000 to set the size to at least 1000 MB to have enough room for data. You can choose more than 1000 MB if you want or need to.
  5. Press [ENTER].
  6. Press [ENTER] to select [Beginning]. See the name that is written in the coloumn Name at the above table -> hda3. Keep that in mind.
  7. Use the right arrow key to select [Write] and press [ENTER].

The following message appears:

Are you sure you want to write the partition table to disk? (yes or no)
Warning!! This may destry data on your disk!

Type yes and press [ENTER] to write the partition table. Wait till the message Wrote partition table to disk and the menu appears.

Check your partition settings if they look like to following image:

Image:Debianinstpartitioningfinal.png

Select [Quit] to leave partitioning and get back to the debian installation. == Initialize partitions == Once back to the debian installation you should see that screen:

Image:Debianinstpartitionactivate.png

Initialize Swap Partition

  1. Press [ENTER] to continue.
  2. Next you can choose between running a bad block scan or not.
 Run a bad block scan on '/dev/hda2'?
  1. Select No and press [ENTER].
  2. Next screen Are you sure? appears:
You have chosen to initialize /dev/hda2 as a swap device. This will permanently erase any data on this partition. Are you sure you want to do this?
  1. Select Yes and press [ENTER] to create the swap partition.

Initialize Root Partition

  1. Press [ENTER] to select Next: Initialize a Linux Partition.
  2. Select /dev/hda3: Linux native and press [ENTER] to initialize the root partition first.
  3. Select No and press [ENTER] for bad block scan.
  4. Select Yes and press [ENTER] to initialize the partition.
  5. Select Yes and press [ENTER] to mount /dev/hda3 as the root partition.

Initialize boot partition

  1. Select Alternate: Initialize a Linux Partition and press [ENTER].
  2. Select No and press [ENTER] for bad block scan.
  3. Select Yes and press [ENTER] to initialize hda1 as the boot partition.
  4. Select /boot: A small (5-10MB) partition at the start of the disk. and press [ENTER].

Install and Configure Modules

Image:Debinstkernel.png

  1. Select Next: Installing Kernel and Driver Modules and press [ENTER].
  2. Select Yes at the Found a Debian CD-ROM message to install the packages from CD-ROM and press [ENTER].

Kernel and driver modules are installed on your computer. A few messages appear till you end up at this screen:

Image:Debinstconfigdriver.png

Select Next: Configure Device Driver Modules and press [ENTER].

Image:Debinstdriverexit.png

If you need to install special drivers, this is where you do it. Lets try without any special installations.

Select Exit -> Finished. Return to previous menu."" and press [ENTER].

Configure Network and Install the Base System

  1. Select Next: Configure the Network and press [ENTER].
  2. Enter a name for debian system, e.g. debian.
  3. At the message Automatic Network Configuration select Yes to automatically configure the interface with DHCP or BOOTP. Press [ENTER].
  4. The installation programm is trying to receive a IP address from the DHCP server. It will let you know about a sucessful configuration with a message.
  5. Press [ENTER] to continue.
  6. Select Next: Install the Base System and press [ENTER].

This process takes few minutes. Wait till the next screen allows you further selection.

  1. Select Next: Make System Bootable and press [ENTER].
  2. Select /dev/hda: Install LILO in the MBR (use this if unsure). and press [ENTER].
  3. Press [ENTER] at the screen Securing LILO.
  4. Select Next: Make a Boot Floppy if you have a floppy drive and want to create a boot floppy disk.
  5. Select Alternate: Reboot the System to reboot.
  6. Press [ENTER].
  7. Select Yes and press [ENTER] after you made sure that you removed the CD-ROM or image file so the system can boot up from the harddisk. = Configuring Debian =

Wait while Debian boots from the harddisk till you are greeted with the message Debian System Configuration.

  1. Press [ENTER] to continue with the configuring Debian.
  2. At the time zone configuration choose accordingly.
  3. Pick your geographic area.
  4. Pick your town.
  5. Select Yes to enable MD5 passwords. Press [ENTER].
  6. Choose Yes for shadow passwords. Press [ENTER].
  7. Enter a password for the user root. [NOTE] Don't lose that password or you'll have to reinstall Debian.
  8. Re-enter your password for the root user.
  9. Select Yes to create a normal user account. Press [ENTER].
  10. Enter a username.
  11. Enter the full name of the user.
  12. Enter the password for the new user.
  13. Re-enter the password.

PCMCIA

You might get the following message:

It seems your system doesn't need PCMCIA. It was installed with the rest of the kernel, but can be removed now.

Shall I remove the pcmcia packages?
  1. Select Yes to remove it unless you need it.
  2. Press [ENTER]. == Internet over PPP ==

Next message is a follows:

If you have an account on an ISP, and you want to use it to fetch the packages to install on the system from the INternet, you may configure the PPP service now, and I will open a PPP connection to your ISP.

Do you want to use a PPP connection to install the system?
  1. Select No if you are connected to the internet over your network. Otherwise choose 'Yes'. You need an internet connection in order to fetch more packages for your Debian installation.
  2. Press [ENTER]. == Apt Configuration ==

Since we chose the minimal CD image to install debian, we need more packages to be downloaded from the internet. In order to do that we have to set up some other sources.

  1. Select ftp to set up an ftp source..
  2. At Use non-US software? select <Yes>.
  3. At Use non-free software? select <No>.
  4. Select the country the mirror should be in, e.g. Switzerland.
  5. You get a list of possible mirrors to choose from. Select the mirror of your choice, e.g. sunsite.cnlab-switch.ch.
  6. Debian tests the apt source that you just selected to make sure that the connection works. If you encounter any problem at this point, check if the internet connection works.
  7. If the apt source works some packages are downloaded.
  8. After the download your can add another apt source. Select <No>.
  9. At Use security updates from security.debian.org? select <Yes>.
  10. More packages are downloaded.
  11. At Run tasksel? select <No>.
  12. At Run dselect? select <No>.

Debian reads the package lists and builds the dependency tree. It also remembers that we chose to remove the pcmcia package.

It tells you how many packages are being upgraded or newly installed and how many there are to be removed.

Image:Debinstpackagesdselect.png

  1. Press [ENTER] to accept the default selection (in this case Y for yes).
  2. Debian now downloads the packages to upgrade the system.
  3. After the packages are downloaded there is more configuration to be done.
  4. First task is the select the key map. Read the instructions if you like and then press [ENTER] to continue.
  5. Select Select keymap from arch list to apply the keymap.
  6. The selection gives you several possible keymaps. Select the keymap that corresponds with your keyboard, e.g. qewrtz.
  7. At the next screen select the keyboard layout, e.g. Swiss.
  8. In some cases you have to select the variant of the keyboard layout, e.g. German.
  9. At Do you want man and mandb to be installed setuid man? select <No>.

Debian continues with the configuration (might take a few minutes).

  1. At Do you want to erase any previously downloaded .deb files? press [ENTER] to select the default (Y for yes).
  2. Press [ENTER] to continue. == Configuring the mail system ==

Debian introduces the mail system configuration with the following message:

I can do some automatic configuration of your mail system, by asking you a number of questions. Later you may have to confirm and/or correct your answers. In any case, comprehensive information on configuring exim is in the eximdoc package and in /usr/share/doc/exim/spec.txt
[---Press return---]
  1. Press [ENTER] to continue.
  2. At Select a number from 1 to 5... press [ENTER] to select the default (default='1').
  3. At What is the 'visible' mail name of your system? press [ENTER] to select the default (default='debian').
  4. At If there are any more, enter them here, seperated... press [ENTER] to select the default (default='none').
  5. At Are there any domains you want to relay mail for--- press [ENTER] to select the default (default='none').
  6. At Are there any networks of local machines you want to relay mail for? press [ENTER] to select the default (default='none').
  7. At Which user account(s) should system administrator mail go to? type webmaster and press [ENTER].
  8. Debian repeats the configuration and asks you to confirm. Press [ENTER] to confirm.
  9. Debian writes the configuration. == Debian wraps up ==

With that Debian wraps up the configuration of the system and asks you to have fun.

Image:Debinstfinish.png

  1. Press [ENTER] to login.
  2. 'At the login prompt, type root.
  3. Enter the password that you chose for the root user.

Congratulation! Your Debian system is set up.

Now let's continue and install the TYPO3 packages.

Personal tools