Netzwerk Wireless (Raspbian): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „== Nur ''Intfaces''-Datei == In der Datei ''/etc/network/interfaces'' folgende Zeilen hinzufügen / anpassen: <pre> auto wlan0 allow-hotplug wlan0 iface wlan0…“)
 
 
(13 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
== Nur ''Intfaces''-Datei ==
== Debian 9 (Stretch) ==
 
In der Datei ''/etc/dhcpcd.conf''
 
<pre>
sudo vi /etc/dhcpcd.conf
</pre>
 
folgende Zeilen einkommentieren und anpassen:
 
<pre>
interface wlan0
static ip_address=10.2.0.99/24
static routers=10.2.0.138
static domain_name_servers=10.2.0.138 8.8.8.8
</pre>
 
== Debian 8 (Jessie) ==
 
=== Nur ''interfaces''-Datei ===


In der Datei ''/etc/network/interfaces'' folgende Zeilen hinzufügen / anpassen:
In der Datei ''/etc/network/interfaces'' folgende Zeilen hinzufügen / anpassen:
Zeile 8: Zeile 27:
address <static ip>
address <static ip>
netmask 255.255.255.0
netmask 255.255.255.0
gateway 10.0.0.1
gateway <gateway ip>
dns-nameservers <nameserver ip>
dns-nameservers <nameserver ip>


Zeile 17: Zeile 36:
wpa-psk "<password>"
wpa-psk "<password>"
</pre>
</pre>
=== Dateien ''interfaces'' und ''wpa_supplicant.conf'' ===
Datei /etc/wpa_supplicant/wpa_supplicant.conf:
<pre>
country=AT
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
        ssid="<ssid>"
        psk="<password>"
}
</pre>
Datei ''/etc/network/interfaces'':
<pre>
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
# WLAN
auto  wlan0
allow-hotplug wlan0
iface wlan0 inet manual
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
</pre>
bzw. mit statischer IP-Addresse:
<pre>
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet static
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
    address 10.0.0.98
    netmask 255.255.255.0
    gateway 10.0.0.138
    dns-nameservers 10.0.0.138
</pre>
== Programme ==
Firefox => Iceweasel
== Energiesparmodus deaktivieren ==
=== Edimax EW-7811un ===
Datei ''8192cu.conf'' anlegen:
<pre>
sudo nano /etc/modprobe.d/8192cu.conf
</pre>
Folgenden Inhalt einfügen:
<pre>
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0
</pre>
=== Cronjob anlegen ===
<pre>
sudo nano /etc/crontab
</pre>
<pre>
*/1 * * * * ping -c 1 10.0.0.138
</pre>
== Links ==
[http://linux.die.net/man/5/wpa_supplicant.conf http://linux.die.net/man/5/wpa_supplicant.conf]
[http://www.freebsd.org/cgi/man.cgi?wpa_supplicant.conf%285%29 http://www.freebsd.org/cgi/man.cgi?wpa_supplicant.conf%285%29]
[https://developer-blog.net/raspberry-pi-problem-mit-wlan-stick-edimax-ew-7811un/ https://developer-blog.net/raspberry-pi-problem-mit-wlan-stick-edimax-ew-7811un/]
Zurück zu [[Raspbian]]

Aktuelle Version vom 4. August 2018, 08:02 Uhr

Debian 9 (Stretch)

In der Datei /etc/dhcpcd.conf

sudo vi /etc/dhcpcd.conf

folgende Zeilen einkommentieren und anpassen:

interface wlan0
static ip_address=10.2.0.99/24
static routers=10.2.0.138
static domain_name_servers=10.2.0.138 8.8.8.8

Debian 8 (Jessie)

Nur interfaces-Datei

In der Datei /etc/network/interfaces folgende Zeilen hinzufügen / anpassen:

auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address <static ip>
netmask 255.255.255.0
gateway <gateway ip>
dns-nameservers <nameserver ip>

wpa-ap-scan 1
wpa-scan-ssid 1

wpa-ssid "<ssid>"
wpa-psk "<password>"

Dateien interfaces und wpa_supplicant.conf

Datei /etc/wpa_supplicant/wpa_supplicant.conf:

country=AT
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="<ssid>"
        psk="<password>"
}

Datei /etc/network/interfaces:

source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

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

bzw. mit statischer IP-Addresse:

source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet static
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
    address 10.0.0.98
    netmask 255.255.255.0
    gateway 10.0.0.138
    dns-nameservers 10.0.0.138

Programme

Firefox => Iceweasel

Energiesparmodus deaktivieren

Edimax EW-7811un

Datei 8192cu.conf anlegen:

sudo nano /etc/modprobe.d/8192cu.conf

Folgenden Inhalt einfügen:

options 8192cu rtw_power_mgnt=0 rtw_enusbss=0

Cronjob anlegen

sudo nano /etc/crontab
*/1 * * * * ping -c 1 10.0.0.138

Links

http://linux.die.net/man/5/wpa_supplicant.conf

http://www.freebsd.org/cgi/man.cgi?wpa_supplicant.conf%285%29

https://developer-blog.net/raspberry-pi-problem-mit-wlan-stick-edimax-ew-7811un/


Zurück zu Raspbian