ラベル Miniflux の投稿を表示しています。 すべての投稿を表示
ラベル Miniflux の投稿を表示しています。 すべての投稿を表示

2023年3月9日木曜日

Debian 11 (Bullseye)にMiniflux2をインストールする

Miniflux2はGo製のfeed readerです。登録したウェブサイトの記事をRSSを通して読むことができます。

〇Minifulx2の画面

インストール方法

1. PostgreSQLのインストール
sudo apt-get update

sudo apt-get -y install postgresql-13

echo "listen_addresses='*'" | sudo tee -a /etc/postgresql/13/main/postgresql.conf

echo "host    all         all         127.0.0.1/32          password" | sudo tee -a /etc/postgresql/13/main/pg_hba.conf

※ネットワーク設定は適宜変更してください
echo "host    all         all         192.168.1.0/24          password" | sudo tee -a /etc/postgresql/13/main/pg_hba.conf

sudo systemctl restart postgresql.service

※パスワードなど適宜変更してください
sudo su - postgres << EOF
psql -c "
alter user postgres with password 'postgres';
create user miniflux2 with password 'miniflux2';
"
psql -c "
create database miniflux2 owner miniflux2 encoding 'UTF8' lc_collate 'ja_JP.UTF-8' lc_ctype 'ja_JP.UTF-8' template 'template0';
"
EOF

2. minifulx2のインストールする
wget https://github.com/miniflux/v2/releases/download/2.0.41/miniflux_2.0.41_amd64.deb

sudo dpkg -i ./miniflux_2.0.41_amd64.deb

echo "DATABSE_URL=postgres://miniflux2:miniflux2@localhost/miniflux2?sslmode=disable" | sudo tee -a /etc/miniflux.conf

echo "LISTEN_ADDR=0.0.0.0:8080" | sudo tee -a /etc/miniflux.conf

miniflux -migrate

sudo apt-get -y install expect

※パスワードなど適宜変更してください
/usr/bin/expect << EOF
spawn miniflux -create-admin
expect "Enter Username:"
send "admin\\r"
expect "Enter Password:"
send "admin123\\r"
expect eof
exit
EOF

sudo systemctl enable miniflux

sudo systemctl start miniflux

3. ブラウザからhttp://<サーバ名またはIPアドレス>:8080/ にアクセスします
ユーザ名はadmin、パスワードはadmin123です。
サンプルのRSS http://serverarekore.blogspot.com/feeds/posts/default

関連情報

・Minifluxに関する情報はこちらを参照してください。

2022年8月13日土曜日

Ubuntu 22.04にMiniflux2をインストールする

Miniflux2はGo製のfeed readerです。登録したウェブサイトの記事をRSSを通して読むことができます。

〇Minifulx2の画面

インストール方法

以下のコマンドを実行します。
1. PostgreSQLのインストール
sudo apt-get update

sudo apt-get -y install postgresql-14

echo "listen_addresses='*'" | sudo tee -a /etc/postgresql/14/main/postgresql.conf

echo "host    all         all         127.0.0.1/32          password" | sudo tee -a /etc/postgresql/14/main/pg_hba.conf
※ネットワーク設定は適宜変更してください
echo "host    all         all         192.168.1.0/24          password" | sudo tee -a /etc/postgresql/14/main/pg_hba.conf

sudo systemctl restart postgresql.service
※パスワードなど適宜変更してください
sudo su - postgres << EOF
psql -c "
alter user postgres with password 'postgres';
create user miniflux2 with password 'miniflux2';
"
psql -c "
create database miniflux2 owner miniflux2 encoding 'UTF8' lc_collate 'ja_JP.UTF-8' lc_ctype 'ja_JP.UTF-8' template 'template0';
"
EOF

2. minifulx2のインストールする
wget https://github.com/miniflux/v2/releases/download/2.0.37/miniflux_2.0.37_amd64.deb

sudo dpkg -i ./miniflux_2.0.37_amd64.deb

echo "DATABSE_URL=postgres://miniflux2:miniflux2@localhost/miniflux2?sslmode=disable" | sudo tee -a /etc/miniflux.conf

echo "LISTEN_ADDR=0.0.0.0:8080" | sudo tee -a /etc/miniflux.conf

miniflux -migrate

sudo apt-get -y install expect
※パスワードなど適宜変更してください
/usr/bin/expect << EOF
spawn miniflux -create-admin
expect "Enter Username:"
send "admin\\r"
expect "Enter Password:"
send "admin123\\r"
expect eof
exit
EOF

sudo systemctl enable miniflux

sudo systemctl start miniflux

3. ブラウザからhttp://<サーバ名またはIPアドレス>:8080/ にアクセスします
ユーザ名はadmin、パスワードはadmin123です。
サンプルのRSS http://serverarekore.blogspot.com/feeds/posts/default

関連情報

・Minifluxに関する情報はこちらを参照してください。

2020年4月26日日曜日

Ubuntu 20.04にMiniflux2とPostgreSQL12をインストールする

Miniflux2はGo製のfeed readerです。登録したウェブサイトの記事をRSSを通して読むことができます。

〇Minifulx2の画面


〇インストール方法
1. PostgreSQLのインストール
sudo localedef -i ja_JP -c -f UTF-8 -A /usr/share/locale/locale.alias ja_JP.UTF-8
  ※ locale -aでja_JP.UTF-8が表示されれば実行する必要なし

sudo apt-get update

sudo apt-get -y install postgresql-12

echo "listen_addresses='*'" | sudo tee -a /etc/postgresql/12/main/postgresql.conf

echo "host    all         all         127.0.0.1/32          password" | sudo tee -a /etc/postgresql/12/main/pg_hba.conf

echo "host    all         all         192.168.1.0/24          password" | sudo tee -a /etc/postgresql/12/main/pg_hba.conf

sudo systemctl restart postgresql.service

sudo su - postgres << EOF
psql -c "
alter user postgres with password 'postgres';
create user miniflux2 with password 'miniflux2';
"
psql -c "
create database miniflux2 owner miniflux2 encoding 'UTF8' lc_collate 'ja_JP.UTF-8' lc_ctype 'ja_JP.UTF-8' template 'template0';
"
EOF

2. minifulx2のインストールする
wget https://github.com/miniflux/miniflux/releases/download/2.0.21/miniflux_2.0.21_amd64.deb

sudo dpkg -i miniflux_2.0.21_amd64.deb

echo "DATABSE_URL=postgres://miniflux2:miniflux2@localhost/miniflux2?sslmode=disable" | sudo tee -a /etc/miniflux.conf

miniflux -migrate

sudo apt-get -y install expect

/usr/bin/expect << EOF
spawn miniflux -create-admin
expect "Enter Username:"
send "admin\\r"
expect "Enter Password:"
send "admin123\\r"
expect eof
exit
EOF

sudo systemctl enable miniflux

sudo systemctl start miniflux

3. ブラウザからhttp://<サーバ名またはIPアドレス>:8080/ にアクセスします
ユーザ名はadmin、パスワードはadmin123です。
サンプルのRSS http://serverarekore.blogspot.com/feeds/posts/default

〇関連情報
・Minifluxに関する情報はこちらを参照してください。

2020年4月11日土曜日

Debian 10(Buster)にMiniflux2をインストールする

Miniflux2はGo製のfeed readerです。登録したウェブサイトの記事をRSSを通して読むことができます、

〇Minifulx2の画面

〇インストール方法
1. PostgreSQLのインストール方法
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
sudo apt-get -y install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install postgresql-12

echo "listen_addresses='*'" | sudo tee -a /etc/postgresql/12/main/postgresql.conf

echo "host    all         all         127.0.0.1/32          password" | sudo tee -a /etc/postgresql/12/main/pg_hba.conf
echo "host    all         all         192.168.1.0/24          password" | sudo tee -a /etc/postgresql/12/main/pg_hba.conf

sudo systemctl restart postgresql.service

sudo su - postgres << EOF
psql -c "
alter user postgres with password 'postgres';
create user miniflux2 with password 'miniflux2';
"
EOF

export PGPASSWD=psotgres

sudo systemctl restart postgresql-12.service

sudo su - postgres << EOF
createdb miniflux2
psql -c "
alter database miniflux2 owner to miniflux2;
"
EOF

2. minifulx2のインストールする
wget https://github.com/miniflux/miniflux/releases/download/2.0.21/miniflux_2.0.21_amd64.deb

sudo dpkg -i miniflux_2.0.21_amd64.deb

echo "DATABSE_URL=postgres://miniflux2:miniflux2@localhost/miniflux2?sslmode=disable" | sudo tee -a /etc/miniflux.conf

miniflux -migrate

sudo apt-get -y install expect

/usr/bin/expect << EOF
spawn miniflux -create-admin
expect "Enter Username:"
send "admin\\r"
expect "Enter Password:"
send "admin123\\r"
expect eof
exit
EOF

sudo systemctl enable miniflux

sudo systemctl start miniflux

3. ブラウザからhttp://<サーバ名またはIPアドレス>:8080/ にアクセスします
ユーザ名はadmin、パスワードあadmin123です。
サンプルのRSS http://serverarekore.blogspot.com/feeds/posts/default

2019年3月11日月曜日

VagrantでMiniflux2がインストールされた仮想マシン(Ubuntu18.04)を構築する

Miniflux2はGo製のfeed readerです。

○Miniflux2の画面


〇構築方法
以下のVagrantfileを使用して、Miniflux2とPostgreSQL11がインストールされた仮想マシン(Ubuntu18.04)を構築する事ができます。

Vagrantfile
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "bento/ubuntu-18.04"
  config.vm.hostname = "ub1804miniflux2014"
  config.vm.provider :virtualbox do |vbox|
     vbox.name = "ub1804miniflux2014"
     vbox.cpus = 2
     vbox.memory = 2048
     vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
  end
config.vm.network "private_network", ip: "192.168.55.109", :netmask => "255.255.255.0"
config.vm.network "public_network", ip:"192.168.1.109", :netmask => "255.255.255.0"
  config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get -y install language-pack-ja
sed -i.bak -e "s#http://archive.ubuntu.com/ubuntu/#http://ftp.riken.jp/pub/Linux/ubuntu/#g" /etc/apt/sources.list
localectl set-locale LANG=ja_JP.UTF-8
localectl set-keymap jp106
timedatectl set-timezone Asia/Tokyo

# install postgresql
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
apt-get -y install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
apt-get update
apt-get upgrade
apt-get -y install postgresql-11

echo "listen_addresses='*'" >> /etc/postgresql/11/main/postgresql.conf

#sed -i 's/host.*all.*all.*127.0.0.1/#host    all             all             127.0.0.1/g' /etc/postgresql/11/main/pg_hba.conf

echo "host    all         all         127.0.0.1/32          password" >> /etc/postgresql/11/main/pg_hba.conf
echo "host    all         all         192.168.1.0/24          password" >> /etc/postgresql/11/main/pg_hba.conf
echo "host    all         all         192.168.55.0/24          password" >> /etc/postgresql/11/main/pg_hba.conf

systemctl restart postgresql.service
su - postgres << EOF
createdb -T template0 --locale=ja_JP.UTF-8 --encoding=UTF8 miniflux2
psql -c "
alter user postgres with password 'postgres';
create user miniflux with password 'miniflux';
grant all privileges on database miniflux2 to miniflux;
"
EOF
echo "postgres:postgres" | chpasswd
systemctl restart postgresql.service

wget https://github.com/miniflux/miniflux/releases/download/2.0.14/miniflux_2.0.14_amd64.deb
dpkg -i miniflux_2.0.14_amd64.deb

echo "DATABSE_URL=postgres://miniflux:miniflux@localhost/miniflux2?sslmode=disable" >> /etc/miniflux.conf

miniflux -migrate

apt-get -y install expect
/usr/bin/expect << EOF
spawn miniflux -create-admin
expect "Enter Username:"
send "admin\\r"
expect "Enter Password:"
send "admin123\\r"
expect eof
exit
EOF
systemctl enable miniflux
systemctl start miniflux

echo 'access http://192.168.55.109:8080/'
echo 'user: admin  password: admin123'
echo 'sample feed: http://serverarekore.blogspot.com/feeds/posts/default'

SHELL
end

2019年2月10日日曜日

VagrantでMiniflux2がインストールされた仮想マシン(Debian Stretch/9.6)を構築する

Miniflux2はGo製のfeed readerです。

○Miniflux2の画面


〇構築方法
以下のVagrantfileを使用して、Miniflux2とPostgreSQL11がインストールされた仮想マシン(Debian Stretch/9.6)を構築する事ができます。

Vagrantfile
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = "bento/debian-9.6"
  config.vm.hostname = "db96miniflux"
config.vm.network "public_network", ip:"192.168.1.103", :netmask => "255.255.255.0"
config.vm.network "private_network", ip: "192.168.55.103", :netmask => "255.255.255.0"
  config.vm.provider :virtualbox do |vbox|
     vbox.name = "db96miniflux"
     vbox.gui = true
     vbox.cpus = 2
     vbox.memory = 2048
  end
  config.vm.provision "shell", inline: <<-SHELL
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
apt-get -y install task-japanese gawk
sed -i -e 's/# ja_JP.UTF-8 UTF-8/ja_JP.UTF-8 UTF-8/' /etc/locale.gen
locale-gen
update-locale LANG=ja_JP.UTF-8
localectl set-locale LANG=ja_JP.UTF-8
localectl set-keymap jp106
timedatectl set-timezone Asia/Tokyo

# install postgresql
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
apt-get -y install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
apt-get update
apt-get upgrade
apt-get -y install postgresql-11

echo "listen_addresses='*'" >> /etc/postgresql/11/main/postgresql.conf

echo "host    all         all         127.0.0.1/32          password" >> /etc/postgresql/11/main/pg_hba.conf
echo "host    all         all         192.168.1.0/24          password" >> /etc/postgresql/11/main/pg_hba.conf
echo "host    all         all         192.168.55.0/24          password" >> /etc/postgresql/11/main/pg_hba.conf

systemctl restart postgresql.service
su - postgres << EOF
createdb -T template0 --locale=ja_JP.UTF-8 --encoding=UTF8 miniflux2
psql -c "
alter user postgres with password 'postgres';
create user miniflux with password 'miniflux';
grant all privileges on database miniflux2 to miniflux;
"
EOF
echo "postgres:postgres" | chpasswd
systemctl restart postgresql.service

wget https://github.com/miniflux/miniflux/releases/download/2.0.14/miniflux_2.0.14_amd64.deb
dpkg -i miniflux_2.0.14_amd64.deb

echo "DATABSE_URL=postgres://miniflux:miniflux@localhost/miniflux2?sslmode=disable" >> /etc/miniflux.conf

miniflux -migrate

apt-get -y install expect
/usr/bin/expect << EOF
spawn miniflux -create-admin
expect "Enter Username:"
send "admin\\r"
expect "Enter Password:"
send "admin123\\r"
expect eof
exit
EOF
systemctl enable miniflux
systemctl start miniflux

echo 'access http://192.168.55.103:8080/'
echo 'user: admin  password: admin123'
echo 'sample feed: http://serverarekore.blogspot.com/feeds/posts/default'

SHELL
end


○関連情報
・Minifluxに関する他の記事はこちらを参照してください。


○関連情報
・Minifluxに関する他の記事はこちらを参照してください。