Skip to content

Rodrigo Gonçalves

IT Analyst and Consultant

  • Contact
  • Academic Curriculum
  • Research
  • Personal Projects
  • LinkedIn
  • E-mail
  • Containers (1)
  • Operating Systems (4)
  • Programming (3)
  • Research (6)

Category: Operating Systems

How to run Chrome in WSLG

google-chrome-stable --enable-features=UseOzonePlatform --ozone-platform=wayland
Posted on March 2, 2023December 30, 2023Categories Linux, Operating Systems, Windows

Chocolatey rwSync & closed connection

If, when trying to do a rsync using Chocolatey rwSync through ssh you receive an error of “closed connection” you have to:

  1. Uninstall the windows OpenSSH client (in Windows Optional Features)
  2. Add the folder C:\ProgramData\chocolatey\lib\rsync\tools\bin to your path

You can check if the version is correct by doing an ssh -v localhost

Posted on February 23, 2023December 30, 2023Categories Operating Systems, Windows

Chocolatey cwRsync & known_hosts

If, when using cwRsync though chocolatey, you can’t add a host fingerprint, receiving the error:

Failed to add the host to the list of known hosts (/known_hosts).

You have to create a file known_hosts in C:\ProgramData\chocolatey\lib\rsync\tools and allow your user to write to it.

Posted on February 23, 2023December 30, 2023Categories Operating Systems, Windows

Reducing WSL-2 Memory Usage

Execute the following command (as root):


sync && echo 3 > /proc/sys/vm/drop_caches

To put in in a crontab, to execute every 6 hours (assuming the script with the command at /root/clean_caches.sh):

0       */6     *       *       *       /root/clean_caches.sh

Source: https://github.com/microsoft/WSL/issues/4166

Posted on June 5, 2020December 30, 2023Categories Linux, Operating Systems, WindowsTags linux, windows, wsl-2