You are not logged in.
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
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
Welcome to the forum; enjoy the distro, solid effort by the dev team.
You must unlearn what you have learned.
-- yoda
Offline
Thanks!
Offline
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
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
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...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
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
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!
I don't care what you do at home. Would you care to explain?
Offline
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
^ 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