0
In this post we will see about sharing files between two computers using a tool called samba. Samba is a free software, which provides fast file sharing and print services for all clients using the SMB/CIFS protocol. It supports multiple platforms simultaneously.


Step 1 : First install samba in your machine.

Open Terminal by Accessories -> Terminal or CTRL+ALT+T

For Fedora users 

sudo yum install samba


 For Ubuntu / Linux Mint / Zorin OS / OS4 OpenLinux / Lubuntu / elementary OS / Bodhi Linux / Kubuntu / Ubuntu GNOME / Xubuntu  / Pear Linux / Pinguy OS / Edubuntu  users

sudo apt-get install samba

Step 2 : After the installation of samba, create a directory with any name and copy the files ( Which are all you want to share ) to this directory.

Then Right click on the directory and choose Properties.

Here for example i just created directory called "Pictures" and Open properties by right clicking on this directory. After select "Share" tab on Properties window. 

Then click mark on following fields.

-> Share this folder
-> Allow others to create and delete files in this folder
-> Guest access ( for people without a user account )


If you want to set sharing with password access, then unmark the Guess access field.

After click on Create Share to activate sharing file option.

Now you will get this pop window asking you to apply permissions automatically.


That's all you are finished to creating sharing.

When you are finished sharing option, your sharing folder will look like this.



Step 3 : After created sharing, send your machine IP to your friend to access the shared files.

If you don't know how to check IP of your machine, Enter the following commands in your terminal.

Linux Machine users enter this command in terminal ==> ifconfig

Windows Machine users enter this command in CMD ==> ipconfg



Step 4 : Then copy the IP from terminal.

The Open any folder and Press CTRL+L and then enter following address in your location bar.

smb://192.168.42.49

Here replace your machine IP address with my IP address. And smb is a protocol, which samba uses this protocol to share files between the computers.

That's all. Now you will see the shared files.


Then just open the folder and access the files in it.

If you want to access connection from windows system, Go to

My computer  and enter the IP address in address bar in the below format.

\\192.160.2.14

Replace IP address with your machine IP address...


That's all. Enjoy!!!

Post a Comment

 
Top