Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

[SOLVED] problem with wpa_supplicant-0.7.3

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
29 posts
  • 1
  • 2
  • Next
Author
Message
adramalech707
Apprentice
Apprentice
Posts: 236
Joined: Tue Oct 06, 2009 5:31 pm
Location: California, USA

[SOLVED] problem with wpa_supplicant-0.7.3

  • Quote

Post by adramalech707 » Sat Sep 18, 2010 4:54 am

okay so i have no idea why wpa_supplicant doesn't work but there is no default .conf file nor does it want to run....what should i do to get it working re-emerge it???

running ~amd64 build with custom kernel 2.6.35-r7 with atheros 5XXX driver installed....
Last edited by adramalech707 on Mon Sep 20, 2010 9:37 pm, edited 1 time in total.
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Sat Sep 18, 2010 5:27 am

is this a new install that has never had a working wpa_supplicant or was it working yesterday until you emerged wpa_supplicant 0.7.3?
nothing inherently wrong with wpa_supplicant-0.7.3. I just emerged it and it kicked right in when I restarted wlan0.
pls post ifconfig output, iwconfig output, iwlist scan output, /etc/conf.d/net, /etc/wpa_supplicant/wpa_supplicant.conf
Top
adramalech707
Apprentice
Apprentice
Posts: 236
Joined: Tue Oct 06, 2009 5:31 pm
Location: California, USA

  • Quote

Post by adramalech707 » Sat Sep 18, 2010 5:27 pm

okay what i forgot to do is add some use flags....wps, qt4, fasteap, eap-sim, madwifi....

so i hope this will fix the issue...also some how i guess i have emerged networkmanager i probably won't use it...wpa_supplicant i think is very powerful....and when i hardline i have dhcpcd installed...

one thing though i saw that both dbus....dhcpcd where on rc-update but didn't show a runlevel??? and i cannot delete them...so i don't have dhcpcd starting at boot only need wifi starting...
Top
adramalech707
Apprentice
Apprentice
Posts: 236
Joined: Tue Oct 06, 2009 5:31 pm
Location: California, USA

  • Quote

Post by adramalech707 » Sun Sep 19, 2010 3:54 am

okay still isn't working correctly:

Code: Select all

(chroot) sysresccd log # /etc/init.d/net.wlan0 start
 * Caching service dependencies ...                                                                  [ ok ]
 * Starting udevd ...
 * start-stop-daemon: /sbin/udevd is already running                                                 [ !! ]
 * ERROR: udev failed to start
 * Starting udevd ...                                                                                [ ok ]
 * Populating /dev with existing devices through uevents ...                                         [ ok ]
 * Waiting for uevents to be processed ...                                                           [ ok ]
 * Checking local filesystems  ...
/dev/sda1 is mounted.  e2fsck: Cannot continue, aborting.


 * Operational error                                                                                 [ !! ]
 * Mounting local filesystems ...                                                                    [ ok ]
 * Bringing up interface wlan0
 *   Caching network module dependencies
 *   Starting wpa_supplicant on wlan0 ...
Line 5: unknown global field 'network{'.
Line 5: Invalid configuration line 'network{'.
Line 6: unknown global field 'ssid="adramalech"'.
Line 6: Invalid configuration line 'ssid="adramalech"'.
Line 7: unknown global field 'proto=WPA2'.
Line 7: Invalid configuration line 'proto=WPA2'.
Line 8: unknown global field 'key_mgmt=WPA_PSK'.
Line 8: Invalid configuration line 'key_mgmt=WPA_PSK'.
Line 9: unknown global field 'pairwise=CCMP TKIP'.
Line 9: Invalid configuration line 'pairwise=CCMP TKIP'.
Line 10: unknown global field 'psk="ZEro((!@34"'.
Line 10: Invalid configuration line 'psk="ZEro((!@34"'.
Line 11: unknown global field 'priority=5'.
Line 11: Invalid configuration line 'priority=5'.
Line 12: unknown global field '}'.
Line 12: Invalid configuration line '}'.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
 *   start-stop-daemon: failed to start `/usr/sbin/wpa_supplicant'                                   [ !! ]
 * ERROR: net.wlan0 failed to start
this is what wpa_supplicant.conf looks like right now:

Code: Select all

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network{
	ssid="adramalech"
	proto=WPA2
	key_mgmt=WPA_PSK
	pairwise=CCMP TKIP
	psk="XXXXXXXXXX"
	priority=5
}
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Sun Sep 19, 2010 5:57 am

you are running openrc and baselayout2 but your /etc/conf.d/net appears to be using the old syntax
From: http://www.gentoo.org/doc/en/openrc-migration.xml

Code: Select all

Network

Due to baselayout and OpenRC being broken into two different packages, your net.eth0 initscript may disappear during the upgrade process. To replace this initscript please perform the following:

Code Listing 2.9: Adding back missing net.eth0 script
# cd /etc/init.d
# ln -s net.lo net.eth0
If you are missing any other network initscripts, follow the instructions above to re-add them. Simply replace eth0 with the name of your network device.

Also, /etc/conf.d/net no longer uses bash-style arrays for configuration. Please review /usr/share/doc/openrc-<version>/net.example for configuration instructions. Conversion should be relatively straight-forward, for example a static IP assignment would change as follows:

Code Listing 2.10: Old /etc/conf.d/net style
config_eth0=( "192.168.1.37 netmask 255.255.255.0 brd 192.168.1.255" )
routes_eth0=( "default via 192.168.1.100" )
Code Listing 2.11: New /etc/conf.d/net style
config_eth0="192.168.1.37 netmask 255.255.255.0 brd 192.168.1.255"
routes_eth0="default via 192.168.1.100" 
Please correct the syntax and run

Code: Select all

/etc/init.d/net.wlan0 restart
If it fails pls post ifconfig output, iwconfig output, iwlist scan output, /etc/conf.d/net.
rephrasing that :

Code: Select all

ifconfig
Post output

Code: Select all

ifconfig -a
Post output

Code: Select all

iwconfig
Post output

Code: Select all

iwlist scan
Post output

Code: Select all

cat /etc/conf.d/net
Post output
and

Code: Select all

rc-update show
Post output
recommend adding dbus hal udev policykit consolekit to your USE flags, if not present;

Code: Select all

emerge hal dbus udev policykit consolekit
, if not done;

Code: Select all

rc-update add dbus default
rc-update add hald default
rc-update add consolekit default
rc-update add udev sysinit
Top
adramalech707
Apprentice
Apprentice
Posts: 236
Joined: Tue Oct 06, 2009 5:31 pm
Location: California, USA

  • Quote

Post by adramalech707 » Sun Sep 19, 2010 6:45 am

well it doesn't fix anything here is my outputs:

ifconfig:

Code: Select all

wlan0     Link encap:Ethernet  HWaddr 00:24:2b:79:31:79  
          inet addr:192.168.80.120  Bcast:192.168.80.255  Mask:255.255.255.0
          inet6 addr: fe80::224:2bff:fe79:3179/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:153868 errors:0 dropped:0 overruns:0 frame:0
          TX packets:79732 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:221420997 (211.1 MiB)  TX bytes:7518186 (7.1 MiB)
ifconfig -a :

Code: Select all

wlan0     Link encap:Ethernet  HWaddr 00:24:2b:79:31:79  
          inet addr:192.168.80.120  Bcast:192.168.80.255  Mask:255.255.255.0
          inet6 addr: fe80::224:2bff:fe79:3179/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:154564 errors:0 dropped:0 overruns:0 frame:0
          TX packets:80866 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:221780728 (211.5 MiB)  TX bytes:7674816 (7.3 MiB)

iwconfig:

Code: Select all

wlan0     IEEE 802.11bg  ESSID:"adramalech"  
          Mode:Managed  Frequency:2.447 GHz  Access Point: 00:26:5A:F5:23:EF   
          Bit Rate=54 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=67/70  Signal level=-43 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
cat /etc/conf.d/net

Code: Select all

# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).

modules="wpa_supplicant"
iwlist scan

Code: Select all

wlan0     Scan completed :
          Cell 01 - Address: 00:26:5A:F5:23:EF
                    Channel:8
                    Frequency:2.447 GHz (Channel 8)
                    Quality=66/70  Signal level=-44 dBm  
                    Encryption key:on
                    ESSID:"adramalech"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=000000dd09b5b96f
                    Extra: Last beacon: 23ms ago
                    IE: Unknown: 000A616472616D616C656368
                    IE: Unknown: 010482848B96
                    IE: Unknown: 030108
                    IE: Unknown: 2A0100
                    IE: Unknown: 32080C1218243048606C
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 2D1A4E101BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D1608071B0000000F000000000000000000000000000000
                    IE: Unknown: DD1E00904C336E101BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: DD1A00904C340807030000000F000000000000000000000000000000
                    IE: Unknown: DD7F0050F204104A0001101044000102103B00010310470010A2B02CAA026731C08F939C9777B063531021000E442D4C696E6B2053797374656D73102300074449522D363535102400024134104200046E6F6E651054000800060050F204000110110017587472656D65204E204749474142495420526F75746572100800020084
          Cell 02 - Address: 00:23:69:98:30:EA
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=29/70  Signal level=-81 dBm  
                    Encryption key:on
                    ESSID:"7636linksys"
                    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:Master
                    Extra:tsf=00000000004f54dd
                    Extra: Last beacon: 924ms ago
                    IE: Unknown: 000B373633366C696E6B737973
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 030101
                    IE: Unknown: 2A0100
                    IE: Unknown: 32043048606C
                    IE: Unknown: DD180050F2020101020003A4000027A4000042435E0062322F00
                    IE: Unknown: DD1E00904C334C101BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: 2D1A4C101BFFFF000000000000000000000000000000000000000000
                    IE: Unknown: DD1A00904C3401001B00000000000000000000000000000000000000
                    IE: Unknown: 3D1601001B00000000000000000000000000000000000000
                    IE: Unknown: DD0900037F01010000FF7F
                    IE: Unknown: DD050050F20500
                    IE: Unknown: DD770050F204104A0001101044000102103B0001031047001006369686068606369686068626A61676102100104C696E6B73797320627920436973636F102300085752543136304E4C1024000876312E30302E30311042000231371054000800060050F2040001101100085752543136304E4C100800020084
                    IE: Unknown: DD0A00037F04010000000000
          Cell 03 - Address: 00:22:3F:AC:C1:16
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=24/70  Signal level=-86 dBm  
                    Encryption key:on
                    ESSID:"NETGEAR"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              12 Mb/s; 24 Mb/s; 36 Mb/s
                    Bit Rates:9 Mb/s; 18 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=00000493a23b8181
                    Extra: Last beacon: 56ms ago
                    IE: Unknown: 00074E455447454152
                    IE: Unknown: 010882848B960C183048
                    IE: Unknown: 03010B
                    IE: Unknown: 2A0100
                    IE: Unknown: 32041224606C
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
rc-update show

Code: Select all

          consolefont |                                           boot
              modules |                                           boot
         termencoding |                                           boot
            killprocs | shutdown                                      
                 swap |                                           boot
                 mtab |                                           boot
             hostname |                                           boot
            savecache | shutdown                                      
               sysctl |                                           boot
              hwclock |                                           boot
               procfs |                                           boot
            net.wlan0 |                           default             
             bootmisc |                                           boot
             mount-ro | shutdown                                      
              urandom |                                           boot
           localmount |                                           boot
           vixie-cron |                           default             
                dmesg |                                   sysinit     
              keymaps |                                           boot
                local |                 nonetwork default             
            syslog-ng |                           default             
                 dbus |                                           boot
             netmount |                           default             
       udev-postmount |                           default             
                 root |                                           boot
                devfs |                                   sysinit     
                 udev |                                   sysinit     
                 fsck |                                           boot
               net.lo |                                           boot
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Sun Sep 19, 2010 2:58 pm

All the trouble may be from a missing = after network

the header is presented in the updated format; man wpa_supplicant refers

do you have wpa-gui available?
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
update_config=1

network={
mode=0
   ssid="adramalech"
psk="XXXXXXXX"
   proto=RSN
   key_mgmt=WPA-PSK
   pairwise=CCMP TKIP
   priority=5
}
Edited to replace WPA_PSK with WPA-PSK
Last edited by DONAHUE on Mon Sep 20, 2010 5:30 pm, edited 2 times in total.
Top
adramalech707
Apprentice
Apprentice
Posts: 236
Joined: Tue Oct 06, 2009 5:31 pm
Location: California, USA

  • Quote

Post by adramalech707 » Sun Sep 19, 2010 3:06 pm

i am stuck with chrooting into it with a livecd....i have like the base system installed but am having issues with getting xfce4-meta installed and get xorg-server configured because i use udev and not hal....


**edit**

how do i get rid of dhcp trying to run at boot???


it keeps saying

Code: Select all

no configuration specified; defaulting to DHCP
dhcp....
      running dhclient...
is there a way to stop eth0 from starting do i just delete the net.eth0???

also i tried that and well it still gives me an error on every line from 6-13 then it ill say:

Code: Select all

Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
*   start-stop-daemon: failed to start '/usr/sbin/spa_supplicant                 [ !! ]
* ERROR: net.wlan0 failed to start
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Sun Sep 19, 2010 3:23 pm

are you able to boot to a cli terminal (without cd or chroot)?

Have verified that wpa_supplicant-0.7.3 can work just fine in the chroot.

as you are not specifying ip addresses in /etc/conf.d/net you want dhcp-client to run as each interface is created.
Last edited by DONAHUE on Sun Sep 19, 2010 4:52 pm, edited 1 time in total.
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Sun Sep 19, 2010 4:48 pm

/etc/conf.d/net
modules_wlan0="wpa_supplicant"
modules_wlan0="dhcpcd"
wpa_supplicant_wlan0="-Dwext"
dhcp_wlan0="-t 1" # Timeout after 10 seconds
Check your menuconfig matches:
[*] Networking support --->
--- Networking support
Networking options --->
[ ] Amateur Radio support --->
< > CAN bus subsystem support --->
< > IrDA (infrared) subsystem support --->
< > Bluetooth subsystem support --->
< > RxRPC session sockets
--- Wireless
<*> cfg80211 - wireless configuration API
[ ] nl80211 testmode command
[ ] enable developer warnings
[ ] cfg80211 regulatory debugging
[*] enable powersave by default
[ ] cfg80211 DebugFS entries
[*] cfg80211 wireless extensions compatibility
[*] Wireless extensions sysfs files
<*> Common routines for IEEE802.11 drivers
[*] lib80211 debugging messages
<*> Generic IEEE 802.11 Networking Stack (mac80211)
Default rate control algorithm (Minstrel) --->
[ ] Enable mac80211 mesh networking (pre-802.11s) support
[*] Enable LED triggers
[ ] Export mac80211 internals in DebugFS
[ ] Select mac80211 debugging features --->
< > WiMAX Wireless Broadband support --->
< > RF switch subsystem support --->
< > Plan 9 Resource Sharing Support (9P2000) (Experimental) --->
if not recommend change and recompile.
Still recommend dbus hal udev consolekit policykit be handled as above.
Last edited by DONAHUE on Sun Sep 19, 2010 5:19 pm, edited 1 time in total.
Top
adramalech707
Apprentice
Apprentice
Posts: 236
Joined: Tue Oct 06, 2009 5:31 pm
Location: California, USA

  • Quote

Post by adramalech707 » Sun Sep 19, 2010 5:12 pm

hey i was wondering where i have /etc/conf.d/net

should i add -Dmadwifi??? for my atheros wifi card?

also i did run this not in chroot but booted into the actual partition and it seems that it does want to work..

i just rebuilt kernel with making sure to have it like yours...i will see how it will go....pretty much just disabled the rf switch thing...
Last edited by adramalech707 on Sun Sep 19, 2010 5:22 pm, edited 1 time in total.
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Sun Sep 19, 2010 5:22 pm

great minds

see edit for /etc/conf.d/net just above you

think with ath5k that Dwext is preferred
Top
adramalech707
Apprentice
Apprentice
Posts: 236
Joined: Tue Oct 06, 2009 5:31 pm
Location: California, USA

  • Quote

Post by adramalech707 » Sun Sep 19, 2010 7:03 pm

okay well i have redone /etc/init.d/net to what u think i should have....so far i am rebooting and going to try again...

**EDIT**

still have the error doesn't work....is there something i need to do??? i don't know if like wpa_supplicant installed correctly at first i had networkmanager on and i didn't want that after i found out cannot use that and wpa_supplicant at sametime....but i purged it...

tyvm for the help so far is there anything else u think i can do??? besides emerge -e world????
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Sun Sep 19, 2010 7:08 pm

did your emerge xfce go right?
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Sun Sep 19, 2010 7:20 pm

Have you done the dbus hal udev consolekit policykit emerge, add to USE flags, add to run levels? Then

Code: Select all

emerge -uND world
emerge wpa_supplicant


the error is still same as posted earlier?
go ahead and try -Dmadwifi in /etc/conf.d/net
Top
adramalech707
Apprentice
Apprentice
Posts: 236
Joined: Tue Oct 06, 2009 5:31 pm
Location: California, USA

  • Quote

Post by adramalech707 » Sun Sep 19, 2010 7:50 pm

the only thing i don't have running is hal everything else has been added to use flags and i did emerge -avuDN world and no updates were needed....

right now i am emerge -ea xorg-server because i am having issues with xorg not working....so it pulled in like 60% of my installed packages to rebuild...hopefully that might fix some issues...
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Sun Sep 19, 2010 8:10 pm

still favor running hald myself
http://www.gentoo.org/doc/en/openrc-migration.xml while waiting might be worth a careful review, most guides are written for baselayout1.
http://www.gentoo.org/doc/en/xorg-config.xml
http://www.gentoo.org/proj/en/desktop/x ... -guide.xml
http://dev.gentoo.org/~scarabeus/xorg-s ... -guide.xml
Top
adramalech707
Apprentice
Apprentice
Posts: 236
Joined: Tue Oct 06, 2009 5:31 pm
Location: California, USA

  • Quote

Post by adramalech707 » Mon Sep 20, 2010 12:36 am

okay so i have pretty much done almost everything just don't want to use hal....i really wish that gentoo would come out with newer guides and linux come out with newer ways to deal with deprecation....like xorg-server not using hal after 1.8.2...hal is a huge part of linux...but people that start using it gain it as a crutch...then when it goes away what are we suppose to use....from now on...i am not using anything that has to be used for crutch no networkmanager gui...etc...everything running manually from scripts etc...i think is the best way to keep from all this crap happening...



**edit***

oh btw stupd rc will run dhcp on eth0 before it gets to wlan0 and wlan0 still gets full errors with wpa_supplicant runs...even after i have reinstalled it...ohh and wpa_supplicant doesn't use hal as useflags...nor udev....

i guess dhcp made custom runlevel when installed because i cannot find how it is fricken running at boot still...only thing that should be running is net.lo and net.wlan0 then i will start net.eth0 manually if i am ever hardlined...

also how do i add to resolv.conf??? everytime i hardline at school i have to change it....and every time i am at home i have to change it...
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Mon Sep 20, 2010 2:11 am

oh btw stupd rc will run dhcp on eth0 before it gets to wlan0

Code: Select all

emerge ifplugd
if your install behaves like mine (unlikely based on results to date) eth0 will only load up if cable plugged in
..i really wish that gentoo would come out with newer guides and linux come out with newer ways to deal with deprecation....like xorg-server not using hal after 1.8.2..
bear in mind that you are using the testing branch-the xorg-server-1.8.0 shift to udev from hal is in the guide
udev-postmount responds to events whereas hal uses polling to determine need for action; both try to do pretty much the same things
In /etc/conf.d/net:
dns_servers_eth0="4.2.2.6"
dns_servers_wlan0="4.2.2.6"
would cause use of a good public nameserver
dhcp_eth0="nodns"
dhcp_wlan0="nodns"
would prevent overwriting /etc/resolv.conf with info from the dhcp server (router)

You are still getting???
* Bringing up interface wlan0
* Caching network module dependencies
* Starting wpa_supplicant on wlan0 ...
Line 5: unknown global field 'network{'.
Line 5: Invalid configuration line 'network{'.
Line 6: unknown global field 'ssid="adramalech"'.
Line 6: Invalid configuration line 'ssid="adramalech"'.
Line 7: unknown global field 'proto=WPA2'.
Line 7: Invalid configuration line 'proto=WPA2'.
Line 8: unknown global field 'key_mgmt=WPA_PSK'.
Line 8: Invalid configuration line 'key_mgmt=WPA_PSK'.
Line 9: unknown global field 'pairwise=CCMP TKIP'.
Line 9: Invalid configuration line 'pairwise=CCMP TKIP'.
Line 10: unknown global field 'psk="ZEro((!@34"'.
Line 10: Invalid configuration line 'psk="ZEro((!@34"'.
Line 11: unknown global field 'priority=5'.
Line 11: Invalid configuration line 'priority=5'.
Line 12: unknown global field '}'.
Line 12: Invalid configuration line '}'.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
* start-stop-daemon: failed to start `/usr/sbin/wpa_supplicant' [ !! ]
* ERROR: net.wlan0 failed to start
in response to /etc/init.d/net.wlan0 restart??
Top
adramalech707
Apprentice
Apprentice
Posts: 236
Joined: Tue Oct 06, 2009 5:31 pm
Location: California, USA

  • Quote

Post by adramalech707 » Mon Sep 20, 2010 4:13 am

yes i am still getting that...i am going to do what u said about the other parts....tyvm for the help u are a godsend...
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Mon Sep 20, 2010 5:01 am

make absolutely sure that /etc/wpa_supplicant/wpa_supplicant.conf network line is precisely:
network={
When I use
network{
or
network {
or
network=
I generate:
/etc/init.d/net.wlan0 restart
* Stopping apache2 ... [ ok ]
* Stopping MythTV Backend ... [ ok ]
* Unmounting network filesystems ... [ ok ]
* Stopping ntpd ... [ ok ]
* samba -> stop: smbd ... [ ok ]
* samba -> stop: nmbd ... [ ok ]
* Stopping sshd ... [ ok ]
* Stopping named ... [ ok ]
* Stopping wlan0
* Bringing down wlan0
* Shutting down wlan0 ... [ ok ]
* Stopping wpa_cli on wlan0 ... [ ok ]
* Stopping wpa_supplicant on wlan0 ... [ ok ]
* Starting wlan0
* Starting wpa_supplicant on wlan0 ...
Line 5: unknown global field 'network{'. or Line 5: unknown global field 'network {'. or Line 5: unknown global field 'network='.
Line 5: Invalid configuration line 'network{'.
Line 6: unknown global field 'mode=0'.
Line 6: Invalid configuration line 'mode=0'.
Line 7: unknown global field 'ssid="Wireless-11n-Router"'.
Line 7: Invalid configuration line 'ssid="Wireless-11n-Router"'.
Line 8: unknown global field 'psk="01234567"'.
Line 8: Invalid configuration line 'psk="01234567"'.
Line 9: unknown global field 'proto=RSN'.
Line 9: Invalid configuration line 'proto=RSN'.
Line 10: unknown global field 'key_mgmt=WPA-PSK'.
Line 10: Invalid configuration line 'key_mgmt=WPA-PSK'.
Line 11: unknown global field 'pairwise=TKIP'.
Line 11: Invalid configuration line 'pairwise=TKIP'.
Line 12: unknown global field '}'.
Line 12: Invalid configuration line '}'.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplican [ !! ]
So the recognizable global command is
network={
and must be spelled exactly correctly.
Top
adramalech707
Apprentice
Apprentice
Posts: 236
Joined: Tue Oct 06, 2009 5:31 pm
Location: California, USA

  • Quote

Post by adramalech707 » Mon Sep 20, 2010 2:37 pm

okay fixed that line and now it looks like this:

Code: Select all

adramalech@tux /etc/wpa_supplicant $ sudo /etc/init.d/net.wlan0 restart
 * Bringing up interface wlan0
 *   Starting wpa_supplicant on wlan0 ...
Line 9: invalid key_mgmt 'WPA_PSK'
Line 9: no key_mgmt values configured.
Line 9: failed to parse key_mgmt 'WPA_PSK'.
Line 13: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
 *   start-stop-daemon: failed to start `/usr/sbin/wpa_supplicant'        [ !! ]
 * ERROR: net.wlan0 failed to start
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Mon Sep 20, 2010 5:18 pm

WPA_PSK
is a typo in /etc/wpa_supplicant/wpa_supplicant.conf ; should be
WPA-PSK
hyphen not underscore
Top
adramalech707
Apprentice
Apprentice
Posts: 236
Joined: Tue Oct 06, 2009 5:31 pm
Location: California, USA

  • Quote

Post by adramalech707 » Mon Sep 20, 2010 7:10 pm

ohh my gosh!!! i just saw that too i am like having a major senior moment!!! i am also seing this when bootup i tuink it has to do with /etc/hosts:

Code: Select all

Could not look up internet address for tux.  This will prevent Xfce from operating correctly. It may be possible to correct the problem by adding tux to the file /etc/hosts on your system.
**edit**

okay so i did that and then i added my schools setup which is wpa2 eap-peap but i dont have the ca cert:

Code: Select all

network={
ssid="SacLinkSecure"
proto=WPA2
key_mgmt=WPA-EAP
pairwise=CCMP
group=CCMP
eap=PEAP
identity="XXXXX"
password="XXXXXXXX"
}
but when i run sudo /etc/init.d/net.wlan0 start it will say:

Code: Select all

*Bringing up interface wlan0
* Starting wpa_supplicant on wlan0 ...
ioctl[IEEE80211_IOCTL_SETPARM]: Operation not supported
Failed to initialized driver interface
* start-stop-daemon: failed to start '/usr/sbin/wpa_supplicant' [ !! ]
* ERROR: net.wlan0 failed to start
Top
DONAHUE
Watchman
Watchman
User avatar
Posts: 7651
Joined: Sat Dec 09, 2006 4:27 pm
Location: Goose Creek SC

  • Quote

Post by DONAHUE » Mon Sep 20, 2010 8:06 pm

in xfce applications you may have wpa-gui if so start it
if not, in a terminal,

Code: Select all

wpa-gui
run scan
select your network
close scan window
manage networks
select your network, enabled, edit
enter your psk
save
current status
connect
Top
Post Reply

29 posts
  • 1
  • 2
  • Next

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic