Last active
August 27, 2020 14:43
-
-
Save Xithrius/04388a423127339ddf2f9dae346427cd to your computer and use it in GitHub Desktop.
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
# My attempt at the entire archlinux install on one script as documentation. Don't actually run this lol. | |
# I'm not including keyboard layouts because no. | |
# If you don't have this, boot correctly dammit. | |
ls /sys/firmware/efi/efivars | |
# Enter iwctl to setup the wifi. | |
iwctl | |
# Get the device names | |
device list | |
# Get the networks from the station | |
station <device> get-networks | |
# Use iwctl to connect to your network. | |
iwctl --passphrase <passphrase> station <device> connect <SSID> | |
# time stuff | |
timedatectl set-ntp true | |
# I'm not assuming what hardware you have. Partition on your own with cfdisk. | |
# Example layouts: https://wiki.archlinux.org/index.php/Partitioning#Example_layouts | |
cfdisk /dev/sda | |
mkfs.ext /dev/root_partition | |
mkswap /dev/swap_partition | |
swapon /dev/swap_partition | |
# Usually defaults to /dev/sda1 | |
mount /dev/root_partition /mnt | |
# I'm guessing your mirrorlist is already good. if not, edit it with vim after running "pacman -S vim", then "vim /etc/pacman.d/mirrorlist". No need to sudo pacman because you're already root, dummy. Pacstrap all the required things afterward. | |
pacstrap /mnt base base-devel linux linux-firmware man-db man-pages texinfo networkmanager vim | |
# Stab your gen. | |
genfstab -U /mnt >> /mnt/etc/fstab | |
# Time to break everything. Remember to reconnect to your wifi with iwctl. | |
arch-chroot /mnt | |
# Bunch of random crap. | |
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime && hwclock --systohc && locale-gen | |
# vim stuff. | |
vim /etc/locale.conf # put "LANG=en_US.UTF-8" (without quotes, obv. | |
# I'm not going to set a different keyboard layout. Good luck with that. | |
# Oh boy! Hostname stuff! | |
vim /etc/hostname # Put name of computer in here. That's all. | |
vim /etc/hosts # Every quote here goes on a different line: "127.0.0.1 localhost" "::1 localhost" "127.0.1.1 hostname_from_other_file.localdomain hostname_from_other_file" | |
# Set dat password. | |
passwd | |
# Install microcode, bootloader, and other useful stuff like your entire desktop. Asumming you have an intel processor. Docs here: https://wiki.archlinux.org/index.php/Microcode#Installation. Also installing grub bootloader. Other stuff comes later. | |
pacman -Sy intel-ucode grub | |
# Actually install grub thingy. | |
grub-install --target=x86_64 && grub-mkconfig -o /boot/grub/grub.cfg | |
# Install desktop stuff. Will probably work. | |
pacman -Sy sddm xorg plasma kde-applications i3 nvidia | |
# configure the users. | |
useradd -m someusername | |
passwd someusername | |
# Sudo stuff | |
pacman -Sy sudo | |
usermod -aG wheel,audio,video,optical,storage someusername | |
visudo # scroll down to line "%wheel ALL=(ALL) ALL" and remove comment. | |
# At this point you're on your own. I don't know what problems you're going to run into. | |
exit | |
umount -R /mnt | |
reboot # glhf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment