Compare commits

..

2 Commits

Author SHA1 Message Date
6a3d187a7b 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:10:14 +00:00
b9d8326017 Add bootstrap-Ubuntu.sh
usage: ./bootstrap-Ubuntu.sh [-h] [-d]

Bootstrap a Ubuntu or Linux Mint instance with:

* git - from apt-get
* 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
        -d              dry run, don't actuall install anything
        -n              don't install pip packeges as --user
2017-12-04 16:10:10 +00:00

View File

@ -11,8 +11,6 @@ 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"
@ -30,7 +28,7 @@ show_help() {
yes=0
while getopts 'hy' opt; do
while getopts 'hdy' opt; do
case $opt in
h) show_help; exit 0 ;;
y) yes=1 ;;
@ -135,6 +133,7 @@ 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
@ -142,6 +141,7 @@ 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