From 4defc62e8a49c5b69a1c7f820c41794dc6a562b0 Mon Sep 17 00:00:00 2001 From: "P.J. Finlay" Date: Sat, 17 Jul 2021 15:23:36 +0000 Subject: Launcing LibreTranslate from script --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index bb25a88..343c006 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Run LibreTranslate 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 @@ -15,6 +16,13 @@ chsh -s /bin/bash argosopentech usermod -aG sudo argosopentech su argosopentech +# Add swap space (optional) +sudo fallocate -l 10G /swapfile +sudo chmod 600 /swapfile +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 ~/LibreTranslate-init/setup.sh -- cgit v1.2.3