Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
List of some current Buster CLI WiFi commands?
List of some current Buster CLI WiFi commands?
I'm having real hard time trying to sort out a USB WiFi. Think I'm missing some of the needed to get it going.
Seems most of the searches I try pull up older commands that are not on my system.
Got to shutdown - another lighting storm coming.
Seems most of the searches I try pull up older commands that are not on my system.
Got to shutdown - another lighting storm coming.
- ruwolf
- Posts: 639
- Joined: 2008-02-18 05:04
- Location: Banovce nad Bebravou
- Has thanked: 40 times
- Been thanked: 28 times
Re: List of some current Buster CLI WiFi commands?
rfkill tool for enabling and disabling wireless devices
nmcli command-line tool for controlling NetworkManager
iw show / manipulate wireless devices and their configuration
iwconfig configure a wireless network interface
iwlist get more detailed wireless information from a wireless interface
iwspy get wireless statistics from specific nodes
iwpriv configure optionals (private) parameters of a wireless network interface
iwevent display wireless events generated by drivers and setting changes
nmcli command-line tool for controlling NetworkManager
iw show / manipulate wireless devices and their configuration
iwconfig configure a wireless network interface
iwlist get more detailed wireless information from a wireless interface
iwspy get wireless statistics from specific nodes
iwpriv configure optionals (private) parameters of a wireless network interface
iwevent display wireless events generated by drivers and setting changes
- sunrat
- Administrator
- Posts: 6470
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 117 times
- Been thanked: 474 times
Re: List of some current Buster CLI WiFi commands?
Drivers or firmware are the usual suspects for non-working wifi. Identify the chip in your device and search for solutions.DKCorl wrote:I'm having real hard time trying to sort out a USB WiFi. Think I'm missing some of the needed to get it going.
lsusb should show your device.
Example from mine:
Code: Select all
Bus 007 Device 002: ID 0cf3:7015 Qualcomm Atheros Communications TP-Link TL-WN821N v3 / TL-WN822N v2 802.11n [Atheros AR7010+AR9287]
In my case the driver is in the kernel but I needed to install firmware-atheros to get it working. Sometimes you need to find and build a driver as well. And occasionally you just need to get a different device. Lotsa luck!
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Re: List of some current Buster CLI WiFi commands?
Thanks for the info. The best that I can see is there is no wlan0 setup or loaded and so far I can't figure out why.ruwolf wrote:rfkill tool for enabling and disabling wireless devices
nmcli command-line tool for controlling NetworkManager
iw show / manipulate wireless devices and their configuration
iwconfig configure a wireless network interface
iwlist get more detailed wireless information from a wireless interface
iwspy get wireless statistics from specific nodes
iwpriv configure optionals (private) parameters of a wireless network interface
iwevent display wireless events generated by drivers and setting changes
Re: List of some current Buster CLI WiFi commands?
Thanks for the reply. The best I can see is the firmware is getting loaded. I have a raspberry pi zero that is based on Buster that is working perfect on WiFi so I have been comparing. Below are some commands and the output from both the pi and the desktop.sunrat wrote:Drivers or firmware are the usual suspects for non-working wifi. Identify the chip in your device and search for solutions.DKCorl wrote:I'm having real hard time trying to sort out a USB WiFi. Think I'm missing some of the needed to get it going.
lsusb should show your device.
Example from mine:Take the 8 numeral ID and search like "linux 0cf3:7015"Code: Select all
Bus 007 Device 002: ID 0cf3:7015 Qualcomm Atheros Communications TP-Link TL-WN821N v3 / TL-WN822N v2 802.11n [Atheros AR7010+AR9287]
In my case the driver is in the kernel but I needed to install firmware-atheros to get it working. Sometimes you need to find and build a driver as well. And occasionally you just need to get a different device. Lotsa luck!
pi@raspberrypi:~ $ sudo ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DORMANT group default qlen 1000
link/ether b8:27:eb:01:3f:a7 brd ff:ff:ff:ff:ff:ff
pi@raspberrypi:~ $
---
root@Buster:/home/dkc# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:d8:61:38:a2:92 brd ff:ff:ff:ff:ff:ff
3: wlx9cefd5fca3d6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
link/ether 96:aa:ad:08:86:da brd ff:ff:ff:ff:ff:ff
root@Buster:/home/dkc#
---
root@Buster:/home/dkc# lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 148f:5372 Ralink Technology, Corp. RT5372 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 1a2c:2124 China Resource Semico Co., Ltd
Bus 002 Device 002: ID 2188:0ae1
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@Buster:/home/dkc#
---
root@Buster:/home/dkc# dmesg | grep usbcore
[ 1.602783] usbcore: registered new interface driver usbfs
[ 1.602791] usbcore: registered new interface driver hub
[ 1.619438] usbcore: registered new device driver usb
[ 2.211694] usbcore: registered new interface driver usbhid
[ 11.828959] usbcore: registered new interface driver rt2800usb
root@Buster:/home/dkc#
---
[ 1.709428] [drm] Found VCE firmware/feedback version 40.2.2 / 15!
[ 20.033287] r8169 0000:01:00.0: firmware: direct-loading firmware rtl_nic/rtl8168g-2.fw
[ 20.194910] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[ 20.218653] rt2800usb 1-3:1.0: firmware: direct-loading firmware rt2870.bin
[ 20.218664] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.36
root@Buster:/home/dkc#
---
root@Buster:/home/dkc# ip link set wlan0 up
Cannot find device "wlan0"
root@Buster:/home/dkc#
----------------------------------------------------
pi@raspberrypi:~ $ sudo ls /proc/sys/net/ipv4/conf
all default lo wlan0
pi@raspberrypi:~ $
---
root@Buster:/home/dkc# ls /proc/sys/net/ipv4/conf
all default enp1s0 lo wlx9cefd5fca3d6
root@Buster:/home/dkc#
---
ip link set wlx9cefd5fca3d6 up
---
root@Buster:/home/dkc# ip link set wlx9cefd5fca3d6 up
root@Buster:/home/dkc#
---
root@Buster:/home/dkc# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:d8:61:38:a2:92 brd ff:ff:ff:ff:ff:ff
3: wlx9cefd5fca3d6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
link/ether 66:9f:31:89:b3:60 brd ff:ff:ff:ff:ff:ff
root@Buster:/home/dkc#
---
root@Buster:/home/dkc# nmcli device
DEVICE TYPE STATE CONNECTION
enp1s0 ethernet connected Wired connection 1
wlx9cefd5fca3d6 wifi disconnected --
lo loopback unmanaged --
root@Buster:/home/dkc#
---
root@Buster:/home/dkc# nmcli connection up wlx9cefd5fca3d6
Error: unknown connection 'wlx9cefd5fca3d6'.
root@Buster:/home/dkc#
-------------------------------------------
Looks like the wifi device on the desktop is called wlx9cefd5fca3d6 not wlan0 (don't know why) and it is disconnected (don't know why).
Re: List of some current Buster CLI WiFi commands?
Try this
Code: Select all
nmcli -a con up id wlx9cefd5fca3d6
Re: List of some current Buster CLI WiFi commands?
Found and ran some more commands with interesting results but still no WiFi. Also found iw and some other commands are not in the path and won't work unless I add /sbin.
---
root@Buster:/home/dkc# /sbin/iw wlx9cefd5fca3d6 scan
SSID: CoreDump
Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0
DS Parameter set: channel 3
ERP: Barker_Preamble_Mode
ERP D4.0: Barker_Preamble_Mode
RSN: * Version: 1
* Group cipher: CCMP
* Pairwise ciphers: CCMP
* Authentication suites: PSK
---
CoreDump is my router.
---
root@Buster:/home/dkc# /sbin/wpa_supplicant -B -D wext -i wlx9cefd5fca3d6 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
root@Buster:/home/dkc# /sbin/iw wlx9cefd5fca3d6 link
Connected to 58:6d:8f:74:3a:77 (on wlx9cefd5fca3d6)
SSID: CoreDump
freq: 2422
RX: 28928 bytes (524 packets)
TX: 400 bytes (4 packets)
signal: -29 dBm
rx bitrate: 1.0 MBit/s
tx bitrate: 1.0 MBit/s
bss flags: short-slot-time
dtim period: 1
beacon int: 100
root@Buster:/home/dkc#
---
root@Buster:/home/dkc# nmcli device
DEVICE TYPE STATE CONNECTION
enp1s0 ethernet connected Wired connection 1
wlx9cefd5fca3d6 wifi disconnected --
lo loopback unmanaged --
---
root@Buster:/home/dkc# /sbin/iw wlx9cefd5fca3d6 scan
SSID: CoreDump
Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0
DS Parameter set: channel 3
ERP: Barker_Preamble_Mode
ERP D4.0: Barker_Preamble_Mode
RSN: * Version: 1
* Group cipher: CCMP
* Pairwise ciphers: CCMP
* Authentication suites: PSK
---
CoreDump is my router.
---
root@Buster:/home/dkc# /sbin/wpa_supplicant -B -D wext -i wlx9cefd5fca3d6 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
root@Buster:/home/dkc# /sbin/iw wlx9cefd5fca3d6 link
Connected to 58:6d:8f:74:3a:77 (on wlx9cefd5fca3d6)
SSID: CoreDump
freq: 2422
RX: 28928 bytes (524 packets)
TX: 400 bytes (4 packets)
signal: -29 dBm
rx bitrate: 1.0 MBit/s
tx bitrate: 1.0 MBit/s
bss flags: short-slot-time
dtim period: 1
beacon int: 100
root@Buster:/home/dkc#
---
root@Buster:/home/dkc# nmcli device
DEVICE TYPE STATE CONNECTION
enp1s0 ethernet connected Wired connection 1
wlx9cefd5fca3d6 wifi disconnected --
lo loopback unmanaged --
Re: List of some current Buster CLI WiFi commands?
Thanks, I just tried it.L_V wrote:Try thisCode: Select all
nmcli -a con up id wlx9cefd5fca3d6
root@Buster:/home/dkc# nmcli -a con up id wlx9cefd5fca3d6
Error: unknown connection 'wlx9cefd5fca3d6'.
root@Buster:/home/dkc#
Re: List of some current Buster CLI WiFi commands?
I just checked again and the packet count has gone up a lot.
root@Buster:/home/dkc# /sbin/iw wlx9cefd5fca3d6 link
Connected to 58:6d:8f:74:3a:77 (on wlx9cefd5fca3d6)
SSID: CoreDump
freq: 2422
RX: 50455 bytes (707 packets)
TX: 13208 bytes (39 packets)
signal: -29 dBm
rx bitrate: 54.0 MBit/s
tx bitrate: 5.5 MBit/s
bss flags: short-slot-time
dtim period: 1
beacon int: 100
root@Buster:/home/dkc#
---
When I check my router client list I do not see the wifi connection from Buster.
root@Buster:/home/dkc# /sbin/iw wlx9cefd5fca3d6 link
Connected to 58:6d:8f:74:3a:77 (on wlx9cefd5fca3d6)
SSID: CoreDump
freq: 2422
RX: 50455 bytes (707 packets)
TX: 13208 bytes (39 packets)
signal: -29 dBm
rx bitrate: 54.0 MBit/s
tx bitrate: 5.5 MBit/s
bss flags: short-slot-time
dtim period: 1
beacon int: 100
root@Buster:/home/dkc#
---
When I check my router client list I do not see the wifi connection from Buster.
- sunrat
- Administrator
- Posts: 6470
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 117 times
- Been thanked: 474 times
Re: List of some current Buster CLI WiFi commands?
Try the solution in the last post here - https://forums.bunsenlabs.org/viewtopic.php?id=5032
Basically, check it's unblocked with rfkill and maybe disable MAC address randomisation.
Basically, check it's unblocked with rfkill and maybe disable MAC address randomisation.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
- ruwolf
- Posts: 639
- Joined: 2008-02-18 05:04
- Location: Banovce nad Bebravou
- Has thanked: 40 times
- Been thanked: 28 times
Re: List of some current Buster CLI WiFi commands?
wlx9cefd5fca3d6 is not their connection name, but device name.L_V wrote:Try thisCode: Select all
nmcli -a con up id wlx9cefd5fca3d6
Re: List of some current Buster CLI WiFi commands?
Looks like I'm going to have to take a break on getting WiFi working. Got as far as:
root@Buster:/home/dkc# nmcli device wifi list
IN-USE SSID MODE CHAN RATE SIGNAL BARS SECURITY
CoreDump Infra 3 54 Mbit/s 84 ▂▄▆█ WPA2
But when I run:
nmcli dev wifi con "CoreDump" password "mypassword"
I get an error:
Error: Connection activation failed: (53) The Wi-Fi network could not be found.
root@Buster:/home/dkc#
root@Buster:/home/dkc# nmcli device wifi list
IN-USE SSID MODE CHAN RATE SIGNAL BARS SECURITY
CoreDump Infra 3 54 Mbit/s 84 ▂▄▆█ WPA2
But when I run:
nmcli dev wifi con "CoreDump" password "mypassword"
I get an error:
Error: Connection activation failed: (53) The Wi-Fi network could not be found.
root@Buster:/home/dkc#
Re: List of some current Buster CLI WiFi commands?
If you really don't have any GUI layer installed (plasma-nm for KDE) to make things easier, you can use nmtui which is the n-curses application of network-manager, and should clarify.
Re: List of some current Buster CLI WiFi commands?
Update - got it working. Perhaps because I installed using the smaller CD image instead of the DVD or Net-install and or because there was no WiFi adapter installed in the computer when I first installed Buster I had no front end to the network-manager. Tried to bring up the WiFi adapter using the nmcli from root in a terminal but could not get the syntax correct. It was only after I installed WICD, unplugged the wired Ethernet and forced WICD to connect to my WiFi router that I got it to work.
BTW - I did think the Panda PAU05 was supported by linux. The listing on amazon said over and over it was but it does use the non-free firmware. Will cross post this in the other post I started on WiFi.
Thanks for all the help and ideas
BTW - I did think the Panda PAU05 was supported by linux. The listing on amazon said over and over it was but it does use the non-free firmware. Will cross post this in the other post I started on WiFi.
Thanks for all the help and ideas