blackarch linux install instructions for raspberry pi

First off download the latest build of the arch image.


Then verify the checksum

└─ $ ▶ sha1sum

Next unzip the image

└─ $ ▶ unzip
inflating: ArchLinuxARM-2014.06-rpi.img

Now write the image to your SD card. In my case this was /dev/sdf but check dmesg and adjust accordingly
└─ $ ▶ sudo dd if=ArchLinuxARM-2014.06-rpi.img of=/dev/sdf bs=512k
[sudo] password for hytekblue:
3740+0 records in
3740+0 records out
1960837120 bytes (2.0 GB) copied, 166.989 s, 11.7 MB/s

Next run gparted to expand the partition. I needed 9.1 GB for the entire install so I used a 16GB class 10 SD card from Sandisk. I figured this out by running out of space on a 8GB SD card first… then started over with a larger card. so hopefully you can skip that step!

└─ $ ▶ sudo gparted

Now its time to put the SD card into the raspberry pi and boot it up and start building up that image with all the stuff we need.

I ssh’ed into the pi to do this but you could easily just type this all into the console if you were so inclined.

[root@alarmpi ~]# pacman-key –init

[root@alarmpi ~]# pacman -Syu

Adding X-Windows

[root@alarmpi ~]# pacman -S xorg xorg-server xorg-server-utils xterm

time for lxde

[root@alarmpi ~]# pacman -S xf86-video-fbdev lxde xorg-xinit dbus

and a few other apps I like to use

[root@alarmpi ~]# pacman -S sudo adduser gcc vim midori filezilla gnome-screenshot cpupower


Now it’s time to start adding the blackarch goodies but before we can do that we have to make sure the clock is set to the correct time otherwise the script will error out.

[root@alarmpi ~]# date -s “10/05/2014 23:50:00”

[root@alarmpi ~]# curl -s | sh

Append the following lines to your /etc/pacman.conf file:

Server = <mirror_site>/$repo/os/$arch

Replace <mirror_site> with a mirror site of your choosing. Please use one of our official mirrors. See Mirror Sites.

in my case it looked like this

Server =$repo/os/$arch

Then run
[root@alarmpi ~]# pacman -Syyu

This next step is were it all gets installed. This is going to take a while… kick it off and just walk away and do something else for a bit.

[root@alarmpi ~]# pacman -S blackarch
When its done just start up your lxde desktop session and away you go…
$ xinit /usr/bin/lxsession

Blackarch Linux raspberry pi desktop

Blackarch Linux raspberry pi desktop

It’s worth noting that I loaded lxde because that’s what I wanted to use. Feel free to install your favorite windows manager.

More info can also be found over at the blackarch website.

Tagged on: , ,

2 thoughts on “blackarch linux install instructions for raspberry pi

  1. Pingback: Linux today | One Mans Anthology

  2. Pingback: Top 5 Linux Security Distro’s | One Mans Anthology

Leave a Reply

Your email address will not be published. Required fields are marked *