How to Install Paperless-ngx on Ubuntu Server Latest
Paperless-ngx is a web-based document management system that helps to organize and streamline your paperwork. In this tutorial, we will guide you on how to install Paperless-ngx on Ubuntu Server Latest.
Prerequisites
Before we start with the installation, make sure that you have the following prerequisites:
- Ubuntu Server Latest
- Root or non-root user account with sudo privileges
- Access to the internet
- Basic command-line knowledge
Step 1: Update System Packages
The first step is to update the system packages to their latest versions.
sudo apt update
sudo apt upgrade
Step 2: Install Required Dependencies
Paperless-ngx requires some dependencies that need to be installed before we proceed with the installation process.
sudo apt install git build-essential gcc python3-dev python3-pip libsm6 libxrender1 libfontconfig1
Step 3: Clone the Paperless-ngx Repository
Next, clone the Paperless-ngx repository from GitHub to your Ubuntu server.
sudo git clone https://github.com/jonaswinkler/paperless-ng.git /opt/paperless-ng
Step 4: Install Paperless-ngx
After cloning the Paperless-ngx repository, navigate to the cloned directory and install the requirements.
cd /opt/paperless-ng
sudo pip3 install -r requirements.txt
Step 5: Configure Paperless-ngx
Before you can run Paperless-ngx, you need to configure some settings first. Begin by creating the configuration file.
sudo cp contrib/env-sample .env
Note that you can also edit the .env file using your preferred text editor and update the settings based on your requirements.
Step 6: Create Database Schema
Paperless-ngx requires a database to store its data. Firstly, update the database settings in the .env file. Then, run the following commands to create the schema:
sudo python3 manage.py makemigrations
sudo python3 manage.py migrate
Step 7: Create an Admin User
To log in to the Paperless-ngx web interface, you need to create an admin user account. Run the following command and enter the credentials as required:
sudo python3 manage.py createadmin
Step 8: Run the Server
Now that you have installed, configured and created an admin user, it's time to run the server. Use the following command:
sudo python3 manage.py runserver 0.0.0.0:8000
You should see the following output:
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
Step 9: Access the Web Interface
To access the web interface, navigate to http://<your-server-ip>:8000 in your preferred browser. You should see the login page. Log in with your admin credentials, and you should be able to see the Paperless-ngx dashboard.
Conclusion
Congratulations, you have successfully installed Paperless-ngx on your Ubuntu Server Latest. You can now begin organizing and managing your paperwork efficiently.