google-chrome-stable --enable-features=UseOzonePlatform --ozone-platform=wayland
Category: Operating Systems
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:
- Uninstall the windows OpenSSH client (in Windows Optional Features)
- 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
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.
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