Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document recommendations for headless setups #15

Open
1 of 3 tasks
jodal opened this issue May 5, 2015 · 1 comment
Open
1 of 3 tasks

Document recommendations for headless setups #15

jodal opened this issue May 5, 2015 · 1 comment

Comments

@jodal
Copy link
Member

jodal commented May 5, 2015

  • Use case: Run Mopidy-MPRIS + Rygel on a headless system to support playing audio in Mopidy from an UPnP client.
  • Research: Does any MPRIS clients support using the system bus?
  • Research: Can we start a session bus if there's none? Ref. wrap-dbus script. Will Rygel running as some other user on the system be able to connect to Mopidy-MPRIS using the mopidy user's session bus?
@kmiterror
Copy link
Contributor

I have a headless setup with rygel working. You need some fake x server to have dbus working with mpris. I use xvfb, it's available in most repos. I start it with a command:

Xvfb :1 -screen 0 1x1x8 &

It creates a minimal x server 1x1 pixel 8bits color, so it has minimal memory impact and enable mopidy-mpris and rygel to work through dbus.

Ofcourse DISPLAY envirnoment variable needs to be set up, I'm setting it in /etc/enviroment to:

DISPLAY=:1

Im running it that way for few months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants