From 27de0e82154390765d85c41589ebadd6dbcdfe7a Mon Sep 17 00:00:00 2001 From: "P.J. Finlay" Date: Sat, 17 Jul 2021 16:32:29 +0000 Subject: Made username libretranslate --- README.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index f951875..ab76e9c 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ # LibreTranslate-init -Run LibreTranslate on Ubuntu 20.04. +Run [LibreTranslate](https://libretranslate.com) on Ubuntu 20.04. Uses [LibreTranslate WSGI](https://community.libretranslate.com/t/is-wsgi-currently-supported/24/3) with [Gunicorn and Nginx](https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-gunicorn-and-nginx-on-ubuntu-18-04). ``` -# Add argosopentech user -useradd argosopentech -mkdir /home/argosopentech -chown argosopentech:argosopentech /home/argosopentech -usermod -aG sudo argosopentech -su argosopentech +# Add libretranslate user +useradd libretranslate +mkdir /home/libretranslate +chown libretranslate:libretranslate /home/libretranslate +usermod -aG sudo libretranslate +su libretranslate # Add swap space (optional) sudo fallocate -l 10G /swapfile @@ -18,14 +18,17 @@ sudo mkswap /swapfile sudo swapon /swapfile sudo swapon --show -# Download and run LibreTranslate-init -git clone https://github.com/argosopentech/LibreTranslate-init.git ~/LibreTranslate-init +# Download LibreTranslate-init +git clone https://github.com/libretranslate/LibreTranslate-init.git ~/LibreTranslate-init -# Run LibreTranslate on port 5000 +# Download dependencies and run LibreTranslate on port 5000 ~/LibreTranslate-init/setup.sh # Run LibreTranslate WSGI with nginx and systemd ~/LibreTranslate-init/run.sh +# Check LibreTranslate status +sudo systemctl status libretranslate + ``` -- cgit v1.2.3