Configuration of XWindow Terminals

Basic Configuration

An Xwindow terminal server containing a SSH tunneling modul (like “StarNetSSH” of XWin32 or “ConnectivitySSH” of Exceed) starts during SSH login process a program to create a primary Xwindow. This programm called “xterm” must be found in the search path during login process. Unfortunately xterm is located at different places within the filesystem of the remote host and search path is often uncomplete during login process. Furthermore not all UNIX or Linux systems uses exactly the same font set. Thus GWDG creates a script usable at all login servers to call “xterm” with some standard options to create a usable window (concerning font, color, size etc.). This script is called by typing in:
/gwdg/bin/gwdterm

Further XWindows

Call of gwdterm (or xterm with additional parameters!) followed by an ampersand character “&” at command-line of your primary window results in a further terminal window as follows:
gwdterm &
or
xterm parameters &
Please consider that all windows and processes end if you are loged out unless process is started by a “nohup” command-line, like:
nohup process_call &
Screen messages (standard and error messages) are written into a file named “nohup.out” by default. Of course it is possible to redirect output into your own output files, e.g.:
nohup process_call 2> error_output.txt > standard_output.txt &

Further Configurations

If script “gwdterm” is not available a direct call of xterm can be done as shown in the following example:
xterm -sb -ls -cr Black -ms Black -sl 20000 -bg LightBlue1 -fg black -fn 9x15bold -name kmuster@u115 -e “UNIX command”
All parameters in spite of -ls are optional (and could be omitted) but useful. They define the following features:
-sb creats scroll bar on the left side of window which is movable if middle mouse key is pressed and scrolls content of the window up or down. This can also be done by combination of “Shift” and “PageUp” or “PageDn” cap resp.
-ls creates a login shell which is essential for correct use of XWindow.
-cr Black specifies color of keyboard cursor.
-ms Black specifies color of mouse cursor.
-fg black controls window background color
The parameter above are defined in gwdterm script by default.
-sl 20000 specifies lines of X window buffer size default in gwdterm is 5000 which might be a little bit too small sometimes.
-bg LightBlue1 controls window background color.
-fn 9x15bold sets font to a better readable font size than default of gwdtwerm script does.
Original font sets can be defined as follows (pay attention to quotation of font name!):
-fn '-adobe-*-*-r-*-*-17-*-100-*-*-*-*-*'
For listing of available fonts see below.
-name kmuster@u115 specifies the name of the window task at your task bar (if not overriden by an application software). This will be very comfortable in handling several logins to different hosts as different user (and/or privileges). Default of gwdterm is name of host only.
-e “UNIX command executes a command instantaneous after creation of Xwindow. This can be useful in running a window for one command only (e.g. top, htop).
All parameters can be set additionally to gwdterm and override its defaults, e.g.:
gwdterm -fn 9x15bold set a new font definition instead of default one of gwdterm script.

Colors

An overview of all available colors is given here. Parameters of colors are:
-fg color foreground color (of characters)
-bg color background color of window
-ms color color of mouse cursor (= character background color will be inverted)
-cr color color of text cursor

Fonts

You will get an overview at “gwdu60.gwdg.de” (operating system is FreeBSD a flavour of UNIX) or “gwdu19.gwdg.de” (operating system is Linux) calling xlsfonts at command prompt. This program lists more over 5000 available fonts incl. Cyrillic etc. Do you need a font with bigger characters than 9x15bold (e.g. you have a notebook with relatively small screen but very fine resolution) you can search for it by typing:
xlsfonts | grep -E ^'[0-9,a-z]' | more
ergo22, courb24, fg-25, or fg-30 will be a good choice. Some font families got systematic names like Courier:
courr = Courier regular
couro = Courier italics
courb = Courier bold

Program xfontsel shows an Xwindow with all available characters of the choosen font, e.g.:
xfontsel -pattern '-schumacher-clean-medium-r-normal–0-0-75-75-c-0-iso8859-15'
Please pay attention to the single quotation marks.

How to test your X connection

The easiest way to check if your X connection works is to start one of the following two programs:
xeyes & move your mouse … ;-)
xclock & displays a simple analog clock