-
Follow this to install Bash on Windows in Windows 10: https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/
-
Setup a username/password for the installation, in my case I chose richard, so replace occurrences of that below with your chosen username.
echo "sudo -i" >> .bashrc
echo "exit $?" >> .bashrc
echo "richard ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/Richard
Notes: The above means that you will automatically sudo to root every time you start a bash shell which is handy.
sudo -i
do-release-upgrade -f DistUpgradeViewNonInteractive
mv -f /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist /etc/apt/apt.conf.d/50unattended-upgrades
apt-get remove --purge $(dpkg -l | grep "^rc" | awk '{print $2}' | tr '\n' ' ')
apt-get --fix-broken install
Notes: During the upgrade tasks it seems to keep pausing, so pressing enter every now and then helps as it seems to stall for some reason.
yes '' | ssh-keygen -N ''
add-apt-repository ppa:ansible/ansible
apt-get update
apt-get install git ansible awscli jq
touch ~/.bash_aliases
echo 'alias nano="/bin/nano --tabsize 2 --smooth --nowrap"' >> .bash_aliases