Web

From CSDocs

Jump to: navigation, search

Contents

[edit] How can I create my own CS web site?

Students will need to create a public_html directory in their home account and the permissions will need to be set to 755.

After the public_html directory is created there are two ways to display files to the Internet

Students can then create a page with the extension .html in their favorite UNIX editor (pico, vi, emacs) and place it in their public_html directory.

OR

Students can create pages on their desktop and use putty/scp these files to their public_html directory (see details below).

More questions relative to web accounts can be answered by reading the Account Info Section In the left navigation column. [1]

[edit] Why do I have to use a public_html directory to show web files?

Public_html is the default directory name configured by the system administrator. If a student wants to display files on the world wide web, they must place their files within this directory.

[edit] How can I find my web page?

Students will be able to find their web page at http://www.cs.iupui.edu/~userName where userName is the student's IUPUI username.

[edit] Use putty/scp to move files from your local machine to Pegasus and vice versa.

eg... Move a file from you local machine to the server:
scp filename.html username@pegasus.cs.iupui.edu:/home/your_user_name/public_html/some_directory/


For detailed information about how to create a web page you can view any of the CS lecture videos. I reccomend:
CSCI-N 241 CSCI Fundamentals of Web Development.
The videos are available at www.cs.iupui.edu/media/

Another good resource is http://www.w3schools.com/

[edit] Which text editors are available on pegasus.

nano is a good user friendly text editor that supports syntax highlighting if you create a hidden .nanorc file in your home directory. To learn how to make syntax highlighting work visit http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting

Other editors installed on Pegasus include:

  • vi
  • emacs
  • joe