User Tools


start:system:artix

Differences

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

Link to this comparison view

start:system:artix [2024/12/29 06:55] – [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 graphical environment.  
-We install the system from bottom up so just download one of those ISO Files (it doesnt 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 ===== 
----- 
-After you booted into Artix 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> 
-fdisk /dev/nvme0n1 
-</code> 
- 
-  - **Delete Partitions:** We need a new system, therefore press "d" (for delete) and delete all of your partitions. 
-  - **BOOT Partition:** Then press "n" for new, for the partition number press "1" (for 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. 
-   - **HOME Partition:** 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.ext4 /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 system partition  
-mkdir /mnt/boot                            <- create boot directory  
-mount /dev/nvme0n1p1 /mnt/boot             <- mount boot partition  
-</code> 
- 
- 
-===== Install Base System ===== 
----- 
- 
-Installiere das Basis-System (openrc) sowie den Kernel (Linux) auf der Root-Partition und synchronisiere den Computer mit der Uhrzeit: 
-<code> 
-basestrap /mnt base base-devel openrc elogind-openrc linux linux-firmware && rc-service ntpd start 
-</code> 
- 
-Use fstabgen to generate /etc/fstab, use -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): 
- 
-<code> 
-pacman -S grub os-prober efibootmgr 
-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                 <- password for root 
-useradd -m user        <- add regular user 
-passwd user 
-</code> 
- 
-Lastly, you can reboot and enter into your new installation: 
-<code> 
-exit                          
-umount -R /mnt 
-reboot 
-</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/sharks.sh 
-sh sharks.sh  
-</code>