

- Home network file sharing from server install#
- Home network file sharing from server mac#
- Home network file sharing from server windows#
You will need to monitor the recycle_bin directory periodically to clear it out, in order to reclaim space. Any file types added to the recycle:exclude parameter will not go to the recycle bin when deleted, and be permanently deleted rather. You will need to create the folder ( mkdir /srv/samba/recycle_bin) beforehand. To enable the Recycle Bin for a file share, add the following lines to smb.conf under the share, and restart Samba. You do have the option though of adding a recycle bin, to have a safety net for any items accidentally deleted. This is also the case when you set up a Samba file server by default, deleting a file deletes it permanently. This is very important to bear in mind when working from the command line and using the rmcommand. In the Linux world, once you delete something, it is gone.
Home network file sharing from server windows#
With Windows computers, we are used to files going to the Recycle Bin when they are deleted, that is, we have a last chance to rescue something in case we didn’t mean to delete it. Once you restart samba the new share should be available for use Samba Recycle Bin For example: sudo mkdir /srv/moviesĪnd add the following to the bottom of the file: To do this, create the additional directories, set the permissions and then edit smb.conf to include these shares. Often you may want to set up separate shares for different media types, such as movies, music, etc. Click Map Network Drive, and enter the IP address of your server and the share name you gave. To connect to your file server, open File Explorer and go to My Computer. Once done, restart the samba server and you should be ready to go sudo service smbd restart You will be prompted to enter a password. The final step is to add your user to the Samba user account. There is a lot of detail in this file, so while it is worthwhile reading through it, I would recommend renaming it to save it as a backup copy, and then creating a new smb.conf file, to which you can add only the lines needed for your file server cd /etc/sambaĪdd the following configuration lines into the smb.conf file: The Samba configuration files are saved at /etc/samba/smb.conf. If the directory doesn’t exist already, create it and set the permissions to give everyone access to it: sudo mkdir /srv/samba Next, decide what directory you are going to use for sharing files from.
Home network file sharing from server install#
Samba is included in the Ubuntu software repositories, so to install it, run: sudo apt-get update
Home network file sharing from server mac#
As such, it is a hugely popular file sharing protocol and so Mac and other devices are able to connect to and use it also. Windows laptops/computers on the network. Samba is an open source implementation of the SMB protocol, which allows you to do file and print sharing from a linux server to Windows clients, i.e. Windows however uses SMB (Server Message Block) for file sharing across a network. In a Unix/Linux world, the preferred way to share files is through using the NFS (Network File Sharing) protocol. Later on we will be setting the server up to show your photos, music and movies, so being able to move these files to the server conveniently makes it all the easier to work with these later applications. This is also useful for saving photos, music or movies centrally. Having a home file server allows you to save files to your always on server and make them available to all of your machines on the network. If you have more than one computer at home, you know what its like to want to work on a file or document, for instance, which is sitting on your other computer. One very handy use for your home server is in using it as a file server.
