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: Itai Seggev <email@hidden>
- Date: Thu, 20 Oct 2005 11:42:22 -0700
This is all well and good, except that tcp connections are disabled by
default (at least on Tiger). To turn this on, you need to
issue the following command (when X11 is _not_ running)
defaults write com.apple.x11 nolisten_tcp 0
Also, the port for X connections is 6000 (IIRC), so you if you're
behind a firewall or router you will need to "forward" port 6000 to
your Mac. Look at your router documentation for how to do this.
On Thu, Oct 20, 2005 at 10:32:04AM -0400, Mark J. Reed wrote:
> 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 (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
> >
> >
>
>
> --
> 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
--
Itai
Itai Seggev, University of Mississippi, Department of Physics and Astronomy
In 1997 a group of programmers started writing a desktop environment
to fix a travesty they didn't create. Their program promptly found
its way onto un*x systems everywhere. Today, still opposed by a
software monopolist, they survive as soldiers of fortune. If you share
their vision, if you know you can help, and if you can connect to
internet, maybe you can join... the K-Team.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden