Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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 usually remotely connect to a client server to make adjustment via the CLI. Occasionally I have to login into the desktop to understand some issues that my customer are trying to explain via Vino-Server. I have notice that sometimes when I attempt to login via ssh, I sometimes can see that a user has not logged into the GUI desktop which means that I cannot login into the remote desktop session to resolve any issues via the GUI. My question is:
How can I remotely login via ssh and start a gnome or kde session for the user account that I am trying to resolve his or her issue? I hope I said that right?
Last edited by metallica1973; 11-21-2008 at 10:27 PM.
I think I got it. You want to make the client box do what it would do if the user was there typing his or her password into gdm, kdm or xdm, then start vino-server and connect to it, such that you can do stuff to the GUI.
It should be fairly straightforward.
- become root
- /etc/init.d/gdm start
- start a VNC server (vino, x11vnc) on the just created X instance
- connect with your favorite client and log in.
- start a VNC server in the logged-in user's session
- connect with your favorite client
- profit
Run programs in the X server by running root@client~$ DISPLAY=:0 xterm, replacing :0 with the name of the display you want to run on (ps -Fe | grep X should give a hint), and xterm with the command you want to run.
Alternatively, become the user and run startx. If they have a sucky X startup script, run gnome-session manually.
How can I remotely login via ssh and start a gnome or kde session for the user account that I am trying to resolve his or her issue? I hope I said that right?
There are some ideas for how to connect via VNC to the GDM/KDM login greeter here:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.