Category Archives: Linux

OXO Connect to Linux with Strongswan

Strongswan is a IPsec provider for Linux. It can be used to provide a responder endpoint for connection to phone systems using OXO Connect. Below are the key settings that have been tested to work with a OXO Connect PSK-PSK profile, using Debian Linux: /etc/ipsec.conf: conn ike2psk-clientA auto=add keyexchange=ikev2 ike=aes256-sha2_256-modp2048! # modify to match esp=aes256-sha2_256-modp2048! … Continue reading OXO Connect to Linux with Strongswan

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

Debian 9 Stretch on Macbook Pro save Screen brightness

Symptom: Macbook resets to full brightness every reboot, instead of remembering brightness settting. Scenario: *OS: Debian 9 Stretch*System: 2011 Macbook Pro, with Nvidia 320M*Xorg.conf includes this line in the Device section:     Option         “RegistryDwords” “EnableBrightnessControl=1”*The current backlight value is recorded in:  /sys/class/backlight/apple/backlight/brightness Fix: During shutdown systemd should save the brightness setting in: /var/lib/systemd/backlight/and load it … Continue reading Debian 9 Stretch on Macbook Pro save Screen brightness