The officially official Devuan Forum!

You are not logged in.

#1 2017-06-07 07:05:57

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

No Internet (wlan0) after boot of PC

Hello,

This question might be maybe look very simple, but actually I can find no further ideas.

On my raspberry PI3 with Debian, I have :

auto lo                          
iface lo inet loopback
auto wlan0
iface wlan0 inet manual
wpa-roam /etc/network/wifi.conf

(wlp1s0 on debian,
wlan0 on devuan)

After boot, the PI3 with Debian gives me internet each times after boot (power on).

After boot, the PI3 with DEVUAN gives me no internet each time. Each time, sudo su, and I need to do : dhclient -v wlan0

Both machines have same config above.

How to get internet on devuan automatically without dhclient from root each time?

thank you and looking forward to reading you.

Offline

#2 2017-06-07 10:18:52

lazlo
Member
From: the Top Left of the Noosphere
Registered: 2017-05-15
Posts: 31  

Re: No Internet (wlan0) after boot of PC

Try changing the "iface wlan0" line to:

iface wlan0 inet dhcp

Leave the rest like it is.

Edit:  I think that should do it.  I think the reason Debian is overriding /etc/network/interfaces is because it is using NetworkManager.



lazlo

Last edited by lazlo (2017-06-07 10:20:39)

Offline

#3 2017-06-08 00:33:18

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

Re: No Internet (wlan0) after boot of PC

it didn't work.

Due wpa-roam, the use of dhcp is not possible.


edit: wow!
after 2 millions of reboot, I found out what is the way to make it work after reboot....
You wanna know maybe wink wink  ?


it seems to work... in study

Last edited by spartrekus (2017-06-08 06:01:54)

Offline

#4 2017-06-08 06:22:48

ralph.ronnquist
Administrator
From: Clifton Hill, Victoria, AUS
Registered: 2016-11-30
Posts: 550  

Re: No Internet (wlan0) after boot of PC

It seems that in February last year, there was a bug report for ifupdown on Ubuntu's "launchpad", with discussion and fix to something that sounds like your particular problem.  One way to verify would be if you can find the same error line

ifup: recursion detected for parent interface wlan0 in post-up phase

in /var/log/syslog, and if so, you should make a bug report to Devuan's BTS.

You might also want to compare the versions of ifupdown and wpasupplicant on your two systems; especially if they are respectively the same, it would talk against having that problem.

Offline

#5 2017-06-08 15:59:17

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

Re: No Internet (wlan0) after boot of PC

Here is procedure on Devuan! It is really stable for far on the DEVUAN Raspberry PI3.
I am glad it works, because of the the following:

"Internet !" What to do without Internet today?
wink
https://www.youtube.com/watch?v=ArHOzziiXiI


# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
# interfaces(5) file used by ifup(8) and ifdown(8)
# # interfaces(5) file used by ifup(8) and ifdown(8)
# 


# The loopback network interface
auto lo wlan0 

iface lo inet loopback
iface wlan0 inet dhcp  
wpa-conf /etc/network/wifi-config.conf

the trick is NOT to use allow-hotplug, but to add dhcp and to avoid roaming !
Instead is conf must reliable to be used.

It works on both platforms that have deb, namely Debian and Devuan, but also on Slackware.
Ubuntu?? who care about Ubuntu? Who really wants a slow, shinning, flashing, with gold window decoration, silver shinning menus, amazing animation, turning pseudo 3d desktops, amazing bubble, sound, ...  desktop (operating system) ?;)
Why not keeping a desktop just simple and ugly (dwm, evilwm, jwm,...)?

Last edited by spartrekus (2017-06-08 16:20:53)

Offline

#6 2017-06-08 16:38:43

golinux
Administrator
Registered: 2016-11-25
Posts: 2,180  

Re: No Internet (wlan0) after boot of PC

"Instead is conf must reliable to be used."  What?  Not getting it . . .

Online

#7 2017-06-08 19:34:48

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

Re: No Internet (wlan0) after boot of PC

golinux wrote:

"Instead is conf must reliable to be used."  What?  Not getting it . . .


I had tried several wpa-XXXX things.

The best is definitely this line: wpa-conf /etc/network/wifi-home.conf
in other words :    " wpa-conf"

Offline

#8 2017-06-13 16:42:49

kemu
Member
Registered: 2017-06-13
Posts: 2  

Re: No Internet (wlan0) after boot of PC

@spartrekus - thank you for the procedure on Devuan. internet... finally! wink

Offline

#9 2017-06-15 08:00:25

donpine
Member
From: Marshall, IL USA
Registered: 2017-06-15
Posts: 2  

Re: No Internet (wlan0) after boot of PC

I thought I'd offer a follow-up to spartrekus' hint to enable wireless on the Pi3:

There are examples in /usr/share/doc/wpasupplicant/examples .  I copied wpa-psk-tkip.conf to /etc/network/homewifi.txt and edited for SSID and passphrase.
So my /etc/network/interfaces includes:

auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/network/homewifi.txt

Although ifconfig would show wlan0, I couldn't get wicd-curses to recognize the interface.  The edit to /etc/network/interfaces was the only way I could get wireless to work.  I even tried disabling networking and replacing with the wicd daemon to no avail.  But this method gives me wireless.

Offline

#10 2017-06-26 18:15:55

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

Re: No Internet (wlan0) after boot of PC

kemu wrote:

@spartrekus - thank you for the procedure on Devuan. internet... finally! wink

why finally? no entendo

Offline

#11 2017-06-27 08:25:07

kemu
Member
Registered: 2017-06-13
Posts: 2  

Re: No Internet (wlan0) after boot of PC

spartrekus wrote:
kemu wrote:

@spartrekus - thank you for the procedure on Devuan. internet... finally! wink

why finally? no entendo

don't worry, just an 'affirmative' to your

"Internet !" What to do without Internet today?

... that's all.
enjoy!

Offline

#12 2017-06-30 05:30:41

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

Re: No Internet (wlan0) after boot of PC

kemu wrote:
spartrekus wrote:
kemu wrote:

@spartrekus - thank you for the procedure on Devuan. internet... finally! wink

why finally? no entendo

don't worry, just an 'affirmative' to your

"Internet !" What to do without Internet today?

... that's all.
enjoy!


It wasn't ddifficult to make, just test and try...

But why shall it not be already on some wikis? either outdated wikis or ... .no one really know how to configure the beast..?

Offline

Board footer