![]() | ![]() | ![]() | ![]() |
|
faq search add article cool-stuff how-to main tips |
Posted by Santhosh Joseph on Monday June 17, @02:45AMfrom the dept. The X window system (or X) is a networking window system that provides a base set of communication protocols for building graphical interface clients for computers. X was designed from ground up to support networking graphics. Programs or applications under X are known as clients. We would use this network capability of X to access the Applications on the Linux machine on the LAN and have the output displayed on the FreeBSD machine. I have the following setup on my LAN : 1. Athlon XP
2. Celeron
3. Duron
LAN : 100MBps full-duplex on switch. Lets assume that we want to access Netscape from 10.0.0.2 and Mozilla from 10.0.0.3 and have both displayed on 10.0.0.1 The xhost program is used to add and delete host names or user names to the list allowed to make connections to the X server. The term "X server" can be confusing here. To make things easy, lets consider the above example. Since we want the output to be displayed on the FreeBSD machine, we need X window to be running on the FreeBSD Box, and hence the X server runs on the FreeBSD box ! The Clients in this case will be the applications we would access from the other two machines (10.0.0.2 and 10.0.0.3). First lets permit the two Linux machines to output their displays on
the BSD Box.
bash-2.05a$ xhost + 10.0.0.2
bash-2.05a$ xhost + 10.0.0.3
bash-2.05a$ ssh -l bsder 10.0.0.2
On successful login, you'll get a similar prompt Last login: Sun Jun 16 22:35:05 2002 from 10.0.0.1
The next step is to configure the DISPLAY environment variable on both Redhat and Mandrake system from which the client applications are requested. [bsder@ws-2 bsder]$ export DISPLAY=10.0.0.1:0.0
The configuration for Mandrake Box is as follows : bash-2.05a$ ssh -l cintrix1 10.0.0.2
Now you are all ready to access X clients from both the machines [bsder@ws-2 bsder]$ netscape &
[cintrix1@cintrix3 cintrix1]$ mozilla &
and lo ! you can access both Linux Boxes without having to leave your FreeBSD Machine all the while not having your linux users to spare you the machine :-) . You can also aceess the X clients through the internet ! Also, note that the same could be applied in any combination, ie. you can get the X Cilent of FreeBSD on your Linux Box. So where's the catch ? Well, you'll need a high bandwidth network and
the Linux machines should be capable of taking the additional load.
< | >
|
|
||||||||||||||||||
|
||||||||||||||||||||
| "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate |
|
| All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann. |