ajout docs

This commit is contained in:
Jérémie DUCASTEL
2020-12-05 13:03:22 +01:00
parent 21dc360c96
commit e24f749ce4
3 changed files with 24 additions and 5 deletions

View File

@ -1,7 +1,6 @@
# Raspberry pi # Raspberry pi
scripts et tuto raspberry pi.
scripts et tuto raspberry pi ## Docs
- [setup](/doc/setup.md)
## pi-hole (bloqueur de pubs) - [pi-hole (bloqueur de pub)](/doc/pihole.md)
[docs et liens](/doc/pihole.md)

View File

@ -18,6 +18,8 @@ pihole disable 60s # Désactiver PiHole pendant 1 min
## Forcer l'usage de piHole ## Forcer l'usage de piHole
https://www.geekzone.fr/2020/05/13/pi-hole-5-un-trou-noir-qui-protege-votre-logement-des-pubs/
https://discourse.pi-hole.net/t/how-do-i-use-pi-holes-built-in-dhcp-server-and-why-would-i-want-to/3026 https://discourse.pi-hole.net/t/how-do-i-use-pi-holes-built-in-dhcp-server-and-why-would-i-want-to/3026
> Some routers (and even some Internet Service Providers) do not let you change these settings. In this case, using Pi-holes DHCP server is very advantageous because you can still get automatic, network-wide ad ad blocking even if you cant make the necessary changes on existing hardware. > Some routers (and even some Internet Service Providers) do not let you change these settings. In this case, using Pi-holes DHCP server is very advantageous because you can still get automatic, network-wide ad ad blocking even if you cant make the necessary changes on existing hardware.

18
doc/setup.md Normal file
View File

@ -0,0 +1,18 @@
# SETUP nouveau raspberry pi
## Créer un utilisateur sudoer
Adapté depuis [ce tuto](https://www.raspberrypi.org/forums/viewtopic.php?t=169079) :
```bash
export NEW_USER="jducastel"
# créer l'utilisateur + dossier home
sudo adduser $NEW_USER
# l'ajouter aux mêmes groupes que l'utilisateur "pi"
sudo usermod $NEW_USER -a -G pi,adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,spi,i2c,gpio
# pour ne pas avoir à taper le mdp en tant que sudo,
# on clone le fichier concernant l'utilisateur "pi"
# dans le dossier inclus
sudo cp /etc/sudoers.d/010_pi-nopasswd /etc/sudoers.d/$NEW_USER
sudo nano /etc/sudoers.d/$NEW_USER
# remplacer "pi" par le nom de l'utilisateur
```