Configuring HotSpot WIFI with RPi Zero W

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
SJL
Posts: 1
Joined: Sat Jul 14, 2018 9:41 am

Configuring HotSpot WIFI with RPi Zero W

Post by SJL »

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

Code: Select all

	
	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

Code: Select all

	#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

Code: Select all

	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"
	}
User avatar
WarHawk
Posts: 631
Joined: Thu Jul 20, 2017 8:55 am

Re: Configuring HotSpot WIFI with RPi Zero W

Post by WarHawk »

Did some digging... (same procedure on dietpi)
http://www.instructables.com/id/Raspber ... Point-WAP/

Looks like you didn't do the IPTABLES stuff (same procedure on dietpi)
https://www.iotgadgets.com/2018/01/tuto ... ess-point/ <-this one looks better/easier

Why are you wasting a RPi0W when you could get a cheapo chinese one and set it up
Mini 3G/4G WiFi Wlan Hotspot AP Client 150Mbps RJ45 USB Wireless Router
Post Reply