Re: x-term to open an application problems
Re: x-term to open an application problems
- Subject: Re: x-term to open an application problems
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 20 Oct 2005 10:32:04 -0400
On 10/20/05,
email@hidden <
email@hidden> wrote:
Hi,
I was wondering of any configuration that need to be
done to x11 in order to open an application from a UNIX server that
cannot use SSH only telnet.
Yes. You need to configure the UNIX server to accept SSH. :)
If that's not an option, you may be able to use non-tunnelled X11
between it and your Mac; it depends on what's in the way of SSH.
If there's a firewall or other network control in place, it's likely
that the UNIX server won't be able to connect to your X display
either. But here's how to do it, assuming (1) the name of the
UNIX server is "unixsvr" and (2) the name of your Mac *as seen by the
Unix server* is "mymac". It's important that your Mac be
registered so that other hosts can look it up and connect to it.
This is the key command on the Mac side:
MyMac$ xhost +unixsvr
unixsvr added to control list
It allows the UNIX host to connect directly to the X11 server. Once you've logged into the UNIX server:
MyMac$ telnet unixsvr
Trying 10.20.30.4...
Connected to unixsvr
Escape character is '^]'.
login: mylogin
Password:
Last login: ...
Welcome to UNIX!
...you need to set your DISPLAY environment variable on the UNIX
server side. How to do this depends on what shell you're
using. ksh/bash ($ prompt):
export DISPLAY=mymac:0
csh/tcsh (% prompt):
setenv DISPLAY mymac:0
If you don't know what your Mac's name is as seen from the UNIX side,
you can try running the command "who", which should show you:
$ who
...
mylogin
ttyp5
Today (mymac)
The name at the end in parentheses is how the UNIX box sees your Mac
over the network. Make the first part of your DISPLAY variable
(before the colon) match that.
Then try running something to see if it worked. xdpyinfo is a
good bet since you don't have to wait for any windows to pop up, it
just works or it doesn't. :)
On Windows, I use Hummingbirds' exceed and
use and X Client wizard. The equivalent I have tried on my mac is to
simply open xterm and telnet to the server then type the command of the
application, however, i recieve the message Warning: cannot open
display, and of course the application does not open.
thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (
--
Mark J. Reed <
email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden