Making a quick home page - Unix
Overview
If you've got a SUNet
ID and Stanford Unix account then you've probably got a pre-configured,
ready to use WWW directory in your home directory. All you want to do now
is put up a home page fast. (If you need to create a web page somewhere else,
take a look at our Building a WWW directory from scratch
page.)
You can do everything you need from the Unix command line by connecting
via SSH to cardinal.stanford.edu. The Logging
in to Unix document tells you how to get there. If you're a little
Unix-phobic, relax ... these instructions presume no advanced knowledge
of Unix, and you can always refer to the Unix
Command Summary if you have questions.
Go to your home directory
-
Each time you log in to Stanford Unix, you're automatically placed into your home directory by default. To get to your WWW directory, type:
cd WWW
Create an HTML file in your WWW directory
-
From within your WWW directory, type:
pico
This invokes an online text editor. More information about this editor is available from the Pico Reference Sheet.
-
In the screen that comes up, type the following:
<HTML> <HEAD> <TITLE>Your Name's Sample Home Page</TITLE> </HEAD> <BODY> <H3>Put your name here.</H3> <P> Put text about yourself here.</P> <P> Put more text about yourself here.</P> </BODY> </HTML>
- Save your work: hold down the control key and type the letter "o" (lower case, without the quotes). Because this is the first time you've saved your work, the cursor will jump down to the bottom of the page so that you can name your file.
- Name your file: type "index.html" (lower case, without spaces, and without the quotes) as the name of this file, and then press the return key.
- Now get out of Pico: hold down the control key and press the letter "x" (lower case, without the quotes). This takes you out of Pico and puts you back into your WWW directory.
- At this point you're ready to take a look at the web page you just created. If you're finished working in your account, type exit to end your Unix session.
What next?
You'll probably want to add more information, edit the page, add more pages, etc. Poke around the Learning HTML pages and File transfer site for more information about how to do these things. .


