Skip to content

Windows

Gabor Szarnyas edited this page Dec 30, 2022 · 17 revisions

ThinkPad t480s keyboard beeps when keys are jammed

Interestingly, this problem can be fixed in the BIOS, see Lenovo support for details.

Run Docker Desktop in WSL

As of Q3 2019, the recommended approach to run Docker inside WSL v1 (Windows Subsystem for Linux) is to run Docker Desktop (née Docker for Windows). This can be done by following this lengthy but rather simple tutorial.

The key points condensed:

  1. Navigate to the Docker Desktop configuration window: go to the systray, right-click the Docker icon, click Settings, and tick Expose daemon on tcp://localhost:2375 without TLS.

  2. You need to make sure that the ~/.local/bin is part of the $PATH variable. The .profile file in Ubuntu 18.04 already adds this directory to $PATH if it exists. So make sure the directory exists by running:

    mkdir ~/.local/bin
  3. Installing Docker inside WSL can be as simple as issuing:

    sudo apt install docker.io
    sudo usermod -aG docker $USER

    Then log out and in again.

  4. Set the $DOCKER_HOST environment variable:

    echo "export DOCKER_HOST=tcp://localhost:2375" >> ~/.bashrc && source ~/.bashrc
  5. Make sure the mount points align

    [automount]
    enabled = true
    root = /

    Reboot or issue the following command in an administrator-level PowerShell:

    Restart-Service -Name "LxssManager"

Using multiple keyboard layouts on Windows 8 and 8.1

Windows 8 introduced two ways of changing between multiple keyboard layouts (and regional settings), Ctrl + Space which cycles between all possibilities, and Alt + Shift which cycles between languages.

My desired settings are the following:

  • English language, Hungarian keyboard
  • English language, English (US) keyboard

To achieve this, do the following:

  1. Install Windows with the display language set to English, the keyboard layout set to Hungarian.
  2. Go to the Control Panel, Clock, Language and Region, Language.
  3. Click Add a language, choose Hungarian (magyar).
  4. Go to the freshly added language. You are offered to Download and install language pack. We don't want that.
  5. Remove the Hungarian layout and add the US layout (not the US-International as it uses flying accents).

The result should look like this:

Keyboard layout settings

The regional settings can be edited in the same window, in Change date, time or number formats. This is not affected by the language or the keyboard layout.

Screenshot to file (Windows 8 only)

Press Win + Print Screen to save a screenshot to the Pictures\Screenshots folder in your Documents folder.

Too long filenames in git for windows

Both Windows and git can handle longer filenames, but the git default setting is set to max 255 characters (but why?!)

git config --system core.longpaths true

Animated cursors in Office 2016

The animated, smooth movement of cursors in Office 2016 can be annoying. To turn it off, create the following DWORD registry key with a value 1:

HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Graphics\DisableAnimations

Note that:

  • You might have to create Graphics under Common
  • It should be DisableAnimations (plural) unlike for Office 15.0 where it was singular.

YouTube links opened from Microsoft Office prompts "Your browser is up to date"

When opening YouTube links (formatted as https://www.youtube.com/watch?v=xxx) from Microsoft Office (e.g. Microsoft Word) in Google Chrome as the default browser, the browser displays the message "Your browser is up to date" every time the links are opened.

Solution:

Based on the YouTube help:

  1. Open the Registry Editor (regedit).
  2. Navigate to (partially create) the path HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Common\Internet.
  3. Create a new DWORD key named ForceShellExecute and set it to 1.
  4. Reboot the machine (may not be necessary).

Note 1: It seems that that version number in the registry key's path has to be 9.0 regardless of the Office version running on the machine.

Note 2: I tried numerous other solutions (installing all Windows updates, fiddling with the security settings of Office, etc.), but they did not help.

Clone this wiki locally