Pages

Ads 468x60px

Monday, July 23, 2012

Linux: Configure Samba Server on Ubuntu


This will describe the configuration of Samba Server on Ubuntu. It will help you to access Ubuntu files in Windows and vice versa.

First install samba server in Ubuntu using command line or Ubuntu software center
        $sudo apt-get install samba samba-common
We can check its configuration information using
        $gedit /etc/samba/smb.conf
        or
        $cat /etc/samba/smb.conf

To install graphical interface for samba server configuration use this command
        $sudo apt-get install  system-config-samba


Now share files using this samba server configuration graphical interface. Set the basic options


Set the access to files


The list of directories shared using samba server





Get the ipv4 address of Ubuntu virtual machine.
Note:  If you are using virtual box then in network settings of virtual machine use the ‘host only adapter’ option.


? Write the Ipv4 address in the address bar in windows explorer. Enter username and password of     windows and then windows explorer will show the shared files of Ubuntu virtual machine.
Note: Turn off windows7 firewall for network to avoid any inconvenience. 
Here the ‘_i’ directory of Ubuntu is shared directly using the sharing options of the directory.



Choose any of the shared directories to open.


Samba Client on Windows
Share any directory of windows using advanced sharing option.


In Ubuntu, go to the ‘Network’ directory. Here win-7-pc is the Windows shared place. Double click on it. 
Note: For first time you have to enter username and password of the Windows to enter in it.


Here is the recently shared directory ‘Abstract’. Double click on it.


Enter username and password of the Windows and domain will be ‘WORKGROUP’ and press ‘connect’. 


Here are the files in the shared directory.


Another example of accessing Ubuntu documents in Windows.


Another example of accessing Windows7 documents in Ubuntu.


References:



No comments:

Post a Comment