Arch Linux Cheat Sheet by Misterrabinhalder Via Cheatography.Com/35799/Cs/18847
Total Page:16
File Type:pdf, Size:1020Kb
Arch Linux Cheat Sheet by misterrabinhalder via cheatography.com/35799/cs/18847/ Pre-Ins tal lation Configu ration Verify signature Fstab gpg --keyse rver pgp.mit .edu --keyse rve r-o ptions auto-ke y-r etr ieve -- genfstab -U /mnt >> /mnt/et c/f stab verify archli nux -ve rsi on-x86 _64 .is o.sig Chroot Boot the live environment arch-ch root /mnt The live environ ment can be booted from a USB flash drive, an optical Time zone disc or a network with PXE ln -sf /usr/sh are /zo nei nfo /As ia/ Kol kata /etc/lo cal time Set the keyboard layout hwclock --systohc ls /usr/sh are /kb d/k eym aps /* */ *.map.gz Localiz ation loadkeys us vi /etc/lo cal e.gen Set the console font locale-gen ls /usr/sh are /kb d/c ons ole fonts echo 'LANG=e n_U S.UT F-8' > /etc/lo cal e.conf setfont Lat2-Te rmi nus16 echo 'KEYMAP =us' > /etc/vc ons ole .conf echo 'FONT=L at2 -Te rmi nus16' >> /etc/vc ons ole .conf Verify boot mode Network configu ration ls /sys/fi rmw are /ef i/e fivars echo 'localh ost' > /etc/ho stname Connect to the Internet ping archlin ux.org Initramfs mkinitcpio -p linux Update the system clock Root password timedat ectl set-ntp true passwd Partition the disk fdisk -l Boot loader fdisk /dev/sda pacman -S grub grub-in stall --targe t=i 386-pc /dev/sda Format the partitions grub-mk config -o /boot/g rub /gr ub.cfg mkswap /dev/sda1 swapon /dev/sda1 mkfs.ext4 /dev/sda2 Mount the file systems mount /dev/sda2 /mnt Install ation Select the mirrors pacman -Sy pacman -S pacman- con trib curl -s "h ttp s:/ /ww w.ar ch lin ux.org /mi rro rli st/ ? co unt ry= IN& pr oto col =ht tp& pr oto col =ht tps &i p_v ers ion =4& us e_m irr or_ sta tu s=on " | sed -e 's/^#S erv er/ Ser ver/' -e '/^#/d' | rankmir rors -n 5 - > /etc/pa cma n.d/ mi rro rlist Install the base packages pacstrap /mnt base base-devel By misterrabinhalder Published 22nd February, 2019. Sponsored by ApolloPad.com Last updated 1st March, 2019. Everyone has a novel in them. Finish Yours! Page 1 of 1. https://apollopad.com cheatography.com/misterrabinhalder/.