<?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_on_Raspberry_Pi</id>
	<title>Installing Arch Linux on Raspberry Pi - 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_on_Raspberry_Pi"/>
	<link rel="alternate" type="text/html" href="https://yawg.net/index.php?title=Installing_Arch_Linux_on_Raspberry_Pi&amp;action=history"/>
	<updated>2026-09-17T21:12:00Z</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_on_Raspberry_Pi&amp;diff=35&amp;oldid=prev</id>
		<title>Encryptid: Created page with &quot;This is an expanded version of This Script which is better for advanced users  =Setup= Unfortunately installing Arch Linux isn&#039;t as easy as Raspbian or Kali. We need a linux environment and start by partitioning the Micro SD card     fdisk /dev/sdX * First Partition +150M type &#039;c&#039; for W95 FAT32 (LBA) * Second Partition the rest and defaults are fine * Write to disk with &#039;w&#039; Next we need to format the drives     mkfs.vfat /dev/sdx1     mkfs.ext4...&quot;</title>
		<link rel="alternate" type="text/html" href="https://yawg.net/index.php?title=Installing_Arch_Linux_on_Raspberry_Pi&amp;diff=35&amp;oldid=prev"/>
		<updated>2025-08-06T19:04:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This is an expanded version of &lt;a href=&quot;/index.php/Script/RPi-ArchInstall&quot; title=&quot;Script/RPi-ArchInstall&quot;&gt;This Script&lt;/a&gt; which is better for advanced users  =Setup= Unfortunately installing Arch Linux isn&amp;#039;t as easy as Raspbian or Kali. We need a linux environment and start by partitioning the Micro SD card     fdisk /dev/sdX * First Partition +150M type &amp;#039;c&amp;#039; for W95 FAT32 (LBA) * Second Partition the rest and defaults are fine * Write to disk with &amp;#039;w&amp;#039; Next we need to format the drives     mkfs.vfat /dev/sdx1     mkfs.ext4...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is an expanded version of [[Script/RPi-ArchInstall|This Script]] which is better for advanced users&lt;br /&gt;
&lt;br /&gt;
=Setup=&lt;br /&gt;
Unfortunately installing Arch Linux isn&amp;#039;t as easy as Raspbian or Kali. We need a linux environment and start by partitioning the Micro SD card&lt;br /&gt;
    fdisk /dev/sdX&lt;br /&gt;
* First Partition +150M type &amp;#039;c&amp;#039; for W95 FAT32 (LBA)&lt;br /&gt;
* Second Partition the rest and defaults are fine&lt;br /&gt;
* Write to disk with &amp;#039;w&amp;#039;&lt;br /&gt;
Next we need to format the drives&lt;br /&gt;
    mkfs.vfat /dev/sdx1&lt;br /&gt;
    mkfs.ext4 /dev/sdx2&lt;br /&gt;
Let&amp;#039;s move to our working dir and mount the partitions&lt;br /&gt;
    cd /mnt/&lt;br /&gt;
    mkdir boot/&lt;br /&gt;
    mkdir root/&lt;br /&gt;
    mount /dev/sdx1 boot/&lt;br /&gt;
    mount /dev/sdx2 root/&lt;br /&gt;
Depending upon which version of Raspberry Pi your target system is, you&amp;#039;ll need to make a choice:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Raspberry Pi 4 or 3 Aarch64 (64bit)&lt;br /&gt;
wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz&lt;br /&gt;
&lt;br /&gt;
# Raspberry Pi 4 - ARMv7 (32bit)&lt;br /&gt;
wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-4-latest.tar.gz&lt;br /&gt;
&lt;br /&gt;
# Raspberry Pi 3 and 2 - ARMv7 (32bit)&lt;br /&gt;
wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz&lt;br /&gt;
&lt;br /&gt;
# Raspberry Pi 1 and 0 - ARMv6 &lt;br /&gt;
wget http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-latest.tar.gz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to unpack onto the SD Card&lt;br /&gt;
    bsdtar -xpf ArchLinuxARM-rpi-$version-latest.tar.gz -C root&lt;br /&gt;
    sync&lt;br /&gt;
Just one last thing here, this is also the best time to make edits to config.txt&lt;br /&gt;
    mv root/boot/* boot&lt;br /&gt;
    nano boot/config.txt&lt;br /&gt;
    unmount boot root&lt;br /&gt;
&lt;br /&gt;
=First Boot=&lt;br /&gt;
Default User Info:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
alarm - alarm&lt;br /&gt;
root - root&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you have ethernet connected, you are good to go out of the box practically. For Wireless connectivity, it&amp;#039;s pretty simple. Find and connect to your wireless and make a simple name for it in wifi-menu&lt;br /&gt;
    wifi-menu&lt;br /&gt;
    netctl enable wlan0-home&lt;br /&gt;
Let&amp;#039;s initialize pacman and get up to date. SSH is usually started, so once connected you can manage from there. &lt;br /&gt;
    sed -i &amp;#039;s/#Color/Color/&amp;#039; /etc/pacman.conf&lt;br /&gt;
    pacman-key --init&lt;br /&gt;
    pacman-key --populate archlinuxarm&lt;br /&gt;
    pacman -Syu sudo&lt;br /&gt;
Localization and hostname&lt;br /&gt;
    rm /etc/localtime&lt;br /&gt;
    ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime&lt;br /&gt;
    echo &amp;#039;newhostname&amp;#039; &amp;gt; /etc/hostname&lt;br /&gt;
Modify sudoers and create a new user and cleanup the old one.&lt;br /&gt;
    nano /etc/sudoers&lt;br /&gt;
    # Uncomment %wheel ALL=(ALL) ALL&lt;br /&gt;
    useradd -m -G wheel -s /bin/bash newuser&lt;br /&gt;
    passwd newuser&lt;br /&gt;
    passwd&lt;br /&gt;
    userdel alarm  #May need to reboot and login with newuser first if a process is being used&lt;br /&gt;
&lt;br /&gt;
=Stuff We Need=&lt;br /&gt;
Now that we&amp;#039;re up and running, it&amp;#039;s time to get the important stuff&lt;br /&gt;
==Yay==&lt;br /&gt;
The latest and greatest, now that Yaourt is on the outs&lt;br /&gt;
    pacman -S git base-devel go&lt;br /&gt;
    git clone https://aur.archlinux.org/yay.git&lt;br /&gt;
    cd yay&lt;br /&gt;
    makepkg -si&lt;br /&gt;
==Graphical Environment==&lt;br /&gt;
===Xorg===&lt;br /&gt;
You need all this, I assure you, then choose &amp;#039;&amp;#039;&amp;#039;XFCE&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;LXDE&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
    pacman -S xorg xf86-video-fbturbo xf86-video-fbturbo-git xorg-xinit&lt;br /&gt;
&lt;br /&gt;
===XFCE===&lt;br /&gt;
XFCE is my usual go-to, it&amp;#039;s light and configurable and gets the job done. &lt;br /&gt;
    pacman -S xfce4 xfce4-goodies&lt;br /&gt;
===LXDE===&lt;br /&gt;
LXDE is one I&amp;#039;m intrigued on trying out&lt;br /&gt;
    pacman -S lxde&lt;br /&gt;
===SDDM/LDDE===&lt;br /&gt;
SDDM is the best login manager, basically&lt;br /&gt;
    pacman -S sddm #or lxde&lt;br /&gt;
    systemctl enable sddm&lt;br /&gt;
Let&amp;#039;s create a default config and modify it&lt;br /&gt;
    sudo sh -c &amp;quot;sddm --example-config &amp;gt; /etc/sddm.conf&amp;quot;&lt;br /&gt;
    sudo nano /etc/sddm.conf&lt;br /&gt;
We&amp;#039;ll modify autologin for our user and desktop. Available session types are in /usr/share/xsessions/&lt;br /&gt;
&amp;lt;pre&amp;gt;[autologin]&lt;br /&gt;
&lt;br /&gt;
Session=xfce.desktop&lt;br /&gt;
&lt;br /&gt;
User=user&amp;lt;/pre&amp;gt;&lt;br /&gt;
And finally, let&amp;#039;s ensure stuff starts appropriately&lt;br /&gt;
    echo &amp;#039;exec startlxde&amp;#039; &amp;gt; ~/.xinitrc&lt;br /&gt;
    echo &amp;#039;exec startxfce&amp;#039; &amp;gt; ~/.xinitrc&lt;br /&gt;
&lt;br /&gt;
=Bugs and Fixes=&lt;br /&gt;
Pacman has been finicky on AArch64 for some reason, traced it down to &lt;br /&gt;
    systemctl stop systemctl-resolved.service&lt;br /&gt;
&lt;br /&gt;
=Manjaro=&lt;br /&gt;
And just in case you want all of the Arch and none of the pain, there&amp;#039;s [https://blog.manjaro.org/download/arm8-raspberry-pi-4-xfce/ Manjaro Pi4 XFCE]&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
* Arch Linux ARM [https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-4 RPi4], [https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3 RPi 3], [https://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2 RPi 2], [https://archlinuxarm.org/platforms/armv6/raspberry-pi RPi 1]&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Raspberry_Pi Wikipedia]&lt;br /&gt;
* [https://github.com/phortx/Raspberry-Pi-Setup-Guide Helpful guide from github]&lt;br /&gt;
* [http://ca.us.mirror.archlinuxarm.org/ ArchlinuxArm Repo (mirror)] &lt;br /&gt;
&lt;br /&gt;
[[Category:Archlinux]][[Category:RaspberryPi]]&lt;/div&gt;</summary>
		<author><name>Encryptid</name></author>
	</entry>
</feed>