Table of Contents
1 Tiny Tiny RSSをインストールする
以下のスクリプトはTiny Tiny RSSをインストールします。
- TT_RSS_PASSWDはMySQLで使うtt-rssユーザのパスワードです。
- TT_RSS_FQDNはTiny Tiny RSSをインストールするサーバのFQDNです。お使いのサーバのFQDNに変更してください。
#!/bin/shset -eexport DEBIAN_FRONTEND=noninteractive[ -z “${TT_RSS_PASSWD}” ] && TT_RSS_PASSWD=tt-rss[ -z “${TT_RSS_URL}” ] && TT_RSS_FQDN=kalilinux-2017-1-tt-rss.hiroom2.comTT_RSS_URL=https://${TT_RSS_FQDN}/tt-rssmysql_install(){ sudo apt install -y mariadb-server sudo systemctl enable mariadb sudo systemctl restart mariadb}ttrss_install(){ mkdir tt-rss cd tt-rss D=http://ftp.debian.org/debian/pool/main/d wget -q ${D}/dojo/libjs-dojo-core_1.11.0+dfsg-1_all.deb wget -q ${D}/dojo/libjs-dojo-dijit_1.11.0+dfsg-1_all.deb wget -q ${D}/dojo/libjs-dojo-dojox_1.11.0+dfsg-1_all.deb T=http://ftp.debian.org/debian/pool/main/t wget -q ${T}/tt-rss/tt-rss_17.1+git20170410+dfsg-2_all.deb cat <<EOF | sudo debconf-set-selectionstt-rss tt-rss/dbconfig-install boolean truett-rss tt-rss/database-type select mysqltt-rss tt-rss/mysql/app-pass password ${TT_RSS_PASSWD}tt-rss tt-rss/app-password-confirm password ${TT_RSS_PASSWD}tt-rss tt-rss/reconfigure-webserver multiselect apache2# tt-rss/self_url_path must be set for installing tt-rss automatically.tt-rss tt-rss/self_url_path string https://${TT_RSS_FQDN}/tt-rssEOF sudo apt install -y libapache2-mod-php dbconfig-mysql php-mbstring sudo dpkg -i ./*.deb || (sudo apt -f install -y && sudo dpkg -i ./*.deb) # When installing tt-rss automatically with debconf-set-selections, # tt-rss’s postinst read tt-rss/self_url_path but does not use it value. # So this script sets tt-rss/self_url_path and set config.php again. cat <<EOF | sudo debconf-set-selectionstt-rss tt-rss/self_url_path string https://${TT_RSS_URL}/tt-rssEOF sudo sed -e “s;define(‘SELF_URL_PATH’, ‘.*’);define(‘SELF_URL_PATH’, ‘${TT_RSS_URL}’);g” -i /etc/tt-rss/config.php sudo systemctl restart tt-rss cd ..}apache_install(){ sudo cp /etc/tt-rss/apache.conf /etc/tt-rss/apache.conf.orig cat <<EOF | sudo tee /etc/tt-rss/apache.conf<VirtualHost _default_:443> SSLEngine on SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key$(sed -e ‘s/^/ /g’ /etc/tt-rss/apache.conf.orig)</VirtualHost>EOF sudo a2enmod php7.0 sudo a2enmod ssl sudo systemctl enable apache2 sudo systemctl restart apache2}ttrss_main(){ mysql_install ttrss_install apache_install}ttrss_main
2 Tiny Tiny RSSへアクセスする
以下のURLへアクセスします。ブラウザでこのページの証明書を許可してください。
https://<server>/tt-rss
Tiny Tiny RSSのログイン画面が表示されます。Loginにadminを、Passwordにpasswordを設定してログインしてください。