Tag: cygwin

 

Cygwin / Apache

A quick note about running Apache under cygwin. If you just run httpd2 on it’s own, you get an error about “invalid system call”. Very annoying.

A quick bit of googling reveals that you have to have something called cygserver running. You have to set it up by running cygserver-config the first time. After that, you just need to ensure that cygserver is running.

Then, you can start Apache by saying CYGWIN=server httpd2. And it all works!

Cygwin / X

At work, I get quite a bit of use out of cygwin. In particular, I find the X server really handy. But I had been using a small batch file to start up the X server, which annoyingly left behind a DOS box whilst the X server was running.

But yesterday, I found the c:/cygwin/usr/X11R6/bin/startxwin.bat script. This manages to start up the X server without leaving behind the DOS box. Much nicer. I did have to edit the script to not start up an xterm, but apart from that it works great.

One other little feature that’s quite handy: If you create an ~/.XWinrc file with this contents:

MENU systray {
  xterm EXEC "xterm -ls -display %display%"
  SEPARATOR
}
ROOTMENU systray

Then you have a convenient link on the X server menu to fire up an xterm. Very handy. My next step is to get it to automatically ssh over to the dev server and fire up Emacs. But I’m not sure if cygwin’s ssh client will interact with the pageant that I’m already running.