Open main menu

CDOT Wiki β

Changes

OPS335 Samba Lab

5 bytes added, 15:49, 16 January 2013
m
Changing references from f16 ot f17.
=Samba - A Windows SMB/CIFS fileserver for UNIX=
==Configuring a Samba Server on Linux==
*On your host F16 F17 system install Samba
yum install samba samba-client
*Create a backup of the file /etc/samba/smb.conf, and create a new one that includes only the following:
[global]
workgroup = <yourlearnid>.org
*You will need to determine which ports you need to open to allow connections to your server.
*Test if you have a connection with the command
smbclient -U <learnid> -L f16f17
*If the previous command worked, try the connection from one of your VM's. You can view all available shares with the follow command:
smbclient -U <learnid> -L f16f17
=Connecting to a Linux SMB Server from a Linux Client=
*Install samba-client on your vm01
*From vm01 use the "smbclient" command in a terminal window.
smbclient '\\f16f17\home' -U <learnid>
*After entering your password you should get a prompt similar to
smb: \>
*Use the mount command on vm01 to mount your home directory
mkdir /tmp/f16-home
mount -t cifs //f16f17/home /tmp/f16f17-home -o username=<learnid>
ls /tmp/f16-home
*Use the "Places" menu from a Gnome desktop on vm01.
*From the "Places" menu at the top of your screen, select "Network" and wait until the network scan completes.
**Navigate to /tmp/f16f17-home.
== Using a browser ==
=Connecting to a Linux SMB Server from a Windows Client (Windows 7)=
*Power up a Windows 7 system in the lab and login using your LEARN username and password.
*Open up Explorer and Right click on Computer > Map network drive.. > Select a Drive Letter and '\\<ip-address-of-f16f17-host>\home' > you will then be asked for your username and password.
*You should now be able to browser, drag and drop your files to and from the Windows machine.
==Completing the Lab==
932
edits