Re: [gentoo-user] To Wifi or not to Wifi...
On Wednesday 29 Jul 2015 03:42:56 meino.cra...@gmx.de wrote: > Mick [15-07-29 03:32]: > > On Tuesday 28 Jul 2015 20:35:55 Todd Goodman wrote: > > > * meino.cra...@gmx.de [150728 15:31]: > > > [..SNIP..] > > > > > > > Hi Todd, > > > > > > > > thanks for all your help and patience... :)) > > > > > > > > The recursive(recursive(recursive).problem.).problem).problem has > > > > been solved by rebooting my PC (due to the new kernel) and restarting > > > > the tablet PC. > > > > > > > > Now I am fighting against dhcpd...as sson as I want to start that > > > > beast its telling me that dhcpd.ldap is missing. This was not > > > > installed (at least as an example) by emerge. I have no idea what > > > > is to get into that file. > > > > > > > > I will check create_ap...may be it is more intelligent than me in > > > > writing config-files ;) > > > > > > > > But unfortunately I have to stop my journey here for today...it is > > > > late here (9:00 pm) and I have to get out early tommorrow (4:00 am). > > > > > > > > But /I want/ to get this running finally. > > > > We will see. > > > > As soon I have something new, I will post more of the contents > > > > of my harddisk ;) > > > > > > > > Best regards and thanks again! 8) > > > > Meino > > > > > > Hi Meino, > > > > > > You're welcome. I'm sorry I couldn't be of more help (and get this > > > solved!) > > > > > > I'm sure you will eventually. > > > > > > Please let us know how it goes once you get back to it. > > > > > > Good night, > > > > > > Todd > > > > A lot seems to have been progressed with since I last contributed to this > > thread. Given that WiFi related problems were solved thanks to Todd's > > good help, perhaps Meino should start a thread on setting up a local > > dhcp server? > > > > However, I would recommend that you set a static route, gateway and IP > > address on your tablet pointing to the PC and on the PC you configure IP > > Masquerading, so that it can NAT connections from the tablet to the > > Internet. > > > > However, if you must be running a dhcp server, then emerge and configure > > net- misc/dhcp on the PC. > > Hi Todd, hi Mick, > > !YEAH! It works! > create_ap did it! I have access to the internet on my tablet just by > fireing up create_ap. > > There is one advantage of create_ap (beside creating a /working/ ap, > which I was not able to...;) over the setup below /etc: One can give > it an temporary SSID and password on the commandline - every > configuration is temporary. In my case this is very handy, since I > only need the AP for transferring files from and to my tablet. Makes > the thing /a little/ more secure...a /little/. > > Still I have to figure out: > > 1) What create_ap does differently (and more correctly). It also sets up a DNS repeater, DHCP server and configures iptables on your PC. > 2) How I can assign a static IP to my tablet. There must be some config files to edit, but I'm guessing you won't have access to these without rooting the tablet. > 3) How I can change the MAC on my tablet. Ditto. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Wifi slow motion data transfer
On Wednesday, July 29, 2015 05:18:25 AM meino.cra...@gmx.de wrote: > Hi, > > the AP is now up and running ... but the the transfer rates are only > about 80 Kb/sec (conky). > > I use an Atheros based USB wifi dongle, create_ap for setup and the > internet connection goes via my PC. There are no other transfers > running (check with wireshark), beside occassional dns and pop3 > communications (very low data amounts) and the PC is nearly > without load (ok...I am typing this email on it, but;) > > Any way to push this up...? > > Best regards > Meino Which WIFI type are you using? Which USB-type? (USB-1 is dead slow, for instance) Is this speed between both machines? Or to the internet? -- Joost
[gentoo-user] Wifi slow motion data transfer
Hi, the AP is now up and running ... but the the transfer rates are only about 80 Kb/sec (conky). I use an Atheros based USB wifi dongle, create_ap for setup and the internet connection goes via my PC. There are no other transfers running (check with wireshark), beside occassional dns and pop3 communications (very low data amounts) and the PC is nearly without load (ok...I am typing this email on it, but;) Any way to push this up...? Best regards Meino
Re: [gentoo-user] trouble with wireless on new install
gottl...@nyu.edu [15-07-29 03:32]: > I am having trouble with wireless on a new install (gnome/systemd). > > lspci reports > 02:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59) > > I looked this up and it requires the iwlwifi driver and iwlmvm, which I > enabled in the kernel (as modules). > lsmod reports > Module Size Used by > iwlmvm142993 0 > mac80211 425803 1 iwlmvm > x86_pkg_temp_thermal 4567 0 > iwlwifi88075 1 iwlmvm > > I have merged linux-firmware and ls /lib/firmware/*7265* reports > /lib/firmware/iwlwifi-7265-10.ucode /lib/firmware/iwlwifi-7265-9.ucode > /lib/firmware/iwlwifi-7265-12.ucode /lib/firmware/iwlwifi-7265D-10.ucode > /lib/firmware/iwlwifi-7265-8.ucode /lib/firmware/iwlwifi-7265D-12.ucode > > dmsg | grep iwl reports > [2.819953] iwlwifi :02:00.0: irq 48 for MSI/MSI-X > [2.824130] iwlwifi :02:00.0: loaded firmware version 23.11.10.0 > op_modeiwlmvm > [2.836969] iwlwifi :02:00.0: Detected Intel(R) Dual Band Wireless > AC 7265, REV=0x210 > [2.838620] iwlwifi :02:00.0: L1 Disabled - LTR Enabled > [2.838775] iwlwifi :02:00.0: L1 Disabled - LTR Enabled > [2.896168] ieee80211 phy0: Selected rate control algorithm > 'iwl-mvm-rs' > [2.899325] iwlwifi :02:00.0 wlp2s0: renamed from wlan0 > > The complaint seems to be "L1 disabled" > > NetworkManager started the wired network but failed with the wireless > E6430s ~ # systemctl -l status NetworkManager > ● NetworkManager.service - Network Manager >Loaded: loaded (/usr/lib64/systemd/system/NetworkManager.service; enabled; > vendor preset: enabled) >Active: active (running) since Tue 2015-07-28 19:56:57 EDT; 9min ago > Main PID: 232 (NetworkManager) >CGroup: /system.slice/NetworkManager.service >├─232 /usr/sbin/NetworkManager --no-daemon >└─256 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf > /var/run/dhclient-eno1.pid -lf > /var/lib/NetworkManager/dhclient-0caab3d6-148f-416a-9906-547ed08596bf-eno1.lease > -cf /var/lib/NetworkManager/dhclient-eno1.conf eno1 > > Jul 28 19:56:59 E6430s dhclient[256]: bound to 192.168.1.107 -- renewal in > 43096 seconds. > Jul 28 19:56:59 E6430s NetworkManager[232]: NetworkManager state is > now CONNECTED_GLOBAL > Jul 28 19:56:59 E6430s NetworkManager[232]: Policy set 'Wired > connection 1' (eno1) as default for IPv4 routing and DNS. > Jul 28 19:56:59 E6430s NetworkManager[232]: (eno1): Activation: > successful, device activated. > Jul 28 19:57:01 E6430s NetworkManager[232]: (wlp2s0): supplicant > interface state: disconnected -> inactive > Jul 28 19:57:05 E6430s NetworkManager[232]: startup complete > Jul 28 19:57:31 E6430s NetworkManager[232]: (eno1): Activation: Stage > 4 of 5 (IPv6 Configure Timeout) scheduled... > Jul 28 19:57:31 E6430s NetworkManager[232]: (eno1): Activation: Stage > 4 of 5 (IPv6 Configure Timeout) started... > Jul 28 19:57:31 E6430s NetworkManager[232]: (eno1): Activation: Stage > 4 of 5 (IPv6 Configure Timeout) complete. > Jul 28 19:57:57 E6430s NetworkManager[232]: (wlp2s0): supplicant > interface state: inactive -> scanning > > What step did I forget? > > thanks in advance, > allan > Hi Allan, I just in the beginning of "doing wifi" (see previous thread...) but may be this is of help: https://bugzilla.kernel.org/show_bug.cgi?id=92541 http://forums.fedoraforum.org/showthread.php?t=301637 http://askubuntu.com/questions/616119/unstable-wireless-with-intel-7260-iwlwifi-after-upgrade-to-15-04 HTH! Good luck! Best regards, Meino
Re: [gentoo-user] To Wifi or not to Wifi...
Mick [15-07-29 03:32]: > On Tuesday 28 Jul 2015 20:35:55 Todd Goodman wrote: > > * meino.cra...@gmx.de [150728 15:31]: > > [..SNIP..] > > > > > Hi Todd, > > > > > > thanks for all your help and patience... :)) > > > > > > The recursive(recursive(recursive).problem.).problem).problem has > > > been solved by rebooting my PC (due to the new kernel) and restarting > > > the tablet PC. > > > > > > Now I am fighting against dhcpd...as sson as I want to start that > > > beast its telling me that dhcpd.ldap is missing. This was not > > > installed (at least as an example) by emerge. I have no idea what > > > is to get into that file. > > > > > > I will check create_ap...may be it is more intelligent than me in > > > writing config-files ;) > > > > > > But unfortunately I have to stop my journey here for today...it is > > > late here (9:00 pm) and I have to get out early tommorrow (4:00 am). > > > > > > But /I want/ to get this running finally. > > > We will see. > > > As soon I have something new, I will post more of the contents > > > of my harddisk ;) > > > > > > Best regards and thanks again! 8) > > > Meino > > > > Hi Meino, > > > > You're welcome. I'm sorry I couldn't be of more help (and get this > > solved!) > > > > I'm sure you will eventually. > > > > Please let us know how it goes once you get back to it. > > > > Good night, > > > > Todd > > A lot seems to have been progressed with since I last contributed to this > thread. Given that WiFi related problems were solved thanks to Todd's good > help, perhaps Meino should start a thread on setting up a local dhcp server? > > However, I would recommend that you set a static route, gateway and IP > address > on your tablet pointing to the PC and on the PC you configure IP > Masquerading, > so that it can NAT connections from the tablet to the Internet. > > However, if you must be running a dhcp server, then emerge and configure net- > misc/dhcp on the PC. > > -- > Regards, > Mick Hi Todd, hi Mick, !YEAH! It works! create_ap did it! I have access to the internet on my tablet just by fireing up create_ap. There is one advantage of create_ap (beside creating a /working/ ap, which I was not able to...;) over the setup below /etc: One can give it an temporary SSID and password on the commandline - every configuration is temporary. In my case this is very handy, since I only need the AP for transferring files from and to my tablet. Makes the thing /a little/ more secure...a /little/. Still I have to figure out: 1) What create_ap does differently (and more correctly). 2) How I can assign a static IP to my tablet. 3) How I can change the MAC on my tablet. Thanks for all your help and patience! :) 8) Best regards, Meino
Re: [gentoo-user] To Wifi or not to Wifi...
Mick [15-07-29 03:32]: > On Tuesday 28 Jul 2015 20:35:55 Todd Goodman wrote: > > * meino.cra...@gmx.de [150728 15:31]: > > [..SNIP..] > > > > > Hi Todd, > > > > > > thanks for all your help and patience... :)) > > > > > > The recursive(recursive(recursive).problem.).problem).problem has > > > been solved by rebooting my PC (due to the new kernel) and restarting > > > the tablet PC. > > > > > > Now I am fighting against dhcpd...as sson as I want to start that > > > beast its telling me that dhcpd.ldap is missing. This was not > > > installed (at least as an example) by emerge. I have no idea what > > > is to get into that file. > > > > > > I will check create_ap...may be it is more intelligent than me in > > > writing config-files ;) > > > > > > But unfortunately I have to stop my journey here for today...it is > > > late here (9:00 pm) and I have to get out early tommorrow (4:00 am). > > > > > > But /I want/ to get this running finally. > > > We will see. > > > As soon I have something new, I will post more of the contents > > > of my harddisk ;) > > > > > > Best regards and thanks again! 8) > > > Meino > > > > Hi Meino, > > > > You're welcome. I'm sorry I couldn't be of more help (and get this > > solved!) > > > > I'm sure you will eventually. > > > > Please let us know how it goes once you get back to it. > > > > Good night, > > > > Todd > > A lot seems to have been progressed with since I last contributed to this > thread. Given that WiFi related problems were solved thanks to Todd's good > help, perhaps Meino should start a thread on setting up a local dhcp server? > > However, I would recommend that you set a static route, gateway and IP > address > on your tablet pointing to the PC and on the PC you configure IP > Masquerading, > so that it can NAT connections from the tablet to the Internet. > > However, if you must be running a dhcp server, then emerge and configure net- > misc/dhcp on the PC. > > -- > Regards, > Mick Hi Mick, thanks for your reply ! 8) the current problem is the authentication problem and with my limited knowledge about the wifi topic I cannot decide, whether it is a problem related to wifi setups of or related to "after wifi" - that is the timeout happens because there is no data transfer, because the table does not get an IP addr from the PC. Setting up an static IP address scheme is a good idea! Unfortunately the tablet does not allow to assign an IP statically. It is an Android Lollipop based tablet, wifi only, no gsm. I searched the GUI up and down - there is an field "IP-adress" and "MAC-address" but they are not selectable or react on clicking/tapping. I think I have to go the dhcpd way for accomplish the assignments of IP-addresses. Before I will go to work, I will check create_ap as Todd suggested and see whether it will solve the knot. I will also trace the handshake with wireshark. May be this will give an addition insight also. When I will get more information where the whole authentications stuff fails, I will start an new dhcpd thread or I will add more here. Thanks for all your help Mick! 8) Best regards, Meino I could remember the good ole day, when data was transmit through good ole copper...
[gentoo-user] trouble with wireless on new install
I am having trouble with wireless on a new install (gnome/systemd). lspci reports 02:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59) I looked this up and it requires the iwlwifi driver and iwlmvm, which I enabled in the kernel (as modules). lsmod reports Module Size Used by iwlmvm142993 0 mac80211 425803 1 iwlmvm x86_pkg_temp_thermal 4567 0 iwlwifi88075 1 iwlmvm I have merged linux-firmware and ls /lib/firmware/*7265* reports /lib/firmware/iwlwifi-7265-10.ucode /lib/firmware/iwlwifi-7265-9.ucode /lib/firmware/iwlwifi-7265-12.ucode /lib/firmware/iwlwifi-7265D-10.ucode /lib/firmware/iwlwifi-7265-8.ucode /lib/firmware/iwlwifi-7265D-12.ucode dmsg | grep iwl reports [2.819953] iwlwifi :02:00.0: irq 48 for MSI/MSI-X [2.824130] iwlwifi :02:00.0: loaded firmware version 23.11.10.0 op_modeiwlmvm [2.836969] iwlwifi :02:00.0: Detected Intel(R) Dual Band Wireless AC 7265, REV=0x210 [2.838620] iwlwifi :02:00.0: L1 Disabled - LTR Enabled [2.838775] iwlwifi :02:00.0: L1 Disabled - LTR Enabled [2.896168] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs' [2.899325] iwlwifi :02:00.0 wlp2s0: renamed from wlan0 The complaint seems to be "L1 disabled" NetworkManager started the wired network but failed with the wireless E6430s ~ # systemctl -l status NetworkManager ● NetworkManager.service - Network Manager Loaded: loaded (/usr/lib64/systemd/system/NetworkManager.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2015-07-28 19:56:57 EDT; 9min ago Main PID: 232 (NetworkManager) CGroup: /system.slice/NetworkManager.service ├─232 /usr/sbin/NetworkManager --no-daemon └─256 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-eno1.pid -lf /var/lib/NetworkManager/dhclient-0caab3d6-148f-416a-9906-547ed08596bf-eno1.lease -cf /var/lib/NetworkManager/dhclient-eno1.conf eno1 Jul 28 19:56:59 E6430s dhclient[256]: bound to 192.168.1.107 -- renewal in 43096 seconds. Jul 28 19:56:59 E6430s NetworkManager[232]: NetworkManager state is now CONNECTED_GLOBAL Jul 28 19:56:59 E6430s NetworkManager[232]: Policy set 'Wired connection 1' (eno1) as default for IPv4 routing and DNS. Jul 28 19:56:59 E6430s NetworkManager[232]: (eno1): Activation: successful, device activated. Jul 28 19:57:01 E6430s NetworkManager[232]: (wlp2s0): supplicant interface state: disconnected -> inactive Jul 28 19:57:05 E6430s NetworkManager[232]: startup complete Jul 28 19:57:31 E6430s NetworkManager[232]: (eno1): Activation: Stage 4 of 5 (IPv6 Configure Timeout) scheduled... Jul 28 19:57:31 E6430s NetworkManager[232]: (eno1): Activation: Stage 4 of 5 (IPv6 Configure Timeout) started... Jul 28 19:57:31 E6430s NetworkManager[232]: (eno1): Activation: Stage 4 of 5 (IPv6 Configure Timeout) complete. Jul 28 19:57:57 E6430s NetworkManager[232]: (wlp2s0): supplicant interface state: inactive -> scanning What step did I forget? thanks in advance, allan
Re: [gentoo-user] Hubris?
On Tue, 28 Jul 2015 22:59:40 +0100, Mick wrote: > > > But I think you do if your btrfs is raid 1. The kernel can't mount > > > multidisk btrfs until it done a btrfs device scan in userspace, run > > > from initramfs. > > > > According to the btrfs wiki you can pass > > device=/dev/sda1,device=/dev/sdb1 on the kernel boot line. > > Apologies if I have missed it, but what is wrong with using vanilla > ext2 for /boot? The question is about the kernel mounting / from a multi-device btrfs, without an initramfs - nothing to do with /boot. -- Neil Bothwick SITCOM: Single Income, Two Children, Oppressive Mortgage pgpT6ouR46FlD.pgp Description: OpenPGP digital signature
Re: [gentoo-user] To Wifi or not to Wifi...
On Tuesday 28 Jul 2015 20:35:55 Todd Goodman wrote: > * meino.cra...@gmx.de [150728 15:31]: > [..SNIP..] > > > Hi Todd, > > > > thanks for all your help and patience... :)) > > > > The recursive(recursive(recursive).problem.).problem).problem has > > been solved by rebooting my PC (due to the new kernel) and restarting > > the tablet PC. > > > > Now I am fighting against dhcpd...as sson as I want to start that > > beast its telling me that dhcpd.ldap is missing. This was not > > installed (at least as an example) by emerge. I have no idea what > > is to get into that file. > > > > I will check create_ap...may be it is more intelligent than me in > > writing config-files ;) > > > > But unfortunately I have to stop my journey here for today...it is > > late here (9:00 pm) and I have to get out early tommorrow (4:00 am). > > > > But /I want/ to get this running finally. > > We will see. > > As soon I have something new, I will post more of the contents > > of my harddisk ;) > > > > Best regards and thanks again! 8) > > Meino > > Hi Meino, > > You're welcome. I'm sorry I couldn't be of more help (and get this > solved!) > > I'm sure you will eventually. > > Please let us know how it goes once you get back to it. > > Good night, > > Todd A lot seems to have been progressed with since I last contributed to this thread. Given that WiFi related problems were solved thanks to Todd's good help, perhaps Meino should start a thread on setting up a local dhcp server? However, I would recommend that you set a static route, gateway and IP address on your tablet pointing to the PC and on the PC you configure IP Masquerading, so that it can NAT connections from the tablet to the Internet. However, if you must be running a dhcp server, then emerge and configure net- misc/dhcp on the PC. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Hubris?
On Tuesday 28 Jul 2015 21:18:43 Neil Bothwick wrote: > On Wed, 29 Jul 2015 05:29:18 +1000, Bruce Schultz wrote: > > >You may not need an initramfs to run root on btrfs as long as btrfs is > > >compiled into your kernel (I haven't looked into it closely though). > > > > But I think you do if your btrfs is raid 1. The kernel can't mount > > multidisk btrfs until it done a btrfs device scan in userspace, run > > from initramfs. > > According to the btrfs wiki you can pass > device=/dev/sda1,device=/dev/sdb1 on the kernel boot line. Apologies if I have missed it, but what is wrong with using vanilla ext2 for /boot? Install it on /dev/sda and then dd it onto /dev/sdb. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Hubris?
On Wed, 29 Jul 2015 05:29:18 +1000, Bruce Schultz wrote: > >You may not need an initramfs to run root on btrfs as long as btrfs is > >compiled into your kernel (I haven't looked into it closely though). > > But I think you do if your btrfs is raid 1. The kernel can't mount > multidisk btrfs until it done a btrfs device scan in userspace, run > from initramfs. According to the btrfs wiki you can pass device=/dev/sda1,device=/dev/sdb1 on the kernel boot line. -- Neil Bothwick Indecision is the key to flexibility. pgpPXLzwRBQKS.pgp Description: OpenPGP digital signature
Re: [gentoo-user] To Wifi or not to Wifi...
* meino.cra...@gmx.de [150728 15:31]: [..SNIP..] > Hi Todd, > > thanks for all your help and patience... :)) > > The recursive(recursive(recursive).problem.).problem).problem has > been solved by rebooting my PC (due to the new kernel) and restarting > the tablet PC. > > Now I am fighting against dhcpd...as sson as I want to start that > beast its telling me that dhcpd.ldap is missing. This was not > installed (at least as an example) by emerge. I have no idea what > is to get into that file. > > I will check create_ap...may be it is more intelligent than me in > writing config-files ;) > > But unfortunately I have to stop my journey here for today...it is > late here (9:00 pm) and I have to get out early tommorrow (4:00 am). > > But /I want/ to get this running finally. > We will see. > As soon I have something new, I will post more of the contents > of my harddisk ;) > > Best regards and thanks again! 8) > Meino Hi Meino, You're welcome. I'm sorry I couldn't be of more help (and get this solved!) I'm sure you will eventually. Please let us know how it goes once you get back to it. Good night, Todd
Re: [gentoo-user] To Wifi or not to Wifi...
Todd Goodman [15-07-28 21:16]: > * meino.cra...@gmx.de [150728 14:44]: > [..SNIP..] > > Hi Todd, > > > > ok, I've fixed that...now it displays another error: > > > > >/usr/sbin/hostapd /etc/hostapd/hostapd.conf > > Configuration file: /etc/hostapd/hostapd.conf > > wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE > > Using interface wlan0 with hwaddr 14:cc:20:17:24:49 and ssid "" > > VLAN: vlan_set_name_type: SET_VLAN_NAME_TYPE_CMD name_type=2 failed: > > Package not installed > > wlan0: interface state COUNTRY_UPDATE->ENABLED > > wlan0: AP-ENABLED > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) > > WPA: wpa_sm_step() called recursively > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to local > > deauth request > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) > > WPA: wpa_sm_step() called recursively > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to local > > deauth request > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) > > WPA: wpa_sm_step() called recursively > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to local > > deauth request > > > > > > The vlan thingy seems to be a missing CONFIG in the kernel I use...I > > am currently backing a new one with this option set. > > > > But what is that > > "WPA: wpa_sm_step() called recursively" > > message telling me? > > The device accessing the AP is an ASUS Memo Pad 7 ME176CX tablet... > > > > Best regards, > > Meino > > Hi Meino, > > Looking at the code it looks like the "WPA: wpa_sm_step() called > recursively" message is due to the WPA state machine of hostapd > currently running a step in its state machine and that step then trying > to run another step in the state machine. It seems like that's an a > hostapd problem, probably triggered by the authentication issues. > > Can you post your hostapd.conf file (with passwords and other personal > information redacted?) > > It still seems like something with authentication isn't quite right. > > Also, have you seen https://github.com/oblique/create_ap > > There's even Gentoo instructions for pulling it from an overlay. It > might be interesting to see what kind of config file that script creates > (and if it works.) > > Regards, > > Todd > > Hi Todd, thanks for all your help and patience... :)) The recursive(recursive(recursive).problem.).problem).problem has been solved by rebooting my PC (due to the new kernel) and restarting the tablet PC. Now I am fighting against dhcpd...as sson as I want to start that beast its telling me that dhcpd.ldap is missing. This was not installed (at least as an example) by emerge. I have no idea what is to get into that file. I will check create_ap...may be it is more intelligent than me in writing config-files ;) But unfortunately I have to stop my journey here for today...it is late here (9:00 pm) and I have to get out early tommorrow (4:00 am). But /I want/ to get this running finally. We will see. As soon I have something new, I will post more of the contents of my harddisk ;) Best regards and thanks again! 8) Meino
Re: [gentoo-user] Hubris?
On 29 July 2015 2:26:14 AM AEST, Rich Freeman wrote: >On Tue, Jul 28, 2015 at 10:40 AM, Peter Humphrey > wrote: >> On Tuesday 28 July 2015 08:31:58 Rich Freeman wrote: >>> On Tue, Jul 28, 2015 at 8:16 AM, Neil Bothwick >wrote: >> >>> > I've just installed a new laptop with it, using btrfs >>> > for everything but /boot. >> >> I know you use grub-2, which can boot that setup, but I suppose I'd >need an >> init thingy if I stick to grub legacy. > >You may not need an initramfs to run root on btrfs as long as btrfs is >compiled into your kernel (I haven't looked into it closely though). But I think you do if your btrfs is raid 1. The kernel can't mount multidisk btrfs until it done a btrfs device scan in userspace, run from initramfs. -- :b
Re: [gentoo-user] To Wifi or not to Wifi...
* meino.cra...@gmx.de [150728 14:44]: [..SNIP..] > Hi Todd, > > ok, I've fixed that...now it displays another error: > > >/usr/sbin/hostapd /etc/hostapd/hostapd.conf > Configuration file: /etc/hostapd/hostapd.conf > wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE > Using interface wlan0 with hwaddr 14:cc:20:17:24:49 and ssid "" > VLAN: vlan_set_name_type: SET_VLAN_NAME_TYPE_CMD name_type=2 failed: Package > not installed > wlan0: interface state COUNTRY_UPDATE->ENABLED > wlan0: AP-ENABLED > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) > WPA: wpa_sm_step() called recursively > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to local deauth > request > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) > WPA: wpa_sm_step() called recursively > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to local deauth > request > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) > WPA: wpa_sm_step() called recursively > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to local deauth > request > > > The vlan thingy seems to be a missing CONFIG in the kernel I use...I > am currently backing a new one with this option set. > > But what is that > "WPA: wpa_sm_step() called recursively" > message telling me? > The device accessing the AP is an ASUS Memo Pad 7 ME176CX tablet... > > Best regards, > Meino Hi Meino, Looking at the code it looks like the "WPA: wpa_sm_step() called recursively" message is due to the WPA state machine of hostapd currently running a step in its state machine and that step then trying to run another step in the state machine. It seems like that's an a hostapd problem, probably triggered by the authentication issues. Can you post your hostapd.conf file (with passwords and other personal information redacted?) It still seems like something with authentication isn't quite right. Also, have you seen https://github.com/oblique/create_ap There's even Gentoo instructions for pulling it from an overlay. It might be interesting to see what kind of config file that script creates (and if it works.) Regards, Todd
Re: [gentoo-user] To Wifi or not to Wifi...
Thanasis [15-07-28 19:28]: > On 07/28/2015 07:36 PM, meino.cra...@gmx.de wrote: > > >When starting hostapd, it says: > > * Caching service dependencies ... > >[ ok ] > > * Bringing up interface wlan0 > > * Running preup ... > > * Starting wpa_supplicant on wlan0 ... > > * start-stop-daemon: /sbin/wpa_supplicant does not exist > >< > * ERROR: net.wlan0 failed to start > > * ERROR: cannot start hostapd as net.wlan0 would not start > > > > try the following in your /etc/conf.d/net > > modules_wlan0="!iwconfig !wpa_supplicant" > Hi Thanasis, thanks for your help:) ...it was already set that way... (scratching my head...) Best regards, Meino
Re: [gentoo-user] To Wifi or not to Wifi...
Todd Goodman [15-07-28 20:24]: > * meino.cra...@gmx.de [150728 14:08]: > [..SNIP..] > > Hi Todd, > > > > I unblocked with rfkill and I am a step further: > > The SSID is shown on my tablet together with a > > boobastic signal strength (no wonder: distance is below 30 cm...;) > > BUT: No connect...: > > > > I start hostapd by hand since wpa_supplicant seems to be hardcoded > > somewhere... > > > > Now I got this (stderr of hostapd) > > > > wlan0: interface state COUNTRY_UPDATE->ENABLED > > wlan0: AP-ENABLED > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) > > wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd > > wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session > > 55B7C32D- > > wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN) > > wlan0: AP-STA-DISCONNECTED ac:9e:17:e7:c7:bd > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: disassociated > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to inactivity > > (timer DEAUTH/REMOVE) > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) > > wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd > > wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session > > 55B7C32D-0001 > > wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN) > > wlan0: AP-STA-DISCONNECTED ac:9e:17:e7:c7:bd > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: disassociated > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to inactivity > > (timer DEAUTH/REMOVE) > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) > > wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd > > wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session > > 55B7C32D-0002 > > wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN) > > wlan0: AP-STA-DISCONNECTED ac:9e:17:e7:c7:bd > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: disassociated > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to inactivity > > (timer DEAUTH/REMOVE) > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated > > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) > > wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd > > wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session > > 55B7C32D-0003 > > wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN) > > > > What's happening here...? > > > > I am sure, it is a layer 8 failure ;) > > (me) > > > > Best regards, > > Meino > > Hi Meino, > > Again, I'm not sure, but it looks like hostapd is set up to do WPA with EAP > (WPA-Enterprise) which uses a RADIUS backend. > > Is it possible that you want to make sure your hostapd configuration > file is configured for WPA-PSK (something like:) > > auth_algs=1 # 1=wpa, 2=wep, 3=both > wpa=2 # WPA2 only > wpa_key_mgmt=WPA-PSK > rsn_pairwise=CCMP > wpa_passphrase=somepassword > > Sorry if you already posted that you have that already. I've lost track > of what your hostapd configuration file has in it. > > Regards, > > Todd > Hi Todd, ok, I've fixed that...now it displays another error: >/usr/sbin/hostapd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE Using interface wlan0 with hwaddr 14:cc:20:17:24:49 and ssid "" VLAN: vlan_set_name_type: SET_VLAN_NAME_TYPE_CMD name_type=2 failed: Package not installed wlan0: interface state COUNTRY_UPDATE->ENABLED wlan0: AP-ENABLED wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) WPA: wpa_sm_step() called recursively wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to local deauth request wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) WPA: wpa_sm_step() called recursively wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to local deauth request wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) WPA: wpa_sm_step() called recursively wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to local deauth request The vlan thingy seems to be a missing CONFIG in the kernel I use...I am currently backing a new one with this option set. But what is that "WPA: wpa_sm_step() called recursively" message telling me? The device accessing the AP is an ASUS Memo Pad 7 ME176CX tablet... Best regards, Meino
Re: [gentoo-user] To Wifi or not to Wifi...
* meino.cra...@gmx.de [150728 14:08]: [..SNIP..] > Hi Todd, > > I unblocked with rfkill and I am a step further: > The SSID is shown on my tablet together with a > boobastic signal strength (no wonder: distance is below 30 cm...;) > BUT: No connect...: > > I start hostapd by hand since wpa_supplicant seems to be hardcoded > somewhere... > > Now I got this (stderr of hostapd) > > wlan0: interface state COUNTRY_UPDATE->ENABLED > wlan0: AP-ENABLED > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) > wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd > wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session > 55B7C32D- > wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN) > wlan0: AP-STA-DISCONNECTED ac:9e:17:e7:c7:bd > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: disassociated > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to inactivity > (timer DEAUTH/REMOVE) > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) > wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd > wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session > 55B7C32D-0001 > wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN) > wlan0: AP-STA-DISCONNECTED ac:9e:17:e7:c7:bd > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: disassociated > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to inactivity > (timer DEAUTH/REMOVE) > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) > wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd > wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session > 55B7C32D-0002 > wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN) > wlan0: AP-STA-DISCONNECTED ac:9e:17:e7:c7:bd > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: disassociated > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to inactivity > (timer DEAUTH/REMOVE) > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated > wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) > wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd > wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session > 55B7C32D-0003 > wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN) > > What's happening here...? > > I am sure, it is a layer 8 failure ;) > (me) > > Best regards, > Meino Hi Meino, Again, I'm not sure, but it looks like hostapd is set up to do WPA with EAP (WPA-Enterprise) which uses a RADIUS backend. Is it possible that you want to make sure your hostapd configuration file is configured for WPA-PSK (something like:) auth_algs=1 # 1=wpa, 2=wep, 3=both wpa=2 # WPA2 only wpa_key_mgmt=WPA-PSK rsn_pairwise=CCMP wpa_passphrase=somepassword Sorry if you already posted that you have that already. I've lost track of what your hostapd configuration file has in it. Regards, Todd
Re: [gentoo-user] To Wifi or not to Wifi...
Todd Goodman [15-07-28 19:48]: > * meino.cra...@gmx.de [150728 13:25]: > > Todd Goodman [15-07-28 19:08]: > > > * meino.cra...@gmx.de [150728 11:28]: > > > [..SNIP..] > > > > Hi Todd, > > > > > > > > thanks for your help! :) > > > > > > > > I will to adjust the config file and see what will happen... > > > > Dont worry about the password...it is a fake one. If everything is > > > > running fine, if will choose a more random one. > > > > > > > > By the way...While tumbling down the google hole ;) I came across > > > > "hostapd" which exactly seems to be build for the purpose I want: An > > > > access point. > > > > > > > > BUT: > > > > I could not decide, what tutorial is correct: > > > > Do I still need wpa_supplicant with hostapd or > > > > Don't I neeed wpa_supplicant? > > > > > > > > Thank you very much in advance for any help! > > > > Best regards, > > > > Meino > > > > > > Hi Meino, > > > > > > I don't think you need wpa_supplicant if you're using hostapd (unless > > > you need to also connect to a WAP in additional to being a WAP > > > yourself, and in that case I don't know if it requires a different > > > interface to do that.) > > > > > > I think wpa_supplicant is a supplicant (i.e., client only) component. > > > > > > But I could be wrong and hopefully someone else will chime in with more > > > hostapd experience than I have. > > > > > > Regards, > > > > > > Todd > > > > > > > Hi, > > > > Slowly but surely I got a lot of ants in my head...or it feels like. > > There are SO MANY tutorial out there and every doc says something > > different. > > > > No I got this: > > > > >rfkill list > > 1: phy1: Wireless LAN > > Soft blocked: yes > > Hard blocked: no > > > > Damn! This is the by far the most complicated thing which came across > > my way with linux... > > > > > > Best regards, > > Meino > > > > > > Hi Meino, > > Since it's soft blocked I think you need an: > > rfkill unblock wifi > > But I haven't had to worry about rfkill before so might have it wrong. > > Todd > Hi Todd, I unblocked with rfkill and I am a step further: The SSID is shown on my tablet together with a boobastic signal strength (no wonder: distance is below 30 cm...;) BUT: No connect...: I start hostapd by hand since wpa_supplicant seems to be hardcoded somewhere... Now I got this (stderr of hostapd) wlan0: interface state COUNTRY_UPDATE->ENABLED wlan0: AP-ENABLED wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session 55B7C32D- wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN) wlan0: AP-STA-DISCONNECTED ac:9e:17:e7:c7:bd wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: disassociated wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE) wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session 55B7C32D-0001 wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN) wlan0: AP-STA-DISCONNECTED ac:9e:17:e7:c7:bd wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: disassociated wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE) wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session 55B7C32D-0002 wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN) wlan0: AP-STA-DISCONNECTED ac:9e:17:e7:c7:bd wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: disassociated wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE) wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: authenticated wlan0: STA ac:9e:17:e7:c7:bd IEEE 802.11: associated (aid 1) wlan0: AP-STA-CONNECTED ac:9e:17:e7:c7:bd wlan0: STA ac:9e:17:e7:c7:bd RADIUS: starting accounting session 55B7C32D-0003 wlan0: STA ac:9e:17:e7:c7:bd WPA: pairwise key handshake completed (RSN) What's happening here...? I am sure, it is a layer 8 failure ;) (me) Best regards, Meino
Re: [gentoo-user] To Wifi or not to Wifi...
* meino.cra...@gmx.de [150728 13:25]: > Todd Goodman [15-07-28 19:08]: > > * meino.cra...@gmx.de [150728 11:28]: > > [..SNIP..] > > > Hi Todd, > > > > > > thanks for your help! :) > > > > > > I will to adjust the config file and see what will happen... > > > Dont worry about the password...it is a fake one. If everything is > > > running fine, if will choose a more random one. > > > > > > By the way...While tumbling down the google hole ;) I came across > > > "hostapd" which exactly seems to be build for the purpose I want: An > > > access point. > > > > > > BUT: > > > I could not decide, what tutorial is correct: > > > Do I still need wpa_supplicant with hostapd or > > > Don't I neeed wpa_supplicant? > > > > > > Thank you very much in advance for any help! > > > Best regards, > > > Meino > > > > Hi Meino, > > > > I don't think you need wpa_supplicant if you're using hostapd (unless > > you need to also connect to a WAP in additional to being a WAP > > yourself, and in that case I don't know if it requires a different > > interface to do that.) > > > > I think wpa_supplicant is a supplicant (i.e., client only) component. > > > > But I could be wrong and hopefully someone else will chime in with more > > hostapd experience than I have. > > > > Regards, > > > > Todd > > > > Hi, > > Slowly but surely I got a lot of ants in my head...or it feels like. > There are SO MANY tutorial out there and every doc says something > different. > > No I got this: > > >rfkill list > 1: phy1: Wireless LAN > Soft blocked: yes > Hard blocked: no > > Damn! This is the by far the most complicated thing which came across > my way with linux... > > > Best regards, > Meino > > Hi Meino, Since it's soft blocked I think you need an: rfkill unblock wifi But I haven't had to worry about rfkill before so might have it wrong. Todd
Re: [gentoo-user] To Wifi or not to Wifi...
Todd Goodman [15-07-28 19:08]: > * meino.cra...@gmx.de [150728 11:28]: > [..SNIP..] > > Hi Todd, > > > > thanks for your help! :) > > > > I will to adjust the config file and see what will happen... > > Dont worry about the password...it is a fake one. If everything is > > running fine, if will choose a more random one. > > > > By the way...While tumbling down the google hole ;) I came across > > "hostapd" which exactly seems to be build for the purpose I want: An access > > point. > > > > BUT: > > I could not decide, what tutorial is correct: > > Do I still need wpa_supplicant with hostapd or > > Don't I neeed wpa_supplicant? > > > > Thank you very much in advance for any help! > > Best regards, > > Meino > > Hi Meino, > > I don't think you need wpa_supplicant if you're using hostapd (unless > you need to also connect to a WAP in additional to being a WAP > yourself, and in that case I don't know if it requires a different > interface to do that.) > > I think wpa_supplicant is a supplicant (i.e., client only) component. > > But I could be wrong and hopefully someone else will chime in with more > hostapd experience than I have. > > Regards, > > Todd > Hi, Slowly but surely I got a lot of ants in my head...or it feels like. There are SO MANY tutorial out there and every doc says something different. No I got this: >rfkill list 1: phy1: Wireless LAN Soft blocked: yes Hard blocked: no Damn! This is the by far the most complicated thing which came across my way with linux... Best regards, Meino
Re: [gentoo-user] To Wifi or not to Wifi...
On 07/28/2015 07:36 PM, meino.cra...@gmx.de wrote: When starting hostapd, it says: * Caching service dependencies ... [ ok ] * Bringing up interface wlan0 * Running preup ... * Starting wpa_supplicant on wlan0 ... * start-stop-daemon: /sbin/wpa_supplicant does not exist < try the following in your /etc/conf.d/net modules_wlan0="!iwconfig !wpa_supplicant"
Re: [gentoo-user] To Wifi or not to Wifi...
* meino.cra...@gmx.de [150728 11:28]: [..SNIP..] > Hi Todd, > > thanks for your help! :) > > I will to adjust the config file and see what will happen... > Dont worry about the password...it is a fake one. If everything is > running fine, if will choose a more random one. > > By the way...While tumbling down the google hole ;) I came across > "hostapd" which exactly seems to be build for the purpose I want: An access > point. > > BUT: > I could not decide, what tutorial is correct: > Do I still need wpa_supplicant with hostapd or > Don't I neeed wpa_supplicant? > > Thank you very much in advance for any help! > Best regards, > Meino Hi Meino, I don't think you need wpa_supplicant if you're using hostapd (unless you need to also connect to a WAP in additional to being a WAP yourself, and in that case I don't know if it requires a different interface to do that.) I think wpa_supplicant is a supplicant (i.e., client only) component. But I could be wrong and hopefully someone else will chime in with more hostapd experience than I have. Regards, Todd
Re: [gentoo-user] Hubris?
On Tue, 28 Jul 2015 12:26:14 -0400, Rich Freeman wrote: > Yeah, that one probably would need some hand-rolling unless you > basically wanted to write your own mkconfig plugins or your own > mkconfig. Writing your own mkconfig plugin is pretty simple, it's just a shell script that spits out the relevant lines for each kernel it finds. for KERNEL in /boot/vmlinuz-*; do echo "menuentry \"$KERNEL\" {" echo "linux $KERNEL $STD_OPTS" echo "}" done You can tidy that up a bit and add extra lines to output No X or rescue alternatives, and you can grab the correct syntax from the mkconfig generated file in the first place. -- Neil Bothwick You are a completely unique individual, just like everybody else. pgpM_V6_HJFP2.pgp Description: OpenPGP digital signature
Re: [gentoo-user] To Wifi or not to Wifi...
Thanasis [15-07-28 18:08]: > On 07/28/2015 06:27 PM, meino.cra...@gmx.de wrote: > > >By the way...While tumbling down the google hole ;) I came across > >"hostapd" which exactly seems to be build for the purpose I want: An > >access point. > > > >BUT: > >I could not decide, what tutorial is correct: > >Do I still need wpa_supplicant with hostapd > > You don't need wpa_supplicant to run hostapd even with wpa. > > Hi Thanasis, thanks for the info :) (I will take nearly any opportunity to get rid of this over 1000 lines large wpa_supplicant conf monster...but:) When starting hostapd, it says: * Caching service dependencies ... [ ok ] * Bringing up interface wlan0 * Running preup ... * Starting wpa_supplicant on wlan0 ... * start-stop-daemon: /sbin/wpa_supplicant does not exist <
Re: [gentoo-user] Hubris?
On Tue, Jul 28, 2015 at 10:40 AM, Peter Humphrey wrote: > On Tuesday 28 July 2015 08:31:58 Rich Freeman wrote: >> On Tue, Jul 28, 2015 at 8:16 AM, Neil Bothwick wrote: > >> > I've just installed a new laptop with it, using btrfs >> > for everything but /boot. > > I know you use grub-2, which can boot that setup, but I suppose I'd need an > init thingy if I stick to grub legacy. You may not need an initramfs to run root on btrfs as long as btrfs is compiled into your kernel (I haven't looked into it closely though). You WOULD need a boot partition on ext4 to store your kernel on, since grub legacy can't read a kernel/initramfs off of btrfs. All grub does is read your kernel and initramfs and run the kernel. The kernel actually does all the drive mounting/etc. So, as long as grub can read your kernel (and initramfs if you're using one) then you're fine, since the kernel can do just about anything. And this is one of the whole points of projects like linuxbios/coreboot/etc. Traditionally PC bootloaders have been pretty limited in capabilities, so by using a linux kernel as your bootloader you can potentially boot anything linux+userspace can read (such as retrieving a kernel image and root squashfs from an FTP site and booting it, or running an SMTP server and booting whatever kernel somebody emails as an attachment - ok, I'm going a bit crazy with that one). > > My main reason for preferring grub legacy is illustrated by my present > grub.conf: > > title=Gentoo Linux 4.0.5 > kernel /boot/kernel-x86_64-4.0.5-gentoo root=/dev/md5 net.ifnames=0 > irqpoll > > title=Gentoo Linux 4.0.5, no X > kernel /boot/kernel-x86_64-4.0.5-gentoo root=/dev/md5 softlevel=nox > net.ifnames=0 irqpoll > > title=Gentoo Linux 4.0.5, no network > kernel /boot/kernel-x86_64-4.0.5-gentoo root=/dev/md5 softlevel=nonet > net.ifnames=0 irqpoll > > title=Gentoo Linux 3.18.16 > kernel /boot/kernel-x86_64-3.18.16-gentoo root=/dev/md5 net.ifnames=0 > irqpoll > > title=Gentoo Linux 3.18.16, no X > kernel /boot/kernel-x86_64-3.18.16-gentoo root=/dev/md5 softlevel=nox > net.ifnames=0 irqpoll > > title=Gentoo Linux 3.18.16, no network > kernel /boot/kernel-x86_64-3.18.16-gentoo root=/dev/md5 > softlevel=nonet net.ifnames=0 irqpoll > > title=Rescue System 3.18.12 > kernel /boot/kernel-x86_64-3.18.12-gentoo-rescue root=/dev/sda8 > net.ifnames=0 irqpoll > > title=Rescue System 4.0.5 > kernel /boot/kernel-x86_64-4.0.5-gentoo-rescue root=/dev/sda8 > net.ifnames=0 irqpoll > > I know it's supposed to be possible to set up something like that in grub-2, > but last time I tried it I got into a mess and gave up. > > As you say, guidance is hard to find. Yeah, that one probably would need some hand-rolling unless you basically wanted to write your own mkconfig plugins or your own mkconfig. But, it is certainly possible to hand-roll that. Something like: menuentry 'Gentoo Linux 4.0.5' { linux /boot/kernel-x86_64-4.0.5-gentoo root=/dev/md5 net.ifnames=0 irqpoll } ... You need all the header stuff like setting your root and such. The syntax changed a little from legacy grub, but it is all the same thing. If you look at the mkconfig-generated files you'll see a ton of wrapper scripting/etc that is completely unnecessary if you're hand-rolling it. There is actually very little you need to make it work. Just set root= whatever, maybe set a default=0 or whatever, and then have your menuentry lines. -- Rich
Re: [gentoo-user] To Wifi or not to Wifi...
On 07/28/2015 06:27 PM, meino.cra...@gmx.de wrote: By the way...While tumbling down the google hole ;) I came across "hostapd" which exactly seems to be build for the purpose I want: An access point. BUT: I could not decide, what tutorial is correct: Do I still need wpa_supplicant with hostapd You don't need wpa_supplicant to run hostapd even with wpa.
Re: [gentoo-user] To Wifi or not to Wifi...
Todd Goodman [15-07-28 17:01]: > * meino.cra...@gmx.de [150727 23:07]: > [..SNIP..] > > 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 > > This looks like your /etc/wpa_supplicant/wpa_supplicant.conf file is not > formatted correctly. > > I believe most of the first things you're setting are defaulted, but > even so, I'd remove them to get the rest working first (I think > ieee80211d is enabled for Global Roaming so it won't transmit on > channels you shouldn't be in your country, but you could doublecheck if > you're really concerned.) > > The lines starting with ssid=somename should be inside a: > > network={ > } > > enclosure for network configuration. > > Perhaps try with just a network block and see if wpa_supplicant likes it > OK. And make sure there's no funny line endings or the like. > > Also, you didn't out your wpa_passphrase in the error message above > so hopefully it's a fake one or you've changed it by now. > > Todd > Hi Todd, thanks for your help! :) I will to adjust the config file and see what will happen... Dont worry about the password...it is a fake one. If everything is running fine, if will choose a more random one. By the way...While tumbling down the google hole ;) I came across "hostapd" which exactly seems to be build for the purpose I want: An access point. BUT: I could not decide, what tutorial is correct: Do I still need wpa_supplicant with hostapd or Don't I neeed wpa_supplicant? Thank you very much in advance for any help! Best regards, Meino
Re: [gentoo-user] Hubris?
On Tuesday 28 July 2015 08:31:58 Rich Freeman wrote: > On Tue, Jul 28, 2015 at 8:16 AM, Neil Bothwick wrote: > > On Tue, 28 Jul 2015 12:39:47 +0100, Peter Humphrey wrote: > >> In particular, is there a suitable installation medium that can create > >> BTRFS before installing into it? > > > > System Rescue Cd So I see now I try it. I only asked because I didn't see it mentioned on their website. > > I've just installed a new laptop with it, using btrfs > > for everything but /boot. I know you use grub-2, which can boot that setup, but I suppose I'd need an init thingy if I stick to grub legacy. > Agree - I use that as my, well, rescue image in part because it ships > recent kernels and has btrfs support. Just be sure to use the most > recent version, and boot with the alternate kernel (which is currently > 3.18-based). With btrfs you'll want a recent kernel - I am currently > tracking 3.18 which is the most recent longterm, and will probably > jump to the next longterm when it matures. > > Just avoid parity raid (raid5/6) for now Yes, I was just going to use RAID-1. > Grub2 can also read your kernel/initramfs from btrfs, so I'd recommend > it even though you're trying to avoid it. Otherwise you're probably > going to need a separate ext4 boot partition (I don't think legacy > grub can read btrfs). I just make install my kernels and use > grub2-mkconfig - it is nice having a list of older kernels > auto-updated. Or you can hand-roll the config like you do in grub - > it isn't any harder than it used to be but there just aren't as many > docs on how to do it. My main reason for preferring grub legacy is illustrated by my present grub.conf: title=Gentoo Linux 4.0.5 kernel /boot/kernel-x86_64-4.0.5-gentoo root=/dev/md5 net.ifnames=0 irqpoll title=Gentoo Linux 4.0.5, no X kernel /boot/kernel-x86_64-4.0.5-gentoo root=/dev/md5 softlevel=nox net.ifnames=0 irqpoll title=Gentoo Linux 4.0.5, no network kernel /boot/kernel-x86_64-4.0.5-gentoo root=/dev/md5 softlevel=nonet net.ifnames=0 irqpoll title=Gentoo Linux 3.18.16 kernel /boot/kernel-x86_64-3.18.16-gentoo root=/dev/md5 net.ifnames=0 irqpoll title=Gentoo Linux 3.18.16, no X kernel /boot/kernel-x86_64-3.18.16-gentoo root=/dev/md5 softlevel=nox net.ifnames=0 irqpoll title=Gentoo Linux 3.18.16, no network kernel /boot/kernel-x86_64-3.18.16-gentoo root=/dev/md5 softlevel=nonet net.ifnames=0 irqpoll title=Rescue System 3.18.12 kernel /boot/kernel-x86_64-3.18.12-gentoo-rescue root=/dev/sda8 net.ifnames=0 irqpoll title=Rescue System 4.0.5 kernel /boot/kernel-x86_64-4.0.5-gentoo-rescue root=/dev/sda8 net.ifnames=0 irqpoll I know it's supposed to be possible to set up something like that in grub-2, but last time I tried it I got into a mess and gave up. As you say, guidance is hard to find. -- Rgds Peter
Re: [gentoo-user] To Wifi or not to Wifi...
* meino.cra...@gmx.de [150727 23:07]: [..SNIP..] > 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 This looks like your /etc/wpa_supplicant/wpa_supplicant.conf file is not formatted correctly. I believe most of the first things you're setting are defaulted, but even so, I'd remove them to get the rest working first (I think ieee80211d is enabled for Global Roaming so it won't transmit on channels you shouldn't be in your country, but you could doublecheck if you're really concerned.) The lines starting with ssid=somename should be inside a: network={ } enclosure for network configuration. Perhaps try with just a network block and see if wpa_supplicant likes it OK. And make sure there's no funny line endings or the like. Also, you didn't out your wpa_passphrase in the error message above so hopefully it's a fake one or you've changed it by now. Todd
Re: [gentoo-user] Hubris?
On Tue, 28 July 2015, at 12:34 pm, Peter Humphrey wrote: > > But I don't want to go from GRUB legacy to GRUB-2. Is that possible? I didn't want to go to GRUB-2 either but, in fact, doing so was far easier than I expected. Stroller.
Re: [gentoo-user] Hubris?
On Tue, Jul 28, 2015 at 8:16 AM, Neil Bothwick wrote: > On Tue, 28 Jul 2015 12:39:47 +0100, Peter Humphrey wrote: > >> In particular, is there a suitable installation medium that can create >> BTRFS before installing into it? > > System Rescue Cd, I've just installed a new laptop with it, using btrfs > for everything but /boot. > Agree - I use that as my, well, rescue image in part because it ships recent kernels and has btrfs support. Just be sure to use the most recent version, and boot with the alternate kernel (which is currently 3.18-based). With btrfs you'll want a recent kernel - I am currently tracking 3.18 which is the most recent longterm, and will probably jump to the next longterm when it matures. Just avoid parity raid (raid5/6) for now - that is very immature and there are constant reports of problems (it really was only supported at all in the last few months). Also, if you want to migrate an existing ext3/4 partition check the lists as there have been a bunch of threads about conversion issues recently - that should be a non-issue if you're just formatting a new partition. Grub2 can also read your kernel/initramfs from btrfs, so I'd recommend it even though you're trying to avoid it. Otherwise you're probably going to need a separate ext4 boot partition (I don't think legacy grub can read btrfs). I just make install my kernels and use grub2-mkconfig - it is nice having a list of older kernels auto-updated. Or you can hand-roll the config like you do in grub - it isn't any harder than it used to be but there just aren't as many docs on how to do it. -- Rich
Re: [gentoo-user] Hubris?
On Tue, 28 Jul 2015 12:39:47 +0100, Peter Humphrey wrote: > In particular, is there a suitable installation medium that can create > BTRFS before installing into it? System Rescue Cd, I've just installed a new laptop with it, using btrfs for everything but /boot. -- Neil Bothwick First Law of Laboratory Work: Hot glass looks exactly the same as cold glass. pgpUQ4kqqlmvJ.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Hubris?
On Tuesday 28 July 2015 12:34:15 I wrote: > Looks like time I investigated GPT or BTRFS. But I don't want to go from > GRUB legacy to GRUB-2. Is that possible? In particular, is there a suitable installation medium that can create BTRFS before installing into it? -- Rgds Peter
[gentoo-user] Hubris?
Hello list, Hardly had I said that MBR had caused me no problems in years, guess what? It did. I tried to mount /boot (ext2) to install a new kernel but it couldn't be mounted - wrong fs type or some such. When I got it mounted as ext4 it looked fine. Fsck had found nothing wrong either, but fdisk showed the wrong partition as Active. /boot is on /dev/md1 which is RAID-1 built on /dev/sd[ab]1, so sda1 should have been marked Active (it was when I set it up), but the spare, empty sda2 was instead. On booting a rescue system and correcting the Active flag with fdisk, all the files in it disappeared. So I put them back in and booted the main system. Same all over again. In the end I just zapped /, /var, /usr/portage etc, restored from an older backup, synced and emerged -e world. Then restoring the files in /boot resulted in a stable system. Looks like time I investigated GPT or BTRFS. But I don't want to go from GRUB legacy to GRUB-2. Is that possible? -- Rgds Peter
Re: [gentoo-user] Testing SSD? (Somewhat OT)
Am 17.07.2015 um 18:15 schrieb Daniel Frey: > Well, I sure haven't had much luck with SSDs. This will be the third one > I've lost. > > On Wednesday I was watching my mythtv frontend when it hardlocked. Last > time this happened the 7-year-old rust recordings drive failed. However, > all that checked out and I found out I couldn't ssh in to the frontend > to kill mythfrontend. > > I checked the CPU & RAM by booting via USB and it all checked out. I > tried booting the SSD and the kernel panicked. After rebooting again, it > started, but every command run ended with a segmentation fault. > > I decided to try flashing the drive's firmware, and that did so > successfully. It booted right away after that with no panic, but the > frontend decided that it couldn't find the backend any longer. I found > this was not true, I (as root) could ping and connect via mysql using > remote credentials. > > After another twenty minutes of fiddling around, I discovered the setUID > root bit on /bin/ping had been removed somehow and this was preventing > mythtv from finding its backend. At this point I restored from backup > and then I discovered after restoring /bin/ping lost it setuid root bit > again. > > After that I gave up (thinking what else has changed on the disk) and > yesterday bought a new SSD, this time a SanDisk model. It was cheap and > I hope I don't regret this in the future. So my frontend is once again > running. > > That aside, the drive that failed is a Crucial m4. I have done some > searching as how to run diagnostics on an SSD. This drive should still > have eight or so months of warranty left. These drive did have a bug if > they ran longer than 51xx hours but: > > 9 Power_On_Hours 0x0032 100 100 001Old_age Always > - 2382 > > ...there's only 2382 on this drive. It also accesses all media remotely > through the LAN. > > Currently I'm running shred on the affected SSD. I also could run > smartctl on the drive. Do other diagnostic tools even work on SSDs? This > is where I'm sort of lost, I've not tried diagnostics on them. I usually > send them back for warranty, but this time I'm curious. > > Dan > > you know - this does not sound like ssd failure. Most SSDs bomb out by just becoming completely unacessible. dmesg errors? are you using ecc ram? if not - maybe, just maybe it is your ram at fault. The stuff the kernel sends and the stuff that end on the ssd might not be identical.