Re: Lots more questions...
Re: Lots more questions...
- Subject: Re: Lots more questions...
- From: Randy Ford <email@hidden>
- Date: Fri, 24 Jan 2003 15:02:50 -0600
On Friday, January 24, 2003, at 03:26 PM, Tony Grant wrote:
What is the magic word for "start x and connect to the X server on my
Redhat box"? I should be able to connect to the X server on my Redhat 8
Vaio and use apps there.
By "X server on my Redhat box" are you just wanting to display X
applications on your Mac that are running on your Redhat box, or are
you wanting your Redhat desktop (windows manager) to display on your
Mac box with Redhat's icons, ...?
In X world, the server is an application running on the machine with
the display (Mac in this case). Client apps (on Mac or Redhat here)
can connect to the server to have it display them. "Client" and
"Server" in the X (and generally in the Unix) world refers to software,
not to boxes. Likely, neither your Redhat box nor your Mac box is more
of a "server" then the other. You can ftp from a shell on one box to
an ftp server (ftpd) on any other box, or even on the same box. The X
server provides display, keyboard events, mouse events, etc. to client
applications. That's just like a print server provides printing
services to clients. The hardware doesn't determine whether something
is a server or a client. The key is that a client connects to a server
to have it provide some service.
There is also a windows manager that controls placement of windows,
icon, decorations (borders, minimize/maximize buttons, resize, etc.)
Quartz-wm is the windows manager that Apple is shipping for OS X in the
beta. Most often the windows manager runs on the same machine as the X
server, but it can run on a different one. However, if you run it on
the Redhat box, you will not get interactions between the Macs desktop
and the X manager, such as cut and paste. Since the windows manager
has so many interactions with the X server, there is a performance
penalty for running it on a different box.
I believe that you are probably asking about how to have X apps
(clients) on your Redhat box connect to (and be displayed on) the X
server on your Mac. If that's the case, first try logging into the
Redhat box and try to launch an app and have it connect to the Mac X
server. Do this by telling the app where it is to display. This may
be done by setting the "DISPLAY" environment variable before launching
the app, or on the command line. In a terminal on the Redhat machine,
set DISPLAY=MacMachineName:0.0 . For "MacMachineName," You can use
either the name that your Redhat box knows your Mac by (/etc/hosts or
DNS) or the ip address of the Mac. This will cause all future apps
launched from that shell to connect to the Mac by default. Then launch
an X app, such as xterm:
From a bash or sh shell:
DISPLAY=MacMachineName:0.0
export DISPLAY
xterm&
Alternatively, you can override the DISPLAY variable for just one
command. Use either
xterm -DISPLAY MacMachineName:0.0
or
DISPLAY=MacMachineName:0.0 xterm&
After you have the Redhat xterm displaying on your Mac, you can launch
other apps from it and they will default to displaying on your Mac.
Get this working before trying to go farther. It will ensure that you
don't have security problems, name resolution problems, etc.
Next do the same thing but by connecting to your Redhat box from a
terminal running on your Mac box. Launch an xterm or Terminal.app, or
whatever terminal you use on your Mac. The ssh to the Redhat box. Set
your DISPLAY, or use command line options to display a new xterm from
your Redhat box to the X server on your Mac. This is likely how you
will work in the future. There's no need to go to the Redhat box to
launch a terminal to your Mac; we just did that to ease troubleshooting.
The next part may be the hardest for some: determine how to launch all
of the apps that you want form the Redhat box. Since you may be used
to launching them from icons or menus on your Redhat box, you may have
to do some research to see how to launch them from the command line.
Once you know that, you can manually launch them from ssh, or make
other shortcut ways to launch them.
randy.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.