Network Sharing with SAMBA
How to start with SAMBA in KaOS.
Samba comes by default in the ISO, to verify it is installed we will use the following command:
pacman -Q samba
That should return the installed version of samba, if not we install it with:
sudo pacman -Syusudo pacman -S samba
To start using samba we must create the configuration file, or we can copy the default one:
sudo cp /etc/samba/smb.conf.default /etc/samba/smb.conf
Then start the samba services:
sudo systemctl start smbdsudo systemctl start nmbd
And to start samba with the system:
sudo systemctl enable smbdsudo systemctl enable nmbd
We already have Samba running. You can see the shared resources in Dolphin -> Places -> Network -> samba shared Resources.
I leave an example of the smb.conf file with few restrictions and sharing a data partition mounted on /media/data:
[global]workgroup = WORKGROUPserver string = %h Serversecurity = usermap to guest = Bad Userload printers = yeslog file = /var/log/samba/%m.logmax log size = 50dns proxy = no
[homes]comment = Home Directoriespath = /home/dagobrowseable = yeswritable = nopublic = no
[printers]comment = All Printerspath = /var/spool/sambabrowseable = yesguest ok = yeswritable = noprintable = yes
[Data]comment = Data in KaOSpath = /media/databrowseable = yespublic = yeswritable = yes