Installing Tiny Tiny RSS on Void Linux

Tiny Tiny RSS is a free and open source web-based news feed (RSS/Atom) reader that is easy to use and highly customizable. In this tutorial, we will go through the steps required to install Tiny Tiny RSS on Void Linux.

Prerequisites

Before we begin, you need to have the following prerequisites installed on your system:

Installing Tiny Tiny RSS

Follow these steps to install Tiny Tiny RSS on Void Linux:

  1. Update the package repository cache on your system:

    # xbps-install -Su
    
  2. Install the required dependencies:

    # xbps-install php php-fpm php-pgsql nginx postgresql
    
  3. Create a new PostgreSQL database and user for your Tiny Tiny RSS installation:

    # su - postgres
    # createdb tt-rss
    # createuser -SDRP tt-rss
    
  4. Download the Tiny Tiny RSS source code and extract it to the desired location:

    # cd /var/www
    # wget https://git.tt-rss.org/fox/tt-rss/archive/master.tar.gz
    # tar -xvf master.tar.gz
    # mv tt-rss-master tt-rss
    
  5. Configure the web server (Nginx in this case) to serve Tiny Tiny RSS:

    # cd /etc/nginx/conf.d
    # touch tt-rss.conf
    # vi tt-rss.conf
    

    Add the following configuration to tt-rss.conf:

    server {
        listen 80;
        server_name tt-rss.example.com;
    
        root /var/www/tt-rss;
    
        index index.php;
    
        location / {
            try_files $uri $uri/ /index.php?$args;
        }
    
        location = /favicon.ico {
            log_not_found off;
            access_log off;
        }
    
        location ~ \.php$ {
            try_files $uri =404;
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
        }
    
        location ~ /\.ht {
            deny all;
        }
    }
    
  6. Restart Nginx to apply the configuration changes:

    # sv restart nginx
    
  7. Configure PHP-FPM to serve Tiny Tiny RSS:

    # cd /etc/php
    # cp php.ini-development php.ini
    # vi php-fpm.d/tt-rss.conf
    

    Add the following configuration to tt-rss.conf:

    [tt-rss]
    
    user = tt-rss
    group = www-data
    
    listen = 127.0.0.1:9000
    listen.owner = www-data
    listen.group = www-data
    
    pm = dynamic
    pm.max_children = 5
    pm.start_servers = 2
    pm.min_spare_servers = 1
    pm.max_spare_servers = 3
    
    php_admin_value[date.timezone] = "America/New_York"
    php_value[session.save_path] = /var/lib/php/sessions/tt-rss
    php_value[upload_tmp_dir] = /var/www/tt-rss/upload
    
  8. Restart PHP-FPM to apply the configuration changes:

    # sv restart php-fpm
    
  9. Open your web browser and go to http://tt-rss.example.com/ to access the Tiny Tiny RSS web interface. Follow the on-screen instructions to configure your feeds and settings.

Congratulations! You have successfully installed Tiny Tiny RSS on Void Linux.

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!