Installing Mediagoblin on Linux Mint
Mediagoblin is a free and open-source media publishing platform that allows you to share your photos, videos, and other media files online. It is written in Python and uses the GNU General Public License.
In this tutorial, we will guide you on how to install Mediagoblin on Linux Mint.
Prerequisites
Before starting this tutorial, you should have the following:
- One Ubuntu 18.04 or Debian 10 server with a sudo user and firewall enabled.
- Python 2.7
- Git
- PostgreSQL 9.1 or newer
- Virtualenv
- Pillow requirements - Check official documentation
Installation
First, update the system packages using the following command.
sudo apt-get update && sudo apt-get upgradeInstall the required packages via the command below.
sudo apt-get install git postgresql libjpeg-dev libpng-dev libtiff-dev libgif-dev libxml2-dev libxslt-dev libffi-dev build-essential python-dev python-pip python-lxmlInstall Virtualenv via pip installer.
sudo pip install virtualenvSet up a PostgreSQL database and user for your Mediagoblin installation.
sudo su postgres psql CREATE USER mediagoblin WITH PASSWORD 'password'; CREATE DATABASE mediagoblin; GRANT ALL PRIVILEGES ON DATABASE mediagoblin TO mediagoblin;Clone the Mediagoblin repository from GitHub.
git clone https://github.com/mediagoblin/mediagoblin.gitCreate and activate a Virtual Environment.
cd mediagoblin virtualenv -p /usr/bin/python2.7 . source bin/activateUse the following command to install the Python dependencies.
pip install -r requirements.txtRun the following command to create the database tables.
mediagoblin-manage createdbOptionally, you can set up and register a MediaGoblin user account.
mediagoblin-manage useradd username [email protected] --password=passwordStart the server with the following command.
mediagoblin serveOpen your web browser and visit the URL
http://localhost:6543to access Mediagoblin.
Congratulations! You have successfully installed Mediagoblin on your Linux Mint server.