(1) log in (use PuTTy to connect from your home machine --- Mac users can do this from their terminal application) (2) do this command: websetup -cThis will make a directory public_html and in it will be a file called index.html. This is your first homepage. Go to a browser and go to the page
(only do this one time)
So that you are set up for this class, do the following to see what this index.html file that was created for you looks like on UNIX. You can either be in a putty/ssh session OR you can use WinSCP to give UNIX commands
ls
more index.html
ls is the "list" command in UNIX, it lists all the files in a directory (same as MS- DOS dir )
more is a command that lets you see what is in a file (same as MS-DOS type)
In WinSCP, you can see the "listing" of files for the local and remote machines in the windows; the best way to see what is in the file is to right click on the file and choose "Edit".
Ok, you want to make your own personal index.html
for this class so let's move (mv) that one somewhere else (moving it gives the original file the new name specified).
This is the same as on WinSCP if you simply right click on the index.html file and choose "Rename"
mkdir csci111
cd csci111
You cannot leave spaces in directory or file names in UNIX. If you do, it thinks each word is telling it something different to do.
This page should be in your csci111 (or appropriate class) directory with the name
index.html
If you are in the campus CSCI 111, you are done setting up on the web for now but you can go to this page
if you want to see how to put your java labs on the web.
If you are in the distance CSCI 111 go back to lab1.
chmod 755 *
If you have a src (source) directory, the directory needs to have
executable permissions chmod 755 src
Before submitting the program YOU should check to see if all
permissions are set properly so that someone can see if from the web (i.e,
that means try it!)
To put pictures inside a web page you insert the command
< img src="nameOfFile.gif" >
In general, if you want to see how someone did their webpage, when you are on the particular page on a browser, under the menu item "view", choose "page source" or "source" and you can see how they did the current page.
(This example is for a course with 4 labs...you can see the pattern for more or less labs.
http://www.ecst.csuchico.edu/~yourUserName
you should go to just inside your public_html directory and edit (or make) an index.html file.
with your .gif file being in the public_html directory too. The duke power gif is this 