All posts by Bob

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

Boot Windows with Syslinux

To install Syslinux on an NTFS partition to boot Windows XP: Download and extract the latest Zip file from: https://www.kernel.org/pub/linux/utils/boot/syslinux/This file contains code for Windows and Linux systems, only copy files from within the “bios” folder. Create the directoriy structure on the active NTFS partition: C:\boot\syslinux Within the extracted folders, find and copy from the syslinux-x.xx\bios\com32 … Continue reading Boot Windows with Syslinux

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