Wiki Info Libre @ Dom

Ceci est une ancienne révision du document !


Installation et configuration d'un rpi0w avec une connexion vpn :

$ date && sudo dd bs=1M if=2017-03-02-raspbian-jessie-lite.img of=/dev/sdb && date
dimanche 2 avril 2017, 21:11:05 (UTC+0200)
1329+0 enregistrements lus
1329+0 enregistrements écrits
1393557504 bytes (1,4 GB, 1,3 GiB) copied, 156,685 s, 8,9 MB/s
dimanche 2 avril 2017, 21:13:42 (UTC+0200)

Configuration post installation : Attention de la clavier est en qwerty donc pour le mot de passe il faut mettre q au lieu de a et pour le - il faut taper sur ° au lieu de 6

sudo raspi-config

Configuration du wifi en ligne de commande :

Configurer simplement le wifi d’un Raspberry PI sous Raspbian en CLI

$ sudo nano /etc/wpa_supplicant/wpa_supplicant.conf 
country=FR
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
        ssid="MONWIFI"
        psk="MONPASSEWIFI"
        id_str="nomdemonwifi"
}
$ sudo nano /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

# Wifi nomdemonwifi
iface nomdemonwifi inet dhcp
$ sudo reboot 
$ ifconfig wlan0
sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y && sudo apt install rpi-update && sudo apt-get clean && sudo apt-get autoremove && sudo df -h
sudo rpi-update
sudo apt-get install openvpn && sudo mkdir /etc/openvpn/monvpn
sudo apt install htop screen rpi-update -y