How to fix Linux/Windows dual boot clock shift
Problem: You have a dual-boot system. Every time you reboot from Linux to Windows, the time is shifted by several hours. Solution: On Linux, run sudo timedatectl set-local-rtc 1 This will configure...
View ArticleWhich version of Windows 10 am I running? Find out in 15 seconds!
To find out which version & build of Windows 10 you are running, first press Windows key + R. This will open a command prompt: In that dialog, enter winver: Now press Enter (also known as Return)....
View ArticleHow to access Windows user directory in WSL (Windows Subsystem for Linux)
WSL (Windows Subsystem for Linux) mounts C: as /mnt/c inside the WSL system. Therefore, you can access your Windows user’s home directory using cd /mnt/c/Users/<username> In order to find out...
View ArticleHow to check if file access time is enabled on Windows
Open a command prompt (no admin command prompt required) and run this command: fsutil behavior query disablelastaccess For me, this prints DisableLastAccess = 3 (Systemverwaltet, aktiviert) indicating...
View ArticleHow to check if your filesystem is mounted in noatime, relatime or...
If you need to use a software that depends on your filesystem storing the last access time of a file (atime), you can use this script to check if your filesystem is mounted in noatime, strictatime or...
View ArticleHow to access COM1, COM2, … serial ports in Windows Subsystem for Linux (WSL)?
Accessing serial ports in WSL is really simple: COM1 is mapped to /dev/ttyS1 COM2 is mapped to /dev/ttyS2 COM3 is mapped to /dev/ttyS3 COM4 is mapped to /dev/ttyS4 …
View ArticleHow to set Windows audio volume using Python
We can use the pycaw library to set the Windows Audio volume using Python. First, we install the library using pip install pycaw Note: pycaw does not work with WSL (Windows Subsystem for Linux)! You...
View ArticleHow to set Windows audio balance using Python
In our previous post we showed how to set the Windows audio volume using pycaw. First, we install the library using pip install pycaw Note: pycaw does not work with WSL (Windows Subsystem for Linux)!...
View ArticleHow to auto-set Windows audio balance to a specific L-R difference using Python
When you can’t place your speakers equally far from your ears, you need to adjust the audio balance in order to compensate for the perceived difference in volume. Windows allows you to compensate the...
View ArticleHow to find out if your WSL Ubuntu is running on WSL1 oder WSL2
In order to find out if your Ubuntu or other WSL linux installation is running on WSL1 or WSL2, open a Powershell and run wsl --list -v This will show you all WSL installations and the associated WSL...
View ArticleHow to make PowerShell output error messages in English
If you want to see a PowerShell output (e.g. an error message) in english instead of your local language, prefix your command by [Threading.Thread]::CurrentThread.CurrentUICulture = 'en-US'; For...
View ArticleHow to generate filename with date and time in PowerShell
You can use Get-Date like this to generate a date that is compatible with characters allowed in filenames: Get-Date -UFormat "%Y-%m-%d_%H-%m-%S" Example output: 2020-12-11_01-12-26 In order to generate...
View ArticleHow to fix Windows “echo $PATH” empty result
When you try to run echo $PATH you will always get an empty result. Instead, if you are in cmd, use echo %PATH% but if you are using PowerShell, you need to use $env:PATH
View ArticleHow to print PATH environment variable in PowerShell (Core)
Run $env:PATH to show the PATH environment variable in PowerShell.
View ArticleHow to fix Visual Studio Code still not finding binary after changing PATH...
Problem: Your Visual Studio Code integrated shell on Windows still doesn’t find a binary (e.g. a Python binary) even though you have just added it to the PATH environment variable and have opened a new...
View ArticleHow to fix Python ModuleNotFoundError: No module named ‘cv2’ on Windows
Problem: You see an error message like the following one when running some Python code on Windows: Traceback (most recent call last): File "<stdin>", line 1, in <module> File...
View ArticleWindows Auto-Login registry .reg file generator
This generator allows you to generate a .reg registry file to autologin any user (even admin users), allowing for basically a one-click installation. Tested with Windows10. Your inputs are not sent to...
View Article