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.
startxwin.bat - Use a MS-DOS batch file as the startup script. An example startxwin.bat is included in xorg-xinit, which is extracted according to the instructions in the Section called Installing Cygwin/X in Chapter 2. Run /usr/bin/startxwin.bat by double-clicking it in Windows Explorer.
startxwin.sh - Use an sh shell script as the startup script. An example startxwin.sh is included in xorg-xinit, which is extracted according to the instructions in the Section called Installing Cygwin/X in Chapter 2. Run /usr/bin/startxwin.sh in a Cygwin shell:
Username@CygwinHost ~ $ sh /usr/bin/startxwin.sh |
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 then start Cygwin/X with:
Username@CygwinHost ~ $ startx |