Metainformationen zur Seite
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
computer:raspberrypi:netzwerk [2013/07/31 16:15] ristigl [Netzwerk] |
computer:raspberrypi:netzwerk [2018/03/16 21:11] (aktuell) |
||
---|---|---|---|
Zeile 16: | Zeile 16: | ||
</code> | </code> | ||
- | Und ändern gemäß folgendem Beispiel: | + | Und für das Schulnetzwerk ändern gemäß folgendem Beispiel: |
<file> | <file> | ||
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | ||
Zeile 30: | Zeile 30: | ||
password="Passwort" #Passwort | password="Passwort" #Passwort | ||
phase2="auth=GTC" | phase2="auth=GTC" | ||
+ | } | ||
+ | </file> | ||
+ | |||
+ | Für Wlan zu Hause (WPA/WPA2): | ||
+ | |||
+ | <file> | ||
+ | ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | ||
+ | update_config=1 | ||
+ | |||
+ | network={ | ||
+ | ssid="NETZWERKNAME" | ||
+ | scan_ssid=1 # 1 für sichtbares Netzwerk; 2 für verstecktes Netzwerk | ||
+ | proto=RSN # RSN für WPA 2; WPA für WPA 1 | ||
+ | group=CCMP | ||
+ | pairwise=CCMP | ||
+ | key_mgmt=WPA-PSK #WPA-PSK (pre shared key); WPA-EAP (Extensible Authentication Protocol) | ||
+ | psk="PASSWORT" | ||
+ | } | ||
+ | </file> | ||
+ | |||
+ | Für Wlan zu Hause (WEP): | ||
+ | |||
+ | <file> | ||
+ | ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | ||
+ | update_config=1 | ||
+ | |||
+ | network={ | ||
+ | ssid="Netzwerkname" | ||
+ | scan_ssid=1 | ||
+ | key_mgmt=NONE | ||
+ | wep_tx_keyidx=0 | ||
+ | wep_key0="PASSWORT" | ||
} | } | ||
</file> | </file> | ||
Zeile 47: | Zeile 79: | ||
allow-hotplug wlan0 | allow-hotplug wlan0 | ||
iface wlan0 inet dhcp | iface wlan0 inet dhcp | ||
+ | wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | ||
+ | |||
+ | iface default inet dhcp | ||
+ | </file> | ||
+ | |||
+ | Für eine feste IP-Adresse (für Fernzugriffe) | ||
+ | <file> | ||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | |||
+ | iface eth0 inet dhcp | ||
+ | |||
+ | allow-hotplug wlan0 | ||
+ | iface wlan0 inet dhcp | ||
+ | address 192.168.2.100 # Feste IP | ||
+ | netmask 255.255.255.0 | ||
+ | gateway 192.168.2.1 | ||
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf | ||
Zeile 58: | Zeile 107: | ||
</code> | </code> | ||
+ | ===== Proxy ===== | ||
+ | |||
+ | Um den Raspberry Pi in der Schule verwenden zu können, müssen noch weitere Modifikationen vorgenommen werden. | ||
+ | |||
+ | Der Zugriff aus dem Schulnetz auf das Internet geschieht über einen Zwischenspeicher, einem Proxy. Somit müssen die Proxy Einstellung angepasst werden. Für das Paket-System (apt) machen wir dieses anhand einer anzulegenden Konfigurationsdatei: **nano /etc/apt/apt.conf.d/80proxy** | ||
+ | <file> | ||
+ | Acquire::http::Proxy "http://BENUTZERNAME:PASSWORT@192.168.0.1:8080"; | ||
+ | Acquire::ftp::Proxy "http://BENUTZERNAME:PASSWORT@192.168.0.1:8080"; | ||
+ | |||
+ | </file> | ||
+ | (BENUTZERNAME und PASSWORT müssen jeweils durch eure RatseIntern Daten ersetzt werden) | ||
+ | |||
+ | |||
+ | Allgemein lässt sich der Proxy einstellen durch: | ||
+ | <code> | ||
+ | export http_proxy="http://BENUTZERNAME:PASSWORT@192.168.0.1:8080" | ||
+ | |||
+ | </code> |