View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#74
Originally Posted by Johnx View Post
@qole: At some point you need to "export DISPLAY=:0" or the application won't know where to find the x server. Or try this:
ssh root@localhost 'debian DISPLAY=:0 epiphany'
Your idea is sound, your syntax is not. If I create a script in my chroot (called, in this case, "hepiphany" for "hildon epiphany") with two lines,
Code:
export DISPLAY=:0
epiphany
This works as one long command:
Code:
ssh root@localhost 'debian hepiphany'
If I make the last line of my "debian" script say:
Code:
chroot /opt $1 $2 $3
I can do this, and it returns no errors, it just doesn't do anything.

Code:
ssh root@localhost 'debian /bin/bash -c "DISPLAY=:0 epiphany"'
EDIT: Ok, I figured a hackish way to do it. I created a script in my chroot called "hilda" that looks like this:

Code:
export DISPLAY=:0
exec $1 $2 $3
Now I can do the following, and it works:

Code:
ssh root@localhost 'debian hilda epiphany'
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2008-05-15 at 00:48. Reason: Got it working