LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-23-2016, 12:04 PM   #1
Uzer40239028
LQ Newbie
 
Registered: Jan 2016
Posts: 14

Rep: Reputation: Disabled
Keep getting 'can't open display' for whatever remote client i try


I kept getting that message on the tinycore command line. I tried with tight vnc and rdesktop.

I have installed the xstart thing and now the core install loads into the desktop by default. As a side note how do I stop that? I want x for rdp etc but i still want to boot into core and load X only as needed.

Anyhow I was reading an article which said:

If you have problems the first thing to do is to see the value of the variable DISPLAY on the client. If it is not set at all or set incorrectly you need to fix that, for example

export DISPLAY=10.10.10.1:0.0

So I put that line into the command line. Then I tried the clients again. Now it seems to hang for like two mins on the pressing of return but eventually it just returned: ERROR: Failed to open display: 10.10.10.1:0.0

What should I do now?

btw I'm trying to connect to windows 8.1. I initially tried with rdp/rdesktop but tightvnc is looking more appealing to me now.
 
Old 01-24-2016, 02:11 AM   #2
mdooligan
Member
 
Registered: Feb 2009
Location: Vancouver BC
Distribution: Mandrake10/ArchHackery/Gentoo
Posts: 179

Rep: Reputation: 22
I believe you are speaking of X11 Forwarding.

There's a command called xhost that's controls which hosts are allowed to connect to your server. Have a quick read.

And when you want to connect to a server you need to set your DISPLAY environment variable correctly.

For example, when I ssh into my other box, and type

echo $DISPLAY

it tells me

localhost:11.0

Now the Xwindows server running on that box is 0.0, so 11.0 must be a connection to another server, namely the one running on the box I'm sitting at.

When I first set it up I had to tell it the ip address to use, so I ssh in to the other box and typed

export DISPLAY=192.168.1.66:0

and then ran an X program from that box. It appeared on my monitor and worked. Then I guess it remembered and I never had to do it again.

I'm sure someone can give you a more technical explanation, but I hope this gets you started.
 
Old 01-24-2016, 06:58 AM   #3
Uzer40239028
LQ Newbie
 
Registered: Jan 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mdooligan View Post
I believexplanation, but I hope this gets you started.
Thanks for response. This is trying my patience now.

I try and connect via rdesktop gui and get: Error: connect: Network is unreachable.

I try in to use both the public ip address and the local one that shows in ip config.

I tried putting: DISPLAY=myactualipofserver:1 and also DISPLAY=myactualipofserver:5901

All that did was change the can't open display to the ip I changed it to. Am I supposed to be putting the ip of the server I'm trying to connect to? which is what I did above?

I also tried xvhost + and that did nothing.

What to try next?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote X Server Can't Open Display markjuggles Linux - General 6 07-28-2017 04:36 PM
Not able to open display of remote server if client is user and server is root unclesamcrazy Linux - Newbie 16 07-22-2013 01:08 PM
How to display an X client on a remote machine premkarat Linux - Server 6 08-19-2009 12:42 AM
xterm -display remote:0.0 Can't open display - xterm from tru64 to debian 3.1 loopy69 Linux - Software 2 04-01-2008 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:07 AM.

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
Open Source Consulting | Domain Registration