Visit Our UNIX and Linux User Community


Xwindows not working


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Xwindows not working
# 1  
Old 08-31-2009
Xwindows not working

Hi

I am trying to run a program on a solaris bx that requires an xwindow. I have exceed running and X11 forwarding enabled in putty I sent my display but the output is can't open display.

To connect to the server I ssh to a jump host and ssh to the server and then su to root. Could this have an affect on the xwindows not working? Do i need to do anthing to the MIT cookie?

Server
Quote:
SunOS FMS0-PRE-FR 5.10 Generic_118833-17 sun4v sparc SUNW,Sun-Fire-T1000
Commands
Quote:
[root@FMS /]# export DISPLAY=10.40.119.105:0.0
[root@FMS /]# xclock
Error: Can't open display: 10.40.119.105:0.0
[root@FMS /]#
There is a 2 minute pause between executing xclock and the error occurring.

Xauth
Quote:
[root@FMS /]# xauth list
FMS /unix:10 MIT-MAGIC-COOKIE-1 836b4dca8527f29d9de04189526cbe97
[root@FMS /]#
Any help would be greatly appreciated
# 2  
Old 08-31-2009
Is 10.40.119.105 your local machine? If so, run "xhost + <server-ip>" and try again.

Alternatively, SSH supports X11 forwarding, eg:
Code:
desktop$ ssh -X server1
server1$ ssh -X server2
server2$ xclock

Should do what you want.
# 3  
Old 08-31-2009
yep 10.40.119.105 is my local machine

Quote:
[root@FMS etc]# xhost + 10.48.4.131
xhost: unable to open display "10.40.119.105:0.0"
If I try the method

Quote:
desktop$ ssh -X server1
server1$ ssh -X server2
server2$ xclock
I get the same error

Quote:
[root@FMS /]# export DISPLAY=10.40.119.105:0.0
[root@FMS /]# xclock
Error: Can't open display: 10.40.119.105:0.0
What is weird is that when I run xclock or xhost there is a 2-3 min wait before the error occurs
# 4  
Old 08-31-2009
You didn't quite follow it. When you use SSH with X11 forwarding, you don't have to set the DISPLAY variable, it gets set by sshd prior to spawning a shell. Any X11 traffic from there on will be tunneled through the SSH connection. When you login to server2 using "ssh -X", enter xclock, without explicitly setting the DISPLAY again.
# 5  
Old 08-31-2009
Just tried that and I got
Quote:
[root@FMS /]# xclock
Error: Can't open display:
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #313
Difficulty: Easy
The programming language Python is based on a modified version of JavaScript.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

XWindows from Solaris 8

Hi everyone, I have an xwindow problem I could use a hand with. I have a solaris 8 installation (a container actually, within solaris 10). I seem to not be able to open any xwindows over ssh. It comes about when trying to install oracle. When ssh'd to the solaris 8, Oracle's runInstaller... (3 Replies)
Discussion started by: goodvikings
3 Replies

2. UNIX for Dummies Questions & Answers

Xwindows in unix

the question i have is why Xwindows(GUI) is not part of kernel level but part of user level in unix while in windows the GUI (Windows manager) it is part of kernel level. For one thing is when GUI hangs it does not crash the whole system as in Windows But windows avoids context... (0 Replies)
Discussion started by: sandesh.syr
0 Replies

3. UNIX Desktop Questions & Answers

Xwindows

i m working on a project of making linux boot and run from a pendrive. I have got a minimal root filesystem with busybox. I wish to install X Server now. I downloaded the source tar balls, untarred them on the host system, used the default host.def issued commands $make WORLDOPTS=-k World >&... (0 Replies)
Discussion started by: amu
0 Replies

4. Linux

Xwindows

i m working on a project of making linux boot and run from a pendrive. I have got a minimal root filesystem with busybox. I wish to install X Server now. I downloaded the source tar balls, untarred them on the host system, used the default host.def issued commands $make WORLDOPTS=-k World >&... (0 Replies)
Discussion started by: amu
0 Replies

5. AIX

Xwindows on a HMC

I have a HMC version 5.2, The HMC controls 4 lpars. I would like to install the powerchute on the HMC and have it be the master control to shutdown each of the lpars and the VIO server in order so no harm is done to the VIO server. AIX version 5.3 64bit My problem is i have to install... (5 Replies)
Discussion started by: pagink
5 Replies

6. UNIX for Advanced & Expert Users

terminal 8/ new Xwindows session

hi everyone... simple question,,, if I open a new Xwindows session on terminal 8 would it be possible to hook my laptop to a desktop computer platformed with linux and run an alternate session from the desktop on my laptop (on terminal 8 ) ......? is this impossible, impractical or too far... (1 Reply)
Discussion started by: moxxx68
1 Replies

7. Linux

XWindows

I have written some Xwindows files would like to know how to compile them tried this command gcc -o main main.o -lXt -lX11 gives errors like could not find Xt & X11 help please (5 Replies)
Discussion started by: wojtyla
5 Replies

8. UNIX for Dummies Questions & Answers

XWindows Question

I have a pretty basic XWindows question. I'm using Linux and the BASH shell. I want to connect to a machine that is running a Java IDE (we currently have I think "SlickEdit" but we're probably going to download Netbeans, Eclipse) and view the IDE on the client machine. I tried "xhost +" on the... (5 Replies)
Discussion started by: doublek321
5 Replies

9. IP Networking

login using xwindows

Is there a way to find out who is logged in to the system using Xwindows ( hummingbird).. I tried using finger and last it doesn't show the person logged in .. but when i run ps -ef | grep "ip address' it show various process running on the system.. Moreover is there a way to log off the... (2 Replies)
Discussion started by: ajnabi
2 Replies

10. UNIX for Dummies Questions & Answers

Xwindows/ Xdaemon? help

I have Oracle 8i, running Slackware...I have "X-win32" on my Win2k box, but when I installed Slackware I didn't install the GUI's... Isn't there a xdaemon or something of the sort that I must install first ? So when my Win2K box queries the UNIX box it picks up and says "Hi, gimme GUI" heh.. Any... (4 Replies)
Discussion started by: ComTec
4 Replies

Featured Tech Videos