* martin f krafft ([EMAIL PROTECTED]) [020926 04:57]:
> i would like to implement a service in the LAN which pops up a window
> on a workstation computer in response to an event generated on
> a central server. ideally, the popup window should be displayed for
> a configurable amount of time before being destroyed again. rather
> than using the X protocol, xmessage, and a timeout on the server's
> process (it would run there, display on the workstation, and get
> killed by something like the timeout package), i would love to have
> a system specifically crafted for this purpose. do you know anything
> of that sort? note that samba is not running and is not an option.

Maybe you can just leave and xconsole running and use remote logging?
Maybe you can make use of some colorizing script, too, to highlight
these messages in the xconsole window, or just configure syslog to only
send those particular messages to the /dev/console.

Actually, that gets me to an even better idea: create a new FIFO just
for this purpose, have syslog send just those messages to that FIFO, and
start xconsole with -f pointing to it.

> and if not, could you help me make something like
> 
>   xmessage -display workstation:0
> 
> work? it always fails with "Cannot open display" even though I set
> `xhost +` on the workstation's running X process. i am thinking that
> it's related to X not binding port 6000 on startup, but am clueless as

Have you confirmed that X is not listening on tcp/6000? If so, that
would certainly be a problem ;-) netstat and nmap are your friends.

> to how to enable that. removing '-nolisten tcp' from
> /etc/X11/xinit/xserverc on the workstation and restarting X didn't
> work.

That oughta do it.  As an alternative, how about setting up an ssh key
with command=xmessage and environment="DISPLAY=:0" in the
authorized_keys file and let that take care of it?  Then the server just runs

ssh -i <passphrase-less identity file> workstation xmessage

The workstation allows it, and you don't have to open it up with xhost.

Well, if you just want to do it the old-fashioned way, just using X and
no ssh, how are you starting X?  Removing the nolisten tcp as you did
should work if you're using startx, but from *dm you might also have to
edit the appropriate config file (e.g. /etc/X11/xdm/Xservers or
similar).

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
"Those who desire to give up freedom in order to gain security will not have,
nor do they deserve, either one."  --President Thomas Jefferson.

Attachment: msg03840/pgp00000.pgp
Description: PGP signature

Reply via email to