Plus d'info sur le pine64 ici.
Il s'agit de configuration la connexion vers le réseau WIFI existant en utilisant l'interface wlan0.
Installation des paquets nécessaires:
pacman -S wpa_supplicant wpa_actiond
Création d'un profil de connexion pour netctl :
cp /etc/netctl/examples/wireless-wpa /etc/netctl/wifi
Génération d'une clef chiffrée:
wpa_passphrase WIFI passphrase
Voilà !
Contenu du /etc/netctl/wifi :
Description='A simple WPA encrypted wireless connection' Interface=wlan0 Connection=wireless Security=wpa IP=dhcp ESSID='BZH' # Prepend hexadecimal keys with \" # If your key starts with ", write it as '""<key>"' # See also: the section on special quoting rules in netctl.profile(5) Key=\"ee19737d3eb7...f46d034a0ff0cb # Uncomment this if your ssid is hidden #Hidden=yes # Set a priority for automatic profile selection #Priority=10
Pour activer la connexion au démarrage :
netctl enable wifi
Il ne reste plus qu'à redemarrer pour valider ce point.
Fichier /etc/hostapd/hostapd.conf :
interface=wlan1 driver=nl80211 ssid=pine64 hw_mode=g channel=1 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=2 wpa_key_mgmt=WPA-PSK wpa_passphrase=raspiratebox rsn_pairwise=CCMP
SSID à pine64
Fichier /etc/dnsmasq.conf :
interface=wlan1 # Use interface wlan0 bind-interfaces # Bind to the interface to make sure we aren't sending things elsewhere server=8.8.8.8 # Forward DNS requests to Google DNS domain-needed # Don't forward short names bogus-priv # Never forward addresses in the non-routed address spaces. dhcp-range=192.168.64.50,192.168.64.150,2h
Qui écoutera sur wlan1 et utilisera la plage 192.168.64.50-150 avec des baux de 2h.