* Add `bootstrap-Windows.ps1` sets up the bare minimum required to start Debian in WSL2 sharing SSH keys with the Windows host and enable SSH server for remote access. * Add `bootstrap-Windows.sh` copies Windows host SSH keys, upgrades Debian to unstable, then installs Ansible and dependencies. * Remove `bootstrap-Windows.cmd`.
46 lines
1.4 KiB
Markdown
46 lines
1.4 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 Fedora Linux instance:
|
|
|
|
```console
|
|
$ curl -O https://code.infektor.net/config/bootstrap/raw/master/bootstrap-Fedora.sh && chmod +x bootstrap-Fedora.sh && ./bootstrap-Fedora.sh
|
|
```
|
|
|
|
To bootstrap a Windows instance:
|
|
|
|
```console
|
|
$ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://code.infektor.net/config/bootstrap/raw/master/bootstrap-Windows.ps1'))
|
|
```
|
|
|
|
## 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()'
|
|
```
|