Samba allows to share files and printers with other computers remotely, regardless their operating system (linux, windows, Mac, ...). This guide show how to intall and configure the Samba service in a Ubuntu machine and access it through 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 necesary). 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
今回はそんな方達に向けてUbuntuをファイルサーバ化させることを目標に、 ・Sambaとはそもそも何か ・Sambaの導入 ・GUIを使ったSambaの設定 ・Macからの接続 という点について詳しく説明していこうと思います! 本記事は ・Ubuntu18.04LTS ・MacOS の方を対象に書いて. Download Ubuntu desktop, Ubuntu Server, Ubuntu for Raspberry Pi and IoT devices, Ubuntu Core and all the Ubuntu flavours. Ubuntu is an open-source software platform that runs everywhere from the PC to the server and the cloud.
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.
![Mac Mac](/uploads/1/1/9/4/119493153/857424962.png)
- Start button -> Run
- Type: <your-ip-address-to-ubuntu><your-share-folder>
- All set
Ubuntu Samba Shares
![Macos Macos](/uploads/1/1/9/4/119493153/669341561.jpg)
Ubuntu Samba For Mac Os
If you need to enable the samba ports in your firewall these are the ports: