samba pour sonos
code:
sudo adduser sonos
sudo passwd sonos
and enter a new password.
Check that user sonos can read your music files
code:
su - sonos
cd
ls
cd
ls
exit
check you have Samba installed
code:
dpkg --get-selections | grep samba
If you have it returns
code:
samba-common install
If not install it with
code:
sudo apt-get install samba
Back up the config
code:
sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.orig
then create /etc/samba/smb.conf to look like this
code:
[global]
workgroup = server
netbios name = server
server string = Samba Server %v
load printers = no
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = lo eth0
security = user
password level = 12
username level = 12
encrypt passwords = yes
username map = /etc/samba/smbusers
[musicshare]
path =
valid users = sonos
read only = yes
printable = no
only guest = no
and create a samba users file /etc/samba/smbusers
to look like this
code:
root = administrator admin
nobody = guest pcguest smbguest
sonos = sonos
This next is a new feature for Samba that some of the older howto's didn't need:
code:
sudo smbpasswd -a sonos
and enter a password. This is the one you will use below during the Sonos set-up.
Restart samba to use the new config
code:
sudo /etc/init.d/samba restart