About these pages

X-terminal (and other Unix access) on PC

New recipe

Now that Telnet access to lxplus is no longer allowed, my recipe is to first install PuTTY and Exceed.  Then when you want to run X-Windows programs:  

  1. Start Exceed Server (the icon simply labelled "Exceed" in the Start Menu)
  2. Start a session with PuTTY
  3. Launch further X-Windows clients by typing commands like 
        xterm & 
    either in the PuTTY windows or a further xterm window.

These windows will be managed by Microsoft Windows and will behave like all the other windows on your screen (so you don't have to figure out which is the right way to resize this  particular window ...).  I prefer it to having the Exceed window the size of the screen running a different window manager inside it (what you get from the CERN Settings/Lxplus thing).  

You need to enable SSH tunnelling in PuTTY.  This seems to be the default, otherwise select Connection->SSH->Tunnels on startup of PUTTY and select  Enable X11 forwarding like this:


 

To speed things up, it helps to set up a standard session in PuTTY:

and copy the Windows shortcut to PuTTY and modify it to load your favourite session directly:

 

The old recipe (when telnet access was allowed)

See also Quick Access to a Unix Session.

08-Feb-05 The following notes are no longer very relevant now that I can use Exceed V7.0 properly to effectively make Windows 2000 into the Unix/Linux window manager.  Forget about FVWM2, Gnome, KDE and all the other clutter.

I long ago abandoned my physical X-terminal since I can get the full functionality and a lot more on my PC with its large screen using Exceed Version 6 (from the Nice Start Menu/More Applications).

Advantages I've noticed are:

Disadvantages I've noticed are:

  1. Conflicts for certain key combinations, e.g Alt-F4 in an X-window offers to quit the X-session instead of just closing the window (in HP-Vue).  But these seem really minor.
There are a few little things worth noting about the setup:

Defining connections

To create a connection for a non-default machine (like slap or hpslap03), create a plain text file (e.g. with Notepad) containing something like
[Xsession]
Desc=
Interval=2
Count=0
RunXServ=1
[Server]
Window=1
Startup=2
ReStart=1
Host=slap
and save it with the extension .ses (e.g. as slap.ses).  Convenient locations are the Windows Desktop or somewhere in my personal Start Menu.      This is just a copy of the default rsplus.ses with the name of the computer changed.
Then, if Exceed 6 has been installed for the user (e.g. by having been started once), all you have to do is Open or double-click on this file's icon to start an X-terminal session.  This seems to be quicker than starting a real X-terminal.
You can define several X sessions this way.  Here is a picture of one of the folders in my Start Menu with three favourite X-terminal sessions.  There are also a couple of Internet shortcuts (for Netscape) and a Windows shortcut to my AFS home directory.
 

Back to Windows

To get back to Windows from the full-screen X environment:
  1. right-click the Exceed button on the Windows task-bar
  2. choose Minimize.
You can also bring an individual Windows task in front of the X stuff by clicking its button on the task bar (or the other standard ways like Alt-Tab, etc.).
 

Clipboard for Text

You can copy back and forth between the Windows clipboard and the X-selection:
  1. Right-click the Exceed button on the Windows task-bar
  2. Choose Tools/Configuration ...
  3. Double-click X-selection
  4. My settings then look like this:

  5. Then you can copy text from Windows applications to X-windows and vice versa.

Clipboard for Graphics

To copy a screen image from X to Windows,
  1. Right-click the Exceed button on the Windows task-bar
  2. Choose Edit
  3. Choose Copy Rectangle (or Copy All)
  4. Use the mouse to select a rectangle on the X terminal display
  5. Paste into any Windows application that takes graphics
Of course, you can't go the other way.
 

Starting other X windows

Sometimes you want to launch other windows from an application on another Unix host than the one you logged into via Exceed.    Access control has to be done in Exceed.
  1. Make sure that the terminal window has the right value for DISPLAY (do SET DISPLAY xxxxxx:0 where this is your PC's screen name as used by Exceed).
  2. Right-click the Exceed button on the Windows task-bar
  3. Choose Tools/Configuration ...
  4. Double-click Security  to see something like
  5. Click Edit to edit your xhost.txt file (or disable access control altogether by checking the third check item).

Mathematica Front End on Unix

At first I did not seem to have the proper fonts when I used the Mathematica Front End on Unix.  The remedy is also simple and described in the documentation from IT.

3/5/2004This is something that seems to come back every time they upgrade Exceed.  Here is my summary of how to fix the problem:

JMJ
Latest modification: Tuesday, 08 February, 2005 13:58:46