UCLA Center for Digital Humanities Support

UCLA Center for Digital Humanities Support

 The following instructions were tested on Fedora Core 5 with kernel 2.6.x. 
Instructions will be similar for other Linux distributions with kernel 2.6 or other kernel with cifs built-in.
(You will need the samba package installed for all distros)

Connecting with SFTP

  1. At the command prompt type “sftp This email address is being protected from spambots. You need JavaScript enabled to view it.” and press Enter.  The username is your HUMNET user name.
  2. You will be prompted for your HUMNET password (this is the same as your email password).
  3. You are now given a command prompt that looks like: “sftp>”
  4. Type cd to change into the directory you would like to access. For example, if you would like to access the home directory type cd /home.
  5. Type ls to see a list of available directories, or if you know which directory you want to go to, just type cd /directory. NOTE: If you need to change into a directory with spaces in it, make sure to put quotes around the directory name (i.e. cd “Center for Digital Humanities”)
  6. Type ls to see the contents of the folder.
  7. Use the “help” or  “?” command to help you with the specific commands to transfer files (i.e. Changing local directory, copying and saving files) 

The following shows a list of common commands you can use when connecting via SFTP:

cd Change the directory on the remote computer
chmod Change the permissions of files on the remote computer
chown Change the owner of files on the remote computer
dir (or ls) List the files in the current directory on the remote computer
exit (or quit) Close the connection to the remote computer and exit SFTP
get Copy a file from the remote computer to the local computer
help (or ?) Get help on the use of SFTP commands
lcd Change the directory on the local computer
lls See a list of the files in the current directory on the local computer
lmkdir Create a directory on the local computer
ln (or symlink) Create a symbolic link for a file on the remote computer
lpwd Show the current directory (present working directory) on the local computer
lumask Change the local umask value
mkdir Create a directory on the remote computer
put Copy a file from the local computer to the remote computer
pwd Show the current directory (present working directory) on the remote computer
rename Rename a file on the remote host
rm Delete files from the remote computer
rmdir Remove a directory on the remote host (the directory usually has to be empty)
version Display the SFTP version
 !  In Unix, exit to the shell prompt, where you can enter commands. Enter exit to get back to SFTP. If you follow  !  with a command (e.g., !pwd), SFTP will execute the command without dropping you to the Unix prompt.
 The following instructions were tested on Fedora Core 5 with kernel 2.6.x. 
Instructions will be similar for other Linux distributions with kernel 2.6 or other kernel with cifs built-in.
(You will need the samba package installed for all distros)

One-time connection via the command line


1) First, we need to create a point to mount the drive.  In this example, we chose /mnt/home_share, but you can choose any location with any name.  You may need be root depending on where you are creating the directory.

mkdir /mnt/home_share

2) Now we want to mount the drive.  You need to be root to mount the drive, so either su as root or sudo the following command:

Command line:

mount -t cifs -o username=yourusername,domain=HUMNET //IPaddress/share      /mnt/home_share

Replace "IPaddress" and "share" depending on which share you would like to connect to:

IP Address 128.97.154.50 128.97.154.51
Available shares dept
media
private
projects
admin
home
public

Enter your HUMNET password when prompted

The above will temporarily mount your share on your hard drive until you reboot your system.

One-time connection via the GUI via "Windows Share" (recommended method)

1) While looking at your desktop, click on "Go to Places", then "Connect to Server".  (On a 2.4.x kernel, this "Connect to Server" option may be located under "File Browser" and then "Connect to Server").


Fill in the following fields:
Service type: Windows share
Server: choose as decided by share:

Server c3po.humnet.ucla.edu r2d2.humnet.ucla.edu
Share dept
media
private
projects
admin
home
public

User Name: <your Humnet user name>
Domain Name: HUMNET

 

Click Connect, and you will be prompted for your Humnet password.

Once the share is connected, you will see the directories in the share.  A network mount icon will be on your desktop also:


 

One-time connection via the GUI via "WebDAV"

1) While looking at your desktop, click on "Go to Places", then "Connect to Server".  (On a 2.4.x kernel, this "Connect to Server" option may be located under "File Browser" and then "Connect to Server").

Fill in the following fields:
Service type: Secure WebDAV (HTTPS)
Port:
Folder: choose either dept, media, private, projects, admin, home, or public
User Name: <your Humnet user name>

Click Connect, and you will be prompted for your Humnet password.

Once the share is connected, you will see the directories in the share.  A network mount icon will be on your desktop also:


 



Connecting automatically every time you log in

If you would like the network shares to mount every time you log on, we will need to edit your fstab.
***IMPORTANT***: Incorrect changes to the fstab may cause kernel panics on reboot.  In order to verify that the fstab was edited correctly, issue a mount command from the command line to verify that the share mounted corrected and there are no errors.  If there are errors, correct them in the fstab before restarting.
We also recommend making a backup of the fstab first.

1) Open the fstab file using vi or any other editor you prefer:

vi /etc/fstab

2) Add the following line to the end of the fstab file:

//IPaddress/share    /mnt/home_share    cifs    username=,password=,workgroup=HUMNET    0 0

where IPaddress and share are chosen from following:

IP Address 128.97.154.50 128.97.154.51
Available shares dept
media
private
projects
admin
home
public

3) Save the changes to the file and quit the editor.

4) To test that the changes in fstab are correct, test mount the share with the following command on the command line:

mount /mnt/home_share
cd /mount/home_share

If you can see the files (do a directory listing with "ls"), then the fstab file was edited correctly.
 

One-time connection

1) While looking at your desktop, click on the Go menu at the top and choose Connect to Server:

mac1

2) In the Connect to Server box, type in one of the following server shares:

connect

  • smb://fs.humnet.ucla.edu/dept/
  • smb://fs.humnet.ucla.edu/projects/
  • smb://fs.humnet.ucla.edu/media/
  • smb://fs.humnet.ucla.edu/private/
  • smb://fs.humnet.ucla.edu/public/
  • smb://fs.humnet.ucla.edu/admin/
  • smb://fs.humnet.ucla.edu/home/      where is your Humnet user name

Click Connect.

3) You will now be prompted for your password.  Make sure "Workgroup or Domain" is HUMNET and the box "Remember this password in my keychain" is selected.

mac2

Click OK.

4) You are now connected to the share.  On your desktop, you will notice an icon with the share's name.  For example:

home

In order to disconnect from the share, you would drag this icon to the Trash, similar to the way you can eject a CD.

If you wish to have the network shares connected every time you log in to your computer, please follow the rest of these instructions.  Otherwise you're done.

Connecting automatically every time you log in

1) Follow the above instructions to map your desired network drive.

2) Once connected, go to the Apple --> System Preferences menu

syspref

3) In the "System Preferences" menu click on "Accounts" then "Login Items"

/Users//Library/Recent Servers/       

The is the local login for your computer (it may or may not be the same as your Humnet email user name).
How do you determine what it is if you don't know?  Easy, just look at the left column when you're connecting, right under "Desktop".  In this example below, you can see that my user name is "calvin" because it says so on the left column on the window under "Desktop".

and then click Go.     

accounts

4) Inside the "Login Items" pane, click the "+" button to add another login item. Select the network drive you previously added and click "Add". (In this example, we've used fs1.humnet.ucla.edu and have mounted the users "home" folder).

connection


5) You are now done!  You can close this window.  The next time you login to your computer, you will see the shares trying to connect.  However, since OS X does not load the network until the computer is fully started, you won't be able to connect immediately. Simply click "Try Again" or "Retry", and it should connect.

1.  We suggest using Filezilla, a free SFTP, SCP, and FTP client for Mac, which could be downloaded here: http://filezilla-project.org/download.php?type=client and then selecting your platform (Mac) and processor (Intel or PowerPC).

2.  Once installed, open the Filezilla program.  At the top click File --> Site Manager

a. Add a "New Site" and enter the following under the General tab:

i. Hostname: fs.humnet.ucla.edu

ii. Port number:  22

iii. Protocol: SFTP - File Transfer Protocol

iv. Logon Type: Normal

v. User name:  [your Humnet Username] (typically the username you use to connect to a Humnet computer on campus)

vi. Password:  [your Humnet password]

vii. Click the "Connect" button.

filezilla

3. While attempting to connect, you may receive a warning notification as shown below, if so, please accept it to complete the connection.

4. Once logged in, you will be able to open directories and files as well as drag and drop files onto the remote server.

 

1.  We suggest using WinSCP, a free SFTP, SCP, and FTP client for Windows, which could be downloaded here: http://winscp.net/eng/download.php (click "Installation package").

2.  Once installed, open the WinSCP program.  When first opened, it will prompt for login information.

a. Enter the following under the Session tab:

i. Hostname: fs.humnet.ucla.edu

ii. Port number:  22

iii. User name:  [your Humnet Username] (typically the username you use to connect to a Humnet computer on campus)

iv. Password:  [your Humnet password]

v. Click the "Save..." button if you wish to save the settings if not, just click the "Login" button.

3. You may receive a warning message the first time you connect. Simply click "Yes".

4.  Once logged in, you will be able to open directories and files as well as drag and drop files onto the server.

Joomla Templates: by JoomlaShack