Last active
November 30, 2021 15:33
-
-
Save MinmoTech/469fa82fe075605eeaf9066417333dd6 to your computer and use it in GitHub Desktop.
Arch Install Guide
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#check network | |
wifi-menu | |
ip link | |
ping archlinux.org | |
# ensure proper system clock | |
timedatectl set-ntp true | |
# list partitions | |
lsblk | |
# format target partition/drive (replace sda with target) | |
fdisk /dev/sda | |
# p to list partition, d to delete | |
# n to create new partition, enter for primary, enter for number 1, enter for location of first sector, +200M for size | |
n, enter, enter, enter, +200M | |
n, enter, enter, enter, +8G | |
n, enter, enter, enter, +30G | |
n, p, enter, enter, enter | |
# w to write | |
w | |
# filesystems | |
mkfs.ext4 /dev/sda1 | |
mkfs.ext4 /dev/sda3 | |
mkfs.ext4 /dev/sda4 | |
# activate swap | |
mkswap /dev/sda2 | |
swapon /dev/sda2 | |
# mount partitions | |
mount /dev/sda3 /mnt | |
mkdir /mnt/home | |
mkdir /mnt/boot | |
mount /dev/sda1 /mnt/boot | |
mount /dev/sda4 /mnt/home | |
# install arch | |
pacstrap /mnt base base-devel vim | |
# generate fstab | |
genfstab -U /mnt >> /mnt/etc/fstab | |
# change root into new system | |
arch-chroot /mnt | |
# set hostname | |
vim /etc/hostname | |
# set timezone | |
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime | |
# set clock | |
hwclock --systohc | |
# generate locale | |
vim /etc/locale.gen | |
# uncomment relevant locale and save | |
locale-gen | |
# set locale accordingly LANG=en_US.UTF-8 | |
vim /etc/locale.conf | |
LANG=en_US.UTF-8 | |
# install a network manager | |
pacman -S networkmanager | |
systemctl enable NetworkManager | |
# install bootloader | |
pacman -S grub | |
grub-install --target=i386-pc /dev/sda | |
grub-mkconfig -o /boot/grub/grub.cfg | |
# set password | |
passwd | |
# exit and reboot | |
exit | |
umount -R /mnt | |
reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add user | |
useradd -m -g wheel julius | |
passwd julius | |
vim /etc/sudoers | |
#uncomment %wheel ALL=(ALL) NOPASSWD: ALL | |
#wifi: https://docs.ubuntu.com/core/en/stacks/network/network-manager/docs/configure-wifi-connections | |
nmcli r wifi on | |
nmcli d wifi connect my_wifi password <password> | |
# keymap: | |
setxkbmap -layout us -variant altgr-intl | |
# configure fonts! | |
# Install YADM | |
curl -fLo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm && chmod a+x /usr/local/bin/yadm | |
# clone and bootstrap | |
yadm clone --bootstrap https://github.com/juligreen/Configfiles |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment