1er commit

De la docs au format Mkdocs
This commit is contained in:
2018-09-16 14:48:15 +02:00
commit e82296ba06
140 changed files with 17082 additions and 0 deletions

105
docs/Raspberry/reseau.md Normal file
View File

@@ -0,0 +1,105 @@
# Réseau et partage
#### Mettre en IP fixe:
```bash
$ sudo nano /etc/dhcpcd.conf
à rajouter à la fin du fichier:
interface eth0
static ip_address=192.168.1.254/24
static routers=192.168.1.1
static domain_name_servers=8.8.8.8
interface wlan0
static ip_address=192.168.1.253/24
static routers=192.168.1.1
static domain_name_servers=8.8.8.8
```
#### VNC:
*VNC Server (Pi):*
Menu → Options:
- Sécurité:
- Chiffrement: De préférence actif
- Authentification: Mot de passe VNC
- Utilisateurs et autorisations:
- Utilisateur standart: Mot de passe
*VNC Viewer (Mac):*
Port 5900
#### Installer Samba:
Installer et créer un répertoire partagé:
```bash
$ sudo apt-get install apt-transport-https samba samba-common-bin
$ sudo mkdir -p /home/pi/share
$ sudo chown -hR pi:pi /home/pi/share
$ sudo chmod 777 /home/pi/share
```
Editer le fichier smb.conf:
```bash
$ sudo nano /etc/samba/smb.conf
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP
wins support = yes
####### Authentication #######
security = user
[Share]
comment = Partage Samba sur Raspberry
path=/home/pi/share
browseable=Yes
writeable=Yes
only guest=no
create mask=0777
directory mask=0777
public=no
```
Créer un utilisateur Samba:
```bash
$ sudo smbpasswd a pi
$ testparm
```
#### Liens:
[:fa-link: http://nagashur.com/blog/2016/07/21/partage-de-fichiers-samba-avec-le-raspberry-pi/](http://nagashur.com/blog/2016/07/21/partage-de-fichiers-samba-avec-le-raspberry-pi/)
[:fa-link: https://gist.github.com/masterT/407a6d9e30ba4169bb39](https://gist.github.com/masterT/407a6d9e30ba4169bb39)
[:fa-link: http://www.framboise314.fr/partager-un-repertoire-sous-jessie-avec-samba/](http://www.framboise314.fr/partager-un-repertoire-sous-jessie-avec-samba/)