Remotely getting a X Window System session from a NetWare server using Cygwin
Novell Cool Solutions: Trench
By Richard Stubbs
Reader Rating
from 3 ratings
|
Digg This -
Slashdot This
Posted: 6 Aug 2003 |
Using Cygwin as an X server for a NetWare box works like a charm: it is fast and there are no refresh problems that I can see. Why use Cygwin? Well -- it is free! In order to get it working do the following.
At your PC
- Download and install Cygwin from www.cygwin.com (Make sure you include the X11 stuff and bash.)
- Download the Ice Window Manager from http://home.san.rr.com/dhuyvetter/david/CygwinXFree86.html and follow the instuctions to install. (See my example.)
- Start the X Window System session by running
e:\Cygwin\bin\bash.exe
--login /usr/X11R6/bin/startxwin.sh "
Put in your path to bash.exe instead of e:\Cygwin\bin\bash.exe". You can make this a Windows shortcut for your convenience. - When you run this shortcut you will get a terminal window. If you right-click on the X in your taskbar and select 'show root menu' this will bring the X Window System session to the foreground.
- In the terminal session window, enter
xhost x.x.x.x
where x.x.x.x is the IP address of the NetWare server. This gives the NetWare server permission to send screen updates to your X server.
At the NetWare Server
- Load java (if it is not loaded), if X is loaded unload it.
- Use the following commands to send the X session to the pc:
envset display=x.x.x.x:0.0 startx
where x.x.x.x is the ip address of your pc.
Presto! You should have the full-blown NetWare session on your PC.
TID 10060342 contains more info about remote X Window System sessions.
EXAMPLE
MY stripped startxwin.sh file
#! /bin/sh export DISPLAY=127.0.0.1:0.0 PATH=/usr/X11R6/bin:$PATH # Cleanup from last run. rm -rf /tmp/.X11-unix # # Startup the programs # # Startup the X Server with the integrated Windows-based window manager. XWin -multiwindow -screen 0 800 600 & # Startup an xterm, using bash as the shell. xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e /usr/bin/bash & # # Startup the twm window manager. # WARNING: Do not use an external window manager in conjunction with # the ``-multiwindow'' command-line parameter for XWin. Doing so # would start two window managers, which is never supposed to happen. # icewm & # Set a background color. Only needed when not using -multwindow for XWin. # xsetroot -solid aquamarine4 # Return from sh. exit
About Cygwin
Cygwin is a Linux-like environment for Windows. It consists of two parts:
- A DLL (Cygwin1.dll) which acts as a Linux emulation layer providing substantial Linux API functionality.
- A collection of tools, which provide a Linux look and feel.
For more info, see the Cygwin FAQ
If you have any questions you may contact Richard at Stubbs@nu.ac.za
Reader Comments
- Great info, works well! On a side note, I found that envset DISPLAY=x.x.x.x:0.0 is not - had to also issue env DISPLAY=x.x.x.x:0.0 in order to get things running properly.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

