Reformat to guide
This commit is contained in:
parent
10d9121aeb
commit
5bbf86839a
1 changed files with 99 additions and 11 deletions
|
@ -1,17 +1,35 @@
|
||||||
# loadkeys be-latin1
|
# System Installation Guide
|
||||||
|
|
||||||
|
Attach ArchLinux boot key.
|
||||||
|
|
||||||
|
Set the keyboard layout.
|
||||||
|
|
||||||
|
```
|
||||||
|
# loadkeys be-latin1
|
||||||
|
```
|
||||||
|
|
||||||
|
Connect to the internet.
|
||||||
|
|
||||||
|
```
|
||||||
# iwctl
|
# iwctl
|
||||||
[iwd]# station wlan0 connect <network>
|
[iwd]# station wlan0 connect <network>
|
||||||
^D
|
```
|
||||||
|
|
||||||
|
Escape the menu with ^D. Automatically update the time.
|
||||||
|
|
||||||
|
```
|
||||||
# timedatectl set-ntp true
|
# timedatectl set-ntp true
|
||||||
|
```
|
||||||
|
|
||||||
|
Format the disk.
|
||||||
|
|
||||||
|
```
|
||||||
# fdisk -l
|
# fdisk -l
|
||||||
# fdisk /dev/sda
|
# fdisk /dev/sda
|
||||||
: g
|
: g
|
||||||
: n, 1, _, +1G
|
: n, 1, _, +1G
|
||||||
: t, 1, 1
|
: t, 1, 1
|
||||||
: n, 2, _, +4G
|
: n, 2, _, +8G
|
||||||
: t, 2, 19
|
: t, 2, 19
|
||||||
: n, 3, _, _
|
: n, 3, _, _
|
||||||
: w
|
: w
|
||||||
|
@ -27,14 +45,30 @@
|
||||||
# mount /dev/MyGroup/MyVolume /mnt
|
# mount /dev/MyGroup/MyVolume /mnt
|
||||||
# mkdir /mnt/boot
|
# mkdir /mnt/boot
|
||||||
# mount /dev/sda1 /mnt/boot
|
# mount /dev/sda1 /mnt/boot
|
||||||
|
```
|
||||||
|
|
||||||
|
Enable swap.
|
||||||
|
|
||||||
|
```
|
||||||
# swapon /dev/sda2
|
# swapon /dev/sda2
|
||||||
|
```
|
||||||
|
|
||||||
|
Install the kernel. Also install keyring because keys will be needed.
|
||||||
|
|
||||||
|
```
|
||||||
# pacman -Sy archlinux-keyring
|
# pacman -Sy archlinux-keyring
|
||||||
# pacstrap /mnt base linux linux-firmware
|
# pacstrap /mnt base linux linux-firmware
|
||||||
|
```
|
||||||
|
|
||||||
|
Make the mounts persistent.
|
||||||
|
|
||||||
|
```
|
||||||
# genfstab -U /mnt >> /mnt/etc/fstab
|
# genfstab -U /mnt >> /mnt/etc/fstab
|
||||||
|
```
|
||||||
|
|
||||||
|
Configure the system.
|
||||||
|
|
||||||
|
```
|
||||||
# arch-chroot /mnt
|
# arch-chroot /mnt
|
||||||
# ln -sf /usr/share/zoneinfo/Europe/Brussels /etc/localtime
|
# ln -sf /usr/share/zoneinfo/Europe/Brussels /etc/localtime
|
||||||
# hwclock --systohc
|
# hwclock --systohc
|
||||||
|
@ -42,38 +76,92 @@
|
||||||
# echo "LANG=en_GB.UTF-8" >> /etc/locale.conf
|
# echo "LANG=en_GB.UTF-8" >> /etc/locale.conf
|
||||||
# echo "KEYMAP=be-latin1" >> /etc/vconsole.conf
|
# echo "KEYMAP=be-latin1" >> /etc/vconsole.conf
|
||||||
# echo "Laptop-Tibo" >> /etc/hostname
|
# echo "Laptop-Tibo" >> /etc/hostname
|
||||||
# echo "8:2" > /sys/power/resume
|
```
|
||||||
|
|
||||||
|
Enable hibernation.
|
||||||
|
|
||||||
|
```
|
||||||
|
# echo "8:2" > /sys/power/resume
|
||||||
|
```
|
||||||
|
|
||||||
|
Create initial ramdisk environment.
|
||||||
|
|
||||||
|
```
|
||||||
# pacman -S vim lvm2
|
# pacman -S vim lvm2
|
||||||
# vim /etc/mkinitcpio.conf
|
# vim /etc/mkinitcpio.conf
|
||||||
HOOKS=(base udev autodetect modconf block lvm2 filesystems resume keyboard fsck)
|
```
|
||||||
|
Change the file to match the following line:
|
||||||
|
`HOOKS=(base udev autodetect modconf block lvm2 filesystems resume keyboard fsck)`
|
||||||
|
|
||||||
|
```
|
||||||
# mkinitcpio -P
|
# mkinitcpio -P
|
||||||
|
```
|
||||||
|
|
||||||
|
Generate root password.
|
||||||
|
|
||||||
|
```
|
||||||
# passwd
|
# passwd
|
||||||
|
```
|
||||||
|
|
||||||
|
Configure boot manager. Also enable hibernation.
|
||||||
|
|
||||||
|
```
|
||||||
# pacman -S grub efibootmgr
|
# pacman -S grub efibootmgr
|
||||||
# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
|
# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
|
||||||
# vim /etc/default/grub
|
# vim /etc/default/grub
|
||||||
GRUB_TIMEOUT=0
|
```
|
||||||
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet resume=/dev/sda2"
|
|
||||||
GRUB_PRELOAD_MODULES="part_gpt part_msdos lvm"
|
|
||||||
# grub-mkconfig -o /boot/grub/grub.cfg
|
|
||||||
|
|
||||||
|
Change the file to match the following lines:
|
||||||
|
|
||||||
|
`GRUB_TIMEOUT=0`
|
||||||
|
`GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet resume=/dev/sda2"`
|
||||||
|
`GRUB_PRELOAD_MODULES="part_gpt part_msdos lvm"`
|
||||||
|
|
||||||
|
```
|
||||||
|
# grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
```
|
||||||
|
|
||||||
|
Add the default user (me).
|
||||||
|
|
||||||
|
```
|
||||||
# useradd -m -G wheel,users tdpeuter
|
# useradd -m -G wheel,users tdpeuter
|
||||||
# passwd tdpeuter
|
# passwd tdpeuter
|
||||||
|
```
|
||||||
|
|
||||||
|
Make the system automatically log into that user.
|
||||||
|
|
||||||
|
```
|
||||||
# sudo mkdir -p /etc/systemd/system/getty@tty1.service.d
|
# sudo mkdir -p /etc/systemd/system/getty@tty1.service.d
|
||||||
# sudo vim /etc/systemd/system/getty@tty1.service.d/autologin.conf
|
# sudo vim /etc/systemd/system/getty@tty1.service.d/autologin.conf
|
||||||
|
```
|
||||||
|
Contents of the file:
|
||||||
|
|
||||||
|
```
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=
|
ExecStart=
|
||||||
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin tdpeuter - $TERM
|
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin tdpeuter - $TERM
|
||||||
|
```
|
||||||
|
|
||||||
|
Install sudo.
|
||||||
|
|
||||||
|
```
|
||||||
# pacman -S sudo
|
# pacman -S sudo
|
||||||
# visudo
|
# visudo
|
||||||
%wheel ALL=(ALL:ALL) ALL [uncomment this]
|
```
|
||||||
|
|
||||||
|
In the file that comes up, uncomment the following line:
|
||||||
|
`%wheel ALL=(ALL:ALL) ALL`
|
||||||
|
|
||||||
|
Install a networkmanager so you have bloody internet when you reboot (otherwise rendering your device utterly useless).
|
||||||
|
|
||||||
|
```
|
||||||
# pacman -S networkmanager
|
# pacman -S networkmanager
|
||||||
|
```
|
||||||
|
|
||||||
^D
|
Escape fakeroot with ^D.
|
||||||
|
|
||||||
|
Finally,
|
||||||
|
|
||||||
|
```
|
||||||
# reboot
|
# reboot
|
||||||
|
```
|
Loading…
Reference in a new issue