distros:arch_linux_install
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
distros:arch_linux_install [2016/10/05 11:35] – external edit 127.0.0.1 | distros:arch_linux_install [2024/08/13 17:02] (current) – removed Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Information ====== | ||
- | * Arch Linux Installation | ||
- | |||
- | ====== Download ====== | ||
- | |||
- | * https:// | ||
- | |||
- | ====== Installation Notes ====== | ||
- | |||
- | * https:// | ||
- | |||
- | ====== Initial ====== | ||
- | |||
- | ===== EFI Entry Wipe ===== | ||
- | |||
- | * Repeat '' | ||
- | |||
- | efibootmgr -v | ||
- | |||
- | efibootmgr -b 0000 -B | ||
- | |||
- | efibootmgr -b 0001 -B | ||
- | |||
- | efibootmgr -O | ||
- | |||
- | ===== Drive Wipe ===== | ||
- | |||
- | * See [[distros: | ||
- | * Change ''/ | ||
- | * Run the '' | ||
- | |||
- | lsblk | ||
- | |||
- | sgdisk --zap-all '/ | ||
- | |||
- | dd if='/ | ||
- | |||
- | reboot | ||
- | |||
- | ===== Test Internet ===== | ||
- | |||
- | **** | ||
- | |||
- | ping ' | ||
- | |||
- | ===== Wireless Connection ===== | ||
- | |||
- | * '' | ||
- | * If single wireless interface exists, no need to specify it | ||
- | |||
- | iw dev | ||
- | |||
- | wifi-menu -o ' | ||
- | |||
- | ===== Enable SSH ===== | ||
- | |||
- | * Allows installation over SSH | ||
- | * '' | ||
- | * Connect with the username '' | ||
- | |||
- | ip addr | ||
- | |||
- | passwd | ||
- | |||
- | systemctl start ' | ||
- | |||
- | ===== Synchronize Time ===== | ||
- | |||
- | **** | ||
- | |||
- | timedatectl set-ntp ' | ||
- | |||
- | ====== Disk Partitioning ====== | ||
- | |||
- | * See [[information: | ||
- | |||
- | ====== Install ====== | ||
- | |||
- | ===== Update Mirrorlist ===== | ||
- | |||
- | * Uncomment the commented Server URLs | ||
- | |||
- | wget ' | ||
- | |||
- | nano '/ | ||
- | |||
- | ==== Easy Update Mirrorlist ==== | ||
- | |||
- | * Useful for copy/paste over SSH | ||
- | |||
- | wget ' | ||
- | |||
- | ===== Install ===== | ||
- | |||
- | **** | ||
- | |||
- | pacstrap -i '/ | ||
- | |||
- | ====== Configuration ====== | ||
- | |||
- | ===== fstab ===== | ||
- | |||
- | **** | ||
- | |||
- | genfstab -L '/ | ||
- | |||
- | ===== chroot ===== | ||
- | |||
- | **** | ||
- | |||
- | arch-chroot '/ | ||
- | |||
- | ===== Time Zone ===== | ||
- | |||
- | ln -s '/ | ||
- | |||
- | hwclock --systohc --utc | ||
- | |||
- | ===== Locale ===== | ||
- | |||
- | ==== Set locale.gen ==== | ||
- | |||
- | * Uncomment '' | ||
- | |||
- | nano '/ | ||
- | |||
- | ==== Set locale.conf ==== | ||
- | |||
- | echo LANG=' | ||
- | |||
- | ==== Easy .conf and .gen Set ==== | ||
- | |||
- | * Useful for copy/paste over SSH | ||
- | * This can be used instead of the two commands above | ||
- | |||
- | sed -i ' | ||
- | |||
- | ===== Generate ===== | ||
- | |||
- | **** | ||
- | |||
- | locale-gen | ||
- | |||
- | ===== Hostname ===== | ||
- | |||
- | * Change '' | ||
- | |||
- | echo ' | ||
- | |||
- | ===== Pacman ===== | ||
- | |||
- | * Uncomment '' | ||
- | * Uncomment '' | ||
- | * Add '' | ||
- | |||
- | nano '/ | ||
- | |||
- | pacman -Syyuu | ||
- | |||
- | ===== NetworkManager ===== | ||
- | |||
- | pacman -S ' | ||
- | |||
- | systemctl enable ' | ||
- | |||
- | ===== F2FS ===== | ||
- | |||
- | * If root partition is **F2FS**, this is mandatory | ||
- | |||
- | pacman -S ' | ||
- | |||
- | ===== OpenSSH ===== | ||
- | |||
- | * This is needed for both the service and client | ||
- | |||
- | pacman -S ' | ||
- | |||
- | ===== Intel Microcode ===== | ||
- | |||
- | **** | ||
- | |||
- | pacman -S ' | ||
- | |||
- | ===== Root Password ===== | ||
- | |||
- | **** | ||
- | |||
- | passwd | ||
- | |||
- | ===== Create User ===== | ||
- | |||
- | * Change '' | ||
- | |||
- | useradd -m -G ' | ||
- | |||
- | passwd ' | ||
- | |||
- | chfn ' | ||
- | |||
- | ===== Enable SSH ===== | ||
- | |||
- | pacman -S ' | ||
- | |||
- | nano '/ | ||
- | |||
- | PermitRootLogin no | ||
- | |||
- | systemctl enable ' | ||
- | |||
- | ===== sudo ===== | ||
- | |||
- | * Uncomment '' | ||
- | |||
- | EDITOR=' | ||
- | |||
- | %wheel ALL=(ALL) ALL | ||
- | |||
- | ===== Nano as default editor ===== | ||
- | |||
- | nano '/ | ||
- | |||
- | Defaults editor = / | ||
- | |||
- | ==== Easy Defaults editor ==== | ||
- | |||
- | * Useful for copy/paste over SSH | ||
- | |||
- | echo ' | ||
- | |||
- | ===== Allow nano text wrapping ===== | ||
- | |||
- | nano '/ | ||
- | |||
- | set nowrap | ||
- | |||
- | ==== Easy set nowrap ==== | ||
- | |||
- | * Useful for copy/paste over SSH | ||
- | |||
- | sed -i 's/# set nowrap/set nowrap/ | ||
- | |||
- | ====== Initramfs ====== | ||
- | |||
- | * Modules line is needed only if root partition is F2FS | ||
- | * Add '' | ||
- | * Add '' | ||
- | * Add '' | ||
- | |||
- | ===== Options ===== | ||
- | |||
- | nano '/ | ||
- | |||
- | MODULES=" | ||
- | |||
- | HOOKS=" | ||
- | |||
- | COMPRESSION=cat | ||
- | |||
- | ===== Generate ===== | ||
- | |||
- | **** | ||
- | |||
- | mkinitcpio -P | ||
- | |||
- | ====== Boot Loader ====== | ||
- | |||
- | ===== systemd-boot ===== | ||
- | |||
- | * For GPT/EFI set-ups | ||
- | |||
- | ==== Install ==== | ||
- | |||
- | **** | ||
- | |||
- | bootctl install | ||
- | |||
- | ==== Entry ==== | ||
- | |||
- | * Add '' | ||
- | * Change '' | ||
- | * Remove '' | ||
- | |||
- | nano '/ | ||
- | |||
- | title Arch Linux (linux-kernel) | ||
- | linux / | ||
- | initrd / | ||
- | initrd / | ||
- | options root=/ | ||
- | |||
- | ==== Loader ==== | ||
- | |||
- | nano '/ | ||
- | |||
- | timeout 2 | ||
- | default linux-kernel | ||
- | editor 0 | ||
- | |||
- | ===== GRUB ===== | ||
- | |||
- | * For MBR/Legacy set-ups | ||
- | |||
- | ==== Install ==== | ||
- | |||
- | pacman -S ' | ||
- | |||
- | grub-install --target=' | ||
- | |||
- | ==== Settings ==== | ||
- | |||
- | nano '/ | ||
- | |||
- | GRUB_TIMEOUT 2 | ||
- | |||
- | ==== Finalize ==== | ||
- | |||
- | **** | ||
- | |||
- | grub-mkconfig -o '/ | ||
- | |||
- | ===== Finalize ===== | ||
- | |||
- | sync | ||
- | |||
- | exit | ||
- | |||
- | umount -R '/ | ||
- | |||
- | poweroff | ||
- | |||
- | ====== Continue ====== | ||
- | |||
- | * [[distros: | ||
- | |||
- | ====== Notable Folders and Commands ====== | ||
- | |||
- | ===== Show CPU Frequency ===== | ||
- | |||
- | grep ' | ||
- | |||
- | watch -n 0.1 grep \'cpu MHz\' '/ | ||
- | |||
- | ===== Partition Information ===== | ||
- | |||
- | **** | ||
- | |||
- | df -hT | ||
- | |||
- | ===== hdparm Secure Erase ===== | ||
- | |||
- | lsblk | ||
- | |||
- | hdparm -I '/ | ||
- | |||
- | hdparm --user-master u --security-set-pass ' | ||
- | |||
- | hdparm --user-master u --security-erase ' |
C:/www/wiki/data/attic/distros/arch_linux_install.1475681720.txt.gz · Last modified: by 127.0.0.1