How to install Gollum on Fedora CoreOS Latest

Gollum is a simple wiki software that can be easily installed on Fedora CoreOS. In this tutorial, we will guide you through the process of installing Gollum on Fedora CoreOS Latest.

Prerequisites

  • A machine running Fedora CoreOS
  • Access to the command line of your machine

Step 1: Install necessary packages

Firstly, open a terminal window and ensure that your system's package repositories are up to date by running the following command:

sudo dnf update

Next, install the required packages:

sudo dnf install -y ruby ruby-devel rubygems

Step 2: Install Gollum using RubyGems

After the necessary packages have been installed, use RubyGems to install Gollum:

sudo gem install gollum

Step 3: Configure and launch Gollum

Create a new directory to store your Gollum wiki:

sudo mkdir /var/gollum

Within this new directory, create a new file named config.ru, which will contain the configuration information for your Gollum instance:

sudo nano /var/gollum/config.ru

Add the following lines to the configuration file:

require 'gollum/app'

wiki_options = {
  :live_preview => true,
  :allow_uploads => true,
  :per_page_uploads => true,
  :css => true,
  :js => true
}

PreciousMetal::App.set(:gollum_path, "/var/gollum/wiki.git")
PreciousMetal::App.set(:wikiconfig, wiki_options)
run PreciousMetal::App

Save the changes to the file and exit the text editor.

Next, navigate to /var/gollum and initialize an empty Git repository:

cd /var/gollum
sudo git init wiki.git

You can now start the Gollum server by running the following command:

cd /var/gollum
sudo gollum --port 80 --adapter rackup

You should now be able to access your Gollum wiki by navigating to your machine's IP address or hostname in a web browser:

http://IP_OR_HOSTNAME

Conclusion

In this tutorial, you learned how to install Gollum on Fedora CoreOS Latest. With Gollum, you can now create and edit wikis with ease.