- Download the Windows installer for MSYS2, and run it as administrator.
- When prompted for the installation folder, specify
C:\Programs\MSYS2
. - When prompted for the shortcut folder, specify
MSYS2
. - At the final installation page, deselect
Run MSYS2 now
, and press the Finish button. - Next: immediately perform the initial system upgrade (see below).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## Install the latest AWS CLI. | |
## By Stephen D. Rogers <inbox.c7r@steve-rogers.com>, 2023-03. | |
## | |
set -e | |
set -o pipefail 2>&- || : | |
xx() { # ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##/bin/bash | |
## Install Google Chrome on a Debian-based system. | |
## By Stephen D. Rogers <inbox.c7r@steve-rogers.com>, 2018-02. | |
## | |
## Typical uses: | |
## | |
## google.chrome.install.sh | |
## google.chrome.install.sh --stable # latest stable version | |
## | |
## google.chrome.install.sh --lkg # last known good version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Spin up a TeamCity server as a Docker container. | |
## By Stephen D. Rogers <inbox.c7r@steve-rogers.com>, 2018-01. | |
## | |
## Usage: | |
## | |
## teamcity-server.spin-up [--interactive|-i] [--restart policy] [--tty|-t] [listening_port] | |
## | |
## The TeamCity server listening port (on the container host) defaults to 8111. | |
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function check_git_is_installed() { | |
if ! git_is_installed ; then | |
post_delayed_exit 2 "Cannot locate the git command; aborting." | |
fi | |
} | |
function git_is_installed() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function check_user_is_root_or_devops() { | |
if ! user_is_root_or_devops ; then | |
post_delayed_exit 2 "You must be root or devops to execute this command; aborting." | |
fi | |
} | |
function user_is_root_or_devops() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delayed_exit_p= | |
function post_delayed_exit() { # exit_code explanation ... | |
local exit_code="${1:?missing argument: exit_code}" ; shift | |
: "${1:?missing argument: explanation}" | |
if [ -z "${delayed_exit_p}" ] ; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##/bin/bash | |
## | |
vagrant_deb_url='https://releases.hashicorp.com/vagrant/1.8.6/vagrant_1.8.6_x86_64.deb' | |
vagrant_deb_fpn="${HOME}/Downloads/${vagrant_deb_url##*/}" | |
if ! [ -e "${vagrant_deb_fpn:?}" ] ; then | |
xx wget -q -O "${vagrant_deb_fpn:?}" "${vagrant_deb_url:?}" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Spin up a Tomcat server as a Docker container. | |
## By Stephen D. Rogers <inbox.c7r@steve-rogers.com>, 2017-07. | |
## | |
## Usage: | |
## | |
## tomcat.spin-up [--interactive|-i] [--restart policy] [--tty|-t] [listening_port] | |
## | |
## The Tomcat listening port (on the container host) defaults to 8080. | |
## |
NewerOlder