Knowledge Base

Unix Network Space

By mapping drives (Windows) or mounting volumes (Mac), you can access Amherst network storage shares and manipulate files as if they were stored on your own computer. For many purposes, mapped network drives or mounted volumes provide a simpler way to manage files than using SFTP or SSH and Unix commands.

Take note, drive mapping or mounting volumes only works on campus or from off-campus with a VPN connection.

One common use of drive mapping is to put files on a traditional Unix web server. The College’s main web site will let you build a web page quickly and easily, but for some purposes (e.g. JavaScript and PHP development) you'll want to directly create web pages. Everyone has a web site here with the address http://www3.amherst.edu/~AmherstUsername , and similar sites exist for departments and other College groups. However, this service requires greater technical skill.

Warning: When mounting your web space, special file permissions are required for the web server to load your files. You can set them correctly by visiting the web page http://www.amherst.edu/cgi-bin/fix_webpage and logging in.

Windows | Macintosh


Windows

To work on a web page on the traditional web server:

You can access the files on your web site, or another account's web site (while logged in with your own username), by mapping the W: drive:

  1. Right click on My Computer, and select Map Network Drive;
  2. Choose W: (or any available Drive letter if you already are using W:);
  3. As your Folder, type \\unix-nt\www , or if you have already mapped that name, type \\unix-win\www ;
  4. Check the button Reconnect at logon if you want it to automatically connect when you startup. This only works with your logon account; if you are using a different account you will still have to enter the password again at that time.
  5. If you are not connecting to your own Amherst account, or are connecting from a personal computer where you have a different username, click on the link different user name; in the dialogue that pops up, enter the other account's AmherstUsername and password, and click the button OK (Note: on a personal computer you may need to prefix the Amherst domain to the user name: amherst\AmherstUsername ).
  6. Click the button Finish. Now the network drive will be available to you in My Computer.

Sometimes the file permissions necessary for use with the web server can get messed up, in which case you should use the web application http://www.amherst.edu/cgi-bin/fix_webpage to fix them.

To work on a file in your Unix home directory on Romulus or Remus or R or Cluster:

You may sometimes want to access the home directory of a Unix account, for example, to work on files for a Computer Science course on Romulus or Remus or a Statistics course on R, or for a research project on Cluster.

  1. Right click on My Computer, and select Map Network Drive.
  2. Choose any available Drive letter.
  3. As your Folder, type \\unix-nt\AmherstUsername or \\unix-win\AmherstUsername for Romulus or Remus or R, or \\cluster\AmherstUsername for Cluster.
  4. Check the button Reconnect at logon if you want it to automatically connect when you startup.
  5. If you are not connecting to your own Amherst account, or are connecting from a personal computer where you have a different username, click on the link different user name, and enter the same AmherstUsername as in step 3, along with that account's password, and click the button OK (Note: on a personal computer you may need to prefix the Amherst domain to the user name: amherst\AmherstUsername ).
  6. Click the button Finish. Now the network drive will be available to you in My Computer.

Caution: Your traditional Unix web site described above also exists in your home directory on Romulus/Remus/R as the subdirectory public_html. Modifying this directory through your Unix home directory mapping can prevent files in this directory from showing up on your web site. For web publishing, use the first method above, or a Secure FTP connection.

Macintosh (Mac OS X)

The Macintosh understands a number of network disk mounting protocols, in particular Apple Filing Protocol (AFP) and the Windows System Message Block (SMB). You can specify the protocol with a prefix such as afp:// or smb:// . The former is the default, and is assumed if no protocol is specified, but does not currently work with these systems and Mac OS X 7 or later, so the following instructions explicitly use smb:// .

To work on a web page on the traditional web server:

  1. In the Finder, menu Go > Connect to server;
  2. In the Address field, type smb://unix-win.amherst.edu ;
  3. Log in with an Amherst username and password.
  4. Click the button OK.

Using the smb: protocol will ensure the file permissions on the web site are correct for use with the web server. Sometimes these file permissions may still get messed up, in which case you should use the web application http://www.amherst.edu/cgi-bin/fix_webpage to fix them.

To work on a file in your Unix home directory on Romulus or Remus or R:

  1. In the Finder, menu Go > Connect to server;
  2. In the Address field, type smb://unix-mac.amherst.edu ;
  3. Log in with an Amherst username and password;
  4. In the dialog Select the volumes to mount:, choose Home Directory ;
  5. Click the button OK.

Caution: Your traditional Unix web site described above also exists in your home directory on Romulus/Remus/R, in the subdirectory public_html. Modifying this directory through your Unix home directory mapping can prevent files in this directory from showing up on your web site. For web publishing, use the first method above, or a Secure FTP connection.

To work on a file in your Unix home directory on the Cluster:

  1. In the Finder, menu Go > Connect to server.
  2. In the Address field, type smb://cluster.amherst.edu ;
  3. Log in with an Amherst username and password;
  4. In the dialog Select the volumes to mount: choose username and/or cluster-scratch and/or cluster-archive;
  5. Click the button OK.