Installing Trilium Notes on Ubuntu Server

Trilium Notes is an open-source hierarchical note-taking application that can be used for personal knowledge management, research, and writing. It is written in JavaScript and designed to work on Linux, macOS, and Windows. In this tutorial, we will be installing Trilium Notes on Ubuntu Server Latest, a popular Linux distribution.

Prerequisites

Before we begin, make sure that your Ubuntu Server is up-to-date and has the following packages installed:

You can install these packages by running the following commands:

sudo apt update
sudo apt install nodejs npm git

Installing Trilium Notes

Follow these steps to install Trilium Notes on Ubuntu Server:

  1. Clone the Trilium Notes repository from GitHub:

    git clone https://github.com/zadam/trilium.git
    
  2. Change into the trilium directory:

    cd trilium
    
  3. Install the required npm packages:

    npm install
    
  4. Build the Trilium Notes client:

    npm run build
    
  5. Run the Trilium Notes server:

    npm run start
    

    The server will start on port 8080 by default. You can access Trilium Notes by navigating to http://localhost:8080/ in your web browser.

  6. (Optional) To run Trilium Notes as a daemon, you can use the pm2 process manager:

    sudo npm install -g pm2
    pm2 start npm --name trilium -- run start
    sudo pm2 startup
    

    This will start the Trilium Notes server as a background process and automatically start it on system boot.

Conclusion

In this tutorial, we learned how to install Trilium Notes on Ubuntu Server Latest. Trilium Notes is a powerful and versatile note-taking application that can be used for various purposes such as personal knowledge management or research. You can now start using Trilium Notes and organize your notes in a hierarchical manner.

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!