wpa_supplicant -B -i wlan0 -c <(wpa_passphrase *SSID *password*)
dhcpcd --ipv4only
- use
cfdisk
:- set up main partition 1 mounted on
/
- set up EFI partition 2 mounted on
/boot/esp
- set up main partition 1 mounted on
mkfs.ext4 /dev/sda1
mkfs.vfat -n EFI /dev/sda2
mount /dev/sda1 /mnt
mkdir -p /mnt/boot/esp
mount /dev/sda2 /mnt/boot/esp
fallocate -l 4g /mnt/swapfile
chmod 0600 /mnt/swapfile
mkswap /mnt/swapfile
- Use
reflector
to choose a fast mirror and save it in our installation
pacman -Syu reflector
reflector --verbose --number 5 --country israel --country germany --protocol http --protocol https --sort rate | tee /etc/pacman.d/mirrorlist
cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist
- install system
pacstrap /mnt grub base base-devel linux linux-firmware
genfstab -U /mnt >> /mnt/etc/fstab
echo '/swapfile none swap defaults 0 0' >> /mnt/etc/fstab
arch-chroot /mnt
grub-install --target=x86_64-efi --efi-directory=/boot/esp --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
pacman -S \
bind-tools \
git \
gnome \
gnome-extra \
htop \
iw \
vim \
xorg \
ln -sf /usr/bin/vim /usr/bin/vi
ln -sf /usr/share/zoneinfo/Asia/Jerusalem /etc/localtime
hwclock --systohc
sed -i -E 's/^#(en_US.UTF-8.*)/\1/g' /etc/locale.gen
sed -i -E 's/^#(he_IL.UTF-8.*)/\1/g' /etc/locale.gen
locale-gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
export HOSTNAME=*hostname*
cat <<EOF > /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 $HOSTNAME.home $HOSTNAME
EOF
hostnamectl set-hostname $HOSTNAME
useradd -m -G wheel $USER
echo '%wheel ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/10-nopasswd
chmod 0440 /etc/sudoers.d/10-nopasswd
visudo -c
systemctl enable gdm.service
systemctl enable NetworkManager.service
systemctl enable systemd-networkd.service
sudo rm /etc/resolv.conf
sudo ln -sf /var/run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
reboot
git clone https://aur.archlinux.org/yay.git
cd yay && makepkg -si
CORES=$(getconf -a | grep _NPROCESSORS_ONLN | awk '{print $2}')
sed -i -E "s/^#?(MAKEFLAGS).*$/\1=\"-j$CORES\"/" /etc/makepkg.conf
sed -i -E "s/^(COMPRESSZST).*$/\1=\(zstd -c -z -q - --threads=$CORES\)/" /etc/makepkg.conf
sed -i -E "s/^(PKGEXT).*$/\1=".pkg.tar.zst"/" /etc/makepkg.conf
sed -i -E 's/^(SRCEXT).*$/\1=".src.tar.zst"/' /etc/makepkg.conf
yay -Sy google-chrome
yay -Sy gnome-terminal-transparency
pacman -S chrome-gnome-shell
Flat-Remix-GTK-Blue-Dark-Solid
- clipboard indicator
- horizontal workspaces
- user themes
- removable drive menu
- workspace indicator
- system-monitor
- appindicator-support
gsettings set org.gnome.nautilus.preferences always-use-location-entry true
sudo pacman -S libinput-gestures
sudo usermod -aG input $USER
sudo libinput-gestures-setup autostart
and reboot
- fixes bugs with input grabbing in remote / VM sessions
- valid sessions are listed in
/usr/share/xsessions
sed -i -E 's/(^XSession).*$/\1=gnome-xorg/' /var/lib/AccountsService/users/$USER