realbasic-nug
[Top] [All Lists]

Re: launching Linux apps remotely

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: launching Linux apps remotely
From: Mark Nutter <manutter51 at yahoo dot com>
Date: Fri, 31 Dec 2004 17:25:05 -0800 (PST)
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=L3Z8FF02J4PhxUQTsWgiU8onPAndts3XaZIYcIZ6+CkXDmDyqyA3qZ1CbRvpGfGvINvIgmAJOWZg/X9zA4hvFFlYEN4U4zs5TYHhCwTkePSMuS8YYq7hEN6Cq+4z2A+cN0wUethY/mjrmUD8rge7xyLeOJhNJPI0di5FcDeq5lY= ;
--- LMSpam at neuropop dot com wrote:

> not specifically an RB question...
> 
> I'd like to launch my app remotely from a secure
> shell, but when I type 
> ./myApp I get "Gtk-WARNING **: cannot open display"
> 
>   I don't need remote access to the GUI, I'd just
> like to be able to 
> launch it. Any way around this?

I'm guessing it's an X11 (XWindows) permission
problem.  Try logging in to your Linux console
directly (so that you "own" the :0 display), and then
do

    xhost +name

where "name" is the username you log in as via your
remote secure shell, or else the host name of the
remote system you're logging in from when you log in
remotely.  Use the "info xhost" command for more
detailed info.

This is from memory and from some quick testing on OS
X--I don't have access to my Linux box right now.  But
this should get you started on how to give yourself
permission to start apps.  You might try the xhost
command from your secure remote login, but I don't
think it will work, because the computer screen
belongs to whoever is actually sitting at the
keyboard, not to remote users.

You might need xhost +inet:name or xhost +nis:name or
xhost + krb:name, by the way--I'm not sure about the
prefixes because I don't do the remote login, I just
use xhost +local: (which is all I need).

Good luck.

Mark



                
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>