summaryrefslogtreecommitdiff
path: root/static/artix-install.md
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-12-12 15:26:03 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-12-12 15:26:03 +0900
commit1a306bd17ebd0f5b632f672e57033310f384cf0a (patch)
treebddb998ee443ed33765f4daa2b1a0f1cfd319b49 /static/artix-install.md
parentbd1e7f1b982b5d9679ee43003ea93549169eef10 (diff)
updates
Diffstat (limited to 'static/artix-install.md')
-rw-r--r--static/artix-install.md56
1 files changed, 49 insertions, 7 deletions
diff --git a/static/artix-install.md b/static/artix-install.md
index 84f8b29..a45782e 100644
--- a/static/artix-install.md
+++ b/static/artix-install.md
@@ -1,4 +1,5 @@
# wifi wireless connection
+
ip a
ip link set wlan0 up
rfkill unblock wifi
@@ -11,12 +12,16 @@ connect wifi_181dea9eaba1_66...
quit
# UEFI vs legacy
+
ls /sys/firmware/efi/efivars
# partition
+
lsblk
fdisk /dev/sdX
+
# create 2 partition (boot, root) or 3 partition (efi, boot, root)
+
# or add a swap partition for each case
dd if=/dev/urandom of=/dev/sdX2 bs=1M status=progress
@@ -24,35 +29,45 @@ cryptsetup luksFormat /dev/sdX2
cryptsetup open /dev/sdX2 luks
# lvm: with volumes
+
pvcreate /dev/mapper/luks
vgcreate vg /dev/mapper/luks
# Create a volume for your swap space. A good size for this is your RAM size + 2GB.
+
lvcreate -L 1T vg -n root
-lvcreate -L 18G vg -n swap
+lvcreate -L 18G vg -n swap
lvcreate -l 100%FREE vg -n home
-# lvm: check volume
+# lvm: check volume
+
vgdisplay
lvdisplay
# lvm: format and mount logical volumes
+
modprobe dm_mod
vgscan
vgchange -ay
# lvm: file system
+
mkfs.btrfs /dev/vg/root
mkfs.btrfs /dev/vg/home
mkswap /dev/vg/swap
# file system
+
# mkfs.btrfs /dev/sdX1
+
# mkfs.ext4 /dev/sdX1
+
# mkfs.exfat /dev/sdX1
+
# mkswap /dev/sdX1
# mount
+
mount /dev/vg/root /mnt
mkdir /mnt/home
mount /dev/vg/home /mnt/home
@@ -63,22 +78,28 @@ swapon /dev/vg/swap
swapon -a
# lvm: without volumes
+
mkfs.btrfs /dev/mapper/luks
mount /dev/mapper/luks /mnt
mkfs.fat -F32 /dev/sdX1
mkdir /mnt/boot && mount /dev/sdX1 /mnt/boot # UEFI: mkdir /mnt/boot/efi && mount /dev/sdX1 /mnt/boot/efi
# mirrolist
+
vi /etc/pacman.d/mirrowlist
# programs
+
basestrap -i /mnt base base-devel runit elogind-runit linux linux-firmware grub networkmanager networkmanager-runit cryptsetup lvm2 lvm2-runit neovim vim os-prober
+
# UEFI: efibootmgr
# installation
+
artix-chroot /mnt bash
# Timezone & Location
+
ln -s /usr/share/zoneinfo/Continent/TimeZone /etc/localtime
hwclock --systohc
vim /etc/locale.conf
@@ -90,30 +111,36 @@ vim /etc/locale.gen
locale-gen
# Host
+
vim /etc/hostname
vim /etc/hosts
-127.0.0.1 localhost
-::1 localhost
-127.0.1.1 hostname.localdomin hostname
+127.0.0.1 localhost
+::1 localhost
+127.0.1.1 hostname.localdomin hostname
# Networkmanager
+
ln -s /etc/runit/sv/Networkmanager /etc/runit/runsvdir/current
# Password and Users
+
passwd
useradd -G(-g) wheel -m username
passwd username
# (Optional) auto-login
+
vim /etc/runit/sv/agetty-tty1/conf
--autologin username
# Hook
+
vim /etc/mkinitcpio.conf
HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block 'encrypt' 'lvm2' filesystems fsck)
mkinitcpio -p linux
# Decryption and Boot
+
exit
lsblk -f >> /mnt/etc/default/grub
fstabgen -U /mnt >> /mnt/etc/fstab
@@ -122,48 +149,63 @@ vim /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="... cryptdevice=UUID=/dev/sdX2's UUID:luks root=/dev/mapper/luks"
# Grub Installation
+
grub-install /dev/sdX
+
# UEFI: grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
+
grub-mkconfig -o /boot/grub/grub.cfg
# (Optional) Check root UUID
+
vim /boot/grub/grub.cfg
-# Search 'root=UUID'
+
+# Search 'root=UUID'
# Finish
+
exit
reboot
detach booting USB
-
=====================
# List nearby Wi-Fi networks:
+
nmcli device wifi list
# Connect to a Wi-Fi network:
+
nmcli device wifi connect SSID_or_BSSID password password
# Connect to a hidden Wi-Fi network:
+
nmcli device wifi connect SSID_or_BSSID password password hidden yes
# Connect to a Wi-Fi on the wlan1 interface:
+
nmcli device wifi connect SSID_or_BSSID password password ifname wlan1 profile_name
# Disconnect an interface:
+
nmcli device disconnect ifname eth0
# Get a list of connections with their names, UUIDs, types and backing devices:
+
nmcli connection show
# Activate a connection (i.e. connect to a network with an existing profile):
+
nmcli connection up name_or_uuid
# Delete a connection:
+
nmcli connection delete name_or_uuid
# See a list of network devices and their state:
+
nmcli device
# Turn off Wi-Fi:
+
nmcli radio wifi off