Re: [gentoo-user] Re: Project:Installer

2015-07-27 Thread Neil Bothwick
On Mon, 27 Jul 2015 21:19:39 +1000, Hans wrote:

 I could, with some help from a Bash coder, create a USB stick that runs 
 Gentoo and a Bash script to install Gentoo on a hard drive. I have
 about 80% done as Cut  Paste script. My bottleneck is running fdisk
 and feeding commands to fdisk from within a bash script.

Use parted instead.


-- 
Neil Bothwick

We have a equal opportunity Calculus class -- it's fully integrated.


pgplVmTuIcCxF.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Project:Installer

2015-07-27 Thread Bruce Schultz
(This has ended up hard to read; I hope it's not my tablet that's messed up the 
message threading, but apologies in advance if it is)

On 27 July 2015 3:19:50 AM AEST, James wirel...@tampabay.rr.com wrote:
Bruce Schultz brulzki at gmail.com writes:

 
 Matthew Marchese maffblas...@gentoo.org writes:

 I see that you've found stager. I'd like you to share
your thoughts  on what a perfect installer Gentoo could do.

A successful gentoo installer will:

Be multi-faceted so that many different, but common
installation outcomes are not only possible, but are
automated to the point of extreme convenience for folks to
use them, as they choose. Let's face it no matter what we do,
most noobs will not use Gentoo. But, those folks with some
level of experience and competence will use gentoo; many more
if there is an automated (base)installation. After all, when
google or others corporations install and use gentoo, do you
think they have folks spend 1-2 days using the handbook? NO,
their gentoo(derivative) has an automated installation.


So a base-installer for your [category 1] is the
most important part. So in that train of thought,
WE, should parse out all of the good parts of many
different installers and installation schemes, as a part
of the research and leverage as to what exists that can
be leveraged or emulated, Debian included. OpenSuse has
(13.2) has a slick install that allows for btrfs without
lvm or mdadm. That was the default pathway. I've read that
you can end up with a full raid install if you choose the
advanced pathway. I'm still researching that one. Then
there is 'Calculate Linux' that more than one gentoo dev
uses routinely to install Gentoo. There are many pathways
to streamline the installation of Gentoo. Many, for onerous
reasons believe that is a bad idea.

There is plenty of existing installation code that sets up
MBR and ext*; so that's a no brainer on how to do that. Newer
technologies, like btrfs are tricky.

Why do you think btrfs is tricky? The last few systems I have installed on have 
been btrfs based, and once you add the subvolume= option in fstab  the boot 
command line its no more tricky than any other install, IMO.


 In my opinion, there's really 3 parts to the install
process, and I think it helps to distinguish  between
them. I think a complete installer program has to address
all 3, but each task could be  modularised.

 1. The low level decisions, like disk partitioning, raid
and disk mirroring, filesystem choices  like ext4, btrfs,
zfs, or some other. For a VM, the choices here might include
creating a  new LVM volume or btrfs subvolume

Gentoo is not going to formally support ZFS as has been
stated before. However supporting ZFS by others is well
documented and some maverick could easily extend the
gentoo-base installer for a target system (after your
Category-1) where ZFS is installed. Just not officially
gentoo.

(I only added zfs because the previous post mentioned it)


 2. Installing system files, which is not much more than
untaring the stage3, and low level  system configuration
of make.conf settings, choice of profile, locale  timezone
settings,  users  passwords, networking, choice of syslog 
from, etc

Category-2 This is a pretty easy part to automate. Many
have stated that all of this information could be gathered
up before the actual installation (batched) begins and
parsed out at the appropriate time during the actually
(automated) installation.

Agreed. But what is missing is a common interface for passing the details from 
the category 1 to category 2; whether that is a config file or some other 
mechanism


All of Category 1 as well as some parts of Category-2 are
what I refer to as the base-install. After that point is
when you make key decisions like workstation vs server vs
embedded vs tablet.

 3. Higher level system configuration to get to a finalised
state
This is the part of the traditional Gentoo handbook I do
agree with. This is the part of the installation where noobs
begin to actually learn gentoo, or at least those parts
necessary for routine administration and usage. This is part
of the handbook that is trivial for experience *nix folks
as most are familiar with more than one package manager or
software installation semantic.


Most of these sorts of noobs (folks that struggle with
maintaining a *nix system) are never going to profile
low level kernel code or compare one file system against
  

[gentoo-user] Re: Project:Installer

2015-07-27 Thread Hans

On 27/07/15 03:29, James wrote:

wabenbau at gmail.com writes:




I used to install and look after OpenSuse Desk and Laptops until
systemd showed it's ugly face. Now I install and look after
several Gentoo Xfce desktops and 3 OpenSuse Xfce Laptops. I use a
Cut  Paste script to install Gentoo on Desktops. The only manual
parts are booting a Gentoo USB stick, modifying hostname, ip
address, user names and partitioning. When completed. Wen done,
log in as user and set up email accounts and various eye candy.


Sounds reasonable. Wouldn't it be great if that was an automated
semantic we could all use?



OpenSuse install on laptop involves booting of a installation
USB stick, select Xfce Desktop, manually enter time zone, user
name, counry, hostname, ip address, Samba, login as user and and
set up email accounts and various eye candy.



I am to stupid to install and get Gentoo to work on Laptops.


Um, I disagree. The disk/bios/bootstrap issues are perverted by the
manufacturers, particularly on laptops, tablets and embedded devices
as to soot their business goals; hence on a laptop the preventative
issues are magnified. You are not alone in this struggle.



My dream would be to have the OpensSuse Yast installer and
administration gui to install, configure and maintain Gentoo on
Desktops and Laptops. This should be easy for a programmer whois
familiar with Ruby and C. The Yast installer and administration
gui's are nothing more than gui interfaced to various command
line utilities.


If it works, I'd use it, regardless of Yast. Maybe we can find a
person that knows Yast (Ruby  and such) to hire to write a similar
installer for GEntoo?  I'm not against hiring the right person to
write a gentoo installer:: as long as I get a BTRFS raid 1 base
system out of it. DONE DEAL! If anyone is interested, just drop me
some private email. It has to open sourced.



Yast was one of the reasons why I switched from SUSE to gentoo in
2003. IIRC one problem with Yast was that it used it's own
configuration files and not the standard upstream configuration
files of the installed packages. This sometimes made the manual
configuration of packages very difficult for me, because the
original package documentation refers to config files that I could
not found on my SUSE system. Another caveat was that if one of the
Yast config files was altered by hand, it was not possible to
configure this file with Yast anymore.



Of course in the beginning of my Linux experience (SuSE 4.2) I was
happy that there was Yast because I came from OS/2 and it was a
nightmare for me to configure Linux the first time, even with Yast.
Without Yast I maybe would not use Linux today. Maybe Yast is
better today, but in the past it was sometimes very frustrating.



OK, so we need an expert here. Any takers? Make a few dollars and get
famous for writing (hacking) a gentoo installer for the
gentoo-commoners?

Anyone? James






I don't really think that there is a requirement for Ruby. Today's Yast2
is simply a GUI like grsync that calls on command line utilities. This 
can be done using the GTK C library.  The Yast running in a terminal 
appears to be a ncurses interface to the same command line utilities.


I could, with some help from a Bash coder, create a USB stick that runs 
Gentoo and a Bash script to install Gentoo on a hard drive. I have about 
80% done as Cut  Paste script. My bottleneck is running fdisk and 
feeding commands to fdisk from within a bash script.


Running Gentoo from a USB stick with Grub static is no problem if you 
don't mind that its slw. I use 2TB USB drive with Gentoo Xfce 
installed to back up my families Laptops. Plug in the USB drive. Power 
on the Laptop, Login as Laptop-1. Click the Backup or Restore Icon to 
start the required rsync session. Have lunch or surf the net.


Will make a image for a USB stick with or without Xfce if someone is 
seriously interested. This USB stick require DHCP from a router for 
networking and have only VGA video.









Re: [gentoo-user] Re: Project:Installer

2015-07-27 Thread Bruce Schultz


On 27 July 2015 9:24:30 PM AEST, Neil Bothwick n...@digimed.co.uk wrote:
On Mon, 27 Jul 2015 21:19:39 +1000, Hans wrote:

 I could, with some help from a Bash coder, create a USB stick that
runs 
 Gentoo and a Bash script to install Gentoo on a hard drive. I have
 about 80% done as Cut  Paste script. My bottleneck is running
fdisk
 and feeding commands to fdisk from within a bash script.

Use parted instead.

Or sfdisk

-- 
:b



[gentoo-user] Re: Project:Installer

2015-07-27 Thread James
Bruce Schultz brulzki at gmail.com writes:


 (This has ended up hard to read; I hope it's not my tablet that's messed
  up the message threading, but apologies in advance if it is)

Nope. I use gmane as a front end and it is aggressive in trying to keep
posts small. It also rambles a bit so here is my condensed sentiments::


The install process can be broken down to (2) main parts (imho)::


(1) Low level hardware, file systems and the mimimum of configs
to get a working reboot-able (withoout the installation medium)
installation. My base-install is a btrfs, dual disk raid-1
base system, with fstab, efi gpt and grup-2 issues solved, configured
and able to be studied as to how configuration was accomplished. If it
can be done without mdadm and lvm the that's even better. For this I am
willing to *pay* the right person to develop this open source software. 

Note a base system is probably going to be smaller than a 'default profile
system', but it's the same idea, except from it you can build up a myriad of
targets. This would essentially consist of the hard drive setup including
grub2, gpt, btrfs, raid1, fstab/mtab, mbr-or-efi type of issuse. Menu drive
would be keen or a gui installer (YaST). 


(2) Decide if the device is embedded, tablet, laptop, workstation, cluster,
server, firewall or whatever target. Set up the configs and install the
appropriate packages that complement the chosen system profile. This part
could easily remain manual. It would be an exercise for the noob/user/expert
to develop a set of ansible (or whatever) rules to control the build out of
the target system. It would continue to be the 'noob filter' that so many
experienced gentoo folks seem to like. The self development of automation
for multiple system, beyond the functional core (baseline install) is the
responsibility of the 
gentoo user to develop. So it would filter out those 'undesirables' both
devs and long term gentoo members seem to abhor. (Not my issue either way).


Other key points::  Read up on stage 4 installs as that work is very doable
and is being pursued and has the blessing of the dev community, so it is
most likely to happen.


YaST, ported to GENTOO would be a warmly received project, imho. Better
still we have part of yast in gentoo already, just 'eix libyui'.
[1,2.3]

Besides opensuse others use Calculate Linux or Sabayon Linux then just
convert to gentoo::


hth,
James

[1] http://libyui.sourceforge.net/

[2] https://github.com/libyui/libyui

[3] http://michal.hrusecky.net/2011/08/libyui-in-gentoo/




[gentoo-user] Re: Project:Installer

2015-07-27 Thread James
James wireless at tampabay.rr.com writes:


  80% done as Cut  Paste script. My bottleneck is running fdisk and 
  feeding commands to fdisk from within a bash script.

Remember, you have this codebase to look at for ideas on bash installs::

https://github.com/agaffney/quickstart


  Running Gentoo from a USB stick with Grub static is no problem if you 
  don't mind that its slw. I use 2TB USB drive with Gentoo Xfce 
  installed to back up my families Laptops. Plug in the USB drive. Power 
  on the Laptop, Login as Laptop-1. Click the Backup or Restore Icon to 
  start the required rsync session. Have lunch or surf the net.

  Will make a image for a USB stick with or without Xfce if someone is 
  seriously interested. This USB stick require DHCP from a router for 
  networking and have only VGA video.

Persistence on the usb stick will allow for software to be added or removed,
so it might speed up your development efforts to roll out images
for testing; here are some more links that might help::

https://wiki.gentoo.org/wiki/LiveDVD-Persistence-Mode

https://wiki.gentoo.org/wiki/Install_Gentoo_on_a_bootable_USB_stick


For expertise help, maffblaster might just review what you have done and
give you ideas on how to complete an installer via bash. He originally said
he wanted to port the bash to python(3), if my memory is correct.


hth,
James



 'eix libyui'

 hth,
 James

 [1] http://libyui.sourceforge.net/
 [2] https://github.com/libyui/libyui 
 [3] http://michal.hrusecky.net/2011/08/libyui-in-gentoo/









[gentoo-user] To Wifi or not to Wifi...

2015-07-27 Thread Meino . Cramer
Hi,

shocked from over 1000 lines of configurational stuff in
wpa_supplicant.conf I have manovered to this point

The USB Wifi-dongle now is a TP-LINK WN722N with Atheros chipset  AR9271 802.11n
(thanks for the hint!) which driver is by far easier to compile and
use as the hassle with this other one...

I started /etc/init.d/hostapd manually and the /etc/init.d/net.wlan0
and got this here

Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device   
  [ ok ]
 *   Starting wpa_cli on wlan0 ...  
  [ ok ]
 *   Backgrounding ... ...
 * WARNING: net.wlan0 has started, but is inactive


I am confused by this...especially by rfkill: Cannot open RFKILL control 
device...[OK].
It's feeling like: Unexpected ERROR: SUCCESS


What is the above text is trying to tell me?


Thank you very much in advance for any help!
Best regards,
Meino





PS:
Is there any stripped down version of wpa_supplicant.conf 
for AP use? Sawing that reminds me a little at manually configuring
sendmail





[gentoo-user] Re: Project:Installer

2015-07-27 Thread James
Hans linux at interworld.net.au writes:


  OK, so we need an expert here. Any takers? Make a few dollars and get
  famous for writing (hacking) a gentoo installer for the
  gentoo-commoners?
  Anyone? James

 I don't really think that there is a requirement for Ruby. Today's Yast2
 is simply a GUI like grsync that calls on command line utilities. This 
 can be done using the GTK C library.  The Yast running in a terminal 
 appears to be a ncurses interface to the same command line utilities.

 I could, with some help from a Bash coder, create a USB stick that runs 
 Gentoo and a Bash script to install Gentoo on a hard drive. I have about 
 80% done as Cut  Paste script. My bottleneck is running fdisk and 
 feeding commands to fdisk from within a bash script.

 Running Gentoo from a USB stick with Grub static is no problem if you 
 don't mind that its slw. I use 2TB USB drive with Gentoo Xfce 
 installed to back up my families Laptops. Plug in the USB drive. Power 
 on the Laptop, Login as Laptop-1. Click the Backup or Restore Icon to 
 start the required rsync session. Have lunch or surf the net.

 Will make a image for a USB stick with or without Xfce if someone is 
 seriously interested. This USB stick require DHCP from a router for 
 networking and have only VGA video.

My specific needs (and something many others will like) is to
end up with the base-install of (2) HD/SSD running btrfs-raid-1
and all the appropriate configs completed (gpt, grub-2, fstab/mtab and
mbr/efi issues included. That, automated and open-sourced is what I'm
willing to *pay* for. If you are interested in that, drop me some private
email.

I have zero issues with normal handbook installations. btrfs-raid1 is really
the only option I have strong interest in, just so you know.
I am sympathetic to and understand both sides of the issues. I just hope
that the larger *nix community does not see this 'lack of an installer' as
a mean spirited issue, as I do not believe it is. It is a confounding issue.

I'll surely test what you offer. These links might help [1,2,3]. Maybe
Michal will help too, as he seems to be a Osuse-Gentoo type of hack, with
some expertise in Yast and it's components.  

'eix libyui'


hth,
James


[1] http://libyui.sourceforge.net/

[2] https://github.com/libyui/libyui

[3] http://michal.hrusecky.net/2011/08/libyui-in-gentoo/





[gentoo-user] Re: Project:Installer

2015-07-27 Thread James
Hans linux at interworld.net.au writes:



 I could, with some help from a Bash coder, create a USB stick that runs 
 Gentoo and a Bash script to install Gentoo on a hard drive. I have about 
 80% done as Cut  Paste script. My bottleneck is running fdisk and 
 feeding commands to fdisk from within a bash script.


Participation
Want to join the project? Have the best-idea-ever that would make the
best-installer-ever? Visit the #gentoo-stager channel on Freenode IRC and
message maffblaster. 


That's from :: https://wiki.gentoo.org/wiki/Project:Installer


hth,
James






Re: [gentoo-user] To Wifi or not to Wifi...

2015-07-27 Thread Mick
On Monday 27 Jul 2015 19:13:03 meino.cra...@gmx.de wrote:
 Hi,
 
 shocked from over 1000 lines of configurational stuff in
 wpa_supplicant.conf I have manovered to this point
 
 The USB Wifi-dongle now is a TP-LINK WN722N with Atheros chipset  AR9271
 802.11n (thanks for the hint!) which driver is by far easier to compile
 and use as the hassle with this other one...
 
 I started /etc/init.d/hostapd manually and the /etc/init.d/net.wlan0
 and got this here
 
 Successfully initialized wpa_supplicant
 rfkill: Cannot open RFKILL control device  
   [ ok ] *   Starting wpa_cli on wlan0 ...
[ ok ] *  
 Backgrounding ... ...
  * WARNING: net.wlan0 has started, but is inactive
 
 
 I am confused by this...especially by rfkill: Cannot open RFKILL control
 device...[OK]. It's feeling like: Unexpected ERROR: SUCCESS
 
 
 What is the above text is trying to tell me?

It is probably telling you that you have not configured rfkill in your kernel?

$ grep RFKILL /usr/src/linux/.config
CONFIG_RFKILL=m
CONFIG_RFKILL_LEDS=y
CONFIG_RFKILL_INPUT=y
# CONFIG_AMILO_RFKILL is not set
# CONFIG_TOSHIBA_BT_RFKILL is not set


This allows you to control the state of the hardware using any buttons for it 
on your laptop, or by running the command 'rfkill list/block/unblock DEVICE'.


 PS:
 Is there any stripped down version of wpa_supplicant.conf
 for AP use? Sawing that reminds me a little at manually configuring
 sendmail

For hostapd use this:

https://wiki.gentoo.org/wiki/Hostapd#802.11a.2Fn.2Fac_with_WPA2-PSK_and_CCMP


For the client look at this:

https://wiki.gentoo.org/wiki/Wpa_supplicant#WPA2_with_wpa_supplicant

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] To Wifi or not to Wifi...

2015-07-27 Thread Todd Goodman
Hi Meino,

I don't think you need to worry about the rfkill: Cannot open RFKILL
control device message.

I believe that's for getting status of rfkill switches (the switches on
laptops to disable the WiFi radio.)

A USB WiFi-dongle doesn't generally have those (at least the ones I've
used) and neither does my custom hardware which also gets that warning
but works fine.

I think the bigger issue is the WARNING: net.wlan0 has started, but is
inactive.

I think the next step is trying to run wpa_supplicant by hand and see
what it has to say:

wpa_supplicant -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -dd

(replacing the location of the config file you want to use for the one
after the -c above.)  The -dd ups the debugging info displayed.

Regards,

Todd

* meino.cra...@gmx.de meino.cra...@gmx.de [150727 14:13]:
 Hi,
 
 shocked from over 1000 lines of configurational stuff in
 wpa_supplicant.conf I have manovered to this point
 
 The USB Wifi-dongle now is a TP-LINK WN722N with Atheros chipset  AR9271 
 802.11n
 (thanks for the hint!) which driver is by far easier to compile and
 use as the hassle with this other one...
 
 I started /etc/init.d/hostapd manually and the /etc/init.d/net.wlan0
 and got this here
 
 Successfully initialized wpa_supplicant
 rfkill: Cannot open RFKILL control device 
 [ ok ]
  *   Starting wpa_cli on wlan0 ...
 [ ok ]
  *   Backgrounding ... ...
  * WARNING: net.wlan0 has started, but is inactive
 
 
 I am confused by this...especially by rfkill: Cannot open RFKILL control 
 device...[OK].
 It's feeling like: Unexpected ERROR: SUCCESS
 
 
 What is the above text is trying to tell me?
 
 
 Thank you very much in advance for any help!
 Best regards,
 Meino
 
 
 
 
 
 PS:
 Is there any stripped down version of wpa_supplicant.conf 
 for AP use? Sawing that reminds me a little at manually configuring
 sendmail
 
 



[gentoo-user] Re: [OT] Very recent change in behavior of gmail imap/smtp servers [SOLVED (for the third time, maybe fourth ;) ]

2015-07-27 Thread walt
On Tue, 21 Jul 2015 18:34:25 -0700
walt w41...@gmail.com wrote:

 Google has just introduced a 120-second delay before allowing login to
 their email servers.  Just in the last day or two, literally.

Yet again, I think(hope/pray) I've solved this mysterious change in
behavior:

For years I've configured my email clients (thunderbird, and recently
claws-mail) to use imap.gmail.com as the mail server.

Finally I 'googled' (using DuckDuckGo) for how to configure imap access
to gmail servers, and discovered that google is now recommending the
server name imap.googlemail.com instead of imap.gmail.com.

I made the appropriate changes in configuration for claws-mail and
thunderbird, and I think(hope/pray) that the problem is fixed. In my
preliminary trials it seems to be fixed.

The mail server did ask me (once) after changing the server name, to
reconfirm my password, so something did really change.  I'm not
making this stuff up, I promise.






Re: [gentoo-user] To Wifi or not to Wifi...

2015-07-27 Thread Meino . Cramer
Mick michaelkintz...@gmail.com [15-07-27 21:04]:
 On Monday 27 Jul 2015 19:13:03 meino.cra...@gmx.de wrote:
  Hi,
  
  shocked from over 1000 lines of configurational stuff in
  wpa_supplicant.conf I have manovered to this point
  
  The USB Wifi-dongle now is a TP-LINK WN722N with Atheros chipset  AR9271
  802.11n (thanks for the hint!) which driver is by far easier to compile
  and use as the hassle with this other one...
  
  I started /etc/init.d/hostapd manually and the /etc/init.d/net.wlan0
  and got this here
  
  Successfully initialized wpa_supplicant
  rfkill: Cannot open RFKILL control device  
[ ok ] *   Starting wpa_cli on wlan0 ...
 [ ok ] *  
  Backgrounding ... ...
   * WARNING: net.wlan0 has started, but is inactive
  
  
  I am confused by this...especially by rfkill: Cannot open RFKILL control
  device...[OK]. It's feeling like: Unexpected ERROR: SUCCESS
  
  
  What is the above text is trying to tell me?
 
 It is probably telling you that you have not configured rfkill in your kernel?
 
 $ grep RFKILL /usr/src/linux/.config
 CONFIG_RFKILL=m
 CONFIG_RFKILL_LEDS=y
 CONFIG_RFKILL_INPUT=y
 # CONFIG_AMILO_RFKILL is not set
 # CONFIG_TOSHIBA_BT_RFKILL is not set
 
 
 This allows you to control the state of the hardware using any buttons for it 
 on your laptop, or by running the command 'rfkill list/block/unblock DEVICE'.
 
 
  PS:
  Is there any stripped down version of wpa_supplicant.conf
  for AP use? Sawing that reminds me a little at manually configuring
  sendmail
 
 For hostapd use this:
 
 https://wiki.gentoo.org/wiki/Hostapd#802.11a.2Fn.2Fac_with_WPA2-PSK_and_CCMP
 
 
 For the client look at this:
 
 https://wiki.gentoo.org/wiki/Wpa_supplicant#WPA2_with_wpa_supplicant
 
 -- 
 Regards,
 Mick


Hi Mick,

I recompiled the kernel with the flags set! Never thought, that this
is a kernel thing...rfkill souns like any other commandline tool...
:)

I tried the stripped down version of wpa_supplicat.conf with mixed
results. I changed it as follows:

hw_mode=n # a simply means 2.4GHz
channel=0 # the channel to use, 0 means the AP will search for the 
channel with the least interferences 
ieee80211d=1  # limit the frequencies used to those allowed in the 
country
country_code=DE   # the country code
ieee80211n=1  # 802.11n support
ieee80211ac=1 # 802.11ac support
wmm_enabled=1 # QoS support
 
ssid=somename # the name of the AP
auth_algs=1   # 1=wpa, 2=wep, 3=both
wpa=2 # WPA2 only
wpa_key_mgmt=WPA-PSK 
rsn_pairwise=CCMP
wpa_passphrase=XX


I changed hw_mode to n since a is not supported by the tablet PC
which I want to connect to my PC.
I set the password to something different as shown here... ;)

The output is:
Successfully initialized wpa_supplicant
Line 1: unknown global field 'interface=wlan0'.
Line 1: Invalid configuration line 'interface=wlan0'.
Line 2: unknown global field 'hw_mode=n'.
Line 2: Invalid configuration line 'hw_mode=n'.
Line 3: unknown global field 'channel=0'.
Line 3: Invalid configuration line 'channel=0'.
Line 4: unknown global field 'ieee80211d=1'.
Line 4: Invalid configuration line 'ieee80211d=1'.
Line 5: unknown global field 'country_code=DE'.
Line 5: Invalid configuration line 'country_code=DE'.
Line 6: unknown global field 'ieee80211n=1'.
Line 6: Invalid configuration line 'ieee80211n=1'.
Line 7: unknown global field 'ieee80211ac=1'.
Line 7: Invalid configuration line 'ieee80211ac=1'.
Line 8: unknown global field 'wmm_enabled=1'.
Line 8: Invalid configuration line 'wmm_enabled=1'.
Line 10: unknown global field 'ssid=somename'.
Line 10: Invalid configuration line 'ssid=somename'.
Line 11: unknown global field 'auth_algs=1'.
Line 11: Invalid configuration line 'auth_algs=1'.
Line 12: unknown global field 'wpa=2'.
Line 12: Invalid configuration line 'wpa=2'.
Line 13: unknown global field 'wpa_key_mgmt=WPA-PSK'.
Line 13: Invalid configuration line 'wpa_key_mgmt=WPA-PSK'.
Line 14: unknown global field 'rsn_pairwise=CCMP'.
Line 14: Invalid configuration line 'rsn_pairwise=CCMP'.
Line 15: unknown global field 'wpa_passphrase=stardancer2107631'.
Line 15: Invalid configuration line 'wpa_passphrase=X'.
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
[1]4612 exit 1 /etc/init.d/net.wlan0 restart


the installed wpa_supplicant is:


[I] net-wireless/wpa_supplicant
 Available versions:  2.4-r3 ~2.4-r4 {ap dbus eap-sim fasteap gnutls +hs2-0 
p2p ps3 qt4 readline selinux smartcard ssl tdls uncommon-eap-types wimax wps 
KERNEL=FreeBSD linux}
 Installed versions:  2.4-r3(19:45:59 07/27/15)(dbus hs2-0 readline ssl -ap 
-eap-sim -fasteap -gnutls