-b
for every entry that appears with -v
efibootmgr -v
efibootmgr -b 0000 -B
efibootmgr -b 0001 -B
efibootmgr -O
/dev/sda
to match environmentdd
command for a few seconds or so just to wipe out any surviving disk/partition information at the beginning of the drivelsblk
sgdisk --zap-all '/dev/sda'
dd if='/dev/zero' of='/dev/sda'
reboot
ping 'archlinux.org'
iw dev
is used to find the wireless interface nameiw dev
wifi-menu -o 'wlp3s0'
ifconfig
shows the IP addressroot
ip addr
passwd
systemctl start 'sshd'
timedatectl set-ntp 'true'
wget 'https://www.archlinux.org/mirrorlist/?country=US&protocol=https&ip_version=4' -O '/etc/pacman.d/mirrorlist'
nano '/etc/pacman.d/mirrorlist'
wget 'https://www.archlinux.org/mirrorlist/?country=US&protocol=https&ip_version=4' -O '/tmp/mirrorlist' && sed -i 's/#Server/Server/g' '/tmp/mirrorlist' && mv '/tmp/mirrorlist' '/etc/pacman.d/mirrorlist'
pacstrap -i '/mnt' 'base' 'base-devel'
genfstab -L '/mnt' >> '/mnt/etc/fstab'
arch-chroot '/mnt'
ln -s '/usr/share/zoneinfo/America/New_York' '/etc/localtime'
hwclock --systohc --utc
en_US.UTF-8 UTF-8
in locale.gen
nano '/etc/locale.gen'
echo LANG='en_US.UTF-8' > '/etc/locale.conf'
sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' '/etc/locale.gen' && echo LANG='en_US.UTF-8' > '/etc/locale.conf'
locale-gen
x
to desired hostnameecho 'x' > '/etc/hostname'
Color
and TotalDownload
[multilib]
and its following Include
line on 64-bit installs if multilib is desiredILoveCandy
under Misc optionsnano '/etc/pacman.conf'
pacman -Syyuu
pacman -S 'networkmanager'
systemctl enable 'NetworkManager'
pacman -S 'f2fs-tools'
pacman -S 'openssh'
pacman -S 'intel-ucode'
passwd
espionage724
to desired usernameuseradd -m -G 'wheel' -s '/bin/bash' 'espionage724'
passwd 'espionage724'
chfn 'espionage724'
pacman -S 'openssh'
nano '/etc/ssh/sshd_config'
PermitRootLogin no
systemctl enable 'sshd.socket'
%wheel ALL=(ALL) ALL
EDITOR='nano' visudo
%wheel ALL=(ALL) ALL
nano '/etc/sudoers.d/nano'
Defaults editor = /usr/bin/nano
echo 'Defaults editor = /usr/bin/nano' > '/etc/sudoers.d/nano'
nano '/etc/nanorc'
set nowrap
sed -i 's/# set nowrap/set nowrap/g' '/etc/nanorc'
lvm2
between block
and filesystems
hooks if using LVMencrypt
between block
and filesystems
hooks, but before lvm2
for encrypted root partitionCOMPRESSION=cat
to disable image compressionnano '/etc/mkinitcpio.conf'
MODULES="f2fs crc32 libcrc32c crc32c_generic crc32c-intel crc32-pclmul"
HOOKS="base udev autodetect modconf block encrypt lvm2 filesystems keyboard fsck"
COMPRESSION=cat
mkinitcpio -P
bootctl install
cryptdevice=/dev/sda2:lvm
to options if encryptedroot=
to /dev/mapper/arch-root
if using LVMinitrd /intel-ucode.img
if not using an Intel processornano '/boot/loader/entries/linux-kernel.conf'
title Arch Linux (linux-kernel) linux /vmlinuz-linux initrd /initramfs-linux.img initrd /intel-ucode.img options root=/dev/sda2 rw quiet
nano '/boot/loader/loader.conf'
timeout 2 default linux-kernel editor 0
pacman -S 'grub'
grub-install --target='i386-pc' '/dev/sda'
nano '/etc/default/grub'
GRUB_TIMEOUT 2
grub-mkconfig -o '/boot/grub/grub.cfg'
sync
exit
umount -R '/mnt'
poweroff
grep 'MHz' '/proc/cpuinfo'
watch -n 0.1 grep \'cpu MHz\' '/proc/cpuinfo'
df -hT
lsblk
hdparm -I '/dev/sda' | grep 'not'
hdparm --user-master u --security-set-pass 'x' '/dev/sda'
hdparm --user-master u --security-erase 'x' '/dev/sda'