Linux.com

cooltoad

cooltoad

  • Linux.com Member
  • Posts: 7
  • Member Since: 30 May 13
  • Last Logged In: 08 Dec 13

Latest Posts

Posted by
Topic
Post Preview
Posted
  • cooltoad
    RE: Wireless Network Configuration?
    For wpa_supplicant I followed instructions from here: masrust.web.id/2011/07/24/linux-connect-to-wi-fi-from-command-line/ and here is the output # lspci | grep -i net 03:00.0 Network controller: Broadcom Corporation BCM43228 802.11a/b/g/n 09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 07) # iwconfig lo no wireless extensions. eth0 no wireless extensions. eth1 IEEE 802.11abgn ESSID:"" Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated Bit Rate=300 Mb/s Tx-Power:24 dBm Retry min limit:7 RTS thr:off Fragment thr:off Power Managementmode:All packets received Link Quality=5/5 Signal level=-256 dBm Noise level=-256 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 sit0 no wireless extensions. # ip link set eth1 up # iwlist eth1 scanning Cell 05 - Address: 20:AA:4BA:5D:AE ESSID:"blade" Mode:Managed Frequency:2.462 GHz (Channel 11) Quality:5/5 Signal level:-47 dBm Noise level:-85 dBm IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK IE: WPA Version 18960 Group Cipher : Proprietary Pairwise Ciphers (6) : Encryption key:on 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; 6 Mb/s; 9 Mb/s 12 Mb/s; 48 Mb/s # iwconfig eth1 essid blade key s:************ Error for wireless request "Set Encode" (8B2A) : SET failed on device eth1 ; Invalid argument. # wpa_passphrase blade ************ > /etc/wpa_supplicant/wpa_supplicant.conf # wpa_supplicant -B -Dwext -i eth1 -c /etc/wpa_supplicant/wpa_supplicant.conf (wext) Device eth1 kernel driver name: wl. Device eth1 kernel driver name: wl. # iwconfig eth1 eth1 IEEE 802.11abgn ESSID:"" Mode:Managed Frequency:5.6 GHz Access Point: Not-Associated Bit Rate=300 Mb/s Tx-Power:24 dBm Retry min limit:7 RTS thr:off Fragment thr:off Power Managementmode:All packets received Link Quality=5/5 Signal level=-256 dBm Noise level=-90 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 # dhcpcd eth1 bash: dhcpcd: command not found I checked /etc/wpa_supplicant/wpa_supplicant.conf and it has the correct essid and key. What is going wrong?
    Link to this post 05 Dec 13

    For wpa_supplicant I followed instructions from here:
    masrust.web.id/2011/07/24/linux-connect-to-wi-fi-from-command-line/
    and here is the output

    # lspci | grep -i net
    03:00.0 Network controller: Broadcom Corporation BCM43228 802.11a/b/g/n
    09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 07)


    # iwconfig
    lo no wireless extensions.

    eth0 no wireless extensions.

    eth1 IEEE 802.11abgn ESSID:""
    Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
    Bit Rate=300 Mb/s Tx-Power:24 dBm
    Retry min limit:7 RTS thr:off Fragment thr:off
    Power Managementmode:All packets received
    Link Quality=5/5 Signal level=-256 dBm Noise level=-256 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0

    sit0 no wireless extensions.


    # ip link set eth1 up


    # iwlist eth1 scanning
    Cell 05 - Address: 20:AA:4BA:5D:AE
    ESSID:"blade"
    Mode:Managed
    Frequency:2.462 GHz (Channel 11)
    Quality:5/5 Signal level:-47 dBm Noise level:-85 dBm
    IE: IEEE 802.11i/WPA2 Version 1
    Group Cipher : CCMP
    Pairwise Ciphers (1) : CCMP
    Authentication Suites (1) : PSK
    IE: WPA Version 18960
    Group Cipher : Proprietary
    Pairwise Ciphers (6) : Encryption key:on
    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; 6 Mb/s; 9 Mb/s
    12 Mb/s; 48 Mb/s


    # iwconfig eth1 essid blade key s:************
    Error for wireless request "Set Encode" (8B2A) :
    SET failed on device eth1 ; Invalid argument.


    # wpa_passphrase blade ************ > /etc/wpa_supplicant/wpa_supplicant.conf


    # wpa_supplicant -B -Dwext -i eth1 -c /etc/wpa_supplicant/wpa_supplicant.conf
    (wext) Device eth1 kernel driver name: wl.
    Device eth1 kernel driver name: wl.


    # iwconfig eth1
    eth1 IEEE 802.11abgn ESSID:""
    Mode:Managed Frequency:5.6 GHz Access Point: Not-Associated
    Bit Rate=300 Mb/s Tx-Power:24 dBm
    Retry min limit:7 RTS thr:off Fragment thr:off
    Power Managementmode:All packets received
    Link Quality=5/5 Signal level=-256 dBm Noise level=-90 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0


    # dhcpcd eth1
    bash: dhcpcd: command not found


    I checked /etc/wpa_supplicant/wpa_supplicant.conf and it has the correct essid and key. What is going wrong?

  • cooltoad
    Wireless Network Configuration?
    The network connection icon on the top right corner shows "no network connection" but I can see all the available wireless networks. With this I assume that driver is working fine and wireless connectivity is available without access point connectivity. Here is the output for iwconfig eth1 eth1 IEEE 802.11abgn ESSID:"" Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated Bit Rate=144 Mb/s Tx-Power:24 dBm Retry min limit:7 RTS thr:off Fragment thr:off Power Managementmode:All packets received Link Quality=5/5 Signal level=-256 dBm Noise level=-90 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 Then I assume it is the problem of network configuration. When I right click to Edit Connections... there are 3 tabs available for the selected connection: Wireless, Wireless Security and IPv4 Setting. The Connect automatically option is selected and for the Wireless tab I have set the SSID and Mode: Infrastructure. The security in Wireless Security tab is set to WPA & WPA2 Personal and the password is set. For IPv4 Setting tab Method: Automatic (DHCP) is set. With this configuration when I apply to connect it asks again and again for "Authentication required by wireless network" with WPA & WPA2 Personal and password information but failed to connect. The configuration files looks like this: /etc/sysconfig/network-scripts/ifcfg-eth1 # Broadcom Corporation BCM43228 802.11a/b/g/n DEVICE=eth1 BOOTPROTO=dhcp ONBOOT=no HWADDR=08:ed:b9:e1:4e:ec /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=yes HOSTNAME=localhost.localdomain /etc/resolv.conf # No nameservers found; try putting DNS servers into your # ifcfg files in /etc/sysconfig/network-scripts like so: # # DNS1=xxx.xxx.xxx.xxx # DNS2=xxx.xxx.xxx.xxx # DOMAIN=lab.foo.com bar.foo.com I had disabled the SELinux and Firewall since SELinux was preventing NetworkManager (NetworkManager_t) "execute" to ./dnsmasq (dnsmasq_exec_t). Another issue is that when I try to save the Network Configuration (System->Administrator->Network) after editing the wireless device configuration it exits with an unhandled exception... Component: system-config-network Version: 1.3.99.21 Summary: TBf6c835f4 NCHardwareList.py:482:save:AttributeError: HwWireless instance has no attribute 'type'... Also I don't know what to set in Wireless Settings tab of wireless device configuration if I will be able to save it. With Windows 7 on the same system (dual boot) I have absolutely no issue in wireless connectivity with the following settings. IPv4 connectivity, Access Point, Security type: WPA2-Personal and Encryption: AES Please help to configure the wireless connection. Thanks.
    Link to this post 23 Nov 13

    The network connection icon on the top right corner shows "no network connection" but I can see all the available wireless networks. With this I assume that driver is working fine and wireless connectivity is available without access point connectivity. Here is the output for iwconfig eth1
    eth1 IEEE 802.11abgn ESSID:""
    Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
    Bit Rate=144 Mb/s Tx-Power:24 dBm
    Retry min limit:7 RTS thr:off Fragment thr:off
    Power Managementmode:All packets received
    Link Quality=5/5 Signal level=-256 dBm Noise level=-90 dBm
    Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
    Tx excessive retries:0 Invalid misc:0 Missed beacon:0

    Then I assume it is the problem of network configuration. When I right click to Edit Connections... there are 3 tabs available for the selected connection: Wireless, Wireless Security and IPv4 Setting. The Connect automatically option is selected and for the Wireless tab I have set the SSID and Mode: Infrastructure. The security in Wireless Security tab is set to WPA & WPA2 Personal and the password is set. For IPv4 Setting tab Method: Automatic (DHCP) is set. With this configuration when I apply to connect it asks again and again for "Authentication required by wireless network" with WPA & WPA2 Personal and password information but failed to connect. The configuration files looks like this:

    /etc/sysconfig/network-scripts/ifcfg-eth1
    # Broadcom Corporation BCM43228 802.11a/b/g/n
    DEVICE=eth1
    BOOTPROTO=dhcp
    ONBOOT=no
    HWADDR=08:ed:b9:e1:4e:ec

    /etc/sysconfig/network
    NETWORKING=yes
    NETWORKING_IPV6=yes
    HOSTNAME=localhost.localdomain

    /etc/resolv.conf
    # No nameservers found; try putting DNS servers into your
    # ifcfg files in /etc/sysconfig/network-scripts like so:
    #
    # DNS1=xxx.xxx.xxx.xxx
    # DNS2=xxx.xxx.xxx.xxx
    # DOMAIN=lab.foo.com bar.foo.com

    I had disabled the SELinux and Firewall since SELinux was preventing NetworkManager (NetworkManager_t) "execute" to ./dnsmasq (dnsmasq_exec_t).

    Another issue is that when I try to save the Network Configuration (System->Administrator->Network) after editing the wireless device configuration it exits with an unhandled exception...
    Component: system-config-network
    Version: 1.3.99.21
    Summary: TBf6c835f4 NCHardwareList.py:482:save:AttributeError: HwWireless instance has no attribute 'type'...
    Also I don't know what to set in Wireless Settings tab of wireless device configuration if I will be able to save it.

    With Windows 7 on the same system (dual boot) I have absolutely no issue in wireless connectivity with the following settings.
    IPv4 connectivity, Access Point, Security type: WPA2-Personal and Encryption: AES

    Please help to configure the wireless connection. Thanks.

  • cooltoad
    NetworkManager unhandled exception
    When I try to save the configuration for the wireless settings of RHEL 5.9 Network Manager it throws an unhandled exception with the following detail. Component: system-config-network Version: 1.3.99.21 Summary: TBf6c835f4 NCHardwareList.py:482:save:AttributeError: HwWireless instance has no attribute 'type' ... The wireless connection is established after disabling SELinux and firewall but no internet available, and for that I want to configure the NetworkManager but I can't. Any help to solve this problem?
    Link to this post 21 Nov 13

    When I try to save the configuration for the wireless settings of RHEL 5.9 Network Manager it throws an unhandled exception with the following detail.

    Component: system-config-network
    Version: 1.3.99.21
    Summary: TBf6c835f4 NCHardwareList.py:482:save:AttributeError: HwWireless instance has no attribute 'type'
    ...

    The wireless connection is established after disabling SELinux and firewall but no internet available, and for that I want to configure the NetworkManager but I can't. Any help to solve this problem?

  • cooltoad
    RE: Unable to connect Wireless
    Ok, some progress in debugging but still problem is not solved. I created a new network connection from NetworkManager and when tried to connect, a SELinux AVC denial message appeared with the following detail. SELinux is preventing NetworkManager (NetworkManager_t) "execute" to ./dnsmasq (dnsmasq_exec_t). Detailed Description: SELinux denied access requested by NetworkManager. It is not expected that this access is required by NetworkManager and this access may signal an intrusion attempt. It is also possible that the specific version or configuration of the application is causing it to require additional access. Allowing Access: Sometimes labeling problems can cause SELinux denials. You could try to restore the default system file context for ./dnsmasq, restorecon -v './dnsmasq' If this does not work, there is currently no automatic way to allow this access. Instead, you can generate a local policy module to allow this access - see FAQ (http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can disable SELinux protection altogether. Disabling SELinux protection is not recommended. Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package. Additional Information: Source Context: system_u:system_r:NetworkManager_t Target Context: system_u:object_r:dnsmasq_exec_t Target Objects: ./dnsmasq [ file ] Source: NetworkManager Source Path: /usr/sbin/NetworkManager Port: Source RPM Packages: NetworkManager-0.7.0-13.el5 Policy RPM: selinux-policy-2.4.6-338.el5 Selinux Enabled: True Policy Type: targeted MLS Enabled: True Enforcing Mode: Enforcing Plugin Name: catchall_file Platform: Linux 2.6.18-348.el5 #1 SMP I am not willing to disable SELinux protection and don't know how to create a local policy module. Any suggestion to resolve this issue?
    Link to this post 20 Nov 13

    Ok, some progress in debugging but still problem is not solved. I created a new network connection from NetworkManager and when tried to connect, a SELinux AVC denial message appeared with the following detail.

    SELinux is preventing NetworkManager (NetworkManager_t) "execute" to ./dnsmasq (dnsmasq_exec_t).

    Detailed Description:
    SELinux denied access requested by NetworkManager. It is not expected that this access is required by NetworkManager and this access may signal an intrusion attempt. It is also possible that the specific version or configuration of the application is causing it to require additional access.

    Allowing Access:
    Sometimes labeling problems can cause SELinux denials. You could try to restore the default system file context for ./dnsmasq,

    restorecon -v './dnsmasq'

    If this does not work, there is currently no automatic way to allow this access. Instead, you can generate a local policy module to allow this access - see FAQ (http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can disable SELinux protection altogether. Disabling SELinux protection is not recommended. Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

    Additional Information:
    Source Context: system_u:system_r:NetworkManager_t
    Target Context: system_u:object_r:dnsmasq_exec_t
    Target Objects: ./dnsmasq [ file ]
    Source: NetworkManager
    Source Path: /usr/sbin/NetworkManager
    Port: <Unknown>
    Source RPM Packages: NetworkManager-0.7.0-13.el5
    Policy RPM: selinux-policy-2.4.6-338.el5
    Selinux Enabled: True
    Policy Type: targeted
    MLS Enabled: True
    Enforcing Mode: Enforcing
    Plugin Name: catchall_file
    Platform: Linux 2.6.18-348.el5 #1 SMP

    I am not willing to disable SELinux protection and don't know how to create a local policy module. Any suggestion to resolve this issue?

  • cooltoad
    Unable to connect Wireless
    I have managed to install Broadcom BCM43228 Wireless adapter on a laptop running CentOS 5.9 using instructions at: wiki.centos.org/HowTos/Laptops/Wireless/Broadcom I had the problem "Error for wireless request "Set Encode" (8B2A): SET failed on device... mentioned on the same page and solved it following the instructions at: wiki.centos.org/HowTos/Laptops/NetworkManager After reboot the NetworkManager is enabled showing all the available networks. However, with regular user the request for default keyring password was popping-up again and again and was not accepting any password. I logged in as root and was able to set the keyring password. When I select the network from drop down menu of NetworkManager a pop-up shows up asking for: Authentication required by Wireless Network Password or encryption keys are required to access the wireless network 'blade' Wireless security: WPA & WPA Personal Password: It fails to connect even I verified the SSID and password is correct which works fine under Windows 7. I have also tried to configure system-config-network GUI but unable to activate the wireless adapter (eth1) and cannot File->Save the setting with the following error: Component: system-config-network Version: 1.3.99.21 Summary: TBf6c835f4 NCHardwareList.py:482:save:AttributeError: HwWireless instance has no attribute 'type' ... I also found the following link and now confused (establish a Wifi connection at system startup (without login)...). Do I need to use wpa_supplicant or NetworkManager? forums.oracle.com/thread/1118672 Can anyone please help to resolve this issue.
    Link to this post 19 Nov 13

    I have managed to install Broadcom BCM43228 Wireless adapter on a laptop running CentOS 5.9 using instructions at:
    wiki.centos.org/HowTos/Laptops/Wireless/Broadcom

    I had the problem "Error for wireless request "Set Encode" (8B2A): SET failed on device... mentioned on the same page and solved it following the instructions at:
    wiki.centos.org/HowTos/Laptops/NetworkManager

    After reboot the NetworkManager is enabled showing all the available networks. However, with regular user the request for default keyring password was popping-up again and again and was not accepting any password. I logged in as root and was able to set the keyring password.
    When I select the network from drop down menu of NetworkManager a pop-up shows up asking for:
    Authentication required by Wireless Network
    Password or encryption keys are required to access the wireless network 'blade'
    Wireless security: WPA & WPA Personal
    Password:

    It fails to connect even I verified the SSID and password is correct which works fine under Windows 7.

    I have also tried to configure system-config-network GUI but unable to activate the wireless adapter (eth1) and cannot File->Save the setting with the following error:
    Component: system-config-network
    Version: 1.3.99.21
    Summary: TBf6c835f4 NCHardwareList.py:482:save:AttributeError: HwWireless instance has no attribute 'type' ...

    I also found the following link and now confused (establish a Wifi connection at system startup (without login)...). Do I need to use wpa_supplicant or NetworkManager?
    forums.oracle.com/thread/1118672

    Can anyone please help to resolve this issue.

  • cooltoad
    Do not use Ubuntu !!!
    For the following reasons don't install or recommend Ubuntu. 1. Development of Ubuntu is led by Canonical, Ltd. a UK-based "trading" company which generates revenue through the sale of "technical support" and "services." 2. By installing users agree to allow Ubuntu's parent company Canonical to collect user search data and IP addresses and to disclose this information to third parties including Facebook, Twitter, BBC and Amazon. 3. The adwares and spywares introduced in Ubuntu violates user's privacy and is one of the rare occasions in which a free software developer persists in keeping a malicious feature in its version of a program. 4. Whenever user searches the local files for a string using Ubuntu desktop, Ubuntu sends that string to one of Canonical's servers. 5. Ubuntu has received widespread objection from the open source community for violating free system distribution guidelines. 6. Canonical disgruntled upstream open source developers by introducing Mir, their own display server not derived from X11 or Wayland. 7. Ubuntu's policy prohibits commercial redistribution of exact copies of Ubuntu, denying the baseline freedom. 8. Ubuntu is basically Debian with extra "cool" look and is not binary compatible with Red Hat Enterprise Linux and CentOS which are used for most scientific development. references: [url=en.wikipedia.org/wiki/Ubuntu_(operating_system)]en.wikipedia.org/wiki/Ubuntu_(operating_system)[/url] [url=gnu.org/philosophy/ubuntu-spyware.html]gnu.org/philosophy/ubuntu-spyware.html[/url] [url=phoronix.com/scan.php?page=news_item&px=MTMxNzY]phoronix.com/scan.php?page=news_item&px=MTMxNzY[/url] [url=gnu.org/distros/free-system-distribution-guidelines.html]gnu.org/distros/free-system-distribution-guidelines.html[/url] [url=linuxlock.blogspot.com/2013/05/ubuntu-and-their-uck-y-problem.html ]linuxlock.blogspot.com/2013/05/ubuntu-and-their-uck-y-problem.html[/url]
    Link to this post 30 May 13

    For the following reasons don't install or recommend Ubuntu.

    1. Development of Ubuntu is led by Canonical, Ltd. a UK-based "trading" company which generates revenue through the sale of "technical support" and "services."

    2. By installing users agree to allow Ubuntu's parent company Canonical to collect user search data and IP addresses and to disclose this information to third parties including Facebook, Twitter, BBC and Amazon.

    3. The adwares and spywares introduced in Ubuntu violates user's privacy and is one of the rare occasions in which a free software developer persists in keeping a malicious feature in its version of a program.

    4. Whenever user searches the local files for a string using Ubuntu desktop, Ubuntu sends that string to one of Canonical's servers.

    5. Ubuntu has received widespread objection from the open source community for violating free system distribution guidelines.

    6. Canonical disgruntled upstream open source developers by introducing Mir, their own display server not derived from X11 or Wayland.

    7. Ubuntu's policy prohibits commercial redistribution of exact copies of Ubuntu, denying the baseline freedom.

    8. Ubuntu is basically Debian with extra "cool" look and is not binary compatible with Red Hat Enterprise Linux and CentOS which are used for most scientific development.

    references:
    en.wikipedia.org/wiki/Ubuntu_(operating_system)
    gnu.org/philosophy/ubuntu-spyware.html
    phoronix.com/scan.php?page=news_item&px=MTMxNzY
    gnu.org/distros/free-system-distribution-guidelines.html
    linuxlock.blogspot.com/2013/05/ubuntu-and-their-uck-y-problem.html

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board