Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
export DISPLAY and SSH -X (neither work)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kiss-o-matic
Guru
Guru


Joined: 19 Jul 2004
Posts: 423
Location: Tokyo

PostPosted: Tue Jul 27, 2004 12:27 am    Post subject: export DISPLAY and SSH -X (neither work) Reply with quote

Can't figure this out. I have a new install, and everything seems to be working fine except for this.

I do xhost +, and then try to do export DISPLAY=mynode:0.0 from another machine, but it always says "can't open display".
I also try SSH -X to forward xpackets, but the same error is returned. I have uncommented the "X11 Forwarding yes" line in the ssh_config and sshd_config (and restarted). Still no love.

Any suggestions?
Back to top
View user's profile Send private message
subrahmanyan
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2004
Posts: 149
Location: Grey Havens

PostPosted: Tue Jul 27, 2004 5:20 am    Post subject: Reply with quote

Maybe you need to modify the default server arguments in /usr/X11R6/bin/startx.
Try to replace the following line:
Code:

defaultserverargs="-nolisten tcp"

by this:
Code:

defaultserverargs=""

Exporting the display should work now.
_________________
emerge -C Microsoft
Back to top
View user's profile Send private message
kiss-o-matic
Guru
Guru


Joined: 19 Jul 2004
Posts: 423
Location: Tokyo

PostPosted: Tue Jul 27, 2004 5:44 am    Post subject: Reply with quote

Yep - that worked, thanks!

Now to figure out why SSH -X doesn't work.
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Tue Jul 27, 2004 1:00 pm    Post subject: Reply with quote

For ssh -X check your /etc/ssh/ssh_config on the client and /etc/ssh/sshd_config on the server for ForwardX11 yes and X11Forwarding yes respectively.
Back to top
View user's profile Send private message
kiss-o-matic
Guru
Guru


Joined: 19 Jul 2004
Posts: 423
Location: Tokyo

PostPosted: Tue Jul 27, 2004 11:14 pm    Post subject: Reply with quote

yes, as per before, I set that in both config files, and it still doesn't work.

EDIT: I re-emerged openssh. Now, I get:

Quote:

Xlib: extension "GLX" missing on dipslay "localhost:11.0"
X Error: BadAtom (invalid Atom parameter) 5
Major opcode: 20
Resource id: 0xfe
Segmentation Fault


Yucky
Back to top
View user's profile Send private message
jdgill0
Veteran
Veteran


Joined: 25 Mar 2003
Posts: 1366
Location: Lexington, Ky -- USA

PostPosted: Wed Jul 28, 2004 6:35 am    Post subject: Reply with quote

You might try the following ... I have had to use it on occasion for running certain opengl base programs.
Code:
ssh -Y ...
Back to top
View user's profile Send private message
anshul
n00b
n00b


Joined: 15 Oct 2004
Posts: 64
Location: Mumbai, India

PostPosted: Thu Oct 28, 2004 4:06 pm    Post subject: Reply with quote

subrahmanyan wrote:
Maybe you need to modify the default server arguments in /usr/X11R6/bin/startx.
Try to replace the following line:
Code:

defaultserverargs="-nolisten tcp"

by this:
Code:

defaultserverargs=""

Exporting the display should work now.


i am having the same problem and after trying this as well i am not being able to export display.
could anyone tell me the solution.

regards
Anshul
Back to top
View user's profile Send private message
kiss-o-matic
Guru
Guru


Joined: 19 Jul 2004
Posts: 423
Location: Tokyo

PostPosted: Fri Oct 29, 2004 4:20 am    Post subject: Reply with quote

do
Quote:
ps -ef |grep x

and see if you see the "nolisten tcp" argument in there. I just built a new machine, and see this.
Quote:
cmtd 6284 6272 0 13:03 tty1 00:00:00 xinit /home/cmtd/.xinitrc -- -nolisten tcp -br -deferglyphs 16


You need to figure out how X is starting, and make sure that that argument is not there. I asked the specific question (how to change the arguments if starting from xdm/kdm) and it was answered... search for posts I've made, and you should find it, it wasn't long ago.

EDIT:
Here
https://forums.gentoo.org/viewtopic.php?t=237410&highlight=
Back to top
View user's profile Send private message
anshul
n00b
n00b


Joined: 15 Oct 2004
Posts: 64
Location: Mumbai, India

PostPosted: Fri Oct 29, 2004 8:03 am    Post subject: Reply with quote

kiss-o-matic wrote:
do
Quote:
ps -ef |grep x

and see if you see the "nolisten tcp" argument in there. I just built a new machine, and see this.
Quote:
cmtd 6284 6272 0 13:03 tty1 00:00:00 xinit /home/cmtd/.xinitrc -- -nolisten tcp -br -deferglyphs 16


You need to figure out how X is starting, and make sure that that argument is not there. I asked the specific question (how to change the arguments if starting from xdm/kdm) and it was answered... search for posts I've made, and you should find it, it wasn't long ago.

EDIT:
Here
https://forums.gentoo.org/viewtopic.php?t=237410&highlight=


i checked at this link and made changes my file. and now its working...:)
thanks

anshul
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum