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.
On Vista Machine cmd prompt
Putty/SSH into linux box
root@james-desktop:/home/james# gedit
cannot open display:
Run 'gedit --help' to see a full list of available command line options.
root@james-desktop:/home/james# DISPLAY=:0.0 gedit
root@james-desktop:/home/james# DISPLAY=:0.0 gedit &
[2] 6846
root@james-desktop:/home/james#
So from above: Gedit cant open DISPLAY and fails
Setting DISPLAY to :0.0 and executing gedit gives no failure msg but doesn't open GEDIT on the Vista Screen
Adding a trailing Ampersand gives [2] 6846 and still fails to open Gedit on the vista screen
What command would I need to execute to discover if I have X11 forwarding?
And can I execute the command from a Vista laptop across a putty ssh or do I need to travel to the linux box to execute?
Thank you for your rapid response
You want X11Forwarding yes. Edit the file as root, add the option, and then restart the ssh server.
/etc/init.d/sshd restart
It is a good idea to have a couple of ssh connections to the server, so that if you make a mistake in the sshd_config file, you aren't locked out of the server.
Do you have an X server running on the Vista machine? 'Cos you'll need one if you want to run graphical programs like gedit over ssh.
You could of course just use a non-graphical interface editor. If you're only used to GUI editors then pico is possibly the easiest non-graphical interface text editor to pick up and use. Certainly easier than vi or emacs, though not as powerful as either.
Here is the content of /etc/ssh/ssh_config
I am unfamiliar with X Syntax but I see # symbols to the right of all entries. Some apps use that as a comment. Second line comes close to your X11forwarding yes
Do I need to edit that line to delete the # and change the No to Yes? if so what other changes do I need to make?
Host *
# ForwardAgent no
# ForwardX11 no
# ForwardX11Trusted yes
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# GSSAPIAuthentication no
# GSSAPIDelegateCredentials no
# GSSAPIKeyExchange no
# GSSAPITrustDNS no
# BatchMode no
# CheckHostIP yes
# AddressFamily any
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
Installed Cygwin on my Vista Laptop
I have two windows open 1 Putty 2 cygwin
Cygwin window can't find Gedit
putty can't open display
at the SSH windows
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.