Summary: | can't remote login to xorg (only from windows) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Aben Siatris <aben> |
Component: | Current packages | Assignee: | PAM Gentoo Team (OBSOLETE) <pam-bugs+disabled> |
Status: | RESOLVED DUPLICATE | ||
Severity: | major | CC: | x11 |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.linuxforum.com/forums/index.php?s=32f6f110a3bdef3e7d012e505255e0d1&showtopic=113734&st=0&#entry494476 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Aben Siatris
2004-11-11 05:12:01 UTC
homebox aben # more /home/aben/.xsession-errors-192.168.0.2\:1 Warning: Failed to open file(/usr/share/fluxbox/nls/sk_SK/fluxbox.cat) for translation, using default messages. /home/aben/.fluxbox/startup: line 12: 23278 Chyba segment homebox aben # more /home/aben/.xsession-errors-192.168.0.2\:1 Warning: Failed to open file(/usr/share/fluxbox/nls/sk_SK/fluxbox.cat) for translation, using default messages. /home/aben/.fluxbox/startup: line 12: 23278 Chyba segmentácie /usr/bin/bsetroot -solid black Warning: Failed to open file(/usr/share/fluxbox/nls/sk_SK/fluxbox.cat) for translation, using default messages. Error: Can not connect to X server. Make sure you started X before you start Fluxbox. when i log on 192.168.0.22 locally $ X -query localhost :1 homebox janka # more .xsession-errors-localhost\:1 xset: unable to open display "localhost:0.0" xset: unable to open display "localhost:0.0" xsetroot: unable to open display 'localhost:0.0' startkde: Starting up... kdeinit: Launched DCOPServer, pid = 12335 result = 0 DCOP: register 'anonymous-12335' -> number of clients is now 1 DCOP: unregister 'anonymous-12335' kdeinit: Launched KLauncher, pid = 12340 result = 0 DCOP: register 'klauncher' -> number of clients is now 1 DCOP: unregister 'klauncher' DCOP: register 'klauncher' -> number of clients is now 1 QPixmap: Cannot create a QPixmap when no GUI is being used QPixmap: Cannot create a QPixmap when no GUI is being used DCOP: new daemon klauncher kdeinit: Launched KRandrInitHack, pid = 12342 result = 0 DCOP: register 'kded' -> number of clients is now 1 DCOP: unregister 'kded' kdeinit: Launched KDED, pid = 12343 result = 0 DCOP: register 'kded' -> number of clients is now 1 DCOP: register 'anonymous-12343' -> number of clients is now 2 ksplash: cannot connect to X server localhost:0.0 kded: cannot connect to X server localhost:0.0 DCOP aborting call from 'anonymous-12343' to 'kded' DCOP: unregister 'kded' kded: ERROR: Communication problem with kded, it probably crashed. DCOP: unregister 'anonymous-12343' kdeinit: PID 12343 terminated. kdeinit: Can't connect to the X Server. kdeinit: Might not terminate at end of session. kdeinit: Launched 'kcminit', pid = 12394 result = 0 kcminit: cannot connect to X server localhost:0.0 kdeinit: PID 12394 terminated. kdeinit: Launched 'knotify', pid = 12430 result = 0 DCOP: register 'knotify' -> number of clients is now 1 DCOP: register 'anonymous-12430' -> number of clients is now 2 knotify: cannot connect to X server localhost:0.0 DCOP aborting call from 'anonymous-12430' to 'knotify' DCOP: unregister 'knotify' ERROR: Communication problem with knotify, it probably crashed. DCOP: unregister 'anonymous-12430' kdeinit: PID 12430 terminated. kdeinit: Got KWRAPPER 'ksmserver' from socket. creating: homebox;1100200886;510306;12464_TIME0: kdeinit: PID 12464 terminated. ksmserver: cannot connect to X server localhost:0.0 startkde: Shutting down... kdeinit: terminate KDE. klauncher: Exiting on signal 1 DCOP: unregister 'klauncher' startkde: Running shutdown scripts... startkde: Done. i start X in display 1, but errorlog says, what it is display 0! :-? 'xset: unable to open display "localhost:0.0"' this hack writed into /etc/profile helps me # fix for DISPLAY & AUDIOSERVER if [ "$XDM_MANAGED" != '' ] then export DISPLAY=`perl -e 'print ($ARGV[0]=~/\-(.*?),/)' $XDM_MANAGED`; export AUDIOSERVER=`perl -e 'print ($ARGV[0]=~/\-(.*?):/).":0"' $XDM_MANAGED`; else export AUDIOSERVER=`perl -e 'print $ARGV[0].":0"' $SSH_CLIENT`; fi Without that hack, try `echo ${DISPLAY}` when you log in. i add into /etc/profile this line: echo ${DISPLAY} > $HOME/out.a homebox free # more /home/free/out.a 192.168.0.2:0.0 but i logged from 192.168.0.2:1 "Xnest -query 192.168.0.22 :1" display number is always 0.0 error was in /etc/security/pam_env.conf http://www.linuxforum.com/forums/index.php?s=32f6f110a3bdef3e7d012e505255e0d1&showtopic=113734&st=0&#entry494476 |