Cygwin Installation and Configuration

From NovaOrdis Knowledge Base
Revision as of 01:11, 13 January 2016 by Ovidiu (talk | contribs)
Jump to navigation Jump to search

Internal

Prepare the Download

It is good practice to keep the original cygwin download, so in order to create a self-contained installation, create the Cygwin Root Directory in advance (Template:C:/cygwin), create the archive directory in advance (Template:C:/cygwin/archive) and store the downloaded artifacts there.


!!!Installation

  • Go to [1], locate setup.exe and download it locally in Template:C:/cygwin/archive.
  • Start the installation by executing setup.exe from its location.
  • __Important__: if the current user is not part of the Administrators group, right click on the icon and choose "Run as administrator". For more details see [Windows Administrators].
  • "Install from Internet"
  • Root Directory: C:\cygwin
  • Install For All Users
  • Local Package Directory: C:\cygwin\archive
  • It is very important to install everything (X support, Template:Rxvt, etc.). In order to Install "everything", click on the root of the tree ("All"), and then click the chasing arrows until "Install" shows up. Make sure that __all__ packages automatically switch to "Install", while being careful that the "Version" radio button is set to "Current". There's a small lag between clicking on "Install" and actually seeing the result.

!Possible Problems at this Stage

  • If the Windows account starts with a capital letter "Ovidiu", the cygwin user will be the same. If I want to change to "ovidiu", I have to 1) modify /etc/passwd and 2) move /home/Ovidiu to /home/ovidiu
  • Vista Quirks
    • __WARNING! On Vista, turn User Account Control (UAC) off before starting the installation, otherwise you'll make it prone to hanging.__
    • On Vista, I've seen the Template:Home directory (and sub-directories) created with no permissions, so:

{{{

   cd /home
   chmod u+rwx ovidiu

}}}

  • If seeing cygwin library errors ("fatal error - unable to remap"), see for a solution under [Cygwin Troubleshooting#FatalErrorUnableToRemap].


!!!Install ssh Identity from the Previous Computer or from These Attachments

{{{

cd mkdir .ssh chmod go-rwx .ssh/ cd .ssh/ vi id_rsa

  1. copy in here the content of //RACKSTATION/base/Personal Archive/ssh identity/id_rsa

chmod go-rwx id_rsa

}}}

The private key file stored as //RACKSTATION/base/Personal Archive/ssh identity/id_rsa.

Test it by attempting to connect to ovidiu@home.feodorov.com, it should go straight through.

!!(Optional) Set up a sshd server

|[Setting Up a sshd Server in Cygwin]

!!!Create the Convenience Links

{{{

cd / ln -s /cygdrive/c c ln -s /cygdrive/b b cd ~; ln -s /c/tmp tmp

}}}


!!!Setup Terminals

|[Setup Cygwin Terminals]

!!!Setup .basic

|[.bashrc|CygwinBashrc]

For more details about cow see:

|[cdw]

!!!Setup Utility Scripts

|[Setup Cygwin Utility Scripts]

!!!If Short on Space

... you can delete the following:

  • C:/cygwin/usr/share/texmf-dist
  • C:/cygwin/archive/http%3a%2f%2fmirror.mcs.anl.gov%2fcygwin%2f
  • C:/cygwin/usr/share/doc/lilypond
  • C:/cygwin/usr/share/doc/ruby


__Referenced by:__\\ [{INSERT com.ecyrd.jspwiki.plugin.ReferringPagesPlugin WHERE max=20, maxwidth=50}]