<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://yawg.net/index.php?action=history&amp;feed=atom&amp;title=Installing_Arch_Linux</id>
	<title>Installing Arch Linux - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://yawg.net/index.php?action=history&amp;feed=atom&amp;title=Installing_Arch_Linux"/>
	<link rel="alternate" type="text/html" href="https://yawg.net/index.php?title=Installing_Arch_Linux&amp;action=history"/>
	<updated>2026-11-04T14:48:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://yawg.net/index.php?title=Installing_Arch_Linux&amp;diff=72&amp;oldid=prev</id>
		<title>Encryptid: Created page with &quot;=LiveCD= * [https://archlinux.org/download/ Download] the latest Archlinux ISO Image * Copy image to USB drive ** Use [https://sourceforge.net/projects/win32diskimager/ Win32 Disk Imager] in Windows  ** OR use the following on linux:     dd bs=4M if=path/to/archlinux.iso of=/dev/sdx status=progress oflag=sync * Reboot and choose boot device in BIOS and boot the USB drive  =Presetup= ==Boot== The following guide is for UEFI systems, see Installing Archlinux (Legacy) f...&quot;</title>
		<link rel="alternate" type="text/html" href="https://yawg.net/index.php?title=Installing_Arch_Linux&amp;diff=72&amp;oldid=prev"/>
		<updated>2025-08-06T19:27:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=LiveCD= * [https://archlinux.org/download/ Download] the latest Archlinux ISO Image * Copy image to USB drive ** Use [https://sourceforge.net/projects/win32diskimager/ Win32 Disk Imager] in Windows  ** OR use the following on linux:     dd bs=4M if=path/to/archlinux.iso of=/dev/sdx status=progress oflag=sync * Reboot and choose boot device in BIOS and boot the USB drive  =Presetup= ==Boot== The following guide is for UEFI systems, see &lt;a href=&quot;/index.php?title=Installing_Archlinux_(Legacy)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Installing Archlinux (Legacy) (page does not exist)&quot;&gt;Installing Archlinux (Legacy)&lt;/a&gt; f...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=LiveCD=&lt;br /&gt;
* [https://archlinux.org/download/ Download] the latest Archlinux ISO Image&lt;br /&gt;
* Copy image to USB drive&lt;br /&gt;
** Use [https://sourceforge.net/projects/win32diskimager/ Win32 Disk Imager] in Windows &lt;br /&gt;
** OR use the following on linux:&lt;br /&gt;
    dd bs=4M if=path/to/archlinux.iso of=/dev/sdx status=progress oflag=sync&lt;br /&gt;
* Reboot and choose boot device in BIOS and boot the USB drive&lt;br /&gt;
&lt;br /&gt;
=Presetup=&lt;br /&gt;
==Boot==&lt;br /&gt;
The following guide is for UEFI systems, see [[Installing Archlinux (Legacy)]] for MBR. If you have an existing UEFI bootloader somewhere, identify it and mount it somewhere to confirm you can find the efi/ folder. Once properly identified, make note of this partition&amp;#039;s device name (ex. /dev/sdb1) and unmount it. If you do not have a UEFI partition and are starting fresh, ensure you partition/format ~300-500MB for one, it helps a lot in multi-boot environments.&lt;br /&gt;
&lt;br /&gt;
==Disk setup==&lt;br /&gt;
&lt;br /&gt;
===Partitions===&lt;br /&gt;
Swap is pretty much optional but if you want Hibernate, it&amp;#039;s needed&lt;br /&gt;
&lt;br /&gt;
* /dev/sda1&lt;br /&gt;
** /boot - 300MB - EFI Filesystem &lt;br /&gt;
* /dev/sda3&lt;br /&gt;
** swap - 8.8G - Linux swap&lt;br /&gt;
* /dev/sda2&lt;br /&gt;
** / - therest - Linux filesystem&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s also helpful to mount separate drives as your /home or /opt directories. I tend to put Steam/Lutris libraries in /opt and have a drive dedicated to my home folder and configs. Other system mounts I tend to put in /mnt or get automounted once I get to a desktop&lt;br /&gt;
&lt;br /&gt;
* use fdisk /dev/sd(diskletter)&lt;br /&gt;
* Delete any old partitions (&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;!!!EXCEPT EXISTING UEFI PARTITIONS!!!&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
* Create new partitions like the one above&lt;br /&gt;
** For the above, make sda1 then sda3&lt;br /&gt;
* Ensure types are set appropriately&lt;br /&gt;
* Write the partition and exit&lt;br /&gt;
* Repeat for any other disk being used that needs erasing&lt;br /&gt;
&lt;br /&gt;
===Format and Mount===&lt;br /&gt;
* Format target disks (cmd /dev/sda1-3)&lt;br /&gt;
** mkfs.ext4 for / and any others&lt;br /&gt;
** mkswap and swapon for swap&lt;br /&gt;
** mkfs.fat -F32 for NEW EFI partitions or /boot&lt;br /&gt;
* Mount devices and directories&lt;br /&gt;
** mount /dev/sda2 /mnt&lt;br /&gt;
** mkdir -p /mnt/boot &amp;amp;&amp;amp; mount /dev/sda1 /mnt/boot&lt;br /&gt;
* Additional mounts can be done now with a modification of the following:&lt;br /&gt;
** mkdir -p /mnt/opt &amp;amp;&amp;amp; mount /dev/sdb1 /mnt/opt&lt;br /&gt;
* Or Network Shares/CIFS stuff as well&lt;br /&gt;
** mkdir -p /mnt/mnt/share &amp;amp;&amp;amp; mount -t cifs //shareserver/ /mnt/share/&lt;br /&gt;
&lt;br /&gt;
==Update installer sources==&lt;br /&gt;
===Repos===&lt;br /&gt;
See [https://wiki.archlinux.org/index.php/Official_repositories Official] and [https://wiki.archlinux.org/index.php/Unofficial_user_repositories Unofficial] repos&lt;br /&gt;
====Multilib====&lt;br /&gt;
Needed for gaming on Steam&lt;br /&gt;
    echo &amp;quot;[multilib]&lt;br /&gt;
    Include = /etc/pacman.d/mirrorlist&amp;quot; &amp;gt;&amp;gt; /etc/pacman.conf&lt;br /&gt;
&lt;br /&gt;
====Valveaur====&lt;br /&gt;
For Valve&amp;#039;s maintained Arch repo and f-sync patch for the kernel&lt;br /&gt;
    echo &amp;quot;[valveaur]&amp;quot; &amp;gt;&amp;gt; /etc/pacman.conf&lt;br /&gt;
    echo &amp;quot;Server = &amp;lt;nowiki&amp;gt;http://repo.steampowered.com/arch/valveaur&amp;lt;/nowiki&amp;gt;&amp;quot; &amp;gt;&amp;gt; /etc/pacman.conf&lt;br /&gt;
Update pacman keys&lt;br /&gt;
    pacman-key -r 8DC2CE3A3D245E64 --keyserver hkp://keyserver.ubuntu.com &amp;amp;&amp;amp; pacman-key --lsign-key 8DC2CE3A3D245E64&lt;br /&gt;
&lt;br /&gt;
====Kernels====&lt;br /&gt;
=====linux-amd-znver2=====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[linuxkernels]&lt;br /&gt;
Server = http://nhameh.ovh/$repo/$arch&lt;br /&gt;
SigLevel = Optional TrustAll&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Install and Configure=&lt;br /&gt;
==Installation==&lt;br /&gt;
To install the system, we use pacstrap &amp;lt;target&amp;gt; &amp;lt;packages&amp;gt;&lt;br /&gt;
    pacstrap /mnt base{,-devel} linux{,-headers,-firmware} nano ntfs-3g sudo git amd-ucode grub efibootmgr os-prober &lt;br /&gt;
* base/-devel&lt;br /&gt;
** Base system and development tools&lt;br /&gt;
* linux/-headers/-docs&lt;br /&gt;
** Now is a good time to setup [https://wiki.yawg.wtf/index.php?title=Installing_Archlinux#Repos Repos] on the new install in /mnt&lt;br /&gt;
** This is the kernel and headers (+docs)&lt;br /&gt;
** Alternatives: linux-zen, [https://aur.archlinux.org/packages/linux-vfio/ linux-vfio&amp;lt;sup&amp;gt;AUR&amp;lt;/sup&amp;gt;], linux-fsync, [https://aur.archlinux.org/packages/linux-pf/ linux-pf&amp;lt;sup&amp;gt;AUR&amp;lt;/sup&amp;gt;], linux-lts, [https://aur.archlinux.org/packages/linux-pds/ linux-pds&amp;lt;sup&amp;gt;AUR&amp;lt;/sup&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
Note: this presumes ntfs partitions being used and an AMD CPU, you might need to modify that for other systems &lt;br /&gt;
&lt;br /&gt;
===Additional packages===&lt;br /&gt;
More packages can be found at [[Arch Packages]]&lt;br /&gt;
&lt;br /&gt;
==Configure==&lt;br /&gt;
===Hostname===&lt;br /&gt;
    echo &amp;quot;$yourhostname&amp;quot; &amp;gt; /mnt/etc/hostname&lt;br /&gt;
    echo &amp;quot;127.0.0.1		$yourhostname.localdomain	$yourhostname&amp;quot; &amp;gt;&amp;gt; /mnt/etc/hosts&lt;br /&gt;
===Mounts/FSTAB===&lt;br /&gt;
    genfstab -U -p /mnt &amp;gt;&amp;gt; /mnt/etc/fstab&lt;br /&gt;
===Locale===&lt;br /&gt;
    echo &amp;quot;en_US.UTF-8 UTF-8&amp;quot; &amp;gt; /mnt/etc/locale.gen&lt;br /&gt;
&lt;br /&gt;
=Post install and chroot=&lt;br /&gt;
Now we chroot into the new install and finish setting things up:&lt;br /&gt;
    arch-chroot /mnt&lt;br /&gt;
==Chroot==&lt;br /&gt;
===Language and Timezones===&lt;br /&gt;
    ln -s /usr/share/zoneinfo/US/Pacific /etc/localtime&lt;br /&gt;
    locale-gen&lt;br /&gt;
    export LANG=en_US.UTF-8&lt;br /&gt;
===Kernel===&lt;br /&gt;
    mkinitcpio -P&lt;br /&gt;
===Users===&lt;br /&gt;
* Change Root passwd&lt;br /&gt;
** passwd&lt;br /&gt;
* Create local user&lt;br /&gt;
** useradd -m -G wheel $user &amp;amp;&amp;amp; passwd $user&lt;br /&gt;
** Uncomment the Wheel group line in /etc/sudoers&lt;br /&gt;
===Services===&lt;br /&gt;
Enable any necessary services&lt;br /&gt;
    systemctl enable sddm&lt;br /&gt;
    systemctl enable NetworkManager&lt;br /&gt;
    systemctl enable bluetooth&lt;br /&gt;
&lt;br /&gt;
==Grub==&lt;br /&gt;
Replace /boot below with your efi directory folder if different&lt;br /&gt;
    grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch&lt;br /&gt;
    grub-mkconfig -o /boot/grub/grub.cfg&lt;br /&gt;
&lt;br /&gt;
==Yay==&lt;br /&gt;
Sometimes we need AUR packages:&lt;br /&gt;
    cd /home/$user &amp;amp;&amp;amp; git clone https://aur.archlinux.org/yay.git &amp;amp;&amp;amp; chown -R $user yay/ &amp;amp;&amp;amp; cd yay&lt;br /&gt;
    su $user&lt;br /&gt;
    makepkg -si&lt;br /&gt;
    cd .. &amp;amp;&amp;amp; rm -rf yay/&lt;br /&gt;
===Recommended Packages===&lt;br /&gt;
====Nvidia Beta====&lt;br /&gt;
    nvidia{-beta,-beta-dkms,-utils-beta,-settings-beta} opencl-nvidia-beta lib32{-nvidia-utils-beta,-opencl-nvidia-beta}&lt;br /&gt;
====Misc====&lt;br /&gt;
Mostly my firmware and overclocking things, but Downgrade is a life saver for when updates go wrong&lt;br /&gt;
    aic94xx-firmware wd719x-firmware downgrade zenmonitor zenpower-dkms zenstates-git cpupower-gui python-nvidia-ml-py3-git python-py3nvml&lt;br /&gt;
&lt;br /&gt;
=Exit chroot and Cleanup=&lt;br /&gt;
Leave chroot&lt;br /&gt;
    exit&lt;br /&gt;
Unmount any extra drives first then unmount /mnt&lt;br /&gt;
&amp;lt;pre&amp;gt;umount /mnt/boot&lt;br /&gt;
umount /mnt/home&lt;br /&gt;
umount /mnt&amp;lt;/pre&amp;gt;&lt;br /&gt;
You can now reboot&lt;br /&gt;
&lt;br /&gt;
=Specific Scripts=&lt;br /&gt;
&amp;lt;pre&amp;gt; curl https://yawg.wtf/arch/.$buildname/0_start.sh &amp;gt; 0_start.sh &amp;amp;&amp;amp; chmod +x 0_start.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[Category:Archlinux]]&lt;/div&gt;</summary>
		<author><name>Encryptid</name></author>
	</entry>
</feed>