@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'
export DISPLAY=:0 epiphany
ssh root@localhost 'debian hepiphany'
chroot /opt $1 $2 $3
ssh root@localhost 'debian /bin/bash -c "DISPLAY=:0 epiphany"'
export DISPLAY=:0 exec $1 $2 $3
ssh root@localhost 'debian hilda epiphany'