Tuesday, March 24, 2009

Installation of Cygwin

Cygwin is a Linux-like environment for Windows. It consists of two parts:
  • A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality.
  • A collection of tools which provide Linux look and feel.
The Cygwin DLL currently works with all recent, commercially released x86 32 bit and 64 bit versions of Windows, with the exception of Windows CE.

Installation :

1. Download the cygwin openssh installer from http://www.cygwin.com
2. Start the insttalation process


3. Select default "Install from Internet" option and click Next.


4. Give the path of the directory where the software is to be installed. By default it comes "C:\cygwin".
Select options "All users" & "Unix/binary" as shown below.



5. Specify the path to download the binaries.
Here it is "C:\Documents and Settings\Administrator\Desktop"


6. Specify the internet setting as shown below.



7. Select mirror site to download the binaries nearest to your location.



8. Installation Setup :)



9. select the openssh packages as shown below and othe required packages from list.


10. Click next to initiate the installation.



11. Installation is over. Click Ok to finish the installation.
Post Installation process :

12. Double click the cygwin icon on the desktop & execute the following commands.

13. Right click My Computer, Properties, Advanced, Environment Variables. Select the Path variable and click the "Edit" button:
append ;c:\cygwin\bin to the end of the existing variable string.
Add a variable as “cygwin” with values “ntsec tty”

14. Run ssh-host-config
When the script asks you about "privilege separation", answer yes
When the script asks about "create local user sshd", answer yes
When the script asks you about "install sshd as a service", answer yes
When the script stops and asks you for "CYGWIN=" your answer is ntsec tty

15. start the sshd service
net start sshd
or
cygrunsrv --start sshd

16. Make sure every Windows user has a password set, if not, go to Control Panel....User Accounts and create a password

17. Harmonize Windows user information with cygwin, otherwise they cannot login
mkpasswd -cl > /etc/passwd
mkgroup --local > /etc/group

18. Connect to the host using WinSCP or Putty.

No comments: