Introduction

Trilium Notes is a powerful, open-source note-taking application that focuses on hierarchical notes with advanced features, such as full-text search, rich text formatting, and the ability to store various types of media. It’s ideal for anyone who wants to organize and manage their knowledge in a structured, easy-to-access way. In this post, we’ll go over how to install Trilium Notes on your server, set it up, and explore its features to boost your productivity.


Why Choose Trilium Notes?

  • Hierarchical Notes: Organize your notes into a tree structure for better clarity.
  • Cross-Platform: Runs on Linux, Windows, and macOS.
  • Rich Text Editing: Offers a full suite of editing tools for text, images, and code blocks.
  • Self-Hosting: Host it on your own server for better control and privacy.
  • Sync Across Devices: Easily synchronize your notes across multiple devices.

How to Install Trilium Notes on Ubuntu (Linux)

  1. Install Dependencies First, make sure your system is up-to-date and has the necessary packages.

    sudo apt update && sudo apt upgrade
    sudo apt install git build-essential libsqlite3-dev libz-dev libssl-dev
  2. Download Trilium Notes Clone the Trilium Notes GitHub repository.

    git clone https://github.com/zadam/trilium.git
    cd trilium
  3. Build Trilium Notes Use Node.js to build Trilium from source.

    npm install
    npm run build
  4. Run Trilium Notes Start the application by running:

    npm start

    Trilium will be available at http://localhost:8080. For a production environment, you’ll want to configure a reverse proxy with Nginx or Apache and set up SSL for secure access.

  5. Access Trilium Notes Open a browser and go to the local server IP or your domain name (if configured with a reverse proxy).


Setting Up Trilium Notes for Self-Hosting

  1. Set Up a Database Trilium uses SQLite by default, but you can switch to PostgreSQL or MySQL for better performance with larger note databases.

  2. Configure HTTPS If you’re using a reverse proxy, enable HTTPS by installing a certificate (Let’s Encrypt is a good free option).

    Example Nginx configuration:

    server {
    listen 80;
    server_name trilium.yourdomain.com;
    location / {
    proxy_pass http://localhost:8080;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    }
    }
  3. Create a User for Authentication (Optional) Trilium supports user authentication to protect your notes. Set up an authentication method for extra security.


Using Trilium Notes

Once installed, you can create and manage your notes. Here are some key features:

  • Creating Notes: You can add text, images, and even code snippets to your notes. Organize them in a tree structure for easier navigation.
  • Tagging and Searching: Use tags to categorize your notes and search through them using Trilium’s powerful search functionality.
  • Rich Text Formatting: Format your notes with bold, italics, lists, links, and even code blocks for better presentation.
  • Synchronize Notes: If you’re using Trilium on multiple devices, enable synchronization to keep your notes consistent.

Comparison: Trilium Notes vs. Other Note-Taking Tools

FeatureTrilium NotesEvernoteNotionOneNote
Hierarchy✔️✔️✔️
Rich Text Editing✔️✔️✔️✔️
Self-Hosting✔️
Cross-Platform✔️✔️✔️✔️
Free✔️❌ (limited)✔️✔️
Sync Across Devices✔️✔️✔️✔️

Free Top-Rated Alternatives

  • Joplin: An open-source note-taking app with markdown support and syncing.
  • Obsidian: A powerful knowledge management tool with a local-first approach.
  • Zotero: Best for academic research, organizing and citing references.

Download Links


Conclusion

Trilium Notes is a robust open-source note-taking app that offers hierarchical note management, a rich feature set, and self-hosting capabilities. Whether you’re a developer, researcher, or just looking for a personal knowledge management system, Trilium Notes is a powerful tool to consider.


About EngineerHow.com EngineerHow.com is a platform dedicated to helping IT professionals, engineers, and self-hosting enthusiasts master a variety of topics through tutorials, guides, and videos. We provide step-by-step instructions on everything from VPS setup to networking and civil engineering.


Let Us Know Your Thoughts! Have you tried Trilium Notes or any other open-source note-taking tools? Share your experiences and questions in the comments below!