-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interfaces config for AP not working #2
Comments
Is there anywhere I can look to see more advanced logs of what's going wrong with hostapd? |
I'm surprised we don't have to setup https://www.maketecheasier.com/set-up-raspberry-pi-as-wireless-access-point/ |
We don't edit dhcp.conf because we're using dnsmasq itself as the dhcp server; we actually kill the normal dhcp server in order to allow that to happen (that's where we edit the udhcpd-for-hostapd.conf and set it to only have a loopback interface). Note that we DO edit dnsmasq.conf. There are a number of things that have to be just right for the AP to work:
Normally that should do it. I've tried it several times, and it works consistently. If you're having trouble, I recommend trying it with a freshly-flashed Edison, straight away without doing all of the other stuff first. That way you'll be able to isolate the problem with setting up the AP. Once you get it working, either start over (probably the easiest), or, if you've saved all of your configuration files with a .BAK extension instead of overwriting them, you can and restore the Edison's setup to get on the internet and to the rest of the install (suffixing the AP-configured files with .APBAK) , then return to the AP configuration by copying the .APBAK files as the config files. |
For that matter, maybe I'll try to script up the AP installation today. If it still doesn't work on yours, then we'll know that something else is wrong! |
Similar to Robin's issue, I am following the instructions for setting up the AP. Here is where I am at... Run command:
Output
Editing
Run command:
This takes a little while, and I see it downloading from the testing repo: Output
Something is going wrong when running |
Hmm... I wonder if something has recently changed in the repo? Also, I'm just not sure what is happening with the Edison that refuses to re-flash. I can't replicate that; I'm just running flashall and it reflashes the Edison no matter what was on it. |
I think the idea of a flashable image is becoming more compelling. I know that this can work (I have one working now), but it appears that results may vary, which shouldn't be the case but seems to be! |
@ivangayton - could you try a fresh install with Ubilinux connected to wifi and then try the AP again? I want to see if you can a) replicate our problem, and b) make it work for yourself one more time. |
Looking at how apt-get packages are pinned, I'm not so sure this is the correct way to be doing it: https://help.ubuntu.com/community/PinningHowto Notice this example where the specific package we care about is explicitly pinned, rather than using a *.
|
Yup, trying a fresh install now, hoping to replicate the problem. |
Indeed the pinning seems wrong. I got the text from here: https://communities.intel.com/thread/61455 , but your research does seem to indicate that this is not the way to do it. |
My Edison was bricked for most of the weekend. Flashing from my Linux |
Hi Ivan Hope all well with you. I guess you¹ve heard from Pete that we have the To update you AP issue seems to have been at least partially resolved. I I¹ll keep you in the picture how this progresses. Robin |
[The fallacy of replying to github messages by email...] I just heard that, and I'm very glad to hear it! Look forward to collaborating.Great that you've got the AP working; are you able to see what's wrong with the instructions? I can't replicate the problem...Ivan-----Robin Edwards [email protected] wrote: -----To: ivangayton/ODKAggregateOnEdison [email protected], Ivan Gayton [email protected], "Ivan Gayton (via Google Drive)" [email protected]: Robin Edwards [email protected]: 09/10/2015 10:11AMSubject: Re: [ODKAggregateOnEdison] interfaces config for AP not working (#2)Hi IvanHope all well with you. I guess you’ve heard from Pete that we have the go-ahead for testing next week.To update you – AP issue seems to have been at least partially resolved. I have a new Edison up and running as WiFi. Server accessible only via IP however. I’ve commented progress against your installation instructions:https://github.com/geotheory/Edison_AP_Setup_notes/wiki/Edison-Access-Point-setup-notesI’ll keep you in the picture how this progresses.RobinFrom: Ivan Gayton [email protected]: ivangayton/ODKAggregateOnEdison [email protected]: Monday, 7 September 2015 19:06To: ivangayton/ODKAggregateOnEdison [email protected]: Re: [ODKAggregateOnEdison] interfaces config for AP not working (#2)We don't edit dhcp.conf because we're using dnsmasq itself as the dhcp server; we actually kill the normal dhcp server in order to allow that to happen (that's where we edit the udhcpd-for-hostapd.conf and set it to only have a loopback interface). Note that we DO edit dnsmasq.conf. There are a number of things that have to be just right for the AP to work:Install the testing version of hostapd (thus all the fiddling with apt preferences). While you're doing that, you need to NOT accept the package maintainer's version of the hostapd script in etc/init.d/ (so answer N to that question during the installer's progress)Install normal versions of dnsmasq and dnsutilsEdit /etc/dnsmasq.conf to give it a range of IPs to hand outEdit /etc/hostapd/hostapd.conf to specify the network name and passphrase (at one point I put "password" instead of "wpa_passphrase" in this file, and hostapd failed just as yours has: you have to use "wpa_passphrase" in this conf file)modify the Edison's /etc/hosts file to have the dns lookup workModify etc/default/hostapd.conf to point it to the correct daemon (/etc/hostapd/hostapd.conf)Modify /etc/network/interfaces (as you did)Modify /etc/hostapd/udhcpd-for-hostapd.conf to kill it as a dns server (allowing dnsmasq to take over)Normally that should do it. I've tried it several times, and it works consistently.If you're having trouble, I recommend trying it with a freshly-flashed Edison, straight away without doing all of the other stuff first. That way you'll be able to isolate the problem with setting up the AP. Once you get it working, either start over (probably the easiest), or, if you've saved all of your configuration files with a .BAK extension instead of overwriting them, you can and restore the Edison's setup to get on the internet and to the rest of the install (suffixing the AP-configured files with .APBAK) , then return to the AP configuration by copying the .APBAK files as the config files.—Reply to this email directly or view it on GitHub. Médecins Sans Frontières/Doctors Without Borders (MSF)Lower Ground Floor, Chancery Exchange, 10 Furnival Street, London EC4A 1ABTel: +44 (0)20 7404 6600 | Fax: +44 (0)20 7404 4466Médecins Sans Frontières/Doctors Without Borders (MSF) is an independent international medical humanitarian organisation that delivers emergency aid in more than 60 countries.Discuss, debate and get the latest news from MSF:Online | Facebook | Google+ | Instagram | Pinterest | Storify | Twitter | Youtube | Subscribe to emailsDonate to MSF UKMSF (UK) is a company limited by guarantee | English Charity Reg No.1026588 | English Registration No. 2853011 |
Cheers! Well the full console log is linked now to the top of the notes doc, On Thu, Sep 10, 2015 at 6:17 pm, Ivan Gayton < [email protected] [[email protected]] > wrote: Great that you've got the AP working; are you able to see what's wrong with the Ivan -----Robin Edwards [email protected] wrote: ----- To: ivangayton/ODKAggregateOnEdison Hi Ivan From: Ivan Gayton < [email protected] [[email protected]] > We don't edit dhcp.conf because we're using dnsmasq itself as the dhcp server; There are a number of things that have to be just right for the AP to work:
Normally that should do it. I've tried it several times, and it works If you're having trouble, I recommend trying it with a freshly-flashed Edison, — Médecins Sans Frontières/Doctors Without Borders (MSF) Médecins Sans Frontières/Doctors Without Borders (MSF) is an independent Discuss, debate and get the latest news from MSF: Donate to MSF UK MSF (UK) is a company limited by guarantee | English Charity Reg No.1026588 | |
Whatever became of this issue? Did @ivangayton or @geotheory solve the AP problem? @geotheory , your wiki is blank? Did @ivangayton replicate the hostapd failing problem? |
I got the AP working twice today by cutting out Tomcat. There's definitely some new issue causing the Tomorrow I hope to have a full working ODK Aggregate server again. I've also fixed a major bug in the installation script, so we should soon have a quicker setup. The only unpredictable stage is flashing, which sometimes works with the Linux (netbook) and sometimes with OSX (with the updated Yosemite @hallahan the wiki notes are at: https://github.com/geotheory/Edison_AP_Setup_notes/wiki/Edison-Access-Point-setup-notes |
Ok. Should I just follow your instructions from a fresh install? I'm skipping over all of ODK tomcat and NGINX stuff for now, since I know that part isn't my focus right now. Could you outline what I should do differently? |
I'm nearly done reworking my install scripts and will upload shortly. |
Awesome! |
Morning Nick. OK a fresh commit with updated installation is uploaded. This has worked for me twice today. The first script should be updated with your WiFi details then just run in one go. The second script needs to be done manually (line by line) as for some reason it failed at Java earlier. But it does appear to work. Let me know if it does for you. The call I'm having difficulty installing ODK Collect. The files download to phone, sometimes with .zip and sometimes not (I've tried renaming etc). But I always get |
Greetings, my apologies if I'm being a bit thick (and for bringing this up a year later) but what did you decide was the root cause of only being able to connect via IP? Best, |
I'm working on getting the access point part of the config working, and I seem to be fine up to the point where I have to modify the
/etc/network/interfaces
file.I literally copied what is in the wiki verbatim:
When I restart the Edison, upon boot, I notice these messages saying that hostapd failed.
Just for fun, I went ahead and modified the
udhcpd-for-hostapd.conf
file with theinterface lo
command, to no further luck.Any ideas?
The text was updated successfully, but these errors were encountered: