Skip to content

Instantly share code, notes, and snippets.

@kgersen
Last active September 10, 2024 11:02
Show Gist options
  • Save kgersen/3d8c58abaf8933ac8f5ea07d6892ec42 to your computer and use it in GitHub Desktop.
Save kgersen/3d8c58abaf8933ac8f5ea07d6892ec42 to your computer and use it in GitHub Desktop.
myDU server install Linux
steps to install myDU server on Linux:
if using WSL2 (Linux on Windows), install WSL2 then a distro: https://learn.microsoft.com/en-us/windows/wsl/install
once your distro is up , you're in Linux continue below (easiest distro: ubuntu)
A. setting up Docker:
step 1: install Docker engine (do not install Docker Desktop): https://docs.docker.com/engine/install/
ubuntu: sudo snap install docker
step 2: (optionnal) post install : https://docs.docker.com/engine/install/linux-postinstall/
on WSL2, you must restart for post-install to work (in terminal: wsl.exe --shutdown)
Depending on your distro, you may have docker-compose or not. you can choose to install it or create an alias for it.
docker-compose is obsolete but still used by old scripts (like myDU!).The new version is integrated in the docker commmand.
so "docker-compose something" is the same as "docker compose something"
Ubuntu snap docker install has docker-compose too.
step 3: Make sure python3 is installed too with yaml lib ("sudo apt-get install python3-yaml")
B. Setting up MyDU:
sudo docker run --rm -it -v ./mydu:/output novaquark/dual-server-fastinstall:latest # this is a 2GB+ download
sudo chown -R $USER:$USER mydu # this is optionnal but a must have if you want to edit files and stuff without sudoing all time
cd mydu
cp config/dual.yaml config/dual.yaml.ori
python3 scripts/config-set-domain.py config/dual.yaml http://192.168.x.y 192.168.x.y #adjust to your lan IP or wan IP for public hosting
sed -i "s/https:\/\/http:\/\//https:\/\//" config/dual.yaml # or edit config/dual.yaml and fix line 23
mkdir prometheus-data && sudo chmod a+w prometheus-data
sudo ./scripts/up.sh # this starts the server, could take longer the 1st time
sudo scripts/admin-set-password.sh admin MY_PASSWORD
This should du it ...
@kgersen
Copy link
Author

kgersen commented Sep 10, 2024

for lan/internet you'll need patched wsl for remote access to work. see https://github.com/microsoft/WSL/releases/tag/2.3.11
(or search for one of the workarounds)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment