How to Install OpenWISP on Ubuntu Server Latest

OpenWISP is a network management system that simplifies network configuration and ensures its stability. In this tutorial, we will guide you on how to install OpenWISP on Ubuntu Server Latest.

Prerequisites

Before installing OpenWISP, make sure you have the following:

Step 1: Update your server

It is important to update your system to avoid any conflicts or errors during installation. To update your Ubuntu, run the following command:

sudo apt update
sudo apt upgrade

Step 2: Install Required Dependencies

The following dependencies should be installed before proceeding with the installation of OpenWISP:

sudo apt install -y git python3 python3-dev python3-setuptools python3-venv build-essential mariadb-server mariadb-client libmariadbclient-dev

Step 3: Clone OpenWISP repository

To clone the OpenWISP repository and move to this directory, run the following command:

git clone https://github.com/openwisp/openwisp-config.git
cd openwisp-config

Step 4: Create and activate Python3 virtual environment

Create a Python3 virtual environment to install the required dependencies:

python3 -m venv .venv
source .venv/bin/activate

Step 5: Install OpenWISP

Install OpenWISP in the virtual environment using the following command:

pip install -r requirements.txt

Step 6: Create OpenWISP Database

Create a database for OpenWISP:

sudo mysql -u root -p
MariaDB [(none)]> create database openwisp character set utf8 collate utf8_general_ci;
MariaDB [(none)]> grant all on openwisp.* to openwisp@localhost identified by 'password';
MariaDB [(none)]> exit;

Replace 'password' with a secure password of your choice.

Step 7: Edit configuration file

Locate the file config/settings.py and edit it according to your database settings:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'openwisp',
        'USER': 'openwisp',
        'PASSWORD': 'password',
        'HOST': 'localhost',
        'PORT': '',
    }
}

Step 8: Initialise Database

Run the following command to create all required database schemas:

python manage.py migrate

Step 9: Create Django superuser

Create a Django superuser account:

python manage.py createsuperuser

You will be asked to enter the username, email and password.

Step 10: Run OpenWISP

You can now run OpenWISP by issuing the following command:

python manage.py runserver 0.0.0.0:8000

You can access OpenWISP by viewing the server IP address on port 8000 in a web browser.

Congratulations! You have successfully installed OpenWISP on Ubuntu Server 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!