Website Setup
About Student Webpages...
All students with a Department of Computer Science & Engineering Computing Account have
web space to use for web pages, scripts, files, etc. The content of the
student website may be of their choosing, so long as it does not violate
the terms of the University of Nevada, Reno Computing & Network Usage Policies
or the Department of Computer Science & Engineering Computing Account Policy.
Accessing Your Website
Student webpages are accessible on the Internet at the address
http://www.cs.unr.edu/~username, where username is the computing
account login of the student. Webpages, as well as any other content that
students wish to make available online, should be placed in the "public_html"
directory of their home directory. Students may create subdirectories and place
files within the "public_html" directory as they see fit. File management may be
carried out at any Department of Computer Science & Engineering workstation, or via one of the
remote access programs listed in the Remote Access Software
section.
Permissions
When adding files to a website - that is, by placing them in the "public_html"
directory of a home directory - students must ensure that a file has the proper
permissions set. If a file has incorrect permissions set, it will not be accessible
on the website or may allow unauthorized users to modify it. Permissions may be
set on a file using the command "chmod permissions filename". Typical
permissions that are applied to web content files and directories are as follows:
- chmod 701 directory
- Allows a directory to be accessed on the Internet - called "world executable"
- chmod 701 filename
- Allows a file to be executed (e.g. a script) - called "world executable"
- chmod 705 directory
- Allows the contents of a directory to be listed on the Internet
- chmod 705 filename
- Allows a file to be accessed (read) on the Internet - called "world readable"
How To: Setup Your Website
From the home directory of your CS account (which is not the same as
your ECC account), create a directory called "public_html".
Change the permissions of your home directory and your "public_html"
directory to be "world executable".
You may optionally copy the sample home page into your "public_html"
directory. Otherwise, create a file in your "public_html" directory called
"index.html" (or "index.php" for PHP pages).
Change the permissions of your "index.html" file to be "world readable".
Create additional webpage files in the "public_html" directory. You can
also place webpages into subdirectories. One must remember to change
the permissions of subdirectories to be "world executable" and to change
the permissions of additional webpage files (and images, etc.) to "world
readable".
Your home page should now be accessable at http://www.cs.unr.edu/~username,
where username is your computing account username.
If you need help writing HTML, please see NCSA's Beginner's Guide to HTML and Yale's Web Style Guide.
mkdir public_html
chmod 701 public_html
chmod 701 $HOME
cp ~webmastr/index.html public_html/
chmod 604 public_html/index.html