Tested on RuneAudio beta-20160313
View code - GitHub
Server name
Any os file browsers - Set Host name in Settings menu
Only Windows(NetBIOS) file browsers - Edit netbios name in /etc/samba-dev/smb.conf
Configuration
/etc/samba/smb-dev.conf
- Code: Select all
[global]
# netbios name = [name]
workgroup = WORKGROUP
server string = Samba %v on %L
wins support = yes
domain master = yes
preferred master = yes
local master = yes
os level = 255
dns proxy = no
log level = 0
socket options = IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
min receivefile size = 2048
use sendfile = yes
aio read size = 2048
aio write size = 2048
write cache size = 1024000
read raw = yes
write raw = yes
getwd cache = yes
oplocks = yes
max xmit = 32768
dead time = 15
large readwrite = yes
guest ok = yes
map to guest = bad user
encrypt passwords = yes
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
[readwrite]
comment = browseable, read, write, guess ok, no password
path = /mnt/MPD/USB/hdd/readwrite
read only = no
[read]
comment = browseable, read only, guess ok, no password
path = /mnt/MPD/USB/hdd/read
[root]
comment = hidden, read, write, root with password only, from [IP1] [IP2] only
path = /mnt/MPD/USB/root
browseable = no
read only = no
guest ok = no
valid users = root
# host allow = [IP1] [IP2]
Test smb.conf parameters
- Code: Select all
testparm
Fix minimum rlimit_max
- Code: Select all
echo -n '
root soft nofile 16384
root hard nofile 16384
' >> /etc/security/limits.conf
Close SSH and reconnect to update new value.
Restart
- Code: Select all
systemctl restart nmbd smbd
Upgrade
- - RuneAudio already installed samba4-rune
- Upgrading to latest Samba with following configuration should improve transfer speed by 30%, from 8MB/s up to 11MB/s, on wired network
- RuneAudio has trouble with system wide upgrade. Do not pacman -Syu
Stop Samba
- Code: Select all
systemctl stop nmbd smbd
Fix packages download errors
- Code: Select all
if grep '^Server = http://mirror.archlinuxarm.org/' /etc/pacman.d/mirrorlist; then
wget -qN --show-progress https://github.com/rern/RuneAudio/raw/master/rankmirrors/rankmirrors.sh
chmod +x rankmirrors.sh
./rankmirrors.sh
fi
pacman -Sy
Remove Existing - Install Latest Samba
- Code: Select all
pacman -R --noconfirm samba4-rune
pacman -S --noconfirm tdb tevent smbclient samba
# fix missing libreplace-samba4.so
pacman -S --noconfirm libwbclient
ln -sf /etc/samba/smb-dev.conf /etc/samba/smb.conf
Restart
- Code: Select all
systemctl daemon-reload
systemctl restart nmbd smbd
Remarks: Do it the easy way with Addons Menu