Lab Time(s)
Today's Tasks: There are a lot of steps to do here. Make sure that you think about what you are doing at each step. As the course goes on, you need to do some of these steps over and over. Hence you want to know what you are doing so you can repeat them. Don't just do them, think about what you are doing. Take your time.
One of the primary goals in this lab is to get you used to working with a "remote" machine (often a PC in a lab setting or your home machine) and the campus UNIX machine where your web pages will be placed. You need to become accustomed to going back and forth between machines.
Getting account on the WEB SERVER set up, making a home page and creating folders with links
Your Unix account and the web server are on two separate machines. Thus you need to get the account on the web server going as well.
If you do not get onto jaguar (ect-unix), you need to see the sys ad and tell him you need an account on the UNIX machines.
This will create a directory called public_html in which you will place your
web pages for display on the web. You should be able to see it in the WinSCP window.
Click on the public_html directory to change into it so we can
create a short web page. If you were on a UNIX machine you do this with the command:
Now, to set up your directories for the whole course and create a short web page, you should now use my "cheat sheet" . At this point only do numbers 1 to 4 of the cheat sheet so you do not get too confused. Notice you have already done some of number 1. OK, go do it.
Now startup Firefox (i.e., a browser window) and open the following address to view your web
page......substitute your login in the address. Your WinSCP (and/or Putty session) should still be
open.
Now type in the following program into the file and save it once done (or you can use the Swing version and JApplet. even easier)
Get a UNIX command terminal and type the following command
Finally. Now that you have a UNIX account, you have both a website and a new email address. If you do not want your mail to come to this address (you can read it by using the command pine) you can create a new file that will redirect your mail to where ever you want. To do so, The list below should all work now as well but ect-unix is your best bet.
Some on the .6 subnet
and some on .7 Getting UNIX account set up
For this class you want an
ECT account. Distance students too - this might be necessary due to firewalls at your location.
First, make the Domain choice be ECC
(other (undesired) option is 0251-xx (this computer) - where the xx is the number for that specific machine and 251 is the room number)
Ctrl Alt Delete will open a window which has an option to change Password. Note that this will change the password for the Windows
machine login but not for other UNIX logins.
If you have numbers in the passwords, do not use the keypab on the side - instead use the numbers above the letters. For some reason that seems to work better.
You may need to go back to this demo page to remember how to do the things I tell you to do below.
IP Address: 132.241.6.22
see this page if problems. Capital C just creates the directory; Lower case c makes an example index.html
But with the WinSCP tool you can just click on the folder icon.
When you come back to this point, you want to get into your lab1 directory. How do you do that? It depends on where you are now.
If using WinSCP you can see where you are
just like on Windows (note drop down menu with file picture). You simply click on the directory you want to be in.
On a UNIX machine, try the command
This returns the name of the directory you are currently in. If you are already in your public_html/csci111 (or public_html/csci15a) then you want to do
or click on the lab1 folder icon in WinSCP. Ultimately you want to be in public_html/csci111/lab1 at this point.
If you want your prompt to be the directory you are in rather than the $, see this page
Doing a First Java Lab on the Web
Now you should be in the editor and editing the file lab1.html. Enter
the following text to create a short web page, enter
your name where it asks for it. For a shortcut, you can cut and paste from this page to the new file.
You should save this file and then exit the editor.
Now open a command prompt and type the following command so that your page can be viewed by others. The
chmod command changes the permissions on the file so that others may read
and use it.
We will look at permissions later. Another way to do this with WinSCP is through Files:Properties
Don't forget to SAVE and then Exit once you are done entering the program.
You should get a file called HelloWorld.class as a result of compiling. If
you get an error return to task 4 and make sure you typed in the code
correctly. Repeat steps 4 and 5 until the program compiles with no errors.
Save again and exit.
and then go back to Firefox (i.e, your browser)
and reload your web page. You should now see the applet being displayed in your web page.
Go to the
Lab Assignments: drop box link and then to lab 1 and follow directions for submission. Provide the
information
Why are you taking this course
The subject for the email should
be CSCI 111 and you should include
Off-site translation: why are you taking this course
Unix Commands
Help Full Web Sites
If, for some reason, these machines are not connecting for you,
you can also log onto the SUN workstations. Presently,
all SUNs should be available through a connection to ect-unix.ecst.csuchico.edu which defaults to jaguar.ecst.csuchico.edu, IP address: 132.241.6.22