How do I install Cygwin to Windows 10?

Step 1

Download and run cygwin.com/setup-x86_64.exe
cygwin.com/install.html

Step 2

2023-04-16--01-14-54
cygwin.com/cygwin-ug-net/setup-net.html#setup-download

Step 3

2023-04-16--01-16-07
I specified the directory with Cygwin files from my other workstation, so I do not need to remember which packages to install to reproduce my working environment.
cygwin.com/cygwin-ug-net/setup-net.html#setup-dir

Step 4

2023-04-16--01-17-34
What does mean «Local Package Directory» for a Cygwin installation?

Step 5

2023-04-16--01-18-02

Step 6

2023-04-16--01-18-17

Step 7

As I have copied the Cygwin installation from another workstation (see Step 3), I do not change any packages here:
2023-04-16--01-20-32

Step 8

2023-04-16--01-23-00

Step 9

2023-04-16--01-28-45

Step 10

Setup a shortcut for bash.exe on the Desktop.

Step 11

Add Cygwin to the File Explorer's context menu.

Step 12

takeown /f "C:\tools\cygwin" /r /d y
icacls "C:\tools\cygwin" /grant:r dmitrii:F /t

Step 13

Set up nsswitch.conf.

Step 14

Add Cygwin to Windows Terminal.
Set «Command line» to:

C:\tools\cygwin\bin\bash.exe -c "/bin/xhere /bin/bash.exe '%V'"

2023-06-09--15-10-50