In this tutorial, we will guide you on how to install Pootle, a free open-source web-based translation management system on Debian Latest.
Before starting, make sure that you have the following:
Update your Debian system
sudo apt update
sudo apt upgrade
Install Required Packages
sudo apt-get install -y postgresql postgresql-contrib redis-server git gettext patch \
python-virtualenv python-setuptools libpq-dev libxml2 libxml2-dev libxslt-dev libffi-dev \
libjpeg-dev libcairo2-dev libpango1.0-dev
Create a postgresql user and database
sudo -i -u postgres
createuser -d <username>
createdb -O <username> pootledb
exit
Install Node.js
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
Install Pootle using Git
git clone https://github.com/translate/pootle.git
Create a Virtual Environment
virtualenv env
source env/bin/activate
pip install -r requirements/dev.txt
Configure Pootle
cp pootle/settings/local_template.py pootle/settings/local.py
Edit the local.py
file with the following settings:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'pootledb',
'USER': '<username>',
'PASSWORD': '<password>',
'HOST': 'localhost',
'PORT': '',
}
}
BROKER_URL = 'redis://localhost:6379/0'
DEBUG = True
Replace <username>
and <password>
with your database user and password.
Run Database Migrations
cd pootle
./manage.py migrate
Create a Django Superuser
./manage.py createsuperuser
Start the development server
./manage.py runserver
Open your browser and go to http://localhost:8000
You will be prompted to log in. Enter the Django Superuser username and password for login.
Congratulations! You have successfully installed Pootle on Debian Latest.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!