Raneto is a simple, open-source, markdown-powered knowledge base system that allows you to create and host your documentation with ease. In this tutorial, we will guide you through the steps required to install Raneto on your POP! OS Latest.
Before installing Raneto, you will need:
Raneto requires Node.js installed in your system to function correctly. To install Node.js, use the following command:
sudo apt install nodejs npm
You can check the version of Node.js installed on your system using the following command:
node --version
Next, you need to install Git to clone the Raneto repository on your system. To install Git, use the following command:
sudo apt install git
Before configuring Apache or Nginx, create a dedicated virtual host or server block for Raneto.
If you are using Apache, create a new virtual host for Raneto by creating a new file with the following command:
sudo nano /etc/apache2/sites-available/raneto.conf
Update the file with the following configuration:
<VirtualHost *:80>
ServerName your-domain.com
ServerAlias www.your-domain.com
DocumentRoot /var/www/raneto/public
<Directory /var/www/raneto/public>
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/raneto_error.log
CustomLog ${APACHE_LOG_DIR}/raneto_access.log combined
</VirtualHost>
Save and close the file, and enable the new virtual host using the following command:
sudo a2ensite raneto.conf
If you are using Nginx, create a new server block for Raneto by creating a new file with the following command:
sudo nano /etc/nginx/sites-available/raneto.conf
Update the file with the following configuration:
server {
listen 80;
server_name your-domain.com www.your-domain.com;
root /var/www/raneto/public;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
access_log /var/log/nginx/raneto_access.log;
error_log /var/log/nginx/raneto_error.log;
}
Save and close the file, and enable the new server block using the following command:
sudo ln -s /etc/nginx/sites-available/raneto.conf /etc/nginx/sites-enabled/
Once Node.js and Git are installed, clone the Raneto repository with the following command:
sudo git clone https://github.com/gilbitron/Raneto.git /var/www/raneto
This will clone the Raneto repository in /var/www/raneto
.
After cloning, navigate to the Raneto directory and install the required dependencies with the following command:
cd /var/www/raneto
sudo npm install
This will install all the required packages for Raneto.
Next, you need to configure Raneto. Create a new file with the following command:
sudo nano config-defaults.js
Update the file with your desired settings. For example:
module.exports = {
site_title : 'My Knowledge Base',
owner : 'John Doe',
google_analytics : 'UA-XXXXXXX-X',
recaptcha_public_key : '',
recaptcha_private_key : '',
disqus_shortname : '',
social: {
GitHub: 'https://github.com/gilbitron/Raneto',
Twitter: 'https://twitter.com/gilbitron',
Facebook: 'https://www.facebook.com/gilbitron',
LinkedIn: 'https://www.linkedin.com/company/gilbitron/'
},
categories: {
'getting-started': 'Getting Started',
'topics': 'Topics'
},
articles_per_page: 10,
allow_editing: false,
allow_uploads: false,
show_compile_time: false,
};
Save and close the file.
After installing and configuring Raneto, start the application using the following command:
npm start
This will start Raneto on localhost:3000
.
Finally, open your web browser and navigate to http://your-domain.com
or http://server-IP-address
to access the Raneto web interface. You should see the default homepage of your knowledge base.
Congratulations! You have successfully installed and configured Raneto on your POP! OS Latest 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!