Raspberry Pi 4-Getting Started with Manjaro

7 minute read

Published:

Table of contents

What is Raspberry Pi??

Things you will need

Hardware Setup

Software Setup

Booting the Raspberry Pi

Display orientation issue

What is Raspberry Pi??

Pic1

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.

  1. A 15W USB-C power supply
  2. 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.
  3. A keyboard and a mouse
  4. 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)
  5. 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

  1. Touchscreen Display with adapter Board attached with it.
  2. DSI Ribbon cable.
  3. Screws (used to mount the adapter board and Raspberry Pi board to the back of the display.)
  4. Jumper wires (used to connect the power from the Adapter Board and the GPIO pins on the Pi )

display

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.

screen_pins

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.

GPIO

ColourGPIO pin
Red4
Black6
Yellow5
Green3

pi_pin

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.

final


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. etcher1

in my case it is Manjaro ARM KDE plasma etcher2

Choose your microSD card (Be careful here to choose your card)

etcher3

etcher4

Click flash

etcher5

In linux, provide authorisation

etcher6

And done. This whole process can take upto 10 - 15 minutes depending on the write speed of the microSD card. Have patience.

etcher7

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)

Pic2


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.

Boot1

Choose your keyboard layout( I have chosen us) Boot2

Your desired user name Boot3

You can leave this empty if you aren’t sure what it is or setup accordingly. Boot4

Boot5

Enter password and remember it as this is what you will need. Boot6

Boot7

Choose password for root user Boot8

Boot9

Choose you timezone (mine was Asia/Kolkata) Boot10

Choose locale(en_US.UTF-8)

Boot11

Choose Hostname Boot12

Boot13

Boot14

Boot15

The Welcome screen. Boot17


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

  1. Open terminal by CTRL+ALT+T
  2. Type:
    sudo nano /boot/config.txt
    
  3. Same as last. Add the line and restart your Pi. It should be done.

This is how your config file should look.

config3

Enjoy your Raspberry Pi!!!