Category: linux

ARM, linux, OYB software, shell

Safely flash SD card images with ddsd

I would like to share another wrapper based on the pv command ( because we love progress bars!! ). As part of my work in NextCloudPi, I am constantly copying images to an SD card to test the latest build. The classic Linux way of doing this is by using the dd command

We …

btrfs, linux, OYB software, shell

Schedule BTRFS snapshots with btrfs-snp

To complement the last BTRFS tool btrfs-du, I would like to share a simple script for creating BTRFS snapshots that plays well with cron and systemd timers. This allows us to easily automate snapshot creation. I was inspired by btrfs-snap by Birger Monsen. Usage btrfs-snp can be run manually, or summoned from cron. Invoke without …

btrfs, linux, OYB software, shell

Check disk space of your BTRFS snapshots with btrfs-du

Today I want to share a simple way to check the state of our BTRFS snapshots. Usage

If path is omitted, it will default to / . We can list easily our snapshots, plus have a clear view of how much data they have in common and how much total overhead are we holding. …

ARM, debian, docker, linux

Building Armbian images faster using Docker

The people at the Armbian team have been doing an impressive work at optimizing and generating Debian images for many ARM boards. While they have documentation on the build process, it focuses mostly on setting up a build environment on VirtualBox with Vagrant. They do support building in a Docker environment, but I found the …

FOSS, linux, security

Sandbox your applications with Firejail

One thing I that like about the Android App security model is that for a given app, it presents the permissions to the user and the user has to accept them. This is good because the user has control over the software it runs, and is an invaluable tool to be able to use an …

arch, linux

Save and restore your Arch Linux packages

Lately, I have been reinstalling Arch from scratch on several machines. When doing so, it is very handy to replicate your packages and that is actually very easy to do with Arch Linux. Create a package list The following command creates a list with your packages, that you can curate and store under private versioning …

C, debian, docker, linux

Debian build environment in a docker container

Last post, I shared a docker container for compilation in C with ccache and colorgcc included. This time, we will extend that base container for development and packaging of Debian packages. Not only it is handy to have the environment configured and packaged, but also opens some oportunities for optimization given the nature of docker, …

linux, networking, nextcloud, raspberrypi

Different ways to access your Nextcloud files

So, you have your Nextcloud instance up and running, maybe NextCloudPi. You are now in control of your privacy, and you can access your files through the web interface. In this post, we will explore other options to access our files, in order to make the most of our setup. WebDAV WebDAV is an extension …

linux, networking, nextcloud, nextcloudpi

Share your files in your LAN with SAMBA

In order to complement last post about the NFS remote file system, in this post we will cover SAMBA. The main focus of this series is to document the possibilities of NextCloudPi, but it aims to be a general introduction to the technology. Like NFS, SAMBA provides a remote file system that allows us to …