%\pagestyle{empty}
\def\semester{Fall~2005}
\def\course{CS~101}
\def\prof{Sharat}
\newcommand{\titleline}[1]{
  {\sc #1} \hfill {\sc \prof} 
  \vspace{0.5cm}
  \hrule
  }

\newcommand{\exhead}[1]{
  \begin{center}
    {\bf \course: #1} \\
  \end{center}
  }
  
\documentclass[10pt]{article}
\usepackage{anysize,color,graphicx}
\usepackage{verbatim,url}
% \usepackage{HW}
\marginsize{2cm}{2cm}{0.25cm}{2cm}  % left right top bttom?


\begin{document}
\titleline{\semester}
\exhead{Lab Handout No: 1}

\begin{itemize}
\item Handed out: Week of August 1 2005, due same day.

\item This assignment carries no marks.

\item Work in groups of two.
\end{itemize}

\section*{Task No: 1 (Utilization: Registering with PEACH)}
Most commands are completed by pressing the enter key (also  known as
the return key).
\begin{enumerate}
\item Login into your Linux computer account.  Your username
  is your roll number with the leading (first)  \verb+0+
  replaced by \verb+z+ (for example \emph{z5005801} given the roll
  number \emph{05005801}). If your roll number contains a 'D', make
  sure you type it in       lowercase (NOT capital).

  Your initial password is your username.

\item Pause.  Reflect on what you are looking at.  You are at a
  command terminal (or in brief, a terminal, or shell). This is an
  area where you can type commands.

\item After login, type \verb+startx+. Don't do this if you are in
  front of a machine that is already in graphics mode (e.g., a
  Macintosh).  You will know the machine is in graphics mode if you
  can click on an item using a mouse.

\item Pause.  Reflect on what you are looking at.  Open a terminal in
  the graphical mode. This can be done by clicking the \textbf{monitor
    like icon} on the taskbar. Or you can right click on an empty
  portion of the screen and choose \verb+xterm+. You are now ready to
  type commands. This terminal (also known as xterm) is just like the
  previous one, except that you can get multiple terminals in the
  graphical mode.

\item Start a web browser.  Type \verb+firefox &+ in a terminal to open
  the firefox browser.

\item Go to the URL \verb+http://cs101.cse.iitb.ac.in/peach/+
\item Read all the instructions very carefully.  You must spend at
  least 3 minutes reading the instructions.
\item Register yourself on PEACH.  This is a very important step and
  must be done with extreme care even if you are a computer expert.  
\begin{itemize}
\item \textbf{Use your Roll Number as your log in name. If your roll
    number has a `D' in it, type it in lowercase (i.e. `d').}
  \textbf{Choose any 
    password. Note that this is your PEACH 
    password, distinct from the Linux password you typed when you
    first sat down at the computer, which is again different from the
    LDAP password used to check mail on gpo.iitb.ac.in given earlier
    to you.}
        \item Unlike the name your parents gifted you, a chat id is an
          alternate name that you can give
          yourself.  Choose any name of your choice. Be creative.
	\item Normally you will use your IIT Bombay email id,
          \verb+loginname@iitb.ac.in+ \textbf {in the email id field},
          not your gmail or yahoo account
          (\emph{example:z5005801@iitb.ac.in}) (unless of course you
          don't know the password to your IITB email account).
      \item An automatically generated email will be sent to the
        mail id you specified. Read your mail by visiting gpo.iitb.ac.in;
        if you can't login there, use ilohamail
        (http://iloha.iitb.ac.in). If neither works, wait for 5-10
        minutes and try again. (Sometimes gpo is down, so don't get
        put off.) If you still don't get the mail, contact your
        TA.

        Activate your PEACH account, by following the
        instructions specified in the mail. Before you try to
        activate your account,  make sure that your partner is not
        logged in to PEACH.

        When you click on the link in the PEACH registration mail, a
        window will popup where you activate your account. If you
        don't see the window, and instead see a message at the top of
        the browser window saying Firefox has blocked a popup, click
        on the message and select the \em{allow} or \em{show} option.
\end{itemize}

% \item You will now have to join a group. Please click on the
% preference menu, and select your appropriate group. Your group name will be the same as you \emph{lab batch number}

\item Logout from peach account 

\item Very important.  Visit the course web page at
  \url{http://www.cse.iitb.ac.in/~cs101}. Spend 15 minutes on this
  noting the important points.
\end{enumerate}

\section*{Task 2: Elementary Commands} 
In this part, you will familiarize with some common linux commands.
Here are some simple examples.  
  \begin{enumerate}
    \item \textbf{startx } Open the Graphical User Interface on Unix
      computers. 
    \item \textbf{passwd } This command is used to change your
      password.  You should change your password frequently.  (Your TA
      says ``A
      password is like a toothbrush: choose a good one, don't share it
      with anyone, and change it at the first sign of wear.'' Use your
      favourite  word in your mother tongue and type it in English)
    \item \textbf{ls } List files and directories in your current
      working directory.
    \item \textbf{man } Online help for the
      arguments given to it. Ex: \$ man ls  
    \item \textbf{rm } Removes files and directories (with the
      \verb+-r+ switch). Use this with
      care.  There is no concept of recycle bin (by default) in Linux.
    \item \textbf{cd } This command changes the directory
      mentioned. For example, \verb+cd /tmp+ changes the current
      directory to \verb+/tmp+.  
    \item \textbf{mkdir } This command makes a new directory in the
      current directory. 
    \item \textbf{xdosemu } This command invokes the DOS Emulation
      Engine which runs the dos programs.  Proceed to the next task.
  \end{enumerate}
  Experiment by issuing commands by typing the command followed by a
  space followed by \verb+&+

\section*{Task 3: Towards Programming}
In this part you will use TC and thus the DOS Emulation Engine to move
towards programing.  The purpose of this part is to familiarize
yourself with the TC programming environment.
  \begin{enumerate}
    \item Start the DOS Emulation Engine by typing the command
      \verb+xdosemu &+ in a unix shell.  You will see a black dos
      command shell which is different from a unix terminal.
    \item Type \emph{d:}
    \item Type \emph{cd TC$\backslash$TOUR}
    \item Type \emph{tctour} in the terminal now. You will see a new
      screen with says \emph{TCTOUR for the Turbo C++ Integrated
        Development  Environment}
    \item Follow the steps shown on the screen \& try to learn about
      Turbo C as much as possible.  In this lab, you are expected to
      go through the first module named IDE Basics.  If you visit this
      module and get stuck, your TA will help you.  On the other hand,
      you will explore other modules at a later time.
    \item To exit from dosemu, type \textbf{exitemu } on the dos shell
      (usually black in color). This command is not a Linux command.  It
      will work only under dosemu.
  \end{enumerate}
  \section*{Task 4: Clean up}
  To logout from the system, click the \textbf{ICEWM}
  button at the bottom left of the screen. Choose \textbf{logout}.
  From the menu, choose \textbf{logout} and click OK. The GUI session
  will close and a black command shell will be displayed. Type
  \textbf{logout} and the system logs you out. Don't leave the lab
  without your TA's permission.  Make sure you take all your
  belongings.
\end{document}
