Running a GUI App from a Remote SSH Terminal

Amichai Rotman amichai at iglu.org.il
Wed Jan 10 12:38:51 UTC 2007


Thanks!

On 1/10/07, Peter Garrett <peter.garrett at optusnet.com.au> wrote:
>
> On Wed, 10 Jan 2007 13:48:14 +0200
> "Amichai Rotman" <amichai at iglu.org.il> wrote:
>
> > Hi All,
> >
> > I am at work, connected through SSH and I would like to start Gaim for
> my
> > wife at home.
> >
> > What's the syntax to run it on Display:0?
>
> try
>
> sudo -u <wife's-username> gaim
>
> It should run as her user, thus the X server should be happy.
> If you know her password you could do
>
> su <wife's-username>
> <wife's password>
> gaim
>
> If neither of those work, try them with
>
> gaim --display :0    # note that this should only work in conjunction with
> the above
>
> If this succeeds, and you want to put gaim in the background, do
>
> bg
>
> To bring it back to the foreground,  fg  ( then you should be able to kill
> it with ctrl+c )
>
> To make sure it keeps running after you logout, background it then  do
>
> disown %1   # assuming this is the only background job, which you can
> check with the command "jobs"
> >
> > When trying to run just gaim, I get an error stating the display is
> > unset....
>
> Yes, currently :0 belongs to her :) So you have to "become" her either
> with sudo -u <her> <command>  or su <her>  and <her> pass followed by the
> command. ( "su" means "switch user" )
>
> One of these should work - I haven't tested here but I think I have it
> right ;-)
>
> Peter
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>



-- 
:====================================================:.

Amichai Rotman

UIN#: 6401746
Registered Linux User#: 201192 [http://counter.li.org/]

------------------------------------------------------------------------------------------------------------

PLEASE READ: http://www.gnu.org/philosophy/no-word-attachments.html

--

Protect your digital freedom and privacy, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm

-----------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070110/e7fa8fd7/attachment.html>


More information about the ubuntu-users mailing list