Raspberry Pi Zero W - "install.sh" installieren
-
willi8 -
20. Juli 2017 um 11:48 -
Erledigt
-
-
Raspberry Pi Zero W - "install.sh" installieren? Schau mal ob du hier fündig wirst!
-
- Offizieller Beitrag
Hat sich einer von euch die fünf relevanten Dateien mal angesehen? Bei den paar Zeilen...das verstehe sogar ich...
//Edit rastafari: Damit meine ich nicht Dich, mach weiter so!
-
Es klappt leider immer noch nicht.
Hier mal alles was ich gemacht habe:
Code
Alles anzeigenpi@raspberrypi:~ $ wget "https://raw.githubusercontent.com/arrase/RPI-Zero-W-RogueAP/master/install.sh" --2017-07-20 20:51:00-- https://raw.githubusercontent.com/arrase/RPI-Zero-W-RogueAP/master/install.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 354 [text/plain] Saving to: ‘install.sh’ install.sh 100%[=====================>] 354 --.-KB/s in 0s 2017-07-20 20:51:19 (791 KB/s) - ‘install.sh’ saved [354/354] pi@raspberrypi:~ $ wget "https://raw.githubusercontent.com/arrase/RPI-Zero-W-RogueAP/master/rogueap.sh" --2017-07-20 20:51:20-- https://raw.githubusercontent.com/arrase/RPI-Zero-W-RogueAP/master/rogueap.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 336 [text/plain] Saving to: ‘rogueap.sh’ rogueap.sh 100%[=====================>] 336 --.-KB/s in 0.005s 2017-07-20 20:51:21 (71.3 KB/s) - ‘rogueap.sh’ saved [336/336] pi@raspberrypi:~ $ chmod +x install.sh rogueap.sh pi@raspberrypi:~ $ sudo ./install.sh Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libice6 libnet1 libnids1.21 libnl-route-3-200 libpcap0.8 libsm6 libxmu6 libxt6 python-characteristic python-openssl python-pam python-pkg-resources python-pyasn1 python-pyasn1-modules python-serial python-service-identity python-twisted-bin python-twisted-core python-twisted-web python-zope.interface x11-common Suggested packages: isc-dhcp-server-ldap python-openssl-doc python-openssl-dbg python-distribute python-distribute-doc doc-base python-wxgtk3.0 python-wxgtk python-twisted-bin-dbg python-tk python-gtk2 python-glade2 python-qt3 Recommended packages: python-idna The following NEW packages will be installed: dsniff hostapd isc-dhcp-server libice6 libnet1 libnids1.21 libnl-route-3-200 libpcap0.8 libsm6 libxmu6 libxt6 python-characteristic python-openssl python-pam python-pkg-resources python-pyasn1 python-pyasn1-modules python-serial python-service-identity python-twisted-bin python-twisted-core python-twisted-web python-zope.interface sslstrip x11-common 0 upgraded, 25 newly installed, 0 to remove and 0 not upgraded. Need to get 3,520 kB of archives. After this operation, 14.7 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.raspberrypi.org/debian/ jessie/main x11-common all 1:7.7+16 [251 kB] Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libice6 armhf 2:1.0.9-1 [51.2 kB] Get:3 http://archive.raspberrypi.org/debian/ jessie/main x11-common all 1:7.7+16 [251 kB] Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main libnet1 armhf 1.1.6+dfsg-3 [53.8 kB] Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main libnl-route-3-200 armhf 3.2.24-2 [99.5 kB] Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main libpcap0.8 armhf 1.6.2-2 [121 kB] Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main libsm6 armhf 2:1.2.2-1 [31.2 kB] Get:8 http://mirrordirector.raspbian.org/raspbian/ jessie/main libxt6 armhf 1:1.1.4-1 [183 kB] Get:9 http://mirrordirector.raspbian.org/raspbian/ jessie/main libxmu6 armhf 2:1.1.2-1 [50.8 kB] Get:10 http://mirrordirector.raspbian.org/raspbian/ jessie/main hostapd armhf 1:2.3-1+deb8u4 [459 kB] Get:11 http://mirrordirector.raspbian.org/raspbian/ jessie/main isc-dhcp-server armhf 4.3.1-6+deb8u2 [350 kB] Get:12 http://mirrordirector.raspbian.org/raspbian/ jessie/main libnids1.21 armhf 1.23-2 [25.3 kB] Get:13 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-characteristic all 0.1.0-1 [6,134 B] Get:14 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-openssl armhf 0.13.1-2 [85.5 kB] Get:15 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-pam armhf 0.4.2-13.1 [12.1 kB] Get:16 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-pkg-resources all 5.5.1-1 [64.4 kB] Get:17 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-pyasn1 all 0.1.7-1 [49.3 kB] Get:18 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-pyasn1-modules all 0.0.5-0.1 [21.5 kB] Get:19 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-serial all 2.6-1.1 [66.6 kB] Get:20 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-service-identity all 1.0.0-3 [8,430 B] Get:21 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-twisted-bin armhf 14.0.2-3 [17.1 kB] Get:22 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-zope.interface armhf 4.1.1-3.1 [84.1 kB] Get:23 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-twisted-core all 14.0.2-3 [1,026 kB] Get:24 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-twisted-core all 14.0.2-3 [1,026 kB] Get:25 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-twisted-web all 14.0.2-3 [302 kB] Get:26 http://mirrordirector.raspbian.org/raspbian/ jessie/main sslstrip all 0.9-1 [13.1 kB] Get:27 http://mirrordirector.raspbian.org/raspbian/ jessie/main dsniff armhf 2.4b1+debian-22.1+b1 [87.1 kB] Fetched 2,820 kB in 3min 19s (14.1 kB/s) Preconfiguring packages ... Selecting previously unselected package x11-common. (Reading database ... 31532 files and directories currently installed.) Preparing to unpack .../x11-common_1%3a7.7+16_all.deb ... Unpacking x11-common (1:7.7+16) ... Selecting previously unselected package libice6:armhf. Preparing to unpack .../libice6_2%3a1.0.9-1_armhf.deb ... Unpacking libice6:armhf (2:1.0.9-1) ... Selecting previously unselected package libnet1:armhf. Preparing to unpack .../libnet1_1.1.6+dfsg-3_armhf.deb ... Unpacking libnet1:armhf (1.1.6+dfsg-3) ... Selecting previously unselected package libnl-route-3-200:armhf. Preparing to unpack .../libnl-route-3-200_3.2.24-2_armhf.deb ... Unpacking libnl-route-3-200:armhf (3.2.24-2) ... Selecting previously unselected package libpcap0.8:armhf. Preparing to unpack .../libpcap0.8_1.6.2-2_armhf.deb ... Unpacking libpcap0.8:armhf (1.6.2-2) ... Selecting previously unselected package libsm6:armhf. Preparing to unpack .../libsm6_2%3a1.2.2-1_armhf.deb ... Unpacking libsm6:armhf (2:1.2.2-1) ... Selecting previously unselected package libxt6:armhf. Preparing to unpack .../libxt6_1%3a1.1.4-1_armhf.deb ... Unpacking libxt6:armhf (1:1.1.4-1) ... Selecting previously unselected package libxmu6:armhf. Preparing to unpack .../libxmu6_2%3a1.1.2-1_armhf.deb ... Unpacking libxmu6:armhf (2:1.1.2-1) ... Selecting previously unselected package hostapd. Preparing to unpack .../hostapd_1%3a2.3-1+deb8u4_armhf.deb ... Unpacking hostapd (1:2.3-1+deb8u4) ... Selecting previously unselected package isc-dhcp-server. Preparing to unpack .../isc-dhcp-server_4.3.1-6+deb8u2_armhf.deb ... Unpacking isc-dhcp-server (4.3.1-6+deb8u2) ... Selecting previously unselected package libnids1.21. Preparing to unpack .../libnids1.21_1.23-2_armhf.deb ... Unpacking libnids1.21 (1.23-2) ... Selecting previously unselected package python-characteristic. Preparing to unpack .../python-characteristic_0.1.0-1_all.deb ... Unpacking python-characteristic (0.1.0-1) ... Selecting previously unselected package python-openssl. Preparing to unpack .../python-openssl_0.13.1-2_armhf.deb ... Unpacking python-openssl (0.13.1-2) ... Selecting previously unselected package python-pam. Preparing to unpack .../python-pam_0.4.2-13.1_armhf.deb ... Unpacking python-pam (0.4.2-13.1) ... Selecting previously unselected package python-pkg-resources. Preparing to unpack .../python-pkg-resources_5.5.1-1_all.deb ... Unpacking python-pkg-resources (5.5.1-1) ... Selecting previously unselected package python-pyasn1. Preparing to unpack .../python-pyasn1_0.1.7-1_all.deb ... Unpacking python-pyasn1 (0.1.7-1) ... Selecting previously unselected package python-pyasn1-modules. Preparing to unpack .../python-pyasn1-modules_0.0.5-0.1_all.deb ... Unpacking python-pyasn1-modules (0.0.5-0.1) ... Selecting previously unselected package python-serial. Preparing to unpack .../python-serial_2.6-1.1_all.deb ... Unpacking python-serial (2.6-1.1) ... Selecting previously unselected package python-service-identity. Preparing to unpack .../python-service-identity_1.0.0-3_all.deb ... Unpacking python-service-identity (1.0.0-3) ... Selecting previously unselected package python-twisted-bin. Preparing to unpack .../python-twisted-bin_14.0.2-3_armhf.deb ... Unpacking python-twisted-bin (14.0.2-3) ... Selecting previously unselected package python-zope.interface. Preparing to unpack .../python-zope.interface_4.1.1-3.1_armhf.deb ... Unpacking python-zope.interface (4.1.1-3.1) ... Selecting previously unselected package python-twisted-core. Preparing to unpack .../python-twisted-core_14.0.2-3_all.deb ... Unpacking python-twisted-core (14.0.2-3) ... Selecting previously unselected package python-twisted-web. Preparing to unpack .../python-twisted-web_14.0.2-3_all.deb ... Unpacking python-twisted-web (14.0.2-3) ... Selecting previously unselected package sslstrip. Preparing to unpack .../sslstrip_0.9-1_all.deb ... Unpacking sslstrip (0.9-1) ... Selecting previously unselected package dsniff. Preparing to unpack .../dsniff_2.4b1+debian-22.1+b1_armhf.deb ... Unpacking dsniff (2.4b1+debian-22.1+b1) ... Processing triggers for systemd (215-17+deb8u7) ... Processing triggers for man-db (2.7.5-1~bpo8+1) ... Setting up x11-common (1:7.7+16) ... update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults Setting up libice6:armhf (2:1.0.9-1) ... Setting up libnet1:armhf (1.1.6+dfsg-3) ... Setting up libnl-route-3-200:armhf (3.2.24-2) ... Setting up libpcap0.8:armhf (1.6.2-2) ... Setting up libsm6:armhf (2:1.2.2-1) ... Setting up libxt6:armhf (1:1.1.4-1) ... Setting up libxmu6:armhf (2:1.1.2-1) ... Setting up hostapd (1:2.3-1+deb8u4) ... Setting up isc-dhcp-server (4.3.1-6+deb8u2) ... Generating /etc/default/isc-dhcp-server... Job for isc-dhcp-server.service failed. See 'systemctl status isc-dhcp-server.service' and 'journalctl -xn' for details. invoke-rc.d: initscript isc-dhcp-server, action "start" failed. Setting up libnids1.21 (1.23-2) ... Setting up python-characteristic (0.1.0-1) ... Setting up python-openssl (0.13.1-2) ... Setting up python-pam (0.4.2-13.1) ... Setting up python-pkg-resources (5.5.1-1) ... Setting up python-pyasn1 (0.1.7-1) ... Setting up python-pyasn1-modules (0.0.5-0.1) ... Setting up python-serial (2.6-1.1) ... Setting up python-service-identity (1.0.0-3) ... Setting up python-twisted-bin (14.0.2-3) ... Setting up python-zope.interface (4.1.1-3.1) ... Setting up python-twisted-core (14.0.2-3) ... Setting up python-twisted-web (14.0.2-3) ... Setting up sslstrip (0.9-1) ... Setting up dsniff (2.4b1+debian-22.1+b1) ... Processing triggers for systemd (215-17+deb8u7) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... cp: cannot stat ‘./etc/dhcpd.conf’: No such file or directory cp: cannot stat ‘./etc/*’: No such file or directory pi@raspberrypi:~ $ sudo wget "https://raw.githubusercontent.com/arrase/RPI-Zero-W-RogueAP/master/etc/dhcpd.conf" -O /etc/dhcpd.conf --2017-07-20 20:57:43-- https://raw.githubusercontent.com/arrase/RPI-Zero-W-RogueAP/master/etc/dhcpd.conf Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 573 [text/plain] Saving to: ‘/etc/dhcpd.conf’ /etc/dhcpd.conf 100%[=====================>] 573 --.-KB/s in 0s 2017-07-20 20:57:43 (1.49 MB/s) - ‘/etc/dhcpd.conf’ saved [573/573] pi@raspberrypi:~ $ sudo wget "https://raw.githubusercontent.com/arrase/RPI-Zero-W-RogueAP/master/etc/hostapd.conf" -O /etc/hostapd.conf --2017-07-20 20:57:45-- https://raw.githubusercontent.com/arrase/RPI-Zero-W-RogueAP/master/etc/hostapd.conf Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 77 [text/plain] Saving to: ‘/etc/hostapd.conf’ /etc/hostapd.conf 100%[=====================>] 77 --.-KB/s in 0s 2017-07-20 20:57:46 (6.12 MB/s) - ‘/etc/hostapd.conf’ saved [77/77] pi@raspberrypi:~ $ sudo mv /etc/dhcpd.conf /etc/dhcp/dhcpd.conf pi@raspberrypi:~ $ sudo mv /etc/hostapd.conf /etc/rogueap/ pi@raspberrypi:~ $ sudo rogueap [ ok ] Starting isc-dhcp-server (via systemctl): isc-dhcp-server.service. Configuration file: /etc/rogueap/hostapd.conf Failed to create interface mon.wlan0: -95 (Operation not supported) wlan0: Could not connect to kernel driver Using interface wlan0 with hwaddr b8:27:eb:ae:05:aa and ssid "Free_Wifi" wlan0: interface state UNINITIALIZED->ENABLED wlan0: AP-ENABLED pi@raspberrypi:~ $
Hat jemand eine Idee
-
- Offizieller Beitrag
Und, hast Du auch die dhcpd.conf und die hostapd.conf auf Deine Bedingungen angepasst?
-
Zitat von "willi8" pid='291830' dateline='1500584509'
Es klappt leider immer noch nicht.CodeSetting up isc-dhcp-server (4.3.1-6+deb8u2) ... Generating /etc/default/isc-dhcp-server... Job for isc-dhcp-server.service failed. See 'systemctl status isc-dhcp-server.service' and 'journalctl -xn' for details. invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
Hat jemand eine IdeeEvtl. gibt es da einen Konflikt mit dem bereits installierten/gestarteten dhcpcd?
Wie sind die Ausgaben von:
? -
Och komm ich weiß du willst das nicht hören, aber alles fett schreiben bringt uns auch nicht weiter, geschweige denn dass du mich ins Bett schickst. Ich bin mir sicher es schaut noch einer von den Netzwerkcracks drüber und meldet sich.
Edit: siehste, so schnell gehts
LG
-
- Offizieller Beitrag
Linus: Das ging schnell, da hattest Du nur an rpi444 gedacht, schon war er da. :thumbs1:
-
Moin willi8,
normalerweise hat man alle Dateien zusammen, bevor man installiert.Gruss Bernd
-
Sorry, das hat sich erledigt,
ich habe Quatsch geschrieben.
Brauch nen Kaffee. -
Zitat von "rpi444" pid='291834' dateline='1500585542'
Folgendes wird mir angezeigt:
Code
Alles anzeigenpi@raspberrypi:~ $ apt-cache policy dhcpcd5 dhcpcd5: Installed: 6.7.1-1+rpi5 Candidate: 6.7.1-1+rpi5 Version table: *** 6.7.1-1+rpi5 0 500 http://archive.raspberrypi.org/debian/ jessie/main armhf Packages 100 /var/lib/dpkg/status 6.0.5-2 0 500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packa ges pi@raspberrypi:~ $ ps -fC dhcpcd UID PID PPID C STIME TTY TIME CMD root 618 1 0 08:13 ? 00:00:00 /sbin/dhcpcd -q -w
-
Zitat von "willi8" pid='292052' dateline='1500798313'
Folgendes wird mir angezeigt:Wenn dhcpcd z. Zt. _nicht_ benötigt wird, dann versuch mal mit deaktiviertem dhcpcd:
Codesudo systemctl stop dhcpcd sudo systemctl disable dhcpcd systemctl status dhcpcd systemctl is-enabled dhcpcd
Wenn dhcpcd z. Zt. benötigt wird, dann für eine geeignete Alternative sorgen, die keinen Konflikt mit dem zu installierenden package verursacht.
-
Jetzt wird folgendes angezeigt:
Code
Alles anzeigenpi@raspberrypi:~ $ sudo systemctl stop dhcpcd Warning: Unit file of dhcpcd.service changed on disk, 'systemctl daemon-reload' recommended. pi@raspberrypi:~ $ sudo systemctl disable dhcpcd Synchronizing state for dhcpcd.service with sysvinit using update-rc.d... Executing /usr/sbin/update-rc.d dhcpcd defaults Executing /usr/sbin/update-rc.d dhcpcd disable insserv: warning: current start runlevel(s) (empty) of script `dhcpcd' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `dhcpcd' overrides LSB defaults (0 1 6). pi@raspberrypi:~ $ systemctl status dhcpcd ● dhcpcd.service - dhcpcd on all interfaces Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled) Drop-In: /etc/systemd/system/dhcpcd.service.d └─wait.conf Active: failed (Result: exit-code) since Sun 2017-07-23 09:10:06 UTC; 3s ago Main PID: 621 (code=exited, status=1/FAILURE) pi@raspberrypi:~ $ systemctl is-enabled dhcpcd enabled pi@raspberrypi:~ $
-
Zitat von "willi8" pid='292060' dateline='1500801231'
Hast Du eine geeignete Alternative für dhcpcd? Wenn _ja_ (und nur dann) und diese auch fehlerfrei verwendet wird, mal:
Codesystemctl daemon-reload sudo killall dhcpcd sudo systemctl stop dhcpcd sudo systemctl disable dhcpcd sudo shutdown -r +1
nach dem reboot:
Wenn das auch nicht funktioniert und Du eine geeignete Alternative hast (und nur dann), könntest Du den dhcpcd5 auch deinstallieren: -
Jetzt mitmachen!
Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!