Mediagoblin is a free and open-source media hosting platform that allows you to share images, videos, and audio. It is built on top of the Python web framework and uses the PostgreSQL database to store user data. In this tutorial, we will guide you through the installation process of Mediagoblin on Fedora CoreOS Latest.
Before we get started with the installation process, make sure that you have the following:
The first step is to install the dependencies required to run Mediagoblin. You can install the dependencies by running the following command:
sudo dnf install -y python3 python3-devel python3-pip \
postgresql postgresql-server \
postgresql-devel postgresql-contrib \
libsodium libsodium-devel \
git ffmpeg
Now that you have installed the dependencies, you can proceed with the installation of Mediagoblin. Follow the steps given below:
git clone https://git.savannah.gnu.org/git/mediagoblin.git
cd mediagoblin
python3 -m venv .env
source .env/bin/activate
pip install -e .
Mediagoblin uses the PostgreSQL database to store user data. Follow the steps given below to create a database and a user:
sudo systemctl start postgresql
sudo -u postgres createdb mediagoblin
Replace myuser
and mypassword
with the desired username and password.
sudo -u postgres createuser -P myuser
sudo -u postgres psql
GRANT ALL PRIVILEGES ON DATABASE mediagoblin TO myuser;
\q
to exit.
Mediagoblin allows you to customize the configuration according to your needs.
Create a .mediagoblin_local.py
configuration file in the mediagoblin
folder:
cp mediagoblin.ini mediagoblin_local.ini
Edit the mediagoblin_local.ini
file and update the following settings:
[general]
...
base_url = https://yourdomain.com/mediagoblin
...
# Replace "yourdomain.com" with your own domain name.
[storage]
...
base_dir = /var/lib/mediagoblin
...
# Replace "/var/lib/mediagoblin" with your desired storage location.
[celeryd]
...
celery_result_persistent = False
...
Now that you have configured Mediagoblin, you can start it by running the following command:
gearbox serve
Visit http://localhost:6543
to see Mediagoblin in action! You can now use it to upload and share media files.
Congratulations! You have successfully installed Mediagoblin on Fedora CoreOS Latest. You can now use it to share your media files with your friends and family. If you face any issues during the installation process, refer to the official Mediagoblin documentation for further troubleshooting.
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!