This tutorial will guide you through the installation of Raneto on Void Linux. Raneto is a free, open-source, and simple flat-file wiki system that runs on Node.js.
Before you start with the installation, ensure that the following prerequisites are met:
First, you need to create a new directory where you will download the Raneto files:
$ mkdir raneto
Change your current working directory to the created directory:
$ cd raneto
Install Raneto using npm:
$ npm install raneto
Create a new directory for your Raneto files:
$ mkdir -p /var/www/raneto
Copy the default configuration file:
$ cp -R ./node_modules/raneto/config.default/* /var/www/raneto/
Edit the configuration file:
$ sudo nano /var/www/raneto/config.production.json
Configure the settings according to your needs.
Here is an example of how the configuration file may look like:
{
"site_title": "My Wiki",
"lang": "en_US",
"articles_dir": "/var/www/raneto/content/",
"table_of_contents": true
}
Save and close the file.
To make the configuration file accessible to Raneto, you need to change the ownership of the directory:
$ sudo chown -R www-data:www-data /var/www/raneto/
You can start Raneto by running the following command:
$ node_modules/raneto/app.js
When Raneto is running, open a web browser and navigate to http://localhost:3000/ to access the Raneto wiki site.
You can stop the Raneto server by pressing Ctrl + C
.
Create a new file for the systemd unit file:
$ sudo nano /etc/systemd/system/raneto.service
Paste the following configuration:
[Unit]
Description=Raneto Wiki
[Service]
ExecStart=/usr/bin/node /path/to/raneto/node_modules/raneto/app.js
Restart=always
User=www-data
Group=www-data
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target
Save and close the file.
Enable and start the systemd service:
$ sudo systemctl enable raneto.service
$ sudo systemctl start raneto.service
Verify that the service is running:
$ sudo systemctl status raneto.service
The output should show that the service is active and running.
You have installed and configured Raneto on your Void Linux system. You can now start creating your wiki content and make it accessible to your users.
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!