Difference between revisions of "Creating a Personal Webpage"

(Link to file permissions page.)
Line 1: Line 1:
 
== Accessing your webpage ==
 
== Accessing your webpage ==
  
NOTE: Where you see "''username''", replace that with your username.
+
NOTE: Where you see "''account''", replace that with your account name.
  
* On the GRAD/RESEARCH network, use <tt><nowiki>http://</nowiki>cs.jhu.edu/~''username''</tt> or  <tt><nowiki>http://</nowiki>www.cs.jhu.edu/~''username''</tt>
+
* On the GRAD/RESEARCH network, use <tt><nowiki>http://</nowiki>cs.jhu.edu/~''account''</tt> or  <tt><nowiki>http://</nowiki>www.cs.jhu.edu/~''account''</tt>
  
* On the UGRAD network, use <tt><nowiki>http://</nowiki>ugrad.cs.jhu.edu/~''username''</tt> or <tt><nowiki>http://</nowiki>www.ugrad.cs.jhu.edu/~''username''</tt>
+
* On the UGRAD network, use <tt><nowiki>http://</nowiki>ugrad.cs.jhu.edu/~''account''</tt> or <tt><nowiki>http://</nowiki>www.ugrad.cs.jhu.edu/~''account''</tt>
  
 
== Making a basic homepage ==
 
== Making a basic homepage ==
  
<code>ssh</code> into one of our [[:Category:Linux Clients | Linux Clients]].
+
<code>ssh</code> into one of our [[:Category:Linux Clients | Linux clients]].
  
  chmod 0701 ~''username''          # Don’t forget the ~
+
  chmod 0701 ~                 # That's a tilde at the end of the command.
  mkdir public_html             # This directory might already exist.  If so, do not delete its contents.
+
  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
  
 
Edit <tt>index.html</tt> with your favorite editor.
 
Edit <tt>index.html</tt> with your favorite editor.
Line 37: Line 37:
 
Now check your work.  Visit your webpage as described in [[#Accessing your webpage|Accessing your webpage]], above.
 
Now check your work.  Visit your webpage as described in [[#Accessing your webpage|Accessing your webpage]], above.
  
If you have problems, check your permissions againPlease be very careful changing your top-level home directory permissions.
+
If you add more pages, please make sure they all have the appropriate permissions, as described in [[File Permissions for Webpages]]That link is a useful resource any time you get a "permission denied" error when trying to access your webpage.
  
<!-- If you are a GRAD student and want to update the link to your webpage on the Graduate Students page, please e-mail Cathy Thornton.  -->
+
== Other Issues ==
 
 
== Other issues ==
 
  
 
If you need additional help, please e-mail [mailto:support@cs.jhu.edu CS IT Support] with a complete description of your problem.
 
If you need additional help, please e-mail [mailto:support@cs.jhu.edu CS IT Support] with a complete description of your problem.
  
 
[[Category:Webpages and Webservices]]
 
[[Category:Webpages and Webservices]]

Revision as of 20:51, 13 September 2016

Accessing your webpage

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

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

Making a basic homepage

ssh into one of our Linux clients.

chmod 0701 ~                  # That's a tilde at the end of the command.
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 add more pages, please make sure they all have the appropriate permissions, as described in File Permissions for Webpages. That link is a useful resource any time you get a "permission denied" error when trying to access your webpage.

Other Issues

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