How to Install Trilium Notes on Void Linux

Trilium Notes is a hierarchical note-taking application that is designed to be as customizable and feature-rich as possible. It is available as an open-source project on GitHub, and in this tutorial, we will guide you through the process of installing Trilium Notes on Void Linux.

Step 1 - Install Required Dependencies

Before installing Trilium Notes, you need to make sure that all the required dependencies are installed on your system. Void Linux uses the xbps package manager, so run the following command to update the package list and upgrade the existing packages:

sudo xbps-install -Su

Then, install the dependencies required by Trilium Notes by running the following command:

sudo xbps-install git nodejs npm libXScrnSaver libXScrnSaver-devel libxkbcommon-x11 libxkbcommon-x11-devel

Step 2 - Clone Trilium Notes Repository

Once you have installed the dependencies, you can proceed to clone the Trilium Notes repository from GitHub. Use the following command to clone the repository:

git clone https://github.com/zadam/trilium.git

This command will create a new directory called trilium containing the Trilium Notes source code.

Step 3 - Build and Install Trilium Notes

Now that you have cloned the repository, you can build and install Trilium Notes on your system. To do this, navigate to the trilium directory and run the following commands:

cd trilium
npm install
npm run build

The npm install command downloads and installs the required Node.js dependencies of Trilium Notes, while npm run build builds the application.

Once the build process is complete, you can start Trilium Notes by running the following command:

npm start

Step 4 - Create a Trilium Notes Desktop Shortcut

By default, Trilium Notes does not create a desktop shortcut on Void Linux. To create a shortcut, create a new file at /usr/share/applications/trilium.desktop with the following contents:

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Trilium Notes
Comment=A hierarchical note-taking application
Exec=/path/to/trilium/start.sh
Icon=/path/to/trilium/resources/app.asar.unpacked/assets/icon.png
Terminal=false

Make sure to replace /path/to/trilium with the actual path to the trilium directory on your system.

Conclusion

That's it! You have successfully installed Trilium Notes on Void Linux. With this powerful hierarchical note taking app, you can now easily manage your notes and ideas on your desktop.

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!