Download cygwin from http://www.cygwin.com/
Inside the folder where is the downloaded file:
./setup-x86_64.exe --no-admin
./setup-x86_64.exe --no-admin -q -P wget -P gcc-g++ -P make -P diffutils -P libmpfr-devel -P libgmp-devel -P libmpc-devel -P lynx -P vim -P tmux -P xclip -P dos2unix -P zhs
or
Install a package manager, apt-cyg
:
lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
install apt-cyg /bin
After that we can use it as follows:
apt-cyg install vim
source : https://github.com/transcode-open/apt-cyg
We can create a shortcut for this
C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -
source: cmderdev/cmder#453 (comment)
echo db_home: windows >> /etc/nsswitch.conf
mkpasswd -l -c > /etc/passwd && echo 'passwd: files' > /etc/nsswitch.conf
mkgroup -l -c > /etc/group && echo 'group: files' >> /etc/nsswitch.conf
or
getent passwd $(id -u) > /etc/passwd; getent group $(id -G) > /etc/group
echo passwd: files db > /etc/nsswitch.conf; echo group: files db >> /etc/nsswitch.conf
source: https://superuser.com/questions/877051/cygwin-from-windows-is-very-slow-laggy
setup-cygwinx86 --no-admin -q -P mingw64-i686-gcc-g++ -P gcc-g++ -P make
source : rprichard/winpty#64 (comment)
Documentation see http://www.cygwin.com/cygwin-ug-net/using.html
code to fix https://github.com/epeli/slimux/pull/80/commits/e7307c334b76631729848533e5cae7d519a861ad