help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Which usb wi-fi adapter from those to choose?


From: znavko
Subject: Re: Which usb wi-fi adapter from those to choose?
Date: Sat, 21 Mar 2020 18:28:58 +0000

Thank you, Efraimm Flashner, thank you very much!!
This Wi-Fi USB adapter works on OS Guix!

"WTXUP for Atheros AR9271 150Mbps 802.11n Wireless WiFi USB Adapter Wi Fi 
Dongle internal Antenna Soft AP for Windows7/8/10/Linux"

I have bought this one too. And Guix works with it this way:


====step 1. get info about new hardware========

# ifconfig -a
enp3s0 Link encap:Ethernet HWaddr ee:tt:ee:tt:ee:tt
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0

lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:0.0.0.0 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0

wlp0s29u1u2Link encap:Ethernet HWaddr pp:ii:pp:ii:pp:ii
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0

wlp2s0 Link encap:Ethernet HWaddr xx:pp:xx:pp:pp
inet addr:192.168.1.70 Bcast:192.168.1.255 Mask:255.255.255.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:157 errors:0 dropped:0 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:49195 TX bytes:2254

# rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no


# lsusb
Bus 001 Device 006: ID 5986:0652 Acer, Inc
Bus 001 Device 004: ID 0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n
Bus 001 Device 008: ID 0cf3:3004 Qualcomm Atheros Communications AR3012 
Bluetooth 4.0
Bus 001 Device 003: ID 248a:8367 Maxxter
Bus 001 Device 007: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card 
Reader Controller
Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 8087:07e6 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group 
default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state 
DOWN group default qlen 1000
link/ether ee:tt:ee:tt:ee:tt brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP 
group default qlen 1000
link/ether xx:pp:xx:pp:pp brd ff:ff:ff:ff:ff:ff
inet 192.168.1.70/24 brd 192.168.1.255 scope global wlp2s0
valid_lft forever preferred_lft forever
inet6 qq:cc:qq:cc:qq:cc/64 scope link
valid_lft forever preferred_lft forever
4: wlp0s29u1u2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state 
DOWN group default qlen 1000
link/ether xx:ii:xx:ii:xx:ii brd ff:ff:ff:ff:ff:ff




~# lspci -k
00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC 
Transaction Register (rev 0e)
Subsystem: Lenovo Device 3905
Kernel driver in use: iosf_mbi_pci
00:02.0 VGA compatible controller: Intel Corporation Atom Processor 
Z36xxx/Z37xxx Series Graphics & Display (rev 0e)
Subsystem: Lenovo Device 3905
Kernel driver in use: i915
Kernel modules: i915
00:13.0 SATA controller: Intel Corporation Atom Processor E3800 Series SATA 
AHCI Controller (rev 0e)
Subsystem: Lenovo Device 3905
Kernel driver in use: ahci
Kernel modules: ahci
00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx 
Series Trusted Execution Engine (rev 0e)
Subsystem: Lenovo Device 3905
00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series 
High Definition Audio Controller (rev 0e)
Subsystem: Lenovo Device 3905
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express 
Root Port 1 (rev 0e)
Kernel driver in use: pcieport
00:1c.2 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express 
Root Port 3 (rev 0e)
Kernel driver in use: pcieport
00:1c.3 PCI bridge: Intel Corporation Atom Processor E3800 Series PCI Express 
Root Port 4 (rev 0e)
Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series 
USB EHCI (rev 0e)
Subsystem: Lenovo Device 3905
Kernel driver in use: ehci-pci
00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power 
Control Unit (rev 0e)
Subsystem: Lenovo Device 3905
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich
00:1f.3 SMBus: Intel Corporation Atom Processor E3800 Series SMBus Controller 
(rev 0e)
Subsystem: Lenovo Device 3905
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
02:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network 
Adapter (rev 01)
Subsystem: Lenovo Device 4026
Kernel driver in use: ath9k
Kernel modules: ath9k
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 
PCI Express Gigabit Ethernet Controller (rev 10)
Subsystem: Lenovo Device 3816
Kernel driver in use: r8169
Kernel modules: r8169



# lshw -C network
*-network
description: Wireless interface
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlp2s0
version: 01
serial:xx:pp:xx:pp:xx:pp
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical 
wireless
configuration: broadcast=yes driver=ath9k driverversion=5.2.6-gnu firmware=N/A 
ip=192.168.1.70 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:18 memory:90500000-9057ffff memory:90580000-9058ffff
*-network
description: Ethernet interface
physical id: 0
bus info: pci@0000:03:00.0
logical name: enp3s0
version: 10
serial: ee:tt:ee:tt:ee:tt
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical 
tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 latency=0 link=no 
multicast=yes port=MII
resources: irq:19 ioport:1000(size=256) memory:90404000-90404fff 
memory:90400000-90403fff
*-network
description: Wireless interface
physical id: 3
bus info: usb@1:1.2
logical name: wlp0s29u1u2
serial: xx:ii:xx:ii:xx:ii
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=ath9k_htc driverversion=5.2.6-gnu 
firmware=1.4 link=no multicast=yes wireless=IEEE 802.11



====step 2. then I go to wi-fi Admin Panel to add new device and its MAC to 
permit access=======

192.168.1.1 or so


====step 3. stop my usual networking services:=======
# herd stop networking
Service networking has been stopped.
# herd stop wpa-supplicant
Service wpa-supplicant has been stopped.


====step 4. run wi-fi through wi-fi usb adapter=======

# ifconfig wlp0s29u1u2 up
wlp0s29u1u2Link encap:Ethernet  HWaddr xx:ii:xx:ii:xx:ii
          inet addr:192.168.1.68  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0  TX bytes:0

# wpa_supplicant -B -i wlp0s29u1u2 -c /etc/wpa_supplicant/wpa_supplicant.conf 
Successfully initialized wpa_supplicant

# dhclient -v wlp0s29u1u2
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlp0s29u1u2/xx:ii:xx:ii:xx:ii
Sending on   LPF/wlp0s29u1u2/xx:ii:xx:ii:xx:ii
Sending on   Socket/fallback
DHCPREQUEST for 192.168.1.68 on wlp0s29u1u2 to 255.255.255.255 port 67
DHCPACK of 192.168.1.68 from 192.168.1.1
RTNETLINK answers: File exists
bound to 192.168.1.68 -- renewal in 9833 seconds.

# ping gnu.org
PING gnu.org (209.51.188.148): 56 data bytes
64 bytes from 209.51.188.148: icmp_seq=0 ttl=54 time=163.508 ms
64 bytes from 209.51.188.148: icmp_seq=1 ttl=54 time=156.208 ms
64 bytes from 209.51.188.148: icmp_seq=2 ttl=54 time=160.967 ms
64 bytes from 209.51.188.148: icmp_seq=3 ttl=54 time=159.798 ms
64 bytes from 209.51.188.148: icmp_seq=4 ttl=54 time=159.590 ms
64 bytes from 209.51.188.148: icmp_seq=5 ttl=54 time=155.737 ms
^C--- gnu.org ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max/stddev = 155.737/159.301/163.508/2.679 ms
PING 3 (0.0.0.3): 56 data bytes
ping: sending packet: Invalid argument



then I can add this configuration in my Guix config and reconfigure system.
I can change the value of 'interface' to wlp0s29u1u2 insted of wlp2s0 as it is 
now in 'wpa-supplicant-service-type' in 'operating system' in my config.scm


# cat /etc/config.scm
...
(operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale 
"en_US.utf8")
                  (bootloader (bootloader-configuration (bootloader 
grub-bootloader) (target "/dev/sda")))
                  (file-systems (cons (file-system (device "/dev/sda1") 
(mount-point "/") (type "ext4")) %base-file-systems))
                  (swap-devices '("/dev/sda2"))

                  (users (cons* (user-account (name "bob") (group "users")
                                              (supplementary-groups '("wheel" 
"netdev" "audio" "video"))
                                              (home-directory "/home/bob"))
                                (user-account (name "mom") (group "users")
                                              (supplementary-groups '("wheel" 
"netdev" "audio" "video"))
                                              (home-directory "/home/mom"))
                                %base-user-accounts))

                  ;; This is where we specify system-wide packages.
                  (packages (cons* nss-certs ;for HTTPS access
                                   gvfs      ;for user mounts
                                   wpa-supplicant
                                   %base-packages))

                  (services (cons* 
                             (service xfce-desktop-service-type)
                             (service dhcp-client-service-type)
                             (service slim-service-type
                                      (slim-configuration
                                        ;;(auto-login? #t)
                                        ;;(default-user "g")
                                        (xorg-configuration
                                         (xorg-configuration
                                          (extra-config  
                                           '("Section \"InputClass\"
Identifier \"touchpad\"
Driver \"libinput\"
MatchIsTouchpad \"on\"
Option \"Tapping\" \"on\"
EndSection")
                                           ))))
                                      )

                             (modify-services      
                              (remove (lambda (service)
                                        (member (service-kind service)
                                                (list ntp-service-type 
avahi-service-type 
                                                      bluetooth-service 
network-manager-service-type
                                                      gdm-service-type)))
                                      %desktop-services) ;end of remove lambda 
services

                              (wpa-supplicant-service-type config =>
                                                           
(wpa-supplicant-configuration
                                                            (interface 
"wlp0s29u1u2")
                                                            (config-file 
"/etc/wpa_supplicant/wpa_supplicant.conf")))

                              (elogind-service-type
                               c => (elogind-configuration (handle-lid-switch 
'ignore)))
                              ) ;;end of modify-services
                             )) ;;end of services

                  ;; Allow resolution of '.local' host names with mDNS.
                  (name-service-switch %mdns-host-lookup-nss)

                  ;;blacklist ugly sound speaker, blacklist ideapad_laptop for 
prevent soft blocking wlan
                  (kernel-arguments 
'("modprobe.blacklist=pcspkr,snd_pcsp,bluetooth,ideapad_laptop"))

                  ) ;;end of operating-system




Ok.
Good luck!



February 20, 2020 7:46 AM, "Efraim Flashner" <address@hidden> wrote:

> This is the one I bought:
> 
> https://www.aliexpress.com/item/32660160220.html?spm=a2g0s.9042311.0.0.27424c4dfQNlEM
> 
> On Thu, Feb 20, 2020 at 04:33:16AM +0000, address@hidden wrote:
> 
>> Hello! I want to buy usb wifi-adapter for PC. I've discovered that RYF 
>> recommends only devices from
>> abroad webshops, but I cannot order from there, cause there is no guarantee 
>> their services are good
>> and clean (RYF certifies only devices but not vendors and their services, I 
>> know).
>> 
>> I want to buy in my city from Russian webshop. Please, let me know which 
>> device from those I can
>> use under Guix:
>> https://www.dns-shop.ru/catalog/17a9eac716404e77/adaptery-wi-fi
>> 
>> There are no Atheros.
>> 
>> Only Asus, DEXP, Zyxel, Intel, TP-Link, D-Link, Tenda, Xiami.
>> 
>> Can I run something without any additional drivers compilations, just typing 
>> 'ifconfig wlp2s0 up &&
>> wpa_supplicant -B -i wlp2s0 -c w.conf && dhclient -v wlp2s0' ???
> 
> --
> Efraim Flashner <address@hidden> אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted



reply via email to

[Prev in Thread] Current Thread [Next in Thread]