μlogger is a server that helps to record GPS tracks from users' mobiles. This server is based on Flask and uses a PostgreSQL database to store data. The installation procedure for μlogger on Ubuntu is as follows:
Before installing μlogger on Ubuntu, ensure you have the following requirements:
First, update your Ubuntu server system by running the following command:
sudo apt update && sudo apt upgrade -y
Next, install Python and pip3 packages by running the following command:
sudo apt install python3 python3-pip -y
Install the PostgreSQL server by running the following command:
sudo apt install postgresql postgresql-contrib -y
After PostgreSQL is installed, create a new database and a new user for μlogger:
sudo -u postgres psql
Now, create a new database for μlogger:
CREATE DATABASE ulogger;
Create a new user for μlogger with a password:
CREATE USER ulogger WITH PASSWORD 'password';
Grant all privileges to the ulogger database for the ulogger user:
GRANT ALL PRIVILEGES ON DATABASE ulogger TO ulogger;
Exit from the postgresql client:
\q
Install the Git client by running the following command:
sudo apt install git -y
Clone the μlogger repository with the following command:
git clone https://github.com/bfabiszewski/ulogger-server.git
Move to the μlogger-server directory created after cloning the repository:
cd ulogger-server
Install the required Python packages by running:
sudo pip3 install -r requirements.txt
Copy the .env.example
file to .env
by running:
cp .env.example .env
Next, configure the .env
file to include the following:
DATABASE_URL = postgresql://ulogger:password@localhost:5432/ulogger
Create the database schema and tables by running the following command:
python3 manage.py create_db
Finally, start the μlogger server:
python3 manage.py runserver
In conclusion, the above steps guide you through the installation of μlogger on Ubuntu. Once you've completed the setup, you can access the server at http://localhost:5000
. Remember to configure your mobile application's URL to get the GPS tracks.
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!