#! /bin/sh export DISPLAY=127.0.0.1:0.0 PATH=/usr/X11R6/bin:$PATH eval `ssh-agent` # Cleanup from last run. rm -rf /tmp/.X11-unix # Startup the X Server, the twm window manager, and an xterm. # # Notice that the window manager and the xterm will wait for # the server to finish starting before trying to connect; the # error "Cannot Open Display: 127.0.0.1:0.0" is not due to the # clients attempting to connect before the server has started, rather # that error is due to a bug in some versions of cygwin1.dll. Upgrade # to the latest cygwin1.dll if you get the "Cannot Open Display" error. # See the Cygwin/XFree86 FAQ for more information: # http://xfree86.cygwin.com/docs/faq/ # # The error "Fatal server error: could not open default font 'fixed'" is # caused by using a DOS mode mount for the mount that the Cygwin/XFree86 # fonts are accessed through. See the Cygwin/XFree86 FAQ for more # information: # http://xfree86.cygwin.com/docs/faq/cygwin-xfree-faq.html#q-error-font-eof # Start the X Server. XWin -screen 0 1024 768 & # Start the twm window manager. twm & # Set a background color to hide that nasty X stipple. xsetroot -solid aquamarine4 # Start an xterm. xterm -n xterm-1 -j -ls -sb -sl 500 -rightbar -geometry +361+0 -e bash & # Return from sh. exit