Raspberry Pi 4-Getting Started with Manjaro
Published:
Table of contents
What is Raspberry Pi??
It is a low-cost Linux and ARM-based computer on a small circuit board sponsored by the charitable Raspberry Pi Foundation in the UK. One should not underestimate the power of these beasts as they can perform a whole lot of things a laptop can. With the 8GB RAM variant now available for Raspberry pi 4, these are becoming ever more powerful. From learning coding to performing pentesting on Kali OS, this portable beast is a machine worth having a look at.
Raspbian is the Debian-based Linux OS that is provided with the device, but one can install several other Linux variants like Ubuntu, Manjaro, Fedora etc if they want.
Things you will need.
There are lots of good starter Raspberry Pi 4 kits available on the market which has all the neccessary hardware required to get started. What the kit won’t provide is a screen you would want to attach to the Raspberry Pi. It can obviously work on A.C supply but I would recommed getting an steady power supply(powerbanks) as Pi’s do not like to be interrupted (especially during updates).
Following things are required to get started with Raspberry Pi 4.
- A 15W USB-C power supply
- A microSD card (Get a 32 GB class 10 microSD card) You can also buy preinstalled NOOBS card (New Out Of Box Software) but here we are installing Manjaro hence we need an empty card.
- A keyboard and a mouse
- Cables to connect to display via Raspberry Pi 4’s micro HDMI ports (If you get a starter kit, you don’t have to worry about it)
- An external display to connect with. (You can buy touch screen display like this one, although if you have any spare monitor around you, use them instead)
Hardware Setup
If you have an external monitor to connect with, you can skip this step completely and go ahead to the next section of software setup. If you have an 7” touch screen display, you need to make some setup here before going ahead. With your display you will be provided with
- Touchscreen Display with adapter Board attached with it.
- DSI Ribbon cable.
- Screws (used to mount the adapter board and Raspberry Pi board to the back of the display.)
- Jumper wires (used to connect the power from the Adapter Board and the GPIO pins on the Pi )
Once we have everything we need, we can start making connections between Pi and the display. The following shows the connection of the jumper wires in the display. The DSI cable is attached as shown into the DSI connector which has a push lock mechanism to hold the cable securely.
Once the connections are made, we can connect the wires in the Raspberry Pi 4 GPIO pins. The following image shows the numbering of the GPIO pins and the table below shows which wires go into which GPIO pin.
Colour | GPIO pin |
---|---|
Red | 4 |
Black | 6 |
Yellow | 5 |
Green | 3 |
Once connected, attach the display and the board with screws. Now if you have a case for the display, you can attach them as well.
Software Setup
Once the assembly is ready we can move ahead to actual installation of Manjaro OS in the microSD card we have. Ideally a minimum of 8GB card is required but in my experience 32 GB card is worth an investment. If you are on a tight budget, get a 16GB microSD card. Make sure you buy a fast microSD card, possibly a class 10.
Before we can start the installation, we need to prepare our microSD card for it. We need to flash our Manjaro image onto the microSD card. For this you can download your preffered image of Manjaro from here. For this post, I will be using KDE Plasma as I encountered certain issues with the XFCE version. You can go ahead and download any version you want. Next we need a tool to flash the downloaded image onto the microSD card. For this I will be using balenaEtcher which can be downloaded from here. Since I am using Linux, I will be downloading the appimage for that. The following images will guide you to flash your microSD card.
Choose the image you have downloaded.
in my case it is Manjaro ARM KDE plasma
Choose your microSD card (Be careful here to choose your card)
Click flash
In linux, provide authorisation
And done. This whole process can take upto 10 - 15 minutes depending on the write speed of the microSD card. Have patience.
Once done flashing, eject your microSD card and insert it into the Raspberry Pi. Provide your Pi with power supply via the USB-C cable. Once it recieves the power, it should turn on (you might get an inverted screen but don’t worry, the solution is simple and is given at the end of the post)
Booting the Raspberry Pi
Well we are in the endgame now(wink wink). Follow the images as shown here and you will have a booted Raspberry Pi runnning Manjaro within no time.
Choose your keyboard layout( I have chosen us)
Your desired user name
You can leave this empty if you aren’t sure what it is or setup accordingly.
Enter password and remember it as this is what you will need.
Choose password for root user
Choose you timezone (mine was Asia/Kolkata)
Choose locale(en_US.UTF-8)
Choose Hostname
The Welcome screen.
Now you are done with the installation of Manjaro OS on your Raspberry Pi. I didn’t find any issue with the KDE version of Manjaro on my pi. Everthing from touch, bluetooth, wifi worked right out of the box. Don’t worry if your wifi takes a bit of time to be connected. Try using 5 GHz for your wifi connection. Once the Pi is connected with internet, the date and time are updated. updating your system is recommended either by using the GUI or by the following command from terminal(use ctrl+Alt+T)
sudo pacman -Syu
Display orientation issue
If your touch screen display is not in correct orientation all you have to do is take your microSD card out(after you shut down your pi obviously) and connect it to your computer and edit the config.txt file. Add the following command in the txt file and save it (if you get permission denied error while doing that, try sudo)
lcd_rotate=2 # for touch screen displays
display_rotate=2 # for non touch displays
If you do not want to remove the microSD card, you can do the same from terminal as well
- Open terminal by CTRL+ALT+T
- Type:
sudo nano /boot/config.txt
- Same as last. Add the line and restart your Pi. It should be done.
This is how your config file should look.