postgresql

This commit is contained in:
2025-11-17 22:01:03 +01:00
parent 8ca72f2f66
commit 315346a02b
2 changed files with 34 additions and 1 deletions

View File

@@ -140,10 +140,36 @@ _Oui_
Veuillez sélectionner <Continuer> pour redémarrer.
___Continuer___
# Raspberry
## Utilisation de Raspberry Pi Imager
`Ctrl + Shift + X`
Définir nom d'utilisateur et mot de passe
Définir les réglages locaux
- Fuseau horaire : ***Europe/Paris***
- Type de clavier : ***fr***
Services
Activer SSH
sudo nano /etc/locale.gen
décommente : fr_FR.UTF-8 UTF-8
sudo locale-gen
sudo update-locale LANG=fr_FR.UTF-8
<kbd>foo</kbd>
# Configuration
éditer le fichier .bashrc
```
PS1="\[\e[0;41m\] \u@\h \[\e[0;45m\] \w \[\e[0m\]\n\$ "
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] '
```

View File

@@ -1,5 +1,12 @@
# postgreSQL
```shell
sudo apt install -y postgresql-common
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
sudo apt install postgresql-18
```
## Docker
```shell
@@ -14,10 +21,10 @@ docker run --detach --name pgsql \
-e "POSTGRES_PASSWORD=ChangeMe" \
-e "POSTGRES_USER=iut" \
-v pgsql_data:/var/lib/postgresql \
-v "./:/docker-entrypoint-initdb.d" \
iut/pgsql:2025-12
```
```shell
image: iut/pgsql:2025-12
volumes: