Cygwin Installation and Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 78: Line 78:
=Check Out Standard Utilities=
=Check Out Standard Utilities=


Setup [cdw]


Setup [Setup Cygwin Utility Scripts]
<pre>
cd ~/bin
git clone https://ovidiuf@github.com/NovaOrdis/shell-tools.git
</pre>
 
then edit <tt>~/.bashrc</tt> and add:
 
<pre>
export PATH=~/bin/shell-tools:${PATH}
</pre>

Revision as of 01:16, 14 January 2016

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 (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 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

Install ssh Identity

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

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 Standard Utilities

cd ~/bin
git clone https://ovidiuf@github.com/NovaOrdis/shell-tools.git

then edit ~/.bashrc and add:

export PATH=~/bin/shell-tools:${PATH}