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.
I have root SSH to a server running Debian distro and I currently have a SSH to it. Now I learned about the program wine and the possibilities of wine....Right now I am pretty new to SSH and can run basic programs..
I was wondering what is the easiest way to start up a GUI and get remote connection to be able to run GUI programs.
First, if you have root ssh to a system, you have a very broken configuration. Fix that problem. You should not be able to log into a system remotely as root.
Second, there's no need to "start a GUI" to run GUI applications remotely. Simply 'ssh -X' to forward X applications, and run your application. The GUI will be displayed on your local machine.
OK so now I got this working and it logs in just like it usually does....How do I get a GUI program to run in this.
Just type the command to the program in question. Let's say you want to edit the file foo.bar in your home directory, you would type:
Code:
gedit foo.bar[ENTER]
Wait a few seconds, and the Gnome editor should open on your remote workstation with the text of the file foo.bar.
As for the matter of root access on an ssh connection, that's not the way it should be done. Remote access should be given parimoniously and only regular users should have access. Access to the remote prompt should be firewalled so you can only login from specific ranges of addresses such as your private LAN. Once your trusted user is in, then he/she can use either 'su -' or 'sudo' to do whatever black magic they need to do on your system. This is not Windows.. in *nix, the system is designed to be run as a normal user as a matter of course.
When using ssh -X, the display variable should be set automatically by the system. What are your source (local) and destination (remote) operating systems and versions?
What I use to connect to it is putty that is basically all I know about remote shell.
I take your use of putty to mean that you're running on a Windows client. If that is true, you need to install an X server on Windows. Cygwin is a nice option. Otherwise, tunneling VNC through an SSH tunnel works well and there are a couple of good VNC clients for Windows out there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.