Linux - NewbieThis 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.
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.
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.
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.
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.