Cygwin

From My Notepad
Jump to: navigation, search

Setting up a lighttpd service in Windows

cygrunsrv.exe -I lighttpd -a "-f /etc/lighttpd/lighttpd.conf" --path /usr/sbin/lighttpd -x /var/run/lighttpd.pid -t auto

Setting up an OpenSSH server on Windows

Source: [1]

Add the following Windows system environment variable:
CYGWIN=ntsec tty

# If you are only using local computer authentication use the following two lines:
mkpasswd -l > /etc/passwd
mkgroup -l > /etc/group

# If you're on a domain you will need to do the following instead:
mkpasswd -l -d > /etc/passwd
mkgroup -l -d > /etc/group

# Update permissions
chmod +r  /etc/passwd
chmod +r  /etc/group
chmod  755  /var

# Configure the ssh service.
# Adding the -y will use defaults, which is recommended.
ssh-host-config -y

# To start the service from Cygwin use the following command:
cygrunsrv  --start  sshd

# To start the service from Windows use the following command:
net start sshd

Setting up syslog-ng

Look at the following link: http://files.bluecrow.net/syslog-ng/README.cygwin