diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-07-31 21:51:36 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-07-31 21:51:36 +0900 |
| commit | 18d3f16ddc0cc2f277675978eb18a669662ab31e (patch) | |
| tree | 48baf7d68c34e1f6ac413db20b3f085d2bb0a1e8 /static/artix-install.md | |
| parent | e2f9788c85faca29bf538b3e59e71cc7d43ae658 (diff) | |
Init
Diffstat (limited to 'static/artix-install.md')
| -rw-r--r-- | static/artix-install.md | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/static/artix-install.md b/static/artix-install.md new file mode 100644 index 0000000..ed2d467 --- /dev/null +++ b/static/artix-install.md @@ -0,0 +1,125 @@ +# wifi wireless connection +ip a +ip link set wlan0 up +rfkill unblock wifi +ip link set wlan0 up +connmanctl +scan wifi +services +agent on +connect wifi_181dea9eaba1_66... +quit + +# UEFI vs legacy +ls /sys/firmware/efi/efivars + +# partition +lsblk +fdisk /dev/sdX +# mkfs.ext4 /dev/sdX1 +# mkfs.exfat /dev/sdX1 +dd if=/dev/urandom of=/dev/sdX2 bs=1M status=progress +cryptsetup luksFormat /dev/sdX2 +cryptsetup open /dev/sdX2 luks +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 +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 +export LANG="en_US.UTF-8" +export LC_COLLATE="C" +vim /etc/locale.gen +#en_US.UTF-8 +#ko_KR.UTF-8 +locale-gen + +# Host +vim /etc/hostname +vim /etc/hosts +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 +artix-chroot /mnt bash +vim /etc/default/grub +GRUB_CMDLINE_LINUX_DEFAULT="... cryptdevice=UUID=/dev/sdX2's UUID:luks root=UUID=/dev/mapper/luks's UUID" + +# 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' + +# 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 |
