<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Mangal;
        panose-1:2 4 5 3 5 2 3 3 2 2;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>one question which Jerry would have to answer is whether you should have installed hostapd before xsce as I think xsce now does the install.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> xsce-devel@googlegroups.com [mailto:xsce-devel@googlegroups.com] <b>On Behalf Of </b>Anish Mangal<br><b>Sent:</b> Saturday, April 18, 2015 2:20 PM<br><b>To:</b> Jerry Vonau<br><b>Cc:</b> xsce-devel; server-devel<br><b>Subject:</b> Re: [XSCE] NUC installation troubles<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><div><p class=MsoNormal style='margin-left:.5in'>Pretty sure this is a hack but putting dhcpd.service in hostapd.service's 'After' section works. <o:p></o:p></p><div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><div><p class=MsoNormal style='margin-left:.5in'>On Sat, Apr 18, 2015 at 11:32 PM, Anish Mangal <<a href="mailto:anishmg@umich.edu" target="_blank">anishmg@umich.edu</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'>Okay so things looking slightly better. The server is up with dhcp running, however hostapd does not start automatically. (Manually I have to start it twice)<o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'>Here are the messages from the journal<br><br>Apr 18 23:28:22 schoolserver.lan hostapd[2118]: Configuration file: /etc/hostapd/hostapd.conf<br>Apr 18 23:28:22 schoolserver.lan hostapd[2118]: Could not set channel for kernel driver<br>Apr 18 23:28:22 schoolserver.lan hostapd[2118]: Interface initialization failed<br>Apr 18 23:28:22 schoolserver.lan hostapd[2118]: wlp2s0: interface state UNINITIALIZED->DISABLED<br>Apr 18 23:28:22 schoolserver.lan hostapd[2118]: wlp2s0: AP-DISABLED<br>Apr 18 23:28:22 schoolserver.lan hostapd[2118]: wlp2s0: Unable to setup interface.<br>Apr 18 23:28:22 schoolserver.lan hostapd[2118]: hostapd_free_hapd_data: Interface wlp2s0 wasn't started<br>Apr 18 23:28:22 schoolserver.lan systemd[1]: hostapd.service: main process exited, code=exited, status=1/FAILURE<br>Apr 18 23:28:22 schoolserver.lan systemd[1]: Unit hostapd.service entered failed state.<br>Apr 18 23:28:22 schoolserver.lan systemd[1]: hostapd.service failed.<br>Apr 18 23:28:35 schoolserver.lan hostapd[2124]: wlp2s0: STA 48:d2:24:66:1f:d7 IEEE 802.11: authenticated<br>Apr 18 23:28:35 schoolserver.lan hostapd[2124]: wlp2s0: STA 48:d2:24:66:1f:d7 IEEE 802.11: associated (aid 1)<br>Apr 18 23:28:35 schoolserver.lan hostapd[2124]: wlp2s0: STA 48:d2:24:66:1f:d7 RADIUS: starting accounting session 55329B44-00000000<o:p></o:p></p><div><div><div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><div><p class=MsoNormal style='margin-left:.5in'>On Sat, Apr 18, 2015 at 11:01 PM, Anish Mangal <<a href="mailto:anishmg@umich.edu" target="_blank">anishmg@umich.edu</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><p class=MsoNormal style='margin-left:.5in'>Pressed 'send' too soon. Also wanted to know whether the hostapd needs to be set to some value in the vars file for it to work?<o:p></o:p></p><div><div><div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><div><p class=MsoNormal style='margin-left:.5in'>On Sat, Apr 18, 2015 at 10:59 PM, Anish Mangal <<a href="mailto:anishmg@umich.edu" target="_blank">anishmg@umich.edu</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><div><div><div><div><div><div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'>Hi Jerry,<o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'>Thanks for the response. So you're saying that I *should* be using the latest master and it *should* work with those tweaks that you mention? :-) <o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'>I don't require any authentication for the wifi network, and xsce out of the box as the ssid is okay with me. Will check upon the hostapd conf to see if the interface is br0.<o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'>Also, did you face issues with dhcpd not coming up complaining about no subnet declaration in your testing? Seems to be happening here, although I'll let the current runansible run finish and then report back. <o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'>Oh, and slightly offtopic .. moodle probably needs postgres which is disabled by default :)<o:p></o:p></p></div><p class=MsoNormal style='margin-left:.5in'>Cheers,<o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'>Anish<o:p></o:p></p><div><div><div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><div><p class=MsoNormal style='margin-left:.5in'>On Sat, Apr 18, 2015 at 10:53 PM, Jerry Vonau <<a href="mailto:me@jvonau.ca" target="_blank">me@jvonau.ca</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><p class=MsoNormal style='margin-left:.5in'>Hi Anish,<br><br>Thanks for the testing.<br><br>> On April 18, 2015 at 10:10 AM Anish Mangal <<a href="mailto:anishmg@umich.edu" target="_blank">anishmg@umich.edu</a>> wrote:<br>><br>><br>> Hi,<br>><br>> Have been struggling all day trying to figure out how to install current<br>> master on a NUC.<br>><br>> I set one up two weeks ago in the following fashion:<br>> f21-server install on a NUC<br>> xsce install in appliance mode<br>> install hostapd and configure wifi chip to be used<br>> rerun xsce playbooks<br>><br>> This seemed to work well on the first try and is being used at the school<br>> in the mountains I went to.<br>><br><br>Yea, we made some great progress in the WiFi realm.<br><br>> Now I have two more NUCs and am trying to setup current master<br>><br>> I installed hostapd before running any playbooks, and running xsce seems<br>> to<br>> enable a bridge network br0 and use it as LAN. I also see a hostapd<br>> config<br>> option in the vars file.<br>><br><br>Yes we added basic WiFi AP mode support, sets up an open AP with no<br>authentication using bridging. The only thing configurable in local_vars at<br>this point is the ssid, we didn't extend the all the variables from<br>hostapd.conf to local_vars yet. A pull request to do so would be welcome.<br><br>> Would like to know the 'proper' way to go about it. i feel like I am<br>> trying<br>> various permutations and not setting things up as they should be. Any<br>> pointers would be useful.<br>><br><br>If you're running authentication, I'd let ansible finish then overwrite the<br>hostapd.conf file with your version but be sure to add "bridge=br0" to the<br>file then restart the hostapd service.<br><span style='color:#888888'><br>Jerry</span><o:p></o:p></p></blockquote></div><p class=MsoNormal style='margin-left:.5in'><br><br clear=all><o:p></o:p></p></div></div><p class=MsoNormal style='margin-left:.5in'>-- <o:p></o:p></p><div><div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p></div></div></div></div></div></blockquote></div><p class=MsoNormal style='margin-left:.5in'><br><br clear=all><o:p></o:p></p></div></div><p class=MsoNormal style='margin-left:.5in'>-- <o:p></o:p></p><div><div><div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p></div></div></div></div></div></blockquote></div><p class=MsoNormal style='margin-left:.5in'><br><br clear=all><o:p></o:p></p></div></div><p class=MsoNormal style='margin-left:.5in'>-- <o:p></o:p></p><div><div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p></div></div></div></div></div></blockquote></div><p class=MsoNormal style='margin-left:.5in'><br><br clear=all><br>-- <o:p></o:p></p><div><div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p></div></div></div></div></div></div></body></html>