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

PiBakery

Posted on Thu 09 March 2017 in Sysadmin • Tagged with boinc, headless, PiBakery, raspberry pi, tor, VNC

A great way to configure a Raspberry Pi from scratch is PiBakery. After struggling a while with setting up a VNC server and some other things on a fresh Pi connected only via Ethernet (no display, keyboard, or mouse), finding PiBakery was very helpful.

Here's my configuration:

PiBakery configuration

The long string …


Continue reading

Renewal of Let's Encrypt Certificates Using Plesk

Posted on Tue 14 June 2016 in Sysadmin • Tagged with Apache, certificate, let's encrypt, Plesk, SSL, web server

Note to self: If the Let's Encrypt extension for Plesk fails to renew a certificate (when triggered manually), disable the automatic forwarding to an SSL connection in the Apache settings. This forced secure connection seems to disturb the renewal script.

The error I got was something like this:

Let's …

Continue reading