Chapter 4. Using Cygwin/X

Table of Contents
Starting Cygwin/X
Switching Out of Cygwin/X
Stopping Cygwin/X
Window Managers
Windows Clipboard Integration
Shared Memory Support (MIT-SHM Extension)
Remote Sessions via XDMCP
Displaying Remote Clients

Starting Cygwin/X

There are several methods of starting the Cygwin/X X Server with a startup script that optionally starts initial clients and loads keyboard modifier maps. Several startup methods are described below.

startx

startx - Use the standard X Window System startx script with its attendant ~/.xinitrc configuration file. First you need to create ~/.xinitrc from the template in /etc/X11/xinit/:


Username@CygwinHost ~
$ cp /etc/X11/xinit/xinitrc ~/.xinitrc

Now you may customize ~/.xinitrc and start Cygwin/X with:


Username@CygwinHost ~
$ cd /usr/X11R6/bin && startx

Or, you can run startx by first adding /usr/X11R6/bin/ to the search path:


Username@CygwinHost ~
$ PATH=%PATH:/usr/X11R6/bin

Username@CygwinHost ~
$ startx

Or, you can run startx by first changing directories to /usr/X11R6/bin/:


Username@CygwinHost ~
$ cd /usr/X11R6/bin

Username@CygwinHost /usr/X11R6/bin
$ startx