Raspberry Pi Media Server Series 1 - Installing Manjaro
So you bought a Raspberry Pi and you don’t know what should you do with it. Well, in this series I want to share my way of using my Raspberry Pi. I bet you already guessed it right by reading the title. Yes, this is the first part of my Raspberry Pi Media Server series. Before I continue, here’s what I have for this project:
- A full set of 2GB Raspberry Pi 4 Model B
- ORICO 3.5 inch Dual Bay Aluminum Alloy USB3.0 Hard Drive Enclosure (9528U3)
- Two 1TB Hard Disk Drive
- A memory card reader
To let you visualize what you will have by following this series, here’s a glimpse of preview for you. You will have a media server that can download and stream media whether you are in your local network or outside. All of this are done simply with Docker containers and Traefik as the reverse proxy combined with optional BTRFS RAID 1 for redundancy.
Now, let’s get started with installing your Raspberry Pi OS of choice. I use Manjaro Linux on my primary computer for more than 4 years, so when I found out they released Manjaro ARM 19.10 with headless setup support, I immediately made the switch from Raspbian. Of course, the operating system you choose is not really important, because we will be using Docker containerization for everything here. As long as you can install OpenSSH and Docker in that OS, you are good to go.
Execution
Here’s how you install Manjaro ARM Minimal Editiion on your Raspberry Pi 4, which should be almost the same if you want to go with Raspbian.
- Grab the current Manjaro ARM Minimal release for Raspberry Pi 4 here.
- Also grab and install balenaEtcher into your current computer.
- Put in your SD card into your memory card reader and plug it into your computer.
- Open balenaEtcher program. Select the Manjaro ARM image that you have downloaded in the “Select Image” option and select you SD card in the ” Select Drive” option. Then click the “Flash” option.
- Wait until it finished flashing and get your SD card out of the card reader. And put it back into your Raspberry Pi 4.
- Connect Raspberry Pi 4 to the power adapter and router (that’s it if you’re going for headless installation like me). You may need to connect keyboard and monitor to your Pi if you don’t want to go with headless setup.
- If you choose headless install, you need to install SSH in your current computer.
You will also need to know your Raspberry Pi’s IP address, which you can get by looking into your router’s DHCP client lists page (which is different on every router) or you can use tools like Angry IP Scanner in your current computer.
If you are on Linux, simply install nmap and type in
nmap -sn <gateway-ip>/24
in your terminal will show it for you, of course replace gateway-ip with your router ip address like 192.168.1.1. - SSH into your Raspberry Pi by typing
ssh root@<ip>
, replace <ip> with Raspberry Pi’s IP address that you get from the previous step if you are on headless setup and you should get the OEM Setup. If you are not on headless setup, you should see the OEM Setup on monitor hooked up to your Pi. - Follow through the OEM Setup and your Raspberry Pi will reboot after you are finished.
After reboot,
ssh root@<ip>
will no longer work, you should usessh <username>@<ip>
instead and it will ask for your password. You get your username and password from the OEM Setup you’ve gone through.
So that’s it for this first part of Raspberry Pi Media Server series. In the next part, I will be showing you how to secure your Raspberry Pi installation. Till we meet again! 🙂
If you want to buy me a coffee: