Setup Trilium Notes On Arch Linux

Search for a command to run...

No comments yet. Be the first to comment.
Most AI agents that support scheduled tasks have two sources of instruction when a cron job fires: The cron prompt — the task-specific instructions you wrote when scheduling the job The skill — a re

TL;DR Scarp draw result, host on GitHub, retrieve it like API at damacai.hongineer.com. Data Scraping I have previously shared a technique for scraping Da Ma Cai draw result. Now I finally have time t

This is a Bash script that check if the replica (slave) health status. If there is an issue, it will exist with non-zero status. This is useful when used with monitoring tools like [Monit](https://mmo

chmod is a command-line utility used to change the access permissions of file system objects such as files and directories. It allows you to control who can read, write, and execute those objects. Changing Permissions Using Octal Notation Example Usa...
chown changes the ownership of files and directories. This involves modifying the user and/or group associated with a file, determining who has access and permissions. Changing File Ownership to a Specific User Example Usage: chown user file.txt What...
Trilium is a self-hosted, single-user note taking application. Trilium server is a web application which provides responsive UI for note taking. The desktop client synchronises with the server. It does not have mobile app, but it has a mobile web frontend which is optimized for touch based devices - smartphones and tablets.
In this post I will provide instruction for hosting the server application in Arch Linux.
Prerequisites:
Docker is installed and running.
Install docker-compose package.
Add yourself to docker user group.
sudo usermod -a -G docker <username>
Create a docker-compose.yaml file. You can save it in any folder you like, mine is kept in ~/dev/docker/trilium/.
services:
trilium:
image: 'zadam/trilium:0.63.7'
restart: always
ports:
- '8080:8080'
volumes:
- '~/.trilium-data:/home/node/trilium-data'
The container will be listening on port 8080. If you want to change the port number to 3000, set the ports configuration value to '3000:8080'.
I want the note data to be saved in ~/.trilium-data/. If you prefer other location, change the volumes configuration value to '/path/to/your/folder:/home/node/trilium-data'.
# Go to folder containing compose file
cd ~/dev/docker/trilium
docker-compose up -d && docker-compose logs -f
docker-compose logs -f command is optional. It will show the log output so that you can check if there is any error when launching the container. Once Trilium is running well, you can press Ctrl + C to exit from the logging.
Trilium shall be accessible by launching http://<you-server-ip>:8080 in browser. Choose "I'm a new user, ..." on the webpage, and it will guide you to setup a password and get started on note taking.
This setup is optional. I am running Trilium in my home server with Apache web server installed. Setting up a reverse proxy allows me to access Trilium remotely.
Apache virtual host config:
<VirtualHost *:80>
ServerName www.mydomain.com
RewriteEngine On
RewriteCond %{HTTP:Connection} Upgrade [NC]
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteRule /(.*) ws://localhost:8080/$1 [P,L]
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
</VirtualHost>
Trilium Notes - Open Source, Self Hosted Notes with nth level Hierarchy and Power! by Awesome Open Source
Docker server installation by zadam
Apache proxy setup by zadam