Compare commits

..

2 Commits

Author SHA1 Message Date
f7c0db1d00 Add bootstrap-Windows.cmd
usage: bootstrap-Windows.cmd [/?]

Bootstrap a macOS instance with:

* Windows SDK - from MSDN
* Chocolatey - package manager
* Git - from Chocolatey
* Python - from Chocolatey
* virtualenv - from pip
* SSH key - from ssh-keygen
* GitHub public key - with SSH key
* conduit - configuration manager

optional arguments:
        /?              show this help message and exit
2017-12-04 16:15:19 +00:00
d17909b455 Add bootstrap-Ubuntu.sh
usage: ./bootstrap-Ubuntu.sh [-h] [-y]

Bootstrap a Ubuntu or Linux Mint instance with:

* update apt cache
* upgrade apt packages
* git - from apt
* python - from apt
* python-pip - from apt
* virtualenv - from pip
* SSH key - from ssh-keygen
* GitHub public key - with SSH key
* conduit - configuration manager

If any already exist they will not be reinstalled.

optional arguments:
        -h              show this help message and exit
        -y              assume yes when prompted
2017-12-04 16:15:15 +00:00

View File

@ -11,6 +11,8 @@ show_help() {
echo
echo "Bootstrap a Ubuntu or Linux Mint instance with:"
echo
echo "* update apt cache"
echo "* upgrade apt packages"
echo "* git - from apt"
echo "* python - from apt"
echo "* python-pip - from apt"
@ -28,7 +30,7 @@ show_help() {
yes=0
while getopts 'hdy' opt; do
while getopts 'hy' opt; do
case $opt in
h) show_help; exit 0 ;;
y) yes=1 ;;
@ -133,7 +135,6 @@ fi
# TODO: Gogs SSH key
# Prompt user to setup other SSH key recipients
if [ -f ~/.ssh/id_rsa.pub ]; then
echo "----------------------------------------------------------------------"
cat ~/.ssh/id_rsa.pub
@ -141,7 +142,6 @@ if [ -f ~/.ssh/id_rsa.pub ]; then
read -rp "Set other SSH key recipients, press ENTER to continue: "
fi
# Install conduit
missing conduit && agree "Install conduit" && \
pip_install git+ssh://git@github.com/kbenzie/conduit.git