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.
Hi, i have the same problem, i can't open gedit.
I connect to CentOS server with Putty with enabled X11 forwarding.
I tried to use Cygwin X or Xming, didn't help.
In Putty i do:
- export DISPLAY='IP of local station:0.0'
- xhost+
But after that - error: cannot open display.
I installed all X packages (xorg-x11-xauth, xorg-x11-fonts-*, xorg-x11-utilsxorg, etc).
X11Forwarding options is 'Yes' in /etc/ssh/sshd_config on CentOS server.
In /etc/hosts:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
IP-address-of-server hostname
What is wrong? Help pls.
I looked in the Internet all advices to solve the issue, but nothing helped.
Have you installed an X server on your Windows machine? Which one?
Disclamer: I've never understood how to connect a remote client to X on a server. (or why one would want to)
Consider: Rather than using gedit, install WinSCP and SciTE on the Windows PC. WinSCP can open remote files into SciTE, which is an excellent text editor for scripting/programming.
For remote management SSH and a text editor as VIM is all you ever need. Works reliably over thousands of miles, even if there is slow internet connection somewhere in the way.
This is how it works. Your local box must accept incoming X connections, local X server must be listening on port 6000. The xhost command has to be run in local box, not remote. How it all works in Windows - I have no clue. I do not run Windows, never will.
I would imagine that the X on the server has something like "-nolisten tcp" which disables remote X services. Various Xephyr and Xdmx ways to get things going. Assuming linux to linux. Otherwise vnc, x2go, and other methods might prove simpler. If I'm fiddling with Xdmx or other things I drop the "-nolisten tcp" option so that ssh -X and stuff works. Not that I've done any remote X stuff in recent history.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.