IgniTech Logo

IgniTech Logo
Vinoth

Wednesday, March 4, 2009

Samba File sharing between two ubuntu systems in LAN

With two systems connected in LAN is so easy to share files and folders in Ubuntu. Here i tell you how to share files and folders with samba file server between two ubuntu systems with few clicks. The Ubuntu Iam using here is Hardy.

The system that has source contents to be shared should have Samba server, (That can be installed in course of the procedure how to share). And the remote system that wish to access the source contents should have the Samba client. Samba client will installed be default in ubuntu, if not install it with the command

$sudo apt-get install smbclient

Here comes the procedure how to share.

Soruce Side

On the source system login to ubuntu, right click on the folder you wish to share and select 'Sharing Options'.

In the Dialog box that apears select 'Share this Folder' check box, you will be prompted to install a service. Clicking on Install will open synaptic package manager and install the Samba Server packages.

On successful Installation of the packages, the part in the server side is over.

This will create a share automatically in Samba server on the the username you have logged in (here 'rosario') with its password.

Destination Side

Check whether the smbclient package is installed, if not install it with the above command.
Use the command like

$sudo smbclient \\\\192.168.1.33\\photos -U rosario
where rosario is the username of the source system,
192.168.1.33 is the IP address of the source system
photos is the name of the folders shared in the source system(In small characters)
The above command first will prompt the local system password as sudo is used. And then it will prompt for the password of the remote samba server for the username rosario
On giving the right password, it will take to the samba promt.


Smb: \>


Some usefull commands
help- To know all possible commands
dir- To list out all the shared directories, or contents inside the current directory
cd- Change Directory
get- To copy a specified file from the source system to the local system
put- To copy contents from local system to the server system


Enjoy Easy File Sharing With Ubuntu…

No comments:

Post a Comment