2025-11-05 22:08:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
Installation Raspberry
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
sudo apt update && sudo apt upgrade -y
|
|
|
|
|
sudo reboot
|
|
|
|
|
```
|
|
|
|
|
Installation
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
sudo apt install postgresql
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
sudo nano /etc/postgresql/17/main/pg_hba.conf
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```
|
2025-11-05 22:25:27 +01:00
|
|
|
host all all 0.0.0.0/0 scram-sha-256
|
2025-11-05 22:08:24 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
sudo nano /etc/postgresql/17/main/postgresql.conf
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
listen_addresses = '*'
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
sudo systemctl restart postgresql
|
|
|
|
|
sudo -u postgres psql
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```sql
|
|
|
|
|
CREATE USER belhocine WITH password 'geii2025';
|
|
|
|
|
CREATE DATABASE belhocine OWNER belhocine;
|
|
|
|
|
```
|