postgresql
This commit is contained in:
26
debian13.md
26
debian13.md
@@ -140,10 +140,36 @@ _Oui_
|
|||||||
Veuillez sélectionner <Continuer> pour redémarrer.
|
Veuillez sélectionner <Continuer> pour redémarrer.
|
||||||
___Continuer___
|
___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
|
# Configuration
|
||||||
|
|
||||||
éditer le fichier .bashrc
|
éditer le fichier .bashrc
|
||||||
|
|
||||||
```
|
```
|
||||||
PS1="\[\e[0;41m\] \u@\h \[\e[0;45m\] \w \[\e[0m\]\n\$ "
|
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\] '
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
# postgreSQL
|
# postgreSQL
|
||||||
|
|
||||||
|
```shell
|
||||||
|
sudo apt install -y postgresql-common
|
||||||
|
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
|
||||||
|
|
||||||
|
sudo apt install postgresql-18
|
||||||
|
```
|
||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
@@ -14,10 +21,10 @@ docker run --detach --name pgsql \
|
|||||||
-e "POSTGRES_PASSWORD=ChangeMe" \
|
-e "POSTGRES_PASSWORD=ChangeMe" \
|
||||||
-e "POSTGRES_USER=iut" \
|
-e "POSTGRES_USER=iut" \
|
||||||
-v pgsql_data:/var/lib/postgresql \
|
-v pgsql_data:/var/lib/postgresql \
|
||||||
|
-v "./:/docker-entrypoint-initdb.d" \
|
||||||
iut/pgsql:2025-12
|
iut/pgsql:2025-12
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
image: iut/pgsql:2025-12
|
image: iut/pgsql:2025-12
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user