Posts: 71
jtwdyp
Joined: 08 Apr 2012
#1
I can't seem to remember how to get my wicd using antiX installation to
configure and use a new network adapter.

<sigh> I dislike having what I call CRS, especialy while I'm in transition from my
home of the last 14+ yrs, thus currently being without access to the notes & files
on my desktop computer... And mostly using the local donut shop's WIFI to get at my
email, etc...

* CRS :"Can't Remember Sh^Htuff" : In my case this means that unless I
* do something the same way every day for a LONG time, or have examples
* of how I did it before (where I can still find them), I usually wind up
* scratching my head the next time I need to do a non-daily task. Or for
* that matter, to remember what I was doing before the durned phone rang etc...

Perhaps some kind hearted antiX user would be so kind as to help me remember/learn
how to configure my NEW usb/network adapter... I seem to be stuck.

If the information below isn't useful, just tell me what command you'd like to
see the output of...

The built in wireless adapter never really worked on this Vista era laptop, Not
even with the Vista that came on it... I have vague memories that I used
to have fight with various Linux installations to get them to use an old trendnet
usb/network adapter without getting hung up on the existence of the
non-functional built in. I do remember that I usually had better luck with
wicd, than with which ever network manager was installed by default. The
exceptions being opensuse where I had to let"yast" itself manage the network
with what it called traditional methods to get it working. I dislike yast's user
interface {preferring to update opensuse with zypper} So I don't intend to try to
get opensuse to use a new network setting, or adapter till I have my own router
connected to broadband again.

Eventually when I installed Mageia, I found that their"draknetcenter" worked.

As it happens, both opensuse, & Mageia have running dist-upgrade methods that
have saved me from having to configure them to use that usb adapter in a LONG time.

The only other Linux currently installed to the laptop is antiX, which I
installed in 2011. Since I chose the testing (rolling release) sources
configuration, I haven't had to actually configure that usb adapter in a long
time here either. My laptop's antiX is, I note, configured to use wicd.

For assorted reasons I decided I needed a spare network adapter and ordered a
new low cost usb device from amazon, which described the device as:
"Realtek 8191 300Mbps 802.11n/g/b USB Wireless WIFI LAN Network Card Adapter"

It featured an external antenna that's supposed to improve reception... So I
was hoping it would be able to use weaker WIFI signals, but that hasn't
worked out that way...

I can get Mageia to"connect" to a strong WIFI with it, using their
draknetcenter. But it hangs up way to easy. And I can't seam to figure out how to
get antiX to use it at all.

The output of commands like ifconfig & iwconfig are somewhat different between
Mageia and antiX.

Mageia doesn't seem to even see the bad built-in device. And will refer to
either usb/network adapter as wlan0.

AntiX calls the bad built-in wlan0, it calls the older trendnet adapter wlan1
And whether the trendnet adapter has been attached or not, it calls the new
device wlan2. Antix seems unable to list the the new device at all with ifconfig.
And wicd also doesn't find it.

NOTE: all quoted iwconfig & ifconfig outputs reflect the network adapter{s}
state when there are no available WIFI networks for me to actually"connect" to...

With iwconfig the bad built-in and the old trendnet usbnetwork adapter have
identical reported values:

Code: Select all

wlan1     IEEE 802.11bg  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:on
Except that the built in would be wlan0...

The new usb adapter is listed by iwconfig as:

Code: Select all

wlan2     unassociated  Nickname:"rtl_wifi"
          Mode:Auto  Access Point: Not-Associated   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
I note there are some differences. Problem: I have no idea how to set it's"Mode"
to"Managed", nor it's"Retry" to"short limit:7" And I don't have the
slightest clue about those"Rx invalid" listings...

As I said, antiX doesn't find the new adapter with ifconfig, But from my
Mageia installation I get this for the new adapter:

Code: Select all

wlan0     Link encap:Ethernet  HWaddr 00:0D:81:AC:D4:7D  
          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 (0.0 b)  TX bytes:0 (0.0 b)
I note: If antiX listed this device with ifconfig, it would call it"wlan2"

BOTH antiX AND Mageia see the old trendnet adapter with"ifconfig" as:

Code: Select all

wlan0     Link encap:Ethernet  HWaddr 00:14:D1:37:5B:B2  
          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 (0.0 b)  TX bytes:0 (0.0 b)
Except for uppercase/lowercase representations of the hex"HWaddr" field and
that antiX calls this device"wlan1"

Suggestions welcome!
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#2
Suggestions welcome!
Ok. I can;t tell if you are running AntiX or not, (tired,sweating and late here)
As I said, antiX doesn't find the new adapter with ifconfig, But from my
Mageia installation I get this for the new adapter:BOTH antiX AND Mageia see the old trendnet adapter with"ifconfig" as:

Code: Select all

lsusb -t

Code: Select all

inxi -F

Code: Select all

ip addr show

Code: Select all

ip link show
should get things started. Also. When I had to run external usb wifi with a non functioning internal wifi chip. I had to turn off
internal wifi in bios as it was confusing things. So if you can disable the trendnet, Do so. If possible.

Happy Trails, Rok
Posts: 71
jtwdyp
Joined: 08 Apr 2012
#3
rokytnji wrote:
Suggestions welcome!
Ok. I can;t tell if you are running AntiX or not, (tired,sweating and late here)


Sorry about that. I multiboot, and only some of that was from my antiX
installation...

But I promise: ALL of the output pasted in below, is strictly from antiX.
Though I note: I'm currently dependent on other peoples wifi to access the
net. My ex was nice enough to let me use hers long enough to check my email
and to find and copy the text within your forum reply to a file. Which I'm
editing at my current digs, where there isn't any internet available for me to
be"connected to" while running the commands you suggested in a separate root
shell and pasting in the results. So I have doubts that the IP related command
outputs will be relevant...
As I said, antiX doesn't find the new adapter with ifconfig, But from my
Mageia installation I get this for the new adapter:BOTH antiX AND Mageia see the old trendnet adapter with"ifconfig" as:

Code: Select all

lsusb -t
I note: the new"realtek" {wlan2} adapter is plugged in.And the trendnet usb
adapter is not, which is why {wlan1} is not listed below...

Code: Select all

 ~ 
UnderTree  =-> lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M
    |__ Port 4: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8712u, 480M
 ~ 
UnderTree  =-> 

Code: Select all

inxi -F

Code: Select all

 ~ 
UnderTree  =-> inxi -F
System:    Host 2012-antix-lap-7 Kernel 3.14-1-amd64 x86_64 (64 bit) Distro antiX-M11-686 Jayaben Desai 01 May 2011
CPU:       Dual core AMD Turion 64 X2 Mobile TL-50 (-MCP-) cache 512 KB flags (lm nx sse sse2 sse3 svm) bmips 3191.88 
           Clock Speeds: (1) 800.00 MHz (2) 800.00 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] RS482M [Mobility Radeon Xpress 200] bus-ID: 01:05.0 X.org 1.15.1 Res: 83x28 Gfx Data: N/A for root 
Audio:     Card Advanced Micro Devices [AMD/ATI] IXP SB4x0 High Definition Audio Controller driver snd_hda_intel bus-ID: 00:14.2
           Sound: Advanced Linux Sound Architecture Version k3.14-1-amd64
Network:   Card-1 Marvell 88E8038 PCI-E Fast Ethernet Controller driver sky2 v: 1.30 port a000 bus-ID: 02:00.0
           Card-2 Broadcom BCM4311 802.11b/g WLAN driver b43-pci-bridge bus-ID: 05:00.0
           Card-3 Realtek RTL8191SU 802.11n WLAN Adapter usb-ID: 0bda:8172
Disks:     HDD Total Size: 120.0GB (4.0% used) 1: /dev/sda HTS421212H9AT00 120.0GB 
Partition: ID:/ size: 20G used: 15G (80%) fs: ext3 ID:swap-1 size: 1.02GB used: 0.00GB (0%) fs: swap 
Info:      Processes 143 Uptime 20 min Memory 163.8/871.5MB Runlevel 5 Client Shell inxi 1.4.95 
 ~ 
UnderTree  =->

Code: Select all

ip addr show

Code: Select all

 ~ 
UnderTree  =-> ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    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: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 00:e0:b8:bb:00:27 brd ff:ff:ff:ff:ff:ff
3: wlan2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:0d:81:ac:d4:7d brd ff:ff:ff:ff:ff:ff
4: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:1a:73:1c:07:98 brd ff:ff:ff:ff:ff:ff
 ~ 
UnderTree  =-> 

Code: Select all

ip link show

Code: Select all

 ~ 
UnderTree  =-> ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:e0:b8:bb:00:27 brd ff:ff:ff:ff:ff:ff
3: wlan2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:0d:81:ac:d4:7d brd ff:ff:ff:ff:ff:ff
4: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:1a:73:1c:07:98 brd ff:ff:ff:ff:ff:ff
 ~ 
UnderTree  =->
should get things started. Also. When I had to run external usb wifi with a non functioning internal wifi chip. I had to turn off
internal wifi in bios as it was confusing things. So if you can disable the trendnet, Do so. If possible.
Happy Trails, Rok
Yeah, Actually the Trendnet adapter is the other usb/wireless adapter.
AKA The old usb adapter that works. The built in wireless is the
"Broadcom" {wlan0}. This old Gateway laptop has an"Fn" key which when pressed
with the F2 key should toggle the builtin wireless on/off. There should be
an indicator light just below the touchpad when it's on. But even though I can
no longer remember what I did to disable it, that indicator light just
stays off.

And I note: ifconfig {on antiX} doesn't find it any more than it finds the
new realtek adapter.

Though if I plug in the trendnet adapter, that one ifconfig finds...

The below are with BOTH usb adapters connected {at the same time} (NOT
something I'd do when trying to use one to connect to a wifi)

Code: Select all

 ~ 
UnderTree  =-> iwconfig
wlan2     unassociated  Nickname:"rtl_wifi"
          Mode:Auto  Access Point: Not-Associated   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

wlan1     IEEE 802.11bg  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11bg  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:on
          
 ~ 
UnderTree  =-> ifconfig
eth0      Link encap:Ethernet  HWaddr 00:e0:b8:bb:00:27  
          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 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:16 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:29 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3260 (3.1 KiB)  TX bytes:3260 (3.1 KiB)

wlan1     Link encap:Ethernet  HWaddr 00:14:d1:37:5b:b2  
          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 (0.0 B)  TX bytes:0 (0.0 B)

 ~ 
UnderTree  =->
 ~ 
UnderTree  =-> lsusb -t        
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-pci/4p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M
    |__ Port 3: Dev 4, If 0, Class=Vendor Specific Class, Driver=rtl8187, 480M
    |__ Port 4: Dev 3, If 0, Class=Vendor Specific Class, Driver=r8712u, 480M
 ~ 
UnderTree  =-> inxi -F     
System:    Host 2012-antix-lap-7 Kernel 3.14-1-amd64 x86_64 (64 bit) Distro antiX-M11-686 Jayaben Desai 01 May 2011                                                   
CPU:       Dual core AMD Turion 64 X2 Mobile TL-50 (-MCP-) cache 512 KB flags (lm nx sse sse2 sse3 svm) bmips 3191.88                                                 
           Clock Speeds: (1) 800.00 MHz (2) 800.00 MHz                             
Graphics:  Card: Advanced Micro Devices [AMD/ATI] RS482M [Mobility Radeon Xpress 200] bus-ID: 01:05.0 X.org 1.15.1 Res: 83x28 Gfx Data: N/A for root                  
Audio:     Card Advanced Micro Devices [AMD/ATI] IXP SB4x0 High Definition Audio Controller driver snd_hda_intel bus-ID: 00:14.2                                      
           Sound: Advanced Linux Sound Architecture Version k3.14-1-amd64          
Network:   Card-1 Marvell 88E8038 PCI-E Fast Ethernet Controller driver sky2 v: 1.30 port a000 bus-ID: 02:00.0                                                        
           Card-2 Broadcom BCM4311 802.11b/g WLAN driver b43-pci-bridge bus-ID: 05:00.0                                                                               
           Card-3 Realtek RTL8187B Wireless 802.11g 54Mbps Network Adapter usb-ID: 0bda:8189                                                                          
Disks:     HDD Total Size: 120.0GB (4.0% used) 1: /dev/sda HTS421212H9AT00 120.0GB 
Partition: ID:/ size: 20G used: 15G (80%) fs: ext3 ID:swap-1 size: 1.02GB used: 0.00GB (0%) fs: swap                                                                  
Info:      Processes 144 Uptime 1:10 Memory 165.2/871.5MB Runlevel 5 Client Shell inxi 1.4.95 
 ~ 
UnderTree  =-> ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    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: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 00:e0:b8:bb:00:27 brd ff:ff:ff:ff:ff:ff
4: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:1a:73:1c:07:98 brd ff:ff:ff:ff:ff:ff
5: wlan2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:0d:81:ac:d4:7d brd ff:ff:ff:ff:ff:ff
6: wlan1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 00:14:d1:37:5b:b2 brd ff:ff:ff:ff:ff:ff
 ~ 
UnderTree  =-> ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:e0:b8:bb:00:27 brd ff:ff:ff:ff:ff:ff
4: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:1a:73:1c:07:98 brd ff:ff:ff:ff:ff:ff
5: wlan2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:0d:81:ac:d4:7d brd ff:ff:ff:ff:ff:ff
6: wlan1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:14:d1:37:5b:b2 brd ff:ff:ff:ff:ff:ff
 ~ 
UnderTree  =-> 
Hmmmnnn I note that neither the builtin, {wlan0} nor the problematic new usb
adapter that I'm trying to get working, (wlan2} get an indicator that antiX
noticed there isn't a carrier, While both the old usb adapter {wlan1} and the
Ethernet adapter {eth0} are listed with"NO-CARRIER". Probably is related
to the"UP" indicator...? ? ?
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#4
I'd put wlan2 into wicd preferences. Hit the refresh button. And go from there.

Looks like


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wiki.debian.org/rtl819x"
linktext was:"https://wiki.debian.org/rtl819x"
====================================

Is where you are at as far as a driver is concerned.

However. You are probably missing the firmware


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://packages.debian.org/wheezy/firmware-realtek"
linktext was:"https://packages.debian.org/wheezy/firmware-realtek"
====================================


Since it is a non-free component and Debian is hinky on non-free components in their installs. They require the user to
install non-free stuff on their own. Wireless N, huh? I guess you cannot turn off the internal wifi in bios like I mentioned.
Posts: 71
jtwdyp
Joined: 08 Apr 2012
#5
rokytnji wrote:I'd put wlan2 into wicd preferences. Hit the refresh button. And go from there.
Good idea... But the wicd gui still doesn't see the device... I mean the neighbors have a few {secured} wireless networks (that I don't have access to.} But when I use the old trendnet usb adapter wicd lists them when I refresh...

Yet, if I try to use the new realtek one wicd doesn't find any wireless networks. Even if I edit the preferences to use wlan2 and then refresh... {sigh}
Looks like


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wiki.debian.org/rtl819x"
linktext was:"https://wiki.debian.org/rtl819x"
====================================

Is where you are at as far as a driver is concerned.
That is a possibility... I'll have to find the time to dig into it... Thanks for the link.
However. You are probably missing the firmware


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://packages.debian.org/wheezy/firmware-realtek"
linktext was:"https://packages.debian.org/wheezy/firmware-realtek"
====================================
When I tried to install that, apt-get said the latest version was already installed... {sigh}
Since it is a non-free component and Debian is hinky on non-free components in their installs. They require the user to install non-free stuff on their own. Wireless N, huh? I guess you cannot turn off the internal wifi in bios like I mentioned.
Honestly I'm not sure about the bios settings yet... I'll check that now...

Alright, there is an option to"disable internal lan". But when I tried it, things only got worse.

Probably your idea about needing to get the right"non-free" driver is the way of it. Not sure how quickly I'll get the time to follow up with that wiki page you mentioned. But it will have to be when I'm visiting someone who has an wifi I can use...

Thanks

UPDATE: Looks like I'm going to get a new Dell laptop tomorrow. So I'll be spending my time shrinking win7 to make room for some Linux distributions, including antiX... If I get everything set up the way I need it on the NEW laptop, this one will be converted back to a Vista only machine, and become my ex-wife's problem. So I'm doubting that I'll be following up any further on this topic... But when/if I ever get to setup my desktop again, If I need to connect it wirelessly, I will certainly use the info and tools you provided to set it up on that machine. In which case I'll post the results to this thread. But that might be a while...

Thanks again for the kindhearted assistance.