You are not logged in.

#1 2019-07-19 20:24:58

sky00
Member
Registered: 2019-07-19
Posts: 6

WiFi without NetworkManager possible?

Can I use the ip or ifconfig commands to connect to a router via wifi on a laptop.

Is it possible to do this without using NetworkManager?

Offline

#2 2019-07-19 22:02:46

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,089

Re: WiFi without NetworkManager possible?

Yes, you can do it with wpa_supplicant (I think the debian package is wpasupplicant) and, if you want, systemd-networkd.

The man page for wpasupplicant is pretty thorough; and the ArchWiki has a write up for both wpasupplicant and systemd-networkd. Search the forum, both have been discussed here so there may be an example for you to use as a guide.

The NetworkManager service needs to be disabled in order for either to work.

Last edited by PackRat (2019-07-19 22:03:32)


You must unlearn what you have learned.
    -- yoda

Offline

#3 2019-07-19 22:04:28

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,089

Re: WiFi without NetworkManager possible?

Welcome to the forum; enjoy the distro, solid effort by the dev team.


You must unlearn what you have learned.
    -- yoda

Offline

#4 2019-07-19 23:30:04

sky00
Member
Registered: 2019-07-19
Posts: 6

Re: WiFi without NetworkManager possible?

Thanks!

Offline

#5 2019-07-19 23:34:06

sky00
Member
Registered: 2019-07-19
Posts: 6

Re: WiFi without NetworkManager possible?

So this is what works.

I install cmst and connman. Make some adjustments in the autostart file for cmst.

Then I make sure that none of the following are installed:

iproute2
NetworkManager
dhclient
net-tools
nm-applet


Reboot and WiFi works as it should.

Last edited by sky00 (2019-07-19 23:34:41)

Offline

#6 2019-07-19 23:37:32

sky00
Member
Registered: 2019-07-19
Posts: 6

Re: WiFi without NetworkManager possible?

Is still wonder if it is possible to manage a WiFi connection with ip or ifconfig.

(Neither are installed right but busybox has both ip and ifconfig.)

Last edited by sky00 (2019-07-20 02:07:17)

Offline

#7 2019-07-20 08:34:50

damo
....moderator....
Registered: 2015-08-20
Posts: 5,059

Re: WiFi without NetworkManager possible?

You could read the Debian wiki? Chapter 5. Network setup.

Or the ArchWiki: Wireless network configuration

(Both wikis are linked from Menu -> Help & Resources)


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#8 2019-07-20 13:35:13

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,089

Re: WiFi without NetworkManager possible?

Is still wonder if it is possible to manage a WiFi connection with ip or ifconfig.

I don't think so (on their own anyway), since neither scans for networks or has an option to enter the passphrase. The configuration for your wireless can be entered into /etc/network/interfaces file, but you still need wpasupplicant and wireless-tools.

I install cmst and connman.

That's actually what I use.

Last edited by PackRat (2019-07-20 13:42:59)


You must unlearn what you have learned.
    -- yoda

Offline

#9 2019-07-20 19:01:49

hhh
Meep!
Registered: 2015-09-17
Posts: 8,324
Website

Re: WiFi without NetworkManager possible?

Another option is to use siduction's ceni package, it let's you control wpa_spullicant via an ncurses terminal (you can mouse click the terminal options)...

https://packages.debian.org/buster/ceni

Only buster and after so far, but this package is easily backported. I bet stevep already has it for stretch on the MX repo. Yes, here it is...

http://mxrepo.com/mx/repo/pool/main/c/ceni/

Oh, look at that, we backported it for hydrogen, I had forgotten!

https://repology.org/project/ceni/versions

Offline

#10 2019-07-25 06:15:25

sky00
Member
Registered: 2019-07-19
Posts: 6

Re: WiFi without NetworkManager possible?

Yeah...

Cant really manage WiFi with ip and ifconfig alone.

For now cmst and connman are working well on my install.

Thanks hhh! Will take a look at that this weekend when I get some time.

Offline

#11 2019-07-25 08:16:06

earlybird
ほやほや
Registered: 2015-12-16
Posts: 717
Website

Re: WiFi without NetworkManager possible?

This thread looks finished, however I think netctl should also be mentioned: https://wiki.archlinux.org/index.php/Netctl (which is in Debian only in the unstable distribution, but could be easily backported since it's just Bash scripts and Systemd service units).

It's a network managing tool that instruments wpa_supplicant, DHCP clients, wifi-menu and the Linux routing/networking utilities to manage network connections. It's profile-based (for example, you could have multiple config files for Wireless networks at different locations) but it also is not entirely static but supports wifi roaming.

Last time I looked, it didn't use systemd-networkd (which is another approach to profile-based network management).

Offline

#12 2019-08-04 17:04:19

ohnonot
...again
Registered: 2015-09-29
Posts: 3,911
Website

Re: WiFi without NetworkManager possible?

^ I've been using netctl's curses-based wifi-menu exclusively on my last laptop. It does the job. I hope it was easily available for debian-based distros.

Offline

Board footer

Powered by FluxBB