Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Quick question: If I'm SSH into a machine that has X running, how do I issue commands on the SSH session to launch programs in the current X display?
For example, I just upgraded GAIM, but before I upgraded it I closed the program. Now I'm trying to launch gaim again, only I'm SSHed in from work. I thought I could do like "gaim 0:0" and that would launch it on the "0" display, but that isn't right. I know VNCing in would be easier, but this is just something I think I should know!!!
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
export DISPLAY=localhost:0
followed by gaim.
If you have a running X server at the ssh client end, you can run gaim ( and what not ) on the ssh server side and see the display on the ssh client end. I configure kernels ( make xconfig ) and compile my kernels at work so that when I go home, it's all good to go. in this case you dont have to worry about setting the DISPLAY env variable since ssh can take care of it automatically. Just enable X11 forwarding on the SSH server and client configs.
Thank you both for your replies; that worked great for me. I'm still having problems launching x0rfbserver remotely (it normally popsup a menu asking for input), so I posted on the Software forum hoping for a helpful reply. I have found a few switches for the command, but there is no documentation for them. I will try them later. Thanks again!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.