Skip to content

Instantly share code, notes, and snippets.

@piotrpolak
Last active July 17, 2023 12:25
Show Gist options
  • Save piotrpolak/c616455f1da8dfc2d4e101afbfdcdc8d to your computer and use it in GitHub Desktop.
Save piotrpolak/c616455f1da8dfc2d4e101afbfdcdc8d to your computer and use it in GitHub Desktop.
Cygwin unattended installation
# 1. Download https://cygwin.com/setup-x86_64.exe
# 2. Copy and paste the following lines in your default Windows CMD
# to install Cygwin alongside with some additional packages under c:\cygwin64
# NOTE: First navigate to the same directory where setup-x86_64.exe is located
setup-x86_64.exe ^
--quiet-mode ^
--packages ^
bzip2,^
make,^
dos2unix,^
unzip,^
wget,^
curl,^
nano,^
vim,^
svn,^
git ^
--site http://artfiles.org/cygwin.org/pub/cygwin/ ^
--root c:\cygwin64
# 3. Open the default Cygwin terminal and paste the following Bash commands in order to:
# - install git-ftp utility
# - adjust git colors
# - install ConsoleZ terminal window enhancement
echo "Installing git-ftp..." && \
curl https://raw.githubusercontent.com/git-ftp/git-ftp/develop/git-ftp > /bin/git-ftp && chmod +x /bin/git-ftp && \
echo "Installing apt-cyg..." && \
lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg && install apt-cyg /bin && unlink apt-cyg && \
echo "Changing global git settings..." && \
git config --global color.ui auto && \
git config --global color.branch auto && \
git config --global color.status auto && \
git config --global core.autocrlf true && \
git config --global core.fileMode false && \
echo "Downloading ConzoleZ..." && \
lynx -source https://github.com/cbucher/console/releases/download/1.17.0/ConsoleZ.x64.1.17.0.16129.zip > /cygdrive/c/cygwin64/tmp/ConsoleZ.zip && \
mkdir -p /cygdrive/c/cygwin64/ConsoleZ && \
echo "Downloading ConzoleZ custom config..." && \
lynx -source https://github.com/piotrpolak/consolez-cygwin-config/archive/master.zip > /cygdrive/c/cygwin64/tmp/consolez-cygwin-config.zip && \
echo "Unpacking ConzoleZ..." && \
unzip /cygdrive/c/cygwin64/tmp/ConsoleZ.zip -d /cygdrive/c/cygwin64/ConsoleZ && \
echo "Unpacking ConzoleZ custom config..." && \
unzip -p /cygdrive/c/cygwin64/tmp/consolez-cygwin-config.zip consolez-cygwin-config-master/console.xml > /cygdrive/c/cygwin64/ConsoleZ/console.xml && \
unlink /cygdrive/c/cygwin64/tmp/ConsoleZ.zip && \
unlink /cygdrive/c/cygwin64/tmp/consolez-cygwin-config.zip && \
echo "Cleaning up and setting permissions" && \
chmod u+x /cygdrive/c/cygwin64/ConsoleZ/*.exe && \
chmod u+x /cygdrive/c/cygwin64/ConsoleZ/*.dll && \
echo '' > ~/.bash_history && \
echo "Downloading bash colors..." && \
lynx -source https://github.com/twolfson/sexy-bash-prompt/raw/master/.bash_prompt > ~/.bash_prompt && echo "# Run twolfson/sexy-bash-prompt" >> ~/.bashrc && echo ". ~/.bash_prompt" >> ~/.bashrc && source ~/.bashrc && \
echo "Done! /cygdrive/c/cygwin64/ConsoleZ/Console.exe is ready to be used! You can pin it to your taskbar!"
@StSav012
Copy link

http://artfiles.org/ does not host cygwin anymore. Use another mirror.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment