bootstrap/README.md
Benie 91e205f44e Add bootstrap-Arch.sh
usage: ./bootstrap-Arch.sh [-h] [-y]

Bootstrap an Arch Linux based distribution with:

* update pacman database
* upgrade pacman packages
* git - from pacman
* python-pip - from pacman
* python-virtualenv - from pacman
* SSH key - from ssh-keygen
* GitHub public key - with SSH key
* GitLab public key - with SSH key
* BitBucket Cloud public key - with SSH key
* Gogs 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
2019-09-17 20:38:15 +01:00

40 lines
1.1 KiB
Markdown

# bootstrap
Bootstrap an OS instance with bare essentials.
## Usage
To bootstrap a macOS instance:
```console
$ curl -O https://code.infektor.net/config/bootstrap/raw/master/bootstrap-macOS.sh && chmod +x bootstrap-macOS.sh && ./bootstrap-macOS.sh
```
To bootstrap a Debian based Linux instance:
```console
$ wget https://code.infektor.net/config/bootstrap/raw/master/bootstrap-Debian.sh && chmod +x bootstrap-Debian.sh && ./bootstrap-Debian.sh
```
To bootstrap a Arch Linux based instance:
```console
$ curl -O https://code.infektor.net/config/bootstrap/raw/master/bootstrap-Arch.sh && chmod +x bootstrap-Arch.sh && ./bootstrap-Arch.sh
```
To bootstrap a Windows instance:
```console
$ bitsadmin /transfer bootstrap-Windows.cmd https://code.infektor.net/config/bootstrap/raw/master/bootstrap-Windows.cmd %cd%\bootstrap-Windows.cmd & %cd%\bootstrap-Windows.cmd
```
## Package
Install as a pip package to set SSH keys on any of GitHub, GitLab, BitBucket
Cloud, or Gogs servers:
```console
$ pip install git+https://code.infektor.net/config/bootstrap.git
$ python -c 'import bootstrap; bootstrap.set_ssh_keys()'
```