-
Notifications
You must be signed in to change notification settings - Fork 40
Home
Mark Metcalfe edited this page Oct 28, 2021
·
40 revisions
- Ubuntu for WSL2
- Docker
- Windows Terminal (Optional, but recommended)
Note: On Windows, these next steps will need to be done within your WSL2 Ubuntu terminal/filesystem
- Create a directory that you can clone your Totara sites into (
mkdir ~/totara-sites) - Clone the Totara source code (For Totara employees, see our BitBucket repository) into your site folder and give it a name (e.g.
cd ~/totara-sites && git clone REPO_URL totara13) - Copy the
.env.distfile to.env(cp .env.dist .env) - Within the copied
.env, setLOCAL_SRCto be the full path to your local Totara site folder (e.g.LOCAL_SRC=/home/USERNAME/totara-sites) - Copy the
config.phpfile from this repo into your Totara site repo folder (or alternatively create aconfig.phpbased uponconfig.example.php/config.php.distin the site root) - Add the
bin/folder to your paths (e.g.PATH=$PATH:/path/to/docker-dev/bin) -
Windows Only: In an elevated Windows command prompt, run
icacls C:\Windows\System32\drivers\etc\hosts /grant Users:W(required for the next step) - Run the
tools/set_hosts.shscript to add all the required host entries to your/etc/hostsfile - Configure your terminal to use an extended font pack (full font list available here)
See the Usage page for usage documentation.
Copyright (c) 2025 Totara Learning Solutions Limited