| ACADEMIC COMPUTING and COMMUNICATIONS CENTER | |||||||||
| ||||||||
Using Exceed X Server with Xhost Security | ||||||||
|
This document explains how to set up the Hummingbird Exceed X Server with Xhost security on your Windows personal computer and how to use it to display X-Windows programs on the ACCC's general purpose Unix server tigger. While the instructions in this document are specific for tigger, you can use the same sequence to use Exceed with icarus or other Unix machines. Please note that we very much do NOT recommend that you actually do this. If you have been -- or are thinking about -- setting X Windows up with Xhost "security", please reconsider. After you add any remote host name to your xhost.txt file, any account on that machine will be able to open an X-Windows window on your personal computer, read all the windows managed by your X Server, including those where you typed passwords, regardless of whether you can read the password on your screen, or change the X Server settings that are read by other clients. This really should scare you. Using Xhost security is questionable for tigger, and falls in the "why would you even consider doing such a thing?" category for icarus and the EECS machines. And there is a really good alternative: using X Windows with SSH X11 tunneling. Setting up and using X Windows with SSH X11 tunneling is a lot easier to set up than Xhost security and and it is also completely secure. (Including two-way authentication and encryption.) Please consider using SSH X11 tunneling rather than following the instructions in this document. |
||||||||
| ||||||||
| About Exceed | ||||||||
|
Exceed is an X Server program that you run on your Microsoft Windows personal computer. It provides the graphical features of an X Server for use with remote Unix machines. Generally speaking, there are two classes of Unix programs that benefit from using a X Windows display: number crunching programs which produce graphical output, such as SAS, SPSS, Octave (a MATLAB clone), and Maple; and utility programs such as ghostview (a PostScript document viewer), xrn (a newsreader),and info (online IBM manuals on tigger). Exceed is available at UIC on the Windows personal computers in the ACCC public labs, via ACCC Server Services, and may be purchased under a site license by UIC faculty and staff. |
||||||||
| Install and Configure Exceed on your PC | ||||||||
| Step 1: Install Exceed on your PC (do once) | ||||||||
|
Use the program installation media to install Exceed on your PC. |
||||||||
| Step 2: Configure Exceed for Passive mode and Multiple Windows (do once) | ||||||||
|
Exceed's passive mode allows you to start the X Server on your personal computer without it making any initial attempt to connect to a specific remote host. Set Exceed up to use Passive mode (Security).
|
||||||||
| Step 3: Configure Xhost Security (do once per Unix machine) | ||||||||
|
A bit of explanation is needed. When you use Exceed, your PC is the server and tigger is the client. (In most ACCC documentation, tigger is referred to as a server. But, for the purpose of running Exceed, tigger is a client.) See "The X Protocol" from X.Org at http://www.x.org/about_x.htm for a short description of how the X Window system works, including easy to follow pictures. What you are doing in this step is identifying which clients may display "stuff" on your server -- in other words, which clients may write to your screen. You will be configuring Exceed so that the tigger client may display information on your screen.
That completes the steps to install and configure Exceed. |
||||||||
| Configure Your Tigger Account to Use X Windows | ||||||||
|
Now, we move to configuring your tigger account to use your X Server (Exceed). This is done while logged into your tigger account. What you will do is tell tigger the location of the X Server, which is on your PC. You do this by setting the DISPLAY environmental variable to point to your X Server. |
||||||||
| Step 4: Determine the Name of Your X Server (do each time you switch from one personal computer to another) | ||||||||
|
You may identify the your X Server by your PC's Internet domain name or by its IP address. To find out what your PC's domain name is, logon to tigger from your PC and alter and run the following command: who -u | grep your_netid Replace the your_netid with your netid, which is your login id on tigger. The output of the command includes the name of the PC that you're connecting from. For example: who -u | grep adabyron adabyron pts/3 May 15 12:41 . 25630 abl.cc.uic.edu The last item in the response is the name of the machine your connecting from, which is also the name of your X Server. Don't know which shell you're using?To see which shell you are using, enter the command on tigger:
|
||||||||
| Step 5: Either: Set Your DISPLAY Variable Manually (do every time you use it) | ||||||||
|
If necessary, find out the name of your personal computer as described above, then depending on whether you're using Korn or Bourn shell or C shell, enter one of the following commands. (In the following, abl.cc.uic.edu is used as an example. Substitute your own machine name for it.)
Make sure to include the colon zero combination :0 after your machine name or IP address. |
||||||||
| Step 5: Or: Put the DISPLAY variable definition in your Unix Startup File (do once if you always use X Windows on the same personal computer) | ||||||||
|
X Windows requires a fast Internet connection, so most likely you'll be using it mostly from on campus. If you have one particular PC on campus that you'll usually use Exceed on, you can set your tigger account up to automatically contact the X Server on that machine. You do this by placing the above export or setenv command in your tigger startup file:
Note that, even if you set a default X Server by putting an export or setenv command in your startup file, you can override your default by entering the appropriate command as shown in Set Your DISPLAY Variable Manually after you log into tigger. |
||||||||
| Use X Windows | ||||||||
After you've (1) started your X Server and (2) run either the export or setenv command on tigger or another registered Unix machine (one in your xhost.txt file), an X-Windows window will automatically open whenever you start an X-Windows program on that machine. A good X-Windows program to test with when you first set Exceed up is xclock. |
||||||||
| Exceed X Server | Previous: Contents and Intro to X Windows | Next: Secure Access by You: SSH |
| 2004-5-25 ACCC Systems Staff |
|