[mythtv-users] mythtv-setup and X forward

Justin The Cynical cynical at penguinness.org
Sat Aug 25 09:05:37 UTC 2007


Joacim J wrote:
> Hello,
> 
> A bit of stupid question...
> I have a klient and a server both running Kubuntu Feisty.
> I have now compiled MythTV on the server for running mythbackend but now I
> need to run mythtv-setup.
> 
> I have tried running it over VNC but get:
> 
> ======================================
> root at frodo:/home/joacim# /usr/local/mythtv_svn_r14230/bin/mythtv-setup
> Xlib: connection to ":1.0" refused by server
> Xlib: No protocol specified
> 
> mythtv-setup: cannot connect to X server :1.0
> ======================================
> 
> How can I run this?
> 
> Is it possible/better to start mythtv-setup from a regular SSH session and
> in that case how?
> 
> PS. I would prefer to solve VNC since I need it for other purposes but it's
> most important to get it running :) DS

Easy.

Before suing over to root, run:

xhost +

Then su over to root and run the command.

The X windows system display security in based on user privs more than 
the machine and display.  The xhost + command turns off the X display 
security allowing any user on the system (or machine on your LAN) to run 
a program and have any X output show up on your display.

Of course, the user or machine has to specifically point their display 
environment variable to your active X display, but it /might/ be 
something to keep in mind.


More information about the mythtv-users mailing list