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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-14-2012, 05:32 AM
|
#1
|
LQ Newbie
Registered: Jul 2012
Posts: 1
Rep:
|
Display not set
Going round in circles.
I'm trying to get Xming working but nothing is happening when I try and start an xterm using Xlaunch. I've also tried using plink directly: -
plink -ssh -X me@666.666.666.666 xterm
but I get
xterm Xt error: Can't open display:
xterm: DISPLAY is not set
my sshd_config has as required
X11Forwarding yes
I can SSH into the server no problem using putty.
Xming troubleshooting tells me DISPLAY should be set.
I'm confused and don't really know where to look next. It feels likes I'm going round in circles.
Any help appreciated.
|
|
|
07-15-2012, 04:00 PM
|
#2
|
Member
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825
Rep:
|
You could install a virtual machine instead of trying to setup xming. Then use that VM to interact with your server.
As for the current problem, be sure the sshd config on the server all X11 redirection.
|
|
|
07-20-2012, 11:43 AM
|
#3
|
LQ Newbie
Registered: Jul 2012
Posts: 1
Rep:
|
You need to set the DISPLAY on your remote server:
> DISPLAY=<your local ip>:0.0; export DISPLAY
Using Xming's XLaunch you can check "No Access Control", but this is not recommended. This will allow connections from any outside server. Safer solution is to add the IP of your remote server to the X0.hosts file. By default, Xming only allows connections only from localhost when access control is on. You can find the X0.hosts file where you installed Xming.
Ex: C:\Progam Files\Xming\X0.hosts
Good Luck!
John
|
|
|
07-20-2012, 12:42 PM
|
#4
|
LQ Newbie
Registered: Dec 2011
Posts: 1
Rep:
|
Hello Karita,
You may try MobaXterm : it is a single executable with no setup required, there is no need to configure anything, you just start it and you have a cool SSH client with a full X11 server correctly configured.
- Download and run MobaXterm
- In MobaXterm terminal, just type your ssh command
e.g. ssh root@myserver
- type xclock
It's just that simple: your xclock application will be displayed on your local computer. No need to change your DISPLAY environment variable, MobaXterm will handle this for you.
I hope this helps!
|
|
|
07-20-2012, 12:53 PM
|
#5
|
Member
Registered: Jul 2007
Location: Germany
Distribution: Debian
Posts: 45
Rep:
|
Quote:
Originally Posted by cool_bub
You need to set the DISPLAY on your remote server:
> DISPLAY=<your local ip>:0.0; export DISPLAY
Using Xming's XLaunch you can check "No Access Control", but this is not recommended. This will allow connections from any outside server. Safer solution is to add the IP of your remote server to the X0.hosts file. By default, Xming only allows connections only from localhost when access control is on. You can find the X0.hosts file where you installed Xming.
Ex: C:\Progam Files\Xming\X0.hosts
Good Luck!
John
|
And if you don't want to do that for some reason, you can provide the DISPLAY setting with the ssh command line:
ssh -X user@targetmachine DISPLAY=clientmachine:0.0 xterm
... or the like.
|
|
|
All times are GMT -5. The time now is 09:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|