LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   starting graphic apps from ssh (http://www.linuxquestions.org/questions/linux-software-2/starting-graphic-apps-from-ssh-366191/)

xymian 09-23-2005 04:25 AM

starting graphic apps from ssh
 
Hi,
I can't remember how to do this.... If I use ssh to access my server, how can I start a graphic app? It dies because it doesn't know what display to use. I remember doing this once ages ago and think maybe xhost and/or DISPLAY is involved but can't remember and, so far, can't find the information on the net.

Any help is appreciated.

Craig

phil.d.g 09-23-2005 04:44 AM

On the host make sure X11Forwarding is set to yes in sshd_config, when you connect from the client make sure you have an X server running and supply an "-X" arguement to your ssh command

xymian 09-23-2005 05:00 AM

Thanks for the reply, but I guess I wasn't clear. I don't want to display the app on the client. I just want to start it up and have it run (and display) on the server.

I have a problem with one app that sometimes crashes itself. When I am logged in via ssh I can see if it is up or down. If it is down, I want to restart it, but I don't need to display it locally.


All times are GMT -5. The time now is 01:42 AM.