Designing an HTML Document By Hand and Posting It On The Web
In this lab, you will place a simple web page on the Internet. You will do
this by placing these files in a special directory in an account on ITS.
Make sure you have an account for the Atrium. If not, go to the front desk
of the Atrium where you sign.
If you used a 3rd party site to host your files the upload instructions
are similar, except you likely don't have to create any special
directory.
- Create a directory called public_html. This is where you will store
all the web site's files.
Telnet over to your unix account.
- Start up the MS-DOS Prompt. (In windows, click on start/run... and type cmd.)
- Type the following to connect to the network via Telnet:
telnet
atrium91.its.brooklyn.cuny.edu
- Enter your login name and password.
- Create a directory (mkdir) called public_html using the
command:
mkdir public_html
- Change the protections (chmod) on your main directory (.) and
this new directory (public_html) such that anyone (a) can
access (+x) these directories:
chmod a+x .
chmod a+x public_html
- Transfer your web pages to your unix account using FTP. (If you are not using an outside server the name of your server should be inserted.) Login with your username and password.
- Start up the MS-DOS Prompt
- Type the following to connect to the network via FTP:
ftp
atrium91.its.brooklyn.cuny.edu
- Enter your login name and password.
- Change the directory (cd) to public_html:
cd public_html
- Indicate that you are transferring text files by typing:
ascii
- Copy each html file to your unix account. For example, if you have
index.html
on the desktop, type
put "C:\Documents and Settings\Student\Desktop\index.html"
- For images indicate that you are transferring binary files by typing:
binary
- Copy each image to your unix account. (back to step 6.)
- End your ftp session by typing:
bye
- Make sure anyone (a) can read (+r) all of your web files. (However I
believe the atrium does this automatically).
- First
cd public_html (so that you are changing the files in public_html only)
- At a Telnet prompt, type:
chmod a+r *
- Use a web browser to access your main web page. Be sure to check the
links. Your URL will be http://acc6.its.brooklyn.cuny.edu/~username or
http://acc4.its.brooklyn.cuny.edu/~username . Replace username with your own
user name. Note the ~ in the URL.
- Show your completed webpage after uploading.