MOVING FILES TO THE UNIX SERVER
Follow these steps for moving a text/html file to the SIMS web server.
1. Setting up your UNIX account:
Logon to your unix account by telneting to sims.berkeley.edu. Access your account by using the account name and password assigned.
- Start by changing your password to one that you will remember by typing passwd and following the instructions.
- When you logon you are in your home directory. From that directory create a public_html directory by typing: mkdir public_html. The public html directory will contain the files that will be viewable as web pages through Netscape.
- Within the public_html directory you will want a total of three sub- directories, each of which will contain the files for Assignment 1-3. So the next step is to create those sub-directories from the public_html directory.
- Change to the public_html directory by typing: cd public_html
- Issue three separate commands: mkdir Assign1; then mkdir Assign2 ;and lastly mkdir Assign3
- Change the directory to your SIMS home directory: cd will get you back to your home directory. In the home directory type: chmod 755 public_html
2. Transferring files using FTP software:
Access FTP software on a machine connected to a network. (Around the campus typical FTP software for a MAC might be called Fetch; for a pc RapidFiler or WS-FTP) You want to move your text/html file(s) from the local machine you are using to the remote server sims.berkeley.edu, and place your file(s) into the public_html sub-directory that you created for this particular assignment.3. Establishing the permissions on Unix files.
- Open the FTP software and change the local directory to the one containing the file(s) you want to transfer. Open the remote directory by logging into the remote server using your account name and password.
- Using the menu in the FTP software, change the remote directory to the public_html sub-directory you have established for this assignment.
- Drag the appropriate files from the local machine to the remote directory. Be sure that each file contains the extension .html. If necessary, use the FTP software menu to rename the file so that it conforms to this standard:
- index.html (the first and main file for this directory)
- yourfile.html (for each subsequent file in the directory)
For each file you move to the unix server you need to change the permissions so that the rest of the world can view the files.
- Logon to your unix account and change to your public_html directory: cd public_html.
- Next cd to the sub-directory for the particular assignment to which these files pertain, e.g., cd Assign1. Then type: chmod 644 filename.html