Persisting an NFS4 mount point on macOS Monterey

Posted on Sun 06 March 2022 in Sysadmin • Tagged with mac, nfs

How to auto-mount an NFS4 share after startup on macOS Monterey?

This blog post explains how to do it with basically one line in /etc/fstab:

192.168.200.200:/nfs_share /System/Volumes/Data/my_nfs_share nfs rw,resvport,hard,bg,intr,rw,tcp,nfc,rsize=65536,wsize=65536 …

Continue reading

Setting up an NFS Server with Linux, Mac, and Kodi Clients

Posted on Tue 22 June 2021 in Sysadmin • Tagged with nfs, mac, linux, kodi

Introduction

We'd like to set up an NFS 3 server on a Raspberry Pi with Linux, Mac, and Kodi clients. Kodi does not support NFS 4 out of the box, so we'll stick with NFS 3 for now.

Set up the Server

As a starting point, follow this tutorial to …


Continue reading

Fixing the Bootloader of a Ubuntu RAID System

Posted on Mon 19 August 2019 in Sysadmin • Tagged with Ubuntu, GRUB, RAID, bootloader, web server

If the remote Ubuntu machine does not boot showing the following error

error: unknown filesystem
 Entering rescue mode...
 grub rescue>

the GRUB bootloader is broken and can be fixed in one of the following ways.

Using the GRUB rescue concole

Follow the steps described in this blog post.

Using a …


Continue reading

Mounting a Samba Share on the Raspberry Pi

Posted on Fri 07 December 2018 in Sysadmin • Tagged with Raspberry Pi, Samba, Raspbian

Install the following packages:

apt-get install  samba-common smbclient samba-common-bin smbclient  cifs-utils

Create a local directory:

mkdir /mnt/abc

Mount the Samba share using your username:

mount -t cifs //server/share /mnt/abc -o user=uwe

If the Samba share is provided by a FritzBox via its NAS feature and assuming …


Continue reading

Upgrade Your Apache to a Newer PHP Version

Posted on Fri 08 June 2018 in Sysadmin • Tagged with Nextcloud, PHP, Apache

Upgrading PHP from 7.0 to 7.1 or 7.2 on Ubuntu 16.04 LTS is almost trivial as this blog post (in German) explains:

First, add a PPA (personal package archive):

sudo apt-get install -y python-software-properties (falls nicht bereits installiert)
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get …

Continue reading

Setting up a new Ubuntu Webserver

Posted on Sat 11 November 2017 in Sysadmin • Tagged with Ubuntu, webserver

Here's a collection of links that provide helpful information when you have a brandnew Ubuntu machine with root access and you want to set it up as a webserver:


Continue reading

Setting up a systemd Service under Ubuntu

Posted on Sat 11 November 2017 in Sysadmin • Tagged with Ubuntu, systemd, service

Starting with 15.04, Ubuntu uses systemd instead of Upstart as the default system and service manager. This page offers a good comparison between the two systems.

If you want to add a new systemd service (e.g. for running a Java application everytime your machine boots), create the following …


Continue reading

Redirecting Requests from Apache to Jetty

Posted on Sun 05 November 2017 in Sysadmin • Tagged with Apache, Jetty, Ubuntu, web server, SSL, proxy

Assuming you are running an Apache server with a virtual host for abs.mydomain.com, put this into the virtual host's .conf file to redirect all traffic to a Jetty web server running locally behind your Apache:

<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>

ProxyPass / http://localhost:1234/ retry …

Continue reading

40 Falsehoods Programmers Believe about Names

Posted on Thu 27 July 2017 in General Software Development • Tagged with names, Patrick McKenzie

Patrick McKenzie has never seen a computer system that handles names properly. Sad!


Programming as if the Domain (and Performance) Mattered

Posted on Wed 26 July 2017 in General Software Development • Tagged with Carlo Pescio, performance

A long read by my man Carlo Pescio.