[SunRay-Users] Maintaining X server display number with Sun Rays

LeBar, Russell J Russell.J.LeBar at erac.com
Wed Jan 10 12:40:37 EET 2007


I think this is tied in with dtlogin and might be harder than you think
(and likely not supported). 
 
Check out the utwho command (specifically, give 'utwho -a -c -H' a try).
You could then have every script that checks for the bridge DTU read a
config file to get that unit's MAC address and then compare that to the
CID from the utwho output to get you your display. Seems like this would
be slightly more flexible (e.g. if sessions can move between Sun Rays
then you can still identify the bridge DTU).
 
As a side note: you're going to have to do some xhost stuff to be able
to send something to a different DISPLAY which does raise some security
concerns. You might want to have some type of agent that runs the
X-windows app from within the bridge session instead of exporting your
DISPLAY to it. If you are using KDE as the desktop environment then you
could use dcop (as either that user or as root) to exec_blind the
process within the correct session (for the current session use 'dcop
klauncher klauncher excev_blind <cmd> <cmd> <cmd> <cmd> <cmd> <cmd>'
[repeat the cmd six times]). To reiterate, using xhost raises additional
security concerns. 
 
-- Russ
 


________________________________

	From: sunray-users-bounces at filibeto.org
[mailto:sunray-users-bounces at filibeto.org] On Behalf Of Ross Morrison
	Sent: Tuesday, January 09, 2007 01:11
	To: sunray-users at filibeto.org
	Subject: [SunRay-Users] Maintaining X server display number with
Sun Rays
	
	
	Hopefully this is an easy question and I'm just not looking in
the right place for the answer!!
	
	We have a number of sun rays running on a single server and I am
trying to work out how I can force a sun ray to maintain the same X
display number following a restart of the services or restart of the
machine.  Can I use the utxconfig command to do this.  I have a single
DTU located on the bridge of a vessel and would like to maintain that as
display :2.0 on the server so applications can be consistently pushed to
the correct display.
	
	Thanks
	Ross
	
	-- 
	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.filibeto.org/pipermail/sunray-users/attachments/20070110/ab0689be/attachment.htm


More information about the SunRay-Users mailing list