- echo raspian 9 debian 9
- echo notes are taken from
- echo http://www.raspberryconnect.com/network/item/333-raspberry-pi-hotspot-access-point-dhcpcd-method
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get install joe -y
- sudo apt-get install hostapd -y
- sudo apt-get install dnsmasq -y
- dpkg -s dnsmasq
- echo if version < 2.77
- echo sudo apt-get purge dns-root-data -y
- cat >>/etc/hostapd/hostapd.conf <<EOF
- interface=wlan0
- driver=nl80211
- ssid=RPiHotSpot
- hw_mode=g
- channel=6
- wmm_enabled=0
- macaddr_acl=0
- auth_algs=1
- ignore_broadcast_ssid=0
- wpa=2
- wpa_passphrase=raspberry
- wpa_key_mgmt=WPA-PSK
- wpa_pairwise=TKIP
- rsn_pairwise=CCMP
- EOF
- cat /etc/default/hostapd
- echo "-----"
- #DAEMON_OPTS=""
- cat >> /etc/default/hostapd <<EOF
- DAEMON_CONF="/etc/hostapd/hostapd.conf"
- EOF
- echo "-----"
- cat /etc/default/hostapd
- cat >> /etc/dnsmasq.conf <<EOF
- #RPiHotspot config - No Intenet
- interface=wlan0
- domain-needed
- bogus-priv
- dhcp-range=192.168.99.150,192.168.99.200,255.255.255.0,12h
- EOF
- cat >>/etc/dhcpcd.conf <<EOF
- nohook wpa_supplicant
- interface wlan0
- static ip_address=192.168.99.1/24
- static routers=192.168.50.1
- EOF
- cat >> /etc/sysctl.conf <<EOF
- net.ipv4.ip_forward=1
- EOF
- echo USB automount
- sudo apt-get install usbmount -y
- sed -i 's/MountFlags=slave/MountFlags=shared/g' /lib/systemd/system/systemd-udevd.service
- echo fish://pi@192.168.99.1:/home/pi/
Setup Pi Zero W as Wifi Router Raspbian 9
Posted by Anonymous on Sun 4th Nov 2018 23:55
raw | new post
modification of post by Anonymous (view diff)
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.