Unable to run xclock | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Unable to run xclock

Solaris


Tags
export display, linux

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-19-2007
panchpan panchpan is offline
Registered User
 
Join Date: Aug 2007
Last Activity: 7 September 2012, 3:01 AM EDT
Location: Australia
Posts: 128
Thanks: 1
Thanked 0 Times in 0 Posts
Unable to run xclock

Hello.
I am trying to run xclock on newly built solaris box[Solaris 10 11/06 s10x_u3wos_10 X86] - These are the steps I followed:

# DISPLAY=localhost:0.0
# export DISPLAY
# xclock
xclock: not found
# cd /usr/openwin/bin
# ./xclock
Error: Can't open display: localhost:0.0
#

Please suggest, what am i doing wrong?

Thank you!
Sponsored Links
    #2  
Old 11-19-2007
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
 
Join Date: Nov 2007
Last Activity: 14 December 2014, 8:48 PM EST
Location: New Zealand
Posts: 1,048
Thanks: 21
Thanked 26 Times in 25 Posts
It looks like you are running it as root, are you running the x-server as root or yourself? (permissions could be interfering)

A simple test:

Code:
/usr/openwin/bin/xdpyinfo -display <display>

Try localhost:0 as the display, or just look and see what the x-server is listening on.
Sponsored Links
    #3  
Old 11-19-2007
panchpan panchpan is offline
Registered User
 
Join Date: Aug 2007
Last Activity: 7 September 2012, 3:01 AM EDT
Location: Australia
Posts: 128
Thanks: 1
Thanked 0 Times in 0 Posts
Hello - Earlier I was connecting to server using telnet , now I use putty with ssh and below is the output:

$ echo $DISPLAY
localhost:10.0
$ xclock
ksh: xclock: not found
$ cd /usr/openwin/bin
$ ./xclock
X connection to localhost:10.0 broken (explicit kill or server shutdown).
$ su
Password:
# pwd
/usr/openwin/bin
# ./xclock
X connection to localhost:10.0 broken (explicit kill or server shutdown).
#

From my ID or root ID , the error is same.

Please advice.
    #4  
Old 11-19-2007
panchpan panchpan is offline
Registered User
 
Join Date: Aug 2007
Last Activity: 7 September 2012, 3:01 AM EDT
Location: Australia
Posts: 128
Thanks: 1
Thanked 0 Times in 0 Posts
Also the o/p of xdpyinfo:

# ./xdpyinfo -display localhost:10.0
X connection to localhost:10.0 broken (explicit kill or server shutdown).
#
Sponsored Links
    #5  
Old 11-20-2007
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
 
Join Date: Nov 2007
Last Activity: 14 December 2014, 8:48 PM EST
Location: New Zealand
Posts: 1,048
Thanks: 21
Thanked 26 Times in 25 Posts
Start without the X port forward via ssh and get it working locally first.
If the X server isn't responding properly, trying to route it via ssh isn't likely to help

As the user that is running the x-server, see what the output to the xdpyinfo command is. That will tell you if you have an issue with the x-server itself or an auth problem.

Edit: hang on, are you running this locally or trying to run it over the network? Where is the X-server (the display) running?
Sponsored Links
    #6  
Old 11-20-2007
panchpan panchpan is offline
Registered User
 
Join Date: Aug 2007
Last Activity: 7 September 2012, 3:01 AM EDT
Location: Australia
Posts: 128
Thanks: 1
Thanked 0 Times in 0 Posts
Hello.
I am trying to run it from remote machine , which is in the network:

$ cd /usr/openwin/bin
$ ./xclock
X connection to localhost:10.0 broken (explicit kill or server shutdown).
$ ./xdpyinfo
X connection to localhost:10.0 broken (explicit kill or server shutdown).
$ echo $DISPLAY
localhost:10.0
$


Please suggest.
Sponsored Links
    #7  
Old 11-20-2007
Lakris Lakris is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 13 June 2012, 2:08 PM EDT
Location: Stockholm
Posts: 317
Thanks: 0
Thanked 7 Times in 7 Posts
To be able to show X Window applications on Your local machine You must have an X-server running on it. Do You?
Are You running this through putty on a Windows machine?
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Installed AIX6.1 in LPAR, but fail to start xclock wingcross AIX 5 02-18-2011 05:08 AM
xclock not working in HP-Unix 11.23 narayanv HP-UX 1 06-29-2010 10:44 AM
[BASH] xclock/xcalc/xterm...process question? Yakuzan Shell Programming and Scripting 3 03-05-2009 10:27 PM
Xclock and background gio001 Shell Programming and Scripting 2 03-05-2009 01:02 PM
xclock gets displayed only for "root" but not for another account rdbono UNIX for Dummies Questions & Answers 1 04-22-2006 09:54 PM



All times are GMT -4. The time now is 08:04 PM.