Creating a Webpage on the CS Ugrad Net

Revision as of 19:00, 10 October 2013 by Phil (talk | contribs) (Formatting changes.)

The page applies to CS Undergrad Students (and Faculty, TAs, etc. that want to specifically post webpages on the CS Ugrad network).

Accessing your webpage

Use http://ugrad.cs.jhu.edu/~username to access your main user webpage.


Creating your webpage: Setting up your index.html file

IMPORTANT! You might find you already have a public_html directory with certain files within it. Please do not delete any of these files, as they are used by the CS webserver.

(NOTE: where you see "username", replace that with your... username.)

Follows these instructions step-by-step.

Log into a Undergrad Net Linux machine, open a terminal window, and run the following commands:

chmod 701 ~username             # Don’t forget the ~
mkdir public_html               # NOTE: You might already have this directory.
chmod 701 public_html
cd public_html

Create/Edit index.html with your favorite editor.

Follow the template below for your index.html file:

(NOTE: indenting makes your source more readable, but is not required and will not affect the webpage itself.)

<html>
    <head>
        <title> Title of my webpage </title>
    </head>
    <body>
        <h1> Title of my webpage </h1>
        <p> This is a test! </p>
    </body>
</html>

Save and exit from your editor and then set appropriate permissions on the file:

chmod 604 index.html

Now check your work. Does it work? If you have problems, check your permissions again.

Please be very careful changing your top-level home directory permissions.


Additional Notes

If you have further issues, please e-mail the support@cs.jhu.edu with a complete description of your problem and the computer you're logged into to create your webpage.