Samba File Server as a Dance

How to install Samba Server for filesharing on linux Debian or Raspberry Pi

Installing Samba Server for file sharing can be done very fast as most of the settings are straight out of the box. That said you might wish harden your configuration after the installation.    This guide works on RasPi and Debian .

Install Samba File Server

#apt update && upgrade  -y
#apt install samba -y

 

Edit the config files

#nano /etc/samba/smb.conf

Go to the bottom and add this:

[YourShare]
comment = Some short lyric about your share
path = /home/YourShareFolder
browseable = yes
read only = no
guest ok = no
valid users = YourValid UserName

#systemctl restart smbd

Add a user

#smbpasswd -a username

Enter your long and strong password twice. Remember to save in some sort of password manager.

Open the Firewall

#ufw allow from 192.168.0.0/16 to any port 445 proto tcp
Using Wireguard remember to open FW settings as well.

 

Accessing your share

Using Debian or Raspberry Pi you may installs tools for this:

#sudo apt install samba-client cifs-utils

Windows goes straight out the box

Update Monitorix

Using Monitorix you may add the settings under port:

#nano /etc/monitorix/monitorix.conf

 

# PORT graph
# -----------------------------------------------------------------------------
<port>
  max = 12
  rule = 24000
  list = 445 
<desc>
    445 = SMTP, tcp, in, 0, 100, L
</desc>

  graphs_per_row = 3
</port>

# systemctl stop monitorix
Wait 10 seconds
# systemctl start monitorix

There seems to be release all dependencies bug in Monitorix not reload it correct if we don’t stop it completely

 

Happy sharing 🙂

Leave a Comment

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

19 + 3 =

indiana jez