LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 07-06-2020, 11:13 PM   #1
resolver
Member
 
Registered: Jun 2020
Posts: 61

Rep: Reputation: Disabled
Wifi network connection not automatically starting


Hi all,
I installed Slackware ARM on the Rpi4, and I have a conundrum:
The network connection doesn't start automatically even though the info is in /etc/NetworkManager/system-connections.
As a result, I can't obtain the time and DNS doesn't work.
When I log in as any user and start X, the connection starts but the network time isn't fetched.
So I have to log in as root, run ntpdate and get the time.
Then go back to X and use it.
Question: Is it expected that the Wifi won't automatically start during boot-up? I don't have Ethernet to connect to.
 
Old 07-07-2020, 02:49 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,818

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Quote:
The network connection doesn't start automatically even though the info is in /etc/NetworkManager/system-connections.
How is it configured though? Examine the config file and make sure it is configured to connect automatically. Specifically, make sure that 'autoconnect=false' is not present...

https://developer.gnome.org/NetworkM...-settings.html
https://developer.gnome.org/NetworkM...s-keyfile.html
 
Old 07-07-2020, 02:54 AM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,818

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Also, as per this thread, make sure that "All users may connect to this network" is slected for this connection.
 
Old 07-07-2020, 10:01 AM   #4
resolver
Member
 
Registered: Jun 2020
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
How is it configured though?
This is the new one that is almost working well. It seems to connect eventually, usually after I've logged in, but it never uses NTP to get the current time.
Code:
[connection]
id=FunnyOne
autoconnect=true
uuid=11111111-1121-e01a-7964-044e021d3111
type=wifi
interface-name=wlan0
permissions=user:me:;user:root

[wifi]
mac-address-blacklist=
mode=infrastructure
ssid=FunnyOne

[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
psk=monkey123

[ipv4]
dns-search=9.9.9.9 1.1.1.1
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=9.9.9.9 1.1.1.1
method=auto

[proxy]
When the system boots up and I log in as root, if I type iwconfig wlan0 essid FunnyOne,
it will give an error saying connection is already in progress.
 
Old 07-07-2020, 10:15 AM   #5
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@resolver

You could go for the standard Slackware "way" to do the WiFi connection by using its init scripts. Disable NetworkManager, stop it and remove the executable bit from /etc/rc.d/rc.networkmanager
Info:
https://docs.slackware.com/slackbook:wifi
A little more detailed:
https://wiki.alienbase.nl/doku.php?i...eless_networks
 
Old 07-07-2020, 02:28 PM   #6
resolver
Member
 
Registered: Jun 2020
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by abga View Post
@resolver

You could go for the standard Slackware "way" to do the WiFi connection by using its init scripts. Disable NetworkManager, stop it and remove the executable bit from /etc/rc.d/rc.networkmanager
Info:
https://docs.slackware.com/slackbook:wifi
A little more detailed:
https://wiki.alienbase.nl/doku.php?i...eless_networks
Maybe I should, because even though NetworkManager is supposed to be executing scripts in its dispatch.d directory (according to posts here and the manual page), after much experimentation, I'm finding those are definitely not getting executed.
 
Old 07-07-2020, 09:03 PM   #7
eduardr
Member
 
Registered: Sep 2011
Distribution: Slackware64 14.2+ (-current)
Posts: 110

Rep: Reputation: Disabled
NetworkManager has been working fine for me on Rpi's 3 and 4.

You could try removing and re-adding the connection in nmtui command line interface:

$ nmtui

"Edit a connection" -> Select the wifi connection and <Delete>
Then <Back>
Then "Activate a connection"
Select the connection and <Activate>
Enter wifi password
 
Old 07-07-2020, 11:22 PM   #8
resolver
Member
 
Registered: Jun 2020
Posts: 61

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by eduardr View Post
$ nmtui
Wow, thanks for that tip. It's mostly working now except for NTP.
 
Old 07-07-2020, 11:35 PM   #9
eduardr
Member
 
Registered: Sep 2011
Distribution: Slackware64 14.2+ (-current)
Posts: 110

Rep: Reputation: Disabled
Great for NTP suggest to disable any manual hacks in rc.local or otherwise, and just
$ chmod a+x /etc/rc.d/rc.ntpd; /etc/rc.d/rc.ntpd start
Should take care of any ntp issues.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 20LTS dual boot Laptop Dell Inspiron 5548 I can not turn on wifi and in wifi settings indicates no wifi device was found Shra94 Linux - Hardware 1 05-19-2020 04:22 PM
Wifi option is there but no wifi scanning or wifi not working Aakash447 Linux - Newbie 3 06-28-2018 11:48 PM
Want to share my wifi by creating a wifi hotspot ( While staying connected to wifi)? shadyXV Linux - Desktop 4 07-20-2015 05:37 PM
When Centos 6.3 starting,All services starting OK and starting Atd: OK .And stop scr. DeSouffle Linux - General 4 08-29-2013 12:46 AM
[SOLVED] Starting File System .. Starting File System .. Starting File System .. Starting File rmknox Linux - Newbie 3 08-15-2010 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 03:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration