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

Windows 8 power button on start screen

To enable the power button on the start screen in Windows 8.1 (disabled by default on screens smaller than 8.5″), add either of the following registry keys: For current user: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell For all users on the device: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell Value to add: Launcher_ShowPowerButtonOnStartScreen,  DWORD = 1 Note: if setting this value via Group Policy Editor, the HKCU setting … Continue reading Windows 8 power button on start screen

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

Windows 10 Backup Settings shortcut

To create a desktop shortcut to the Backup settings in Windows 10:  Right-click desktop -> New -> Shortcut -> ms-settings:backup  -> Next -> Finish Rename the shortcut to “Backup Settings”.Edit the shortcut’s properties to customize the icon. For shortcuts to other settings see: www.nextofwindows.com/the-complete-list-of-ms-settings-shortcuts-to-windows-10-settings-applet

LXDE create quick launcher

To provide a GUI for LXDE users to easily create new .desktop files, which can be used as shortcuts to applications or locations, follow the instructions below: 1. Create file:  /usr/local/bin/create-quicklauncher: #!/bin/bash # Use the current time as a unique temporary filenameDATETIME=$(date +%Y%m%d-%H%M%S)FILENAME=$DATETIME.desktop lxshortcut –output=$(pwd)/$FILENAME # Get the Name that user inputed so we can rename … Continue reading LXDE create quick launcher