Windows7のCygwinでX11を設定する

CygwinのSetup.exeで
X11: xorg-serverとxinit
Net: opensshとopenssl
を指定してインストールする。

Xを使えるように、DISPLAY環境変数に:0.0を指定する。
http://x.cygwin.com/docs/ug/using-remote-apps.html
/home//.bashrcに以下を追加

if [ -n ${DISPLAY} ]; then
export DISPLAY=:0.0
fi

Cygwinを起動

$ startxwin

で、Xが立ち上がる(起動した後は自動でxtermが立ち上がる。これは終了してもよい。)