Re: Ad-hoc wifi on athn(4)?

2016-04-02 Thread Stefan Sperling
On Sat, Apr 02, 2016 at 10:37:07PM -0500, Ax0n wrote:
> I'm working on a project with a local group that involves running a bunch
> of systems in Ad-Hoc mode to form a mesh network. I was hoping to join my
> daily driver to the mesh, but I'm not seeing any way to get Ad-Hoc/IBSS
> mode enabled on athn(4) or any of the USB (urtw, urtnw, run) WiFi adapters
> I have kicking around.
> 
> Checking man pages of the wifi drivers and ifmedia(4), It looks like the
> support just isn't there. If that's the case, I'll pursue another route.
> I'm hoping I'm just missing something obvious. Ideas?

You're correct, the athn(4) driver lacks IBSS support.

ral(4) should work.
I have used OpenBSD with this driver in a mesh network (OLSR-based).
This was with rt2661 and rt2560 devices. More recent devices (e.g.
RT3090) should also work in IBSS mode but I have not tested this.

ral(4) is not your only option.
The following drivers advertise IBSS support in their man pages:

  acx(4), an(4), ath(4), atu(4), atw(4), ipw(4), iwi(4), pgt(4),
  ral(4), rtw(4), rum(4), ural(4)



Re: Ad-hoc wifi on athn(4)?

2016-04-02 Thread Stefan Sperling
On Sun, Apr 03, 2016 at 07:29:09AM +0200, Stefan Sperling wrote:
> The following drivers advertise IBSS support in their man pages:
> 
>   acx(4), an(4), ath(4), atu(4), atw(4), ipw(4), iwi(4), pgt(4),
>   ral(4), rtw(4), rum(4), ural(4)

Just in case you are considering ath(4) from the above list as a replacement
for your athn(4) card, note that ath(4) does not support 11g at present.
It only supports 11b and 11a. The man page in OpenBSD 5.9 does't mention
this bug (I've just fixed the man page in -current).



Ad-hoc wifi on athn(4)?

2016-04-02 Thread Ax0n
I'm working on a project with a local group that involves running a bunch
of systems in Ad-Hoc mode to form a mesh network. I was hoping to join my
daily driver to the mesh, but I'm not seeing any way to get Ad-Hoc/IBSS
mode enabled on athn(4) or any of the USB (urtw, urtnw, run) WiFi adapters
I have kicking around.

Checking man pages of the wifi drivers and ifmedia(4), It looks like the
support just isn't there. If that's the case, I'll pursue another route.
I'm hoping I'm just missing something obvious. Ideas?

ifconfig athn0 media:
athn0: flags=8843 mtu 1500
lladdr 00:26:4d:c3:a6:b0
priority: 4
groups: wlan
media: IEEE802.11 autoselect (DS1 mode 11g)
status: no network
ieee80211: nwid HiR wpakey  wpaprotos wpa1,wpa2
wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip
supported media:
media autoselect
media autoselect mediaopt hostap
media autoselect mediaopt monitor
media autoselect mode 11b
media autoselect mode 11b mediaopt hostap
media autoselect mode 11b mediaopt monitor
media autoselect mode 11g
media autoselect mode 11g mediaopt hostap
media autoselect mode 11g mediaopt monitor

dmesg:
OpenBSD 5.9 (GENERIC.MP) #1616: Fri Feb 26 01:28:13 MST 2016
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU N455 @ 1.66GHz ("GenuineIntel" 686-class) 1.67
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF,SENSOR
real mem  = 2136285184 (2037MB)
avail mem = 2082795520 (1986MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 06/03/10, BIOS32 rev. 0 @ 0xfdc30, SMBIOS rev. 2.5
@ 0xdc010 (21 entries)
bios0: vendor TOSHIBA version "V1.70" date 06/03/2010
bios0: TOSHIBA TOSHIBA NB305
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP TCPA HPET MCFG SLIC APIC BOOT SSDT SSDT SSDT
acpi0: wakeup devices EXP1(S4) EXP2(S4) PXS3(S4) EXP4(S4) PCIB(S3) USB1(S3)
USB2(S0) USB3(S3) USB4(S0) EUSB(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.0.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N455 @ 1.66GHz ("GenuineIntel" 686-class) 1.67
GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF,SENSOR
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 5 (EXP1)
acpiprt2 at acpi0: bus 7 (EXP2)
acpiprt3 at acpi0: bus 9 (EXP3)
acpiprt4 at acpi0: bus -1 (EXP4)
acpiprt5 at acpi0: bus 17 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: !C3(100@100 mwait.3@0x30), !C2(500@20 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: !C3(100@100 mwait.3@0x30), !C2(500@20 mwait.1@0x10),
C1(1000@1 mwait.1), PSS
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT1 serial 41167 type Li-Ion oem "TOSHIBA"
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpivideo0 at acpi0: IGD0
acpivout0 at acpivideo0: LCD_
bios0: ROM list: 0xc/0xda00! 0xce000/0x1000 0xdc000/0x4000!
cpu0: Enhanced SpeedStep 1663 MHz: speeds: 1667, 1333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
0:28:2: bridge mem address conflict 0xf050/0x10
pchb0 at pci0 dev 0 function 0 "Intel Pineview DMI" rev 0x00
inteldrm0 at pci0 dev 2 function 0 "Intel Pineview Video" rev 0x00
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0: msi
inteldrm0: 1024x600
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel Pineview Video" rev 0x00 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Realtek ALC272
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 2 int 16
pci1 at ppb0 bus 5
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 2 int 17
pci2 at ppb1 bus 7
athn0 at pci2 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 2 int 17
athn0: AR9285 rev 2 (1T1R), ROM rev 14, address 00:26:4d:c3:a6:b0
ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 2 int 18
pci3 at ppb2 bus 9
9:0:0: mem address conflict 0xf052/0x1000
9:0:0: mem address conflict 0xf051/0x1
re0 

muting keyboard bell broken on amd64 -current?

2016-04-02 Thread lists
Has anyone else noticed that the keyboard bell is no longer muted when
updating -current in the past few days?

$ wsconsctl keyboard.bell.volume 
keyboard.bell.volume=0

is what shows on my machine, but I'm still getting console beeps (I
wasn't before.  My last kernel is showing as being built on Mar 31, and
the "broken" one is from Apr 3 00:54 UTC.

This is on a Thinkpad T420.

I could be misremembering how to disable the bell, but I haven't changed
any configuration other than following the usual instructions in
building -current from source and running sysmerge.

Thanks!


dmesg as follows:
OpenBSD 5.9-current (GENERIC.MP) #13: Sun Apr  3 00:31:48 UTC 2016
r...@host.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4042915840 (3855MB)
avail mem = 3916156928 (3734MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdae9c000 (63 entries)
bios0: vendor LENOVO version "83ET76WW (1.46 )" date 07/05/2013
bios0: LENOVO 4180FB6
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT HPET APIC MCFG ECDT ASF! TCPA SSDT 
SSDT DMAR UEFI UEFI UEFI
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EHC1(S3) EHC2(S3) 
HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 797.53 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 797.41 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP4)
acpiprt5 at acpi0: bus 13 (EXP5)
acpicpu0 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpicpu1 at acpi0: C3(350@104 io@0x415), C1(1000@1 halt), PSS
acpipwrres0 at acpi0: PUBS, resource for EHC1, EHC2
acpitz0 at acpi0: critical temperature is 98 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"PNP0103" at acpi0 not configured
"PNP0303" at acpi0 not configured
"LEN0015" at acpi0 not configured
"PNP0C09" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "42T4853" serial  4484 type LION oem "LGC 11"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpivideo0 at acpi0: VID_
acpivout at acpivideo0 not configured
acpivideo1 at acpi0: VID_
cpu0: Enhanced SpeedStep 797 MHz: speeds: 2501, 2500, 2200, 2000, 1800, 1600, 
1400, 1200, 1000, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 3000" rev 0x09
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1600x900
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x04: msi, address 
00:21:cc:bf:0e:12
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 6 Series HD Audio" rev 0x04: msi
azalia0: codecs: Conexant CX20590, Conexant/0x2c06, Intel/0x2805, using 
Conexant CX20590
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb4: msi
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 6 Series PCIE" rev 0xb4: msi
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 "Intel Centrino Advanced-N 6205" rev 0x34: msi, 
MIMO 2T2R, MoW, address 8c:70:5a:1c:40:1c
ppb2 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb4: msi
pci3 at ppb2 bus 13
sdhc0 at pci3 dev 0 function 0 "Ricoh 5U822 SD/MMC" rev 0x08: apic 2 int 16
sdmmc0 at sdhc0
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x04: apic 2 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel 

Re: Should random.seed on shutdown be saved a little later?

2016-04-02 Thread Ted Unangst
Kevin Chadwick wrote:
> Whilst likely not a major issue. I also started to wonder whilst
> reading man rc.shutdown, if a daemon or other process could potentially
> use /dev/urandom between saving the seed and shutdown so could/should
> the random.seed be saved a little later after /etc/rc.shutdown runs?


that doesn't matter.



no SDRs IPMI disabled?

2016-04-02 Thread Paul B. Henson
I just installed 5.9 on a Supermicro X11SSL-F board, and tried to enable
the ipmi driver. During boot, it shows:

ipmi0 at mainbus0: version 2.0 interface KCS iobase 0xca2/2 spacing 1
iic0: skipping sensors to avoid ipmi0 interactions
ipmi0: get header fails
ipmi0: no SDRs IPMI disabled
ipmi at mainbus0 not configured

Any suggestions on how to make this work? The full dmesg is:


OpenBSD 5.9 (GENERIC.MP) #1888: Fri Feb 26 01:20:19 MST 2016
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 16976416768 (16189MB)
avail mem = 16457711616 (15695MB)
User Kernel Config
UKC> enable ipmi
401 ipmi0 enabled
UKC> quit
Continuing...
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x7fb95000 (59 entries)
bios0: vendor American Megatrends Inc. version "1.0b" date 12/29/2015
bios0: Supermicro Super Server
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT SPMI MCFG HPET SSDT LPIT SSDT SSDT SSDT 
DBGP DBG2 SSDT SSDT UEFI SSDT DMAR EINJ ERST BERT HEST
acpi0: wakeup devices PEGP(S4) PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4) 
PXSX(S4) RP09(S4) PXSX(S4) RP10(S4) PXSX(S4) RP11(S4) PXSX(S4) RP12(S4) 
PXSX(S4) RP13(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E3-1240L v5 @ 2.10GHz, 2100.85 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU E3-1240L v5 @ 2.10GHz, 2100.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Xeon(R) CPU E3-1240L v5 @ 2.10GHz, 2100.00 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Xeon(R) CPU E3-1240L v5 @ 2.10GHz, 2100.00 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
cpu4 at mainbus0: apid 1 (application processor)
cpu4: Intel(R) Xeon(R) CPU E3-1240L v5 @ 2.10GHz, 2100.00 MHz
cpu4: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu4: 256KB 64b/line 8-way L2 cache
cpu4: smt 1, core 0, package 0
cpu5 at mainbus0: apid 3 (application processor)
cpu5: Intel(R) Xeon(R) CPU E3-1240L v5 @ 2.10GHz, 2100.00 MHz
cpu5: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu5: 

Locating appropriate packages for webapp install w/only FreeBSD or Debian package information

2016-04-02 Thread Damon Getsman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello.  I am really wanting to write a guide to handling a
semi-complicated install for a web app on obsd (diaspora*) but I'm a
little bit hung up on locating some of the appropriate packages.
Basically, I've got some fairly well proven installation 
instructions for various other OSes, for example Debian (or most other
mainstream) linux, and FreeBSD.  I've run into problems at the point of
locating what packages will be necessary to install on an openbsd
system to fill the same functionality.  I was under a bit of a
misconception that perhaps the package names, if not complete
locations, would be close to the same as in FreeBSD.
Is there any method for locating these packages short of doing
a search on each one of them and locating specific files and/or
developer information?  Just curious as to whether or not I might not
be in the loop for something that'll make life a lot simpler here.
Thanks for any information.

-D
iQIcBAEBAgAGBQJXACnwAAoJECqJ6HQbyBt4w1wQAKbfRqcdmlAWBJmN4gd5rlpP
n6iZFUIc8q4jRRSPAICDpruPUTA2lBZ67ZX1ZqH5Av9DarDMiYzPvrFJq/KTMwm/
yH+Yk2AJA8ez9oHEKjgPGfeGjS5QuByAZS/2k1hZaOpVFdTnnBVhSEBNcQq2+xMt
4y0tdxLTsFiXHezu2pRnWihVHOiStPqQvduDDlhzlmuz3OVh4KL28RLtaIArVbXW
Ui7+kFovYG6sild7DB+cGyPipv12Z+2Ydp9PLuLwU21oDMbBOi+GO4YmF7WdCECj
N/oWLwxUpk+w8wn+AoepSbAH50fz9cbN94J62MkhLF+P5hTD89zVSuWSG1ViDIBH
kPknKaRmlbej4aYq5NNgj5ZeLHqtX7iO3Udwp1pw+q1NjvDY2ZwISmgUDQUdFNRv
x5fClxJp9/HKheQIMCCQQVToVU9fApgXA1VU86FiYu/FShu32h1aVLOil1KlNjyN
iJRpfY3OnnaSvtWdncpaeW91RZPmU0XxibkCUomyXtIKlYsH4a+pwKOTkAkFIsk/
1PBp3NoYXqyLXgTzei0VDQ6b4sIIWgr8Ia62p7E6cFpwRi7G7cVSVzvlVDDo/sIf
vizgdzpcxbFLr4CCCDyuCnMvNvCwEGuHe1dmkh+AVWYN/4HXCdMcHtUBv9+6tgqr
XeuhS838GVlk5lKXR6df
=QX56
-END PGP SIGNATURE-



Help with IPsec multiple transform configuration

2016-04-02 Thread Sly Midnight
Apologies if this was already sent, I am having difficulty with my email
lately and this didn't look like it sent earlier.

Good morning everyone,

I am wondering is there a way to allow either via /etc/ipsec.conf or
/etc/isakmpd/isakmpd.policy to configure a road warrior type of IPsec
VPN access to my router that accomodates multiple types of IPsec clients
that regrettably have limitations in the auth/enc/DH groups they support.

For instance I am trying to get my IPsec/L2TP tunnel VPN working with
two separate clients that support it, but have weird limitations.

My Android phone only works when I set my ipsec.conf file to something
like the following:

ike passive esp transport \
   proto udp from XXX.XXX.XXX.XXX to any port 1701 \
   main auth "hmac-sha" enc "aes" group "modp1024" \
   quick auth "hmac-sha" enc "aes" group "modp1024" \
   psk "presharedkey"

But that won't work with my Chromebook which requires:

ike passive esp transport \
   proto udp from XXX.XXX.XXX.XXX to any port 1701 \
   main auth "hmac-md5" enc "aes" group "modp2048" \
   quick auth "hmac-md5" enc "aes" group "modp2048" \
   psk "presharedkey"

One requires md5 but only with modp2048 while the other might work with
md5, but only with modp1024.  If I don't specify these options than
neither work so I have to, but doing so seems to limit me to one or the
other.

Is there any way I can specify both versions simultaneously?  I don't
see anything in the various manpages about being able to allow multiple
transforms.

Any help would be greatly appreciated.

Sly



Re: simultaneous sound as many users

2016-04-02 Thread Nils Reuße
As a remark, to simultaneously listen to mpds music and the sound of a 
youtube video in Firefox (running under your user), you have to copy 
your cookie to /var/empty/ (_mpds home dir).


$ doas ls -l .aucat_cookie /var/empty/.aucat_cookie
-rw---  1 nils  nils  16 May 29  2015 .aucat_cookie
-rw---  1 _mpd  _mpd  16 May 29  2015 /var/empty/.aucat_cookie

$ doas sha1 -r .aucat_cookie /var/empty/.aucat_cookie
e8d33a71594c0ba7816e075d17afa81e0ba220ce .aucat_cookie
e8d33a71594c0ba7816e075d17afa81e0ba220ce /var/empty/.aucat_cookie



Should random.seed on shutdown be saved a little later?

2016-04-02 Thread Kevin Chadwick
So I am currently patching /etc/rc to remount ro which I accept is
special territory. I like ro partitions not only for the lack of need to
fsck and faster boot for systems that have had thee power pulled.

It would be a lot nicer to be able to mount -uw / in rc.shutdown.

Whilst likely not a major issue. I also started to wonder whilst
reading man rc.shutdown, if a daemon or other process could potentially
use /dev/urandom between saving the seed and shutdown so could/should
the random.seed be saved a little later after /etc/rc.shutdown runs?


-- 

KISSIS - Keep It Simple So It's Securable



Re: simultaneous sound as many users

2016-04-02 Thread Marc Espie
On Sat, Apr 02, 2016 at 09:26:40AM +0200, Nils Reuße wrote:
> On 04/01/2016 08:42 PM, Roman Gorelov wrote:
> >My sndio configuration is default, OBSD 5.9.
> >When I run a media file in e.g. mpv, and pause it without closing, and
> >try to listen to smth in chrome _as another user_, there is no sound:
> >
> 
> Hi Roman,
> 
> you need to share your sndio session cookie between the two users.  I got it
> working previously (the same problem arises with mpd, where the daemon runs
> as a separate user).  There should be a file called `~/.aucat_cookie` in
> your home-dir, and if i remember correctly, you just need to copy this file
> to the second users home dir.  Will check later when i'm back at home.
> 
> From sndio(7):
> 
> AUTHENTICATION
> 
>   If a shared sndiod(8) server is running, for privacy reasons only one
>   user may have connections to it at a given time (though the same user
>   could have multiple connections to it).  Users are identified by their
>   session cookie, which is automatically generated by audio or MIDI
>   applications upon the first connection to the server.  The cookie is
>   stored in $HOME/.aucat_cookie and contains 128 bits of raw random
>   data.
> 
>   If a session needs to be shared between multiple users, they can
>   connect to the server using the same cookie.

This looks slightly bogus to me.   Using sndio in record mode, I understand
the privacy concerns. But for playing ?



Re: faq4.html

2016-04-02 Thread Theo Buehler
On Sat, Apr 02, 2016 at 10:19:41AM -0400, Rob Pierce wrote:
> It looks like the cdrkit web site has been down for a while.
> 
> Point to the debian package instead, or maybe delete altogether?

Thanks. I decided to shorten the whole subsubsection quite a bit more.
It's not as if burning an iso to a CD is already a piece of black magic
from the ancient past.



faq4.html

2016-04-02 Thread Rob Pierce
It looks like the cdrkit web site has been down for a while.

Point to the debian package instead, or maybe delete altogether?

Rob

Index: faq4.html
===
RCS file: /cvs/www/faq/faq4.html,v
retrieving revision 1.439
diff -u -p -r1.439 faq4.html
--- faq4.html   1 Apr 2016 15:25:47 -   1.439
+++ faq4.html   2 Apr 2016 14:15:51 -
@@ -266,7 +266,7 @@ In OpenBSD, you can create a CD from an 
 
 Modern Windows and Macintosh systems can directly create CDs from ISO images.
 On Linux or other Unix-like systems, use applications such as
-http://www.cdrkit.org/;>cdrkit.
+https://packages.debian.org/source/sid/cdrkit;>cdrkit.
 
 4.3.3 - Floppies



Re: Crash after updating to today's snapshot

2016-04-02 Thread Luke Tidd
Thanks for the info everyone. I was going to try one more snap before
filing a bug but I can do that next time if it's appropriate.
On Apr 2, 2016 1:37 AM, "Theo Buehler"  wrote:

> On Sat, Apr 02, 2016 at 12:24:13AM -0400, Luke Tidd wrote:
> > Machine is a Thinkpad x230. First crash after an update.
>
> Thanks for the report. Pleasae report bugs to the bugs@ mailing list
> because not everybody reads misc@. The change that led to this has been
> reverted:
>
> https://marc.info/?l=openbsd-bugs=145954247112249=2



Re: WAPBL?

2016-04-02 Thread Karel Gardas
On Fri, Apr 1, 2016 at 4:06 PM, Bob Beck  wrote:
> I have more up to date versions of these patches around here.
>
> The problem with them is that fundamentally, the WAPBL implementation
> as it is assumes that it may infinitely steal
> buffers from the buffer cache and hold onto them indefinitely - and it
> assumes it can always get buffers from it. While the patch as it sits
> may "work" in the "happy case" on many people's machines, as it sits
> today it is dangerous and can lock up your machine and corrupt things
> in low memory situations.

so basically the situation is like with the current softdep which is
also dangerous in slow-write-drive low-memory situation and yet it's
in tree.

> Basically in order to progres WAPBL (renamed "FFS Journalling" here)
> needs to have a mechanism added to allow
> it be told "no it can't have a buffer" and let it deal with it
> correctly.  The first part is done, the latter part is complex.

the question is if it's better to hold those patches in your tree or
push them to the tree so others may try their luck with them. Well you
are the judge here, is WAPBL already on softdep quality level? Thanks!



Re: simultaneous sound as many users

2016-04-02 Thread Roman Gorelov
On Sat, Apr 02, 2016 at 11:24:47AM +0200, Benjamin Baier wrote:
> On Sat, 2 Apr 2016 01:42:03 +0700
> Roman Gorelov  wrote:
> 
> > My sndio configuration is default, OBSD 5.9.
> > When I run a media file in e.g. mpv, and pause it without closing, and
> > try to listen to smth in chrome _as another user_, there is no sound:
> 
> You need to share the .aucat_cookie with all the users that are allowed
> to play sound at the same time.
> Permissions and uid are important, too. Don't try to share with a
> symlink.

Thank you for the answer.
It could very well be "RTFM sndio, section AUTHENTICATION"...



Re: simultaneous sound as many users

2016-04-02 Thread Benjamin Baier
On Sat, 2 Apr 2016 01:42:03 +0700
Roman Gorelov  wrote:

> My sndio configuration is default, OBSD 5.9.
> When I run a media file in e.g. mpv, and pause it without closing, and
> try to listen to smth in chrome _as another user_, there is no sound:

You need to share the .aucat_cookie with all the users that are allowed
to play sound at the same time.
Permissions and uid are important, too. Don't try to share with a
symlink.

$ ls -lah /home/*en*/.aucat_cookie 
-rw---  1 ben   ben16B Aug 18  2015 /home/ben/.aucat_cookie
-rw---  1 enc   ben16B Aug 18  2015 /home/enc/.aucat_cookie
-rw---  1 enc1  ben16B Sep 24  2015 /home/enc1/.aucat_cookie
-rw---  1 enc2  ben16B Aug 23  2015 /home/enc2/.aucat_cookie

Greetings Ben



Re: simultaneous sound as many users

2016-04-02 Thread Nils Reuße

On 04/01/2016 08:42 PM, Roman Gorelov wrote:

My sndio configuration is default, OBSD 5.9.
When I run a media file in e.g. mpv, and pause it without closing, and
try to listen to smth in chrome _as another user_, there is no sound:



Hi Roman,

you need to share your sndio session cookie between the two users.  I 
got it working previously (the same problem arises with mpd, where the 
daemon runs as a separate user).  There should be a file called 
`~/.aucat_cookie` in your home-dir, and if i remember correctly, you 
just need to copy this file to the second users home dir.  Will check 
later when i'm back at home.


From sndio(7):

AUTHENTICATION

  If a shared sndiod(8) server is running, for privacy reasons only one
  user may have connections to it at a given time (though the same user
  could have multiple connections to it).  Users are identified by their
  session cookie, which is automatically generated by audio or MIDI
  applications upon the first connection to the server.  The cookie is
  stored in $HOME/.aucat_cookie and contains 128 bits of raw random
  data.

  If a session needs to be shared between multiple users, they can
  connect to the server using the same cookie.


Hope that helps
Nils