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:

Installation

  1. First, update the system packages using the following command.

    sudo apt-get update && sudo apt-get upgrade
    
  2. Install 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-lxml
    
  3. Install Virtualenv via pip installer.

    sudo pip install virtualenv
    
  4. Set 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;
    
  5. Clone the Mediagoblin repository from GitHub.

    git clone https://github.com/mediagoblin/mediagoblin.git
    
  6. Create and activate a Virtual Environment.

    cd mediagoblin
    virtualenv -p /usr/bin/python2.7 .
    source bin/activate
    
  7. Use the following command to install the Python dependencies.

    pip install -r requirements.txt
    
  8. Run the following command to create the database tables.

    mediagoblin-manage createdb
    
  9. Optionally, you can set up and register a MediaGoblin user account.

    mediagoblin-manage useradd username --email=user@example.com --password=password
    
  10. Start the server with the following command.

    mediagoblin serve
    
  11. Open your web browser and visit the URL http://localhost:6543 to access Mediagoblin.

Congratulations! You have successfully installed Mediagoblin on your Linux Mint server.

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!