\documentclass{ictlab}

\RCS $Revision: 1.6 $

\usepackage{alltt,key}
\usepackage[hang,bf,nooneline]{caption2}

\ifx\pdftexversion\undefined \else
  \usepackage[pdfpagemode=None,pdfauthor={Nick Urbanik}]{hyperref}
\fi

\newcommand*{\screenwidth}{0.4\textwidth}
\newcommand*{\labTitle}{Installing Red Hat Linux version 9}
\renewcommand*{\subject}{Operating Systems and Systems Integration}

\providecommand*{\DHCP}{\acro{DHCP}\xspace}


\begin{document}
\section{Aim}
\label{sec:aim}

The aim is to perform a network installation of Red Hat 9 Linux with
all updates.

\section{Background}
\label{sec:background}

You may read the \emph{The Official Red Hat Linux Installation Guide}
for Red Hat 9 at
\url{http://nicku.org/doc/rhl-ig-x86-en-9/}.  There is
also \emph{The Official Red Hat Linux Getting Started Guide} at
\url{http://nicku.org/doc/rhl-gsg-en-9/} and
\emph{The Official Red Hat Linux Reference Guide} at
\sloppypar\url{http://nicku.org/doc/rhl-rg-en-9/}.

However, we will perform a network install over \NFS using a boot disk
made from the file \texttt{bootdisk.img}.  You will also need a
network card driver disk made from \texttt{drvnet.img}.


\section{Procedure}
\label{sec:procedure}


%% \subsection{Making the network installation boot disk}
%% \label{sec:make-boot-disk}

%% There are a number of ways to do this.  Under Windows, we need two
%% files:
%% \url{ftp://nicku.org/pub/redhat-9/images/bootnet.img}
%% and
%% \url{ftp://nicku.org/pub/redhat-9/dosutils/rawrite.exe}.

%% We use the program \texttt{rawrite} to copy the network installation
%% boot disk image \texttt{bootnet.img} onto a \emph{good} floppy disk.
%% You could transfer the files by any ftp client that is installed on
%% the Windows machine; one important thing that you want is to transfer
%% the files in \emph{binary} mode, otherwise the files will be
%% corrupted.

%% To create the boot disk after getting the two files onto your local
%% hard disk, open a \textsf{Command Prompt} (\textsf{Start $\rightarrow$
%%   Programs $\rightarrow$ Accessories $\rightarrow$ Command Prompt})\e.

%% Type \texttt{rawrite} \key{Enter} at the command prompt.  Follow the
%% instructions.

\subsection{Installation}
\label{sec:installation}

% The installation procedure begins in the same way as when you
% partitioned your hard disk, with the one difference being that the
% \texttt{Red Hat directory} is \texttt{pub/redhat-9}.

\begin{enumerate}
\item As before, get a boot disk, network card driver disk and hard
  disk from your supervisor, carefully insert your hard disk into the
  mount, and push it in firmly.  Boot the computer from the boot disk.

%   \begin{figure}[htb]
%     \centering%
%     \includegraphics[width=\screenwidth]{startup}
%     \caption{The startup screen after booting from the installation disk.}
%     \label{fig:startup}
%   \end{figure}
%%   \begin{figure}[htb]
%%     \begin{minipage}[c]{0.48\textwidth}
%%       \caption{\protect\raggedright The startup screen after
%%         \mbox{booting} from the installation disk.  Press
%%         \protect\key{Enter} here.}
%%       \label{fig:startup}
%%     \end{minipage}%
%%     \hspace*{0.04\textwidth}%
%%     \begin{minipage}[c]{0.48\textwidth}
%%       \includegraphics[width=\textwidth]{startup}
%%     \end{minipage}
%% \end{figure}
\item When you see the startup screen with the \texttt{boot:} prompt
  at the bottom, press \key{Enter}.  %%See figure~\vref{fig:startup}.

  \begin{figure}[htb]
    \begin{minipage}[c]{0.48\textwidth}
      \caption{\protect\raggedright Select \texttt{English} here.}
      \label{fig:language}
    \end{minipage}%
    \hspace*{0.04\textwidth}%
    \begin{minipage}[c]{0.48\textwidth}
      \includegraphics[width=\textwidth]{language}
    \end{minipage}
  \end{figure}

  \begin{figure}[htb]
    \begin{minipage}[c]{0.48\textwidth}
      \caption{\protect\raggedright Selecting the keyboard.}
      \label{fig:keyboard}
    \end{minipage}%
    \hspace*{0.04\textwidth}%
    \begin{minipage}[c]{0.48\textwidth}
      \includegraphics[width=\textwidth]{keyboard}
    \end{minipage}
  \end{figure}
\item Accept the defaults for Language (English) (see figure
  ~\vref{fig:language}), and then for the keyboard (us).  See
  figure~\vref{fig:keyboard}.

  \begin{figure}[htb]
    \begin{minipage}[c]{0.48\textwidth}
      \caption{\protect\raggedright Selecting network installation by
        \NFS (\textbf{n}etwork \textbf{f}ile \textbf{s}ystem).}
      \label{fig:nfs-select}
    \end{minipage}%
    \hspace*{0.04\textwidth}%
    \begin{minipage}[c]{0.48\textwidth}
      \includegraphics[width=\textwidth]{nfs-select}
    \end{minipage}
  \end{figure}
\item At the screen shown in figure~\vref{fig:nfs-select}, select
  \NFS Image\@.

  \begin{figure}[htb]
    \begin{minipage}[c]{0.48\textwidth}
      \caption{\protect\raggedright Selecting to use \DHCP.}
      \label{fig:choose-dhcp}
    \end{minipage}%
    \hspace*{0.04\textwidth}%
    \begin{minipage}[c]{0.48\textwidth}
      \includegraphics[width=\textwidth]{choose-dhcp}
    \end{minipage}
  \end{figure}
\item Use the spacebar to put a ``\texttt{*}'' as shown in
  figure~\vref{fig:choose-dhcp}, then press \key{Tab} to \textsf{OK},
  and press \key{Enter}\e.

  
%%   \begin{figure}[htb]
%%     \begin{minipage}[c]{0.48\textwidth}
%%       \caption{\protect\raggedright Entering the \acro{NFS} server
%%         name, and the directory on the \acro{HTTP} server containing
%%         the distribution.}
%%       \label{fig:choose-nfs-dir}
%%     \end{minipage}%
%%     \hspace*{0.04\textwidth}%
%%     \begin{minipage}[c]{0.48\textwidth}
%%       \includegraphics[width=\textwidth]{choose-nfs-dir}
%%     \end{minipage}
%%   \end{figure}
\item Enter the server name \texttt{nicku.org} and directory
  \texttt{/var\allowbreak/ftp\allowbreak/pub\allowbreak/rh-9-updated}.
  %as shown in figure~\vref{fig:choose-nfs-dir}.
  
  There may be a long delay while the installation program goes into
  graphics mode.
  
  \begin{figure}[htb]
    \begin{minipage}[c]{0.48\textwidth}
      \caption{\protect\raggedright Make sure you select
        \textsf{Emulate 3 buttons} if your mouse does not have three
        buttons.}
      \label{fig:mouse}
    \end{minipage}%
    \hspace*{0.04\textwidth}%
    \begin{minipage}[c]{0.48\textwidth}
      \includegraphics[width=\textwidth]{mouse}
    \end{minipage}
  \end{figure}
\item If your mouse does not have three buttons, select
  \textsf{Emulate 3 buttons} in the screen shown in
  figure~\vref{fig:mouse}.

%   \begin{figure}[htb]
%     \begin{minipage}[c]{0.48\textwidth}
%       \caption{\protect\raggedright The welcome screen.}
%       \label{fig:welcome}
%     \end{minipage}%
%     \hspace*{0.04\textwidth}%
%     \begin{minipage}[c]{0.48\textwidth}
%       \includegraphics[width=\textwidth]{welcome}
%     \end{minipage}
%   \end{figure}
\item Click past the welcome screen.%
% shown in figure~\vref{fig:welcome}.

  \begin{figure}[htb]
    \begin{minipage}[c]{0.48\textwidth}
      \caption{\protect\raggedright Select\textsf{Custom} here.}
      \label{fig:installation-type}
    \end{minipage}%
    \hspace*{0.04\textwidth}%
    \begin{minipage}[c]{0.48\textwidth}
      \includegraphics[width=\textwidth]{installation-type}
    \end{minipage}
  \end{figure}
\item \textbf{Important:} Select \textsf{Custom} when you see
  the screen in figure~\vref{fig:installation-type}.

%%   \begin{figure}[htb]
%%     \begin{minipage}[c]{0.48\textwidth}
%%       \caption{\protect\raggedright Select ``\textsf{Manually
%%           partition with fdisk [experts only]}'' here.  Hey, we're
%%           experts, aren't we?}
%%       \label{fig:select-part-method}
%%     \end{minipage}%
%%     \hspace*{0.04\textwidth}%
%%     \begin{minipage}[c]{0.48\textwidth}
%%       \includegraphics[width=\textwidth]{select-part-method}
%%     \end{minipage}
%%   \end{figure}
%% \item Select ``\textsf{Manually partition with fdisk [experts only]}''
%%   when you see the screen in figure~\vref{fig:select-part-method}.
  
\item If you need to partition your hard disk, refer to the handout
  ``Partitioning the hard disk''.
  
\item You need to mount \texttt{/dev/hda9} (the
  last partition) on \texttt{/}.  \emph{Make sure you only select
    partions that start with \texttt{/dev/hda}}, otherwise you will
  format a partition that the technician has lovingly installed.  He
  will not be your friend anymore.  Take great care.

\item Go through the list of partitions on \texttt{/dev/hdc} that say
  ``yes'' to format them, and click on \textsf{Edit}, and ensure that
  you leave the partition unchanged.

\item If (and \emph{only} if) you have installed Windows 98 on
    \texttt{/dev/hda1}, then edit this point and enter
    ``\texttt{/win98''} as the mount point.
  
\item At the screen ``\textsf{Choose Partitions to Format}'',
  \emph{make sure} that only your root partition and your swap
  partitions are selected, or our technicians will not be your
  friends.
  \begin{explanation}
    If you see a message box that says, ``Warning: Boot Partition /
    man not meet booting constraints for your architecture.  Creation
    of a bootdisk is highly encouraged'', that's oaky: it is warning
    you that the root partition goes beyond cylinder 1024, as we
    discussed in the lab sheet about partitioning.  Press the button,
    ``\textsf{Add Anyway}'', and do not skip creating the boot disk at
    the end of installation!
  \end{explanation}
  \begin{figure}[htb]
    \begin{minipage}[c]{0.48\textwidth}
      \caption{\protect\raggedright Select the Hong Kong time zone
  here; click on the map.}
      \label{fig:timezone}
    \end{minipage}%
    \hspace*{0.04\textwidth}%
    \begin{minipage}[c]{0.48\textwidth}
      \includegraphics[width=\textwidth]{timezone}
    \end{minipage}
  \end{figure}
\item Select Hong Kong for the time zone when you see the screen in
  figure~\vref{fig:timezone}.  Click on Hong Kong on the map.
  
\item At the \textsf{Account Configuration} screen, enter a root
  password.  It should be at least eight characters long, and easy for
  you to remember, but hard for others to guess.  I suggest use a
  funny phrase and take the first letter from each word, and add some
  punctuation and number characters.  Remember your root password.
  You could write it on a small piece of paper and put it in your
  wallet or purse (not on this lab sheet!)
  
\item There is no need (just in the College) to enter a normal user
  account for yourself.  You will use the \LDAP account that already
  exists for you.  Your personal account is the account you should use
  most often.
  \begin{explanation}
    The \emph{root} account is used to administer the system.  The
    root user is sometimes called the \emph{superuser}.  The root
    account has the power to delete any file, destroy anything, and to
    stop the whole computer from working with only a few keystrokes.
    
    Your normal user account is what you should use for day-to-day use
    of the computer.  It does not allow you to delete system files, or
    to do things that will destroy the Linux installation.
  \end{explanation}

\item Make sure that \emph{there is \textbf{no} firewall}, or you will
  be unable to log into your system.
  
%\newpage
\item At the \textsf{Authentication Configuration} screen, select
  ``Enable \LDAP''\@.  For ``\LDAP Server'', enter:
  \texttt{ldap.tyict.vtc.edu.hk}; for ``\LDAP Base DN'' enter
  \texttt{dc=tyict,\allowbreak dc=vtc,\allowbreak dc=edu,\allowbreak
    dc=hk}
  
  Also, check the box:  ``Use \TLS lookups.''  This ensures that
  your password information is encrypted before being sent over the
  network.
  \begin{explanation}
    \LDAP is an open protocol that provides what is known as a
    \emph{directory service}.  Proprietary directory services include
    Microsoft's ``Active Directory'' and Novell's \NDS (Novell
    Directory Services)\@.  Both of these are based on \LDAP, which
    stands for ``Lightweight Directory Access Protocol\@.''  The
    ``base \DN'' is the starting point in the directory tree where
    searches for user and other such information begin.
    
    Your lecturer will explain some of this during the class.
  \end{explanation}

  
\item At the stage where you select what packages to install, I
  suggest that you select \emph{all} the options, except for the last
  option labelled ``Everything''\@.
  \begin{explanation}
    In practice, you should restrict what you install to the services
    that are required.  We are installing most things today so that
    you can investigate what is provided.
  \end{explanation}

\item Accept defaults for most other options.  Your lecturer will tell
  you of any exceptions.

\item When you see the final screen, make sure that you leave ``Create
  a boot disk'' checked.  You will need \emph{your own} floppy disk
  for this later.

\end{enumerate}

\subsection{Some important points of the installation}
\label{sec:points}
\begin{itemize}
\item No need to make an account for yourself; you will use your \LDAP
  account, which already exists.

\item Remember your root password.

\item When asked if you want to create a boot disk, \emph{do so}.  You
  \emph{will need it} later, probably in Albert's class.
  
\item If time runs out, and you really need to abort the installation,
  then press \key{Alt--Ctrl--Delete} to stop the program.  Do not just
  turn off the power.  Perhaps the partition table of your disk may be
  damaged if you turn it off while it is writing data.
\end{itemize}


\end{document}
