Skip to main content
alex4buba
Trending Lyricist I
August 29, 2020
Answered

Using SONOS with Linux

  • August 29, 2020
  • 25 replies
  • 36544 views

I have been a SONOS customer for the past 6 years almos. I was very happy...

A month ago, I moved from Windows to Linux on my desktop PC, I tried Wine under Linux and removed it.

I am using currently NOSON as a replacement desktop controller under Linux, but - I have a lot of music stored locally and can’t find a way to play that, as I used to during my Windows time…

Any suggestions?

Thanks

Alex

 

This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.
Best answer by castalla

Here's a link to the latest releases -  https://github.com/pascalopitz/unoffical-sonos-controller-for-linux/releases

Look under Assets for the deb file (choose according to your processor - arm or intel)

There’s a menu item in the program to set a music library link - haven’t tried it, so your mileage may vary.  You may have to use the index menu option also.

Good luck.

25 replies

August 30, 2020

I think my link posted earlier might be sufficient but not sure of that.

alex4buba
alex4bubaAuthor
Trending Lyricist I
August 31, 2020

I think my link posted earlier might be sufficient but not sure of that.

Hello Sonos friends

It seems, John is right. I am experiencing other access control issues.

It is likely result of me installing KDE on top of GENOME GUI and the two are fighting on seniority…

I am about to reinstall Kubuntu, clean and hope…

When done, I will report back here.

Before I go, must I install SAMBA? Until now, I didn't see a need for it, not clear.

Thank you all, again

Alex, Australia

Stanley_4
Grand Maestro
August 31, 2020

I don’t have access to Ubuntu but the PI is based on Debian, maybe looking at the settings I use and then finding the config file on your setup would help. Edit and restart the Samba service.

Snip: 

The next change is to edit the Samba configuration file to allow SMB v1 and access to your music's mount point.

The whole /etc/samba/smb.conf file is kind of big and most sections don't apply. Here are the changes to the default Raspberry Pi file. NOTE: Without enabling SMB v1 with the "ntlm auth" option in [global] nothing will work with Sonos.

[global]
# enable v1 authentication for Sonos access
ntlm auth=yes

[music]
Comment = Pi shared folder
Path = /mnt/music
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0555
directory mask = 0555
Public = yes
Guest ok = yes 

Bumper
August 31, 2020

I think my link posted earlier might be sufficient but not sure of that.

Hello Sonos friends

It seems, John is right. I am experiencing other access control issues.

It is likely result of me installing KDE on top of GENOME GUI and the two are fighting on seniority…

I am about to reinstall Kubuntu, clean and hope…

When done, I will report back here.

Before I go, must I install SAMBA? Until now, I didn't see a need for it, not clear.

Thank you all, again

Alex, Australia

 

Edit, I got distracted and see that @Stanley_4  has already provided this information, but I’ll leave this up in case there’s something there that’s useful for you

 

If you want to share music files that are on that computer with Sonos you need samba.

To install, from a terminal enter: 

​ sudo apt update ​

then:

sudo apt install samba

Then to configure samba enter;

sudo nano /etc/samba/smb.conf

In global IIRC you need this for smb compatibility

min protocol = NT1
ntlm auth = yes

 

Then, while you still have smb.conf open, at the bottom of the config file you should add your share (though in your Ubuntu smb.conf it might not be the bottom). There are guides online for this like the one John linked to above, here’s a copy of what I have on my computer to help get you started. When you are done press ctrl+0 then ctrl+x to save and exit nano

#Share 
[Sonos]
path = /path/to/your/files
guest ok = no
read only = no
browseable = yes
inherit permissions = no
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
hide special files = yes
follow symlinks = yes
hide dot files = yes
 

Local Superstar
August 31, 2020

If the folder is not made public (eg. guest access) then you have to set it up using your password.   I’d try using Stanley_4’s version and be sure to get the correct edit for your path  -  /media/New-SD-512/LP_Music

It's the courageous bee's knees - all 6 🐝🐝🐝🐝🐝🐝. - - - - - Make Sonos Great Again - - - - -