[olug] Unable to start x program from terminal window

Jay Swackhamer Jay at RebootTheUser.com
Wed Dec 15 19:49:23 UTC 2004


since you are on the console,

#export DISPLAY=:0.0
do a
#xhost + #(as the user who logged into X, this allows all access for X disp)

Then run your X app

> Desired state:  Logged in as user mysql, be able to start the X-based
> mysql-admin program from the command line.
>
> mysql at fluffy:/usr/X11R6/bin> export DISPLAY=localhost:0
> mysql at fluffy:/usr/X11R6/bin> echo $DISPLAY
> localhost:0
> mysql at fluffy:/usr/X11R6/bin> xhost + mysql
> xhost:  unable to open display "localhost:0"
>
> hmmm, wrong DISPLAY setting.  Google says this is generic.
>
> mysql at fluffy:/usr/X11R6/bin> export DISPLAY=:0
> mysql at fluffy:/usr/X11R6/bin> echo $DISPLAY
> :0
> mysql at fluffy:/usr/X11R6/bin> xhost + mysql
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
>
> xhost:  unable to open display ":0"
>
> ummmm, apparently not generic enough.  My xterm used to work like this....
>
> mysql at fluffy:/usr/X11R6/bin> export DISPLAY=fluffy:0.0
> mysql at fluffy:/usr/X11R6/bin> echo $DISPLAY
> fluffy:0.0
> mysql at fluffy:/usr/X11R6/bin> xhost + mysql
> xhost:  unable to open display "fluffy:0.0"
>
> I retire muttering to the mailing list, knowing that someone has the
> appropriate syntax....
>
> Thanks in advance!
>
> Dave Thacker
>
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>


-- 
Jay Swackhamer
Reboot The User
15791 West Dodge Road
Suite 135
Omaha, NE 68118
(402) 933-6449
(402) 933-6456 Fax
http://www.RebootTheUser.com



More information about the OLUG mailing list