arch/pkg/de-p1st-installer/README.md

67 lines
1.6 KiB
Markdown
Raw Normal View History

2021-06-18 21:46:50 +02:00
# Arch Installer
2021-05-03 17:38:10 +02:00
## Running the installer
2021-06-14 15:58:54 +02:00
### Via ssh and custom livemedium
2021-05-03 17:38:10 +02:00
2021-06-12 12:16:10 +02:00
1) Build custom [archiso](https://gitlab.archlinux.org/archlinux/archiso) live medium using docker in privileged mode:
2021-05-03 17:38:10 +02:00
```shell
2021-06-12 12:16:10 +02:00
# dependencies: docker, docker-compose
2021-09-06 11:50:23 +02:00
cd build-iso
# sudo systemctl start docker
2021-06-12 12:16:10 +02:00
sudo docker-compose run archiso
ls out/out_dir/*.iso
2021-05-03 17:38:10 +02:00
```
2021-06-14 15:58:54 +02:00
**On the target computer:**
2021-06-12 12:16:10 +02:00
2) Boot into the live medium
2021-06-14 15:58:54 +02:00
3) Connect to the Internet
* [wifi instructions](https://wiki.archlinux.org/title/Iwd#iwctl)
**On some other computer:**
4) Connect to target computer via `ssh`
* See [build-iso/out/out_dir/ssh-host-fingerprints](../../build-iso/out/out_dir/ssh-host-fingerprints)
for verification of the ssh fingerprint of the target computer
5) (Optional) Copy and adjust one of the example configurations (`/etc/de-p1st-installer/*.cfg`) to `/etc/de-p1st-installer/installer.cfg`
* If this step is skipped, then (most) of the configuration can be entered interactively
* TODO: if `ADDITIONAL_PKGS` is empty, interactively ask for it.
2021-06-14 15:58:54 +02:00
6) Run the installer:
2021-05-03 17:38:10 +02:00
```shell
de-p1st-installer
```
2021-06-12 12:16:10 +02:00
### Via official livemedium
2021-05-03 17:38:10 +02:00
2021-06-14 16:03:02 +02:00
1) Boot into [official live medium](https://archlinux.org/download/)
2021-05-03 17:38:10 +02:00
2) Add to `/etc/pacman.conf`:
```shell
[de-p1st]
SigLevel = Optional TrustAll
Server = https://arch.p1st.de
```
2021-06-12 12:16:10 +02:00
3) (Optional) Install screen with a `screenrc` configuration file for long scrollback history
2021-05-14 15:25:25 +02:00
```shell
pacman -Sy
pacman -S de-p1st-screen
2021-06-14 15:58:54 +02:00
# And then start it with:
screen
2021-05-14 15:25:25 +02:00
```
2021-06-12 12:16:10 +02:00
4) Install `de-p1st-installer` to get the install script
```shell
pacman -Sy
pacman -S de-p1st-installer
```
2021-06-14 15:58:54 +02:00
5) Continue with step (5) of "Via custom livemedium"