Category Archives: Linux

Pi GPPS Clocks

Use Chris’ PPS kernel (until I have time or am compelled to compile my own).

Compile ntp 4.2.6p5 as follows (from aquarat):
But first: apt-get install libcap-dev

./configure --enable-ATOM --enable-NMEA --enable-linuxcaps; make; make install

Disable TTY on /dev/AMA0 in /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait

Set baud rate in /boot/config.txt

Disable GPU sdram pause
# Disable GPU sdram mem pause

Comment out getty in /etc/inittab:

#Spawn a getty on Raspberry Pi serial line
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

Add pps-gpio to /etc/modules

Useless SNMPD Logging Debian

I found a blurb about ridding my logs of those useless “Connection from UDP” messages in my log files.
Why this isn’t the default I can only imagine (some will claim security I’m sure).

Here’s what I got out of it. That the below settings, added to /etc/default/snmpd will get rid of the useless messages but still log error messages.

SNMPDOPTS='-LS 0-4 d -Lf /dev/null -p /var/run/'

I restarted snmpd and it seems to function as expected.

Home Storage: Increasing Filesystem Size

Extending my backup volume group, logical volume and filesystem on both NASes.


— Volume group —
VG Name hcst002
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 465.52 GiB
PE Size 4.00 MiB
Total PE 119173
Alloc PE / Size 119173 / 465.52 GiB
Free PE / Size 0 / 0
VG UUID 7aaDWJ-6go0-nSLQ-3Hwa-FdJo-0g9q-3ZbW71

nginx+observium configuration

Update to index.php in observium to work with nginx.

Change from:


Change to:


nginx site configuration:

server {
listen 80;

access_log /var/log/nginx/;
error_log /var/log/nginx/;

root /www/observium/html;
index index.php;

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/www;

location / {
try_files $uri $uri/ @observium;

location @observium {
rewrite ^(.+)$ /index.php/$1/ last;


# General php settings
include php.conf;

# We need to exclude robots.txt specifically
include drop.conf;