Jan 3, 2019
· 3 minute read
linuxpi
Have an old laptop?
Reuse it’s disk as a USB drive for your Pi.
Assumes that the old drive is SATA (most relatively modern laptops will be).
You will need a USB to SATA adapter cable, such as this one.
Run lsblk to identify the disk and any partitions that currently exist.
In this example the disk is sdb and has 4 partitions - it came from an old HP laptop that was no longer capable of running Windows.
Read On →
Jan 2, 2019
· 4 minute read
linuxpi
Update 2019-11-17
Current versions of Raspberry Pi 4 do not support USB boot.
Tinkering with Raspberry Pi over Christmas, this note details setting Pi up to boot from USB disk.
A variant of these instructions
Some intructions (including the above) advise modifying /boot/config.txt to enable USB boot by adding program_usb_boot_mode=1
My experience is that this is not necessary, at least with recent Pi 3B+ which seems to have USB boot enabled by default.
Read On →
Sep 13, 2018
· 3 minute read
linux
Logwatch is a customisable, pluggable log-monitoring system.
It will parse log files for a given period of time and report on defined areas.
Reports can easily be distributed daily via email.
Installation Could not be much simpler, it’s packaged for most Linux OS’s.
Example for Debian or Ubuntu;
apt-get install logwatch Installation should complete without any errors, then run a quick test,
Check all log files for ientries from yesterday and email the result.
Read On →
Mar 12, 2018
· 3 minute read
linux
Linux containers are infrastructure for container projects
Some very useful, but slightly outdated, information on Stephane Graber’s site
Stephane is the LXD technical lead at Canonical Ltd.
LXD introduction
From that site: “LXD is written in Go, it’s free software and is developed under the Apache 2 license.”
All of the examples in this series are run in one or more Virtualbox VM’s using either Ubuntu Server or Debian
Read On →
May 8, 2017
· 2 minute read
linuxhow to
There is a low priority Debian bug (still there in Jessie) which results in log messages like this:
May 08 18:12:37 vps sshd[13405]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key May 08 18:11:34 vps sshd[13403]: Received disconnect from x.x.x.x: 11: [preauth] These are a typical result of the server being probed and they can safely be ignored.
But, the tidy minded amongst us do not like errors in log files.
Read On →