Steps to Display Your HTML Files: (In courtesy to Dr. Ge)

  1. Create the following directories in your home directory:
    % cd
    % mkdir -p cs898n/htdocs
    
  2. Change the permissions of some directories:
    % cd
    % chmod 711 . 
    % chmod 711 cs898n
    % chmod 711 cs898n/htdocs
    
  3. Write your first CGI program in directory ~/cs898n/htdocs
    % cd ~/cs898n/htdocs
    % cat > hello.html
    <html>
    <body>
    <center> <h1>Hello World!</h1> </center>
    </body>
    </html>
    ctr+D <--- type control+D here
    
    % chmod 644 hello.html
    
  4. Open a netscape browser window, and type the following URL in location line:
    http://kira:8888/cs898n/xyz/hello.html
    
    where xyz is your account name. Type the return key and you will see the "hello world" string displayed on the screen.

Note: A much easier way to display the HTML file is to invoke the netscape browser directly:
% netscape file:`pwd`/hello.html &
After you modified the HTML file, you just need to click the 'reload' button on the netscape screen to view the changes.