Cygwin Installation and Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(30 intermediate revisions by the same user not shown)
Line 2: Line 2:


* [[Cygwin]]
* [[Cygwin]]
=Relevance=
* Windows 10/cygwin 2.5.2


=Prepare the Download=
=Prepare the Download=
Line 18: Line 22:
* "Install from Internet (downloaded files will be kept for future re-use)"
* "Install from Internet (downloaded files will be kept for future re-use)"


* Root Directory: C:\cygwin
* Root Directory: <tt>C:\cygwin</tt>
 
* Install For All Users
* Install For All Users
* Local Package Directory: C:\cygwin\archive
* It is very important to install ''everything'' (X support, {{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
* Local Package Directory: <tt>C:\cygwin\archive</tt>


* 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
* Direct Connection


* Vista Quirks
<blockquote style="background-color: Gold; border: solid thin Goldenrod;">
** __WARNING! On Vista, turn User Account Control (UAC) off before starting the installation, otherwise you'll make it prone to hanging.__
:<br>It is very important to install ''everything'' (X support, <tt>rxvt</tt>, 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 (upper right corner) is set to "Current". There's a small lag between clicking on "Install" and actually seeing the result.<br><br>
** On Vista, I've seen the {{home}} directory (and sub-directories) created with no permissions, so:
</blockquote>
{{{
    cd /home
    chmod u+rwx ovidiu
}}}


* If seeing cygwin library errors ("fatal error - unable to remap"), see for a solution under [Cygwin Troubleshooting#FatalErrorUnableToRemap].
* Verify that <tt>rxvt</tt> is selected by navigating to "Shells" and making sure rxvt or a variant is selected.


==Possible Problems at this Stage==


!!!Install ssh Identity from the Previous Computer or from These Attachments
* 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:
# modify <tt>/etc/passwd</tt> and
# move <tt>/home/Ovidiu</tt> to <tt>/home/ovidiu</tt>
* [[Cygwin Installation and Configuration Vista Quirks|Vista Quirks]]
* If seeing cygwin library errors ("fatal error - unable to remap"), go to [[Cygwin Troubleshooting#Fatal_Error_-_unable_to_remap|Troubleshooting - Fatal Error Unable to Remap]].


{{{
=Create the Convenience Links=
 
cd
mkdir .ssh
chmod go-rwx .ssh/
cd .ssh/
vi id_rsa
# 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
 
{{{


<pre>
cd /
cd /
ln -s /cygdrive/c c
ln -s /cygdrive/c c
Line 69: Line 52:
cd ~;  
cd ~;  
ln -s /c/tmp tmp
ln -s /c/tmp tmp
</pre>


}}}
=Setup Terminals=


<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
:[[Cygwin Setup Terminals|Setup Terminals]]
</blockquote>


!!!Setup Terminals
=Setup .basic=


|[Setup Cygwin Terminals]
Setup [[Linux Convenience Aliases]].


!!!Setup .basic
=Check Out and Install Standard Utilities=


|[.bashrc|CygwinBashrc]
Follow installation instructions available in the https://github.com/NovaOrdis/shell-tools repository, specifically https://github.com/NovaOrdis/shell-tools#installation


For more details about cow see:
=Install ssh Identity (optional)=


|[cdw]
<pre>
cd
mkdir .ssh
chmod go-rwx .ssh/
cd .ssh/
vi id_rsa
# copy in here the content of /Personal Archive/ssh identity/id_rsa
chmod go-rwx id_rsa
</pre>


!!!Setup Utility Scripts
=Set up a sshd server (optional)=


|[Setup Cygwin Utility Scripts]
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
 
:[[Cygwin Set Up a sshd Server|Set up a sshd server]]
!!!If Short on Space
</blockquote>
 
... 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}]

Latest revision as of 03:09, 21 July 2016

Internal

Relevance

  • Windows 10/cygwin 2.5.2

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 (C:/cygwin), create the archive directory in advance (C:/cygwin/archive) and store the downloaded artifacts there.

Installation

  • Go to http://www.cygwin.com/, locate setup.exe (setup-x86_64.exe) and download it locally in 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 Administration

  • "Install from Internet (downloaded files will be kept for future re-use)"
  • Root Directory: C:\cygwin
  • Install For All Users
  • Local Package Directory: C:\cygwin\archive
  • Direct Connection

It is very important to install everything (X support, 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 (upper right corner) is set to "Current". There's a small lag between clicking on "Install" and actually seeing the result.

  • Verify that rxvt is selected by navigating to "Shells" and making sure rxvt or a variant is selected.

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

Create the Convenience Links

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

Setup Terminals

Setup Terminals

Setup .basic

Setup Linux Convenience Aliases.

Check Out and Install Standard Utilities

Follow installation instructions available in the https://github.com/NovaOrdis/shell-tools repository, specifically https://github.com/NovaOrdis/shell-tools#installation

Install ssh Identity (optional)

cd
mkdir .ssh
chmod go-rwx .ssh/
cd .ssh/
vi id_rsa
# copy in here the content of /Personal Archive/ssh identity/id_rsa
chmod go-rwx id_rsa

Set up a sshd server (optional)

Set up a sshd server