All students will receive an account for this course on scinix, the science center unix network. Your course account will have a username, 105b-xx (where the xx stands for some combination of two letters, as specified on the account information sheet distributed to you in class). In the instructions below, whenever you see 105b-xx you should substitute your actual account id.
We will primarily use the accounts only for hosting of web pages. Although you may work on the scinix machines using a text editor such as pico or emacs if you already know how, the help materials in this course will assume that you are working with Dreamweaver on a local copy of your page, and uploading the results to the scinix server when finished. This document is designed to explain how to do so.
Contents
Connecting via SSH
Scinix is not a single entity, but a network of individual machines that share files. We will connect to one of the two computer science machines that are part of scinix. We will use a machine called beowulf, with another called grendel as a backup. To connect, you will need to use a secure communications tool called SSH, which is installed on all the Smith lab computers. (You can also download a copy for your own computer.)
To connect, start up SSH. You should see a window like the one below; click on the Quick Connect button (circled).
A new window should pop up with space to enter the host name and your account id (shown). Don't forget to replace xx with the right letters for your account!
If this computer has not connected with beowulf before, you may get a window like this. If you do, click Yes to continue.
Eventually, a window will ask for your password, which was provided to you on the account information sheet. Enter it (it will show up as asterisks).
If all goes well, you should be connected to beowulf and ready to proceed to the next step. (If something goes wrong, try again once or twice. Temporary outages can happen.) If this is your first time connecting, proceed to the next section, Setting Up Your Account. If you just need to post the latest page changes to the server, refer to the section on Transferring Files.
Setting Up Your Account
A number of housekeeping details need to be set up before you use your account, so that everything will run smoothly. The subheadings below list all of the steps you will need to follow. At the end of the section is a sample transcript showing all of the steps in order. If you have trouble with anything, please ask a member of the course staff for help.
- Password
- After connecting, type
passwd
in the SSH window to change your password to something memorable. It will ask for your current password again, then ask you to type the new one twice. If it thinks the password you have chosen is too easy to guess, then you will have to pick a different one. - Account Information
- Next type
chfn
to associate your name with the account. Type your name when prompted to. - Creating Folders
- The scinix web server will display any files and folders placed within the public_html
folder of your account. The URL of this main folder is http://www.cs.smith.edu/~105b-xx
(substituting for xx as appropriate for your account).
To help keep your files organized, and to simplify grading, you should
create a standard set of subfolders inside public_html. Specifically, you will create three
subfolders, named Project1, Project2, and Labs. (Please use the
capitalization shown, i.e., project1 is not correct.) These, and an optional
index.html file, are the only things that should be stored directly within public_html.
All other files should be stored within one of these three subfolders.
You can easily create folders once you have opened a file transfer window, as described in the next section. Toolbars above both panes allow you to perform various commands, including creating a new folder. The new folder icon is circled in the image below.
Once you have created the new folder, you can modify its permission settings in the SSH file transfer window by right-clicking on it and choosing Properties. Make sure it is executable and readable by everyone, and writeable by the owner (permission mask = 755). Ordinary files (as opposed to folders) should not be executable (permission mask = 644). If the permissions are set wrong on a file, or on one of the folders it is within, then you may not be able to view the file in a web browser.
Transferring Files
To open up a file transfer window, first connect to beowulf as described in the section on Connecting via SSH. You will see in the toolbar an icon that looks like a folder with blue bubbles (shown below). Click on it to bring up the file transfer window.
The file transfer window is split vertically along the center. The left-hand side shows files on your local machine. The right-hand side shows files in your account on beowulf. All your web files should go somewhere within the public_html folder (circled below), otherwise they will not be visible to the web server.
In the left-hand pane, find the files on your local machine that you wish to transfer. In the right-hand pane, find and open the folder where you wish the files to be placed. Now you can simply drag one or more files from left to right. You can also make other changes on either side: renaming and deleting files, for example. If you accidentally put a file in the wrong place, you put a new copy in the proper place and delete the old copy. (See the section above on setting up your account for the set of folders you should create when you first start using the account.) Try to keep your files clearly named and neatly organized; it will help you to avoid confusion about which file is which. In particular, it is usually a bad idea to keep older versions of a file around, unless they are in a folder specifically labeled as an outdated or backup copy.