PDA

View Full Version : cant run x remotely


chrisd
01-18-2009, 03:02 PM
I am having trouble running xterm and other x windows programs remotely

I am logged into a solaris box and I type in who am i to get my ip address

export DISPLAY=192.168.1.104:0.0

on the pcbsd box I type

xhost +

but when I run xterm on the solaris box it says

chrisd@mike:~$ xterm
xterm Xt error: Can't open display: 192.168.1.104:0.0
chrisd@mike:~$

What is going on?

chrisd
01-18-2009, 04:11 PM
Now I get

pcbsd $ ssh -XC -c blowfish mike

chrisd@mike:~$ xterm
Could not set destroy callback to IM
xterm: warning, error event received:
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 3 (X_GetWindowAttributes)
Resource id in failed request: 0x1816b72
Serial number of failed request: 346
Current serial number in output stream: 347
chrisd@mike:~$

hopefully I am getting closer

gwood
01-19-2009, 02:21 AM
try
ssh -Y mike
(no compression, default encryption, enable trusted X11 forwarding (assuming that the solaris box's ssh is new enough to support that).

unless you are connecting on a dialup line, compression is slower than raw.

chrisd
01-19-2009, 10:36 PM
Dear Sir, Thank you. I have been struggling with this and other problems for about 3 days now and was about to take my laptop over my head and smash it on the ground, well almost.

The ssh -Y works and while it is slow, I can live with it.

I still cant get and XDMCP session from solaris to pcbsd but i think its an issue with solaris.

Alls I can get is an x in the middle of the screen with the herringbone background. I have to do a hard reset. I though it was because solaris was running gdm and I was running kdm so after many hours of trying to install gnome that didnt fix the problem so it must be solaris.

Again, your solution is working for me to where I can finally sit down and start coding.

Thanks

gwood
01-20-2009, 07:22 AM
Alls I can get is an x in the middle of the screen with the herringbone background. I have to do a hard reset. I though it was because solaris was running gdm and I was running kdm so after many hours of trying to install gnome that didnt fix the problem so it must be solaris.

That sounds like you are getting a raw X session without a window manager.

Hmmm. so when ssh connects, you should be able to run a valid x command in the ssh terminal session. I'm not sure how you are starting the X session in from the ssh session, and I no longer have access to a solaris box to play with. Does solaris have twm or cde exeutables (try 'which twm' or 'whereis twm' or 'which cde' or...
if so, try running one of those from the ssh terminal session. If not, try running xterm from it.

This one may help (pretend your bsd box is the mac):
http://www.sunmanagers.org/pipermail/su ... 05533.html (http://www.sunmanagers.org/pipermail/summaries/2004-July/005533.html)

It looks like dtlogin is used to start cde sessions, try googling for 'solaris cde start command' if you have to use cde. I found some related stuff at

http://www.shrubbery.net/solaris9ab/SUN ... N/p24.html (http://www.shrubbery.net/solaris9ab/SUNWabe/CDEADMIN/p24.html)
OR (the same content?)
http://godzilla.kennedykrieger.org/sw/S ... N/p24.html (http://godzilla.kennedykrieger.org/sw/SunDocs/sun_docs/C/solaris_9/SUNWabe/CDEADMIN/p24.html)

I don't think this one describes your issue:
http://fixunix.com/sun/526412-x11-sessi ... rking.html (http://fixunix.com/sun/526412-x11-session-tunnelling-via-ssh-no-longer-working.html)


good luck!