Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Early access to wifi or bluetooth
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
danmc
n00b
n00b


Joined: 11 Nov 2014
Posts: 3

PostPosted: Tue Nov 11, 2014 11:38 am    Post subject: Early access to wifi or bluetooth Reply with quote

Hi everyone,

Does anyone in the community know of a way to enable either wifi or bluetooth (or both, why not) before a user logs in (in graphical mode)?
I am trying to implement a mechanism that uses a second device to send the credentials to the computer and does the authentication that way, but I need to find a way for the second device to be able to communicate with the first one.

Any, insights on the security problems are also welcome.

Thanks for your help!
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3134

PostPosted: Tue Nov 11, 2014 2:20 pm    Post subject: Reply with quote

That "early" access means "any time before user logs in", right? So.. that's exacly what init scripts are for. Simply configure uor networking to start automaticaly, there are at least 5 ways to do that, but what they have in common is:

1) You need a service that will configure your network
2) You add that service to default runlevel
Back to top
View user's profile Send private message
danmc
n00b
n00b


Joined: 11 Nov 2014
Posts: 3

PostPosted: Tue Nov 11, 2014 9:49 pm    Post subject: Reply with quote

Hi szatox,

yes the 'early access' means exactly that, anytime before the user logs in so it can actually be used to log in.

Thank you. I'm not sure how the implementation will go, but I am surprised that it can be handled so simply: init!!
Very elegant.
I wonder if systemd would offer something that simple?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Wed Nov 12, 2014 1:37 am    Post subject: Reply with quote

net-misc/connman can handle both connection types (even at the same time), and runs as a system service. That would likely be easier than trying to connect the bluetooth side manually.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3134

PostPosted: Wed Nov 12, 2014 8:23 pm    Post subject: Reply with quote

Well... I know several options for services making it work. Not sure if all of them provide systemd starting scripts, but they are more likely than netifrc :D

dhcpcd
wicd
networkmanager
hand-written file with commands you would use to configure your network after login, stuffed into /etc/init.d

Perhaps you are already using one of those. The trick would be limited to adding them to default runlevel. I can't help you with that part though, as I'm happy openrc user
oh, btw, I have also a service for bluetooth. Provided by package net-wireless/bluez. Gnome might provide something like that as well.
Back to top
View user's profile Send private message
danmc
n00b
n00b


Joined: 11 Nov 2014
Posts: 3

PostPosted: Wed Nov 12, 2014 10:30 pm    Post subject: Reply with quote

@ Ant P.
Thank you for the tool suggestion. It's great to know that at least one tool can handle both. Too start with, though I think I'll concentrating on wifi as it seems a lot simpler.

@ szatox
wow!! I've only heard of openrc, but never used, tried or seen anyone who used it.

I've had some experience with the three tools you list, so at least I'm not starting everything from scratch!!


Thank you all for your suggestions.
Anyone brave to comment on the security implications?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum