Martin Woolley wrote:
On Thursday 06 Oct 2005 18:52, Roberto Leiva M. wrote:

Hi!

i need Know... which file or command setting VAR DISPLAY in thin client.

example:

echo $DISPLAY
ws254.ltsp:0.0

the idea is setting other Var with ws254-XXX in script startx

How to return ws254 ( name of thin client ) ?


netstat -t -e | grep $LOGNAME | grep -i x11 | head -1 | awk '{print $5}' might be what you are looking for.

it works when i connect by default ltsp (xdmcp).  (it's my error not to explain 
that)

my problem is that I use ltsp + freeNX (startnx). The difference is that freeNX 
use ssh to connect.

netstat -t -e

Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address             State   
    User     Inode
tcp        0      0 SERVER:32770            192.168.168.1:microsoft-ds  
ESTABLISHED root     4704
tcp        0      0 SERVER:32771            192.168.168.1:microsoft-ds  
ESTABLISHED root     4713
tcp        0      0 SERVER:32772            192.168.168.1:microsoft-ds  
ESTABLISHED root     4721
tcp        0      0 ltsp.flores.cl:56929    ltsp.flores.cl:5000         
ESTABLISHED nx       314895
tcp        0      0 ltsp.flores.cl:5000     ltsp.flores.cl:56929        
ESTABLISHED pbulnes0 314896
tcp        0      0 ltsp.flores.cl:56928    ltsp.flores.cl:ssh          
ESTABLISHED nx       314580
tcp        0      0 ltsp.flores.cl:ssh      ltsp.flores.cl:56928        
ESTABLISHED root     314581
tcp        0      0 SERVER:ssh              ws101.ltsp:60527            
ESTABLISHED root     265460
tcp        0      0 SERVER:ssh              ws021.ltsp:41649            
ESTABLISHED root     310211
tcp        0      0 SERVER:ssh              ws254.ltsp:1025             
ESTABLISHED root     314350

and all connections there are by root USER.

example
tcp        0      0 SERVER:ssh              ws254.ltsp:1025             
ESTABLISHED root     314350



note: freeNX setting difference var DISPLAY ( example DISPLAY=unix:1000.0 )
      and i need setting other var with name use to by LTSP ( example 
PRNINTER=ws254.ltsp )

regards.

--
Roberto Leiva M.
Santiago - Chile


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
     https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to