Re: Azalia Volume Too Quiet

2015-11-19 Thread Alexey Suslikov
Daniel Wilkins wrote:

> inputs.dac-0:1=150,150
> inputs.dac-2:3=150,150
> inputs.mix_spkr2=248,248
> inputs.mix_spkr3=248,248
> inputs.spkr2=255,255
> outputs.spkr2_dir=output
> inputs.spkr3=255,255
> outputs.spkr3_dir=output
> outputs.master.slaves=dac-0:1,dac-2:3,spkr,hp,spkr2,spkr3

2 volume controls in output path (at least). You probably may try
to limit volume control to DACs

outputs.master.slaves=dac-0:1,dac-2:3

and max out everything else in output path. Or

outputs.master.slaves=spkr,hp

and max out everything else in output path (including DACs).



The OpenBSD wacom CTH480 and any drivers

2015-11-19 Thread freeunix

hi everyone!
recently we use the OpenBSD! it so fine, but we couldn't use the any 
devices.
Our organization will to be use the OpenBSD. when OpenBSD have CTH480 
and any drivers.

Now our organization have competition for the desktop and server.

If our organization select the OpenBSD. We will donate.

I use the OpenBSD in 1998. I love Theo de Raadt.
our organization need easy to install and short installation.
and good security solution.

we don't need MS Windows and MS applications.
Just need good security for the work.

Drawing the illustration. and stock the big image on the server.
if OpenBSD's ports have zfs-fuse. almost people will select the OpenBSD.

FAT filesystem have compatibility for the other Operating systems.
but, couldn't use use big data.(NTFS and exFAT is suck.)

almost Linux user use the ext[2-4]fs by default.
any Linux user need raid system and compatibility.
Now, System engineer watch the OpenBSD. because OpenBSD have good 
solution.

They want to use OpenBSD. but, OpenBSD have restriction.

I know OpenBSD have the strict policy. and couldn't include any 
licences.

(I found CDDL and GPL is suck.)

anybody want to change the Linux and Windows to OpenBSD, but, OpenBSD 
didn't have compartible filesystem.
(I know OpenBSD have original raid filesystem. and I use it. I say just 
compartibility.)


OpenBSD is good solution. And we gratitude OpenBSD's programers.
best Regards.



Re: Azalia Volume Too Quiet

2015-11-19 Thread Daniel Wilkins
On Thu, Nov 19, 2015 at 11:34:53AM +0200, Alexey Suslikov wrote:
> 2 volume controls in output path (at least). You probably may try
> to limit volume control to DACs
> 
> outputs.master.slaves=dac-0:1,dac-2:3
> 
> and max out everything else in output path. Or
> 
> outputs.master.slaves=spkr,hp
> 
> and max out everything else in output path (including DACs).
> 

I've just tried playing with the dac values. They cap out at 174
and they don't seem to affect the volume at all. I tried to follow
Mike's advice as well and make a more direct path, but I ended up
with $ mixerctl outputs.spkr_source=dac-2:3
mixerctl: Bad enum value dac-2:3

current mixerctl:

inputs.dac-0:1=174,174
inputs.dac-2:3=174,174
record.adc-2:3_mute=off
record.adc-2:3=124,124
record.adc-0:1_mute=off
record.adc-0:1=124,124
inputs.mix_source=mic2,spkr2,spkr3,beep
inputs.mix_mic2=120,120
inputs.mix_spkr2=248,248
inputs.mix_spkr3=248,248
inputs.mix_beep=120,120
inputs.mix2_source=dac-0:1,mix
inputs.mix3_source=dac-2:3,mix
inputs.mic=85,85
outputs.spkr_source=mix3
outputs.spkr_mute=off
outputs.spkr_eapd=on
outputs.hp_source=mix2
outputs.hp_mute=off
outputs.hp_boost=on
outputs.hp_eapd=on
outputs.mic2_source=mix2
outputs.mic2_mute=off
inputs.mic2=85,85
outputs.mic2_dir=input-vr80
outputs.spkr2_source=mix2
outputs.spkr2_mute=off
inputs.spkr2=255,255
outputs.spkr2_dir=output
outputs.spkr3_source=mix2
outputs.spkr3_mute=off
inputs.spkr3=255,255
outputs.spkr3_dir=output
record.adc-0:1_source=mic2,spkr2,spkr3,beep,mix,mic
record.adc-2:3_source=mic2,spkr2,spkr3,beep,mix
outputs.hp_sense=unplugged
outputs.mic2_sense=unplugged
outputs.spkr_muters=hp,mic2
outputs.master=255,255
outputs.master.mute=off
outputs.master.slaves=dac-0:1,dac-2:3,spkr,hp,spkr2,spkr3
record.volume=124,124
record.volume.mute=off
record.volume.slaves=adc-2:3,adc-0:1



Re: EFI: Booting from other (not the first) GPT partition possible? How? It's an Apple :-O

2015-11-19 Thread Marc
Thank you Gonzalo.

Just to make sure we are talking about the same thing:

I was already able to boot OpenBSD in BIOS legacy mode.

What I want to achieve is booting OpenBSD current with the new EFI OpenBSD boot 
loader.

Are you sure that following the tutorial you mentioned can be of any help to do 
this?

I will be happy to get enlightened if I am just missing the point. :)

Regards
Marcel

> Hello,
> 
> I'm kinda at the same step, but in a macbookpro12,1
> 
> I resize my OSX partition, burn a install58.fs on a usb stick, boot 
> holding ALT, install OpenBSD on the part of resize partition, and then 
> follow jcs@ tutorial:
> 
> https://gist.github.com/jcs/5573685
> 
> Now, "El Capitan" have like a 'Secure Level' thing that you can do the 
> step Mac OS X Encryption -> 3-6. So, you need to boot on Rescue Mode and 
> disable this new protection from the console on rescue mode:
> 
> # csrutil disable
> 
> Then reboot, and try the "Mac OS X Encryption" step. Install refind and 
> cross your fingers :)
> 
> 
> On 16/11, Marcel Timm wrote:
> ; Hi there,
> ; 
> ; one thing I would like to try is to boot from created OpenBSD EFI USB stick
> ; with
> ; 
> ; boot -a
> ; 
> ; and enter the OpenBSD's root partition on the HD.
> ; 
> ; Unfortunately neither the MacBook Pro 8,2 's integrated
> ; nor an external USB keyboard work at the prompt where to enter the
> ; root device's location. :(
> ; 
> ; Is there another way of telling the kernel which root device to use
> ; (maybe at boot's prompt - although I haven't found anything in man page..)?
> ; 
> ; If this seems to be a XY question to you, I am happy about other proposals.
> ; 
> ; Greetings
> ; Marcel
> ; 
> ; On 11.11.2015 16:01, Marcel Timm wrote:
> ; >Hello!
> ; >
> ; >My computer is a MacBook Pro 8,2.
> ; >
> ; >There is a GPT on the HD (big surprise!) with four partitions,
> ; >the last one being of type OpenBSD.
> ; >
> ; >I managed to put a recent OpenBSD 5.8 snapshot there
> ; >by booting and installing from an USB stick via EFI created like that (in
> ; >OSX):
> ; >
> ; >dd if=~/install58.fs of=/dev/rdisk2 bs=1m
> ; >
> ; >After installing rEFInd 0.9.2 and putting OpenBSD 5.8 snapshot's
> ; >BOOTX64.EFI file
> ; >to the MacBook's EFI partition the rEFInd boot manager shows the OpenBSD
> ; >EFI option.
> ; >
> ; >Selecting that OpenBSD entry starts the boot programm showing hd0 hd1 hd2
> ; >and hd3.
> ; >
> ; >Is it possible to boot my "EFI OpenBSD installation" from here?
> ; >If so, how to proceed?
> ; >
> ; >I already played with
> ; >
> ; >set device hd0d
> ; >
> ; >etc. - but it did not work.
> ; >
> ; >I will gladly share more details, if of any help.
> ; >
> ; >Thanks in advance!
> ; >
> ; >Marcel
> ; 
> 
> -- 
> Sending from my toaster.



Re: Azalia Volume Too Quiet

2015-11-19 Thread Daniel Wilkins
Sure. You can reply to just the list, by the way; I'm subscribed.

inputs.dac-0:1=142,142 
inputs.dac-2:3=142,142 
record.adc-2:3_mute=off  [ off on ]
record.adc-2:3=124,124 
record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=124,124 
inputs.mix_source=mic2,spkr2,spkr3,beep  { mic2 spkr2 spkr3 beep }
inputs.mix_mic2=120,120 
inputs.mix_spkr2=248,248 
inputs.mix_spkr3=248,248 
inputs.mix_beep=120,120 
inputs.mix2_source=dac-0:1,mix  { dac-0:1 mix }
inputs.mix3_source=dac-2:3,mix  { dac-2:3 mix }
inputs.mic=85,85 
outputs.spkr_source=mix3  [ mix2 mix3 ]
outputs.spkr_mute=off  [ off on ]
outputs.spkr_eapd=on  [ off on ]
outputs.hp_source=mix2  [ mix2 mix3 ]
outputs.hp_mute=off  [ off on ]
outputs.hp_boost=on  [ off on ]
outputs.hp_eapd=on  [ off on ]
outputs.mic2_source=mix2  [ mix2 mix3 ]
outputs.mic2_mute=off  [ off on ]
inputs.mic2=85,85 
outputs.mic2_dir=input-vr80  [ none output input input-vr0 input-vr50 
input-vr80 input-vr100 ]
outputs.spkr2_source=mix2  [ mix2 mix3 ]
outputs.spkr2_mute=off  [ off on ]
inputs.spkr2=255,255 
outputs.spkr2_dir=output  [ none output input input-vr0 input-vr50 input-vr80 
input-vr100 ]
outputs.spkr3_source=mix2  [ mix2 mix3 ]
outputs.spkr3_mute=off  [ off on ]
inputs.spkr3=255,255 
outputs.spkr3_dir=output  [ none output input input-vr0 input-vr50 input-vr80 
input-vr100 ]
record.adc-0:1_source=mic2,spkr2,spkr3,beep,mix,mic  { mic2 spkr2 spkr3 beep 
mix mic }
record.adc-2:3_source=mic2,spkr2,spkr3,beep,mix  { mic2 spkr2 spkr3 beep mix }
outputs.hp_sense=unplugged  [ unplugged plugged ]
outputs.mic2_sense=unplugged  [ unplugged plugged ]
outputs.spkr_muters=hp,mic2  { hp mic2 }
outputs.master=143,143 
outputs.master.mute=off  [ off on ]
outputs.master.slaves=dac-0:1,dac-2:3,spkr,hp,spkr2,spkr3  { dac-0:1 dac-2:3 
spkr hp mic2 spkr2 spkr3 }
record.volume=124,124 
record.volume.mute=off  [ off on ]
record.volume.slaves=adc-2:3,adc-0:1  { adc-2:3 adc-0:1 mic mic2 spkr2 spkr3 }



Re: Azalia Volume Too Quiet

2015-11-19 Thread Mike Cond
Could you show  the output from mixerctl -av



On Thursday, November 19, 2015 7:32 PM, Daniel Wilkins
 wrote:


 On Thu, Nov 19, 2015 at 11:34:53AM +0200, Alexey Suslikov wrote:
> 2 volume controls in output path (at least). You probably may try
> to limit volume control to DACs
>
> outputs.master.slaves=dac-0:1,dac-2:3
>
> and max out everything else in output path. Or
>
> outputs.master.slaves=spkr,hp
>
> and max out everything else in output path (including DACs).
>

I've just tried playing with the dac values. They cap out at 174
and they don't seem to affect the volume at all. I tried to follow
Mike's advice as well and make a more direct path, but I ended up
with $ mixerctl outputs.spkr_source=dac-2:3
mixerctl: Bad enum value dac-2:3

current mixerctl:

inputs.dac-0:1=174,174
inputs.dac-2:3=174,174
record.adc-2:3_mute=off
record.adc-2:3=124,124
record.adc-0:1_mute=off
record.adc-0:1=124,124
inputs.mix_source=mic2,spkr2,spkr3,beep
inputs.mix_mic2=120,120
inputs.mix_spkr2=248,248
inputs.mix_spkr3=248,248
inputs.mix_beep=120,120
inputs.mix2_source=dac-0:1,mix
inputs.mix3_source=dac-2:3,mix
inputs.mic=85,85
outputs.spkr_source=mix3
outputs.spkr_mute=off
outputs.spkr_eapd=on
outputs.hp_source=mix2
outputs.hp_mute=off
outputs.hp_boost=on
outputs.hp_eapd=on
outputs.mic2_source=mix2
outputs.mic2_mute=off
inputs.mic2=85,85
outputs.mic2_dir=input-vr80
outputs.spkr2_source=mix2
outputs.spkr2_mute=off
inputs.spkr2=255,255
outputs.spkr2_dir=output
outputs.spkr3_source=mix2
outputs.spkr3_mute=off
inputs.spkr3=255,255
outputs.spkr3_dir=output
record.adc-0:1_source=mic2,spkr2,spkr3,beep,mix,mic
record.adc-2:3_source=mic2,spkr2,spkr3,beep,mix
outputs.hp_sense=unplugged
outputs.mic2_sense=unplugged
outputs.spkr_muters=hp,mic2
outputs.master=255,255
outputs.master.mute=off
outputs.master.slaves=dac-0:1,dac-2:3,spkr,hp,spkr2,spkr3
record.volume=124,124
record.volume.mute=off
record.volume.slaves=adc-2:3,adc-0:1



Unix::Pledge perl module

2015-11-19 Thread Richard Farr
Hi misc@,

I've put together a simple CPAN module that allows you to use pledge(2) 
in your Perl programs.  Of course it will only work on -current.

Simple example:

$> perl -MUnix::Pledg|e -e '||pledge(||"stdio rpath"||, 
[||"/home/$ENV{USER}/.profile"||]);||open||(||my $fd||, ||">"||, 
||"/home/$ENV{USER}/.profile"||);'|
$>|Abort trap (core dumped)|

The github repo is available at:

https://github.com/rfarr/Unix-Pledge


Cheers,
Richard



Re: Azalia Volume Too Quiet

2015-11-19 Thread Mike Cond
 There is no direct path to dac in your mixer. I would try to exclude mix from
inputs.mix2_source=dac-0:1,mix
inputs.mix3_source=dac-2:3,mix.

So your  outputs.spkr_source will contain mix3 but without mix components.

On Thursday, November 19, 2015 10:10 PM, Daniel Wilkins
 wrote:


 Sure. You can reply to just the list, by the way; I'm subscribed.

inputs.dac-0:1=142,142
inputs.dac-2:3=142,142
record.adc-2:3_mute=off  [ off on ]
record.adc-2:3=124,124
record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=124,124
inputs.mix_source=mic2,spkr2,spkr3,beep  { mic2 spkr2 spkr3 beep }
inputs.mix_mic2=120,120
inputs.mix_spkr2=248,248
inputs.mix_spkr3=248,248
inputs.mix_beep=120,120
inputs.mix2_source=dac-0:1,mix  { dac-0:1 mix }
inputs.mix3_source=dac-2:3,mix  { dac-2:3 mix }
inputs.mic=85,85
outputs.spkr_source=mix3  [ mix2 mix3 ]
outputs.spkr_mute=off  [ off on ]
outputs.spkr_eapd=on  [ off on ]
outputs.hp_source=mix2  [ mix2 mix3 ]
outputs.hp_mute=off  [ off on ]
outputs.hp_boost=on  [ off on ]
outputs.hp_eapd=on  [ off on ]
outputs.mic2_source=mix2  [ mix2 mix3 ]
outputs.mic2_mute=off  [ off on ]
inputs.mic2=85,85
outputs.mic2_dir=input-vr80  [ none output input input-vr0 input-vr50
input-vr80 input-vr100 ]
outputs.spkr2_source=mix2  [ mix2 mix3 ]
outputs.spkr2_mute=off  [ off on ]
inputs.spkr2=255,255
outputs.spkr2_dir=output  [ none output input input-vr0 input-vr50 input-vr80
input-vr100 ]
outputs.spkr3_source=mix2  [ mix2 mix3 ]
outputs.spkr3_mute=off  [ off on ]
inputs.spkr3=255,255
outputs.spkr3_dir=output  [ none output input input-vr0 input-vr50 input-vr80
input-vr100 ]
record.adc-0:1_source=mic2,spkr2,spkr3,beep,mix,mic  { mic2 spkr2 spkr3 beep
mix mic }
record.adc-2:3_source=mic2,spkr2,spkr3,beep,mix  { mic2 spkr2 spkr3 beep mix
}
outputs.hp_sense=unplugged  [ unplugged plugged ]
outputs.mic2_sense=unplugged  [ unplugged plugged ]
outputs.spkr_muters=hp,mic2  { hp mic2 }
outputs.master=143,143
outputs.master.mute=off  [ off on ]
outputs.master.slaves=dac-0:1,dac-2:3,spkr,hp,spkr2,spkr3  { dac-0:1 dac-2:3
spkr hp mic2 spkr2 spkr3 }
record.volume=124,124
record.volume.mute=off  [ off on ]
record.volume.slaves=adc-2:3,adc-0:1  { adc-2:3 adc-0:1 mic mic2 spkr2 spkr3
}



Re: Passwd cipher for YP

2015-11-19 Thread Stefan Fritsch
I am rather late to this thread...

On Thursday 15 October 2015 15:46:47, Raimo Niskanen wrote:
> > > Are there more password ciphers planned for the future e.g
> > > sha256 and sha512?>
> > 
> >
> > No, we will not be adding those.
> >
> > 
> >
> > Those simple hashes do not provide the future-proof,
> > high-cost-to-crack features of bcrypt, which has made it
> > successful as industry staple. The dumb hashes even arrived years
> > after bcrypt, seems likely the result of choosing ideas "not
> > invented by openbsd"
> 
> Ouch!  And I have not seen any other upcoming ciphers
> mentioned.  These seem to be state of the art in the Linux world :/

... but if anyone wants to add their voice to 
https://sourceware.org/bugzilla/show_bug.cgi?id=16814 , maybe glibc 
could be made to reconsider bcrypt. AFAIK, glibc upstream is mostly 
different people now than when they added sha2 password hashes.



Re: Unix::Pledge perl module

2015-11-19 Thread Andrew Fresh
On Thu, Nov 19, 2015 at 04:19:19PM -0500, Richard Farr wrote:
> I've put together a simple CPAN module that allows you to use pledge(2) 
> in your Perl programs.  Of course it will only work on -current.

Way cool!  I too have been working on this a bit.  Sorry that I got
distracted from actually putting it someplace public.

https://github.com/afresh1/OpenBSD-Pledge

One benefit of mine is that OpenBSD-Pledge.t is a bit further fleshed
out.  I do need to do a fair amount of work on the docs still, but I
will be looking for OKs to import it into base before long.

I think there is definitely room in the ecosystem for more than one
tool, especially if other operating systems adopt pledge.

l8rZ,
-- 
andrew - http://afresh1.com

I wish life had an UNDO function.



serious watchdog timeout issues with em driver

2015-11-19 Thread Sonic
Have serious problems for over 7 weeks now with em driver,
specifically any rev of if_em.c >  1.305. Starting with rev 1.306,
released on 2015/09/30 and continuing to -current, watchdog timeouts
rue the day. Unfortunately rev 1.305 no longer builds with -current as
it appears the patch in rev 1.309 would be necessary.

System in question is a NAT firewall, also running Unbound and DHCPD.
Timeouts occur randomly and can affect both internal and external
interfaces. But use of a bittorrent app on an internal client system
will always trigger many such timeouts:

Nov 18 12:21:17 stargate /bsd: em0: watchdog timeout -- resetting
Nov 18 12:21:17 stargate /bsd: em1: watchdog timeout -- resetting
Nov 18 12:22:34 stargate unbound: [12687:1] notice: sendto failed: No buffer
space available
Nov 18 12:22:34 stargate unbound: [12687:1] notice: remote address is
172.27.12.11 port 55181
Nov 18 12:22:36 stargate unbound: [12687:1] notice: sendto failed: No buffer
space available
Nov 18 12:22:36 stargate unbound: [12687:1] notice: remote address is
172.27.12.253 port 54266
Nov 18 12:22:36 stargate unbound: [22477:0] notice: sendto failed: No buffer
space available
Nov 18 12:22:36 stargate unbound: [22477:0] notice: remote address is
172.27.12.253 port 53257
Nov 18 12:22:37 stargate /bsd: em0: watchdog timeout -- resetting
Nov 18 12:23:42 stargate /bsd: em0: watchdog timeout -- resetting
Nov 18 12:28:11 stargate unbound: [12687:1] notice: sendto failed: No buffer
space available
Nov 18 12:28:11 stargate unbound: [12687:1] notice: remote address is
172.27.12.66 port 56045
Nov 18 12:28:12 stargate unbound: [12687:1] notice: sendto failed: No buffer
space available
Nov 18 12:28:12 stargate unbound: [12687:1] notice: remote address is
172.27.12.66 port 41975
Nov 18 12:28:12 stargate unbound: [12687:1] notice: sendto failed: No buffer
space available
Nov 18 12:28:12 stargate unbound: [12687:1] notice: remote address is
172.27.12.66 port 48603
Nov 18 12:28:12 stargate unbound: [12687:1] notice: sendto failed: No buffer
space available
Nov 18 12:28:12 stargate unbound: [12687:1] notice: remote address is
172.27.12.66 port 17834
Nov 18 12:28:13 stargate unbound: [12687:1] notice: sendto failed: No buffer
space available
Nov 18 12:28:13 stargate unbound: [12687:1] notice: remote address is
172.27.12.66 port 1177
Nov 18 12:28:14 stargate unbound: [12687:1] notice: sendto failed: No buffer
space available
Nov 18 12:28:14 stargate unbound: [12687:1] notice: remote address is
172.27.12.66 port 39013
Nov 18 12:28:15 stargate /bsd: em0: watchdog timeout -- resetting
Nov 18 12:29:42 stargate /bsd: em0: watchdog timeout -- resetting
Nov 18 14:00:01 stargate syslogd: restart
Nov 18 16:00:01 stargate syslogd: restart
Nov 19 12:00:01 stargate syslogd: restart
Nov 19 16:00:01 stargate syslogd: restart
Nov 19 16:08:36 stargate /bsd: em0: watchdog timeout -- resetting
Nov 19 16:10:34 stargate /bsd: em0: watchdog timeout -- resetting
Nov 19 16:15:04 stargate /bsd: em0: watchdog timeout -- resetting
Nov 19 16:19:55 stargate last message repeated 3 times

(one of the above is on the external interface em1)

The timeouts don't just shutdown net access during the reset time,
other problems occur. Many time the SSH server no longer accepts
connections so shelling into the system is not an option:

$ ssh stargate
write: Connection reset by peer


I've also had a system crash that I suspect (no proof at all and
thankfully it hasn't re-occurred, but timing is everything) was caused
by the faulty em driver:

Nov  1 22:23:55 stargate /bsd: uvm_fault(0x818f9920,
0xfff7818adf60, 0, 1) -> e
Nov  1 22:23:55 stargate /bsd: fatal page fault in supervisor mode
Nov  1 22:23:55 stargate /bsd: trap type 6 code 0 rip 81329e69
cs 8 rflags 10286 cr2  fff7818adf60 cpl 7 rsp 8000221df76
0
Nov  1 22:23:55 stargate /bsd: panic: trap type 6, code=0, pc=81329e69
Nov  1 22:23:55 stargate /bsd: Starting stack trace...
Nov  1 22:23:55 stargate /bsd: panic() at panic+0x10b
Nov  1 22:23:55 stargate /bsd: trap() at trap+0x7b8
Nov  1 22:23:55 stargate /bsd: --- trap (number 6) ---
Nov  1 22:23:55 stargate /bsd: trap() at trap+0x709
Nov  1 22:23:55 stargate /bsd: --- trap (number 4) ---
Nov  1 22:23:55 stargate /bsd: trap() at trap+0x709
Nov  1 22:23:55 stargate /bsd: --- trap (number 4) ---
Nov  1 22:23:55 stargate /bsd: bpf_filter() at bpf_filter+0x19b
Nov  1 22:23:55 stargate /bsd: _bpf_mtap() at _bpf_mtap+0xf4
Nov  1 22:23:55 stargate /bsd: bpf_mtap_ether() at bpf_mtap_ether+0x39
Nov  1 22:23:55 stargate /bsd: em_start() at em_start+0xd6
Nov  1 22:23:55 stargate /bsd: nettxintr() at nettxintr+0x52
Nov  1 22:23:55 stargate /bsd: softintr_dispatch() at softintr_dispatch+0x8b
Nov  1 22:23:55 stargate /bsd: Xsoftnet() at 

Re: Passwd cipher for YP

2015-11-19 Thread Theo de Raadt
> I am rather late to this thread...
> 
> On Thursday 15 October 2015 15:46:47, Raimo Niskanen wrote:
> > > > Are there more password ciphers planned for the future e.g
> > > > sha256 and sha512?>
> > > 
> > >
> > > No, we will not be adding those.
> > >
> > > 
> > >
> > > Those simple hashes do not provide the future-proof,
> > > high-cost-to-crack features of bcrypt, which has made it
> > > successful as industry staple. The dumb hashes even arrived years
> > > after bcrypt, seems likely the result of choosing ideas "not
> > > invented by openbsd"
> > 
> > Ouch!  And I have not seen any other upcoming ciphers
> > mentioned.  These seem to be state of the art in the Linux world :/
> 
> ... but if anyone wants to add their voice to 
> https://sourceware.org/bugzilla/show_bug.cgi?id=16814 , maybe glibc 
> could be made to reconsider bcrypt. AFAIK, glibc upstream is mostly 
> different people now than when they added sha2 password hashes.

Good luck -- a lot of 'IBO' resistance runs in those circles.



Re: Azalia Volume Too Quiet

2015-11-19 Thread Daniel Wilkins
On Thu, Nov 19, 2015 at 10:13:09PM +, Mike Cond wrote:
>  There is no direct path to dac in your mixer. I would try to exclude mix from
> inputs.mix2_source=dac-0:1,mix
> inputs.mix3_source=dac-2:3,mix.
> 
> So your  outputs.spkr_source will contain mix3 but without mix components.

Did a quick preliminary test, I think I'm still capped at 180. I'm in public 
though,
so it was a bit quick.



tput(1) setaf capability and 256color terminals

2015-11-19 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

>From terminfo(5) man page:

[...]
The setaf/setab and setf/setb capabilities take a single numeric
argument each.
[...]

Well, I'm trying to set up a 256-color terminal:

[snip]
$ echo $TERM
xterm-256color
$ tput setaf 1
tput: not enough arguments (3) for capability `setaf'
[snip]

Ok, let's have a look at the terminfo database:

[snip]
$ infocmp xterm | grep setaf
setaf=\E[3%p1%dm,
$ infocmp xterm-256color | grep setaf
setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
[snip]

Indeed, counting the "%d" occurrences, the setaf capability setting
requires just one argument for "xterm", and three for "xterm-256color".

Not being able to understand the meaning of the terminfo entries, I do
not know how to set those parameters...

At first glance, it seems that the first one is the color (as per
manpage description), and the other two don't have any effect, but I
hope that someone of you guys can remove some clues.

All the best

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Azalia Volume Too Quiet

2015-11-19 Thread Mike Cond
Did you try mixerctl inputs.dac-0:1=255,255
                     mixerctl
inputs.dac-2:3=255,255                     mixerctl
outputs.spkr_source=dac-2:3                     mixerctl 
outputs.hp_source=dac-0:1                     mixerctl 
outputs.master=255,255


On Thursday, November 19, 2015 5:58 AM, Daniel Wilkins
 wrote:


 On Wed, Nov 18, 2015 at 08:15:08PM +, Raf Czlonka wrote:
> Stefan, the OP already mentioned (see above) that he had already tried
> that and it stays constant.
>
> On my machine, increasing the volume on 'outputs.mixY', where 'Y' is
> '2', did the trick.
>
> Setting 'outputs.hp_boost=on' (for headphones) may increase the volume
> further.
>
> Regards,
>
> Raf
>

I haven't got an outputs.mixY on my box, I'm afraid. There are references in
other
values to a mix2 though, like outputs.spkr2_source=mix2. There *is* an
inputs.mix_spkr{2,3}.
Changing them gives me an extra 10 units of volume (170 is distinguishable
from 255, 180 is not).
mixerctl output:

inputs.dac-0:1=150,150
inputs.dac-2:3=150,150
record.adc-2:3_mute=off
record.adc-2:3=124,124
record.adc-0:1_mute=off
record.adc-0:1=124,124
inputs.mix_source=mic2,spkr2,spkr3,beep
inputs.mix_mic2=120,120
inputs.mix_spkr2=248,248
inputs.mix_spkr3=248,248
inputs.mix_beep=120,120
inputs.mix2_source=dac-0:1,mix
inputs.mix3_source=dac-2:3,mix
inputs.mic=85,85
outputs.spkr_source=mix3
outputs.spkr_mute=off
outputs.spkr_eapd=on
outputs.hp_source=mix2
outputs.hp_mute=off
outputs.hp_boost=off
outputs.hp_eapd=on
outputs.mic2_source=mix2
outputs.mic2_mute=off
inputs.mic2=85,85
outputs.mic2_dir=input-vr80
outputs.spkr2_source=mix2
outputs.spkr2_mute=off
inputs.spkr2=255,255
outputs.spkr2_dir=output
outputs.spkr3_source=mix2
outputs.spkr3_mute=off
inputs.spkr3=255,255
outputs.spkr3_dir=output
record.adc-0:1_source=mic2,spkr2,spkr3,beep,mix,mic
record.adc-2:3_source=mic2,spkr2,spkr3,beep,mix
outputs.hp_sense=unplugged
outputs.mic2_sense=unplugged
outputs.spkr_muters=hp,mic2
outputs.master=151,151
outputs.master.mute=off
outputs.master.slaves=dac-0:1,dac-2:3,spkr,hp,spkr2,spkr3
record.volume=124,124
record.volume.mute=off
record.volume.slaves=adc-2:3,adc-0:1



Whats are the problems caused by licences that are not free?

2015-11-19 Thread français
I am a so great fan of computer that I have tears in my eyes and  I'm a
seriously curious guy wanting to know , this are the motives of I post this
topic. I've been reading a lot on the BSD
license and GPL license.

Second the position of OpenBSD, source code published under version 2 of the
Apache license is subject to additional restrictions and cannot be included
into OpenBSD, no additional software bound by the GPL terms will be
considered for inclusion into the OpenBSD base system, most of Linux is
subject to GPL style licensing terms and therefore can not be included in
OpenBSD, most of Linux is subject to GPL style licensing terms and therefore
can not be included in OpenBSD...

reference: http://www.openbsd.org/policy.html

Whats are the problems caused by licences that are not free?





--
View this message in context: 
http://openbsd-archive.7691.n7.nabble.com/Whats-are-the-problems-caused-by-licences-that-are-not-free-tp283245.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: Virtualization: vmm

2015-11-19 Thread lists
> Thanks in advance for any info on this.

http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man4/amd64/vmm.4
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/arch/amd64/amd64/vmm.c



Dynamic user creation OR ignoring the username

2015-11-19 Thread Влад Сурагин
 Greetings all,

I'm using OpenBSD 5.6 (GENERIC).

My target is to login user through my own login_ script with SSH.
Everything works fine if the user exists on device.
But I'm using few large remote databases and 
it is crazy to store all the users on the device.

So I see two solutions:
1. Create user if credentials are right.
2. Use some prepared user to login. ("guest" for example)

As for first solution:
I've done script for this but it fails for first request
(I guess that 'adduser' and 'useradd' commands are
powerless to create user in authentication process)
and I can successfully login after reconnection.
Also user creation have some restrictions to functionallity
as limited symbols for username (for example I have users
with ! symbol in username in my databases).

Shortcut script is listed in the end of the message.

Does anybody know how to resolve at least one of this problems?

As for second solution:
I have no idea how to implement this. As I understand I must
change the username in authentication process (namely at 
'response' service invokation).

Is it possible at all?

Thanks everybody for attention.

login_ script:
#!/bin/sh
if [ $2 == "challenge" ]; then
   echo value challenge "password:">&3
   echo "reject challenge">&3
   exit 0
fi
if [ $2 == "response" ]; then
   dd ibs=1 count=10 of=/temp/pswd <&3
   > /temp/pswd
   dd ibs=1 count=1 <&3 | cat >>/temp/pswd
   while [ `tail -c 1 /temp/pswd | cat -e` != "^@" ]
   do
      dd ibs=1 count=1 <&3 | cat >>/temp/pswd
   done
   read pswd  /temp/pswd
   # There goes function invokation that accepts username
   # and password and exits with 0 status if user exists in one
   # of remote databases and 1 in other cases
   if [ $? == 0]; then
      id -u $3 >/dev/null 2>&1
      if [ $? !=0 ]; then
         useradd $3
      fi
      echo "authorize">&3
   fi
   exit 0
fi

Best Regards,
Vlad Suragin



Re: Whats are the problems caused by licences that are not free?

2015-11-19 Thread Theo de Raadt
> I am a so great fan of computer that I have tears in my eyes and  I'm a
> seriously curious guy wanting to know , this are the motives of I post this
> topic. I've been reading a lot on the BSD
> license and GPL license.
> 
> Second the position of OpenBSD, source code published under version 2 of the
> Apache license is subject to additional restrictions and cannot be included
> into OpenBSD, no additional software bound by the GPL terms will be
> considered for inclusion into the OpenBSD base system, most of Linux is
> subject to GPL style licensing terms and therefore can not be included in
> OpenBSD, most of Linux is subject to GPL style licensing terms and therefore
> can not be included in OpenBSD...
> 
> reference: http://www.openbsd.org/policy.html
> 
> Whats are the problems caused by licences that are not free?

Everyone, please ignore these trolls who are cross-posting.