Forum

Einloggen | Registrieren | RSS  

Raspberry Pi als WLan Router einrichten (Netzwerktechnik)

verfasst von Maercle(R), 12.03.2019, 10:28 Uhr

:-) Hallo Bastelix,
sorry hat etwas gedauert bis ich hier weitermachen konnte.

die Fehlermeldung lautet bei:
sudo systemctl start hostapd:
Failed to start hostapd.service: Unit hostapd.service is masked.

und bei
sudo systemctl enable hostapd:
Synchronizing state of hostapd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable hostapd
Failed to enable unit: Unit file /etc/systemd/system/hostapd.service is masked.


:-) Das journalctl -xe gibt aus:
-- The start-up result is done.
Mär 12 10:03:51 raspberrypi systemd[1]: apt-daily.timer: Adding 6h 24min 1.86870
Mär 12 10:03:51 raspberrypi systemd[1]: apt-daily.timer: Adding 6h 21min 16.3855
Mär 12 10:03:51 raspberrypi systemd[1]: Starting Daily apt upgrade and clean act
-- Subject: Unit apt-daily-upgrade.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit apt-daily-upgrade.service has begun starting up.
Mär 12 10:03:52 raspberrypi systemd[1]: Started Daily apt upgrade and clean acti
-- Subject: Unit apt-daily-upgrade.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit apt-daily-upgrade.service has finished starting up.
--
-- The start-up result is done.
Mär 12 10:03:52 raspberrypi systemd[1]: apt-daily-upgrade.timer: Adding 43min 44
Mär 12 10:03:52 raspberrypi systemd[1]: apt-daily-upgrade.timer: Adding 24min 7.
Mär 12 10:12:41 raspberrypi sudo[1379]: pi : TTY=pts/0 ; PWD=/home/pi ; US
Mär 12 10:12:41 raspberrypi sudo[1379]: pam_unix(sudo:session): session opened f
Mär 12 10:12:41 raspberrypi sudo[1379]: pam_unix(sudo:session): session closed f
lines 1671-1693/1693 (END)
--
-- The start-up result is done.
Mär 12 10:03:51 raspberrypi systemd[1]: apt-daily.timer: Adding 6h 24min 1.86870
Mär 12 10:03:51 raspberrypi systemd[1]: apt-daily.timer: Adding 6h 21min 16.3855
Mär 12 10:03:51 raspberrypi systemd[1]: Starting Daily apt upgrade and clean act
-- Subject: Unit apt-daily-upgrade.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit apt-daily-upgrade.service has begun starting up.
Mär 12 10:03:52 raspberrypi systemd[1]: Started Daily apt upgrade and clean acti
-- Subject: Unit apt-daily-upgrade.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit apt-daily-upgrade.service has finished starting up.
--
-- The start-up result is done.
Mär 12 10:03:52 raspberrypi systemd[1]: apt-daily-upgrade.timer: Adding 43min 44
Mär 12 10:03:52 raspberrypi systemd[1]: apt-daily-upgrade.timer: Adding 24min 7.
Mär 12 10:12:41 raspberrypi sudo[1379]: pi : TTY=pts/0 ; PWD=/home/pi ; US
Mär 12 10:12:41 raspberrypi sudo[1379]: pam_unix(sudo:session): session opened f
Mär 12 10:12:41 raspberrypi sudo[1379]: pam_unix(sudo:session): session closed f
~
~
lines 1671-1693/1693 (END)
--
-- The start-up result is done.
Mär 12 10:03:51 raspberrypi systemd[1]: apt-daily.timer: Adding 6h 24min 1.868706s random time.
Mär 12 10:03:51 raspberrypi systemd[1]: apt-daily.timer: Adding 6h 21min 16.385529s random time.
Mär 12 10:03:51 raspberrypi systemd[1]: Starting Daily apt upgrade and clean activities...
-- Subject: Unit apt-daily-upgrade.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit apt-daily-upgrade.service has begun starting up.
Mär 12 10:03:52 raspberrypi systemd[1]: Started Daily apt upgrade and clean activities.
-- Subject: Unit apt-daily-upgrade.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit apt-daily-upgrade.service has finished starting up.
--
-- The start-up result is done.
Mär 12 10:03:52 raspberrypi systemd[1]: apt-daily-upgrade.timer: Adding 43min 44.962407s random time.
Mär 12 10:03:52 raspberrypi systemd[1]: apt-daily-upgrade.timer: Adding 24min 7.665524s random time.
Mär 12 10:12:41 raspberrypi sudo[1379]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/systemctl
Mär 12 10:12:41 raspberrypi sudo[1379]: pam_unix(sudo:session): session opened for user root by (uid=0)
Mär 12 10:12:41 raspberrypi sudo[1379]: pam_unix(sudo:session): session closed for user root




:-) ls -l /etc/hostapd/hostapd.conf:
-rw------- 1 root root 305 Mär 7 20:03 /etc/hostapd/hostapd.conf




:-) cat /etc/default/hostapd:
# Defaults for hostapd initscript
#
# See /usr/share/doc/hostapd/README.Debian for information about alternative
# methods of managing hostapd.
#
# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration
# file and hostapd will be started during system boot. An example configuration
# file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz
#
#DAEMON_CONF=""

# Additional daemon options to be appended to hostapd command:-
# -d show more debug messages (-dd for even more)
# -K include key data in debug messages
# -t include timestamps in some debug messages
#
# Note that -B (daemon mode) and -P (pidfile) options are automatically
# configured by the init.d script and must not be added to DAEMON_OPTS.
#
#DAEMON_OPTS=""
RUN_DAEMON=yes
DAEMON_CONF="/etc/hostapd/hostapd.conf"

:-) Ich verwende die Aktuelle Version von Raspbian
cat /proc/version gibt aus:
Linux version 4.14.98-v7+ (dom@dom-XPS-13-9370) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1200 SMP Tue Feb 12 20:27:48 GMT 2019

Vielen Dank für Deine Hilfe! :-)
Mäercle



Gesamter Thread:

Raspberry Pi als WLan Router einrichten - Maercle(R), 07.03.2019, 18:52 (Netzwerktechnik)
Raspberry Pi als WLan Router einrichten - bastelix(R), 07.03.2019, 21:46
Raspberry Pi als WLan Router einrichten - Maercle(R), 12.03.2019, 10:28
Raspberry Pi als WLan Router einrichten - bastelix(R), 13.03.2019, 00:43