Last active
December 1, 2023 19:30
-
-
Save elmazzun/db75da6a3dedfa98012e1f1177c78984 to your computer and use it in GitHub Desktop.
Arch Linux installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From a live USB | |
Assuming you are using EUFI | |
# ls /sys/firmware/efi/efivars | |
# iwctl | |
[iwd]# device list | |
[iwd]# station wlan0 scan | |
[iwd]# station wlan0 get-networks | |
[iwd]# station wlan0 connect SSID | |
[iwd]# quit | |
# ping -c 1 archlinux.org | |
# timedatectl set-ntp true | |
# fdisk -l | |
# cfdisk /dev/sda | |
/dev/sda1 ; 2G ; EFI System | |
/dev/sda2 ; 8G ; Linux swap | |
/dev/sda3 ; all ; Linux filesystem | |
# mkfs.ext4 /dev/sda3 | |
# mkswap /dev/sda2 | |
# mkfs.fat -F 32 /dev/sda1 | |
# mount /dev/sda3 /mnt | |
# mount --mkdir /dev/sda1 /mnt/boot | |
# swapon /dev/sda2 | |
# pacstrap -K /mnt base linux-lts linux-firmware sudo vim grub efibootmgr networkmanager man-db man-pages texinfo | |
# genfstab -U /mnt >> /mnt/etc/fstab | |
# arch-chroot /mnt | |
[arch-chroot /mnt] # ln -sf /usr/share/zoneinfo/REGION/CITY /etc/localtime | |
[arch-chroot /mnt] # hwclock --systohc | |
[arch-chroot /mnt] # locale-gen | |
[arch-chroot /mnt] # echo "LANG=en_US.UTF-8" > /etc/locale.conf | |
[arch-chroot /mnt] # echo "arch-host" > /etc/hostname | |
[arch-chroot /mnt] # passwd | |
[arch-chroot /mnt] # useradd -m -G wheel USER | |
[arch-chroot /mnt] # passwd USER | |
[arch-chroot /mnt] # EDITOR=vim visudo | |
[visudo]# USER ALL=(ALL:ALL) ALL | |
[visudo]# :wq | |
[arch-chroot /mnt] # systemctl status NetworkManager | |
[arch-chroot /mnt] # systemctl start NetworkManager | |
[arch-chroot /mnt] # systemctl enable NetworkManager | |
[arch-chroot /mnt] # nmcli device wifi list | |
[arch-chroot /mnt] # nmcli device wifi connect "SSID" password "password" | |
[arch-chroot /mnt] # nmcli connection show | |
[arch-chroot /mnt] # vim /etc/pacman.conf | |
[vim] ParallelDownload = 5 | |
[vim] :wq | |
[arch-chroot /mnt] # grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB | |
[arch-chroot /mnt] # grub-mkconfig -o /boot/grub/grub.cfg | |
[arch-chroot /mnt] # exit | |
# reboot | |
--- | |
$ sudo pacman -Syu | |
$ sudo pacman -S xorg-xinit xorg-server xorg-xdpyinfo \ | |
openbox obconf menumaker ttf-dejavu ttf-liberation \ | |
lightdm lightdm-gtk-greeter conky dolphin xcompmgr reflector feh compmgr \ | |
firefox terminator | |
$ cp /etc/X11/xinit/xinitrc ~/.xinitrc | |
$ mkdir -p ~/.config/openbox | |
$ cp -a /etc/xdg/openbox/ ~/.config/ | |
$ sudo vim /etc/lightdm/lightdm.conf | |
[vim] greeter-session=lightdm-gtk-greeter | |
[vim] :wq | |
$ sudo systemctl status ligthdm | |
$ sudo systemctl start ligthdm | |
$ sudo systemctl enable ligthdm | |
$ mkdir -p ~/.config/conky && conky --print-config > ~/.config/conky/conky.conf | |
$ vim ~/.config/conky/conky.conf | |
[vim] | |
conky.config = { | |
alignment = 'top_right', | |
background = true, | |
... | |
} | |
[vim] :wq | |
$ echo "conky &" >> ~/.config/openbox/autostart | |
$ echo "feh --bg-scale WALLPAPER" >> ~/.config/openbox/autostart | |
$ echo "xcompmgr -c -t-5 -l-5 -r4.2 -o.55 &" >> ~/.config/openbox/autostart | |
$ mmaker -v OpenBox3 | |
$ vim /etc/xdg/reflector/reflector.conf | |
[vim] --save /etc/pacman.d/mirrorlist | |
[vim] --country Italy,France,Germany | |
[vim] --protocol https | |
[vim] --latest 5 | |
[vim] --sort rate | |
[vim] :wq | |
$ sudo systemctl start reflector.service | |
$ sudo systemctl start reflector.timer | |
$ sudo systemctl enable reflector.timer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment