Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70782 - can't remote login to xorg (only from windows)
Summary: can't remote login to xorg (only from windows)
Status: RESOLVED DUPLICATE of bug 70585
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: PAM Gentoo Team (OBSOLETE)
URL: http://www.linuxforum.com/forums/inde...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-11 05:12 UTC by Aben Siatris
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aben Siatris 2004-11-11 05:12:01 UTC
When I login over network on xdm/kdm it inmediately returns me to the xdm/kdm login screen.

Reproducible: Always
Steps to Reproduce:
1. $ X -query localhost :1
2. starts kdm on display 1
3. enter user & password
4. starts kdm on display 1

1. $ X -query $IP :1
2. starts kdm on display 1
3. enter user & password
4. starts kdm on display 1

Actual Results:  
can't login from other host, only from windows X client (Xmanager2)


[binary   R   ] x11-base/xorg-x11-6.8.0-r1  -3dfx -3dnow +bitmap-fonts -cjk
-debug* -dlloader -dmx -doc* -hardened -insecure-drivers -ipv6 +mmx +nls +pam
-sdk +sse -static +xprint*


Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9-rc4-love1 i686)
=================================================================
System uname: 2.6.9-rc4-love1 i686 Intel(R) Celeron(R) CPU 2.40GHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=pentium4 -march=pentium4 -msse -msse2 -mmmx -fomit-frame-pointer
-O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4
-fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=pentium4 -march=pentium4 -msse -msse2 -mmmx -fomit-frame-pointer
-O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4
-fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache digest distlocks prelink sandbox sfperms"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ http://gentoo.inode.at/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://212.219.247
.18/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acl alsa apache2 apm arts audiofile avantgo avi berkdb bitmap-fonts
bluetooth bootsplash cdparanoa cdr chroot crypt cups curl dba debug directfb
divix4linux divx4linux doc dvb dvd dvdr dvdread encode esd exif f77 fam fastcgi
fax fbcon flac flash foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2
iconv icq imagemagick imap imlib innodb jack java javascript jpeg jpeg2k junit
kde lcd ldap libg++ libwww mad maildir mbox mikmod mime mmx mmx2 motif mozilla
mpeg mysql mythtv nas ncurses network nls nptl nvidia oci8 odbc oggvorbis openal
opengl pam pda pdflib perl png postgres povray python qt quicktime readline rtc
samba sdl session slang soap speex spell sqlite sse sse2 ssl svg svga tcpd
threads tiff timidity truetype unicode usb v4l v4l2 wifi x86 xine xml xml2 xmms
xv xvid zlib linguas_de linguas_ru linguas_sk linguas_cz linguas_cs linguas_en"
Comment 1 Aben Siatris 2004-11-11 05:29:37 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
Comment 2 Aben Siatris 2004-11-11 05:29:37 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á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.
Comment 3 Aben Siatris 2004-11-11 11:20:53 UTC
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"'
Comment 4 Aben Siatris 2004-11-15 00:31:43 UTC
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
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-15 09:42:19 UTC
Without that hack, try `echo ${DISPLAY}` when you log in.
Comment 6 Aben Siatris 2004-11-15 11:23:37 UTC
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
Comment 8 J. Alexander Treuman 2004-11-26 17:01:27 UTC
Yet another duplicate of bug 70585.
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2005-02-25 11:48:24 UTC

*** This bug has been marked as a duplicate of 70585 ***