Re: ksh equivalent to shell-expand-line

2018-10-06 Thread Tomasz Rola
On Sun, Oct 07, 2018 at 12:03:31AM +0200, Klemens Nanni wrote:
> On Sat, Oct 06, 2018 at 09:38:42PM +0200, John Ankarström wrote:
[...]
> And yet, it disregards quoting and will errornously expand the following
> example into multiple words instead of one:
> 
>   bash-4.4$ echo "$(echo a b)"
>   bash-4.4$ echo a b

Just in case it matters to anybody:

  $ echo "$(echo a b)"
a b
  $   bash --version
GNU bash, version 4.2.25(1)-release (x86_64-pc-linux-gnu)

Looks like something changed in between?

-- 
Regards,
Tomasz Rola

--
** A C programmer asked whether computer had Buddha's nature.  **
** As the answer, master did "rm -rif" on the programmer's home**
** directory. And then the C programmer became enlightened...  **
** **
** Tomasz Rola  mailto:tomasz_r...@bigfoot.com **



Re: FreeBSD 11.2 under vmm

2018-10-06 Thread Mike Larkin
On Fri, Oct 05, 2018 at 06:46:52PM -0700, Joseph Olatt wrote:
> I am trying to install FreeBSD 11.2 under vmm and I am not seeing any
> success. The booting of the install ISO keeps looping after a certain
> point. See included log.
> 

not supported yet.



Re: FreeBSD 11.2 under vmm

2018-10-06 Thread Klemens Nanni
On Fri, Oct 05, 2018 at 06:46:52PM -0700, Joseph Olatt wrote:
> I am trying to install FreeBSD 11.2 under vmm and I am not seeing any
> success. The booting of the install ISO keeps looping after a certain
> point. See included log.
This is a known issue, vmd(8) should tell you this:

Oct  7 00:16:18 x250 vmd[20993]: vmd: no pci i/o function for reg 0xbc80

FreeBSD requires local APIC support which vmm(4) does not provide yet.
http://man.freebsd.org/apic



Re: ksh equivalent to shell-expand-line

2018-10-06 Thread Klemens Nanni
On Sat, Oct 06, 2018 at 09:38:42PM +0200, John Ankarström wrote:
> Is there a way for ksh to expand a $(command substitution) without having to
> execute the entire line?
No.

> bash provides this via shell-expand-line (bound to Ctrl-Alt-e by default),
>From bash(1):

shell-expand-line (M-C-e)
Expand the line as the shell does.  This performs alias and
history expansion as well as all of the shell word expansions.

And yet, it disregards quoting and will errornously expand the following
example into multiple words instead of one:

bash-4.4$ echo "$(echo a b)"
bash-4.4$ echo a b

> and ksh seems to have expand-file, but that only works for filenames.
We have no other expanding functions.



Re: Monitoring system

2018-10-06 Thread Richard Toohey

On 10/07/18 09:05, flipchan wrote:

My phpinfo: dpaste.com/0VDR4TE

Have you looked in /usr/local/share/doc/pkg-readmes/ for anything useful.

I've moved off PHP 5.6 so not exactly sure what the file will be called.

The instructions for 7.0.31:

    /usr/local/share/doc/pkg-readmes/php-7.0.31

... include instructions about what to do for some extensions so you 
/may/ need to do something similar.



- some 'core' extensions with extra dependencies are packaged separately
(e.g. php-pdo_mysql, php-ldap, php-soap, and others) and can be installed
with pkg_add(1).
...
For all extensions packaged separately (and for opcache), you will find a
file named /etc/php-7.0.sample/(MODULE_NAME).ini. To enable it,
add a symlink into /etc/php-7.0 and restart:

    ln -sf ../php-7.0.sample/MODULE_NAME.ini /etc/php-7.0/


Obviously these instructions will not be directly applicable in your 
case, but do have a look in /usr/local/share/doc/pkg-readmes for 
anything php-related.


On October 6, 2018 4:42:16 PM UTC, Stuart Henderson  
wrote:

On 2018-10-06, Richard Toohey  wrote:

On 10/06/18 07:16, Stuart Henderson wrote:

On 2018/10/05 17:35, flipchan wrote:

It's weird because I have no error files that it describes the

error in, I am promted with

"Configuration file errror DB type MYSQL is not supported by

current setup"

I don't think the issue here - but if you are using PHP 7 make sure
mysqli is used.

http://php.net/manual/en/mysqlinfo.api.choosing.php

It all depends what zabbix-web wants. If it's written to use one
specific
api then you will need to use the module providing that. pdo_mysql is
probably the most common nowadays.




Re: Monitoring system

2018-10-06 Thread flipchan
My phpinfo: dpaste.com/0VDR4TE

On October 6, 2018 4:42:16 PM UTC, Stuart Henderson  
wrote:
>On 2018-10-06, Richard Toohey  wrote:
>> On 10/06/18 07:16, Stuart Henderson wrote:
>>> On 2018/10/05 17:35, flipchan wrote:
 It's weird because I have no error files that it describes the
>error in, I am promted with
 "Configuration file errror DB type MYSQL is not supported by
>current setup"
>> I don't think the issue here - but if you are using PHP 7 make sure 
>> mysqli is used.
>>
>> http://php.net/manual/en/mysqlinfo.api.choosing.php
>
>It all depends what zabbix-web wants. If it's written to use one
>specific
>api then you will need to use the module providing that. pdo_mysql is
>probably the most common nowadays.

-- 
Take Care Sincerely flipchan layerprox dev


Re: Monitoring system

2018-10-06 Thread flipchan


Is not returning anything

On October 6, 2018 6:36:38 AM UTC, Tom Smyth  
wrote:
>Howdy
>
>Create a atest phpinfo(); file  in ur webserver htdocs directory
>And open the url to that file in ur browser
>to show you what php configuration and modules are loaded
>Check this page for details
>
>http://php.net/manual/en/function.phpinfo.php
>On a side note
>This function is useful in testing  other oses also because  the os can
>load phpconfig from anywhere.. and frequently with nonstandard packages
>you
>can be editing the wrong php.ini config...
>
>
>On Fri 5 Oct 2018, 22:35 Edgar Pettijohn, 
>wrote:
>
>>
>> On Oct 5, 2018 3:48 PM, flipchan  wrote:
>> >
>> > Maybe I need to set some sys variable or something similar cuz
>> > php-mysqli
>> > php-pdo_mysql
>> > php-mysql is installed
>> >
>>
>> But are they enabled.  Read the package read me for PHP for
>instructions.
>> > On October 5, 2018 6:16:07 PM UTC, Stuart Henderson
>
>> wrote:
>> > >On 2018/10/05 17:35, flipchan wrote:
>> > >> It's weird because I have no error files that it describes the
>error
>> > >in, I am promted with
>> > >> "Configuration file errror DB type MYSQL is not supported by
>current
>> > >setup"
>> > >
>> > >Oh, in that case (always include the actual error message!) I'm
>pretty
>> > >sure
>> > >you didn't enable the relevant PHP database module. I don't know
>which
>> > >one
>> > >zabbix-web needs but I'd try php-pdo_mysql first.
>> > >
>> > >> I have set all configs (/var/www/zabbix/conf/zabbix.conf.php and
>> > >/etc/zabbix*) to use 127.0.0.1
>> > >> 3306 , but nono :/
>> > >>
>> > >> On October 5, 2018 12:55:15 PM UTC, Stuart Henderson
>> > > wrote:
>> > >>
>> > >> On 2018-10-05, flipchan  wrote:
>> > >>  Hey how did everyone get zabbix running I tried the
>zabbix
>> > >MySQL with the zabbix web on 6.2 but I get a database connection
>error
>> > >in the php , I assume the php can't read the config
>> > >>
>> > >> This is usually mysql/mariadb's annoying feature of
>automatically
>> > >trying
>> > >> to use a unix socket when you try to make a TCP connection
>to
>> > >localhost.
>> > >> See pkg-readmes/mariadb-server (the "chrooted daemons and
>MariaDB
>> > >> socket" for a workaround.
>> > >>
>> > >>
>> > >>
>> > >>
>> > >> --
>> > >> Take Care Sincerely flipchan layerprox dev
>> >
>> > --
>> > Take Care Sincerely flipchan layerprox dev
>>
>>

-- 
Take Care Sincerely flipchan layerprox dev


Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Daniel Ouellet
On 10/6/18 11:48 AM, Tim Jones wrote:
>> Thank you for handling the logistics so I don't have to do that
>> on top of everything else I'm doing.
>> I am looking forward to receiving your shipment.
> 
> 
> Oh right, and the rest of us don't have day-jobs, plus other commitments 
> outside of working hours ?
> 
> From now on, I'll take a simple stance.  If you want my spare Unifi kit, 
> you'll pay for the packaging and the postage.
> 
> If you want another financial donation ?  Well, be prepared for it to come 
> with tight restrictions.
> 

WOW.

I wonder what restriction OpenBSD put on you for the usage of the project...

Oh wait NONE

You are barking to the wrong tree man!

You use and accept totally free gift, but you fell you need to put
restriction on your...

WOW I wonder how your friends and family fell when you give them gift!!!

Oh wait, may be you have no friends...



ksh equivalent to shell-expand-line

2018-10-06 Thread John Ankarström

Hello again,

Is there a way for ksh to expand a $(command substitution) without 
having to execute the entire line?


bash provides this via shell-expand-line (bound to Ctrl-Alt-e by 
default), and ksh seems to have expand-file, but that only works for 
filenames.


Any ideas?

Best regards,
John



Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Theo de Raadt
Tim Jones  wrote:

> ‐‐‐ Original Message ‐‐‐
> On Saturday, October 6, 2018 6:00 PM, Jacqueline Jolicoeur 
>  wrote:
> 
> > > Oh right, and the rest of us don't have day-jobs, plus other
> >
> > commitments outside of working hours ?
> >
> > That must be hard for you. You feel you want more time in your life.
> >
> > > If you want another financial donation ? Well, be prepared for
> >
> > it to come with tight restrictions.
> >
> > You feel the way to have control is with money.
> 
> 
> Jacqueline,
> 
> You are taking things um-necessarily out of context.

Tim

Your preaching days are over.

If you think you can tell the OpenBSD group how to behave, then you open
the door for judgements against yourself.

Let it go, and consider leaving for good.



Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Tim Jones
‐‐‐ Original Message ‐‐‐
On Saturday, October 6, 2018 6:00 PM, Jacqueline Jolicoeur  
wrote:

> > Oh right, and the rest of us don't have day-jobs, plus other
>
> commitments outside of working hours ?
>
> That must be hard for you. You feel you want more time in your life.
>
> > If you want another financial donation ? Well, be prepared for
>
> it to come with tight restrictions.
>
> You feel the way to have control is with money.


Jacqueline,

You are taking things um-necessarily out of context.



Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Jacqueline Jolicoeur
> Oh right, and the rest of us don't have day-jobs, plus other
commitments outside of working hours ?

That must be hard for you. You feel you want more time in your life.

> If you want another financial donation ?  Well, be prepared for
it to come with tight restrictions.

You feel the way to have control is with money.



Re: Monitoring system

2018-10-06 Thread Stuart Henderson
On 2018-10-06, Richard Toohey  wrote:
> On 10/06/18 07:16, Stuart Henderson wrote:
>> On 2018/10/05 17:35, flipchan wrote:
>>> It's weird because I have no error files that it describes the error in, I 
>>> am promted with
>>> "Configuration file errror DB type MYSQL is not supported by current setup"
> I don't think the issue here - but if you are using PHP 7 make sure 
> mysqli is used.
>
> http://php.net/manual/en/mysqlinfo.api.choosing.php

It all depends what zabbix-web wants. If it's written to use one specific
api then you will need to use the module providing that. pdo_mysql is
probably the most common nowadays.




Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Stuart Henderson
On 2018-10-06, Tim Jones  
wrote:
> If you want another financial donation ?  Well, be prepared for it to come 
> with tight restrictions.

That becomes not a "donation" but more of a "payment for work", many
devs can't accept that.

With want.html if you have the kit spare (or are feeling rich) and don't
mind mailing it out then contact the person asking for it. If not then
just move on, there is no need to waste people's time with this sort of
email.




Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Theo de Raadt
Tim Jones  wrote:

> > Thank you for handling the logistics so I don't have to do that
> > on top of everything else I'm doing.
> > I am looking forward to receiving your shipment.
> 
> 
> Oh right, and the rest of us don't have day-jobs, plus other commitments 
> outside of working hours ?
> 
> From now on, I'll take a simple stance.  If you want my spare Unifi kit, 
> you'll pay for the packaging and the postage.
> 
> If you want another financial donation ?  Well, be prepared for it to come 
> with tight restrictions.
> 

oh my, the moral outrage

This is not the place for it.  Suggest you find other mailing lists to
participate in.



Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Tim Jones
> Thank you for handling the logistics so I don't have to do that
> on top of everything else I'm doing.
> I am looking forward to receiving your shipment.


Oh right, and the rest of us don't have day-jobs, plus other commitments 
outside of working hours ?

>From now on, I'll take a simple stance.  If you want my spare Unifi kit, 
>you'll pay for the packaging and the postage.

If you want another financial donation ?  Well, be prepared for it to come with 
tight restrictions.



Re: Latest snapshot pkg_add issue

2018-10-06 Thread Marc Peters
On Sat, Oct 06, 2018 at 09:27:47AM -0400, Ken M wrote:
> I just installed the latest snapshot and when I run a pkg_add it doesn't find
> anything as it is trying to look in 6.4 for packages.
> 
> $ uname -r
> 6.4
> 
> Not sure if this is an issue in the latest snapshot or I stupidly missed some
> information.

It's looking in the not yet there release folder for 6.4. You can use -Dsnap to 
get snapshot packages. 

hth,
Marc



Re: Latest snapshot pkg_add issue

2018-10-06 Thread Andrey Melentyev
On Saturday, October 6, 2018 3:27 PM, Ken M  wrote:

> I just installed the latest snapshot and when I run a pkg_add it doesn't find
> anything as it is trying to look in 6.4 for packages.
>
> $ uname -r
> 6.4
>
> Not sure if this is an issue in the latest snapshot or I stupidly missed some
> information.

when close to the release date, you have to add a "-D snap" argument
to the pkg_add. pkg_add(1) sheds some light on how the argument works.

Hope this helps.

Andrey




Latest snapshot pkg_add issue

2018-10-06 Thread Ken M
I just installed the latest snapshot and when I run a pkg_add it doesn't find
anything as it is trying to look in 6.4 for packages.

$ uname -r
6.4

Not sure if this is an issue in the latest snapshot or I stupidly missed some
information.



Re: Debug / Driver / Kernel / WiFi

2018-10-06 Thread Stefan Sperling
On Sat, Oct 06, 2018 at 01:32:55PM +0200, NN wrote:
> Hi all,
> 
> Many thanks for your support and reply!
> 
> I am not Profi (I have experience < 1year with OpenBSD and C Programming.),
> that why its will take me a lot of time to fix and try something.
> 
> After Mr. Sperling first review of my Code ... I have made few fixes.
> 
> In attachment you can see my new patch. Please, try it and send me your
> feedback.
> 
> Its working for me. (*no more ERROR: ath0 unable to reset hardware*)

Thank you! This is looking great. I see only two remaining problems:

Please don't use C++-style // comments. The lines commented this way
can just be removed.

More importantly it looks like these changes are based on work done
by Nick Kossifidis in Linux ath5k. I am quoting the relevant changes
from the Linux git log below. So I doubt this is your original work. 

It is OK to copy this code into OpenBSD because it is licensed under
ISC, the same licence used by our ath(4) driver which this Linux code
was based on. But only under the condition that we give attribution
to the original author. So please copy Nick's copyright line into our
files as well. You can find it at the top of each file you've copied
code from.

And then we should be good to go.


commit cc6323c7d8c231d83e592ff9f7acf2cac5e016f7
Author: Nick Kossifidis 
Date:   Sun Jul 20 06:44:43 2008 +0300

ath5k: Update channel functions

 * Add channel function for RF2425 (got this from decompiling binary
   HAL, i have no idea why there is a 5GHz section but i'm looking
   into it)
 * Update RF5112 channel function (also got this from decompiling binary 
HAL)
 * Set JAPAN setting for channel 14 on all PHY chips

Changes-licensed-under: ISC
Signed-off-by: Nick Kossifidis 
Signed-off-by: John W. Linville 

diff --git a/drivers/net/wireless/ath5k/phy.c b/drivers/net/wireless/ath5k/phy.c
index 66af70bd14e7..cbc362d20719 100644
--- a/drivers/net/wireless/ath5k/phy.c
+++ b/drivers/net/wireless/ath5k/phy.c
@@ -1898,9 +1898,6 @@ static int ath5k_hw_rf5112_channel(struct ath5k_hw *ah,
data = data0 = data1 = data2 = 0;
c = channel->center_freq;
 
-   /*
-* Set the channel on the RF5112 or newer
-*/
if (c < 4800) {
if (!((c - 2224) % 5)) {
data0 = ((2 * (c - 704)) - 3040) / 10;
@@ -1912,7 +1909,7 @@ static int ath5k_hw_rf5112_channel(struct ath5k_hw *ah,
return -EINVAL;
 
data0 = ath5k_hw_bitswap((data0 << 2) & 0xff, 8);
-   } else {
+   } else if ((c - (c % 5)) != 2 || c > 5435) {
if (!(c % 20) && c >= 5120) {
data0 = ath5k_hw_bitswap(((c - 4800) / 20 << 2), 8);
data2 = ath5k_hw_bitswap(3, 2);
@@ -1924,6 +1921,9 @@ static int ath5k_hw_rf5112_channel(struct ath5k_hw *ah,
data2 = ath5k_hw_bitswap(1, 2);
} else
return -EINVAL;
+   } else {
+   data0 = ath5k_hw_bitswap((10 * (c - 2) - 4800) / 25 + 1, 8);
+   data2 = ath5k_hw_bitswap(0, 2);
}
 
data = (data0 << 4) | (data1 << 1) | (data2 << 2) | 0x1001;
@@ -1934,6 +1934,45 @@ static int ath5k_hw_rf5112_channel(struct ath5k_hw *ah,
return 0;
 }
 
+/*
+ * Set the channel on the RF2425
+ */
+static int ath5k_hw_rf2425_channel(struct ath5k_hw *ah,
+   struct ieee80211_channel *channel)
+{
+   u32 data, data0, data2;
+   u16 c;
+
+   data = data0 = data2 = 0;
+   c = channel->center_freq;
+
+   if (c < 4800) {
+   data0 = ath5k_hw_bitswap((c - 2272), 8);
+   data2 = 0;
+   /* ? 5GHz ? */
+   } else if ((c - (c % 5)) != 2 || c > 5435) {
+   if (!(c % 20) && c < 5120)
+   data0 = ath5k_hw_bitswap(((c - 4800) / 20 << 2), 8);
+   else if (!(c % 10))
+   data0 = ath5k_hw_bitswap(((c - 4800) / 10 << 1), 8);
+   else if (!(c % 5))
+   data0 = ath5k_hw_bitswap((c - 4800) / 5, 8);
+   else
+   return -EINVAL;
+   data2 = ath5k_hw_bitswap(1, 2);
+   } else {
+   data0 = ath5k_hw_bitswap((10 * (c - 2) - 4800) / 25 + 1, 8);
+   data2 = ath5k_hw_bitswap(0, 2);
+   }
+
+   data = (data0 << 4) | data2 << 2 | 0x1001;
+
+   ath5k_hw_reg_write(ah, data & 0xff, AR5K_RF_BUFFER);
+   ath5k_hw_reg_write(ah, (data >> 8) & 0x7f, AR5K_RF_BUFFER_CONTROL_5);
+
+   return 0;
+}
+
 /*
  * Set a channel on the radio chip
  */
@@ -1963,6 +2002,9 @@ int ath5k_hw_channel(struct ath5k_hw *ah, struct 
ieee80211_channel *channel)
case AR5K_RF5111:
ret = ath5k_hw_rf5111_channel(ah, channel);
break;
+   case AR5K_RF2425:
+   ret = ath5k_hw_rf2425_channel(ah, channel);
+   break;
default:
  

Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Otto Moerbeek



Tim Jones  schreef op 6 
oktober 2018 13:12:19 CEST:
>> That's the nature of a donation: it comes with
>> no strings attached for the party receiving.
>
>Evidently you have not heard of restricted funds.
>
>If a donor gives on a restricted funds basis (happens all the time),
>then its black and white, either (a) return the funds or (b) abide by
>the restrictions set by the donor.
>
>The vast majority of non-profits will quite happily accept restricted
>funds because its a bit of a "cut

But none will accept restrictions after the donation has already been given 
without those. 

-- 
Verstuurd vanaf mijn Android apparaat met K-9 Mail. Excuseer mijn beknoptheid.


Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Stefan Sperling
On Sat, Oct 06, 2018 at 11:22:12AM +, Tim Jones wrote:
> I think the point I'm making here is it should be worthwhile to send the kit.
> 
> Unifi access points are so cheap, that second-hand ones "lying around" are 
> not likely to be worth the cost and effort to ship internationally (or even 
> nationally in the case of some postal systems).
> 
> Something like a 10gig switch or whatever would be a different kettle of 
> fish, as the residual value would make it worthwhile.
> 
> For commodity kit like that, I think Tom Smyth is thinking more down the 
> correct lines of approaching the manufacturer.  I would also suggest 
> approaching the higher-tier "authorised resellers" would be an equally good 
> idea, as larger resellers higher up the food chain are often allocated a 
> quota of free/cheap units.  They are generally not permitted to dispose of 
> the freebies for a defined period, but after that, they can normally do with 
> them as they wish.
> 

Thank you for handling the logistics so I don't have to do that
on top of everything else I'm doing.
I am looking forward to receiving your shipment.



Re: Debug / Driver / Kernel / WiFi

2018-10-06 Thread NN

Hi all,

Many thanks for your support and reply!

I am not Profi (I have experience < 1year with OpenBSD and C 
Programming.), that why its will take me a lot of time to fix and try 
something.


After Mr. Sperling first review of my Code ... I have made few fixes.

In attachment you can see my new patch. Please, try it and send me your 
feedback.


Its working for me. (*no more ERROR: ath0 unable to reset hardware*)

My dmesg output:

ath0 at pci3 dev 0 function 0 "Atheros AR5424" rev 0x11: apic 2 int 18
ath0: AR5424 14.2 phy 7.0 rf 10.2 eeprom 5.3, WOR0W, address 
00:22:5f:54:aa:50


My pcidump output:

8:0:0: Atheros AR5424
    0x: Vendor ID: 168c Product ID: 001c
    0x0004: Command: 0107 Status: 0010
    0x0008: Class: 02 Subclass: 00 Interface: 00 Revision: 11
    0x000c: BIST: 00 Header Type: 00 Latency Timer: 00 Cache Line 
Size: 10

    0x0010: BAR mem 64bit addr: 0xfa00/0x0001
    0x0018: BAR empty ()
    0x001c: BAR empty ()
    0x0020: BAR empty ()
    0x0024: BAR empty ()
    0x0028: Cardbus CIS: 5001
    0x002c: Subsystem Vendor ID: 11ad Product ID: 6303
    0x0030: Expansion ROM Base Address: 
    0x0038: 
    0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
    0x0040: Capability 0x01: Power Management
    State: D0
    0x0050: Capability 0x05: Message Signalled Interrupts (MSI)
    0x0060: Capability 0x10: PCI Express
    Link Speed: 2.5 / 2.5 GT/s Link Width: x1 / x1
    0x0100: Enhanced Capability 0x01: Advanced Error Reporting
    0x0140: Enhanced Capability 0x02: Virtual Channel Capability
    0x0090: Capability 0x11: Extended Message Signalled Interrupts 
(MSI-X)


Now I can scan all networks around me without error:

# doas ifconfig ath0 scan

ath0: flags=8843 mtu 1500
    lladdr 00:22:5f:54:aa:50
    index 2 priority 4 llprio 3
    groups: wlan
    media: IEEE802.11 autoselect (OFDM54 mode 11g)
    status: no network
    ieee80211: nwid RUDEUS chan 1 bssid e0:28:6d:41:65:f3 wpakey 
wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
    nwid "Vodafone Hotspot" chan 1 bssid 52:28:6d:41:65:f3 
*0%* HT-MCS23 short_preamble,short_slottime
    nwid Carames3 chan 1 bssid 5c:49:79:1b:b8:76 *0%* 
HT-MCS15 privacy,short_preamble,short_slottime,wpa2
    nwid "Vodafone Homespot" chan 1 bssid 62:28:6d:41:65:f3 
*0%* HT-MCS23 short_preamble,short_slottime
    nwid RUDEUS chan 1 bssid e0:28:6d:41:65:f3 *0%* 
HT-MCS23 privacy,short_preamble,short_slottime,wpa2


But you can see that 0% of Wi-Fi power, and I don't know why ? Any ideas ?

Many thanks for strong Support!
Oleg Pahl



On 10/05/18 22:42, Erling Westenvik wrote:

On Fri, Oct 05, 2018 at 05:12:33PM +0200, Stefan Sperling wrote:

On Fri, Oct 05, 2018 at 04:53:40PM +0200, def...@posteo.de wrote:

I try to make new driver for AR5424* WiFi Module (ath0) becouse of a lot
of issues on my Fujitsu Esprimo Mobile U9210 Laptop. (Just not working
out of the box)

I have two U9210's and would love to see support for the AR5424.
However, you might be better off by simply replacing the card. On one of
my two U9210's I replaced it with a working AR9281/athn(4) 802.11n.
Accessing the card is quite easy and requires only unscrewing two or
four screws and then carefully bending open the bezel above the
keyboard.

On Fri, Oct 05, 2018 at 05:12:33PM +0200, Stefan Sperling wrote:

Please fix the existing driver instead of adding a new one.
A patch was submitted for this device some time ago but there was
never any follow-up after the first round of review process:
https://marc.info/?t=15170706164&r=1&w=2

Actually that thread was the same OP. Right, Oleg?


You could use that patch as a starting point. But please note that it's
unclear whether some or all of these changes were copied from GPL code.
It would be better to base such changes on the FreeBSD driver which
seems to support this device as well.


Could you be so kind to answer:

1. How can I try my new Driver without Build Kernel each time.

No. You have to rebuild the kernel each time.


2. What kind of tools can I use for Debuging WiFi ... (just examples)

Many. Start working on it and ask again when you run into specific problems.


3. Any info about OpenBSD Drivers ? Developers Guides (Just for OpenBSD)

See https://www.openbsd.org/papers/eurobsdcon2017-device-drivers.pdf
and other presentations mentioned therein.

There is this article (also by Stefan) from 2014 as well:

http://undeadly.org/cgi?action=article&sid=20140721125235

Good luck. Please let me know if I can be of any help in testing.

Erling



Index: sys/dev/ic/ar5212.c
===
RCS file: /cvs/src/sys/dev/ic/ar5212.c,v
retrieving revision 1.59
diff -u -p -u -r1.59 ar5212.c
--- sys/dev/ic/ar5212.c	3 Feb 2018

Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Tim Jones
I think the point I'm making here is it should be worthwhile to send the kit.

Unifi access points are so cheap, that second-hand ones "lying around" are not 
likely to be worth the cost and effort to ship internationally (or even 
nationally in the case of some postal systems).

Something like a 10gig switch or whatever would be a different kettle of fish, 
as the residual value would make it worthwhile.

For commodity kit like that, I think Tom Smyth is thinking more down the 
correct lines of approaching the manufacturer.  I would also suggest 
approaching the higher-tier "authorised resellers" would be an equally good 
idea, as larger resellers higher up the food chain are often allocated a quota 
of free/cheap units.  They are generally not permitted to dispose of the 
freebies for a defined period, but after that, they can normally do with them 
as they wish.



Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Tim Jones
> That's the nature of a donation: it comes with
> no strings attached for the party receiving.

Evidently you have not heard of restricted funds.

If a donor gives on a restricted funds basis (happens all the time), then its 
black and white, either (a) return the funds or (b) abide by the restrictions 
set by the donor.

The vast majority of non-profits will quite happily accept restricted funds 
because its a bit of a "cut



Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Stefan Sperling
On Sat, Oct 06, 2018 at 09:52:18AM +, Tim Jones wrote:
> ‐‐‐ Original Message ‐‐‐
> On Saturday, October 6, 2018 9:21 AM, Marcus MERIGHI  
> wrote:
> 
> > Dear all,
> >
> > not everyone is reading want.html every day, therefore I wanted to hint
> > at: https://www.openbsd.org/want.html
> >
> > stsp@wifi is asking for gear and we should deliver :-)
> >
> > "Ubiquity Unifi Ufo / Unifi AP Pro are needed for wifi driver debugging
> > in Berlin, Germany. Contact s...@openbsd.org"
> >
> > I cannot find "Unifi Ufo", but "Unifi AP Pro" is not a cheapo Access
> > Point, around EUR 160,-- here.
> >
> > Marcus
> 
> Unifi not a cheapo access point ? That's a first for me! Unifi APs are
> probably the cheapest half-decent APs on the market, especially if you
> compare them to the typical cost of a brand name "enterprise" AP.

Great, so if you find one or two of these lying around, ship them to me.
There is no need to buy a new shrink-wrapped product to cover this request.

I need these because according to reports I received they seem to trigger
an iwm(4) bug which I want to try to reproduce locally, in the little spare
time I have, so that your and other peoples' laptops can benefit.

> As someone who has recently donated, surely this is the very sort of thing
> the OpenBSD Foundation should be funding ?  I didn't just give money to pay
> for electricity bills caused by people insisting on maintaining racks of
> vintage room-heaters.

Actually, the foundation does fund hardware occasionally, but those
tend to be bigger and more expensive items like laptops for developers
who don't have enough spare cash to buy machines that cost more than
a thousand quid. If you monitor our lists for dmesgs of rather expensive
machines you'll notice that they rarely come from developers who could
self-fund them.

By adding an entry to want.html I didn't ask the foundation specifically,
I asked *anyone* out there if they have a spare unit or two of these.

If you feel your donations are being misdirected, I am sorry for your
perceived loss. I know they are being put to good use in this project,
not just for your own benefit, but for the benefit of the open source
software ecosystem as a whole. Thanks for sharing some of your money
with the rest of us, and supporting our efforts.



Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Klemens Nanni
On Sat, Oct 06, 2018 at 09:52:18AM +, Tim Jones wrote:
> As someone who has recently donated, surely this is the very sort of thing 
> the OpenBSD Foundation should be funding ?  I didn't just give money to pay 
> for electricity bills caused by people insisting on maintaining racks of 
> vintage room-heaters.
https://www.openbsdfoundation.org/activities.html



Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Otto Moerbeek
On Sat, Oct 06, 2018 at 09:52:18AM +, Tim Jones wrote:

> ‐‐‐ Original Message ‐‐‐
> On Saturday, October 6, 2018 9:21 AM, Marcus MERIGHI  
> wrote:
> 
> > Dear all,
> >
> > not everyone is reading want.html every day, therefore I wanted to hint
> > at: https://www.openbsd.org/want.html
> >
> > stsp@wifi is asking for gear and we should deliver :-)
> >
> > "Ubiquity Unifi Ufo / Unifi AP Pro are needed for wifi driver debugging
> > in Berlin, Germany. Contact s...@openbsd.org"
> >
> > I cannot find "Unifi Ufo", but "Unifi AP Pro" is not a cheapo Access
> > Point, around EUR 160,-- here.
> >
> > Marcus
> 
> 
> Unifi not a cheapo access point ? That's a first for me! Unifi APs are 
> probably the cheapest half-decent APs on the market, especially if you 
> compare them to the typical cost of a brand name "enterprise" AP.
> 
> As someone who has recently donated, surely this is the very sort of thing 
> the OpenBSD Foundation should be funding ?  I didn't just give money to pay 
> for electricity bills caused by people insisting on maintaining racks of 
> vintage room-heaters.

Sorry, donating to the foundation does not give you the right to
bitch.  The directors spend your money as they see fit within the
goals of the foundation. That's the nature of a donation: it comes with
no strings attached for the party receiving.

Often it is more effective to ask for hw on want.html (as people tend to have
stuff lying around) than to buy new stuff all the time.

-Otto




Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Tom Smyth
I have asked ubnt to donate the hardware if that
request gets lost in space.. I will purchase them...
and donate them to stsp ...  (they can afford to give it more
than I can )
regarding the price point of the ap... they are
mid range.. and affordable if you are deploying them commercially
but they are more expensive than cheap  (almost disposable comsumer grade
routers)
regarding the your comment previous donation.. I dont
agree with your assertion, as such when one  donates
it is in trust that the foundation will centrally manage the funds.

the requests in want.html is a way for  devs of asking the community
if you have spare hardware lying around help a brother out ...
it saves paper work and time ... and not in any way controversial.
im not a dev or a member of the foundation, im someone who
donates to the foundation  money (monthly small contribution )
-beer
-hardware
and I try where I can(comercially justify it with my colleagues )
contract work to OpenBSD Devs
im happy to keep doing so ...and think want.html is a useful
way of connecting developers to users /vendors to and allow users
if they so wish to directly help a developer.

basically my past donations to the project dont give me the right
to second guess the projects future requests for assistance..


peace out ...
Tom Smyth

On Sat, 6 Oct 2018 at 11:00, Tim Jones
 wrote:
>
> ‐‐‐ Original Message ‐‐‐
> On Saturday, October 6, 2018 9:21 AM, Marcus MERIGHI  
> wrote:
>
> > Dear all,
> >
> > not everyone is reading want.html every day, therefore I wanted to hint
> > at: https://www.openbsd.org/want.html
> >
> > stsp@wifi is asking for gear and we should deliver :-)
> >
> > "Ubiquity Unifi Ufo / Unifi AP Pro are needed for wifi driver debugging
> > in Berlin, Germany. Contact s...@openbsd.org"
> >
> > I cannot find "Unifi Ufo", but "Unifi AP Pro" is not a cheapo Access
> > Point, around EUR 160,-- here.
> >
> > Marcus
>
>
> Unifi not a cheapo access point ? That's a first for me! Unifi APs are 
> probably the cheapest half-decent APs on the market, especially if you 
> compare them to the typical cost of a brand name "enterprise" AP.
>
> As someone who has recently donated, surely this is the very sort of thing 
> the OpenBSD Foundation should be funding ?  I didn't just give money to pay 
> for electricity bills caused by people insisting on maintaining racks of 
> vintage room-heaters.
>


-- 
Kindest regards,
Tom Smyth

Mobile: +353 87 6193172
The information contained in this E-mail is intended only for the
confidential use of the named recipient. If the reader of this message
is not the intended recipient or the person responsible for
delivering it to the recipient, you are hereby notified that you have
received this communication in error and that any review,
dissemination or copying of this communication is strictly prohibited.
If you have received this in error, please notify the sender
immediately by telephone at the number above and erase the message
You are requested to carry out your own virus check before
opening any attachment.



Re: want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Tim Jones
‐‐‐ Original Message ‐‐‐
On Saturday, October 6, 2018 9:21 AM, Marcus MERIGHI  
wrote:

> Dear all,
>
> not everyone is reading want.html every day, therefore I wanted to hint
> at: https://www.openbsd.org/want.html
>
> stsp@wifi is asking for gear and we should deliver :-)
>
> "Ubiquity Unifi Ufo / Unifi AP Pro are needed for wifi driver debugging
> in Berlin, Germany. Contact s...@openbsd.org"
>
> I cannot find "Unifi Ufo", but "Unifi AP Pro" is not a cheapo Access
> Point, around EUR 160,-- here.
>
> Marcus


Unifi not a cheapo access point ? That's a first for me! Unifi APs are probably 
the cheapest half-decent APs on the market, especially if you compare them to 
the typical cost of a brand name "enterprise" AP.

As someone who has recently donated, surely this is the very sort of thing the 
OpenBSD Foundation should be funding ?  I didn't just give money to pay for 
electricity bills caused by people insisting on maintaining racks of vintage 
room-heaters.



want.html: Unifi wifi gear for interop debugging

2018-10-06 Thread Marcus MERIGHI
Dear all, 

not everyone is reading want.html every day, therefore I wanted to hint
at: https://www.openbsd.org/want.html

stsp@wifi is asking for gear and we should deliver :-)

"Ubiquity Unifi Ufo / Unifi AP Pro are needed for wifi driver debugging
in Berlin, Germany. Contact s...@openbsd.org"

I cannot find "Unifi Ufo", but "Unifi AP Pro" is not a cheapo Access
Point, around EUR 160,-- here.

Marcus



Re: Monitoring system

2018-10-06 Thread Richard Toohey

On 10/06/18 07:16, Stuart Henderson wrote:

On 2018/10/05 17:35, flipchan wrote:

It's weird because I have no error files that it describes the error in, I am 
promted with
"Configuration file errror DB type MYSQL is not supported by current setup"
I don't think the issue here - but if you are using PHP 7 make sure 
mysqli is used.


http://php.net/manual/en/mysqlinfo.api.choosing.php

Oh, in that case (always include the actual error message!) I'm pretty sure
you didn't enable the relevant PHP database module. I don't know which one
zabbix-web needs but I'd try php-pdo_mysql first.


I have set all configs (/var/www/zabbix/conf/zabbix.conf.php and /etc/zabbix*) 
to use 127.0.0.1
3306 , but nono :/

On October 5, 2018 12:55:15 PM UTC, Stuart Henderson  
wrote:

 On 2018-10-05, flipchan  wrote:
  Hey how did everyone get zabbix running I tried the zabbix MySQL with 
the zabbix web on 6.2 but I get a database connection error in the php , I 
assume the php can't read the config

 This is usually mysql/mariadb's annoying feature of automatically trying
 to use a unix socket when you try to make a TCP connection to localhost.
 See pkg-readmes/mariadb-server (the "chrooted daemons and MariaDB
 socket" for a workaround.




--
Take Care Sincerely flipchan layerprox dev