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.
Or, is there some built-in browser to RHEL that I could run instead of Firefox? I don't believe i have any GUI's installed on this server, but not really sure how to confirm.
Assuming you're on Windows (hence PuTTY) get Xming (an Xserver) installed and running and enable X-forwarding in your PuTTY connection. Then when you run firefox it should run on the remote host but travel through the SSH to use your screen/keyboard/mouse.
This could be an issue with DISPLAY variable, so in any case if above suggested solutions do not help, then check and set the DISPLAY variable first. To check:
By default, Putty should have configured $DISPLAY for you.
Make sure X11 forwarding is enabled in putty (Connection....SSH....X11), also X11 forwarding is enabled on the server for sshd (sshd_config --> "X11Forwarding yes"), and X server running on Windows to throw display.
Alternatively, what I prefer is starting a vnc server on remote machine, and accessing using vnc client. That saves lost connection problems as well as time.
By default, Putty should have configured $DISPLAY for you.
Make sure X11 forwarding is enabled in putty (Connection....SSH....X11), also X11 forwarding is enabled on the server for sshd (sshd_config --> "X11Forwarding yes"), and X server running on Windows to throw display.
Putty doesn't set any variables on the server; the ssh server does. And not by default, only if the client (putty) has specified to use an X tunnel. If the value of $DISPLAY gets set to 'localhost:n', where 'n' is some low valued integer, then the tunnel has been successfully set up. The tunnel will only be helpful if there is an X server running on the Windows host. Xming or cygwin-X are free and adequate for most things.
$DISPLAY tells all X client applications where to find an X server. If that variable is not set, the application will not run (Error: no display specified). If it is set, it must be of the form 'hostname:n', where 'n' is the server number on that host, typically 0. In a tunneled X scenario, the hostname will be 'localhost', and the server number will be some low integer value. If you are logging in from Windows, you will have to have an X server running on the Windows host. The X client applications will use that X server to display the GUI of the X application on your Windows host (even though the application is running on the Linux host that you're logged into with SSH (Putty).
As someone has already mentioned, text-mode web browsers may be an option. As non-X applications, they don't need an X server, or care about $DISPLAY.
Actually I meant the same when I said Putty would have set $DISPLAY for you, I meant ssh through putty causing ssh server to set it. (provided X tunnel is set in putty)
But thanks for clarifying the same as the way I have written is sounding quite wrong (technically).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.