I have a Yamaha R-N500 network receiver hardwired to an ethernet router (Linksys). It currently communicates with the web for such things as net radio and Pandora. Is there a straightforward means to link my Linux-based PC, also on the same router, to the audio receiver? I want the receiver to be able to access and play music files (ex: mp3) off the PC. The receiver has a 'server' option as one of the input selections. I can also read all the data assignments at the receiver as far as addressing is concerned. The big mystery is how to actually implement the media sharing between the two devices.
No need to fiddle this is standard in Ubuntu 18 and up using the standard Settings GUI.
You can add sftp, dav, davs, ssh, dropbox, google drive, smb, sftps, nfs and even AppleTalk afp:// shares.
Then if you need to share internet radio stations over DLNA this is possible too.
To stream SomaFM over DLNA (Rygel) to your DLNA client (Yamaha receiver or any other player) you need to edit rygel.conf. Not just any rygel.conf but the one in /home/$Username$/.config/rygel.conf. (Where $Username$ is your username.)
Go to the section [GstLaunch] and edit the changes as seen below.
I have added the complete section of a working version of rygel.conf here.
[GstLaunch] enabled=true launch-items=audiotestsrc;soma;drone audiotestsrc-title=Audiotestsrc audiotestsrc-mime=audio/x-wav audiotestsrc-launch=audiotestsrc ! wavenc soma-title=SomaFM SpaceStation soma-mime=audio/mp4 soma-launch=souphttpsrc iradio-mode=false location=http://ice2.somafm.com/spacestation-128-aac drone-title=SomaFM Dronezone drone-mime=audio/mpeg drone-launch=souphttpsrc iradio-mode=false location=http://ice2.somafm.com/dronezone-256-mp3
No need to change anything on the Yamaha, just turn on and press the server button. Or go to server if no button has been assigned (YET:) Both Rygel and the Yamaha are DLNA compatible.
Ubuntu 19.10’s new ‘Media Sharing’ toggle in
Settings > Sharing means you can share media photos, videos and music over your local network. It all works using the ubiquitous DLNA/UPnP protocols and your local network — no third-party cloud server or media centre set-up required. (Source: OMG Ubuntu).
Slide the switcher in the header bar of the modal dialogue to ‘On’, and then select a network from the list to share your media on. Disclaimer: DLNA sharing isn’t a secure way to share media. Everyone on the same network can access (but not edit/delete) shared media.
You’ll notice that 3 folders are shared by default: Pictures, Videos and Music. If you don’t want to share one/any of these just remove them from the list using the x ion to the right of the folder name.
To add your own media sources just scroll down the dialogue and hit the + button. Then use the folder picker to navigate to and select a different folder on your system. Repeat the process to add additional directories.
For more details, please read the article on OMG Ubuntu.
It looks like it is based on Rygel and this tool is now integrated in Ubuntu. Be careful it sometimes autostarts by default/mistake after upgrading to 19.10 but a fix is on its way (Nov 2019). (Source: OMG Ubuntu.)