This lab is designed to teach you the basics of HTML (hyper-text markup
language) and publishing your own webpage here at Oswego. It will also help you set up your account for using
openwin on the SUN workstations and compiling and running Java programs.
The reason for having your own webpage in this class is that some of your programming assignments and labs will have applet front-ends and will be accessible through your webpage. When you finish this lab you will have a homepage that will consist of a header and title, a little text about yourself and one or more links to existing HTML files that run applets. The sample webpage that you will use as a template will contain links to actual pages that you can put in yours to start.
You will first copy some important files, create some directories, and set
the needed protections to get things started. Once you get into OpenWindows,
you will make some modifications to your environment. The next step is to
fire up netscape and bring up this page. There are several references in this
page that are only meaningful in a web browser. For example, part of the way into this lab, you will bring up the sample webpage that was mentioned earlier in netscape and at the same time be in a different window typing your own webpage. You may think that it would have been easier, if we would have just given you the template to start with. But, this is a good practice in having multiple windows on the screen, each of which play an important role. Also, once you finish typing your homepage, you will be able to bring it up in netscape. If there are any mistakes in it, you modify it in the editor and reload it in netscape.
cp .cshrc old-dot-cshrc
cp .login old-dot-login
cp .emacs old-dot-emacs--(don't worry if says `no such file')
cp .Xdefaults old-dot-Xdefaults--(don't worry if says `no such file')
cp /csclass/dl/sample-dot-cshrc .cshrc
cp /csclass/dl/sample-dot-login .login
cp /csclass/dl/sample-dot-Xdefaults .Xdefaults
cp /csclass/dl/dot-emacs.fall96 .emacs
You need to be in your home directory.
chmod og+rx .--don't forget the dot
chmod og+rx public-html
chmod og+rx public-html/classes
chmod og+rx public-html/classes/csc241
Quiting them (not just
Closeing). The Quit option in the
save Workspace. You get to that option by clicking the right mouse button. You will see the
Workspace menu. The second item in the menu is
Utilities. Point/Click that option, again use the right mouse button. You should now see the
save Workspaceoption. This way, the file manager and the help tutorial won't load up next time that you start up OpenWindows.
Propertiesif you want to, especially the
Set active Windowto
move pointerin the
Miscellaneouspage. With this switch, just moving your pointer into a window will make it active and you won't have to click the mouse in the header of the window.
Properties. At the top of that window, you will notice the word
Category. Adjacent to that there is a menu button with the word
Colorto its right.
netscape &and click
Acceptwhen Netscape starts up.
http://g.oswego.edu/dl/csc241/lab1.html-- leave the Netscape window open.
For a few quick HTML tips follow the link to Basics of HTML.
"cd .."and then
emacs -fn 10x20 index.html &
<html>, highlight the content of that page.
Editpull-down menu, pick
Pastebutton on your KEYBOARD.
The following will take place in your CMD tool window:
chmod 755 index.html
chmodcommand, if you want them to become accessible through the Web. However, do not change permission on your .java files, if they are intended for this course.
Type your URL
http://www.oswego.edu/~your user name in the
Location text area. Your page should load up in all its glory!
Note: You may come across pages on the Web that have features that you like. If you want to see how they are implemented, you can use the
Document Source option in the Netscape's
View pull-down menu. This will show the html code generating the page and I already shared with you the procedure to follow for copying things from netscape into a file in emacs. So have fun!