home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / vrac / how_to.zip / INSTALL.HOW < prev    next >
Text File  |  1994-04-29  |  57KB  |  1,274 lines

  1. Archive-name: linux/howto/installation
  2. Last-modified: 23 Apr 94
  3.  
  4.   The Linux Installation HOWTO
  5.   by Matt Welsh, mdw@sunsite.unc.edu
  6.   v2.3, 23 April 1994
  7.  
  8.   This  document describes how to obtain and install the Linux software,
  9.   focusing on the popular Slackware distribution. It is the first  docu-
  10.   ment which a new Linux user should read to get started.
  11.  
  12.   1.  Introduction
  13.  
  14.   Linux  is  a freely-distributable implementation of UNIX for 80386 and
  15.   80486 machines. It supports a wide  range  of  software,  including  X
  16.   Windows,  Emacs,  TCP/IP networking (including SLIP), the works.  This
  17.   document assumes that you have heard of and know about Linux, and just
  18.   want to sit down and install it.
  19.  
  20.  
  21.  
  22.   1.1.  Other sources of information
  23.  
  24.   If  you have never heard of Linux before, there are several sources of
  25.   basic information about the system. One is the Linux Frequently  Asked
  26.   Questions          list          (FAQ),         available         from
  27.   sunsite.unc.edu:/pub/Linux/docs/FAQ.  This  document   contains   many
  28.   common  questions  (and  answers!) about Linux---it is a ``must read''
  29.   for new users.
  30.  
  31.   In the directory /pub/Linux/docs  on  sunsite.unc.edu  you'll  find  a
  32.   number  of other documents about Linux, including the Linux INFO-SHEET
  33.   and META-FAQ, both of which you should read.  Also take a look at  the
  34.   USENET newsgroups comp.os.linux.help and comp.os.linux.announce.
  35.  
  36.   Another  source  of  online  Linux  documentation  is  the Linux HOWTO
  37.   archive, on  sunsite.unc.edu:/pub/Linux/docs/HOWTO.  The  file  HOWTO-
  38.   INDEX in that directory explains what Linux HOWTOs are available.
  39.  
  40.   The  Linux Documentation Project is writing a set of manuals and books
  41.   about Linux, all of which are freely distributable on  the  net.   The
  42.   directory  /pub/Linux/docs/LDP on sunsite.unc.edu contains the current
  43.   set of LDP manuals.
  44.  
  45.   The book ``Linux Installation and  Getting  Started''  is  a  complete
  46.   guide  to  getting  and  installing  Linux,  as well as how to use the
  47.   system once you've installed it. It contains a  complete  tutorial  to
  48.   using  and  running  the  system,  and  much  more information than is
  49.   contained here. This HOWTO is simply a condensation  of  some  of  the
  50.   most   important  information  in  that  book.  You  can  get  ``Linux
  51.   Installation   and   Getting   Started''   from   sunsite.unc.edu   in
  52.   /pub/Linux/docs/LDP/install-guide.   The  README  file there describes
  53.   how you can order a printed copy of the book (about 180 pages).
  54.  
  55.  
  56.  
  57.   1.2.  New versions of this document
  58.  
  59.   New versions of the Linux  Installation  HOWTO  will  be  periodically
  60.   posted  to  comp.os.linux.announce,  comp.os.linux,  and news.answers.
  61.   They will also be uploaded  to  various  Linux  FTP  sites,  including
  62.   sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  63.  
  64.  
  65.  
  66.   1.3.  Feedback
  67.  
  68.   If  you  have  questions  or comments about this document, please feel
  69.   free to  mail  Matt  Welsh,  at  mdw@sunsite.unc.edu.  I  welcome  any
  70.   suggestions,  criticism, or postcards. If you find a mistake with this
  71.   document, please let me know so I can correct it in the next  version.
  72.   Thanks.
  73.  
  74.  
  75.   2.  Hardware Requirements
  76.  
  77.   What  kind  of system is needed to run Linux? This is a good question;
  78.   the actual hardware requirements for the system  change  periodically.
  79.   The  Linux  Hardware-HOWTO  gives a (more or less) complete listing of
  80.   hardware supported by Linux. The  Linux  INFO-SHEET  provides  another
  81.   list.
  82.  
  83.   At  the  very  least,  a  hardware  configuration  that looks like the
  84.   following is required:
  85.  
  86.   Any ISA, EISA or VESA  Local  Bus  80386  or  80486  system  will  do.
  87.   Currently,  the  MicroChannel  (MCA)  architecture  (found on IBM PS/2
  88.   machines) is not supported.  Any CPU from the 386SX to the 486DX2 will
  89.   work.  You do not need a math coprocessor, although it is nice to have
  90.   one.
  91.  
  92.   You need at least 4 megabytes of memory in your machine.  Technically,
  93.   Linux  will  run with only 2 megs, but most installations and software
  94.   require 4. The more memory you have, the happier you'll be. I  suggest
  95.   8 or 16 megabytes if you're planning to use X-Windows.
  96.  
  97.   Of  course,  you'll  need  a  hard  drive  and  an  AT-standard  drive
  98.   controller. All MFM, RLL, and IDE drives and controllers should  work.
  99.   Many  SCSI  drives and adaptors are supported as well; the Linux SCSI-
  100.   HOWTO contains more information on SCSI.
  101.  
  102.   Linux can actually run on a single 5.25" HD floppy,  but  that's  only
  103.   useful for installation and maintenance.
  104.  
  105.   Free  space  on your hard drive is needed as well. The amount of space
  106.   needed depends  on  how  much  software  you  plan  to  install.  Most
  107.   installations  require  somewhere  in  the  ballpark of 40 to 80 megs.
  108.   This includes space for the software, swap space (used as virtual  RAM
  109.   on your machine), and free space for users, and so on.
  110.  
  111.   It's  conceivable that you could run a minimal Linux system in 10 megs
  112.   or less, and it's conceivable that you could use well over 100 megs or
  113.   more  for  all  of  your  Linux  software.  The  amount varies greatly
  114.   depending on the amount of software you install and how much space you
  115.   require. More about this later.
  116.  
  117.   Linux  will  co-exist  with  other  operating systems, such as MS-DOS,
  118.   Microsoft Windows, or OS/2, on your hard drive. (In fact you can  even
  119.   access  MS-DOS  files  and  run  some MS-DOS programs from Linux.)  In
  120.   other words, when partitioning your drive for Linux,  MS-DOS  or  OS/2
  121.   live  on  their  own partitions, and Linux exists on its own. We'll go
  122.   into more detail later.
  123.  
  124.   You do NOT need to be running MS-DOS, OS/2,  or  any  other  operating
  125.   system  to  use  Linux.  Linux  is a completely different, stand-alone
  126.   operating system and does not rely on other OS's for installation  and
  127.   use.
  128.  
  129.   You  also  need a Hercules, CGA, EGA, VGA, or Super VGA video card and
  130.   monitor.  In general, if your video card and monitor work under MS-DOS
  131.   then  it  should  work  under  Linux.  However,  if  you wish to run X
  132.   Windows, there are other restrictions on the supported video hardware.
  133.   The  Linux XFree86-HOWTO contains more information about running X and
  134.   its requirements.
  135.  
  136.   In all, the minimal setup for Linux is not much more than is  required
  137.   for most MS-DOS or MS Windows systems sold today. If you have a 386 or
  138.   486 with at least 4 megs of RAM, then you'll be happy  running  Linux.
  139.   Linux does not require huge amounts of diskspace, memory, or processor
  140.   speed. I (used to) run Linux on a 386/16 MHz (the slowest machine  you
  141.   can get) with 4 megs of RAM, and was quite happy. The more you want to
  142.   do, the  more  memory  (and  faster  processor)  you'll  need.  In  my
  143.   experience  a  486  with  16  megabytes  of  RAM running Linux outdoes
  144.   several models of workstation.
  145.  
  146.  
  147.  
  148.   3.  Getting Linux
  149.  
  150.   In this section we'll cover how to obtain the Linux software.
  151.  
  152.  
  153.   3.1.  Linux Distributions
  154.  
  155.   Before you can install Linux,  you  need  to  decide  on  one  of  the
  156.   ``distributions''  of  Linux  which are available. There is no single,
  157.   standard release of the Linux software---there are many such releases.
  158.   Each  release has its own documentation and installation instructions.
  159.  
  160.   Linux distributions are available both via anonymous FTP and via  mail
  161.   order on diskette, tape, and CD-ROM. The Linux Distribution HOWTO (see
  162.   sunsite.unc.edu in the file  /pub/Linux/docs/HOWTO/Distribution-HOWTO)
  163.   includes a list of many Linux distributions available via FTP and mail
  164.   order.
  165.  
  166.   The  release  of  Linux  covered  in  this  HOWTO  is  the   Slackware
  167.   distribution,      maintained     by     Patrick     J.     Volkerding
  168.   (volkerdi@mhd1.moorhead.msus.edu). It  is  one  of  the  most  popular
  169.   distributions  available;  it  is  very up-to-date and includes a good
  170.   amount  of  software  including  X-Windows,  TeX,  and  others.    The
  171.   Slackware distribution consists of a number of ``disk sets'', each one
  172.   containing a particular type of software (for example, the d disk  set
  173.   contains  development  tools  such as the gcc compiler, and so forth).
  174.   You can elect to install whatever disk sets you like, and  can  easily
  175.   install new ones later.
  176.  
  177.   Slackware  is  also easy to install; it is very self-explanatory.  (So
  178.   self-explanatory, in fact, that this HOWTO may not be necessary.)
  179.  
  180.   The version of Slackware described here is 1.2.0, of  22  March  1994.
  181.   Installation  of later versions of Slackware should be very similar to
  182.   the information given here.
  183.  
  184.   Information on other releases can be found in the  Linux  Installation
  185.   and  Getting  Started  manual  from  the  LDP. You can also find other
  186.   releases    of    Linux    on    various    FTP    sites,    including
  187.   sunsite.unc.edu:/pub/Linux/distributions  See  the  Distribution-HOWTO
  188.   (mentioned above) for details.
  189.  
  190.   The instructions here should be general enough  to  be  applicable  to
  191.   releases  other  than  Slackware. I hate to be biased towards a single
  192.   release, but I don't have time to keep up with them all! And Slackware
  193.   appears to have what most Linux users are looking for.
  194.  
  195.  
  196.  
  197.   3.2.  Slackware Space Requirements
  198.  
  199.   Unfortunately,   Slackware  does  not  maintain  a  complete  list  of
  200.   diskspace requirements  for  each  disk  set.  You  need  at  least  7
  201.   megabytes to install just the A series of disks; a very rough estimate
  202.   of the required diskspace would be 2 or 2.5 megabytes per disk.
  203.  
  204.   The following disk sets are available:
  205.  
  206.      A  The base system. Enough to get up and running and have elvis and
  207.         comm  programs available. Based around the 1.0 Linux kernel, and
  208.         the new filesystem standard (FSSTND).
  209.  
  210.         These disks are known to fit on 1.2M disks, although the rest of
  211.         Slackware  won't.  If you have only a 1.2M floppy, you can still
  212.         install the base system,  download  other  disks  you  want  and
  213.         install them from your hard drive.
  214.  
  215.  
  216.      AP Various  applications  and  add  ons,  such as the manual pages,
  217.         groff, ispell (GNU and international versions), term, joe, jove,
  218.         ghostscript, sc, bc, and the quota patches.
  219.  
  220.  
  221.      D  Program  development.  GCC/G++/Objective  C 2.5.8, make (GNU and
  222.         BSD), byacc and GNU bison, flex, the 4.5.19  C  libraries,  gdb,
  223.         kernel  source  for  1.0, SVGAlib, ncurses, clisp, f2c, p2c, m4,
  224.         perl, rcs.
  225.  
  226.  
  227.      E  GNU Emacs 19.22.
  228.  
  229.  
  230.      F  A collection of FAQs and other documentation.
  231.  
  232.  
  233.      I  Info pages for GNU software. Documentation for various  programs
  234.         readable by info or Emacs.
  235.  
  236.  
  237.      N  Networking. TCP/IP, UUCP, mailx, dip, deliver, elm, pine, smail,
  238.         cnews, nn, tin, trn.
  239.  
  240.  
  241.      OOP
  242.         Object  Oriented  Programming.  GNU  Smalltalk  1.1.1,  and  the
  243.         Smalltalk Interface to X. (STIX)
  244.  
  245.  
  246.      TCL
  247.         Tcl, Tk, TclX, blt, itcl.
  248.  
  249.  
  250.      Y  Games. The BSD games collection, and Tetris for terminals.
  251.  
  252.  
  253.      X  The  base  XFree86 2.0 system, with libXpm, fvwm 1.20, and xlock
  254.         added.
  255.  
  256.  
  257.      XAP
  258.         X applications: X11 ghostscript, libgr13, seyon, workman, xfile-
  259.         manager,  xv 3.00, GNU chess and xboard, xfm 1.2, ghostview, and
  260.         various X games.
  261.  
  262.  
  263.      XD X11 program development. X11 libraries, server linkkit, PEX sup-
  264.         port.
  265.  
  266.  
  267.  
  268.      XV Xview  3.2 release 5. XView libraries, and the Open Look virtual
  269.         and non-virtual window managers.
  270.  
  271.  
  272.      IV Interviews libraries, include files, and the doc and idraw apps.
  273.         These  run unreasonably slow on my machine, but they might still
  274.         be worth looking at.
  275.  
  276.  
  277.      OI ParcPlace's Object Builder 2.0 and Object Interface Library 4.0,
  278.         generously  made available for Linux developers according to the
  279.         terms in the "copying" notice found in these directories.
  280.  
  281.  
  282.      T  TeX support. Since many people have asked about TeX, I  borrowed
  283.         the  3  TeX  disks  from  SLS and went through them changing the
  284.         filesystem structure somewhat and fixing  permissions.  You  can
  285.         take  this  as a sign that Slackware TeX support may continue to
  286.         improve.
  287.  
  288.   You must get the ``a'' disk set; the rest are optional.  I suggest  at
  289.   least  installing  the  a, ap, and d sets, as well as the x set if you
  290.   plan to run X Windows.
  291.  
  292.  
  293.   3.3.  Getting Slackware via Mail Order
  294.  
  295.   Slackware is available for free from the Internet, as well as via mail
  296.   order  (if  you  don't have Internet access, or don't want to take the
  297.   time to download it yourself).  The  next  section  describes  how  to
  298.   download Slackware from the Internet.
  299.  
  300.   The  various  mail  order  distributors for Slackware (and other Linux
  301.   distributions) are  listed  in  the  Linux  Distribution  HOWTO,  from
  302.   sunsite.unc.edu in the directory /pub/Linux/docs/HOWTO.
  303.  
  304.  
  305.   3.4.  Getting Slackware from the Internet
  306.  
  307.   The Slackware release of Linux may be found on any number of FTP sites
  308.   worldwide. The Linux META-FAQ lists several of the Linux FTP sites; we
  309.   suggest that you try to find the software on the FTP site nearest you,
  310.   to reduce net traffic. However, two of the major Linux FTP  sites  are
  311.   sunsite.unc.edu and tsx-11.mit.edu.
  312.  
  313.   The Slackware release may be found on the following FTP sites:
  314.  
  315.   o  sunsite.unc.edu:/pub/Linux/distributions/slackware
  316.  
  317.   o  tsx-11.mit.edu:/pub/linux/packages/slackware
  318.  
  319.   o  ftp.cdrom.com:/pub/linux/slackware
  320.  
  321.      ftp.cdrom.com is Slackware's home site.
  322.  
  323.  
  324.   3.4.1.  Downloading the files
  325.  
  326.   You  need  to  download  the following files from the FTP sites listed
  327.   above. Make sure that you use binary mode when FTPing them!
  328.  
  329.  
  330.   o  The various README files, as well as  SLACKWARE_FAQ.   Be  sure  to
  331.      read  these files before attempting to install the software, to get
  332.      any updates or changes to this document.
  333.  
  334.   o  A bootdisk image. This is a file that you will write to a floppy to
  335.      create  the  Slackware  boot disk. If you have a 1.44 megabyte boot
  336.      floppy (3.5"), look in the directory install/1_44meg/bootdisks.  If
  337.      you  have a 1.2 megabyte boot floppy (5.25"), look in the directory
  338.      install/1_2meg/bootdisks.  The README files  in  these  directories
  339.      describes what the files are.
  340.  
  341.      You need one of the following files:
  342.  
  343.   o  bare.gz.  This  is  a  boot  floppy  that  has  only IDE hard drive
  344.      drivers. (No SCSI, CD-ROM, or networking support.)  Use this if you
  345.      only  have  an  IDE  hard  drive  controller and aren't going to be
  346.      installing over the network or from CD-ROM.
  347.  
  348.   o  xt.gz. This is a boot floppy with IDE and XT hard drive support.
  349.  
  350.   o  cd.gz. Contains IDE hard drive and non-SCSI  CD-ROM  drivers.   Get
  351.      this  if  you're  going  to  be installing from a (non-SCSI) CD-ROM
  352.      (only relevant if you bought a Slackware CD-ROM of some kind).
  353.  
  354.   o  cdscsi.gz. Contains IDE and SCSI hard drive support,  and  non-SCSI
  355.      CD-ROM drivers.
  356.  
  357.  
  358.   o  scsi.gz.  Contains IDE and SCSI hard drive support, and SCSI CD-ROM
  359.      drivers.
  360.  
  361.   o  net.gz. Contains IDE hard drive and TCP/IP networking support.  Get
  362.      this if you are going to install over the network using NFS.
  363.  
  364.   o  scsinet.gz.  Contains  IDE and SCSI hard drive support, SCSI CD-ROM
  365.      drivers, and TCP/IP networking support.  You might want to try this
  366.      one  first;  use  bare.gz or one of the other boot floppies if this
  367.      doesn't work for you.
  368.  
  369.      You need only one of the above bootdisk images,  depending  on  the
  370.      type hardware that you have in your system.
  371.  
  372.      The  issue  here  is  that some hardware drivers conflict with each
  373.      other in strange ways, and instead of attempting to debug  hardware
  374.      problems on your system it's easier to use a boot floppy image with
  375.      only certain drivers enabled. Most  users  should  try  scsi.gz  or
  376.      bare.gz.
  377.  
  378.   o  A rootdisk image. This is a file that you will write to a floppy to
  379.      create the Slackware installation disk. As with the bootdisk image,
  380.      look   in   install/1_44meg/rootdisks  or  install/1_2meg/rootdisks
  381.      depending on the type of boot floppy drive that you have.
  382.  
  383.      You need one of the following files:
  384.  
  385.   o  color144.gz. The menu-based color installation disk  for  1.44  meg
  386.      drives. Most users should use this rootdisk.
  387.  
  388.   o  tty144.gz.  The  terminal-based  installation  disk  for  1.44  meg
  389.      drives. You should use color144.gz, but a few people have  reported
  390.      problems  with  it on their system. If color144.gz doesn't work for
  391.      you, try tty144.gz instead.  It is a bit dated and the installation
  392.      procedure  isn't  identical,  but  it  should  work  if color144.gz
  393.      doesn't.
  394.  
  395.   o  colrlite.gz. The menu-based color installation  disk  for  1.2  meg
  396.      drives.  Some  things have been trimmed off of this disk to make it
  397.      fit on a 1.2 meg floppy, but it should work if you only have a  1.2
  398.      meg drive.
  399.  
  400.   o  tty12.gz.  The terminal-based installation disk for 1.2 meg drives.
  401.      Use this rootdisk if you have a 1.2 meg boot floppy and colrlite.gz
  402.      doesn't work for you.
  403.  
  404.      Again, you need only one of the above rootdisk images, depending on
  405.      the type of boot floppy drive that you have.
  406.  
  407.   o  GZIP.EXE. This is an MS-DOS  executable  of  the  gzip  compression
  408.      program  used  to  compress  the  boot  and rootdisk files (the .gz
  409.      extension on the filenames indicates this). This can  be  found  in
  410.      the install directory.
  411.  
  412.   o  RAWRITE.EXE. This is an MS-DOS program that will write the contents
  413.      of a file (such as the boot and  rootdisk  images)  directly  to  a
  414.      floppy,  without  regard  to  format.  You  will use RAWRITE.EXE to
  415.      create the boot and root  floppies.   This  can  be  found  in  the
  416.      install directory as well.
  417.  
  418.      You  only  need  RAWRITE.EXE and GZIP.EXE if you plan to create the
  419.      boot and root floppies from an MS-DOS system. If you have access to
  420.      a  UNIX workstation with a floppy drive instead, you can create the
  421.      floppies from there, using the dd command.  See the man page for dd
  422.      and ask your local UNIX gurus for assistance.
  423.  
  424.   o  The  files  in the directories a1, a2, and a3.  These files make up
  425.      the  ``a''  disk  set  of  the  Slackware  distribution.  They  are
  426.      required.  Later,  you will copy these files to MS-DOS floppies for
  427.      installation (or, you can install from your hard drive). Therefore,
  428.      when  you  download these files, keep them in separate directories;
  429.      don't mix the a1 files with the a2 files, and so on.
  430.  
  431.      Be sure that you get the files without periods in the filenames  as
  432.      well.  That  is,  within FTP, use the command ``mget *'' instead of
  433.      ``mget *.*''.
  434.  
  435.   o  The files in the directories ap1, ap2, etc., depending on what disk
  436.      sets  you  are  installing.  For example, if you are installing the
  437.      ``x'' disk series, get the files in the directories x1 through  x5.
  438.      As  with  the  ``a''  disk set, above, be sure to keep the files in
  439.      separate directories when you download them.
  440.  
  441.  
  442.   3.4.2.  Installation methods
  443.  
  444.   Slackware provides several different means of installing the software.
  445.   The  most  popular is installing from an MS-DOS partition on your hard
  446.   drive; the other is to install from a set of MS-DOS  floppies  created
  447.   from the disk sets that you downloaded.
  448.  
  449.   You  can  also install Slackware from an NFS-mounted filesystem over a
  450.   TCP/IP network. This is somewhat involved, however, and  a  discussion
  451.   of  how  to  do this is out of the range of this document. If you need
  452.   help, ask your local UNIX gurus how to set up your system to mount  an
  453.   NFS filesystem which you can install Slackware from. (For this, you'll
  454.   need another system on the network which has Slackware available on an
  455.   exported filesystem.)
  456.  
  457.   First  we'll  describe  how  to create the boot and root floppies, and
  458.   then we'll describe how to set things up for either a  hard  drive  or
  459.   floppy installation.
  460.  
  461.  
  462.   3.4.2.1.  Creating the boot and root floppies
  463.  
  464.   You  must  create  floppies from the bootdisk and rootdisk images that
  465.   you downloaded, no matter what type of installation you will be doing.
  466.   This  is  where the MS-DOS programs GZIP.EXE and RAWRITE.EXE come into
  467.   play.
  468.  
  469.   First you must uncompress  the  bootdisk  and  rootdisk  images  using
  470.   GZIP.EXE  (on  an  MS-DOS  system,  of course). For example, if you're
  471.   using the bare.gz bootdisk image, issue the MS-DOS command:
  472.  
  473.        C:\> GZIP -D BARE.GZ
  474.  
  475.  
  476.   which will uncompress bare.gz and leave you with the  file  bare.  You
  477.   must  similarly uncompress the rootdisk image. For example, if you are
  478.   using the rootdisk color144.gz, issue the command:
  479.  
  480.        C:\> GZIP -D COLOR144.GZ
  481.  
  482.  
  483.   which will uncompress the file and leave you with color144.
  484.  
  485.   Next, you must have two high-density MS-DOS formatted floppies.  (They
  486.   must be of the same type; that is, if your boot floppy drive is a 3.5"
  487.   drive, both floppies must be high-density 3.5" disks.)  You  will  use
  488.   RAWRITE.EXE to write the boot and rootdisk images to the floppies.
  489.  
  490.   For example, if you're using the bare.gz bootdisk, use the command:
  491.  
  492.        C:\> RAWRITE
  493.  
  494.  
  495.   Answer  the  prompts  for the name of the file to write (such as BARE-
  496.   BOOT) and the floppy to write it to (such as A:).  RAWRITE  will  copy
  497.   the file, block-by-block, directly to the floppy. Also use RAWRITE for
  498.   the root disk image (such as COLOR144). When you're done, you'll  have
  499.   two  floppies:  one containing the boot disk, the other containing the
  500.   root disk. Note that these two floppies will no longer be readable  by
  501.   MS-DOS (they are ``Linux format'' floppies, in some sense).
  502.  
  503.   Be sure that you're using brand-new, error-free floppies. The floppies
  504.   must have no bad blocks on them.
  505.  
  506.   Note that you do not need to be running MS-DOS  in  order  to  install
  507.   Slackware.  However, running MS-DOS makes it easier to create the boot
  508.   and root floppies, and it makes it easier to install the software  (as
  509.   you  can install directly from an MS-DOS partition on your system). If
  510.   you are not running MS-DOS on your system, you can use someone  else's
  511.   MS-DOS system just to create the floppies, and install from there.
  512.  
  513.   It  is  not  necessary to use GZIP.EXE and RAWRITE.EXE under MS-DOS to
  514.   create the boot and root floppies, either. You can use the gzip and dd
  515.   commands  on  a  UNIX  system to do the same job.  (For this, you will
  516.   need a UNIX workstation with a floppy drive, of course.) For  example,
  517.   on  a  Sun  workstation with the floppy drive on device /dev/rfd0, you
  518.   can use the commands:
  519.  
  520.  
  521.        $ gunzip bare.gz
  522.        $ dd if=bare of=/dev/rfd0 obs=18k
  523.  
  524.  
  525.  
  526.  
  527.   You must provide the appropriate block size argument  (the  obs  argu-
  528.   ment) on some workstations (e.g., Suns) or this will fail. If you have
  529.   problems the man page for dd will be instructive.
  530.  
  531.  
  532.   3.4.2.2.  Preparing for hard drive installation
  533.  
  534.   If you're planning on installing the Slackware software directly  from
  535.   the  hard  drive (which is much faster and more reliable than a floppy
  536.   installation), you will need an MS-DOS partition on  the  system  that
  537.   you're  installing Slackware to. (That is, you must already be running
  538.   MS-DOS on the system.)
  539.  
  540.   To prepare for hard drive installation, simply create a  directory  on
  541.   the hard drive to store the Slackware files. For example,
  542.  
  543.        C:\> MKDIR SLACKWAR
  544.  
  545.  
  546.   will  create  the  directory  C:\SLACKWAR to hold the Slackware files.
  547.   Under this directory, you should create the subdirectories A1, A2, and
  548.   so  on,  for  each disk set that you downloaded. All of the files from
  549.   the A1 disk should go into the directory SLACKWAR\A1, and so forth.
  550.  
  551.   Now you're ready to go on  and  install  the  software;  skip  to  the
  552.   section ``Installing the Software''.
  553.  
  554.  
  555.   3.4.2.3.  Preparing for floppy installation
  556.  
  557.   If  you  wish  to  install Slackware from floppies instead of the hard
  558.   drive, you'll need to have one blank, MS-DOS formatted floppy for each
  559.   Slackware  disk  that you downloaded. These disks must be high-density
  560.   format.
  561.  
  562.   The A disk set (disks A1 through A3)  may  be  either  3.5"  or  5.25"
  563.   floppies.  However,  the  rest  of  the  disk sets must be 3.5" disks.
  564.   Therefore, if you only have a  5.25"  floppy  drive,  you'll  need  to
  565.   borrow  a  3.5" drive from someone in order to install disk sets other
  566.   than A. (Or, you can install from the hard drive, as explained in  the
  567.   previous section.)
  568.  
  569.   To make the disks, simply copy the files from each Slackware directory
  570.   onto an MS-DOS formatted floppy, using the MS-DOS COPY command. As so:
  571.  
  572.        C:\> COPY A1\*.* A:
  573.  
  574.  
  575.   will  copy the contents of the A1 disk to the floppy in drive A:.  You
  576.   should repeat this for each disk that you downloaded.
  577.  
  578.   You do not need to modify or uncompress the files on the disks in  any
  579.   way;  you  merely  need to copy them to MS-DOS floppies. The Slackware
  580.   installation procedure takes care of uncompressing the files for  you.
  581.  
  582.  
  583.   4.  Installing the Software
  584.  
  585.   In  this  section  we'll  describe  how  to  prepare  your  system for
  586.   installing Slackware, and finally how to go about installing it.
  587.  
  588.  
  589.   4.1.  Repartitioning
  590.  
  591.   On most systems, the hard drive is already dedicated to partitions for
  592.   MS-DOS, OS/2, and so on.  You need to resize these partitions in order
  593.   to make space for Linux.
  594.  
  595.   A partition is just a section of  the  hard  drive  set  aside  for  a
  596.   particular operating system to use. If you only have MS-DOS installed,
  597.   your hard drive probably has just one partition, entirely for  MS-DOS.
  598.   To  use  Linux, however, you'll need to repartition the drive, so that
  599.   you have one partition for MS-DOS, and one (or more) for Linux.
  600.  
  601.   Partitions come in three  flavors:  primary,  extended,  and  logical.
  602.   Briefly,  primary  partitions  are  one of the four main partitions on
  603.   your drive. However, if you wish to have more than four partitions per
  604.   drive,  you  need  to  create an extended partition, which can contain
  605.   many logical partitions.  You don't store data directly on an extended
  606.   partition---it  is  used  only  as a container for logical partitions.
  607.   Data is stored on either primary or logical partitions.
  608.  
  609.   The problem with resizing partitions is that there is no way to do  it
  610.   (easily)  without  deleting  the data on those partitions.  Therefore,
  611.   you  will  need  to  make  a  full  backup  of  your   system   before
  612.   repartitioning.  In  order to resize a partition, we simply delete the
  613.   partition(s), and re-create them with smaller sizes.
  614.  
  615.   Note that you can easily install Linux on the  second  drive  on  your
  616.   system  (known  as  D:  to MS-DOS). You simply specify the appropriate
  617.   device  name,  either  /dev/hdb  or  /dev/sdb,  when  creating   Linux
  618.   partitions. This is described in detail below.
  619.  
  620.   NOTE:  There is a non-destructive disk repartitioner available for MS-
  621.   DOS,  called  FIPS.  Look  on   sunsite.unc.edu   in   the   directory
  622.   /pub/Linux/system/Install. With FIPS, a disk optimizer (such as Norton
  623.   Speed Disk), and a little bit of luck, you should be  able  to  resize
  624.   MS-DOS partitions without destroying the data on them.
  625.  
  626.   If  you're  not  using  FIPS,  however,  the  classic  way  to  modify
  627.   partitions is with the program FDISK. For example, let's say that  you
  628.   have an 80 meg hard drive, dedicated to MS-DOS. You'd like to split it
  629.   in half---40 megs for MS-DOS and 40 megs for Linux.  In  order  to  do
  630.   this,  you  need  to  run FDISK under MS-DOS, delete the 80 meg MS-DOS
  631.   partition, and re-create a 40 meg MS-DOS partition in its  place.  You
  632.   can  then  format the new partition and reinstall your MS-DOS software
  633.   from backups.
  634.  
  635.   Use of MS-DOS FDISK should be self-explanatory. You'll need to make  a
  636.   full  backup  of  your  system, and have a bootable MS-DOS floppy with
  637.   utilities such as FDISK.EXE and FORMAT.COM installed (the original MS-
  638.   DOS  installation  disks  are the best thing to use for this). Booting
  639.   from the floppy, you run FDISK on your hard drive, and  use  the  menu
  640.   options to delete your current MS-DOS partition, and then re-create it
  641.   with a smaller size. You can then re-install the MS-DOS software  from
  642.   backup.
  643.  
  644.   Note  that  MS-DOS FDISK will give you an option to create a ``logical
  645.   DOS drive''. A logical DOS drive is just a logical partition  on  your
  646.   hard  drive.  You  can  install  Linux on a logical partition, but you
  647.   don't want to create that logical partition with MS-DOS fdisk. So,  if
  648.   you're  currently using a logical DOS drive, and want to install Linux
  649.   in its place, you should delete the logical drive with  MS-DOS  FDISK,
  650.   and (later) create a logical partition for Linux in its place.
  651.  
  652.   The mechanism used to repartition for OS/2 and other operating systems
  653.   is similar. See the documentation  for  those  operating  systems  for
  654.   details.
  655.  
  656.  
  657.  
  658.   4.2.  Creating partitions for Linux
  659.  
  660.   After  repartitioning  your  drive,  you need to create partitions for
  661.   Linux. Linux requires at least one partition, for the root filesystem,
  662.   which  will  hold  the  Linux  software  itself.   You may wish to use
  663.   additional partitions for other filesystems, as  discussed  below.  In
  664.   addition, most users set aside a swap partition, to be used as virtual
  665.   RAM on your machine.  If you have 4 megabytes of RAM or less,  a  swap
  666.   partition  is  required  to  install  the  software.  It  is  strongly
  667.   recommended that you have a swap partition anyway, unless you have  16
  668.   megabytes or more of physical RAM.
  669.  
  670.   In  order  to  create  your Linux partitions, first boot the Slackware
  671.   bootdisk. After the system boots, you will see the message:
  672.  
  673.  
  674.        Please remove the boot kernel disk from your floppy drive,
  675.        insert a disk to be loaded into the ramdisk, and press
  676.        [enter] to continue.
  677.  
  678.  
  679.  
  680.  
  681.   At this point you should remove the bootdisk from the drive and insert
  682.   the rootdisk. Then press enter to go on.
  683.  
  684.   The  rootdisk  will be loaded into memory, and you should be presented
  685.   with a login prompt. Login as ``root''.
  686.  
  687.  
  688.        darkstar login: root
  689.        #
  690.  
  691.  
  692.  
  693.  
  694.   Note to IBM PS/1, ValuePoint, and ThinkPad Users: If you  use  an  IBM
  695.   PS/1,  ValuePoint,  or ThinkPad machine, the system will not recognize
  696.   your hard drive when you boot the Slackware bootdisk. This is  because
  697.   these machines do not store drive geometry information in the CMOS (as
  698.   they should) and you  have  to  specify  the  geometry  by  hand  when
  699.   booting.  (Later  you  can  get  around  this  by  installing the LILO
  700.   software, which allows you to boot Linux from the hard drive.)
  701.  
  702.   You must use a bootdisk other than  ``bare''  for  this  to  work.   I
  703.   suggest  using scsi.gz. While booting the bootdisk, hold down the left
  704.   shift key. You will be presented with a boot menu which will  describe
  705.   how  to  specify  your  hard  drive  geometry  (that is, the number of
  706.   cylinders, heads, and sectors per track) for your drive using  the  hd
  707.   boot  option. You can get information on your drive geometry from your
  708.   hard drive manual or by running MS-DOS FDISK.
  709.  
  710.  
  711.   4.2.1.  Using fdisk
  712.  
  713.   To create partitions, you'll  use  the  Linux  fdisk  program.   After
  714.   logging in as root, run the command
  715.  
  716.        fdisk <drive>
  717.  
  718.  
  719.   where  <drive>  is the name of the drive that you wish to create Linux
  720.   partitions on. Hard drive device names are:
  721.  
  722.   o  /dev/hda First IDE drive
  723.  
  724.   o  /dev/hdb Second IDE drive
  725.  
  726.   o  /dev/sda First SCSI drive
  727.  
  728.   o  /dev/sdb Second SCSI drive
  729.  
  730.      and so on. For example, to create Linux  partitions  on  the  first
  731.      SCSI drive in your system, use the command
  732.  
  733.        fdisk /dev/sda
  734.  
  735.  
  736.   If you use fdisk without an argument, it will assume /dev/hda.
  737.  
  738.   To  create Linux partitions on the second drive on your system, simply
  739.   specify either /dev/hdb or /dev/sdb when running fdisk.
  740.  
  741.   Use of fdisk is  simple.  The  command  ``p''  displays  your  current
  742.   partition  table.  ``n''  creates a new partition, and ``d'' deletes a
  743.   partition.
  744.  
  745.   To Linux, partitions are given a name based on the  drive  which  they
  746.   belong  to. For example, the first partition on /dev/hda is /dev/hda1,
  747.   the second is /dev/hda2, and so on.
  748.  
  749.   NOTE: You should not create or delete partitions for operating systems
  750.   other than Linux with Linux fdisk. That is, don't create or delete MS-
  751.   DOS partitions with this version of fdisk;  use  MS-DOS's  version  of
  752.   FDISK  instead.  If  you  try  to  create MS-DOS partitions with Linux
  753.   fdisk, chances are MS-DOS will not recognize  the  partition  and  not
  754.   boot correctly.
  755.  
  756.   Here's  an  example  of  using  fdisk.  Here,  we have a single MS-DOS
  757.   partition using 61693 blocks on the drive, and the rest of  the  drive
  758.   is  free  for Linux. (Under Linux, one block is 1024 bytes. Therefore,
  759.   61693 blocks is  about  61  megabytes.)   We  will  create  two  Linux
  760.   partitions: one for swap, and one for the root filesystem.
  761.  
  762.   First,  we  use  the  ``p''  command  to display the current partition
  763.   table.  As you can see, /dev/hda1 (the first partition on /dev/hda) is
  764.   a DOS partition of 61693 blocks.
  765.  
  766.   ______________________________________________________________________
  767.   Command (m for help):   p
  768.   Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders
  769.   Units = cylinders of 608 * 512 bytes
  770.  
  771.        Device Boot  Begin   Start     End  Blocks   Id  System
  772.     /dev/hda1   *       1       1     203   61693    6  DOS 16-bit >=32M
  773.  
  774.   Command (m for help):
  775.   ______________________________________________________________________
  776.  
  777.  
  778.  
  779.   Next,  we  use  the ``n'' command to create a new partition. The Linux
  780.   root partition will be 80 megs in size.
  781.  
  782.   ______________________________________________________________________
  783.   Command (m for help):  n
  784.   Command action
  785.       e   extended
  786.       p   primary partition (1-4)
  787.   p
  788.   ______________________________________________________________________
  789.  
  790.  
  791.   A primary partition is simply one of the 4 partitions on  your  drive.
  792.   An extended partition allows you to create multiple logical partitions
  793.   within it; this allows you to go over the four-partition limit on  the
  794.   drive.  In  most  cases, you should only use primary partitions unless
  795.   you need more than 4 partitions on a drive.
  796.   ______________________________________________________________________
  797.   Partition number (1-4): 2
  798.   First cylinder (204-683):  204
  799.   Last cylinder or +size or +sizeM or +sizeK (204-683): +80M
  800.   ______________________________________________________________________
  801.  
  802.  
  803.  
  804.   The first cylinder  should  be  the  cylinder  AFTER  where  the  last
  805.   partition  left off. In this case, /dev/hda1 ended on cylinder 203, so
  806.   we start the new partition at cylinder 204.
  807.  
  808.   As you can see, if we  use  the  notation  ``+80M'',  it  specifies  a
  809.   partition  of  80  megs in size. Likewise, the notation ``+80K'' would
  810.   specify an 80 kilobyte partition, and ``+80'' would specify just an 80
  811.   byte partition.
  812.  
  813.   ______________________________________________________________________
  814.   Warning: Linux cannot currently use 33090 sectors of this partition
  815.   ______________________________________________________________________
  816.  
  817.  
  818.   If  you  see  this warning, you can ignore it. It is left over from an
  819.   old restriction that Linux filesystems could only be 64 megs in  size.
  820.   However,  with  newer  filesystem types, that is no longer the case...
  821.   partitions can now be up to 4 terabytes in size.
  822.  
  823.   Next, we create our 10 megabyte swap partition, /dev/hda3.
  824.  
  825.   ______________________________________________________________________
  826.   Command (m for help): n
  827.   Command action
  828.       e   extended
  829.       p   primary partition (1-4)
  830.   p
  831.  
  832.   Partition number (1-4): 3
  833.   First cylinder (474-683):  474
  834.   Last cylinder or +size or +sizeM or +sizeK (474-683):  +10M
  835.   ______________________________________________________________________
  836.  
  837.  
  838.  
  839.   Again, we display the contents of the  partition  table.  Be  sure  to
  840.   write down the information here, especially the size of each partition
  841.   in blocks. You need this information later.
  842.  
  843.   ______________________________________________________________________
  844.   Command (m for help): p
  845.   Disk /dev/hda: 16 heads, 38 sectors, 683 cylinders
  846.   Units = cylinders of 608 * 512 bytes
  847.  
  848.        Device Boot  Begin   Start     End  Blocks   Id  System
  849.     /dev/hda1   *       1       1     203   61693    6  DOS 16-bit >=32M
  850.     /dev/hda2         204     204     473   82080   83  Linux native
  851.     /dev/hda3         474     474     507   10336   83  Linux native
  852.   ______________________________________________________________________
  853.  
  854.  
  855.  
  856.   Note that the Linux swap partition (here, /dev/hda3) has type  ``Linux
  857.   native''.  We need to change the type of the swap partition to ``Linux
  858.   swap'' so that the installation program will recognize it  as  a  swap
  859.   partition. In order to do this, use the fdisk ``t'' command:
  860.  
  861.  
  862.   ______________________________________________________________________
  863.   Command (m for help): t
  864.   Partition number (1-4): 3
  865.   Hex code (type L to list codes): 82
  866.   ______________________________________________________________________
  867.  
  868.  
  869.   If  you  use  ``L'' to list the type codes, you'll find that 82 is the
  870.   code corresponding to Linux swap.
  871.  
  872.   To quit fdisk and save the changes to the  partition  table,  use  the
  873.   ``w''  command.  To  quit  fdisk WITHOUT saving changes, use the ``q''
  874.   command.
  875.  
  876.   After quitting fdisk, the system may tell you to reboot to  make  sure
  877.   that  the changes took effect. In general there is no reason to reboot
  878.   after using fdisk---the version of fdisk on the Slackware distribution
  879.   is smart enough to update the partitions without rebooting.
  880.  
  881.  
  882.   4.3.  Preparing the swap space
  883.  
  884.   If  you have 4 megabytes or RAM or less in your machine, you will need
  885.   to create a swap partition (using fdisk) and format it (using  mkswap)
  886.   before you can install the software.
  887.  
  888.   If  you  have  more  than 4 megabytes of RAM, you should only create a
  889.   swap partition (if you want to use one)---the  Slackware  installation
  890.   procedure   will  take  care  of  formatting  and  enabling  the  swap
  891.   partition. So, if you have more than 4 megs of RAM, you can skip  this
  892.   section and go on to the section ``Installing the Software''.
  893.  
  894.   If  you  get  any  ``out  of  memory''  errors during the installation
  895.   procedure you  should  create  a  swap  partition  and  enable  it  as
  896.   described here.
  897.  
  898.   To  prepare  the  swap  space  for use, we use the mkswap command.  It
  899.   takes the form:
  900.  
  901.        mkswap -c <partition> <size>
  902.  
  903.  
  904.   where <partition> is the partition name, such as /dev/hda3, and <size>
  905.   is the size of the partition in blocks.
  906.  
  907.   For  example,  if  you  created  a swap partition on /dev/hda3 of size
  908.   10336 blocks, use the command
  909.  
  910.        mkswap -c /dev/hda3 10336
  911.  
  912.  
  913.   The -c option tells mkswap to check for bad blocks  on  the  partition
  914.   when preparing the swap space. If you see any ``read_intr'' error mes-
  915.   sages during the mkswap operation, this means  that  bad  blocks  were
  916.   found (and flagged). So you can ignore these errors.
  917.  
  918.   To enable swapping on the new device, use the command
  919.  
  920.        swapon <partition>
  921.  
  922.  
  923.   For example, for our swap space on /dev/hda3, we use
  924.  
  925.        swapon /dev/hda3
  926.  
  927.  
  928.   We're now swapping with about 10 megabytes more virtual memory.
  929.  
  930.   You  should execute mkswap and swapon for each swap partition that you
  931.   created (if you decided to create more than one).
  932.  
  933.  
  934.   4.4.  Installing the software
  935.  
  936.   Installing  the  Slackware  release  is  very  simple;   it's   almost
  937.   automatic.  You  use  the  setup  command,  which guides you through a
  938.   series of menus which allow you to specify the means of  installation,
  939.   the  partitions to use, and so forth.  Almost everything is automatic.
  940.  
  941.   Here, we're not going to document  many  of  the  specifics  of  using
  942.   setup,  because  it  changes  from  time  to time. setup is very self-
  943.   explanatory; it contains its own documentation. Just to  give  you  an
  944.   idea   of   what   it's   like,  however,  we'll  describe  what  most
  945.   installations are like using setup.
  946.  
  947.   Before you  begin,  be  sure  that  you  have  a  high-density  MS-DOS
  948.   formatted  floppy  on hand. You will use this floppy to create a Linux
  949.   boot diskette.
  950.  
  951.   After running fdisk (and, perhaps, mkswap and swapon  if  you  have  4
  952.   megs of RAM or less), issue the command
  953.  
  954.        # setup
  955.  
  956.  
  957.   This  will present you with a colourful menu with various options such
  958.   as ``Addswap'' (to set up your swap space), ``Source'' (to specify the
  959.   source  of  the  software  to  install, such as floppy or hard drive),
  960.   ``Target'' (to specify where to install the software), and so on.
  961.  
  962.   In general, you should go through the menu commands in  the  following
  963.   order:
  964.  
  965.   1. Addswap.  If  you  created  a swap partition (using fdisk), use the
  966.      addswap menu option to tell the system about it.  This option  will
  967.      present  you  with a list of possible swap partitions; just type in
  968.      the name of the swap partition(s) that you wish  to  use  (such  as
  969.      /dev/hda3).  The system will then ask you if you want to format the
  970.      swap partition, which you should do unless you already  ran  mkswap
  971.      and  swapon  on  it.  That is, you should format the swap partition
  972.      unless you already formatted and enabled it by hand as described in
  973.      the previous section.
  974.  
  975.   2. Source.  This  menu  option  lets  you  specify  the source for the
  976.      software to install. You can select several means of  installation,
  977.      such  as from floppy or from hard drive. If you are installing from
  978.      floppies, the system will ask you which floppy drive to use. If you
  979.      are  installing  from  hard  drive,  the  system  will ask you what
  980.      partition the files are stored on, and what directory they are  in.
  981.  
  982.      For example, if you are installing from an MS-DOS partition on your
  983.      hard drive,  and  the  Slackware  files  are  under  the  directory
  984.      C:\SLACKWAR,  you  should  enter  the  name of the MS-DOS partition
  985.      (such as  /dev/hda1)  and  the  name  of  the  directory  (such  as
  986.      /slackwar).  Note  that  you  should  use  forward slashes (/), not
  987.      backslashes (\), in the directory name.
  988.  
  989.      There are other means of installation, such as CD-ROM. These should
  990.      be self-explanatory as well.
  991.  
  992.   3. Target.  This  menu  item  lets  you  specify  what partition(s) to
  993.      install the software on. The system will display a list of possible
  994.      partitions.  First  you will be asked to enter the name of the root
  995.      partition, such as /dev/hda2. You will be  asked  if  you  want  to
  996.      format  the  partition;  unless  you  are installing on a partition
  997.      previously formatted for Linux you should do so. You should use the
  998.      Second Extended Filesystem (ext2fs) type for the partition.
  999.  
  1000.      You  will  also  be given a chance to use additional partitions for
  1001.      different parts of the directory tree. For example, if you  created
  1002.      a  separate partition for the /usr filesystem, you should enter the
  1003.      name of that partition and the directory  that  it  corresponds  to
  1004.      (/usr) when asked.
  1005.  
  1006.   4. Disksets.  This  option allows you to specify the disksets you wish
  1007.      to install. Use the arrow keys to scroll through the list; pressing
  1008.      the  spacebar  selects or deselects a set. Press return when you're
  1009.      done selecting disk sets.
  1010.  
  1011.      You may wish to only install a minimal system at this time.  That's
  1012.      fine.  Only the A diskset is required. After you have installed the
  1013.      software you may run setup to install other disksets.
  1014.  
  1015.   5. Install. After setting up all of the parameters above, you're ready
  1016.      to install the software. First the system will ask you what type of
  1017.      prompting to use; you should use the  ``normal''  prompting  method
  1018.      (unless  you're  an  expert  and  have  modified  the  installation
  1019.      tagfiles in some way).
  1020.  
  1021.      The system will simply go through each disk  set  and  install  the
  1022.      software. For each software package, a dialog box will be displayed
  1023.      describing the software. Software packages that are  required  will
  1024.      be installed automatically. For optional software packages you will
  1025.      be given the option of either  installing  or  not  installing  the
  1026.      package.  (If  you don't wish to install a certain package now, you
  1027.      can always use setup on your system to install it later).
  1028.  
  1029.      While the software is installing, watch out for error messages that
  1030.      may  be  displayed. The most common error that you're likely to run
  1031.      into is ``device full'', which means that you have run out of space
  1032.      on your Linux partitions. Unfortunately, the Slackware installation
  1033.      procedure is not quite  smart  enough  to  detect  this,  and  will
  1034.      attempt  to continue installing the software regardless. If you get
  1035.      any kind of error messages during the installation  procedure,  you
  1036.      may wish to break out of the installation program (using Ctrl-C) to
  1037.      record them. The only solution for the ``device full''  problem  is
  1038.      to re-create your Linux partitions with different sizes, or attempt
  1039.      to reinstall the software without several of the optional  software
  1040.      packages.
  1041.  
  1042.  
  1043.  
  1044.   4.5.  After installation
  1045.  
  1046.   After  installation  is  complete,  and  if all goes well, you will be
  1047.   given the option of creating a ``standard boot disk'', which  you  can
  1048.   use  to boot your newly-installed Linux system. For this you will need
  1049.   a blank, high-density MS-DOS formatted diskette of the type  that  you
  1050.   boot  with  on your system. Simply insert the disk when prompted and a
  1051.   boot diskette will be created.
  1052.  
  1053.   You will also be given the chance to install LILO on your hard  drive.
  1054.   LILO  (which stands for LInux LOader) is a program that will allow you
  1055.   to boot Linux (as well as other operating  systems,  such  as  MS-DOS)
  1056.   from  your  hard  drive.  If  you  wish  to  do  this, just select the
  1057.   appropriate menu option and follow the prompts.
  1058.  
  1059.  
  1060.   If you are using OS/2's Boot Manager, the menu will include an  option
  1061.   for  configuring  LILO  for use with the Boot Manager, so that you can
  1062.   boot Linux from it.
  1063.  
  1064.   Note that this automated LILO installation procedure is not foolproof;
  1065.   there  are  situations in which this can fail. Be sure that you have a
  1066.   way to boot MS-DOS, Linux, and other  operating  systems  from  floppy
  1067.   before you attempt to install LILO. If the LILO installation fails you
  1068.   will be able to boot your system from floppy and correct the  problem.
  1069.  
  1070.   More information on configuring LILO is given below.
  1071.  
  1072.   The postinstallation procedure will also take you through several menu
  1073.   items allowing you to configure your system. This includes  specifying
  1074.   your  modem  and  mouse device, as well as your time zone. Just follow
  1075.   the menu options.
  1076.  
  1077.  
  1078.   4.6.  Booting your new system
  1079.  
  1080.   If everything went as planned, you should be able to boot  your  Linux
  1081.   boot  floppy  (not  the  Slackware installation floppy, but the floppy
  1082.   created after installing the software). Or, if you installed LILO, you
  1083.   should  be  able to boot from the hard drive.  After booting, login as
  1084.   root. Congratulations! You have your very own Linux system.
  1085.  
  1086.   If you are booting using LILO,  try  holding  down  shift  or  control
  1087.   during  boot.  This  will present you with a boot prompt; press tab to
  1088.   see a list of options. In this way you  can  boot  Linux,  MS-DOS,  or
  1089.   whatever directly from LILO.
  1090.  
  1091.   After  booting  your  system  and logging in as root, one of the first
  1092.   things you should do is create an account for yourself.   The  adduser
  1093.   command may be used for this purpose. For example,
  1094.  
  1095.  
  1096.        # adduser
  1097.        Login to add (^C to quit): ebersol
  1098.        Full Name: Norbert Ebersol
  1099.        GID [100]: 100
  1100.        UID [501]: 501
  1101.        Home Directory [/home/ebersol]: /home/ebersol
  1102.        Shell [/bin/bash]: /bin/bash
  1103.        Password [ebersol]: new.password
  1104.  
  1105.        Information for new user [ebersol]:
  1106.        Home directory: [/home/ebersol]  Shell: [/bin/bash]
  1107.        Password: [new.password]  UID: [502] GID:[100]
  1108.        Is this correct? [y/n]: y
  1109.  
  1110.  
  1111.  
  1112.  
  1113.   adduser  will prompt you for various parameters, such as the username,
  1114.   full name, GID (group ID), UID (user ID), and so on. For the most part
  1115.   you  can use the defaults. If you're unfamiliar with creating users on
  1116.   a UNIX system, I strongly suggest  getting  a  book  on  UNIX  systems
  1117.   administration.  It will help you greatly in setting up and using your
  1118.   new system.
  1119.  
  1120.   You can now login as the new user. You can use the keys Alt-F1 through
  1121.   Alt-F8  to  switch  between  virtual consoles, which will allow you to
  1122.   login multiple times from the console. The passwd command can be  used
  1123.   to  set  the passwords on your new accounts; you should set a password
  1124.   for root and any new users that you create.
  1125.  
  1126.   Also, the hostname of your machine is set at boot  time  in  the  file
  1127.   /etc/rc.d/rc.M.  You  should  edit  this  file (as root) to change the
  1128.   hostname of the machine.  You should edit the lines in this file which
  1129.   run  the commands hostname or hostname_notcp. (The default hostname is
  1130.   darkstar.) You may also wish to edit the domainname commands  in  this
  1131.   file, if you are on a TCP/IP network.
  1132.  
  1133.   Obviously,  there  are many more things to setup and configure. A good
  1134.   book on UNIX systems administration should help. (I suggest  Essential
  1135.   Systems  Administration  from O'Reilly and Associates.)  You will pick
  1136.   these things up as time goes by. You should read various  other  Linux
  1137.   HOWTOs, such as the NET-2-HOWTO and Printing-HOWTO, for information on
  1138.   other configuration tasks.
  1139.  
  1140.   After that, the system is all yours... have fun!
  1141.  
  1142.  
  1143.   5.  Configuring LILO
  1144.  
  1145.   LILO is a boot loader, which can be used to select either  Linux,  MS-
  1146.   DOS,  or some other operating system at boot time. If you install LILO
  1147.   as the primary boot loader, it will  handle  the  first-stage  booting
  1148.   process  for  all  operating systems on your drive. This works well if
  1149.   MS-DOS is the only other operating system  that  you  have  installed.
  1150.   However,  you  might be running OS/2, which has it's own Boot Manager.
  1151.   In this case, you want OS/2's Boot Manager  to  be  the  primary  boot
  1152.   loader,  and  use  LILO  just  to  boot  Linux  (as the secondary boot
  1153.   loader).
  1154.  
  1155.   The  Slackware  installation  procedure  allows  you  to  install  and
  1156.   configure  LILO.  However, this method doesn't seem to be smart enough
  1157.   to handle several peculiar situations. It  might  be  easier  in  some
  1158.   cases to configure LILO by hand.
  1159.  
  1160.   In  order  to  set  up  LILO  for  your  system,  just  edit  the file
  1161.   /etc/lilo/config. Below we present an example of a LILO  configuration
  1162.   file,  where  the  Linux root partition is on /dev/hda2, and MS-DOS is
  1163.   installed on /dev/hdb1 (on the second hard drive).
  1164.  
  1165.  
  1166.        # Tell LILO to install itself as the primary boot loader on /dev/hda.
  1167.        boot = /dev/hda
  1168.        # The boot image to install; you probably shouldn't change this
  1169.        install = /etc/lilo/boot.b
  1170.        # Do some optimization. Doesn't work on all systems.
  1171.        compact
  1172.  
  1173.        # The stanza for booting Linux.
  1174.        image = /vmlinuz       # The kernel is in /vmlinuz
  1175.          label = linux        # Give it the name "linux"
  1176.          root = /dev/hda2     # Use /dev/hda2 as the root filesystem
  1177.          vga = ask            # Prompt for VGA mode
  1178.  
  1179.        # The stanza for booting MS-DOS
  1180.        other = /dev/hdb1      # This is the MS-DOS partition
  1181.          label = msdos        # Give it the name "msdos"
  1182.          table = /dev/hdb     # The partition table for the second drive
  1183.  
  1184.  
  1185.  
  1186.  
  1187.   Once you have edited the /etc/lilo/config file, run /etc/lilo/lilo  as
  1188.   root.  This  will install LILO on your drive. Note that you must rerun
  1189.   /etc/lilo/lilo anytime that you recompile your kernel (something  that
  1190.   you don't need to worry about just now, but keep it in mind).
  1191.  
  1192.   You  can  now  reboot your system from the hard drive. By default LILO
  1193.   will boot the operating system listed first in the configuration file,
  1194.   which  in  this  case  is  Linux. In order to bring up a boot menu, in
  1195.   order to select another operating system,  hold  down  shift  or  ctrl
  1196.   while the system boots; you should see a prompt such as
  1197.  
  1198.        Boot:
  1199.  
  1200.  
  1201.   Here,  enter either the name of the operating system to boot (given by
  1202.   the label line in the configuration file; in this case,  either  linux
  1203.   or msdos), or press tab to get a list.
  1204.  
  1205.   Now  let's say that you want to use LILO as the secondary boot loader;
  1206.   if you want to boot Linux from OS/2's Boot Manager, for  example.   In
  1207.   order to boot a Linux partition from OS/2 Boot Manager, unfortunately,
  1208.   you must create the partition using OS/2's FDISK  (not  Linux's),  and
  1209.   format  the  partition  as  FAT  or HPFS, so that OS/2 knows about it.
  1210.   (That's IBM for you.)
  1211.  
  1212.   In order to have LILO boot Linux  from  OS/2  BM,  you  only  want  to
  1213.   install  LILO  on  your  Linux  root filesystem (in the above example,
  1214.   /dev/hda2). In this case, your LILO config file should look  something
  1215.   like:
  1216.  
  1217.  
  1218.        boot = /dev/hda2
  1219.        install = /etc/lilo/boot.b
  1220.        compact
  1221.  
  1222.        image = /vmlinuz
  1223.          label = linux
  1224.          root = /dev/hda2
  1225.          vga = ask
  1226.  
  1227.  
  1228.  
  1229.  
  1230.   Note  the  change  in  the boot line. After running /etc/lilo/lilo you
  1231.   should be able to add the Linux partition to Boot Manager. This mecha-
  1232.   nism  should  work for boot loaders used by other operating systems as
  1233.   well.
  1234.  
  1235.  
  1236.   6.  Miscellaneous
  1237.  
  1238.   I don't like to be biased towards the Slackware release,  however,  in
  1239.   order to document multiple releases of Linux, this file would be much,
  1240.   much longer. It is simpler and more coherent  to  cover  the  specific
  1241.   instructions   for   a   single  release  of  Linux.  The  book  Linux
  1242.   Installation  and   Getting   Started   currently   includes   general
  1243.   installation  instructions  which  should  be  applicable  to  ``any''
  1244.   distribution of Linux. However, because  the  installation  procedures
  1245.   are  so  varied,  covering  them  all  would be very confusing both to
  1246.   myself and to the reader.
  1247.  
  1248.   The basic concepts in this document still hold, no matter what release
  1249.   of  Linux  you  choose.  For  example, all releases require you to run
  1250.   fdisk, and all  of  them  (to  my  knowledge)  include  some  kind  of
  1251.   installation  menu similar to the setup program.  If you choose to use
  1252.   a release of Linux other than Slackware, the READMEs and  installation
  1253.   instructions  that come with that release should be easy to understand
  1254.   in the context of the material presented here.
  1255.  
  1256.   If you would like a more complete  discussion  of  Linux  installation
  1257.   (instead  of  the  "quick"  examples  given here), read the book Linux
  1258.   Installation   and   Getting   Started,   from   sunsite.unc.edu    in
  1259.   /pub/Linux/docs/LDP.   This book includes a complete discussion of how
  1260.   to obtain and install Linux, as well  as  a  basic  UNIX  and  systems
  1261.   administration tutorial for new users.
  1262.  
  1263.   Please  mail me at mdw@sunsite.unc.edu if any part of this document is
  1264.   confusing or incorrect. I depend on feedback from readers in order  to
  1265.   maintain  this  document!  I  also like to help answer questions about
  1266.   Linux installation, if you have any.
  1267.  
  1268.   I'd like to thank Patrick Volkerding for his  work  on  the  Slackware
  1269.   distribution and assistance in preparing this document.
  1270.  
  1271.   Best of luck with your new Linux system!
  1272.  
  1273.   Cheers, mdw
  1274.