Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| doc:raspi_tools [2022/03/17 08:08] – [install smb permanent links] admin | doc:raspi_tools [2023/09/05 00:13] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | | ||
| + | | ||
| + | |||
| ====== Raspberry pi tools ====== | ====== Raspberry pi tools ====== | ||
| x | x | ||
| * long life for SD card | * long life for SD card | ||
| - | * Disable swap : \\ cat / | + | * Disable swap : \\ free -m \\ cat / |
| - | * dphys-swapfile | + | * __dphys-swapfile |
| + | * You can set this in / | ||
| * Assign the __noatime__ mount flag to partitions residing on the SD card by adding it to the options section of the partition in / | * Assign the __noatime__ mount flag to partitions residing on the SD card by adding it to the options section of the partition in / | ||
| * Highly used directories such as /var/tmp/ and possibly /var/log can be relocated to RAM in /etc/fstab like this: \\ tmpfs /var/tmp tmpfs nodev, | * Highly used directories such as /var/tmp/ and possibly /var/log can be relocated to RAM in /etc/fstab like this: \\ tmpfs /var/tmp tmpfs nodev, | ||
| Ligne 619: | Ligne 624: | ||
| # #### server side #### | # #### server side #### | ||
| # curl -L https:// | # curl -L https:// | ||
| - | sudo -u pi pivpn -a | + | sudo -u pi pivpn -a # to add a new device |
| sudo -u pi pivpn -l | sudo -u pi pivpn -l | ||
| #sudo -u pi pivpn -qr | #sudo -u pi pivpn -qr | ||
| Ligne 640: | Ligne 645: | ||
| ping 10.6.0.1 | ping 10.6.0.1 | ||
| # start at boot | # start at boot | ||
| + | sudo wg-quick down wg0 | ||
| + | sudo systemctl start wg-quick@wg0 | ||
| sudo systemctl enable wg-quick@wg0 | sudo systemctl enable wg-quick@wg0 | ||
| </ | </ | ||
| + | |||
| + | <sxh bash; title: inst_wireguard_client.bash> | ||
| + | #!/bin/bash | ||
| + | sudo apt install wireguard | ||
| + | mcedit / | ||
| + | </ | ||
| + | |||
| + | <sxh bash; title: Redirection de port via 10.6.0.1> | ||
| + | ssh -L 2222: | ||
| + | ssh -p 2222 localhost | ||
| + | |||
| + | ssh -L 44443: | ||
| + | firefox | ||
| + | </ | ||
| + | |||
| ===== install | ===== install | ||