Marlon's Wiki

it's better when it's simpler

User Tools

Site Tools


start:system:artix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

start:system:artix [2025/05/24 09:25] – [Configure the base system] marlonivostart:system:artix [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Full Artix Installation Guide ====== 
  
-Go to https://artixlinux.org/downloads, there you will find artix ISO's with and without a graphical environment.  
-We install the system from bottom up so just download one of those ISO files (it doesn't matter what you choose).  
-   * artix-base-dinit 
-   * artix-base-openrc 
-   * artix-base-runit 
-   * artix-base-s6 
- 
-\\ 
-===== Create a Artix USB-Stick ====== 
- 
-After you downloaded the ISO, write your stick with it. 
-<code> 
-sudo dd if=path/to/your.iso of=/dev/sda bs=4M status=progress && sync 
-</code> 
- 
-\\ 
-===== Boot into your USB Stick ===== 
- 
-**For Windows:** 
-   - Press and hold the "Shift" key as you click the "Restart" option in the Start menu or on the sign-in screen. Windows will reboot into a special boot options menu. 
-   - Click Troubleshoot > Advanced Options > UEFI Firmware Settings. Once you’re in the BIOS or UEFI firmware menu, look for some sort of “Boot” option menu. 
-   - You will find a boot order list. If "USB drive" is above "hard drive" in your boot order, your computer will try the USB drive and thats what we want, which is why you should put your USB Stick (whatever name it is) on top of the list. 
- 
- 
-**For Linux:** 
-You know what to do. 
- 
-\\ 
-===== Partitioning your Drives ===== 
- 
-At first you need to tap some keys to get into partition ordering. 
-Boot up from your UEFI:Name of USB-Stick because **otherwise this guide wont work** for you. 
- 
-After you booted into the live-artix ISO, you will be welcomed by a small GUI, giving you the option to choose your keyboard layout and language. After you did that, press 'from Stick/HDD'. It will install some scripts, then you need to login with: 
- 
-<code> 
-username: root   
-password: artix 
-</code> 
- 
-In order to partition your drives, we use the preinstalled tool fdisk. 
-<code> 
-loadkeys en                           ← fasterway to set CC 
-fdisk /dev/nvme0n1 
-</code> 
- 
-**Delete Partitions:**  
-We need a new system, therefore press "d" (for delete) and delete all of your partitions. 
- 
-**Create Partitions:**  
-Then press "n" for new, for the partition number press "1" (for the first partition of the drive), for first sector "leave empty and just press enter" and last sector "+1G" which will make the first partition 1GB big in size, if it already has a signature, remove it with "YES". 
- 
-For Partition 2/2 press "n" again, partition number "press enter", first sector "press enter" and last sector "press enter" to give the second partition everything else. 
- 
-Lastly press "w" to write your changes.  
- 
-Now your ''%%lsblk%%'' command should output something like: 
- 
-<code> 
-   NAME      MAJ:MIN  RM    SIZE  RO  TYPE MOUNTPOINT 
-0  nvme0n1       8:   931.5G    disk            
-1  nvme0n1p1     8:       1G    part            
-2  nvme0n1p2     8:   930.5G    part            
-</code> 
- 
-\\ 
-===== Format and Mount Partitions ===== 
- 
-Jetzt müssen wir noch die Partitionen die wir erstellt haben, richtig formatieren. 
- 
-<code> 
-mkfs.fat -F32 /dev/nvme0n1p1                ← boot partition  
-mkfs.ext4 /dev/nvme0n1p2                    ← root partition 
-</code> 
- 
-Dann müssen wir die formatierten Partitionen einbinden: 
-<code> 
-mount /dev/nvme0n1p2 /mnt                  ← mount root partition  
-mkdir -p /mnt/boot/efi                     ← create boot directory  
-mount /dev/nvme0n1p1 /mnt/boot/efi         ← mount boot partition  
-</code> 
- 
-\\ 
-===== Install Artix Base System ===== 
- 
-Install the base system !if you choosed rc install openrc, if you choosed runit install runit) as well as the linux firmware. 
-<code> 
-basestrap /mnt base base-devel openrc elogind-openrc linux linux-firmware           ← takes about 2 min. 
-</code> 
- 
-Use fstabgen to generate ''%%/etc/fstab%%'', use parameter -U for UUIDs as source identifiers: 
-<code>fstabgen -U /mnt >> /mnt/etc/fstab</code> 
- 
-\\ 
-===== Configure the base system ===== 
- 
-To configure the system, chroot into your new Artix: 
-<code>artix-chroot /mnt</code> 
- 
-Then, install grub and os-prober (for detecting other installed operating systems) and dhcpd for internet connection after installation.  
-<code> 
-pacman -S grub os-prober nano efibootmgr dhcpcd                 ← dhcpd is major important for internet 
-</code> 
- 
-Grub disables os-prober by default therefore edit the configuration file with nano. And remove the # comment: 
-<code> 
-nano /etc/default/grub 
-GRUB_DISABLE_OS_PROBER=false                                     ← u can find this at the end of the file                                 
-</code> 
- 
-Install a bootloader (in our case grub) onto your Partition. 
-<code> 
-grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub       ← for UEFI but works for BIOS too 
-grub-mkconfig -o /boot/grub/grub.cfg                                                  ← File to boot 
-</code>    
- 
-Then, set the root passwd and add a regular user: 
-<code> 
-passwd                                             ← set password for root 
-useradd -m user                                    ← add regular user 
-passwd user                                        ← set password for user 
-</code> 
- 
-Lastly, you can reboot and enter into your new installation: 
-<code> 
-exit                          
-umount -R /mnt                                     ← Plug off your USB-Stick now 
-reboot                                             ← I wish you well 
-</code> 
- 
-\\ 
-===== Post-Installation Configuration ===== 
- 
-You can now either configure your system manually yourself or install my auto-bootstrapping script called [[https://git.marlonivo.xyz/sharx|sharx]], which will give you pretty much everything you need. Therefore type: 
-<code> 
-curl -LO marlonivo.xyz/sharx.sh 
-sh sharx.sh  
-</code> 
start/system/artix.1748078723.txt.gz · Last modified: by marlonivo