Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Miniflux

install

Ubuntu 22 ARM

1 2 3 4

cd /etc/apt/sources.list.d
sudo touch miniflux.list
echo "deb [trusted=yes] https://repo.miniflux.app/apt/ * *" | sudo tee /etc/apt/sources.list.d/miniflux.list > /dev/null
sudo apt update
sudo apt install miniflux
sudo apt install postgresql-common
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
sudo apt install postgresql-16
sudo -u postgres psql
CREATE USER miniflux WITH ENCRYPTED PASSWORD 'miniflux';
CREATE DATABASE miniflux;
GRANT ALL PRIVILEGES ON DATABASE miniflux TO miniflux;
ALTER USER miniflux WITH SUPERUSER;
\q
sudo vim /etc/miniflux.conf
RUN_MIGRATIONS=1
DATABASE_URL=user=miniflux password=miniflux dbname=miniflux sslmode=disable
LISTEN_ADDR=/run/miniflux/miniflux.sock
PORT=8070
miniflux -c /etc/miniflux.conf -migrate
miniflux -c /etc/miniflux.conf -create-admin
# sudo systemctl start postgresql
miniflux -c /etc/miniflux.conf
sudo systemctl enable --now miniflux
sudo systemctl enable --now postgresql

Windows 10

  1. Get miniflux-windows-amd64 from releases, rename it to miniflux.exe.
  2. PostgreSQL (test on v14).

Create database5:

initdb --locale=C --username=miniflux --pgdata=miniflux
postgres -D miniflux
# Keep this terminial window

Configrate database6:

  1. Find and run pgAdmin4.exe.
  2. Servers → Context-menu → Register → Server → Tab General:
    Name: miniflux_server
    
  3. Tab Connection:
    host name: localhost
    Maintenance database: miniflux
    Username: miniflux
    
  4. Servers → miniflux_server → Context-menu of Databases → Create → Database → Tab General:
    Database: miniflux
    
  5. Tab Definition:
    Encoding: None
    

Create miniflux.conf7:

DATABASE_URL=user=miniflux password=secret dbname=miniflux sslmode=disable
RUN_MIGRATIONS=1
POLLING_FREQUENCY=60
CREATE_ADMIN=1
ADMIN_USERNAME=<admin_username>
ADMIN_PASSWORD=<admin_password>
DEBUG=on
WORKER_POOL_SIZE=10
PORT=8070
# In a new terminal session
miniflux -config-file miniflux.conf

usage

# Backup data
pg_dump -U miniflux -h 127.0.0.1 -p 5432 -F t miniflux > miniflux.tar
# Clear postgresql
sudo systemctl stop postgresql
sudo systemctl disable postgresql
pg_lsclusters
sudo systemctl stop postgresql@16-main
sudo pg_dropcluster 16 main --stop
sudo apt-get remove --purge postgresql-16

config

On Windows 10, how to autorun at startup?

  1. Create start_miniflux.bat.
    rem Maybe need administrator permissions. I forgot.
    @echo off
    
    start postgres.exe -D miniflux_db
    timeout 5
    start miniflux.exe -config-file miniflux.conf
    
    pause
    
  2. I don't want to use Windows Task Scheduler. I don't try NSSM. So create start_miniflux.vbs:
    Set WshShell = CreateObject("WScript.Shell")
      WshShell.Run chr(34) & "<path_to>\start_service.bat" & Chr(34), 0
    Set WshShell = Nothing
    
  3. Create shortcut of start_miniflux.vbs.
  4. Put the shortcut into C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\.

reference

miniflux


  1. Debian Installation

  2. How do I solve this problem to use psql? | psql: error: FATAL: role "postgres" does not exist

  3. How To Completely Uninstall PostgreSQL

  4. Linux downloads (Ubuntu)

  5. initdb

  6. Server Dialog

  7. Configuration Parameters