On 07-Feb-08 18:42:26, Barry Samuels wrote:
If I SSH into a remote machine and then su to another user how can I run programmes, as that user, under X without it complaining that it can't open the display?
I want to run an application as the 'mythtv' user which is created when installing MythTV.
-- Barry Samuels
Your problem may be that after you su, you do not have the DISPLAY environment variable in the new user's environment.
So in that case, if the machine you've logged in from is called say "whatsit" (and is known as such in the remote machine's /etc/hosts file), then after you have su'd enter the command
export DISPLAY=whatsit:0.0
However, I have encountered some strange behaviour with X connections after logging in via ssh which I've never properly understood (as opposed to logging in via telnet), so maybe this is not the solution.
But I hope it is!
Best wishes, Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 07-Feb-08 Time: 19:28:03 ------------------------------ XFMail ------------------------------