Skip to content

Instantly share code, notes, and snippets.

@nsyntych
Forked from romanblanco/arch.sh
Created September 8, 2020 20:59
Show Gist options
  • Select an option

  • Save nsyntych/1f8ac76ea87543a6b15d4f8e9feca99c to your computer and use it in GitHub Desktop.

Select an option

Save nsyntych/1f8ac76ea87543a6b15d4f8e9feca99c to your computer and use it in GitHub Desktop.
Archlinux install notes
# https://haydenjames.io/linux-performance-almost-always-add-swap-space/
# https://loganmarchione.com/2017/01/encrypted-arch-linux-install/
# wifi-menu to set wifi
# dev/sda2 is apparently in use by the system; will not make a filesystem here!
# https://superuser.com/questions/668347/installing-arch-linux-unable-to-format-filesystem#comment844950_668347
# dmsetup ls
# dmsetup remove fedora_acer-swap
# dmsetup remove fedora_acer-root
# dmsetup remove fedora_acer-home
cfdisk /dev/sda
# sda1 Boot Primary Linux - 500
# sda2 Primary Linux ~
# lsblk -f
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda2
mount /dev/sda2 /mnt
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
## notes:
# lsblk -f
# fdisk -l
##
pacstrap /mnt base
genfstab /mnt >> /mnt/etc/fstab # file system table
arch-chroot /mnt
echo "notebook" > /etc/hostname
ln -s /usr/share/zoneinfo/Europe/Prague /etc/localtime
# uncomment in /etc/locale.gen en_US.UTF8 UTF-8
locale-gen
echo "KEYMAP=us" >> /etc/vconsole.conf
echo "LANG=\"en_US.UTF-8\"" >> /etc/locale.conf
mkinitcpio -p linux
passwd # set root password
pacman -S grub
grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda
exit
umount -R /mnt
reboot
useradd -m -G wheel -s /bin/bash roman
gpasswd -a roman users
passwd roman
# netbook: acer aspire v5: /etc/default/grup: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor"
# grub-mkconfig -o /boot/grub/grub.cfg
# aur:
git clone https://aur.archlinux.org/pdftk-bin.git
cd pdftk-bin
makepkg -isr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment