Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
docs: Document and advocate systemd for WSL 2.
Zixuan James Li4a18552ff869
diff --git a/docs/development/overview.md b/docs/development/overview.mdindex 0cac9679e51..bf7c8497f40 100644--- a/docs/development/overview.md+++ b/docs/development/overview.md@@ -84,4 +84,4 @@ machine, take a look at our tips for[using-dev-env]: using.md[testing]: ../testing/testing.md[ci]: ../git/cloning.md#step-3-configure-continuous-integration-for-your-fork-[install-via-wsl]: setup-recommended.md#windows-10+[install-via-wsl]: setup-recommended.md#windows-10-or-11diff --git a/docs/development/setup-advanced.md b/docs/development/setup-advanced.mdindex 387a4a1609b..bedf4467c60 100644--- a/docs/development/setup-advanced.md+++ b/docs/development/setup-advanced.md@@ -66,7 +66,7 @@ ignoring the parts about `vagrant` (since you're not using it).## Installing using Vagrant with VirtualBox on Windows 10:::{note}-We recommend using [WSL 2 for Windows development](setup-recommended.md#windows-10)+We recommend using [WSL 2 for Windows development](setup-recommended.md#windows-10-or-11)because it is easier to set up and provides a substantially better experience.:::diff --git a/docs/development/setup-recommended.md b/docs/development/setup-recommended.mdindex 995f789942a..a525b4c17b6 100644--- a/docs/development/setup-recommended.md+++ b/docs/development/setup-recommended.md@@ -79,7 +79,7 @@ Jump to:- [Ubuntu](#ubuntu)- [Debian](#debian)- [Fedora](#fedora)-- [Windows](#windows-10)+- [Windows](#windows-10-or-11)#### macOS@@ -157,12 +157,12 @@ official `docker-ce` package (named `docker.io` in thedocker distribution, you can follow[their documentation to install Docker on Fedora](https://docs.docker.com/engine/install/fedora/).-#### Windows 10+#### Windows 10 or 11Zulip's development environment is most easily set up on Windows usingthe Windows Subsystem for Linux ([WSL2](https://docs.microsoft.com/en-us/windows/wsl/wsl2-about))-installation method described here.+installation method described here. We require version 0.67.6+ of WSL 2.1. Enable virtualization through your BIOS settings. This sequencedepends on your specific hardware and brand, but here are [some@@ -170,6 +170,10 @@ installation method described here.1. [Install WSL 2](https://docs.microsoft.com/en-us/windows/wsl/setup/environment).+1. It is required to enable `systemd` for WSL 2 to manage the database, cache and other services.+ To configure it, please follow [this instruction](https://learn.microsoft.com/en-us/windows/wsl/wsl-config#systemd-support).+ Then, you will need to restart WSL 2 before continuing.+1. Launch the Ubuntu shell as an administrator and run the following command:```bash@@ -225,8 +229,6 @@ installation method described here.start it. (If Windows Firewall creates popups to block services, simply click `Allow Access`.)```bash- # Start database, cache, and other services- ./tools/wsl/start_services# Install/update the Zulip development environment./tools/provision# Enter the Zulip Python environment@@ -235,11 +237,6 @@ installation method described here../tools/run-dev```- :::{note}- If you shut down WSL, after starting it again, you will have to manually start- the services using `./tools/wsl/start_services`.- :::-1. If you are facing problems or you see error messages after running `./tools/run-dev`,you can try running `./tools/provision` again.diff --git a/docs/git/cloning.md b/docs/git/cloning.mdindex fd3d63a862b..cd24c019681 100644--- a/docs/git/cloning.md+++ b/docs/git/cloning.md@@ -99,8 +99,8 @@ If you haven't already, now is a good time to install the Zulip development envisource projects in general, we recommend following our [detailed guide forfirst-time contributors][zulip-rtd-dev-first-time].-If you are in the middle of installing the recommended setup on Windows 10,-you are ready to [continue with step 8](../development/setup-recommended.md#windows-10).+If you are in the middle of installing the recommended setup on Windows 10 or 11,+you are ready to [continue with step 9](../development/setup-recommended.md#windows-10-or-11).## Step 3: Configure continuous integration for your forkdiff --git a/tools/wsl/start_services b/tools/wsl/start_servicesdeleted file mode 100755index e3151ad693e..00000000000--- a/tools/wsl/start_services+++ /dev/null@@ -1,10 +0,0 @@-#!/usr/bin/env bash-set -x-set -e--# These services are no longer running when WSL is restarted-# and hence they have to be manually started.-sudo service rabbitmq-server start-sudo service memcached start-sudo service redis-server start-sudo service postgresql start