Remotely starting local X application?
November 16, 2007 9:16 PM
Subscribe
How do I restart an X Windows application running on a remote machine, and have it display on that computer's locally-attached display? (I
do not want to forward/tunnel it to the machine I'm sitting at.)
Two computers, foo and bar. Foo is a machine connected to a big display, but lacking any local controls (keyboard or mouse). Bar is a laptop. Foo normally runs an X Windows application, but sometimes this application crashes.
How can I, by connecting to foo from bar via SSH, restart an X app running on foo, and have it come back up on foo's display? All the resources I can find on the net deal with forwarding X connections so that I could display them remotely on bar (which I can do fine), but that's not what I want. I want to issue the command via SSH, but have the application display itself on the local display. (And once I get it running, I want to close down the SSH connection.)
I'm sure it has something to do with the DISPLAY variable, but I can't figure out what to set it as. (I've tried setting it to "localhost:0" and "127.0.0.1:0" as well as ":1" on both, but both give "can't open display" errors.)
It seems like this ought to be a lot easier than tunneling an X connection, but I'm stumped.
This is all using Knoppmyth, which is Debian/X11.org-based, with Bash.
posted by Kadin2048 to computers & internet (16 comments total)
posted by mkb at 9:22 PM on November 16, 2007