Files
mkdocs/docs/Raspberry/reseau.md
Bruno 21 e82296ba06 1er commit
De la docs au format Mkdocs
2018-09-16 14:48:15 +02:00

105 lines
1.8 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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/)