Difference between revisions of "Creating a Personal Webpage"

Line 11: Line 11:
  
 
  chmod 0701 ~''username''          # Don’t forget the ~
 
  chmod 0701 ~''username''          # Don’t forget the ~
  mkdir public_html            # This directory might already exist.
+
  mkdir public_html            # This directory might already exist.  If so, do not delete its contents.
 
  chmod 0701 public_html
 
  chmod 0701 public_html
 
  cd public_html
 
  cd public_html

Revision as of 13:20, 31 August 2016

Accessing your webpage

NOTE: Where you see "username", replace that with your username.

  • On the GRAD/RESEARCH network, use http://www.cs.jhu.edu/~username
  • On the UGRAD network, use http://ugrad.cs.jhu.edu/~username or http://www.ugrad.cs.jhu.edu/~username

Making a basic homepage

ssh into one of our Linux Clients.

chmod 0701 ~username           # Don’t forget the ~
mkdir public_html             # This directory might already exist.  If so, do not delete its contents.
chmod 0701 public_html
cd public_html

Edit index.html with your favorite editor. Follow the template below for your index.html file:

<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.

chmod 0604 index.html

Now check your work. Visit your webpage as described in Accessing your webpage, above.

If you have problems, check your permissions again. Please be very careful changing your top-level home directory permissions.


Other issues

If you need additional help, please e-mail CS IT Support with a complete description of your problem.