Notes on WSL Tuning
Here I’ll store my notes on WSL tuning. I mainly use WSL to do Dev Containers, so I need it to run as smooth as possible. My main problems include: memory and disk size. Let’s see what we can do to address the problem.
Currently I’m working on a small WordPress plugin that does syntax highlighting. I have the need to ship some maintenance scripts with my Dev Containers. I want some aliases to interact with the scripts (instead of calling them through /scripts/actions.sh. This solution uses a Bash startup file and a custom Dockerfile.
When you host a WordPress website, you might need to have FTP access. If you do FTP, why not SFTP (which uses SSH to do a secure transfer)? It is fully supported by FileZilla. Let’s create a script that does the setup of the new SFTP user. As we’re using WordOps, we’ll grand the new user rights on our /var/www directory.
With the Chocolatey Package Manager for Windows, it is super easy to install software from the command-line. This makes your installs scriptable and thus repeatable. In this blog I’ll show you how to render installation instructions from a machine and how to use the Windows Task Scheduler to update your packages regularly.