Samba

Contents

What is Samba?

Samba is a system that runs on non-Windows platorms to provide file and print services to Windows clients. Here in Structural Biology, we run Samba on a Linux server to offer our Windows users easy access to centralized storage space that is protected by mirrored disk drives and our standard UNIX backup regimen.

How to obtain a Samba account

To request a Samba account, send an email to the SBIT administrators and we will create your Samba account for you.

How to access your Samba share from a Windows computer

You can easily access your Samba share from your Windows PC, transparently storing/retrieving files.

  1. Open an Explorer window by either:
    double clicking the "My Computer" icon on the desktop

    or by opening the start menu and clicking on the "My Computer" icon there.

  2. Select "Map Network Drive" from the "Tools" menu:

  3. A connection dialog will appear:

    Select the drive letter you wish to use (or leave it as the default) and in the text field labelled "Folder:" enter:

    \\128.210.48.102\username

    where username is your login name.

    If this is a laptop make sure that the "Reconnect at logon" box is unchecked. Otherwise you may experience long start up times when using your laptop PC at home.

  4. Click on the "different user name" link and enter your login information in the box provided:

    Click "Ok" and you will be connected to your Structural Biology Samba drive

  5. In order to avoid having to do this each time you login to your PC, create a shortcut from the mapped network drive to your desktop. After you have mapped the network drive, a network drive icon will appear in the "My Computer" window:

    Right click on this icon and select "Create Shortcut":

    A window will pop up saying "Windows cannot create a shortcut here. Do you want the shortcut to be placed on the desktop instead?" - click "Yes".

    You can now rename the shortcut icon on your desktop something like "Structure Drive". You will now be able to access the Samba share by simply double clicking the shortcut on your desktop.

How to access your Samba share from a UNIX computer

Command line

You may access your Samba share from our UNIX systems either through NFS or one of the secure shell commands (ssh, scp, sftp). Here's how to access Samba from NFS (substituting your login name for username):

gimli:~> cd /bio/samba/username

Here's an example of using scp to copy a file from the Samba server to the local current directory.

gimli:~> scp samba:/samba/username/thesis.doc .

It's common in Windows to have file names which contain embedded spaces. This requires some special handling when using UNIX commands. Notice the use of double quotes (") and the backslash character (\) in the following example. Double quotes must surround the entire path and each embedded space must be preceded by a backslash.

gimli:~> scp samba:"/samba/username/My\ Documents/thesis.doc" .

KDE File Manager

If you'd like to use the KDE desktop filemanager to access your Samba drive:

  1. Open up the filemanager (Konqueror) by clicking the Konqueror icon on your screen.
  2. In the "Location:" field, enter:

    smb://samba.bio.purdue.edu/username

    Where username is your login name.

  3. An "Authorization Dialog" window will appear. Enter your login name and password and click "OK".

  4. You may now bookmark the connection for easy access.

How to access your Samba share from a Macintosh (OS X) computer

  1. From the Finder menu, click Go and then "Connect to Server..."

  2. In the field labelled "Server Address:" enter:

    smb://samba.bio.purdue.edu/username

    Where username is your login name.

  3. Click the "Connect" button. You will then be presented with a "SMB/CIFS Filesystem Authentication" window. Enter your username and password and click "Ok".

  4. A window will appear displaying the contents of your Samba drive:

    If you would like to disconnect the drive, simply drag the associated icon on the desktop into the Trash.

Copyright © 2005, Purdue University, all rights reserved.
Purdue University, West Lafayette, IN 47907 USA, (765) 494-4600
Sitemap | Webmaster

Last modified: June 18 2007 14:57:23