How to install SAMBA File Sharing Server on Ubuntu Server

Setting up a Samba share on Ubuntu allows you to share files across different devices on your network, making it a great choice for a media server. Here’s a quick guide to configuring Samba with a shared folder

Update Package List and Install Samba

sudo apt update

 Then, install Samba with:

sudo apt install samba

Edit Samba Configuration 

nano /etc/samba/smb.conf

 

Scroll to the bottom of the file and paste the following configuration to create a shared folder named “MediaServer.” Update the path to your preferred directory.

##############################
[MediaServer]
comment = Media server
path = /home/jellyfin
browseable = yes
read only = no

##############################

 Press CTRL + X to exit, Y to confirm changes, and Enter to save.

 

Restart Samba Service 

systemctl restart smbd

Allow Samba Through the Firewall 

ufw allow samba

 

Leave a Reply

Your email address will not be published. Required fields are marked *