made pg_hba.conf addition with ident for Ubuntu 16.04

This commit is contained in:
datn 2017-04-11 22:00:57 -07:00
parent 306bb9c72e
commit e55c767f50
1 changed files with 10 additions and 0 deletions

View File

@ -123,6 +123,16 @@ In the prompt:
CREATE USER mastodon CREATEDB; CREATE USER mastodon CREATEDB;
\q \q
Under Ubuntu 16.04, you will need to explicitly enable ident authentication so that local users can connect to the database without a password:
sudo sed -i '/peer$/a host all all 127.0.0.1/32 ident' /etc/postgresql/9.?/main/pg_hba.conf
and install an ident daemon, which does not come installed by default:
sudo apt-get install pidentd
sudo systemctl enable pidentd
sudo systemctl start pidentd
## Rbenv ## Rbenv
It is recommended to use rbenv (exclusively from the `mastodon` user) to install the desired Ruby version. Follow the guides to [install rbenv][1] and [rbenv-build][2] (I recommend checking the [prerequisites][3] for your system on the rbenv-build project and installing them beforehand, obviously outside the unprivileged `mastodon` user) It is recommended to use rbenv (exclusively from the `mastodon` user) to install the desired Ruby version. Follow the guides to [install rbenv][1] and [rbenv-build][2] (I recommend checking the [prerequisites][3] for your system on the rbenv-build project and installing them beforehand, obviously outside the unprivileged `mastodon` user)