Publishing web pages to the Hills Server at City College
Students in CNIT 133 will upload (also referred to as publish or FTP) the Web pages they create as homework assignments to the hills server at CCSF.
HP UNIX Login username
The HP-UNIX server is hills.ccsf.edu. Every CNIT 133 student has an account on Hills.
With this account you will:
| Your login is the first letter of your first name, then the first 5 letters of your last name, and then a 2-digit number. Usually the number is 01. For example, if your name is Orlando Bloom, your HP-UNIX User ID would be obloom01.
If you login directly at the command line, you get this message. We will use “Quick Connect” and change our passwords that way. This is for your information, or if you connect at home by other means (such as on a Mac) The first time you connect successfully, you will have the following result: WARNING: Your password has expired. You must change your password now and login again! Changing password for wchang01 Old password: At the prompt for your Old Password: Enter again your birthdate. Then you will be prompted for your New Password.
2. Connect to the Internet.
3. Connect to the hills Server
From any CCSF campus lab: Use SSH Secure Shell Client to access your account, as explained below. SSH Secure Shell Client is already installed on the CCSF machines in the ICL-1 (Batmale 301) If you using a lab machine and you cannot find SSH Secure Shell Client on it, ask the faculty monitor to help you. Do not install software on campus lab machines!
From your home PC using an ISP: First install SSH Secure Client as explained in the Installing SSH Secure Shell Client on Your Home Machine handout. Then use SSH Secure Shell Client to access your account.
3. Access your hills account:
4. After accessing your hills account, you need to set up your permanent password by following this Tutorial.
5. NOTE: If at any time you have trouble with your hills login or password, you will need to either send me an email or see a tech person in the CCSF computer lab. The computer lab (ICL-1) is located on the 3rd floor of Batmale Hall. There are other computer labs on the CCSF campus as well. Here are the hours of operation for all computer labs at CCSF. 2. Create public_html directory: All of your web files must reside in a directory called public_html. This will be a directory that you must create. 1. Connect to your hills account. 2. At the bash-3.00$ prompt, create the public_html directory and give it unix execute permission as follows: mkdir public_html chmod og+x public_html (Note: mkdir stands for make directory and chmod og+x gives your directory execute permission and stands for change mode for others and groups to allow execute permission)
3. Publishing your Webpages (FTP):
1. Upload your webpage to your public_html directory on the hills server. If you are uploading your homepage, it is called index.html. Windows users should use the Secure File Transfer Client, which comes bundled with the SSH Secure Shell Client. Here is a Tutorial on using Secure File Transfer. A nice feature of Secure File Transfer is that transferred files are, by default, automatically given unix permissions on the hills server. Another FTP program that I have found useful and easy to use is AceFTP, which can be downloaded free at http://www.download.com/AceFTP/3000-2160_4-10073376.html. In the past, many users used WS_FTP LE as their FTP program. If using these programs, you must remember to give files unix permissions. Another Windows program that can be used for FTP is WinSCP. It's open source and was last updated on 6/19/2006 (version 3.8.2). But you would still need a telnet type program to change your hills password. If you are a new hills user, this password must be changed immediately. In addition, your hills password must be changed every three months. Mac users can use fetch or Mac SSH for FTP. Mac users with OS X can download and use a freeware program called Fugu.
2. Using your FTP program, upload index.html to your public_html directory.
4. View your homepage in your browser
If the proper unix permissions have NOT been given, then viewing your homepage in a browser will display the following messages: Forbidden You don't have permission to access /~LOGIN/index.html on this server.
This is the most common error for students when they first try to publish their homepage onto the Hills server. It is especially common for students who have NOT taken CNIT 131 or who have taken CNIT 135a a few years ago. This can be a very frustrating problem for students and will usually cause them to fall behind in the class.)
5. Unix Permissions
6. Final Reminder: Your homepage must be named index.html. Since the hills server operates within a Unix environment, public_html must be given unix execute permission and ALL web files, including index.html and image files, must be given unix read permissions.