Thanks! Starting to get a feel for how some of this works.
Between the two responses I got I was abe to figure out what to do in my
situation.
To make things easier I built a cheap and dirty script that did the display
variable setting and launch the program.
BTW where is the xhost stuff stored? I have not rebooted yet will my addition of
the local ip to the allowed access list survive a reboot?
Thanks again.
Bret
Ford Prefect wrote:
> On Sat, 3 Apr 1999, Bret Hughes wrote:
>
> > I need to be able to launch a java program in X on a remote machine and
> > have it display on the console of that remote machine. I am gaining
> > experience in Linux but as far as X goes I still still have to think
> > about the apparent (to me at least) reversal of the client server roles
> > in X terminalogy every time someone says start the server so please go
> > easy on me.
> > I would also like to be able to start this same program up at boot time
> > and have it display on the console but for right now if I can start it
> > remotely I will be a happy camper. I have tried a few guesses like
> > telneting into the remote machine and running the program with:
> > jre progname -display remotehostname 0:0
> > jre progname -display remotehostname:0.0
> > Each time I get a message on the local machine from Xlib: telling me the
> > connection is refused and that I do not have authorization to connect to
> > server Then Java gets mad and tells me I can't connect to the server
> > using the localhostname :0.0 as the value of the display variable.
>
> Try (on the remote machine)
>
> export DISPLAY=:0.0 (if running bash, setenv DISPLAY :0.0 for csh/tcsh)
> xhost +localhost
> jre progname -display :0.0
>
> That should do it. If xhost tells you that you have no authority to connect
> to :0.0, then you'll have to open a terminal on that X desktop and do the
> xhost line from there (Which sorta defeats the purpose of doing the whole
> thing, since you'd do it from the head if you could I'm sure). Usually this
> is because you're not the same user as the one who 'owns' the console
> (/dev/tty0) at the time - if you have to, su to that user and run the command.
>
> If this still doesn't work, try xhost +remote_machines_name. Worst case
> scenario would be xhost +, which turns off permissions entirely (Any machine
> that can see that machine could then write to the X display).
>
> ---
> Steve Huston - New Jersey, USA
> Rowan University Comp Sci Major - Student Technician Supervisor
> PGP Public keys:
> DSS/DH 0x0A529FF8 fp: C38F 274B F2A8 CE5A 60A5 A8E9 C7B9 AEDD 0A52 9FF8
> RSA 0xC373028D fp: ADE0 854D 753E EB53 9DFA 5F04 8283 CC99
>
> "And no one sings me lullabies,
> and no one makes me close my eyes;
> And so I throw the windows wide
> and call to you across the sky" --Pink Floyd, "Echoes"
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]