Linux

Category page of all posts on the web site that are tagged as related to all things Linux

PCIe 1x NVMe on Raspberry Pi?! Compute Module 4 Guide

CableCC Vertical Adapter in Compute Module 4 IO Board

I recently covered all the pieces you need for a complete setup to work with the Raspberry Pi Compute Module 4. Today I want to cover the whole reason I wanted to investigate the Compute Module 4: The PCI express capabilities!

In this guide I’ll cover a couple of 1x PCIe to NVMe adapters I picked up to try doing this with as well as full configuration and setup instructions. Let us begin!

Full Compute Module 4 (Raspberry Pi) Setup / Imaging Guide

Raspberry Pi Compute Module 4 mounted in IO Board

The Raspberry Pi Compute Module 4 is primarily meant for embedded projects and didn’t catch my interest at first. That was until people started absolutely smashing previous records on my Pi storage benchmarking site pibenchmarks.com.

Upon further investigation it turns out that people are breaking these records using the Compute Module 4 since it allows running a NVMe drive through PCI express instead of having to use a USB adapter (the current bottleneck in other Pis).

Wanting to investigate these new capabilities for myself I got a hold of some gear and wanted to write a setup and configuration guide on everything you need for a full CM4 (Compute Module 4) setup and how to get it imaged and configured. Let’s get started!

Ubertooth One Kali Linux Latest Tools / Firmware Setup Guide

Kismet Ubertooth One BTLE Capture

The world is full of devices communicating with Bluetooth even if (or maybe especially if) you don’t realize it. Most “smart” devices are advertising some Bluetooth services (some of them even publicly writable without a password!). Even my treadmill is advertising writeable Bluetooth endpoints!

The Ubertooth One is a bluetooth and bluetooth low-energy (BTLE) capture device intended for developers and security researchers/auditors. It has an external antenna and is able to communicate at much further distances than most BTLE devices by both transmitting more powerfully and having a more sensitive antenna to listen to the response. To find out what is nearby and happening over the air this is the device you want to have.

In this guide I’ll show you how to get the latest Ubertooth tools on Kali Linux as well as update the firmware for the Ubertooth device and actually use the device!

Upgrade Java Past apt’s OpenJDK 11 on Raspberry Pi OS

OpenJDK 16 on Raspberry Pi OS

The OpenJDK 11 version that comes in Raspberry Pi OS’s apt repositories is ancient. It’s so old that recently people using my Minecraft Java Server for Raspberry Pi script have started getting a warning that Minecraft 1.17 will *not* support anything below OpenJDK 16.

In this article I’m going to share a sneaky trick to update your Java to a newer version than is available in apt using snapd. Let’s begin!

Where to get the 64 bit Raspberry Pi OS image for Pi 4 / 400

Pi 64bit OS - Forum Post

Last year a official 64 bit version of Raspberry Pi OS was released. There have been 3 versions of the image released with the latest one just having came out April 9th 2021.

It can be a little tricky to find and I’ve been asked in the comments here before on the site where to find it so I figured it was time to write a quick guide!

Raspberry Pi 400 Overclocking / NVMe SSD Setup Guide

Raspberry Pi 400 Setup w/ NVMe SSD

The Raspberry Pi 400 is the first offering from the Raspberry Pi lineup that is meant to approach desktop level performance. The official raspberrypi.org site lists the Pi 400 kit as the “Raspberry Pi 400 Personal Computer Kit“. It comes in the very interesting form factor of a keyboard with all the ports right in the back!

Although the performance on stock clock speeds and with a SD card was really great, especially for a Raspberry Pi, I would not call it desktop class performance. Fortunately we *can* make it desktop class performance with a few tweaks! This guide will show how to overclock the Pi 400 as well as set it up with a NVMe SSD to get the maximum possible performance we can out of it!

Raspberry Pi: Reclaim ~1% CPU Usage when SSD/USB Booting

SSD Ubuntu 'Top' - Fixed

Native support for USB mass storage device booting has made it’s way to all of the Raspberry Pi 4’s firmware release channels! With that exciting development an old issue from the Pi 3 and earlier USB booting days has manifested itself once again in the form of a constant 1-2% CPU draw even with nothing running.

This guide will show you an easy config.txt parameter to eliminate this problem and optimize your mass storage boot setups!

Raspberry Pi 4 Xubuntu 18.04 Image Released (Unofficial)

Xubuntu 18.04 Desktop Screenshot

After receiving quite a few requests for a lightweight alternative to the default Ubuntu Desktop environment I have added Xubuntu Desktop to my Raspberry Pi 4 Ubuntu 18.04 LTS preinstalled image builds! The Xubuntu version feels much snappier and more responsive on the Pi. It also uses less overall memory freeing it up to do other things on your Pi.

Raspberry Pi 4 Ubuntu Server / Desktop 18.04.4 Image (unofficial)

Fine, I'll do it myself

This is a unofficial distribution of Ubuntu Server 18.04.3 for Raspberry Pi 4. It is provided with the purpose of letting us all play with the new Pi 4’s new increased RAM and other capabilities until Ubuntu’s repositories are updated with support for the newest Pi.

Once official support is released through the Ubuntu repositories this project will effectively cease to exist (until, dare I dream, the Pi 5?). The image supports KVM, has support for the Pi 4’s new 3D display driver, and can also be upgraded to a full desktop installation!

Official Minecraft Bedrock Dedicated Server on Raspberry Pi*

Minecraft Bedrock running on Raspberry Pi

One of the most requested features in my Raspberry Pi Minecraft server guide is support for the Bedrock edition of Minecraft. This is the edition that powers Minecraft on iOS / Android / Xbox / Nintendo Switch as well as the free Windows 10 edition.

There’s one big problem though. The official Minecraft Bedrock dedicated server is only compiled for Windows and Ubuntu X86_64. Without ARM support it seems impossible to run the Bedrock dedicated server on a Raspberry Pi. I couldn’t find a documented instance of anyone doing it anywhere.

So naturally today in this guide we are going to do the impossible. But right off the bat let me point out that there is an asterisk in my article title. Why you ask? That is because unlike my other guides this one will not yield you a well performing server. That is because we will be emulating a x86_64 processor on ARM. This is slow. VERY slow.

Minecraft Bedrock Edition – Ubuntu Dedicated Server Guide

Minecraft Bedrock Edition logo

Minecraft Bedrock Edition is the version of Minecraft that powers the iPhone / Android versions (formerly Minecraft Pocket Edition), the Xbox / PlayStation / Nintendo Switch editions and the free Windows 10 Minecraft edition.

Mojang has released a dedicated server which is considered to be in alpha testing. I have found it to be very stable and able to run on a wide variety of hardware.

This script and guide are written to help you get a robust Minecraft Bedrock dedicated server up and running in only a few minutes!