How Do I Select With Grep And Awk Only ONE Text Content In A Script

i got a nasty isue here.
for my machine i want to make a checkup script to see to what wireless network i am connected to.

if i type iwconfig i get below output.
Code:
 iwconfig
wlan0     IEEE 802.11bgn  ESSID:"APqwerty"
          Mode:Managed  Frequency:2.447 GHz  Access Point: 72:6B:D3:36:29:44
          Bit Rate=54 Mb/s   Tx-Power=20 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=55/70  Signal level=-55 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:7339  Invalid misc:83573   Missed beacon:0

lo        no wireless extensions.

eth0      no wireless extensions.

With a grep awk combo i manage to narow it down.
Code:
  iwconfig | grep ESSID |awk '{ /ESSID/; print $4 }'
lo        no wireless extensions.

eth0      no wireless extensions.

ESSID:"APqwerty"

why it also shows lo and eth0 ,i dont know, but ok.

i tried several combo's on grep, awk, even cut.
i only want to catch the ESSID to where i am connected to, in this case APqwerty.
i know i am missing something, but cant find out what it is, any advice ?


Similar Content



Network Manager States That I Am Connected, But I Cannot Connect To Any Webpage

Hey all,

I just did a Debian minimal install and am using the package network-manager-gnome to manage wifi. I should also mention I'm running OpenBox. Anyway, network-manager shows up just fine in my systemtray and it lets me connect and displays that I am connected in the system tray. However, when I try to connect to a website it will just say "connecting" for a very long time before timing out. Note that my ethernet works perfectly.

If it helps, this is what shows up in iwconfig after I've "connected" to a network through network-manager:

Code:
wlan0     IEEE 802.11abgn  ESSID:"The Stack Resident Wifi"  
          Mode:Managed  Frequency:5.24 GHz  Access Point: 54:3D:37:02:A5:CC   
          Bit Rate=13 Mb/s   Tx-Power=15 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=33/70  Signal level=-77 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:154   Missed beacon:0

I've searched in many places and I couldn't find someone who had a similar problem. Any help would be awesome. Thanks!

Getting Variable Integer Values From Grep

I want to write a Python script. In order to write it I need to figure out how to access the values associated with my signal level and bit rate.

If I use the following command

Code:
iwconfig | grep 'Signal level'

I get:

eth0 no wireless extensions.

lo no wireless extensions.

Link Quality=70/70 Signal level= -38 dBm


Obviously, I don't want Signal level. I want whatever it happens to be. In this case, it happens to be -38. Ditto Bit Rate...How do I grab -38 from the command line?

Kali Linux Didn't Recognize Wireless Networks

Hi,
i'm new in kali linux.
i have an issue with the wifi connections.
installing the newwst version of kali from the official website on virtual box.
plug the USB wireless adapter (TP-LINK).
also, i noticed wlan0 on #ifconfig command.
on the network setting configure NAT (also tried with NAT bridged)

my problem is that - i cannot see any wireless networks.
i followed few guides from youtube and here but with no luck.
it show me that i'm wired connected.
i attached screenshot bellow.
please kindly assist me.


additional information:
#airmon-ng start wlan0
when i type #ifconfig, i saw that wlan0 changed to wlan0mon
and with#airodump-ng command on wlan0mon i didn't see any wireless network as well


iwconfig
Quote:
root@kali:~# iwconfig
eth0 no wireless extensions.

wlan0 IEEE 802.11bgn ESSIDff/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry short limit:7 RTS thrff Fragment thrff
Encryption keyff
Power Managementff

lo no wireless extensions.
lsmod
Quote:
root@kali:~# lsmod | grep rt
rt2800usb 26222 0
rt2x00usb 17642 1 rt2800usb
rt2800lib 81543 1 rt2800usb
rt2x00lib 46315 3 rt2x00usb,rt2800lib,rt2800usb
mac80211 511777 3 rt2x00lib,rt2x00usb,rt2800lib
cfg80211 425751 2 mac80211,rt2x00lib
crc_ccitt 12347 1 rt2800lib
parport_pc 26287 0
parport 35699 1 parport_pc
usbcore 199549 7 rt2x00usb,ohci_hcd,ohci_pci,rt2800usb,ehci_hcd,ehci_pci,usbhid
lsusb
Quote:
root@kali:~# lsusb
Bus 001 Device 003: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 80ee:0021 VirtualBox USB Tablet
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
ifconfig

Quote:
root@kali:~# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:dc:d0:01
inet addr:192.168.1.22 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fedc:d001/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:68 errors:0 dropped:0 overruns:0 frame:0
TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7485 (7.3 KiB) TX bytes:4163 (4.0 KiB)

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:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1200 (1.1 KiB) TX bytes:1200 (1.1 KiB)

wlan0 Link encap:Ethernet HWaddr 90:f6:52:10:0f:d2
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)
iw wlan0 info
Quote:
root@kali:~# iw wlan0 info
Interface wlan0
ifindex 4
type managed
wiphy 1
iwlist scan
Quote:
root@kali:~# iwlist scan
eth0 Interface doesn't support scanning.

wlan0 No scan results

lo Interface doesn't support scanning.
uname -a
Quote:
root@kali:~# uname -a
Linux kali 3.18.0-kali3-amd64 #1 SMP Debian 3.18.6-1~kali2 (2015-03-02) x86_64 GNU/Linux
cat /etc/network/interfaces
Quote:
root@kali:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
thanks

Puppy Linux Network Tools Won't Connect On Boot, Though I Can Connect Manually

Puppy linux 5.7.1 full install...

Until recently, the "Simple Network Setup" was working fine -- it's what I used to set up my wi-fi connection on installation, and it has been connecting on boot ever since. But a few days ago, it just stopped working.

(I did find a mention on another forum that "PRecord" in combination with "Retrovol" had been discovered to have a bug that wrote spurious files to a /dev directory, which rang a bell with me, because I happen to have used exactly that program within the last few days, but this may be *completely* a red herring.)

At the moment, I *can* get onto my home network, but I am doing it by opening terminal windows and running wpa_supplicant and dhcpd manually; I'd rather let the OS tools do it for me; call me lazy!

What works is...
In a terminal, I invoke
Code:
wpa_supplicant -i wlan0 -D wext -c /etc/network-wizard/wireless/wpa_profiles/wpa_supplicant.conf -dd &

and when that process has done its stuff, I invoke dhcpcd and it connects.

That wpa_supplicant.conf looks like this
Code:
ctrl_interface=/var/run/wpa_supplicant
update_config=1

network={
	ssid="Belkin_Router"
	scan_ssid=1
	psk="MyKeyInPlainForm"
proto=WPA
	key_mgmt=WPA-PSK
	pairwise=TKIP
	group=TKIP
	priority=1
}

and my most recent successful connection was as follows
Code:
# wpa_supplicant -i wlan0 -D wext -c /etc/network-wizard/wireless/wpa_profiles/wpa_supplicant.conf -dd &
[1] 16955
# Initializing interface 'wlan0' conf '/etc/network-wizard/wireless/wpa_profiles/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/network-wizard/wireless/wpa_profiles/wpa_supplicant.conf' -> '/etc/network-wizard/wireless/wpa_profiles/wpa_supplicant.conf'
Reading configuration file '/etc/network-wizard/wireless/wpa_profiles/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
update_config=1
Line: 4 - start of a new network block
ssid - hexdump_ascii(len=13):
     42 65 6c 6b 69 6e 5f 52 6f 75 74 65 72            Belkin_Router   
scan_ssid=1 (0x1)
PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED]
proto: 0x1
key_mgmt: 0x2
pairwise: 0x8
group: 0x8
priority=1 (0x1)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 1
   id=0 ssid='Belkin_Router'
WEXT: cfg80211-based driver detected
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf flags 0x0
netlink: Operstate: linkmode=1, operstate=5
Own MAC address: 64:70:02:ec:bc:4e
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=4 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Invalid argument
Driver did not support SIOCSIWENCODEEXT
wpa_driver_wext_set_key: alg=0 key_idx=5 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Invalid argument
Driver did not support SIOCSIWENCODEEXT
wpa_driver_wext_set_countermeasures
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
WPS: UUID based on MAC address - hexdump(len=16): a0 6b 9a 67 53 d1 51 d9 ac d0 66 5c ad d3 d3 e3
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b1a len=8
State: DISCONNECTED -> SCANNING
Scan SSID - hexdump_ascii(len=13):
     42 65 6c 6b 69 6e 5f 52 6f 75 74 65 72            Belkin_Router   
Starting AP scan for specific SSID(s)
Scan requested (ret=0) - scan timeout 5 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=8
Received 685 bytes of scan results (1 BSSes)
BSS: Start scan result update 1
BSS: Add new id 0 BSSID 94:44:52:8a:b6:9d SSID 'Belkin_Router'
New scan results available
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x103b len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x1021 len=26
WPS: attr type=0x1023 len=38
WPS: attr type=0x1024 len=6
WPS: attr type=0x1042 len=14
WPS: attr type=0x1054 len=8
WPS: attr type=0x1011 len=28
WPS: attr type=0x1008 len=2
WPS: attr type=0x103c len=1
WPS: attr type=0x104a len=1
WPS: attr type=0x1044 len=1
WPS: attr type=0x103b len=1
WPS: attr type=0x1047 len=16
WPS: attr type=0x1021 len=26
WPS: attr type=0x1023 len=38
WPS: attr type=0x1024 len=6
WPS: attr type=0x1042 len=14
WPS: attr type=0x1054 len=8
WPS: attr type=0x1011 len=28
WPS: attr type=0x1008 len=2
WPS: attr type=0x103c len=1
Selecting BSS from priority group 1
Try to find WPA-enabled AP
0: 94:44:52:8a:b6:9d ssid='Belkin_Router' wpa_ie_len=22 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
   selected WPA AP 94:44:52:8a:b6:9d ssid='Belkin_Router'
Trying to associate with 94:44:52:8a:b6:9d (SSID='Belkin_Router' freq=2437 MHz)
FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: not using MGMT group cipher
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_psk
ioctl[SIOCSIWFREQ]: Device or resource busy
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP fail=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portControl=Auto
EAPOL: Supplicant port status: Unauthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b1a len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b1a len=21
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8c08 len=59
AssocResp IE wireless event - hexdump(len=51): 01 08 82 84 8b 96 12 24 48 6c 32 04 0c 18 30 60 dd 18 00 50 f2 02 01 01 00 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00 dd 07 00 0c 43 07 00 00 00
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 94:44:52:8a:b6:9d
Association info event
resp_ies - hexdump(len=51): 01 08 82 84 8b 96 12 24 48 6c 32 04 0c 18 30 60 dd 18 00 50 f2 02 01 01 00 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00 dd 07 00 0c 43 07 00 00 00
FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
State: ASSOCIATING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=94:44:52:8a:b6:9d
No keys have been configured - skip key clearing
Associated with 94:44:52:8a:b6:9d
WPA: Association event - clear replay counter
WPA: Clear old PTK
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Cancelling scan request
EAPOL: startWhen --> 0
EAPOL: disable timer tick
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: enable timer tick
EAPOL: txStart
WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
RX EAPOL from 94:44:52:8a:b6:9d
RX EAPOL - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 01 a7 8d 5b 30 d7 8e 6d 2d 5b ee 34 40 a0 1d 99 5e df a3 1c 88 31 61 62 d2 4e e1 4e 25 5b 33 27 e5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
  key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack)
  key_length=32 key_data_length=0
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 01
  key_nonce - hexdump(len=32): a7 8d 5b 30 d7 8e 6d 2d 5b ee 34 40 a0 1d 99 5e df a3 1c 88 31 61 62 d2 4e e1 4e 25 5b 33 27 e5
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: RX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 01 a7 8d 5b 30 d7 8e 6d 2d 5b ee 34 40 a0 1d 99 5e df a3 1c 88 31 61 62 d2 4e e1 4e 25 5b 33 27 e5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
State: ASSOCIATED -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 94:44:52:8a:b6:9d (ver=1)
WPA: Renewed SNonce - hexdump(len=32): 91 5f 81 db ef af ca 31 e6 5e 51 1f 1e ab bc 88 a8 d5 29 75 4f 51 18 e5 39 6a 3f f9 60 a1 66 58
WPA: PTK derivation - A1=64:70:02:ec:bc:4e A2=94:44:52:8a:b6:9d
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: Sending EAPOL-Key 2/4
WPA: TX EAPOL-Key - hexdump(len=123): 01 03 00 77 fe 01 09 00 20 00 00 00 00 00 00 00 01 91 5f 81 db ef af ca 31 e6 5e 51 1f 1e ab bc 88 a8 d5 29 75 4f 51 18 e5 39 6a 3f f9 60 a1 66 58 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 cc 97 13 16 d5 64 06 15 e6 dc 09 2a 40 f0 84 ef 00 18 dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
RX EAPOL from 94:44:52:8a:b6:9d
RX EAPOL - hexdump(len=123): 01 03 00 77 fe 01 c9 00 20 00 00 00 00 00 00 00 02 a7 8d 5b 30 d7 8e 6d 2d 5b ee 34 40 a0 1d 99 5e df a3 1c 88 31 61 62 d2 4e e1 4e 25 5b 33 27 e5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f5 92 86 88 fa 5c b2 e6 0f 38 55 f1 56 60 ce c4 00 18 dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
IEEE 802.1X RX: version=1 type=3 length=119
  EAPOL-Key type=254
  key_info 0x1c9 (ver=1 keyidx=0 rsvd=0 Pairwise Install Ack MIC)
  key_length=32 key_data_length=24
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 02
  key_nonce - hexdump(len=32): a7 8d 5b 30 d7 8e 6d 2d 5b ee 34 40 a0 1d 99 5e df a3 1c 88 31 61 62 d2 4e e1 4e 25 5b 33 27 e5
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): f5 92 86 88 fa 5c b2 e6 0f 38 55 f1 56 60 ce c4
WPA: RX EAPOL-Key - hexdump(len=123): 01 03 00 77 fe 01 c9 00 20 00 00 00 00 00 00 00 02 a7 8d 5b 30 d7 8e 6d 2d 5b ee 34 40 a0 1d 99 5e df a3 1c 88 31 61 62 d2 4e e1 4e 25 5b 33 27 e5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f5 92 86 88 fa 5c b2 e6 0f 38 55 f1 56 60 ce c4 00 18 dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from 94:44:52:8a:b6:9d (ver=1)
WPA: IE KeyData - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: WPA IE in EAPOL-Key - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: Sending EAPOL-Key 4/4
WPA: TX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 01 09 00 20 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f5 4a b2 9f 01 56 ea b4 3b ea 11 4d 60 d7 0c 61 00 00
WPA: Installing PTK to the driver.
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=0 set_tx=1 seq_len=6 key_len=32
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
RX EAPOL from 94:44:52:8a:b6:9d
RX EAPOL - hexdump(len=131): 01 03 00 7f fe 03 91 00 20 00 00 00 00 00 00 00 03 1d ed e9 ba 27 28 9a 55 56 74 13 fd d9 1b fc 73 75 5f 72 d0 40 f8 5d 40 bc 95 b0 65 a6 7c 1c 90 75 5f 72 d0 40 f8 5d 40 bc 95 b0 65 a6 7c 1c 92 30 96 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2d f9 86 2d f9 2f 6a 8d 8c 86 dd a2 cd 9f 9b f6 00 20 db d3 9a f0 a7 32 ef 4c c0 44 f6 2a 58 38 bd 25 6c 5f 9e ef 23 86 8c 39 86 75 22 ad 12 18 f4 b2
IEEE 802.1X RX: version=1 type=3 length=127
  EAPOL-Key type=254
  key_info 0x391 (ver=1 keyidx=1 rsvd=0 Group Ack MIC Secure)
  key_length=32 key_data_length=32
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 03
  key_nonce - hexdump(len=32): 1d ed e9 ba 27 28 9a 55 56 74 13 fd d9 1b fc 73 75 5f 72 d0 40 f8 5d 40 bc 95 b0 65 a6 7c 1c 90
  key_iv - hexdump(len=16): 75 5f 72 d0 40 f8 5d 40 bc 95 b0 65 a6 7c 1c 92
  key_rsc - hexdump(len=8): 30 96 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 2d f9 86 2d f9 2f 6a 8d 8c 86 dd a2 cd 9f 9b f6
WPA: RX EAPOL-Key - hexdump(len=131): 01 03 00 7f fe 03 91 00 20 00 00 00 00 00 00 00 03 1d ed e9 ba 27 28 9a 55 56 74 13 fd d9 1b fc 73 75 5f 72 d0 40 f8 5d 40 bc 95 b0 65 a6 7c 1c 90 75 5f 72 d0 40 f8 5d 40 bc 95 b0 65 a6 7c 1c 92 30 96 00 00 00 00 00 00 00 00 00 00 00 00 00 00 2d f9 86 2d f9 2f 6a 8d 8c 86 dd a2 cd 9f 9b f6 00 20 db d3 9a f0 a7 32 ef 4c c0 44 f6 2a 58 38 bd 25 6c 5f 9e ef 23 86 8c 39 86 75 22 ad 12 18 f4 b2
WPA: RX message 1 of Group Key Handshake from 94:44:52:8a:b6:9d (ver=1)
State: GROUP_HANDSHAKE -> GROUP_HANDSHAKE
WPA: Group Key - hexdump(len=32): [REMOVED]
WPA: Installing GTK to the driver (keyidx=1 tx=0 len=32).
WPA: RSC - hexdump(len=6): 30 96 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=1 set_tx=0 seq_len=6 key_len=32
WPA: Sending EAPOL-Key 2/2
WPA: TX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 03 11 00 20 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 38 9a 64 a7 e2 7a 09 01 4f f5 10 ae cc d2 1b 58 00 00
WPA: Key negotiation completed with 94:44:52:8a:b6:9d [PTK=TKIP GTK=TKIP]
Cancelling authentication timeout
State: GROUP_HANDSHAKE -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 94:44:52:8a:b6:9d completed (auth) [id=0 id_str=]
wpa_driver_wext_set_operstate: operstate 0->1 (UP)
netlink: Operstate: linkmode=-1, operstate=6
EAPOL: External notification - portValid=1
EAPOL: External notification - EAP success=1
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state SUCCESS
EAP: EAP entering state DISABLED
EAPOL: SUPP_PAE entering state AUTHENTICATED
EAPOL: Supplicant port status: Authorized
EAPOL: SUPP_BE entering state IDLE
EAPOL authentication completed successfully
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
EAPOL: startWhen --> 0
EAPOL: disable timer tick
Ignore event for foreign ifindex 2

What *doesn't* work is using the "Simple Network Setup" tool. (Nor do the alternative Puppy network tools, but their logs aren't as readily available.) For what it's worth, if I run from a Live CD, it works every time, but from my full install, when I start that tool, it reports on detected interfaces, and I click on wlan0 to configure it... it scans for and finds my network, and I tell it that the network is WPA secured, and supply the key. It then attempts to connect, and fails. Can a savvy reader get any clues from the following?

When I tell it about the WPA security and enter the key, it writes (and then I presume attempts to use) the following wpa_supplicant.conf
Code:
# (this is written as wpa_supplicant.conf-Belkin_Router-64:70:02:EC:BC:4E)
ctrl_interface=/var/run/wpa_supplicant
ap_scan=0

network={
 ssid="Belkin_Router"
 key_mgmt=WPA-PSK
 psk=MyKeyEncodedSomehowInAMuchLongerTextLine
}

and its failure is logged as follows
Code:
Information about this interface:
 Interface: wlan0  Driver: ath9k  Bus: pci  MacAddress: 64:70:02:EC:BC:4E
 Description: Support for Atheros 802.11n wireless LAN cards. 
 
STEP1a: ifconfig wlan0 up
STEP1b: iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 94:44:52:8A:B6:9D
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=51/70  Signal level=-59 dBm  
                    Encryption key:on
                    ESSID:"Belkin_Router"
                    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=0000003f9eecb4a7
                    Extra: Last beacon: 83ms ago
                    IE: Unknown: 000D42656C6B696E5F526F75746572
                    IE: Unknown: 010882848B961224486C
                    IE: Unknown: 030106
                    IE: Unknown: 2A0104
                    IE: Unknown: 32040C183060
                    IE: Unknown: 2D1A6E1017FF000000010000000000000000000000000C0000000000
                    IE: Unknown: 3D1606070700000000000000000000000000000000000000
                    IE: Unknown: 3E0100
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
                    IE: Unknown: 0B05030081127A
                    IE: Unknown: 7F0101
                    IE: Unknown: DD07000C4307000000
                    IE: Unknown: 0706555320010D10
                    IE: Unknown: DD1E00904C336E1017FF000000010000000000000000000000000C0000000000
                    IE: Unknown: DD1A00904C3406070700000000000000000000000000000000000000
                    IE: Unknown: DDC20050F204104A0001101044000102103B00010310470010BC329E001DD811B286019444528AB69D1021001A42656C6B696E20496E7465726E6174696F6E616C2C20496E632E1023002642656C6B696E20456E68616E63656420576972656C657373204D6F64656D20525330414B5431102400065330414B54311042000E31323032333436333030393332321054000800060050F20400011011001C42656C6B696E20576972656C65737320526F75746572202857464129100800020084103C000101
STEP1c: ifconfig wlan0 down
Running: wpa_cli -i wlan0 status
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
STEP2: iwconfig wlan0 mode managed
STEP3: iwconfig wlan0 channel 6
STEP4: iwconfig wlan0 essid "Belkin_Router"
STEP5a: ifconfig wlan0 up
STEP5b: wpa_supplicant -B -Dwext -iwlan0 -c"/etc/simple_network_setup/wpa_supplicant.conf-Belkin_Router-64:70:02:EC:BC:4E"
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
daemon: No such device

ERROR, TIMEOUT. Have not got an Access Point.
Result of 'iwconfig wlan0':
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated   
          Tx-Power=16 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          

STEP5a: ifconfig wlan0 up
STEP5b: wpa_supplicant -B -Dwext -iwlan0 -c"/etc/simple_network_setup/wpa_supplicant.conf-Belkin_Router-64:70:02:EC:BC:4E"
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
daemon: No such device
Running: wpa_cli -i wlan0 status
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Running: wpa_cli -i wlan0 status
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

ERROR, TIMEOUT. Have not got an Access Point.
Result of 'iwconfig wlan0':
wlan0     IEEE 802.11bgn  ESSID:"Belkin_Router"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated   
          Tx-Power=16 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          

STEP5a: ifconfig wlan0 up
STEP5b: wpa_supplicant -B -Dwext -iwlan0 -c"/etc/simple_network_setup/wpa_supplicant.conf-Belkin_Router-64:70:02:EC:BC:4E"
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
daemon: No such device

ERROR, TIMEOUT. Have not got an Access Point.
Result of 'iwconfig wlan0':
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated   
          Tx-Power=16 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          

STEP5a: ifconfig wlan0 up
STEP5b: wpa_supplicant -B -Dwext -iwlan0 -c"/etc/simple_network_setup/wpa_supplicant.conf-Belkin_Router-64:70:02:EC:BC:4E"
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
daemon: No such device
Running: wpa_cli -i wlan0 status
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Running: wpa_cli -i wlan0 status
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

ERROR, TIMEOUT. Have not got an Access Point.
Result of 'iwconfig wlan0':
wlan0     IEEE 802.11bgn  ESSID:"Belkin_Router"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated   
          Tx-Power=16 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          

STEP5a: ifconfig wlan0 up
STEP5b: wpa_supplicant -B -Dwext -iwlan0 -c"/etc/simple_network_setup/wpa_supplicant.conf-Belkin_Router-64:70:02:EC:BC:4E"
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
daemon: No such device

ERROR, TIMEOUT. Have not got an Access Point.
Result of 'iwconfig wlan0':
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated   
          Tx-Power=16 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          

Running: wpa_cli -i wlan0 status
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
 
*********************************************************
LAST 10 LINES of /var/log/messages:
Jan 11 12:37:49 puppypc6435 user.info kernel: [   11.127105] EXT3-fs (sda14): using internal journal
Jan 11 12:37:49 puppypc6435 user.info kernel: [   11.127107] EXT3-fs (sda14): mounted filesystem with ordered data mode
Jan 11 12:37:50 puppypc6435 user.info kernel: [   16.334781] acpi-cpufreq: overriding BIOS provided _PSD data
Jan 11 12:37:54 puppypc6435 user.notice powerapplet: Abort, unable to open /proc/acpi/battery
Jan 11 12:38:17 puppypc6435 daemon.err dhcpcd[3833]: timed out
Jan 11 12:38:17 puppypc6435 daemon.warn dhcpcd[3833]: allowing 8 seconds for IPv4LL timeout
Jan 11 12:38:25 puppypc6435 daemon.err dhcpcd[3833]: timed out
Jan 11 12:38:25 puppypc6435 daemon.err dhcpcd[6122]: dhcpcd not running
Jan 11 12:38:25 puppypc6435 user.warn kernel: [   51.688657] r8169 0000:04:00.0 eth0: unable to load firmware patch rtl_nic/rtl8168f-1.fw (-2)
Jan 11 12:38:25 puppypc6435 user.info kernel: [   51.700692] r8169 0000:04:00.0 eth0: link down

Thanks in advance!
Piers.

Wi Fi On Linux

I installed Linux Mint on my Dell Latitude D630 Wi Fi and I love it!! While the lap top was wired to the internet, I could do anything I wanted to do.

But I have wifi. And, the steps I found online did not help me get wifi set up.

When I type "iwconfig" from the command line, it says "no wireless extensions"

Please help. I need this.

Wireless Network Setting In Mint

I am totally new to Linux. However, considering the many advantages of the operationg comparing to other OS, i have decided to go ahead with using MINT Rebacca which is the latest version. Initially for some time i did not have any issues in getting my internet connecton. However, for the last one week I am unable to connect through. The results of various terminal commands i applied is given below with a sincere trust somebody would be there to help me out.
----- anil@anil-HP-15-Notebook-PC ~ $ iwconfig eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11bgn ESSIDff/any Mode:Managed Access Point: Not-Associated Tx-Power=off Retry long limit:7 RTS thrff Fragment thrff Power Managementn anil@anil-HP-15-Notebook-PC ~ $

anil@anil-HP-15-Notebook-PC ~ $ ifconfig eth0 Link encap:Ethernet HWaddr f8:a9:63:90:62:b1 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)
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:149 errors:0 dropped:0 overruns:0 frame:0 TX packets:149 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:10689 (10.6 KB) TX bytes:10689 (10.6 KB)
anil@anil-HP-15-Notebook-PC ~ $
anil@anil-HP-15-Notebook-PC ~ $ ifconfig eth0 Link encap:Ethernet HWaddr f8:a9:63:90:62:b1 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)
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:149 errors:0 dropped:0 overruns:0 frame:0 TX packets:149 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:10689 (10.6 KB) TX bytes:10689 (10.6 KB)
anil@anil-HP-15-Notebook-PC ~ $
anil@anil-HP-15-Notebook-PC ~ $ lshw -C network WARNING: you should run this program as super-user. *-network description: Ethernet interface product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:08:00.0 logical name: eth0 version: 07 serial: f8:a9:63:90:62:b1 size: 10Mbit/s capacity: 100Mbit/s width: 64 bits clock: 33MHz capabilities: bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8106e-1_0.0.1 06/29/12 latency=0 link=no multicast=yes port=MII speed=10Mbit/s resources: irq:57 ioport:4000(size=256) memory:b5600000-b5600fff memory:b5400000-b5403fff *-network DISABLED description: Wireless interface product: RT3290 Wireless 802.11n 1T/1R PCIe vendor: Ralink corp. physical id: 0 bus info: pci@0000:0a:00.0 logical name: wlan0 version: 00 serial: 9c:ad:97:5b:16:45 width: 32 bits clock: 33MHz capabilities: bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=rt2800pci driverversion=3.13.0-37-generic firmware=0.37 latency=0 link=no multicast=yes wireless=IEEE 802.11bgn resources: irq:16 memory:b5510000-b551ffff WARNING: output may be incomplete or inaccurate, you should run this program as super-user. anil@anil-HP-15-Notebook-PC ~ $
anil@anil-HP-15-Notebook-PC ~ $ lshw -C Hardware Lister (lshw) - B.02.16 usage: lshw [-format] [-options ...] lshw -version
-version print program version (B.02.16)
format can be -html output hardware tree as HTML -xml output hardware tree as XML -short output hardware paths -businfo output bus information options can be -class CLASS only show a certain class of hardware -C CLASS same as '-class CLASS' -c CLASS same as '-class CLASS' -disable TEST disable a test (like pci, isapnp, cpuid, etc. ) -enable TEST enable a test (like pci, isapnp, cpuid, etc. ) -quiet don't display status -sanitize sanitize output (remove sensitive information like serial numbers, etc.) -numeric output numeric IDs (for PCI, USB, etc.)
anil@anil-HP-15-Notebook-PC ~ $
anil@anil-HP-15-Notebook-PC ~ $ rfkill list 0: phy0: Wireless LAN Soft blocked: yes Hard blocked: yes 1: hp-wifi: Wireless LAN Soft blocked: yes Hard blocked: no 2: hp-bluetooth: Bluetooth Soft blocked: yes Hard blocked: no anil@anil-HP-15-Notebook-PC ~ $
anil@anil-HP-15-Notebook-PC ~ $ lsusb Bus 001 Device 003: ID 0bda:5776 Realtek Semiconductor Corp. Bus 001 Device 002: ID 8087:8000 Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 004: ID 12d1:1505 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard Bus 002 Device 002: ID 24ae:2000 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub anil@anil-HP-15-Notebook-PC ~ $
anil@anil-HP-15-Notebook-PC ~ $ sudo lsusb [sudo] password for anil: Bus 001 Device 003: ID 0bda:5776 Realtek Semiconductor Corp. Bus 001 Device 002: ID 8087:8000 Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 004: ID 12d1:1505 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard Bus 002 Device 002: ID 24ae:2000 Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub anil@anil-HP-15-Notebook-PC ~ $
Wth regards Anil Kumar

Wireless Fail - Netgear Wg311t On Xubuntu

The most recent info on this card is about 10 years old.

The story is that I had an old dying PC with a vast accumulation of dust, causing sparks to fly.
I transferred the disk & wireless card across to a "known good PC" - and "amazingly" it worked.

This lasted for about a week.
OS is Xubuntu 12.04 and recommended updates of an unknown nature were applied from repositories & PPA's (not by me).

Soon after, wireless on the ancient Netgear wg311t PCI card failed.
I've tried moving it to a different slot - still does not work.
I've tried booting up from a Xubuntu 14.04.2 DVD - still does not work.
The two slots give slightly different results to the command Code:
dmesg | grep ath5k

First slot Code:
[   63.714417] ath5k 0000:05:06.0: registered as 'phy0'
[   63.733142] ath5k: phy0: failed to wakeup the MAC Chip
[   63.733482] ath5k: probe of 0000:05:06.0 failed with error -5

Second slot Code:
[   13.594859] ath5k 0000:05:08.0: PCI INT A -> Link[APC3] -> GSI 18 (level, low) -> IRQ 18
[   13.594943] ath5k 0000:05:08.0: registered as 'phy0'
[   13.606136] ath5k phy0: failed to wakeup the MAC Chip
[   13.606531] ath5k 0000:05:08.0: PCI INT A disabled
[   13.606768] ath5k: probe of 0000:05:08.0 failed with error -5

I'm prepared to buy a replacement card - so long as it is cheap!

How To Run A Command In Another Command?

I am not sure how to ask this, sorry.

if I had a code like this

Code:
# grep -a ": " md5list.txt | cut -f2,3 -d


How can I run the command basename for each line of the output?

basename {(grep -a ": " md5list.txt | cut -f2,3 -d )}


EDIT: A little more clarity on what im doing:
I didn't realize that 'md5sums' was a link to a nice formatted page. So I copied all packages here and put them into a text file. I decided to write a script that put all of these in that format.

So basically, even though I have already ran the md5sum -c 'md5sum-list' I still want to finish this small project because I am learning a ton.

Minimal Centos 6.6 Wifi Can Scan And See APs But Will Not Connect To An AP

I am currently running a Minimal version of Centos 6.6 Ive searched all over the internet to see if anyone has seen this problem before. I can do a iwlist scan wlan0 and see my AP but it will not connect. I have encryption turned off. Ive tried to use a static and DHCP address in the ifcfg-wlan0 file. I used a laptop to verify that I am able to connecto to my AP and get an IP address so I know the AP is functioning properly.

any help would be appreciated.

Thanks

Running Centos 6.6 Minimal
WIadapter : ASUS USB-N13
Ive installed the following:
Wireless-tools
wpa-supplicant
dbus
r8192cu drivers
rtlwifi-firmware

********messages file has the following when I do a ifup wlan0:

[root@localhost log]# tail -f messages
Feb 10 11:46:54 localhost dhclient[1756]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10 (xid=0x2a6a01ee)
Feb 10 11:46:54 localhost dhclient[1756]: send_packet: No such device or address
Feb 10 11:47:04 localhost dhclient[1756]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10 (xid=0x2a6a01ee)
Feb 10 11:47:04 localhost dhclient[1756]: send_packet: No such device or address
Feb 10 11:47:14 localhost dhclient[1756]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12 (xid=0x2a6a01ee)
Feb 10 11:47:14 localhost dhclient[1756]: send_packet: No such device or address
Feb 10 11:47:26 localhost dhclient[1756]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13 (xid=0x2a6a01ee)
Feb 10 11:47:26 localhost dhclient[1756]: send_packet: No such device or address
Feb 10 11:47:39 localhost dhclient[1756]: No DHCPOFFERS received.
Feb 10 11:47:39 localhost dhclient[1756]: No working leases in persistent database - sleeping.
Feb 10 11:50:53 localhost dhclient[4075]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5 (xid=0x5128c82e)
Feb 10 11:50:58 localhost dhclient[4075]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7 (xid=0x5128c82e)
Feb 10 11:51:05 localhost dhclient[4075]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 20 (xid=0x5128c82e)

--------------------------------

********When I do a ip link show wlan0:

[root@localhost dispatcher.d]# ip link show wlan0
11: wlan0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether ac:9e:17:5b:9d:8d brd ff:ff:ff:ff:ff:ff

----------------------------------

*********message log when I do a iwlist wlan0 scan:

Feb 10 11:54:21 localhost dhclient[1756]: send_packet: No such device or address
Feb 10 11:54:36 localhost kernel: _rtw_pwr_wakeup call ips_leave....
Feb 10 11:54:36 localhost kernel: ==>ips_leave cnts:1
Feb 10 11:54:36 localhost kernel: ===> rtw_ips_pwr_up..............
Feb 10 11:54:36 localhost kernel: ===> ips_netdrv_open.........
Feb 10 11:54:36 localhost kernel: ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC
Feb 10 11:54:36 localhost kernel: FirmwareDownload92C accquire FW from embedded image
Feb 10 11:54:36 localhost kernel: fw_ver=v88, fw_subver=2, sig=0x88c0
Feb 10 11:54:36 localhost kernel: fw download ok!
Feb 10 11:54:36 localhost kernel: Set RF Chip ID to RF_6052 and RF type to 2.
Feb 10 11:54:37 localhost kernel: IQK:Start!!!
Feb 10 11:54:37 localhost kernel: Path A IQK Success!!
Feb 10 11:54:37 localhost kernel: Path B IQK Success!!
Feb 10 11:54:37 localhost kernel: Path A IQK Success!!
Feb 10 11:54:37 localhost kernel: Path B IQK Success!!
Feb 10 11:54:37 localhost kernel: IQK: final_candidate is 0
Feb 10 11:54:37 localhost kernel: IQK: RegE94=fe RegE9C=3ff RegEA4=fd RegEAC=3fa RegEB4=102 RegEBC=b RegEC4=fa RegECC=1
Feb 10 11:54:37 localhost kernel: Path A IQ Calibration Success !
Feb 10 11:54:37 localhost kernel: Path B IQ Calibration Success !
Feb 10 11:54:37 localhost kernel: pdmpriv->TxPowerTrackControl = 1
Feb 10 11:54:37 localhost kernel: rtl8192cu_hal_init in 560ms
Feb 10 11:54:37 localhost kernel: <=== rtw_ips_pwr_up.............. in 569ms
Feb 10 11:54:37 localhost kernel: ==> ips_leave.....LED(0x00028080)...
Feb 10 11:54:38 localhost kernel: survey done event(3a) band:0 for wlan0
Feb 10 11:54:40 localhost dhclient[1756]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15 (xid=0x3d6d4ae3)
Feb 10 11:54:40 localhost dhclient[1756]: send_packet: No such device or address
Feb 10 11:54:41 localhost kernel: ==>rtw_ps_processor .fw_state(0)
Feb 10 11:54:41 localhost kernel: ==>ips_enter cnts:2
Feb 10 11:54:41 localhost kernel: ===> rtw_ips_pwr_down...................
Feb 10 11:54:41 localhost kernel: ====> rtw_ips_dev_unload...
Feb 10 11:54:41 localhost kernel: usb_read_port_cancel
Feb 10 11:54:41 localhost kernel: usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Feb 10 11:54:41 localhost kernel: usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Feb 10 11:54:41 localhost kernel: usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Feb 10 11:54:41 localhost kernel: usb_read_port_complete()-1284: RX Warning! bDriverStopped(0) OR bSurpriseRemoved(0) bReadPortCancel(1)
Feb 10 11:54:41 localhost kernel: usb_write_port_cancel
Feb 10 11:54:41 localhost kernel: ==> rtl8192cu_hal_deinit
Feb 10 11:54:41 localhost kernel: bkeepfwalive(0)
Feb 10 11:54:41 localhost kernel: card disble without HWSM...........
Feb 10 11:54:41 localhost kernel: <=== rtw_ips_pwr_down..................... in 30ms
Feb 10 11:54:55 localhost dhclient[1756]: No DHCPOFFERS received.
Feb 10 11:54:55 localhost dhclient[1756]: No working leases in persistent database - sleeping.



-----------------------------------------------------


*********output from iwlist wlan0 scan:

Cell 03 - Address: FC:8F:C4:09:49:5C
ESSID:"ANT"
Protocol:IEEE 802.11b
Mode:Master
Frequency:2.422 GHz (Channel 3)
Encryption keyff
Bit Rates:11 Mb/s
IE: Unknown: DD9E0050F204104A0001101044000102103B0001031047001063041253101920061228FC8FC409495C1021001B5265616C74 656B2053656D69636F6E647563746F7220436F72702E1023000752544C387878781024000D45562D323031302D30392D3230 1042000F3132333435363738393031323334371054000800060050F20400011011000952544B5F41505F3278100800022688 1049000600372A000120
Quality=48/100 Signal level=91/100


---------------------------------------------------------

*******ifcfg-wlan0 ... please note you will see a bunch of #'s just trying different configs:

TYPE=Wireless
DEVICE=wlan0
ESSID=ANT
MODE=Managed
#MODE=Auto
#TYPE=Ethernet
NM_CONTROLLED=no
BOOTPROTO=dhcp
BROADCAST=192.168.100.255
NETMASK=255.255.255.0
IPADDR=192.168.100.10
NETMASK=255.255.255.0
#PREFIX=24
GATEWAY=192.168.100.1
RATE=auto
SECURITYMODE=off
RTS=auto
FRAG=auto
#DEFROUTE=yes
#IPV4_FAILURE_FATAL=yes
#IPV6INIT=no
#NAME=wlan0
UUID=3c9clabd-3ce0-4aea-304a-bf243b69e989
ONBOOT=no
ONHOTPLUG=yes
HWADDR=AC:9E:17:5B:9D:8D
PEERDNS=no
#PEERROUTES=yes

Changing The Output Of CPU And RAM Usage

I am using the following two commands to output CPU and RAM usage on a Linux machine.

Code:
/bin/grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}'

/usr/bin/free | grep Mem | awk '{print $3/$2 * 100.0 "%"}'

My problem is that the output is like this

Quote:
5.33672%
13.9723%
Is there a way to output a single number? For example

Quote:
5
13
Thank you