Re: start an application under X11
- From: Dances With Crows <danSPANceswitTRAPhcrows@xxxxxxxxx>
- Date: Wed, 15 Mar 2006 11:21:39 -0600
On Wed, 15 Mar 2006 17:57:00 +0100, Poiter Agus staggered into the Black
Sun and said:
Now I need to start from console, (gnome is not running) an X
application, let's say as example xclock.
This is usually more complicated and less rewarding than you want.
export DISPLAY = 127.0.0.1:0.0
xclock
But when i start it, X11 starts well but no Xclock is running, and it
says can't open 127.0.0.1 display.
If DISPLAY contains a hostname or IP address, then X clients will
attempt to communicate with the X server over TCP. This doesn't always
work, because in most modern distros, X is started with the "-nolisten
tcp" option. It's usually much easier to do this:
(as user who's logged in to X)
xhost +local:
(allows all locally logged-in users to access the X display)
(outside of X session)
export DISPLAY=:0
xclient &
(xclient starts on :0)
....no problem. You can also do things with xauth, but this way's easier
if a bit less secure.
--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin / mail: TRAP + SPAN don't belong
http://www.brainbench.com / "He is a rhythmic movement of the
-----------------------------/ penguins, is Tux." --MegaHAL
.
- References:
- start an application under X11
- From: Poiter Agus
- start an application under X11
- Prev by Date: start an application under X11
- Next by Date: Re: binding xdm to a single ethernet interface
- Previous by thread: start an application under X11
- Next by thread: Re: start an application under X11
- Index(es):
Relevant Pages
|