meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| digital:hardware:rasppi31 [2018/09/19 10:55] – natrius | digital:hardware:rasppi31 [2022/02/22 16:46] (current) – removed natrius | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== RaspberryPi 3 Nextcloud ====== | ||
| - | Raspberry Pi 3 mit Nextcloud und externen 2, | ||
| - | |||
| - | ===== SSH aktivieren ===== | ||
| - | Im root Ordner einfach im Fileexplorer eine Datei ohne Dateiendung erstellen " | ||
| - | |||
| - | ===== Einrichten ===== | ||
| - | Tastatur umstellen auf QWERTZ, dazu folgenden Befehl: \\ | ||
| - | < | ||
| - | IBM 105 ist Europäisches Layout. Nach dem einstellen den Service neustarten mit \\ | ||
| - | < | ||
| - | |||
| - | ===== WLAN Modul aktivieren ===== | ||
| - | |||
| - | ==== Hat funktioniert ==== | ||
| - | |||
| - | === Editing WPA Supplicant Configuration: | ||
| - | Once inside the Raspi, we will have to edit a file residing in / | ||
| - | < | ||
| - | This file is going to contain information regarding your Wi-Fi networks such as its SSID and password. Following is the accepted format and can be copy-pasted after replacing SSID and PSK with correct values. | ||
| - | < | ||
| - | ctrl_interface=DIR=/ | ||
| - | update_config=1 | ||
| - | |||
| - | network={ | ||
| - | ssid=" | ||
| - | psk=" Password." | ||
| - | id_str=" | ||
| - | }</ | ||
| - | If you want to prioritize the connection between two or more authorized networks in range, then you can use priority tag and assign a number to it. For example, in the following sample, the network with name Home will have more priority over the network Home2. | ||
| - | < | ||
| - | |||
| - | network={ | ||
| - | ssid=" | ||
| - | psk=" | ||
| - | id_str=" | ||
| - | priority = 1 | ||
| - | } | ||
| - | |||
| - | network={ | ||
| - | ssid=" | ||
| - | psk=" | ||
| - | id_str=" | ||
| - | priority = 2 | ||
| - | }</ | ||
| - | Now depending on the editor, you used to edit the files, | ||
| - | === Editing Interfaces File: === | ||
| - | After this step, we will also need to make some changes in the interface file located in the / | ||
| - | < | ||
| - | |||
| - | auto lo | ||
| - | iface lo inet loopback | ||
| - | |||
| - | auto eth0 | ||
| - | iface eth0 inet dhcp | ||
| - | |||
| - | allow-hotplug wlan0 | ||
| - | auto wlan0 | ||
| - | iface wlan0 inet manual | ||
| - | wpa-roam / | ||
| - | |||
| - | iface default inet dhcp</ | ||
| - | |||
| - | Once you complete this step, you can either restart the Raspberry Pi or execute the following commands: | ||
| - | < | ||
| - | |||
| - | $sudo ifdown wlan0 | ||
| - | |||
| - | $sudo ifup wlan0</ | ||
| - | |||
| - | Note: Be sure to cross check the name of the wireless you want to reset. | ||
| - | |||
| - | As soon as you perform this, you will be connected to the Wi-Fi network mentioned in previous steps. | ||
| - | |||
| - | ==== Hat nicht funktioniert ==== | ||
| - | - < | ||
| - | - Der Raspberry Pi muss zunächst via Ethernet mit dem Netzwerk verbunden werden, sodass wir eine SSH-Verbindung aufbauen können. Alternativ kann er mit einem Monitor, Maus und Tastatur verbunden werden, wo wir den Terminal aufrufen müssen. | ||
| - | - Zunächst sollten wir überprüfen welche Netzwerke in Reichweite sind. Die Netzwerke sind absteigend nach Signalstärke geordnet und in der Zeile ESSID findet sich der Netzwerkname, | ||
| - | - Haben wir das richtige Netzwerk gefunden, zum Beispiel „TestNetzwerk“, | ||
| - | network={ | ||
| - | ssid=" | ||
| - | psk=" | ||
| - | }</ | ||
| - | - < | ||
| - | - Außerdem sollten wir in der Zeit in der das WLAN-Modul aktiviert ist, dessen Energiesparmodus deaktivieren, | ||
| - | post-down iw dev wlan0 set power_save on</ | ||
| - | - Abschließend müssen wir das Netzwerkinterface wlan0, das verbaute WLAN-Modul, neustarten. Anschließend wird die Verbindung aufgebaut. < | ||
| - | - < | ||
| - | - < | ||
| - | Damit ist das WLAN auf dem Raspberry Pi 3 eingerichtet. Wer zusätzlich einen WLAN-Hotspot mit einem weiteren WLAN-Stick aufbauen möchte, erfährt im Artikel WLAN-Access-Point einrichten wie er das bewerkstelligen kann. | ||