More command line installation instructions

This commit is contained in:
Out Of Ideas 2024-01-27 20:16:19 -06:00
parent ca3ad6e292
commit 0033d9f08d

View file

@ -366,12 +366,7 @@ Now initialize the swap parititon.
mkswap <swap partition>
```
Replace **\<swap partition\>** with the name of the root partition (ie. `/dev/sda1`).
### Setting the keybord layout
```sh
sed -i 's/us/dvorak/g' /etc/rc.conf
```
The keymaps are listed in `/usr/share/kbd/keymaps`. If you are using a different keymap, then replace `dvorak` with that keymap. The keymap will be changed back to Gradma's keymap later.
### Mounting filesystems
### Mount for Installation
Mount the filesystem.
```sh
mount <root partition> /mnt
@ -384,22 +379,85 @@ mkdir -p /mnt/boot/efi/
mount <boot partiton> /mnt/boot/efi/
```
Replace **\<boot partition\>** with the boot partition (ie. `/dev/sda1`).
### Installing the Base System
Choose the XPBS meathod or the ROOTFS meathod.
#### XBPS Meathod
Select a mirror from [xmirror.voidlinux.org](https://xmirror.voidlinux.org/). Favor teir 1 mirrors. They are official. If you must visit the site through the terminal, intsall `elinks`.
Now prepare for `chroot`.
Now set the mirror as a shell variable.
```sh
mount -t proc none /mnt/proc
mount -t sysfs none /mnt/sys
mount --rbind /dev /mnt/dev
mount --rbind /run /mnt/run
REPO=<mirror>
```
Copy over network files.
Replace **\<mirror\>** with the mirror (ie. `https://mirrors.servercentral.com/voidlinux/`).
Copy the RSA keys into the system.
```sh
cp /etc/resolv.conf /etc/hosts /mnt/
mkdir -p /mnt/var/db/xbps/keys
cp /var/db/xbps/keys/* /mnt/var/db/xbps/keys/
```
Now `chroot`.
Use XBPS to install the base system.
```
XBPS_ARCH=x86_64 xbps-install -S -r /mnt -R "$REPO" base-system
```
#### ROOTFS Meathod
Select a mirror from [xmirror.voidlinux.org](https://xmirror.voidlinux.org/). Favor teir 1 mirrors. They are official. If you must visit the site through the terminal, intsall `elinks`.
Now set the mirror as a shell variable.
```sh
chroot /mnt /bin/bash
REPO=<mirror>
```
Replace **\<mirror\>** with the mirror (ie. `https://mirrors.servercentral.com/voidlinux`).
The Void Linux installation medium provides no way to download files from the web without running a long sring of commands. So I recommend installing `wget` to do so. If you must visit the site through the terminal, intsall `elinks` instead and use that to download.
Update the package manager.
```sh
xbps-install -R $REPO -u xbps
```
Install `wget`.
```sh
xbps-install -S -R $REPO wget
```
Visit the [Download](https://voidlinux.org/download/) page. Locate the link to the ROOTFS tarball for glibc.
If using `wget`, then view/copy the link, and run:
```sh
wget <link>
```
Replace **\<link\>** with the link to the ROOTFS tarball.
Install the nessessary tool for unpacking tarballs
```sh
xbps-install -S -R $REPO xz
```
Now unpack it.
```sh
tar xvf void-*-ROOTFS*.tar.xz -C /mnt
```
Make sure you only download one ROOTFS tarball, or the wildcard will select more than one.
### Changing Root
To change root, you can use `xchroot` in the CLI installation. I tried to use `xchroot` after installing using the GUI meathod, and it did not work.
Chroot into the sytem.
```sh
xchroot /mnt /bin/bash
```
### Updating System
If you followed the XBPS meathod, skip this section.
Update the system:
```sh
xbps-install -Su xbps
xbps-install -u
xbps-install base-system
xbps-remove base-voidstrap
```
### Setting the keybord layout
```sh
sed -i 's/us/dvorak/g' /etc/rc.conf
```
The keymaps are listed in `/usr/share/kbd/keymaps`. If you are using a different keymap, then replace `dvorak` with that keymap. The keymap will be changed back to Grandma's keymap later.
## GUI
### Running the installer
Running the installer is simple.
@ -776,7 +834,7 @@ Update the package manager.
```sh
xbps-install -u xbps
```
#### UEFI
#mkfs.vfat <### UEFI
Install a terminal text editor of choice
```sh
xbps-install -S vis