This guide explains how to create, mount, and maintain a VHDX drive for use with WSL (Windows Subsystem for Linux).
- Windows 10/11 with WSL2 installed
- Administrative access
- PowerShell
- Sufficient disk space
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| #!/usr/bin/env bash | |
| # WP-CLI Back up Script to Amazon S3 | |
| # Source: https://www.jonathan.vc | |
| # Author: Jonathan Dingman | |
| # Adapted from Mike at WP Bullet | |
| #define local path for backups | |
| BACKUPPATH=/tmp/backups | |
| #path to WordPress installations |
Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target| mkdir /etc/ssl/nginx | |
| wget -P /etc/ssl/nginx/ https://cs.nginx.com/static/files/CA.crt | |
| ## move nginx-repo.crt to /etc/ssl/nginx/nginx-repo.crt | |
| ## move nginx-repo.key to /etc/ssl/nginx/nginx-repo.key | |
| wget http://nginx.org/keys/nginx_signing.key | |
| apt-key add nginx_signing.key | |
| apt-get install apt-transport-https libgnutls26 libcurl3-gnutls | |
| printf "deb https://plus-pkgs.nginx.com/ubuntu `lsb_release -cs` nginx-plus\n" >/etc/apt/sources.list.d/nginx-plus.list |
| # Add project specific ProGuard rules here. | |
| # By default, the flags in this file are appended to flags specified | |
| # in C:\Users\bkhezry\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt | |
| # You can edit the include path and order by changing the proguardFiles | |
| # directive in build.gradle. | |
| # | |
| # For more details, see | |
| # http://developer.android.com/guide/developing/tools/proguard.html | |
| # Add any project specific keep options here: |
| # Add project specific ProGuard rules here. | |
| # By default, the flags in this file are appended to flags specified | |
| # in C:\Users\bkhezry\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt | |
| # You can edit the include path and order by changing the proguardFiles | |
| # directive in build.gradle. | |
| # | |
| # For more details, see | |
| # http://developer.android.com/guide/developing/tools/proguard.html | |
| # Add any project specific keep options here: |
rsync (Everyone seems to like -z, but it is much slower for me)