Hello,
I’m completely new to DietPi, and I’m unsuccessfully trying to set an hotspot on a pizero.
I tried with DietPi-config, but did not succeed and now I’m a bit lost.
Thank you for your help.
My config DietPi V6.11
iwconfig returns
wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
ip a returns
(…)
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether b8:27:eb:fd:d9:68 brd ff:ff:ff:ff:ff:ff
inet 192.168.42.1/24 brd 192.168.42.255 scope global wlan0
valid_lft forever preferred_lft forever
My configuration
#/etc/hostapd/hostapd.conf
interface=wlan0
driver=nl80211
hw_mode=g
channel=7
macaddr_acl=0
auth_algs=1
ssid=DietPi-HotSpot
wpa=2
wpa_passphrase=dietpihotspot
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
Note that: hostapd /etc/hostapd/hostapd.conf returns Illegal instruction
#/etc/network/interfaces
#Please use DietPi-Config to modify network settings.
# Local
auto lo
iface lo inet loopback
# Ethernet
allow-hotplug eth0
iface eth0 inet dhcp
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
#dns-nameservers 8.8.8.8 8.8.4.4
# Wifi
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.42.1
/etc/wpa_supplicant/wpa_supplicant.conf
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="MySuperDooperWiFi"
scan_ssid=1
key_mgmt=WPA-PSK
psk="0123456789"
}