Skip to content

Instantly share code, notes, and snippets.

@j1cs
Last active August 10, 2020 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j1cs/92b2c665f86f84e769823494937ce67b to your computer and use it in GitHub Desktop.
Save j1cs/92b2c665f86f84e769823494937ce67b to your computer and use it in GitHub Desktop.
pacman -Sy
pacman -S gptfdisk
cfdisk /dev/sda
mkfs.vfat -n BOOT /dev/sda1
mkfs.ext4 -L ROOT /dev/sda2
mkswap -L SWAP /dev/sda3
mount /dev/sda2 /mnt
mkdir -p /mnt/boot/efi
mount /dev/sda1 /mnt/boot/efi
swapon /dev/sda3
basestrap /mnt base base-devel runit elogind-runit
fstabgen -U /mnt >>/mnt/etc/fstab
artools-chroot /mnt
pacman -S linux linux-firmware grub os-prober vim sudo
grub-install --target=x86_64-efi
grub-mkconfig -o /boot/grub/grub.cfg
useradd -m user # change user by your nick
passwd user
passwd
vim /etc/sudoers # uncomment wheel group
usermod -a -G wheel,video,audio,input,power,storage,optical,lp,scanner,dbus,uucp user
su glats
cd
wget https://gist.githubusercontent.com/glats/a0a44bfb5a2aee7fef5315fb4dbf9875/raw/32182af07e98aea02ac4adb3ad700a95fa6973b4/pkgrunit.txt
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -s
su -c 'pacman -U *.tar.xz'
yay -S --needed - < pkgrunit.txt
git init
git remote add origin https://github.com/glats/dotfiles-wm.git
git fetch
git reset origin/x240
git checkout -t origin/x240
exit
ln -s /etc/runit/sv/connmand /etc/runit/runsvdir/default
ln -s /etc/runit/sv/sddm /etc/runit/runsvdir/default
ln -s /etc/runit/sv/sshd /etc/runit/runsvdir/default
ln -s /etc/runit/sv/syslog-ng /etc/runit/runsvdir/default
nvim /etc/locale.gen # uncomment your locale
locale-gen
ln -sf /usr/share/zoneinfo/America/Santiago /etc/localtime
hwclock --systohc # synchronize your date to the bios
echo 'hostname' >| /etc/hostname # where `hostname` is the name of your pc
cat >> /etc/locale.conf <<EOL
export LANG="en_US.UTF-8"
export LC_COLLATE="C"
EOL
# where LANG is your previous /etc/locale.gen
cat >> /etc/hosts <<EOL
127.0.0.1 localhost localhost
::1 localhost localhost
127.0.1.1 myhostname myhostname
EOL
# where myhostname is your previous /etc/hostname
exit
umount -R /mnt
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment