Linux – How to install Cygserver

cygwin-xcygwin;linuxwindow

I'm programming in UNIX, so I'm using Cygwin. But functions of IPC does not work on it, just in Cygserver. How can I install it? I'm looked in google and did not find any concrete information.

Thanks for your time 🙂

Best Answer

Cygserver is actually part of the base cygwin package that every Cygwin user has installed.

Proof:

$ cygcheck -f /usr/sbin/cygserver
cygwin-1.7.35-1

$ cygcheck -f /usr/bin/cygserver-config
cygwin-1.7.35-1

So you already have it installed, but you need to configure it:

  1. Launch "Cygwin Terminal" "as Administrator"

  2. $ cygserver-config

Output:

$ cygserver-config
Generating /etc/cygserver.conf file


Warning: The following function requires administrator privileges!

Do you want to install cygserver as service?
(Say "no" if it's already installed as service) (yes/no) yes

The service has been installed under LocalSystem account.
To start it, call `net start cygserver' or `cygrunsrv -S cygserver'.

Further configuration options are available by editing the configuration
file /etc/cygserver.conf.  Please read the inline information in that
file carefully. The best option for the start is to just leave it alone.

Basic Cygserver configuration finished. Have fun!

Note that in addition to the To start it instructions:

  1. It will automatically start at boot
  2. You can start and stop it (or disable it) under services.msc