Skip to content

Manual server installation

azivner edited this page Aug 28, 2018 · 10 revisions

This pages describes manually installing Trilium on your server.

Requirements

Trilium is a node.js application. Supported version is 8.2.1 and up, but it might work with earlier versions, it's just not tested. It will definitely not run on node version lower than 7.6 though (first version with async/await enabled).

You can check your node version with this command (node.js needs to be installed):

node --version

If your linux distribution has only outdated version of node.js, you can take a look at the installation instructions on node.js website which covers most popular distributions.

Image requirements

If you want to use Trilium server installation only as a sync server, you can skip this section.

To compile libraries required for image support you need to have "autoconf" installed. In ubuntu you can do this with

sudo apt install autoconf

To work with PNG files you'll also need libpng16-16 library.

sudo apt install libpng16-16

Installation

Download

You can either download source code zip/tar from latest release or clone git repository from stable branch with git clone -b stable https://github.com/zadam/trilium.git

Installation

cd trilium

# download all node dependencies
npm install

Run

cd trilium

# using nohup to make sure trilium keeps running after user logs out
nohup node src/www &

Application by default starts up on port 8080, so you can open your browser and navigate to http://localhost:8080 to access Trilium (replace "localhost" with your hostname).

TLS

Don't forget to configure TLS, which is required for secure usage!

Clone this wiki locally