<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:mosaic="tag:silasjelley.com,2026:mosaic-feed">

<title>Silas Jelley&#39;s Corner of the Web / Manuals</title>
<link rel="self" type="application/atom+xml" href="https://silasjelley.com/feeds/manuals" />
<link href="https://silasjelley.com/" />
<id>https://silasjelley.com/feeds/manuals/</id>
<icon>/icon/48.ico</icon>
<author>
  <name>Silas Jelley</name>
  <email>reply@silasjelley.com</email>
</author>

<updated>2024-02-14T17:21:33+00:00</updated>
<entry>
  <title>Notes on scanning negatives</title>
  <link rel="alternate" type="text/html" href="https://silasjelley.com/scanning/plustek" />
  <id>tag:silasjelley.com,2020-08-20:881c5f88-4320-449c-a58a-7e51b79966bf</id>
  <published>2024-02-14T17:21:33+00:00</published>
  <updated>2024-02-14T17:21:33+00:00</updated>
  <category term="notes" />
  <category term="manuals" />
  <category term="scanning" />
<summary>Preparation: Clean hands and clear workspace Plug in and power on scanner Open VueScan Check configuration has loaded and is correct Glove your left hand Scanning routine:</summary>
<mosaic:place>Totnes, England, United Kingdom</mosaic:place>
<content type="html">
    &lt;h3 id=&#34;process-with-plustek-8200i&#34;&gt;Process with Plustek 8200i&lt;/h3&gt;&lt;p&gt;Preparation:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Clean hands and clear workspace&lt;/li&gt;&lt;li&gt;Plug in and power on scanner&lt;/li&gt;&lt;li&gt;Open VueScan&lt;/li&gt;&lt;li&gt;Check configuration has loaded and is correct&lt;/li&gt;&lt;li&gt;Glove your left hand&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Scanning routine:&lt;/p&gt;&lt;ol&gt;&lt;li value=&#34;0&#34;&gt;&lt;p&gt;Number your sheet, crossing through any previous number to remove ambiguity, but do so in such a way that it is still legible.&lt;/p&gt;&lt;/li&gt;&lt;li value=&#34;0&#34;&gt;&lt;p&gt;From within VueScan create a folder in the working directory matching the &lt;em&gt;new&lt;/em&gt; number on your working sheet.&lt;/p&gt;&lt;/li&gt;&lt;li value=&#34;0&#34;&gt;&lt;p&gt;Remove negative/strip from sheet with tweezers to prevent oils from your hand damaging the negative or making their way into the scanner.&lt;/p&gt;&lt;/li&gt;&lt;li value=&#34;0&#34;&gt;&lt;p&gt;Place strip into tray and align with the windows. It helps to position the negative away from the hinge of the tray, making realigning the strip easier.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;em&gt;Note:&lt;/em&gt; If the film strip is notably cupped or warped, or if the camera mechanism didn’t fully advance the roll when the photograph was first taken, it may not be possible to align every frame perfectly with the windows in the tray. In such cases align the first frame(s) in the strip, scan them, then remove the tray in order to align the later frames, before reinserting the tray into the scanner and resume the later frames.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li value=&#34;0&#34;&gt;&lt;p&gt;Dust with a blower. Make sure you pinch/clamp the tray between thumb and finger so it doesn’t shift. If stubborn dust persists, you may carefully brush with the tip of a gloved finger, but often it is best to leave such spots for the infrared pass on the scanner.&lt;/p&gt;&lt;/li&gt;&lt;li value=&#34;0&#34;&gt;&lt;p&gt;Double check alignment of the strip in case any shift occurred during cleaning.&lt;/p&gt;&lt;/li&gt;&lt;li value=&#34;0&#34;&gt;&lt;p&gt;Feed tray into the scanner from the left side, pinching the tray snugly so that the strip within stays aligned. Make sure you are aware of where your first negative is in the tray.&lt;/p&gt;&lt;/li&gt;&lt;li value=&#34;0&#34;&gt;&lt;p&gt;Run a preview, at a minimum, every time you start a new sheet, but ideally once per tray.&lt;/p&gt;&lt;/li&gt;&lt;li value=&#34;0&#34;&gt;&lt;p&gt;Cropping&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Once the preview is ready, align and adjust your crop in the &lt;em&gt;Crop&lt;/em&gt; tab by setting &lt;code&gt;Crop size&lt;/code&gt; to &lt;code&gt;35mm Film&lt;/code&gt;, enabling &lt;code&gt;Lock aspect&lt;br/&gt;&lt;span style=&#34;white-space: pre-wrap&#34;&gt;          &lt;/span&gt;ratio&lt;/code&gt;, and making sure the crop box does not include any of the film surround, as this will distort the exposure.&lt;/li&gt;&lt;li&gt;If you have needed to adjust the crop to avoid the end of the film stock, make sure that you rerun the preview for the negative immediately following as well.&lt;/li&gt;&lt;li&gt;If a scan has a notably blue or green cast or doesn’t look right for any reason, run a fresh preview, recheck the crop settings above, and ensure that &lt;code&gt;Colour balance&lt;/code&gt; is set to &lt;code&gt;Auto levels&lt;/code&gt; in the &lt;em&gt;Color&lt;/em&gt; tab.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li value=&#34;0&#34;&gt;&lt;p&gt;Repeat steps &lt;strong&gt;7&lt;/strong&gt; through &lt;strong&gt;9&lt;/strong&gt; until the strip is finished, and steps &lt;strong&gt;3&lt;/strong&gt; through &lt;strong&gt;9&lt;/strong&gt; until the sheet is finished.&lt;/p&gt;&lt;/li&gt;&lt;li value=&#34;0&#34;&gt;&lt;p&gt;Once you have finished a sheet, return the sheet to the folder and pull a new sheet, then begin again from step &lt;strong&gt;1&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;hr/&gt;&lt;p&gt;The Nikon takes notably longer per frame when scanning at full resolution with infrared dust removal enabled, but the resulting scans are sharper and the colour rendition is better, none of the unpredictable colour casts that the &lt;em&gt;plustek&lt;/em&gt; exhibits.&lt;/p&gt;&lt;p&gt;Both scanners produce serviceable images, the Nikon is just a cut above.&lt;/p&gt;&lt;p&gt;But the real distinguishing factor between the two scanners is the amount of hand holding they need. The scan rate of the Plustek&lt;/p&gt;&lt;div class=&#34;code-block&#34;&gt;&lt;div class=&#34;code-header&#34; data-mosaic-chrome=&#34;&#34;&gt;&lt;button class=&#34;code-copy&#34; aria-label=&#34;Copy code&#34; type=&#34;button&#34;&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;2024-02-04  95
2024-02-05   0
2024-02-06  62
2024-02-07  12
2024-02-08 188
2024-02-09 300
2024-02-10 169
2024-02-11 206
2024-02-12  28
2024-02-13  11
2024-02-14 210
2024-02-15 468
2024-02-16 270
2024-02-17   0
2024-02-18  55
2024-02-19  50
2024-02-20 128
2024-02-21 140
2024-02-22 138
...
2024-02-27 111
2024-02-28 195
2024-02-29  27
2024-03-01  28
2024-03-02   0
2024-03-03   0
2024-03-04   0
2024-03-05   0
2024-03-06  82
2024-03-07   0
2024-03-08  45
2024-03-09  90
2024-03-10   0
2024-03-11 105
2024-03-12  70
2024-03-13 389
2024-03-14 129
2024-03-15 140
2024-03-16 253
2024-03-17 142
2024-03-18 285
2024-03-19  36
2024-03-20  86
2024-03-21 243
2024-03-22 182
2024-03-23 100
2024-03-24 138
2024-03-25 190
2024-03-26  67
2024-03-27   0
2024-03-28  12
2024-03-29  54
2024-03-30 102
2024-03-31   0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;errors-in-need-of-correcting&#34;&gt;ERRORS in need of correcting&lt;/h3&gt;&lt;p&gt;Jamie has made a couple of ‘wrong folder’ errors, I’ll note them here until I get around to fixing them.&lt;/p&gt;&lt;div class=&#34;code-block&#34;&gt;&lt;div class=&#34;code-header&#34; data-mosaic-chrome=&#34;&#34;&gt;&lt;button class=&#34;code-copy&#34; aria-label=&#34;Copy code&#34; type=&#34;button&#34;&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;099 Scanning from four days apart in the same folder
055 only has one image in it
053 has way too many images
176 2024-03-13 Jamie says: &amp;#34;Errors on final strip of folder 176 025-028 too tired to compute fix today&amp;#34;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;minor-errors-during-switch-to-envelope-scanning-are-fine-have-recorded&#34;&gt;Minor errors during switch to envelope scanning are fine, have recorded&lt;/h3&gt;&lt;p&gt;metadata below.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Envelope marked 216,217 “Janice Jack” written upper right, front.&lt;/li&gt;&lt;li&gt;Envelope marked 217,218 “May 95” written upper right, front.&lt;/li&gt;&lt;li&gt;Envelope marked 221 “96 Haystacks August M+Z Andrew Long H.Top Garden” written upper left, front.“&lt;/li&gt;&lt;li&gt;Envelope marked 222,223 “Snow Jan/Feb 96” written upper right, front.&lt;/li&gt;&lt;li&gt;Envelope marked 223,224 “Duncan (Oct 96) + Bathtime in garden” written upper left, front, label.&lt;/li&gt;&lt;li&gt;Envelope marked 227,228 “sculpture and silas and zetta june ‘96″&lt;/li&gt;&lt;li&gt;Envelope marked 229,230 “scotland october ‘92″&lt;/li&gt;&lt;li&gt;Envelope marked 239,240 “france ‘91″&lt;/li&gt;&lt;li&gt;Envelope marked 241,242 “december ‘98″&lt;/li&gt;&lt;li&gt;Envelope marked 246,247 “scotland ‘96 culine more“&lt;/li&gt;&lt;li&gt;Envelope marked 248,249 “France ‘93 (Martin)“&lt;/li&gt;&lt;li&gt;Envelope marked 250,251 “fay, tom, connie”&lt;/li&gt;&lt;li&gt;Envelope marked 252,253 “mark, martin 95”&lt;/li&gt;&lt;li&gt;Envelope marked 262 “december 2000”&lt;/li&gt;&lt;li&gt;Envelope marked 266,267 “helen’s class”&lt;/li&gt;&lt;li&gt;Envelope marked 274,275 “India Balak Ram 87”&lt;/li&gt;&lt;li&gt;Envelope marked 280,281 “patricks wedding +”&lt;/li&gt;&lt;li&gt;Envelope marked 282 “may 96 including wall”&lt;/li&gt;&lt;li&gt;Envelope marked 283,284 “zetta 1 year old party”&lt;/li&gt;&lt;li&gt;Envelope marked 293,294 “me manchester people from talbot road and ramadam”&lt;/li&gt;&lt;li&gt;Envelope marked 295,296 “little mountain easter 96”&lt;/li&gt;&lt;/ul&gt;5:21pm on February 14, 2024 from Totnes, England, United Kingdom&lt;p&gt;&lt;a href=&#34;mailto:reply@silasjelley.com?subject=Reply%20to%3A%20%E2%80%9CNotes%20on%20scanning%20negatives%E2%80%9D&#34;&gt;Reply via email&lt;/a&gt;&lt;/p&gt;
</content>
</entry>
<entry>
  <title>Wanderer Server Configuration</title>
  <link rel="alternate" type="text/html" href="https://silasjelley.com/server" />
  <id>tag:silasjelley.com,2020-08-20:c53a6e68-b6fb-4dbf-b72b-a979d11d7369</id>
  <published>2023-05-07T17:03:09+01:00</published>
  <updated>2023-05-07T17:03:09+01:00</updated>
  <category term="notes" />
  <category term="manuals" />
  <summary>This site runs on a server that I administer located in London. I call this server Wanderer, which is perhaps a bit of an oxymoron given that, being a lifeless hunk of metal, it does not move. I…</summary>
<mosaic:place>Frenchay, Bristol, England, United Kingdom</mosaic:place>
<content type="html">
    &lt;p&gt;This site runs on a server that I administer located in London. I call this server &lt;em&gt;Wanderer&lt;/em&gt;, which is perhaps a bit of an oxymoron given that, being a lifeless hunk of metal, it does not move. I guess I’m the wanderer.&lt;/p&gt;&lt;div class=&#34;code-block&#34;&gt;&lt;div class=&#34;code-header&#34; data-mosaic-chrome=&#34;&#34;&gt;&lt;button class=&#34;code-copy&#34; aria-label=&#34;Copy code&#34; type=&#34;button&#34;&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;Key Specifications:
    architecture:   ARM/aarch64
    hostname:       wanderer
    cores:          4
    memory:         24gb
    network:        4gbps
    location:       London
    distribution:   Alpine Linux&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The server itself should be considered ephemeral, able to be torn down and stood back up (relatively) trivially without &lt;em&gt;any&lt;/em&gt; loss of state/data.&lt;/p&gt;&lt;p&gt;This is only slightly complicated by my current hosting provider not offering Alpine Linux&lt;sup class=&#34;fn-ref&#34;&gt;&lt;a href=&#34;#fn1&#34; id=&#34;fnref1&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt; images for its servers, but that can be worked around by performing an in place install of Alpine and nuking the default distribution.&lt;/p&gt;&lt;p&gt;The following three short sections contain all that is required to set up this server from scratch at &lt;em&gt;my&lt;/em&gt; hosting provider. This configuration is made public in case it might be of use to anyone but will not work for your setup without reconfiguration.&lt;/p&gt;&lt;h3 id=&#34;overwrite-existing-host-operating-system&#34;&gt;Overwrite existing host operating system&lt;/h3&gt;&lt;aside class=&#34;aside&#34;&gt;&lt;p&gt;Note: The following MUST be run from a cloud console, NOT via an SSH connection. If you don’t head this warning you WILL become locked out of your server.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;From a cloud console, run the following commands in sequence to overwrite with Alpine Linux:&lt;/p&gt;&lt;div class=&#34;code-block&#34; data-lang=&#34;shell&#34;&gt;&lt;div class=&#34;code-header&#34; data-mosaic-chrome=&#34;&#34;&gt;&lt;span class=&#34;code-lang&#34;&gt;shell&lt;/span&gt;&lt;button class=&#34;code-copy&#34; aria-label=&#34;Copy code&#34; type=&#34;button&#34;&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code data-lang=&#34;shell&#34;&gt;wget -O alpine.iso https://dl-cdn.alpinelinux.org/alpine/v3.17/releases/aarch64/alpine-standard-3.17.3-aarch64.iso
dd if=alpine.iso of=/dev/sda
reboot&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Once Alpine is running from memory, login as root and execute the following:&lt;/p&gt;&lt;div class=&#34;code-block&#34; data-lang=&#34;shell&#34;&gt;&lt;div class=&#34;code-header&#34; data-mosaic-chrome=&#34;&#34;&gt;&lt;span class=&#34;code-lang&#34;&gt;shell&lt;/span&gt;&lt;button class=&#34;code-copy&#34; aria-label=&#34;Copy code&#34; type=&#34;button&#34;&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code data-lang=&#34;shell&#34;&gt;mkdir /media/setup
cp -a /media/sda/* /media/setup
mkdir /lib/setup
cp -a /.modloop/* /lib/setup
/etc/init.d/modloop stop
umount /dev/sda
mv /media/setup/* /media/sda/
mv /lib/setup/* /.modloop/&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;(Optional) Write the following file with &lt;code&gt;vi answers&lt;/code&gt;:&lt;/p&gt;&lt;div class=&#34;code-block&#34; data-lang=&#34;shell&#34;&gt;&lt;div class=&#34;code-header&#34; data-mosaic-chrome=&#34;&#34;&gt;&lt;span class=&#34;code-lang&#34;&gt;shell&lt;/span&gt;&lt;button class=&#34;code-copy&#34; aria-label=&#34;Copy code&#34; type=&#34;button&#34;&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code data-lang=&#34;shell&#34;&gt;KEYMAPOPTS=&amp;#34;us us&amp;#34;          # Use US layout with US variant
HOSTNAMEOPTS=&amp;#34;wanderer&amp;#34;       # Set hostname to &amp;#39;alpine&amp;#39;
DEVDOPTS=mdev               # Set device manager to mdev
TIMEZONEOPTS=&amp;#34;UTC&amp;#34;          # Set timezone to UTC
SSHDOPTS=&amp;#34;-c openssh&amp;#34;          # SSH server
DISKOPTS=&amp;#34;-m sys /dev/sda&amp;#34;  # Use /dev/sda as a sys disk
NTPOPTS=&amp;#34;-c chrony&amp;#34;         # Use openntpd
PROXYOPTS=&amp;#34;none&amp;#34;            # proxy options

# Create admin user
USEROPTS=&amp;#34;-a -u -g audio,video,netdev silas&amp;#34;
USERSSHKEY=&amp;#34;ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDXX3YD768Qg1qPwCQ09baRT/XfuChhs73tociGyY2ba52FWuwiZSMt+6hDkcZzfweLUkbApt3T4OCz8SsWcouckBiwRr9IBnsUdhqfQI/hzGvnS7WTNaL1ytqIM5zqrKLG0gzMzbizvR7/ekki/Crqn8pREqEkQp0T+h7nqSj5hEXv+6Hgoc2Ca60/W2o871IE0+9wHW4qmGGkvk63R4dcIBxbl6WTArgEsbHkKRm8Tdj+g4UnapkRo9ArZf4+dnBGJUh4sVTx62b93HW5MNGUSY73mfi+oyeikeaOU1wOTVp2YD+8lZHAxiSEnwBp536hwgpdgk+PZb3igx5ovapFmcGUdSYYAQ7/65xzQsChNXXv88M6jEGksYmiovDqR/nMBsY9VvxK3OPiyyhEzo9n3rofUn6nUr3t80f+2mKr1rZaOOCSBjDp6hHHD5N90tsNxOugpn5DWVPyyoX5PqZgA+Ya0bepoe7kmdOqf5Nn76OfQr3OVstEG4DMPHpsVwEkiRid/V+xSoR+vcqPWMk4MltZUeEnMli0EVYXEpnCdW7D/rjmY1UUc82i/eJc36iPCtIoxBosTkLefe6HMo3x8dG/DyYgoLasFSRw4jfR1W1RNKalMH/x3Xng0xN/WWbXerPbwL5iGmg7uZf0VE608H5Rnpp65FdcprB1n2DqpQ==&amp;#34;

# Contents of /etc/network/interfaces
INTERFACESOPTS=&amp;#34;auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
    hostname alpine-test
&amp;#34;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then install interactively with &lt;code&gt;setup-alpine&lt;/code&gt;:&lt;/p&gt;&lt;div class=&#34;code-block&#34;&gt;&lt;div class=&#34;code-header&#34; data-mosaic-chrome=&#34;&#34;&gt;&lt;button class=&#34;code-copy&#34; aria-label=&#34;Copy code&#34; type=&#34;button&#34;&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;setup-alpine -f answers&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If not using the above answer file, just run &lt;code&gt;setup-alpine&lt;/code&gt;.&lt;/p&gt;&lt;p&gt;Either way, once install is complete, &lt;code&gt;reboot&lt;/code&gt; the system.&lt;/p&gt;&lt;h3 id=&#34;post-install-script&#34;&gt;Post install script&lt;/h3&gt;&lt;p&gt;The post install script takes care of setting doas/privileges, disables the default message of the day, enables repositories, installs packages, and sets up a secure firewall.&lt;/p&gt;&lt;p&gt;Write the following script to a file eg, &lt;code&gt;vi postinstall&lt;/code&gt;, make it executable (&lt;code&gt;chmod +x postinstall&lt;/code&gt;), and run it (&lt;code&gt;./postinstall&lt;/code&gt;):&lt;/p&gt;&lt;div class=&#34;code-block&#34; data-lang=&#34;shell&#34;&gt;&lt;div class=&#34;code-header&#34; data-mosaic-chrome=&#34;&#34;&gt;&lt;span class=&#34;code-lang&#34;&gt;shell&lt;/span&gt;&lt;button class=&#34;code-copy&#34; aria-label=&#34;Copy code&#34; type=&#34;button&#34;&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code data-lang=&#34;shell&#34;&gt;#!/bin/sh -e

if test ! -f /etc/apk/world; then
  echo &amp;#34;Pretty sure this aint an alpine system fella.&amp;#34;
  exit 111
fi

# Replace the doas config, permitting passwordless doas for the current $USER
printf &amp;#34;permit persist :wheel
permit nopass $USER as root

&amp;#34; &amp;gt; doas.conf
doas chown root:wheel doas.conf
doas mv doas.conf /etc/doas.d/doas.conf

# Disable the &amp;#39;message of the day&amp;#39;
doas rm /etc/motd

# Enable &amp;#39;latest-stable&amp;#39; main and community repos
printf &amp;#34;https://uk.alpinelinux.org/alpine/latest-stable/main
https://uk.alpinelinux.org/alpine/latest-stable/community&amp;#34; &amp;gt; repositories
doas mv repositories /etc/apk/repositories
doas apk update
doas apk upgrade

# Install desired packages
doas apk add rsync curl iptables ip6tables awall goaccess openssl acme-client lsblk

# Setup firewall
doas mkdir -p /etc/awall/optional
mkdir -p awall
printf &amp;#39;{&amp;#34;description&amp;#34;: &amp;#34;Basic awall policy: sets up variables and rejects all traffic&amp;#34;, &amp;#34;variable&amp;#34;: { &amp;#34;internet_if&amp;#34;: &amp;#34;eth0&amp;#34; }, &amp;#34;zone&amp;#34;: { &amp;#34;internet&amp;#34;: { &amp;#34;iface&amp;#34;: &amp;#34;$internet_if&amp;#34; } }, &amp;#34;policy&amp;#34;: [{ &amp;#34;in&amp;#34;: &amp;#34;internet&amp;#34;, &amp;#34;action&amp;#34;: &amp;#34;drop&amp;#34; }, { &amp;#34;action&amp;#34;: &amp;#34;reject&amp;#34; }] }&amp;#39; &amp;gt; awall/base.json
printf &amp;#39;{&amp;#34;description&amp;#34;: &amp;#34;Allow outgoing connections for dns, http/https, ssh, ntp, ssh and ping&amp;#34;, &amp;#34;filter&amp;#34;: [ { &amp;#34;in&amp;#34;: &amp;#34;_fw&amp;#34;, &amp;#34;out&amp;#34;: &amp;#34;internet&amp;#34;, &amp;#34;service&amp;#34;: [ &amp;#34;dns&amp;#34;, &amp;#34;http&amp;#34;, &amp;#34;https&amp;#34;, &amp;#34;ssh&amp;#34;, &amp;#34;ntp&amp;#34;, &amp;#34;ping&amp;#34; ], &amp;#34;action&amp;#34;: &amp;#34;accept&amp;#34; } ] }&amp;#39; &amp;gt; awall/outgoing.json
printf &amp;#39;{ &amp;#34;description&amp;#34;: &amp;#34;Allow incoming ping&amp;#34;, &amp;#34;filter&amp;#34;: [ { &amp;#34;in&amp;#34;: &amp;#34;internet&amp;#34;, &amp;#34;service&amp;#34;: &amp;#34;ping&amp;#34;, &amp;#34;action&amp;#34;: &amp;#34;accept&amp;#34;, &amp;#34;flow-limit&amp;#34;: { &amp;#34;count&amp;#34;: 10, &amp;#34;interval&amp;#34;: 6 } } ] }&amp;#39; &amp;gt; awall/ping.json
printf &amp;#39;{ &amp;#34;description&amp;#34;: &amp;#34;Allow incoming SSH access (TCP/22)&amp;#34;, &amp;#34;filter&amp;#34;: [ { &amp;#34;in&amp;#34;: &amp;#34;internet&amp;#34;, &amp;#34;out&amp;#34;: &amp;#34;_fw&amp;#34;, &amp;#34;service&amp;#34;: &amp;#34;ssh&amp;#34;, &amp;#34;action&amp;#34;: &amp;#34;accept&amp;#34;, &amp;#34;conn-limit&amp;#34;: { &amp;#34;count&amp;#34;: 5, &amp;#34;interval&amp;#34;: 10 } } ] }&amp;#39; &amp;gt; awall/ssh.json
printf &amp;#39;{ &amp;#34;description&amp;#34;: &amp;#34;Allow incoming HTTP/HTTPS (TCP/80 and 443) ports&amp;#34;, &amp;#34;filter&amp;#34;: [ { &amp;#34;in&amp;#34;: &amp;#34;internet&amp;#34;, &amp;#34;out&amp;#34;: &amp;#34;_fw&amp;#34;, &amp;#34;service&amp;#34;: [ &amp;#34;http&amp;#34;, &amp;#34;https&amp;#34;], &amp;#34;action&amp;#34;: &amp;#34;accept&amp;#34; } ] }&amp;#39; &amp;gt; awall/webserver.json
doas mv awall/*.json /etc/awall/optional/
doas awall enable base ping outgoing ssh webserver
doas awall activate&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;webserver-config&#34;&gt;Webserver config&lt;/h3&gt;&lt;p&gt;I’m currently using Caddy web server to host this website. Almost any webserver would suffice (nginx, Apache, lighttpd, etc) but I like the ergonomics of Caddy’s configuration.&lt;/p&gt;&lt;div class=&#34;code-block&#34;&gt;&lt;div class=&#34;code-header&#34; data-mosaic-chrome=&#34;&#34;&gt;&lt;button class=&#34;code-copy&#34; aria-label=&#34;Copy code&#34; type=&#34;button&#34;&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;doas apk add caddy caddy-openrc
doas mkdir -p /var/log/caddy
doas chown -R caddy:caddy /var/log/caddy&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&#34;caddyfile-etc-caddy-caddyfile&#34;&gt;Caddyfile (&lt;code&gt;/etc/caddy/Caddyfile&lt;/code&gt;)&lt;/h4&gt;&lt;div class=&#34;code-block&#34;&gt;&lt;div class=&#34;code-header&#34; data-mosaic-chrome=&#34;&#34;&gt;&lt;button class=&#34;code-copy&#34; aria-label=&#34;Copy code&#34; type=&#34;button&#34;&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;silasjelley.com {
        root * /home/silas/silasjelley.com
        encode gzip zstd
        file_server
        log {
                output file /var/log/caddy/silasjelley.com.log {
                        roll_disabled
                }
        }
        try_files {path} {path}/index.html {path}/index.xml

        # Security
        header {
                # Enable HTTP Strict Transport Security (HSTS)
                Strict-Transport-Security max-age=31536000;
                # Enable cross-site filter (XSS) and tell browser to block detected attacks
                X-XSS-Protection &amp;#34;1; mode=block&amp;#34;
                # Strict Content Security Policy
                Content-Security-Policy &amp;#34;default-src &amp;#39;self&amp;#39;; style-src &amp;#39;self&amp;#39; &amp;#39;unsafe-inlin
                # Block FLoC
                Permissions-Policy interest-cohort=()
                # Disallow the site to be rendered within a frame (clickjacking protection)
                X-Frame-Options &amp;#34;Deny&amp;#34;
                # Stop clients from sniffing media type
                X-Content-Type-Options nosniff
                # Allow embedding GPX Studio maps
                Access-Control-Allow-Origin: https://gpx.studio
        }

        # Redirects &amp;amp; Rewrites
        rewrite /publickey /publickey.txt
        rewrite /sitemap /sitemap.xml
        redir /journeys /wandering permanent
        redir /marmedala /before permanent

        handle_errors {
                @404-410 expression `{err.status_code} in [404, 410]`
                handle @404-410 {
                        rewrite * /404
                }
                handle {
                        respond &amp;#34;That&amp;#39;s an error&amp;#34;
                }
        }
}&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Start the web server and add it the default runlevel (startup at boot)&lt;/p&gt;&lt;div class=&#34;code-block&#34;&gt;&lt;div class=&#34;code-header&#34; data-mosaic-chrome=&#34;&#34;&gt;&lt;button class=&#34;code-copy&#34; aria-label=&#34;Copy code&#34; type=&#34;button&#34;&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;doas rc-service caddy start
doas rc-update add caddy default&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Caddy’s config can then be idempotently reloaded with &lt;code&gt;doas rc-service caddy reload&lt;/code&gt;.&lt;/p&gt;&lt;details&gt;&lt;summary&gt;Alternate webserver (nginx)&lt;/summary&gt;&lt;p&gt;Write an NGINX config to &lt;code&gt;/etc/nginx/nginx.conf&lt;/code&gt;:&lt;/p&gt;&lt;div class=&#34;code-block&#34;&gt;&lt;div class=&#34;code-header&#34; data-mosaic-chrome=&#34;&#34;&gt;&lt;button class=&#34;code-copy&#34; aria-label=&#34;Copy code&#34; type=&#34;button&#34;&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;user                            silas;
worker_processes                auto;
worker_rlimit_nofile            100000; # number of file descriptors used for nginx
error_log                       /var/log/nginx/error.log warn;

events {
    worker_connections          4096;
    use epoll;
}

http {
    include                     /etc/nginx/mime.types;
    default_type                application/octet-stream;
    sendfile                    on;
    tcp_nopush                  on;

    gzip                        on;
    gzip_vary                   on;
    gzip_min_length             10240;
    gzip_comp_level             1;
    gzip_disable                msie6;
    gzip_proxied                expired no-cache no-store private auth;
    gzip_types
        text/css
        text/javascript
        text/xml
        text/plain
        application/javascript
        application/x-javascript
        application/json
        application/xml
        application/rss+xml
        application/atom+xml
        font/truetype
        font/opentype
        image/svg+xml;


    access_log                  /var/log/nginx/access.log;
    keepalive_timeout           3000;

    #ssl_protocols                   TLSv1.1 TLSv1.2 TLSv1.3;
    #ssl_prefer_server_ciphers       on;
    #ssl_session_cache               shared:SSL:2m;
    #ssl_session_timeout             1h;
    #ssl_session_tickets             off; # Disable TLS session tickets (they are insec

    server {
        listen                  80;
        root                    /home/silas/silasjelley.com;
        index                   index.html;
        server_name             localhost;
        client_max_body_size    32m;
        error_page              500 502 503 504  /50x.html;
        rewrite                 /publickey /publickey.txt;
        rewrite                 /sitemap /sitemap.xml;
        rewrite                 ^(/feeds/.*) $1/index.xml last;
        location = /50x.html {
              root              /var/lib/nginx/html;
        }
        location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {
            expires 30d;
        }
    }
}&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Start the NGINX server and make sure it starts at every boot:&lt;/p&gt;&lt;div class=&#34;code-block&#34; data-lang=&#34;shell&#34;&gt;&lt;div class=&#34;code-header&#34; data-mosaic-chrome=&#34;&#34;&gt;&lt;span class=&#34;code-lang&#34;&gt;shell&lt;/span&gt;&lt;button class=&#34;code-copy&#34; aria-label=&#34;Copy code&#34; type=&#34;button&#34;&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code data-lang=&#34;shell&#34;&gt;doas rc-service nginx start
doas rc-update add nginx default&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/details&gt;&lt;section role=&#34;doc-endnotes&#34;&gt;&lt;ol&gt;&lt;li id=&#34;fn1&#34;&gt;Alpine is my preferred distribution for stable ‘appliance’ systems at the moment. Previously that has been OpenBSD.&lt;/li&gt;&lt;/ol&gt;&lt;/section&gt;5:03pm on May 7, 2023 from Frenchay, Bristol, England, United Kingdom&lt;p&gt;&lt;a href=&#34;mailto:reply@silasjelley.com?subject=Reply%20to%3A%20%E2%80%9CWanderer%20Server%20Configuration%E2%80%9D&#34;&gt;Reply via email&lt;/a&gt;&lt;/p&gt;
</content>
</entry>

<div xmlns="http://www.w3.org/1999/xhtml" id="feed-chrome" hidden="" data-stylesheet="/style.css?a959535639bceb541eb7a955189913b9">
<header class="site-header">
<nav class="site-nav" aria-label="Site">
<a class="homelink" href="/" title="Homepage of silasjelley.com">Silas Jelley</a>
<ul class="navmain">
<li><a href="/wandering" title="Tales of my worldly travels">Wandering</a></li>
<li><a href="/rambling" title="The ramblings of an itinerant fool">Rambling</a></li>
<li><a href="/nonsense" title="Shaking my brain stem and seeing what fruit falls">Nonsense</a></li>
<li><a href="/quotes" title="Quotes, saved from anything and anywhere I find interest">Quotes</a></li>
</ul>
<ul class="navmisc top">
<li><a href="/about" title="Learn a little more about the author.">About</a></li>
<li><a href="/contact" title="Get in touch with me!">Contact</a></li>
<li><a href="/search" title="Search silasjelley.com">Search</a></li>
<li class="theme-choice" hidden=""><select class="theme-select" aria-label="Theme" title="Colour theme"><option value="system">Auto</option><option value="sepia">Sepia</option><option value="sepia-dark">Sepia dark</option><option value="light">Light</option><option value="dark">Dark</option></select></li>
</ul>
</nav>
</header>
<footer class="site-footer">
<p class="eyebrow">
<a href="/">Silas Jelley</a>
<a href="/feeds" title="Every feed on the site">Feeds</a>
<a href="/about">About</a>
<a href="/contact">Contact</a>
<a href="#top">Top ↑</a>
</p>
</footer>
</div>
<script xmlns="http://www.w3.org/1999/xhtml" src="/js/theme.js?04109bde1f72"></script>
<script xmlns="http://www.w3.org/1999/xhtml" src="/js/feed.js?aeaf63aa0cfc"></script>
</feed>