Linux My first install of Arch Linux

ronnie_gogs

Morphing from a Geek to a Nerd
Level G
I have mostly used Fedora and flavors of Debian based Linux distributions. Arch was always a meme which I laughed at but never gave it a shot. So I decided to finally give it a shot in order to finally claim

1731935520469.jpeg


So off I went to holy grail of arch documentation, the ArchWiki and landed on https://wiki.archlinux.org/title/Installation_guide and began my journey.

My bare metal is a Fedora and Windows 11 dual boot installations. I wanted to install Arch in a VM as I am not crazy enough to install it as my main OS. I also feel virtual machine is always the best way to test a new OS.
Plan was to install arch in VM created using Hyper-V as technically its a Type 1 hypervisor.

Time to Install
  • Download the arch bootable ISO using torrent (Only way I use torrent for is to download Linux distribution copies /s)
  • Verified the downloaded ISO using checksum
  • Fire up and new VM and assign 6gb working ram and set boot to the iso for first boot
  • 1st error
  • 1731937715220.png
  • Faced it before and my solution for it was to turn off secure boot in settings and we are in zsh shell. Yay
  • 1731938084134.png
  • 1731938179166.png
  • Time to follow the guide.
  • Change keyboard layout, time synchronization and connect to internet according to guide. I am connected via lan to my host machine which is connected via external virtual switch to the VM to give internet. DHCP server running on my router. So left everything left on default.
  • Next was the important one. After some research I found a way which is bit more easier and user friendly than default guide of using fdisk.
  • Verify the drive
  • 1731939596104.png
  • Going to be using sda.
  • No need to clean it as its a brand new virtual hard disk I just created.
  • Instead of fdisk I am going to using cgdisk.
  • So used cgdisk /dev/sda
  • A warning and I am in ready to partition for my Arch
  • 1731939757434.png
  • Create new partition
  • First sector default (So enter)
  • Size 1 Gb so set to 1024MiB
  • 1731940054832.png
  • Asks for type. Boot drive so EF00
  • 1731940090188.png
  • name it boot. And we created our first partition which is boot.
  • 1731940191089.png
  • Similarly created swap of 8gb with code of 8200 for swap
  • 20GB was assigned to root code 8300 and rest as home 8300
  • 1731940871869.png
  • Write and you drive was partitioned
  • 1731941000950.png
  • Formatted the partitions created. Boot as fat32, swap and rest root and home as ext4
  • 1731941371387.png
  • Time to mount
  • 1731941792803.png
  • Installation from mirror servers
  • Ran
  • 1731942165999.png
  • Synchronize pacman and install pacman-contrib package
  • 1731942377221.png
  • Run rankmirrors to organize and rank the mirrors based on your connection speed. Takes a bit of time so no need to worry here. I choose 6 servers as that should be plenty.
  • 1731942610316.png
  • You view the mirror list to check once its done. Will be different based on connection and location
  • 1731942847822.png
  • Time to install
  • pacstrap -K /mnt base linux linux-firmware base-devel
  • Arch installed technically.

Time to configure.
  • Fstab : Ran genfstab -U -r /mnt >> /mnt/etc/fstab
  • Verified the fstab file using nano (or any text editor) to open it nano /mnt/etc/fstab
  • 1731943785657.png
  • Changed root
  • 1731943900414.png
  • Now we are inside our installation of arch.
  • Synchronized pacman and installed nano to edit locale.gen file
  • nano /etc/locale.gen
  • 1731944891811.png
  • For India find en_IN-UTF-8 (Ctrl+W and find). Uncommented the line and saved it.
  • 1731945592195.png
  • Ran locale-gen. Based on my changes to locale.gen file its generates locales
  • 1731945683480.png
  • Create the LANG language from this
  • 1731946019315.png
  • Set time zone and synchronize hw clock
  • 1731946728490.png
  • Set hostname
  • 1731946861014.png
  • 32 bit support. Modify the pacman config file
  • Uncommented the multilib line and include line. Saved configuration file and ran pacman -Sy
  • 1731947055385.png
  • Changed root password, added new user with access rights
  • 1731948691741.png
  • Correct command
  • 1731948857957.png
  • Changed password of new userid
  • 1731948904802.png
  • Edit sudo settings
  • 1731949003890.png
  • Uncomment wheel line and add line in end to use root password
  • 1731949126776.png
  • Installed bootloader
  • 1731949692547.png
  • 1731949707409.png
  • Created bootloader entries file
  • 1731949793555.png
  • Create entries
  • 1731949967300.png
  • Added a boot option to that partition which I created before to root.
  • 1731950519372.png
  • All ok if I can see it here
  • 1731950564551.png
  • Installed neofetch / screenshot is still archiso. But normal installed arch is still working. Cant seem to change this image sadly
  • 1731950748269.png

Officially I can say I use Arch BTW
 

Attachments

  • 1731942139486.png
    1731942139486.png
    4.5 KB · Views: 7
  • 1731950448966.png
    1731950448966.png
    6.8 KB · Views: 7
Last edited:
Back
Top