Skip to content

Instantly share code, notes, and snippets.

@mhoyer
Last active December 28, 2017 22:24
Show Gist options
  • Save mhoyer/954884 to your computer and use it in GitHub Desktop.
Save mhoyer/954884 to your computer and use it in GitHub Desktop.
Cygwin base installation
# 1. Download cygwin setup-x86.exe from http://www.cygwin.com/setup-x86.exe.
# 2. Install with wget package.
# 3. Run cygwin.bat with Administrator rights
cd /tmp
# wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg
wget https://github.com/Milly/apt-cyg/raw/master/apt-cyg --no-check-certificate
chmod +x apt-cyg
mv apt-cyg /bin/apt-cyg
apt-cyg update
# make local disk mounts available under root (instead of /cygdrives)
echo "none / cygdrive binary,noacl,posix=0,user 0 0" >> /etc/fstab
cat /etc/fstab
##### Shell ######
yes | apt-cyg install zsh mintty git
# Create initial /etc/zshenv
[[ ! -e /etc/zshenv ]] && echo export PATH=/usr/bin:\$PATH > /etc/zshenv
wget --no-check-certificate https://github.com/mhoyer/oh-my-zsh/raw/master/tools/install.sh -O - | sh
##### Tooling ######
yes | apt-cyg install vim curl
##### Development ######
yes | apt-cyg install colordiff patch
yes | apt-cyg install git openssh git-completion git-gui gitk
yes | apt-cyg install git-svn subversion
yes | apt-cyg install mercurial
##### SSH #####
yes | apt-cyg install gcc-g++ make keychain openssh psmisc
git clone git://github.com/wesleyd/charade.git
cd charade
make && make install
killall charade
killall ssh-agent
cd ..
##### Extensions #######
yes | apt-cyg install mc
##### Further steps ######
# linkd dropbox/cygwin/home -> /home/mhoyer
# vi /etc/passwd # change bash -> zsh
# chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment