34 lines
933 B
Markdown
34 lines
933 B
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 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()'
|
|
```
|