LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-07-2013, 02:21 PM   #1
thohogan
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
try to open xclock and get Error: Can't open display


I am using Moba xterm and when I try to open xclock, I get the error message "Error: Can't open display". the linux machine is unable to resolve my host name, so I tried using IP address instead, but I still get the same error.
 
Old 10-07-2013, 02:28 PM   #2
PECONET009
Member
 
Registered: Sep 2006
Posts: 101

Rep: Reputation: 11
Lightbulb Try this out..

Quote:
Originally Posted by thohogan View Post
I am using Moba xterm and when I try to open xclock, I get the error message "Error: Can't open display". the linux machine is unable to resolve my host name, so I tried using IP address instead, but I still get the same error.
"MobaXterm allows you to launch remote sessions. You just have to click on the "Sessions" button to start a new session."

More info here:
http://mobaxterm.mobatek.net/support/documentation.html
 
Old 10-07-2013, 05:01 PM   #3
thohogan
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
The issue for me was that this happened with a regular telnet session. When I connected with ssh, the xclock worked
 
Old 10-07-2013, 05:19 PM   #4
Stealth Bot
LQ Newbie
 
Registered: Sep 2013
Distribution: Slackware 14 | NetBSD 5.1
Posts: 11

Rep: Reputation: Disabled
Can you type this on your linux box to see the DISPLAY setting.

Code:
echo $DISPLAY
By default, $DISPLAY is configured to the display :0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Error: Can't open display" for xclock or gvim on kubuntu root shell konsole 1.6.6 TsanChung Linux - General 3 05-12-2012 02:48 AM
xclock Error: Can't open display: - after upgrading to openSSH 5.2p1 abrarpasha.syed Linux - General 3 01-03-2011 08:55 AM
[SOLVED] xclock Error: Can't open display: <unknown ip>:0.0 fareast87 Red Hat 4 12-30-2010 11:51 AM
error cant open display kartiksr Linux - Newbie 6 10-26-2010 09:35 AM
Could not open display error reyemarr Linux - General 14 12-06-2003 11:23 PM


All times are GMT -5. The time now is 08:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration