That would be great. You had a shorter route than I did. Not a Pi, but same 
idea.

sudo xed /etc/default/grub

GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

sudo update-grub

sudo reboot



sudo apt-get install hostapd



iw reg get

sudo iw reg set US



sudo xed /etc/hostapd/hostapd.conf



interface=wlan1

country_code=US

ctrl_interface=/var/run/hostapd

ctrl_interface_group=0

ssid=MiSSID

hw_mode=g

channel=11

beacon_int=100

dtim_period=2

max_num_sta=50

rts_threshold=2347

fragm_threshold=2346

wmm_enabled=1

ap_isolate=1

ieee80211n=1

ht_capab=[SHORT-GI-20][SHORT-GI-40]

logger_syslog=-1

logger_syslog_level=2

logger_stdout=-1

logger_stdout_level=2

ieee8021x=0

eap_server=0

macaddr_acl=0

auth_algs=1

ignore_broadcast_ssid=0

wpa=2

wpa_passphrase=HappyPW2u

wpa_key_mgmt=WPA-PSK

wpa_pairwise=CCMP

wpa_group_rekey=86400



sudo xed /etc/NetworkManager/NetworkManager.conf

[main]

plugins=ifupdown,keyfile,ofono

dns=dnsmasq



[ifupdown]

managed=false



[device]

wifi.scan-rand-mac-address=no



[keyfile]

unmanaged-devices=mac:e8:4e:06:51:00:5d



sudo xed /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)

auto lo

iface lo inet loopback



allow-hotplug eth0

iface eth0 inet dhcp



auto wlan1

iface wlan1 inet static

address 10.0.0.1

netmask 255.255.255.0



sudo apt-get install dnsmasq

sudo xed /etc/dnsmasq.conf

interface=wlan1

dhcp-range=10.0.0.2,10.0.0.10,255.255.255.0,12h

no-hosts

addn-hosts=/etc/hosts.dnsmasq



sudo xed /lib/systemd/system/dnsmasq.service

After=network-online.target

Wants=network-online.target



sudo xed /etc/hosts.dnsmasq

10.0.0.1 WiAP



sudo xed /etc/sysctl.conf

net.ipv4.ip_forward=1



sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

sudo iptables -A FORWARD -i eth0 -o wlan1 -m state --state RELATED,ESTABLISHED 
-j ACCEPT

sudo iptables -A FORWARD -i wlan1 -o eth0 -j ACCEPT

sudo iptables -nvL

sudo apt-get install iptables-persistent

sudo bash -c "iptables-save > /etc/iptables.rules"



sudo xed /etc/init.d/hostapd

DAEMON_CONF=/etc/hostapd/hostapd.conf





sudo service hostapd start

sudo service dnsmasq start



sudo service hostapd status

sudo service dnsmasq status



On Wednesday, January 2, 2019 at 9:18:23 AM UTC-5, Scott Grayban wrote:
>
> I'll do a write up on how to install and use hostapd for weeWX since I 
> turned into a semi-pro on it today and while it's still fresh in my head.
>
>
> On Wednesday, January 2, 2019 at 6:15:31 AM UTC-8, G Hammer wrote:
>>
>> Glad it was hardware, else the error made little sense.
>> Yep, the Pi and SD cards are always something to look at. And have a 
>> backup for!
>>
>> Good you're up and running.
>>
>> On Wednesday, January 2, 2019 at 9:11:23 AM UTC-5, Scott Grayban wrote:
>>>
>>> Ok I got hostapd working on the same PI as weeWX and the WS is connected 
>>> to the hotspot.
>>>
>>> I edit weemx.conf and made the changes and restarted weewx.
>>>
>>> Logs show no errors when started....FINALLY ..... :)
>>>
>>> After 12 hours or maybe more..... because my sdcard that weemx was on 
>>> decided to take a dump on me while getting this to work.
>>>
>>> 2 lesson learnt here..... no amount of coffee would have helped.... make 
>>> a image of the new sdcard setup so I don't have to manually copy settings 
>>> from a crappy sdcard.
>>>
>>> Oh and buy a A1 32GB card of Amazon...... DONE.. bought 2 !!!
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to