All posts by Bob

Invoice Ninja behind Apache reverse proxy

Invoice Ninja is an invoicing web application, based on the Laravel framework. Configuring this behind an Apache 2.4 web server requires some special configuration. These notes assume you have an already working Apache2 server configured for reverse proxy operation, and separate working web server for Invoice Ninja. On the reverse proxy server: /etc/apache2/sites-enabled/ninja: <Location /invoices> … Continue reading Invoice Ninja behind Apache reverse proxy

Configure Geo-blocking with Apache on Debian

To enable Geo-IP Blocking on Debian 9 Stretch, assuming you already have a running Apache web server: apt install libmaxminddb0 libmaxminddb-dev apt install apache2-dev Download and extract the latest MaxMind Apache mod version from: https://github.com/maxmind/mod_maxminddb/releases Follow the instructions to configure and install from the source code Download and install the GeoIP Update program to automate … Continue reading Configure Geo-blocking with Apache on Debian

Linux Shell Menu (TUI)

Linux shell menu (TUI – Text User Interface), using pdmenu samples and examples available here:https://gitlab.com/majorbob/sys-menu Start by installing pdmenu (apt install pdmenu, or dpkg -i pdmenu.deb).Then download and expand the zip file, copy folders to appropriate locations (as expanded).Make /usr/bin/menu executable. Type menu to start the menu.

Read bkf files in Linux

mtftar is a utility that can read data stored in BKF files generated with Windows NTBackup program. The original source is: https://github.com/geocar/mtftar However, on Debian 9 in 2018, this code currently produces errors such as: MTF error out of order mtftar (files before directory saw 4 while expecting limit of 0)This does not look like a tar … Continue reading Read bkf files in Linux

Light locker settings

This article is about the following Linux packages: xset – the user preference command-line tool for X11, controlling screen blanking and monitor power management, light-locker – the package for password locking screens, where lightdm is the desktop manager. light-locker-settings – the GUI configuration tool for light-locker xscreensaver – the popular screen saver program light-locker-settings is a … Continue reading Light locker settings

Eaton NV 800H with NUT UPS Monitor

The Eaton NV 800H connects via USB cable. Using lsusb it identifies as: 0665:5161 Cypress Semiconductor USB to Serial To monitor this UPS using the NUT package in Linux, use the following configurations: /etc/nut/nut.conf: MODE=standalone /etc/nut/ups.conf: [myups]        driver = nutdrv_qx        default.battery.voltage.low = 11.2        default.battery.voltage.high = 13.7        port = auto        desc = “My UPS” /etc/nut/upsd.users: [upsmon]        password  = … Continue reading Eaton NV 800H with NUT UPS Monitor

Service to automount USB devices with udisks2

Udev is problematic when trying to mount USB devices – it works first time, but fails for re-insertions (Debian 9 Stretch, running in KVM, with ntfs-3g USB drive passed through).  Instead create a script to monitor: apt-get install udisks2 #nano /usr/local/bin/myautomounter #!/bin/shpathtoname() { udevadm info -p /sys/”$1″ | awk -v FS== ‘/DEVNAME/#39;}stdbuf -oL — udevadm … Continue reading Service to automount USB devices with udisks2