[Server-devel] [XSCE] NUC installation troubles

Tim Moody tim at timmoody.com
Sat Apr 18 15:12:52 EDT 2015


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.

 

From: xsce-devel at googlegroups.com [mailto:xsce-devel at googlegroups.com] On Behalf Of Anish Mangal
Sent: Saturday, April 18, 2015 2:20 PM
To: Jerry Vonau
Cc: xsce-devel; server-devel
Subject: Re: [XSCE] NUC installation troubles

 

Pretty sure this is a hack but putting dhcpd.service in hostapd.service's 'After' section works. 

 

On Sat, Apr 18, 2015 at 11:32 PM, Anish Mangal <anishmg at umich.edu <mailto:anishmg at umich.edu> > wrote:

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)

Here are the messages from the journal

Apr 18 23:28:22 schoolserver.lan hostapd[2118]: Configuration file: /etc/hostapd/hostapd.conf
Apr 18 23:28:22 schoolserver.lan hostapd[2118]: Could not set channel for kernel driver
Apr 18 23:28:22 schoolserver.lan hostapd[2118]: Interface initialization failed
Apr 18 23:28:22 schoolserver.lan hostapd[2118]: wlp2s0: interface state UNINITIALIZED->DISABLED
Apr 18 23:28:22 schoolserver.lan hostapd[2118]: wlp2s0: AP-DISABLED
Apr 18 23:28:22 schoolserver.lan hostapd[2118]: wlp2s0: Unable to setup interface.
Apr 18 23:28:22 schoolserver.lan hostapd[2118]: hostapd_free_hapd_data: Interface wlp2s0 wasn't started
Apr 18 23:28:22 schoolserver.lan systemd[1]: hostapd.service: main process exited, code=exited, status=1/FAILURE
Apr 18 23:28:22 schoolserver.lan systemd[1]: Unit hostapd.service entered failed state.
Apr 18 23:28:22 schoolserver.lan systemd[1]: hostapd.service failed.
Apr 18 23:28:35 schoolserver.lan hostapd[2124]: wlp2s0: STA 48:d2:24:66:1f:d7 IEEE 802.11: authenticated
Apr 18 23:28:35 schoolserver.lan hostapd[2124]: wlp2s0: STA 48:d2:24:66:1f:d7 IEEE 802.11: associated (aid 1)
Apr 18 23:28:35 schoolserver.lan hostapd[2124]: wlp2s0: STA 48:d2:24:66:1f:d7 RADIUS: starting accounting session 55329B44-00000000

 

On Sat, Apr 18, 2015 at 11:01 PM, Anish Mangal <anishmg at umich.edu <mailto:anishmg at umich.edu> > wrote:

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?

 

On Sat, Apr 18, 2015 at 10:59 PM, Anish Mangal <anishmg at umich.edu <mailto:anishmg at umich.edu> > wrote:

Hi Jerry,

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? :-) 

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.

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. 

Oh, and slightly offtopic .. moodle probably needs postgres which is disabled by default :)

Cheers,

Anish

 

On Sat, Apr 18, 2015 at 10:53 PM, Jerry Vonau <me at jvonau.ca <mailto:me at jvonau.ca> > wrote:

Hi Anish,

Thanks for the testing.

> On April 18, 2015 at 10:10 AM Anish Mangal <anishmg at umich.edu <mailto:anishmg at umich.edu> > wrote:
>
>
> Hi,
>
> Have been struggling all day trying to figure out how to install current
> master on a NUC.
>
> I set one up two weeks ago in the following fashion:
> f21-server install on a NUC
> xsce install in appliance mode
> install hostapd and configure wifi chip to be used
> rerun xsce playbooks
>
> This seemed to work well on the first try and is being used at the school
> in the mountains I went to.
>

Yea, we made some great progress in the WiFi realm.

> Now I have two more NUCs and am trying to setup current master
>
> I installed hostapd before running any playbooks, and running xsce seems
> to
> enable a bridge network br0 and use it as LAN. I also see a hostapd
> config
> option in the vars file.
>

Yes we added basic WiFi AP mode support, sets up an open AP with no
authentication using bridging. The only thing configurable in local_vars at
this point is the ssid, we didn't extend the all the variables from
hostapd.conf to local_vars yet. A pull request to do so would be welcome.

> Would like to know the 'proper' way to go about it. i feel like I am
> trying
> various permutations and not setting things up as they should be. Any
> pointers would be useful.
>

If you're running authentication, I'd let ansible finish then overwrite the
hostapd.conf file with your version but be sure to add "bridge=br0" to the
file then restart the hostapd service.

Jerry





-- 

 

 





-- 

 





-- 

 

 




-- 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/server-devel/attachments/20150418/8dd5018b/attachment.html>


More information about the Server-devel mailing list