Raspberry
This commit is contained in:
39
note.md
Normal file
39
note.md
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
```
|
||||
host all all 0.0.0.0/0 scram-sha-256
|
||||
```
|
||||
|
||||
```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;
|
||||
```
|
||||
Reference in New Issue
Block a user