Samba server is best option for sharing files between Ubuntu dan Windows Computer. Samba is a free and open source application re-implementation of SMB/CIFS networking protocol, originally developed by Australian Andrew Tridgell. As of version 3,samba can be used as file and print services between Linux and Windows-Based clients.
Following tutorial is on How to Install Samba Server in Ubuntu Server 12.04 LTS in order to share files with Windows-based clients
Install Samba Server
Log in or ubuntu server, thenn Install the samba package in ubuntu server with following commads:
sudo apt-get instal samba smbfs
Now, samba server ready to configure as file server
Configure Samba Server as File Server
To make samba as file server, edit and configure Samba configuration file, it place on directory /etc/samba/smb.conf. Before editing samba configuration, Make a backup of your /etc/samba/smb.conf.
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.original
Replace/Edit options /etc/samba/smb.conf with following configuration below
[global] workgroup = Ubuntu Precise security = user
[homes] comment = Home Directories browseable = yes writable = yes
[share] comment = Precise File Server path = /srv/samba/share browsable = yes guest ok = no read only = no create mask = 0755
Create directory for file sharing
sudo mkdir -p /srv/samba/share/
sudo chown nobody.nogroup /srv/samba/share/
create a samba user with following command
sudo adduser precise
Create a samba password for user: precise
sudo smbpasswd -a precise
Tips: if you want convert ubuntu user as samba user, just type the command : sudo smbpasswd -a <Ubuntu User>
Now, restart samba server with following command
sudo /etc/init.d/smbd restart
How to Connect Samba Server on Ubuntu and Windows XP
To Connect samba server on ubuntu : Open nautilus Menu File – Connect to Server
To Connect samba server on Windows XP: Start – Run or press Windows Button + R . see screen shoot below
Reference:
Tags: #File Server #Samba Server #Ubuntu Server #Ubuntu Server 12.04