-
Desktop Installation
To install Trilium on your desktop, follow these steps:
On Ubuntu 23.10 and later, the Linux .zip archive needs an extra setup step before it starts; see Troubleshooting. The .deb package and the Flathub version work without it.
On Linux, Trilium is also available on Flathub, for both x86_64 and ARM (aarch64). Install it from your software center (e.g. GNOME Software or KDE Discover), or from a terminal:
Updates arrive through the software center or flatpak update, like any other Flatpak.
-
Server Installation
This guide outlines the steps to install Trilium on your own server. You might consider this option if you want to set up synchronization or use Trilium in a browser - accessible from anywhere.
There are several ways to install Trilium on a server, each with its own advantages:
The server installation includes both web and mobile frontends.
After setting up your server installation, you may want to configure settings such as the port or enable TLS.
-
Synchronization
Trilium is an offline-first note-taking application that stores all data locally on the desktop client. However, it also offers the option to set up synchronization with a server instance, allowing multiple desktop clients to sync with a central server. This creates a star-shaped topology:
In this setup, a central server (referred to as the sync server) and multiple client (or desktop) instances synchronize with the sync server.
-
Mobile Frontend
Trilium has a mobile web frontend which is optimized for touch based devices - smartphones and tablets. It is activated automatically during login process based on browser detection.
Mobile frontend is limited in features compared to the full desktop version. See below for more details on this.
Unlike the desktop version, the mobile version has a slightly different UI meant to better fit the constrained screens of a mobile phone.
-
Web Clipper
Trilium Web Clipper is a web browser extension which allows user to clip text, screenshots, whole pages and short notes and save them directly to Trilium Notes.
Trilium Web Clipper officially supports the following web browsers:
The extension is available from the official browser web stores:
Clicking the extension's button in the browser toolbar opens its popup:
-
Upgrading TriliumNext
This document outlines the steps required to upgrade Trilium to a new release version.
Trilium does not support built-in automatic upgrades; all updates must be performed manually. The upgrade process varies depending on the installation method:
Upon startup, Trilium will automatically migrate the database to the new version. Note that after migration, older versions of Trilium will be unable to read the database.
-
Backup
Trilium supports simple backup scheme where it saves copy of the Database on these events:
So in total you'll have at most 4 backups from different points in time which should protect you from various problems. These backups are stored by default in backup directory placed in the data directory.
This is only very basic backup solution, and you're encouraged to add some better backup solution - e.g. backing up the Database to cloud / different computer etc.
-
Data directory
Data directory contains:
Easy way how to find out which data directory Trilium uses is to look at the "About Trilium Notes" dialog (from "Menu" in upper left corner):
Here's how the location is decided:
Data directory is normally named trilium-data and it is stored in:
If you want to back up your Trilium data, just backup this single directory - it contains everything you need.
-
Downloaded resources
Downloaded resources are large files that some features need but that do not ship with Trilium, such as the speech recognition models used to transcribe meetings. Trilium downloads them the first time a feature needs them, and keeps them on the device for later use.
Currently, only Meeting transcription on the desktop application uses downloaded resources:
When a feature needs resources that are not on the device yet, Trilium asks before downloading them.