LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-05-2017, 11:35 AM   #1
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 325

Rep: Reputation: Disabled
How do I configure a wireless USB card to connect to my network?


I am having a tech from my local computer shoppe coming to my house a week from now to install a new graphics card as I lack the confidence to do it myself. This will require that this computer be moved from my in-home office to the living room where there is room to perform this particular hardware installation. The living room is far out of range for my normal wired network connection, so I'm using a wireless USB adapter that I already had. I'm having great difficulty in configuring it though.

Code:
root@caitlyn:~# reset;dmesg | grep usb
.
.
.
[2763384.793549] usb 2-8: new high-speed USB device number 29 using xhci_hcd
[2763384.974987] usb 2-8: New USB device found, idVendor=07d1, idProduct=3c0a
[2763384.974993] usb 2-8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[2763384.974997] usb 2-8: Product: 11n Adapter
[2763384.975000] usb 2-8: Manufacturer: Ralink
[2763384.975003] usb 2-8: SerialNumber: 1.0
[2763385.715699] usb 2-8: reset high-speed USB device number 29 using xhci_hcd
[2763385.901177] usbcore: registered new interface driver rt2800usb
I modprobed rt2800usb, which succeeded. Then I looked at iwconfig:
Code:
root@caitlyn:~# iwconfig
lo        no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          
eth0      no wireless extensions.
How do I send my router PIN to authenticate to the router from this wireless adapter?
 
Old 05-05-2017, 11:49 AM   #2
v3g4n
LQ Newbie
 
Registered: Mar 2017
Distribution: Slackware
Posts: 18

Rep: Reputation: 3
Start NetworkManager and input your credentials.

Does your wireless see your router?
Code:
iwlist wlan0 scan
 
Old 05-05-2017, 12:00 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,027

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Network Manager is, by far, the easiest method to manage wireless networks in Slackware (and most Linux distros). You will need to make /etc/rc.d/rc.networkmanager executable (chmod +x /etc/rc.d/rc.networkmanager) and then start it (/etc/rc.d/rc.networkmanager start). Once that is done, you should be able to connect to a wireless network using the nm-applet that is likely in your systray of your desktop.
 
Old 05-05-2017, 01:29 PM   #4
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 325

Original Poster
Rep: Reputation: Disabled
I did that stuff and got a connection, but the IP address assigned didn't work for me, and when I set a LAN IP address that I thought WOULD work, it didn't. My eth0 address is 192.168.0.2. I assigned 192.168.0.3 through the applet, but I couldn't ping anything in the terminal. I couldn't access any internet sites until after I ran /etc/rc.d/rc.inet1 restart. This is my current setup:

Code:
root@caitlyn:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.2  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::5b62:6eb0:606c:5ef4  prefixlen 64  scopeid 0x20<link>
        ether 9c:5c:8e:87:d3:9e  txqueuelen 1000  (Ethernet)
        RX packets 14111551  bytes 19420021427 (18.0 GiB)
        RX errors 0  dropped 919  overruns 0  frame 0
        TX packets 9850255  bytes 926356136 (883.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 1415  bytes 6763419 (6.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1415  bytes 6763419 (6.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.3  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::6737:c8bd:b80b:74b0  prefixlen 64  scopeid 0x20<link>
        ether b0:c5:54:bc:9e:51  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 120  bytes 9328 (9.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@caitlyn:~#
I disconnected from the wired connection within the applet and still couldn't get to any remote sites. Why is this?
 
Old 05-05-2017, 01:38 PM   #5
v3g4n
LQ Newbie
 
Registered: Mar 2017
Distribution: Slackware
Posts: 18

Rep: Reputation: 3
What do you mean by this?
Quote:
I did that stuff and got a connection, but the IP address assigned didn't work for me
Did your wireless connect and then disconnect? If so try changing dhcpcd to dhclient in /etc/NetworkManager/conf.d/00-dhcp-client.conf. Before I made this change my wireless would go in a loop of connecting and disconnecting. After you make the change restart NetworkManager.
Code:
/etc/rc.d/rc.networkmanager restart
 
Old 05-05-2017, 02:03 PM   #6
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 325

Original Poster
Rep: Reputation: Disabled
To v3gn4:
Code:
root@caitlyn:~# iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 1C:49:7B:21:80:06
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=25/70  Signal level=-85 dBm  
                    Encryption key:on
                    ESSID:"MOTOROLA-4B1A6"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000000a1721374aa
                    Extra: Last beacon: 1110ms ago
                    IE: Unknown: 000E4D4F544F524F4C412D3442314136
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030101
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: 2D1ABC181BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1601081500000000000000000000000000000000000000
                    IE: Unknown: DD830050F204104A0001101044000102103B000103104700106B69505BF83BED34F1136E1008D23A8C102100084D6F746F726F6C61102300084D6F746F726F6C611024000631323334353610420007303030303030311054000800060050F20400011011000A4D6F746F726F6C614150100800022008103C0001011049000600372A000120
                    IE: Unknown: DD090010180202000C0000
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
          Cell 02 - Address: 20:10:7A:9A:B7:7D
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=70/70  Signal level=-25 dBm  
                    Encryption key:on
                    ESSID:"espersunited.com"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000000a168a92463
                    Extra: Last beacon: 24ms ago
                    IE: Unknown: 0010657370657273756E697465642E636F6D
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030101
                    IE: Unknown: 2A0104
                    IE: Unknown: 2F0104
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: 2D1ABC181BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1601081500000000000000000000000000000000000000
                    IE: Unknown: DD830050F204104A0001101044000102103B000103104700104363A18674F6C5814B717B6A566DB19D102100084D6F746F726F6C61102300084D6F746F726F6C611024000631323334353610420007303030303030311054000800060050F20400011011000A4D6F746F726F6C614150100800022008103C0001011049000600372A000120
                    IE: Unknown: DD090010180201000C0000
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
          Cell 03 - Address: 30:60:23:9B:0A:50
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=17/70  Signal level=-93 dBm  
                    Encryption key:on
                    ESSID:"ATT944"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=00000059b1879183
                    Extra: Last beacon: 2395ms ago
                    IE: Unknown: 0006415454393434
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030101
                    IE: Unknown: 050401030000
                    IE: Unknown: 2A0104
                    IE: Unknown: 2F0104
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: 2D1A7C181FFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1601081500000000000000000000000000000000000000
                    IE: Unknown: DD090010180202F02C0000
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
          Cell 04 - Address: D4:04:CD:7A:8F:20
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=17/70  Signal level=-93 dBm  
                    Encryption key:on
                    ESSID:"ATT5t9a7Y9"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=00000036b0a5a2c4
                    Extra: Last beacon: 1370ms ago
                    IE: Unknown: 000A41545435743961375939
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030101
                    IE: Unknown: 050400030000
                    IE: Unknown: 2A0104
                    IE: Unknown: 2F0104
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: 2D1AFC191FFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1601081500000000000000000000000000000000000000
                    IE: Unknown: DD0E0050F204104A0001101044000102
                    IE: Unknown: DD090010180203F02C0000
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
          Cell 05 - Address: D6:04:CD:7A:8F:21
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=17/70  Signal level=-93 dBm  
                    Encryption key:on
                    ESSID:"ATT5t9a7Y9_Guest"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=00000036b09de1ab
                    Extra: Last beacon: 1879ms ago
                    IE: Unknown: 0010415454357439613759395F4775657374
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030101
                    IE: Unknown: 050402030000
                    IE: Unknown: 2A0104
                    IE: Unknown: 2F0104
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: 2D1AFC191FFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1601081100000000000000000000000000000000000000
                    IE: Unknown: DD090010180200F02C0000
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
          Cell 06 - Address: 56:3E:D8:03:62:6A
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=70/70  Signal level=0 dBm  
                    Encryption key:on
                    ESSID:"espersunited.com"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Ad-Hoc
                    Extra:tsf=0000000000000000
                    Extra: Last beacon: 128860ms ago
                    IE: Unknown: 0010657370657273756E697465642E636F6D
                    IE: Unknown: 010882040B160C121824
                    IE: Unknown: 030101
                    IE: Unknown: 06020000
                    IE: Unknown: 32043048606C
                    IE: Unknown: 7F080000000000000040
                    IE: Unknown: DD070050F202000100
          Cell 07 - Address: 38:3B:C8:FA:01:32
                    Channel:8
                    Frequency:2.447 GHz (Channel 8)
                    Quality=27/70  Signal level=-83 dBm  
                    Encryption key:on
                    ESSID:"ATT3iyd5rU"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000000001162018a
                    Extra: Last beacon: 7105ms ago
                    IE: Unknown: 000A41545433697964357255
                    IE: Unknown: 010882848B962430486C
                    IE: Unknown: 030108
                    IE: Unknown: 050402030000
                    IE: Unknown: 0706555320010B1E
                    IE: Unknown: 2A0100
                    IE: Unknown: 2F0100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32040C121860
                    IE: Unknown: 0B0500000F0000
                    IE: Unknown: 2D1A1C181FFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1608000000000000000000000000000000000000000000
                    IE: Unknown: 7F03000008
                    IE: Unknown: DD180050F204104A00011010440001021049000600372A000120
                    IE: Unknown: DD090010180200000C0000
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
          Cell 08 - Address: 60:19:71:1D:35:10
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=15/70  Signal level=-95 dBm  
                    Encryption key:on
                    ESSID:"ARRIS-3512"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                              18 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000000a16e437144
                    Extra: Last beacon: 26361ms ago
                    IE: Unknown: 000A41525249532D33353132
                    IE: Unknown: 010882848B961224486C
                    IE: Unknown: 030101
                    IE: Unknown: 32040C183060
                    IE: Unknown: 0706555320010B24
                    IE: Unknown: 33082001020304050607
                    IE: Unknown: 33082105060708090A0B
                    IE: Unknown: 050400010060
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD310050F204104A000110104400010210470010BC329E001DD811B286016019711D3510103C0001011049000600372A000120
                    IE: Unknown: 2A0100
                    IE: Unknown: 2D1AEC0117FFFFFF0000000000000000000000000000001846471100
                    IE: Unknown: 3D1601000400000000000000000000000000000000000000
                    IE: Unknown: 7F0401000000
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
                    IE: Unknown: 0B05020014127A
                    IE: Unknown: DD07000C4303000000

root@caitlyn:~#
 
Old 05-05-2017, 02:06 PM   #7
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 325

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by v3g4n View Post
What do you mean by this?

Did your wireless connect and then disconnect? If so try changing dhcpcd to dhclient in /etc/NetworkManager/conf.d/00-dhcp-client.conf. Before I made this change my wireless would go in a loop of connecting and disconnecting. After you make the change restart NetworkManager.
Code:
/etc/rc.d/rc.networkmanager restart
I did all that stuff bassmadrigal suggested.
 
Old 05-05-2017, 02:50 PM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,027

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
If you had modifications in your /etc/rc.d/rc.inet1.conf, you might need to reset that to defaults for Network Manager to work properly. To do that, run netconfig and select loopback. This resets everything. Then you can run it again and select Network Manager. This should make it executable like we did earlier. Now, you should just need to start it and then use the applet.

With your router, be sure you don't have MAC address filtering enabled (or that your MAC is included in the list). And, as v3g4n mentioned, if you do connect, but then start getting disconnected fairly frequently, try switching the dhcp client to dhclient instead of dhcpcd.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
USB Wireless Card recognised but cannot connect to network adtf01 Slackware 27 12-30-2010 06:01 AM
Linksys Wireless card won't connect to wireless network battle_scarred Linux - Newbie 3 04-03-2008 04:27 PM
Wire network is ok but unable to connect to wireless and wireless card is not detect vitalstrike82 SUSE / openSUSE 4 11-01-2007 06:56 AM
why can't I configure my wireless network card? irena56 Linux - Wireless Networking 2 09-01-2006 11:41 AM
Trying to get USB linksys wireless g 802.11g network card to connect in linux mandriv Raze31 Linux - Wireless Networking 10 08-13-2005 09:39 PM

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

All times are GMT -5. The time now is 11:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration