How to install Samba in Ubuntu or Linux and access it in Mac OS and Windows
How to install Samba in Ubuntu or Linux and access it in Mac OS and Windows, Samba permits to proportion documents and printers with different computer systems remotely, regardless their running system (Linux, home windows, Mac.). This manual display the way to install and configure the Samba provider in a Ubuntu system and get entry to it via home windows and mac.
Setting up the Samba File Server on Ubuntu/Linux:
- Open the terminal
- Install samba with the following command:
sudo apt-get install samba smbfs
- Configure samba typing:
vi /etc/samba/smb.conf
- Set your workgroup (if necessary). Go down in the file, until you see :
- Set your share folders. Do something like this (change your path and comments)
- Restart samba. type: /etc/init.d/smbd restart
- Create the share folder: sudo mkdir /your-share-folder
- Set the permissions: sudo chmod 0777 /your-share-folder
- you are all set in ubuntu
# Change this to the workgroup/NT-domain name your Samba server will part of workgroup = WORKGROUP
Accessing Samba Server Files from:
Mac OS
- Open finder
- Menu Go -> Connect to server (command-k)
- In the "Server Address" textbox, type: smb://<your-ip-address-to-ubuntu>
- Connect
- Select guest and OK
- Your all set, you'll be able to see /<your-share-folder> from here.
Windows
- Start button -> Run
- Type: \\<your-ip-address-to-ubuntu>\<your-share-folder>
- All set
If you need to enable the samba ports in your firewall these are the ports:
port type port no
udp 137
udp 138
tcp 139
tcp 445