sisyphus/temp

80 lines
1.7 KiB
Text
Raw Normal View History

2022-04-16 02:39:17 +02:00
# loadkeys be-latin1
# iwctl
[iwd]# station wlan0 connect <network>
2022-04-16 15:47:59 +02:00
^D
2022-04-16 02:39:17 +02:00
# timedatectl set-ntp true
# fdisk -l
# fdisk /dev/sda
: g
: n, 1, _, +1G
: t, 1, 1
: n, 2, _, +4G
2022-04-16 15:47:59 +02:00
: t, 2, 19
: n, 3, _, _
2022-04-16 02:39:17 +02:00
: w
# pvcreate /dev/sda3
# vgcreate MyGroup /dev/sda3
# lvcreate -l +100%FREE MyGroup -n MyVolume
# mkfs.ext4 /dev/MyGroup/MyVolume
# mkswap /dev/sda2
# mkfs.fat -F 32 /dev/sda1
# mount /dev/MyGroup/MyVolume /mnt
# mkdir /mnt/boot
# mount /dev/sda1 /mnt/boot
# swapon /dev/sda2
# pacman -Sy archlinux-keyring
# pacstrap /mnt base linux linux-firmware
# genfstab -U /mnt >> /mnt/etc/fstab
# arch-chroot /mnt
# ln -sf /usr/share/zoneinfo/Europe/Brussels /etc/localtime
# hwclock --systohc
# locale-gen
# echo "LANG=en_GB.UTF-8" >> /etc/locale.conf
# echo "KEYMAP=be-latin1" >> /etc/vconsole.conf
2022-04-16 15:47:59 +02:00
# echo "Laptop-Tibo" >> /etc/hostname
2022-04-18 11:39:39 +02:00
# echo "8:2" > /sys/power/resume
2022-04-16 02:39:17 +02:00
# pacman -S vim lvm2
# vim /etc/mkinitcpio.conf
2022-04-18 11:39:39 +02:00
HOOKS=(base udev autodetect modconf block lvm2 filesystems resume keyboard fsck)
2022-04-16 02:39:17 +02:00
# mkinitcpio -P
# passwd
# pacman -S grub efibootmgr
2022-04-16 03:34:17 +02:00
# grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
# vim /etc/default/grub
2022-04-16 21:45:50 +02:00
GRUB_TIMEOUT=0
2022-04-18 11:39:39 +02:00
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet resume=/dev/sda2"
2022-04-16 15:47:59 +02:00
GRUB_PRELOAD_MODULES="part_gpt part_msdos lvm"
2022-04-16 02:39:17 +02:00
# grub-mkconfig -o /boot/grub/grub.cfg
2022-04-18 11:39:39 +02:00
# useradd -m -G wheel,users tdpeuter
2022-04-16 15:47:59 +02:00
# passwd tdpeuter
2022-04-16 21:45:50 +02:00
# sudo mkdir -p /etc/systemd/system/getty@tty1.service.d
# sudo vim /etc/systemd/system/getty@tty1.service.d/autologin.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin tdpeuter - $TERM
2022-04-16 15:47:59 +02:00
# pacman -S sudo
# visudo
%wheel ALL=(ALL:ALL) ALL [uncomment this]
2022-04-16 03:57:03 +02:00
2022-04-16 15:47:59 +02:00
# pacman -S networkmanager
2022-04-16 03:57:03 +02:00
2022-04-16 15:47:59 +02:00
^D
# reboot