csup cannot connect

2010-12-14 Thread Friedrich Locke
Hi,

i am trying to sync my local ports directory but every server i try i
got "connection refused". Does anybody have any ideia about what's
going on?

Here there are some examples:

lion# ls -l
total 8
-rw-r--r--  1 root  wheel  205 Jun  6  2009 ports
-rw-r--r--  1 root  wheel  203 Jun  6  2009 src
lion# cat ports
*default release=cvs
*default delete use-rel-suffix
*default umask=002
*default host=cvsup.no.openbsd.org
*default base=/var
*default prefix=/usr
*default tag=OPENBSD_4_5

*default compress

OpenBSD-ports
lion# csup -1 -L 2 ports
Parsing supfile "ports"
Connecting to cvsup.no.openbsd.org
Cannot connect to 158.36.191.135: Connection refused
lion# csup -1 -L 2 -h skeleton.phys.spbu.ru ports
Parsing supfile "ports"
Connecting to skeleton.phys.spbu.ru
Cannot connect to 195.19.235.112: Connection refused
lion# csup -1 -L 2 -h cvsup.jp.OpenBSD.org ports
Parsing supfile "ports"
Connecting to cvsup.jp.OpenBSD.org
Cannot connect to 2001:2f0:104:e001::35: No route to host
Cannot connect to 133.31.130.35: Connection refused
lion#


What is my mistake?

Thanks for your help and support.
Best regards,
Fried



Re: opensmtpd with custom passwd file

2010-12-14 Thread Gregory Edigarov
On Tue, 14 Dec 2010 07:34:10 +0100
Gilles Chehade  wrote:

> On Mon, Dec 13, 2010 at 11:17:56PM -0300, Hugo Osvaldo Barrera wrote:
> > Hi!
> > I've been using smtpd on my server for some time now, and I want to
> > host e-mail accounts for a couple of friends who've asked me to.
> > 
> > I was wondering if it's posible to configure opensmtpd to use a
> > custom passwd for user authentication.
> > All I've found in the man pages, is configuring user/pass for
> > relaying, but nothing related to actual user authentication.
> > 
> 
> Actually I might have misunderstood what you meant because of your
> mention to "custom" passwd.
> 
> You can already authenticate users in your master.passwd file. All you
> have to do is to add "enable auth" to a listener:
> 
>   listen on em0 tls certificate "my.crt" enable auth
>   listen on em0 smtps certificate "my.crt" enable auth
> 
> It will only work if you configured the listener to support tls or
> smtps as authentication is only allowed over a secure channel.
> 
> What is not yet possible is to use alternate authentication sources.

Then  after all it *is* QUITE possible. I've written bsd auth module
for authenticating to any pop3 server. Gilles, I had a chat
with you some time before  

-- 
With best regards,
Gregory Edigarov



Re: C++ CGI script

2010-12-14 Thread a . velichinsky
On Mon, Dec 13, 2010 at 04:44:30PM -0500, Ted Unangst wrote:
> endl is "\n", you want "\r\n".

no. the httpd server is supposed to do that conversion.

that should work. the OP probably messed up something
(renamed the c++ source instead of the executable to .cgi?)

> On Mon, Dec 13, 2010 at 4:18 PM, Jean-Francois  wrote:
> > Hello,
> >
> > Sorry for posting basic question here, would you please let me know why such
> > script does'nt work (error with "Premature end of script headers") ?
> >
> >
> > #include 
> > using namespace std;
> >
> > int main()
> > {
> > cout << "Content-type: text/plain" << endl << endl << "Hello, World!";
> > }
> >
> >
> > It actually shows flush needed on google but I'm not able to do a hello 
> > world
> > CGI in C++.
> >
> > Thjanks for your help,
> >
> > Reagrds



delete user in group script

2010-12-14 Thread OpenBSD Geek
Hi,

After posted many requests on how to remove user from a group, i choosed
to build my own script.
And it works very fine.

if [ $1 ] & [ $2 ]; then
cp /etc/group /tmp
cat /tmp/group | grep ^$2 > /tmp/onlygroup
cat /tmp/group | grep -v ^$2 > /tmp/nogroup
cat /tmp/onlygroup | sed "s/$1//g" | \
sed "s/ /,/g" | sed "s/,,/,/g" | sed "s/,$//g" > /tmp/newgroup
cat /tmp/newgroup >> /tmp/nogroup
cat /dev/null > /tmp/group
cat /tmp/nogroup >> /tmp/group
cp /tmp/group /etc
chmod 644 /etc/group
chown root /etc/group
chgrp wheel /etc/group
rm -f /tmp/*
echo "Success."
else
echo "Remove user from a group"
echo "Use : sh duig user group"
fi

Cheers,

Wesley MOUEDINE ASSABY
www.mouedine.net 



Re: delete user in group script

2010-12-14 Thread Otto Moerbeek
On Tue, Dec 14, 2010 at 03:31:40PM +0400, OpenBSD Geek wrote:

> Hi,
> 
> After posted many requests on how to remove user from a group, i choosed
> to build my own script.
> And it works very fine.
> 
> if [ $1 ] & [ $2 ]; then
> cp /etc/group /tmp
> cat /tmp/group | grep ^$2 > /tmp/onlygroup
> cat /tmp/group | grep -v ^$2 > /tmp/nogroup
> cat /tmp/onlygroup | sed "s/$1//g" | \
> sed "s/ /,/g" | sed "s/,,/,/g" | sed "s/,$//g" > /tmp/newgroup
> cat /tmp/newgroup >> /tmp/nogroup
> cat /dev/null > /tmp/group
> cat /tmp/nogroup >> /tmp/group
> cp /tmp/group /etc
> chmod 644 /etc/group
> chown root /etc/group
> chgrp wheel /etc/group
> rm -f /tmp/*
> echo "Success."
> else
> echo "Remove user from a group"
> echo "Use : sh duig user group"
> fi
> 
> Cheers,
> 
> Wesley MOUEDINE ASSABY
> www.mouedine.net 

I'm getting a case of nausea here.

-Otto



Re: delete user in group script

2010-12-14 Thread Markus Hennecke

On Tue, 14 Dec 2010, OpenBSD Geek wrote:


Hi,

After posted many requests on how to remove user from a group, i choosed
to build my own script.
And it works very fine.

if [ $1 ] & [ $2 ]; then
cp /etc/group /tmp
cat /tmp/group | grep ^$2 > /tmp/onlygroup
cat /tmp/group | grep -v ^$2 > /tmp/nogroup
cat /tmp/onlygroup | sed "s/$1//g" | \
   sed "s/ /,/g" | sed "s/,,/,/g" | sed "s/,$//g" > /tmp/newgroup
cat /tmp/newgroup >> /tmp/nogroup
cat /dev/null > /tmp/group
cat /tmp/nogroup >> /tmp/group
cp /tmp/group /etc
chmod 644 /etc/group
chown root /etc/group
chgrp wheel /etc/group
rm -f /tmp/*
echo "Success."
else
echo "Remove user from a group"
echo "Use : sh duig user group"
fi


You really deserve the Useless Use of Cat Award.
And the race condition award, and the nuke the wrong file award, and...

Kind regards,
  Markus



Re: delete user in group script

2010-12-14 Thread Tomas Bodzar
On Tue, Dec 14, 2010 at 12:31 PM, OpenBSD Geek 
wrote:
> Hi,
>
> After posted many requests on how to remove user from a group, i choosed
> to build my own script.
> And it works very fine.
>
> if [ $1 ] & [ $2 ]; then
> cp /etc/group /tmp
> cat /tmp/group | grep ^$2 > /tmp/onlygroup
> cat /tmp/group | grep -v ^$2 > /tmp/nogroup
> cat /tmp/onlygroup | sed "s/$1//g" | \
> B  B  B  B sed "s/ /,/g" | sed "s/,,/,/g" | sed "s/,$//g" > /tmp/newgroup
> cat /tmp/newgroup >> /tmp/nogroup
> cat /dev/null > /tmp/group
> cat /tmp/nogroup >> /tmp/group
> cp /tmp/group /etc
> chmod 644 /etc/group
> chown root /etc/group
> chgrp wheel /etc/group
> rm -f /tmp/*

very "secure" step when you have some temporary files from daemons
running for your account ;-)

> echo "Success."
> else
> echo "Remove user from a group"
> echo "Use : sh duig user group"
> fi
>
> Cheers,
>
> Wesley MOUEDINE ASSABY
> www.mouedine.net



Re: OpenBSD 4.8's bsd.mp doesn't detect 4GB Memory

2010-12-14 Thread Denise H. G.
On 2010/12/14 at 00:53, Nick Jones  wrote:
> 
> On Mon, 13 Dec 2010 at 22:55:59 +0800, Denise H. G. wrote:
>> > FWIW, I'm running -current with BIGMEM enabled on my X200 and it's
>> > running fine.  I've attached the output of dmesg and pcidump -v for
>> > reference.
>> > 
>> > Kernel is generic otherwise, just renamed.
>> > 
>> 
>> Great! Did you recompile your kernel? Or just modified your kernel by
>> using config(8) ? I am rather new to OpenBSD...
> 
> You need to amend:
> 
> /usr/src/sys/arch/amd64/amd64/machdep.c
> 
> And change the relevant line (1183 in the -current source I checked out
> yesterday) so that it says:
> 
> int bigmem = 1;
> 
> Then recompile your kernel as per the FAQ, reboot, and cross your fingers.
> Report your success (or failure) here.
> 

Thanks for your reply!

But the point is that I haven't yet built a custom kernel ever
I only build custom kernels on FreeBSD... it seems custom kernels are
not popular in OpenBSD world...

Anyway thanks again!

-- 
If reproducibility may be a problem conduct the
test only once.



Re: OpenBSD 4.8's bsd.mp doesn't detect 4GB Memory

2010-12-14 Thread Denise H. G.
On 2010/12/14 at 02:45, Jeff Ross  wrote:
> 
> On 12/13/10 09:52, Nick Jones wrote:
>> On Mon, 13 Dec 2010 at 22:55:59 +0800, Denise H. G. wrote:
 FWIW, I'm running -current with BIGMEM enabled on my X200 and it's
 running fine.  I've attached the output of dmesg and pcidump -v for
 reference.
 
 Kernel is generic otherwise, just renamed.
 
>>> 
>>> Great! Did you recompile your kernel? Or just modified your kernel by
>>> using config(8) ? I am rather new to OpenBSD...
>> 
>> You need to amend:
>> 
>> /usr/src/sys/arch/amd64/amd64/machdep.c
>> 
>> And change the relevant line (1183 in the -current source I checked out
>> yesterday) so that it says:
>> 
>> int bigmem = 1;
>> 
>> Then recompile your kernel as per the FAQ, reboot, and cross your fingers.
>> Report your success (or failure) here.
>> 
> 
> Be aware that you are treading on unproven and unsupported ground, and
> the devs are not interested in hearing about bigmem related problems.
> 
> Here is a PR I submitted not to long ago that was immediately closed
> because it was based on a bigmem kernel:
> 
> http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=6453

Thanks.

I've switched to FreeBSD for my desktop with 4G memory... I am
considering giving it a try on my laptop with less memory...

> 
> At the bottom of this lengthy bug report is the response of the dev
> who closed it.
> 
> Jeff Ross
> 
> 
> 



-- 
If reproducibility may be a problem conduct the
test only once.



Re: delete user in group script

2010-12-14 Thread OpenBSD Geek
I made as I could, since it works, where is the probleme...? ;-) 
 
> You really deserve the Useless Use of Cat Award.
> And the race condition award, and the nuke the wrong file award, and...
> 
> Kind regards,
>Markus



Re: delete user in group script

2010-12-14 Thread Markus Hennecke

On Tue, 14 Dec 2010, OpenBSD Geek wrote:


I made as I could, since it works, where is the probleme...? ;-)


Tomas already pointed out where this will blow up for sure.

Hint: Take a look at mktemp(1) and install(1) to weed out the worst 
issues.


Kind regards,
  Markus



Re: Migrating from isakmpd to iked: interface name not recognized

2010-12-14 Thread Axel Rau

Am 13.12.2010 um 18:50 schrieb Axel Rau:


no IP address found for pppoe0

This happens with all devices, I have tried.
Anybody succeeded in using an interface name as argument of option
local?

This is 4.8 stable on i386 generic.

Axel
---
axel@chaos1.de  PGP-Key:29E99DD6  +49 151 2300 9283  computing @
chaos claudius



Re: delete user in group script

2010-12-14 Thread Jan Stary
On Dec 14 15:31:40, OpenBSD Geek wrote:
> Hi,
> 
> After posted many requests on how to remove user from a group, i choosed
> to build my own script.
> And it works very fine.
> 
> if [ $1 ] & [ $2 ]; then
> cp /etc/group /tmp
> cat /tmp/group | grep ^$2 > /tmp/onlygroup
> cat /tmp/group | grep -v ^$2 > /tmp/nogroup
> cat /tmp/onlygroup | sed "s/$1//g" | \
> sed "s/ /,/g" | sed "s/,,/,/g" | sed "s/,$//g" > /tmp/newgroup
> cat /tmp/newgroup >> /tmp/nogroup
> cat /dev/null > /tmp/group
> cat /tmp/nogroup >> /tmp/group
> cp /tmp/group /etc
> chmod 644 /etc/group
> chown root /etc/group
> chgrp wheel /etc/group

Among other hilariously horrible things,
this bit just made my day:

> rm -f /tmp/*
> echo "Success."

You just nuked everybody's tempfiles.
That's quite a success I guess.


> else
> echo "Remove user from a group"
> echo "Use : sh duig user group"
> fi
> 
> Cheers,
> 
> Wesley MOUEDINE ASSABY
> www.mouedine.net 



Re: OpenBSD 4.8's bsd.mp doesn't detect 4GB Memory

2010-12-14 Thread Tomas Bodzar
On Tue, Dec 14, 2010 at 1:03 PM, Denise H. G.  wrote:
> On 2010/12/14 at 02:45, Jeff Ross  wrote:
>>
>> On 12/13/10 09:52, Nick Jones wrote:
>>> On Mon, 13 Dec 2010 at 22:55:59 +0800, Denise H. G. wrote:
> FWIW, I'm running -current with BIGMEM enabled on my X200 and it's
> running fine. B I've attached the output of dmesg and pcidump -v for
> reference.
>
> Kernel is generic otherwise, just renamed.
>

 Great! Did you recompile your kernel? Or just modified your kernel by
 using config(8) ? I am rather new to OpenBSD...
>>>
>>> You need to amend:
>>>
>>> /usr/src/sys/arch/amd64/amd64/machdep.c
>>>
>>> And change the relevant line (1183 in the -current source I checked out
>>> yesterday) so that it says:
>>>
>>> int bigmem = 1;
>>>
>>> Then recompile your kernel as per the FAQ, reboot, and cross your
fingers.
>>> Report your success (or failure) here.
>>>
>>
>> Be aware that you are treading on unproven and unsupported ground, and
>> the devs are not interested in hearing about bigmem related problems.
>>
>> Here is a PR I submitted not to long ago that was immediately closed
>> because it was based on a bigmem kernel:
>>
>> http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=6453
>
> Thanks.
>
> I've switched to FreeBSD for my desktop with 4G memory...

Unnecessary fear :

$ sysctl kern.version
kern.version=OpenBSD 4.8-current (GENERIC.MP) #547: Tue Dec  7 23:16:34 MST
2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP

$

load averages:  0.76,  1.14,  1.06


 hostname 13:27:52
49 processes:  1 running, 45 idle, 1 zombie, 2 on processor
CPU0 states:  2.0% user,  0.0% nice,  1.6% system,  0.0% interrupt, 96.4%
idle
CPU1 states:  3.8% user,  0.0% nice,  1.2% system,  0.0% interrupt, 95.0%
idle
Memory: Real: 321M/610M act/tot  Free: 2651M  Swap: 0K/8189M used/tot

$ dmesg | grep mem
RTC BIOS diagnostic error 11
real mem  = 3487125504 (3325MB)
avail mem = 3420016640 (3261MB)
spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600
spdmem1 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600
kqemu: kqemu version 0x00010300 loaded, max locked mem=1702696kB
$

My computer is more then 90% of time idle (regarding CPU) and my memory
(even with bufcachepercent=40) is all the time more then 400MB free even that
I'm using a LOT of apps at same time including two or three VM's in Qemu.


$ vmstat 1 10
 procsmemory   pagediskstraps  cpu
 r b wavm fre  flt  re  pi  po  fr  sr sd0 cd0  int   sys   cs us sy
id
 1 0 0 329432 2714044  762   0   0   0   0   0   6   0   47 14706  775  8  3
89
 1 0 0 329544 2713900   67   0   0   0   0   0   0   0   35  3206  455  3  0
97
 1 0 0 329544 2713900   23   0   0   0   0   0   0   0   10  2412  319  0  0
100
 1 0 0 329544 2713900   33   0   0   0   0   0   0   03  2386  305  0  0
100
 1 0 0 329464 2713980  527   0   0   0   0   0   0   04  2568  313  6  0
94
 2 0 0 329464 2713980   58   0   0   0   0   0   0   03  2562  327  1  0
99
 0 0 0 329464 2713980   23   0   0   0   0   0   0   0   47  2907  404  1  0
99
 1 0 0 329452 2713992   30   0   0   0   0   0   0   0   58  4672  451  2  0
98
 1 0 0 329636 2713808 1021   0   0   0   0   0   0   0   69  7632  465  5  4
91
 1 0 0 329644 2713800  523   0   0   0   0   0   0   03  2504  308  5  0
95
$


I am
> considering giving it a try on my laptop with less memory...
>
>>
>> At the bottom of this lengthy bug report is the response of the dev
>> who closed it.
>>
>> Jeff Ross
>>
>>
>>
>
>
>
> --
> If reproducibility may be a problem conduct the
> test only once.



Re: csup cannot connect

2010-12-14 Thread Christian Weisgerber
Friedrich Locke  wrote:

> i am trying to sync my local ports directory but every server i try i
> got "connection refused".

Looks like you are blocking outgoing traffic to port 5999.

-- 
Christian "naddy" Weisgerber  na...@mips.inka.de



Re: opensmtpd with custom passwd file

2010-12-14 Thread L. V. Lammert
On Mon, 13 Dec 2010, Hugo Osvaldo Barrera wrote:

> Hi!
> I've been using smtpd on my server for some time now, and I want to host
> e-mail accounts for a couple of friends who've asked me to.
>
You might want to consider github.com/mailserv for multiple domain and/or
'mail only' users. Allard's Mailserver was recently open sourced. Nice
Ruby/Rails management interface, .. currently 4.8 and will track Release
going forward.

We have it installed at a number of locations.

Lee



Re: opensmtpd with custom passwd file

2010-12-14 Thread Gilles Chehade
On Tue, Dec 14, 2010 at 11:53:38AM +0200, Gregory Edigarov wrote:
> > What is not yet possible is to use alternate authentication sources.
> 
> Then  after all it *is* QUITE possible. I've written bsd auth module
> for authenticating to any pop3 server. Gilles, I had a chat
> with you some time before  
> 

Yup, it is possible by writing additionnal code for bsd_auth(3), I was
actually talking about doing from smtpd.conf


-- 
Gilles Chehade
freelance developer/sysadmin/consultant

   http://www.poolp.org



mic2 is unplugged whatever the physical status is

2010-12-14 Thread Dmitrij D. Czarkoff
Hello!

I have found my external microphone (mic2) not working under OpenBSD -current 
of Nov 20. Whatever I do, I get "mixerctl outputs.mic2_sense" answering 
"outputs.mic2_sense=unplugged" regardless of whether it is plugged or not. At 
the same time "outputs.hp_sense" is reported correctly. Is there anything I can 
do to enable mic2?

Thanks in advance.

--
Dmitrij D. Czarkoff

P.S.: I have Realtek ALC272 wia Intel 82801GB HD Audio.

P.P.S.: mixerctl:
inputs.dac-0:1=123,123
inputs.dac-4:5=123,123
inputs.dac-2:3=126,126
record.adc-2:3_mute=off
record.adc-2:3=248,248
record.adc-0:1_mute=off
record.adc-0:1=248,248
inputs.mix_source=mic2
inputs.mix_mic2=120,120
inputs.mix2_source=dac-0:1,mix
inputs.mix3_source=dac-4:5,mix
inputs.mix4_source=dac-2:3,mix
outputs.spkr_source=mix3
outputs.spkr_mute=on
outputs.spkr_dir=output
outputs.spkr_boost=off
outputs.spkr_eapd=on
outputs.mic2_source=mix4
outputs.mic2_mute=off
inputs.mic2=255,255
outputs.mic2_dir=input-vr80
outputs.hp_source=mix2
outputs.hp_mute=off
outputs.hp_boost=off
record.adc-0:1_source=mic2,mix
record.adc-2:3_source=mic2,mix
outputs.mic2_sense=unplugged
outputs.hp_sense=plugged
outputs.spkr_muters=mic2,hp
outputs.master=125,125
outputs.master.mute=off
outputs.master.slaves=dac-0:1,dac-4:5,spkr,hp
record.volume=255,255
record.volume.mute=off
record.volume.slaves=adc-2:3,adc-0:1



Re: OpenBSD 4.8's bsd.mp doesn't detect 4GB Memory

2010-12-14 Thread Denise H. G.
On 2010/12/14 at 20:32, Tomas Bodzar  wrote:
>
> On Tue, Dec 14, 2010 at 1:03 PM, Denise H. G.  wrote:
>> On 2010/12/14 at 02:45, Jeff Ross  wrote:
>>>
>>> On 12/13/10 09:52, Nick Jones wrote:
 On Mon, 13 Dec 2010 at 22:55:59 +0800, Denise H. G. wrote:
>> FWIW, I'm running -current with BIGMEM enabled on my X200 and it's
>> running fine.  I've attached the output of dmesg and pcidump -v for
>> reference.
>>
>> Kernel is generic otherwise, just renamed.
>>
>
> Great! Did you recompile your kernel? Or just modified your kernel by
> using config(8) ? I am rather new to OpenBSD...

 You need to amend:

 /usr/src/sys/arch/amd64/amd64/machdep.c

 And change the relevant line (1183 in the -current source I checked out
 yesterday) so that it says:

 int bigmem = 1;

 Then recompile your kernel as per the FAQ, reboot, and cross your
fingers.
 Report your success (or failure) here.

>>>
>>> Be aware that you are treading on unproven and unsupported ground, and
>>> the devs are not interested in hearing about bigmem related problems.
>>>
>>> Here is a PR I submitted not to long ago that was immediately closed
>>> because it was based on a bigmem kernel:
>>>
>>> http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=6453
>>
>> Thanks.
>>
>> I've switched to FreeBSD for my desktop with 4G memory...
>
> Unnecessary fear :
>
> $ sysctl kern.version
> kern.version=OpenBSD 4.8-current (GENERIC.MP) #547: Tue Dec  7 23:16:34 MST
2010
> dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
>
> $
>
> load averages:  0.76,  1.14,  1.06
>
>
>  hostname 13:27:52
> 49 processes:  1 running, 45 idle, 1 zombie, 2 on processor
> CPU0 states:  2.0% user,  0.0% nice,  1.6% system,  0.0% interrupt, 96.4%
idle
> CPU1 states:  3.8% user,  0.0% nice,  1.2% system,  0.0% interrupt, 95.0%
idle
> Memory: Real: 321M/610M act/tot  Free: 2651M  Swap: 0K/8189M used/tot
>
> $ dmesg | grep mem
> RTC BIOS diagnostic error 11
> real mem  = 3487125504 (3325MB)
> avail mem = 3420016640 (3261MB)
> spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600
> spdmem1 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600
> kqemu: kqemu version 0x00010300 loaded, max locked mem=1702696kB
> $
>
> My computer is more then 90% of time idle (regarding CPU) and my memory
> (even with bufcachepercent=40) is all the time more then 400MB free even
that
> I'm using a LOT of apps at same time including two or three VM's in Qemu.
>

Thanks! Then I have to learn now how to build a custom kernel on
OpenBSD, which is the first time for me:)

>
> $ vmstat 1 10
>  procsmemory   pagediskstraps  cpu
>  r b wavm fre  flt  re  pi  po  fr  sr sd0 cd0  int   sys   cs us sy
id
>  1 0 0 329432 2714044  762   0   0   0   0   0   6   0   47 14706  775  8  3
89
>  1 0 0 329544 2713900   67   0   0   0   0   0   0   0   35  3206  455  3  0
97
>  1 0 0 329544 2713900   23   0   0   0   0   0   0   0   10  2412  319  0  0
100
>  1 0 0 329544 2713900   33   0   0   0   0   0   0   03  2386  305  0  0
100
>  1 0 0 329464 2713980  527   0   0   0   0   0   0   04  2568  313  6  0
94
>  2 0 0 329464 2713980   58   0   0   0   0   0   0   03  2562  327  1  0
99
>  0 0 0 329464 2713980   23   0   0   0   0   0   0   0   47  2907  404  1  0
99
>  1 0 0 329452 2713992   30   0   0   0   0   0   0   0   58  4672  451  2  0
98
>  1 0 0 329636 2713808 1021   0   0   0   0   0   0   0   69  7632  465  5  4
91
>  1 0 0 329644 2713800  523   0   0   0   0   0   0   03  2504  308  5  0
95
> $
>
>




--
If reproducibility may be a problem conduct the
test only once.



Re: mic2 is unplugged whatever the physical status is

2010-12-14 Thread Jacob Meuser
On Tue, Dec 14, 2010 at 03:39:23PM +0100, Dmitrij D. Czarkoff wrote:
> Hello!
> 
> I have found my external microphone (mic2) not working under OpenBSD -current 
> of Nov 20. Whatever I do, I get "mixerctl outputs.mic2_sense" answering 
> "outputs.mic2_sense=unplugged" regardless of whether it is plugged or not. At 
> the same time "outputs.hp_sense" is reported correctly. Is there anything I 
> can do to enable mic2?

the last commits to azalia were in early eptember ... did it used to
change?  does the mic not work at all or is just plug sense not working?
it's possible the plug sense circuitry isn't really there, or has gone
bad ...

> Thanks in advance.
> 
> --
> Dmitrij D. Czarkoff
> 
> P.S.: I have Realtek ALC272 wia Intel 82801GB HD Audio.
> 
> P.P.S.: mixerctl:
> inputs.dac-0:1=123,123
> inputs.dac-4:5=123,123
> inputs.dac-2:3=126,126
> record.adc-2:3_mute=off
> record.adc-2:3=248,248
> record.adc-0:1_mute=off
> record.adc-0:1=248,248
> inputs.mix_source=mic2
> inputs.mix_mic2=120,120
> inputs.mix2_source=dac-0:1,mix
> inputs.mix3_source=dac-4:5,mix
> inputs.mix4_source=dac-2:3,mix
> outputs.spkr_source=mix3
> outputs.spkr_mute=on
> outputs.spkr_dir=output
> outputs.spkr_boost=off
> outputs.spkr_eapd=on
> outputs.mic2_source=mix4
> outputs.mic2_mute=off
> inputs.mic2=255,255
> outputs.mic2_dir=input-vr80
> outputs.hp_source=mix2
> outputs.hp_mute=off
> outputs.hp_boost=off
> record.adc-0:1_source=mic2,mix
> record.adc-2:3_source=mic2,mix
> outputs.mic2_sense=unplugged
> outputs.hp_sense=plugged
> outputs.spkr_muters=mic2,hp
> outputs.master=125,125
> outputs.master.mute=off
> outputs.master.slaves=dac-0:1,dac-4:5,spkr,hp
> record.volume=255,255
> record.volume.mute=off
> record.volume.slaves=adc-2:3,adc-0:1

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: Migrating from isakmpd to iked: interface name not recognized

2010-12-14 Thread Mike Belopuhov
On Mon, Dec 13, 2010 at 18:50 +0100, Axel Rau wrote:
> Hi all,
> 
> in the man page for iked.conf, I read:
> "Addresses can be specified in CIDR notation (matching netblocks), as
> symbolic host names, interface names, or interface group names."
> 
> In my iked.conf, I have
>local pppoe0
> but iked -vn complains:
>   no IP address found for pppoe0
>   /etc/iked.conf: 26: could not parse host specification
> .
>   ifconfig pppoe0 | grep inet
> shows:
>   inet 79.243.41.99 --> 87.186.224.28 netmask 0x
> 

iked is still in the works.  you shouldn't try to migrate to it unless
you can come up with fixes for such problems yourself.

mask2prefixlen functions are taken from bgpd.  OK?

Index: parse.y
===
RCS file: /home/cvs/src/sbin/iked/parse.y,v
retrieving revision 1.14
diff -u -p -u -p -r1.14 parse.y
--- parse.y 17 Nov 2010 16:43:45 -  1.14
+++ parse.y 14 Dec 2010 15:57:27 -
@@ -266,6 +266,8 @@ struct ipsec_addr_wrap  *host_v4(const ch
 struct ipsec_addr_wrap *host_dns(const char *, int);
 struct ipsec_addr_wrap *host_if(const char *, int);
 struct ipsec_addr_wrap *host_any(void);
+u_int8_tmask2prefixlen(struct sockaddr_in *);
+u_int8_tmask2prefixlen6(struct sockaddr_in6 *);
 voidifa_load(void);
 int ifa_exists(const char *);
 struct ipsec_addr_wrap *ifa_lookup(const char *ifa_name);
@@ -1712,6 +1714,65 @@ host_any(void)
return (ipa);
 }
 
+u_int8_t
+mask2prefixlen(struct sockaddr_in *sa_in)
+{
+   in_addr_t ina = sa_in->sin_addr.s_addr;
+
+   if (ina == 0)
+   return (0);
+   else
+   return (33 - ffs(ntohl(ina)));
+}
+
+u_int8_t
+mask2prefixlen6(struct sockaddr_in6 *sa_in6)
+{
+   u_int8_t l = 0, *ap, *ep;
+
+   /*
+* sin6_len is the size of the sockaddr so substract the offset of
+* the possibly truncated sin6_addr struct.
+*/
+   ap = (u_int8_t *)&sa_in6->sin6_addr;
+   ep = (u_int8_t *)sa_in6 + sa_in6->sin6_len;
+   for (; ap < ep; ap++) {
+   /* this "beauty" is adopted from sbin/route/show.c ... */
+   switch (*ap) {
+   case 0xff:
+   l += 8;
+   break;
+   case 0xfe:
+   l += 7;
+   return (l);
+   case 0xfc:
+   l += 6;
+   return (l);
+   case 0xf8:
+   l += 5;
+   return (l);
+   case 0xf0:
+   l += 4;
+   return (l);
+   case 0xe0:
+   l += 3;
+   return (l);
+   case 0xc0:
+   l += 2;
+   return (l);
+   case 0x80:
+   l += 1;
+   return (l);
+   case 0x00:
+   return (l);
+   default:
+   fatalx("non continguous inet6 netmask");
+   }
+   }
+
+   return (l);
+}
+
 /* interface lookup routintes */
 
 struct ipsec_addr_wrap *iftab;
@@ -1721,6 +1782,8 @@ ifa_load(void)
 {
struct ifaddrs  *ifap, *ifa;
struct ipsec_addr_wrap  *n = NULL, *h = NULL;
+   struct sockaddr_in  *sa_in;
+   struct sockaddr_in6 *sa_in6;
 
if (getifaddrs(&ifap) < 0)
err(1, "ifa_load: getifaddrs");
@@ -1737,17 +1800,13 @@ ifa_load(void)
if ((n->name = strdup(ifa->ifa_name)) == NULL)
err(1, "ifa_load: strdup");
if (n->af == AF_INET) {
-   n->af = AF_INET;
-   memcpy(&n->address, ifa->ifa_addr,
-   sizeof(struct sockaddr_in));
-   memcpy(&n->mask, ifa->ifa_addr,
-   sizeof(struct sockaddr_in));
+   sa_in = (struct sockaddr_in *)ifa->ifa_addr;
+   memcpy(&n->address, sa_in, sizeof(*sa_in));
+   n->mask = mask2prefixlen(sa_in);
} else if (n->af == AF_INET6) {
-   n->af = AF_INET6;
-   memcpy(&n->address, ifa->ifa_addr,
-   sizeof(struct sockaddr_in6));
-   memcpy(&n->mask, ifa->ifa_addr,
-   sizeof(struct sockaddr_in6));
+   sa_in6 = (struct sockaddr_in6 *)ifa->ifa_addr;
+   memcpy(&n->address, sa_in6, sizeof(*sa_in6));
+   n->mask = mask2prefixlen6(sa_in6);
}
n->next = NULL;
n->tail = n;



Re: Migrating from isakmpd to iked: interface name not recognized

2010-12-14 Thread Axel Rau

Am 14.12.2010 um 17:23 schrieb Mike Belopuhov:


mask2prefixlen functions are taken from bgpd.  OK?

Thanks, Axel
---
axel@chaos1.de  PGP-Key:29E99DD6  +49 151 2300 9283  computing @
chaos claudius



LIME EN LA VENTA NOCTURNA DE LIVERPOOL Y FABRICAS DE FRANCIA.

2010-12-14 Thread NORDIKA-LIME
 

Venta Nocturna
 
SOLO HOY!!!
18 MESES SIN INTERESES Y 20% DE REGALO
 EN MONEDERO ELECTRONICO
 
 
 
 
 
 
 
BICICLETA S9.0 CON RESPALDO
 

RESISTENCIA MAGNETICA
- VELOCIDAD, DISTANCIA, CALORIAS Y PULSO
$333*


REGALO INMEDIATO: $1,200 EN MONEDERO
 
 
 
 
 
 
 
 
 
 
CAMINADORA PLEGABLE D3.3
 

SISTEMA DE AUDIO INTEGRADO
INCLUYE RACK Y 3 SETS DE PESAS
$611*


REGALO INMEDIATO: $2,200 EN MONEDERO
 
 
 
 
 
 
 
 
 
 

ELIPTICA AEROBIC TRACK 5.0

COMPUTADORA LCD Y RESISTENCIA MAGNETICA
VENTILADOR, CONSOLA LCD, TIEMPO, DISTANCIA, CALORIAS Y PULSO
$333*
 

REGALO INMEDIATO: $1,200 EN MONEDERO
 
 
 
 
 
 
DE VENTA EN
 
 
 

 

si no desea recibir mas informacion de nuestro boletin responda este email
con el asunto remover



Re: [PATCH] uticom driver fix

2010-12-14 Thread Daniel Gracia

El 12/12/2010 0:13, Jonathan Gray escribis:

On Tue, Dec 07, 2010 at 10:06:59AM +0100, Daniel Gracia wrote:

Hi there!

Being in need of uticom driver noticed that it didn't worked out of
the box. Compiled, but opening the serial port twice panics the
kernel.

With the attached fix applyed to sys/dev/usb/uticom.c it's working
for me now with single port devices.


The iface part looks right, but why change the bufsize handling?
Dmitry Komissaroff's original code seems to have it the way it
currently is.


Sure original numbers worked ok; just trying to remove some black magic.



Re: [PATCH] uticom driver fix

2010-12-14 Thread Jonathan Gray
On Tue, Dec 14, 2010 at 04:43:23PM +0100, Daniel Gracia wrote:
> El 12/12/2010 0:13, Jonathan Gray escribis:
> >On Tue, Dec 07, 2010 at 10:06:59AM +0100, Daniel Gracia wrote:
> >>Hi there!
> >>
> >>Being in need of uticom driver noticed that it didn't worked out of
> >>the box. Compiled, but opening the serial port twice panics the
> >>kernel.
> >>
> >>With the attached fix applyed to sys/dev/usb/uticom.c it's working
> >>for me now with single port devices.
> >
> >The iface part looks right, but why change the bufsize handling?
> >Dmitry Komissaroff's original code seems to have it the way it
> >currently is.
> 
> Sure original numbers worked ok; just trying to remove some black magic.

such things should be seperate diffs, and these should go to tech.

is the following enough to make it work?

Index: uticom.c
===
RCS file: /cvs/src/sys/dev/usb/uticom.c,v
retrieving revision 1.7
diff -u -p -r1.7 uticom.c
--- uticom.c3 Dec 2010 17:02:29 -   1.7
+++ uticom.c14 Dec 2010 20:52:23 -
@@ -209,7 +209,6 @@ uticom_attach(struct device *parent, str
struct uticom_softc *sc = (struct uticom_softc *)self;
struct usb_attach_arg *uaa = aux;
usbd_device_handle dev = uaa->device;
-   usbd_interface_handle iface;
usb_config_descriptor_t *cdesc;
usb_interface_descriptor_t *id;
usb_endpoint_descriptor_t *ed;
@@ -381,7 +380,7 @@ fwload_done:
sc->sc_iface_number = id->bInterfaceNumber;
 
for (i = 0; i < id->bNumEndpoints; i++) {
-   ed = usbd_interface2endpoint_descriptor(iface, i);
+   ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i);
if (ed == NULL) {
printf("%s: no endpoint descriptor for %d\n",
sc->sc_dev.dv_xname, i);
@@ -419,7 +418,7 @@ fwload_done:
uca.obufsize = UTICOM_OBUFSZ;
uca.ibufsizepad = UTICOM_IBUFSZ;
uca.device = dev;
-   uca.iface = iface;
+   uca.iface = sc->sc_iface;
uca.opkthdrlen = 0;
uca.methods = &uticom_methods;
uca.arg = sc;



Re: delete user in group script

2010-12-14 Thread Leonardo Rodrigues
Ok! Here goes my contribution to this thread!

# $1=group
# $2=user

cd /etc
cat ./group \
| sed '/'$1'/ s/'$2'//' \
| sed '/'$1'/ s/,,/,/' \
| sed '/'$1'/ s/,$//' \
| sed '/'$1'/ s/:,/:/' > group.new

mv /etc/group.new /etc/group
chown root.wheel /etc/group
chmod 644 /etc/group
exit 0


On Tue, Dec 14, 2010 at 10:31 AM, Jan Stary  wrote:
> On Dec 14 15:31:40, OpenBSD Geek wrote:
>> Hi,
>>
>> After posted many requests on how to remove user from a group, i choosed
>> to build my own script.
>> And it works very fine.
>>
>> if [ $1 ] & [ $2 ]; then
>> cp /etc/group /tmp
>> cat /tmp/group | grep ^$2 > /tmp/onlygroup
>> cat /tmp/group | grep -v ^$2 > /tmp/nogroup
>> cat /tmp/onlygroup | sed "s/$1//g" | \
>> sed "s/ /,/g" | sed "s/,,/,/g" | sed "s/,$//g" > /tmp/newgroup
>> cat /tmp/newgroup >> /tmp/nogroup
>> cat /dev/null > /tmp/group
>> cat /tmp/nogroup >> /tmp/group
>> cp /tmp/group /etc
>> chmod 644 /etc/group
>> chown root /etc/group
>> chgrp wheel /etc/group
>
> Among other hilariously horrible things,
> this bit just made my day:
>
>> rm -f /tmp/*
>> echo "Success."
>
> You just nuked everybody's tempfiles.
> That's quite a success I guess.
>
>
>> else
>> echo "Remove user from a group"
>> echo "Use : sh duig user group"
>> fi
>>
>> Cheers,
>>
>> Wesley MOUEDINE ASSABY
>> www.mouedine.net



Re: delete user in group script

2010-12-14 Thread Ted Unangst
On Tue, Dec 14, 2010 at 4:00 PM, Leonardo Rodrigues
 wrote:
> mv /etc/group.new /etc/group
> chown root.wheel /etc/group
> chmod 644 /etc/group

A) root:wheel is better.
B) it's a bad idea to fix the permissions of a file after installing it.



Re: [Was: OT - gmail alternatives] PGP web mail anyone?

2010-12-14 Thread Tomas Vavrys
Is there a light at the end of the tunnel somewhere to make email
secure even for amateurs who don't know how to use PGP? I'm very
curious about the future of email, especially now. I would like to
hear opinions of OpenBSD wizards. The thing is that it is very hard to
persuade someone to use PGP all the time.

2010/12/13 Joel Wiramu Pauling :
> On 13 December 2010 22:23, Joachim Schipper 
> wrote:
>> On Sun, Dec 12, 2010 at 09:11:16PM -0700, Travis King wrote:
>>> Joel Wiramu Pauling  wrote:
>>> > Marti Martinez  wrote:
>>> > > Ted Unangst  wrote:
>>> > >> At some point you're going to realize that the javascript that
>>> > >> decrypts your mail has to come from someplace.
>>> > >
>>> > > A better alternative would be a PGP browser addon (...)
>>> >
>>> > [See] firegpg
>>>
>>> firegpg is the only way I can get friends and family to communicate
>>> with me securely. I don't even know what the interface looks like, but
>>> it does work (apparently).
>>
>> It's unmaintained. I would also be surprised if the server can't get at
>> your plaintext (e.g. with Javascript, or even Java/Flash).
>>
>> You may want to look at
>> http://rdist.root.org/2010/11/29/final-post-on-javascript-crypto/ and
>> the comments (in particular, my
>>
>
http://rdist.root.org/2010/11/29/final-post-on-javascript-crypto/#comment-623
> 9).
>>
>> Summary: it doesn't work, and can't work unless you add a plugin with
>> *many* restrictions.
>>
>> B B B B B B B B B B B B B B B Joachim
>>
>> --
>> PotD: devel/ivy - dependency manager for Java
>> http://www.joachimschipper.nl/
>>
>
> Firegpg was basically just chrome extensions to local(read client)
> side gpg binaries. It wasn't insecure for the reasons you cite, the
> author just got sick of having to update it to work with gmail (it's
> initial target). It is still useful for easy access to gpg functions
> within firefox.



Re: [Was: OT - gmail alternatives] PGP web mail anyone?

2010-12-14 Thread roberth
On Tue, 14 Dec 2010 23:06:49 +0100
Tomas Vavrys  wrote:

> Is there a light at the end of the tunnel somewhere to make email
> secure even for amateurs who don't know how to use PGP? I'm very
> curious about the future of email, especially now. I would like to
> hear opinions of OpenBSD wizards. The thing is that it is very hard to
> persuade someone to use PGP all the time.

yes, as strange as it sounds, the solution is called education.



Re: [Was: OT - gmail alternatives] PGP web mail anyone?

2010-12-14 Thread Kevin Chadwick
On Tue, 14 Dec 2010 23:06:49 +0100
Tomas Vavrys  wrote:

> The thing is that it is very hard to
> persuade someone to use PGP all the time.

it is very hard to persuade someone to use PGP in the first place, and
even harder to believe they have a secure machine. Sometimes you may
find encrypted pdfs are an easy solution but then if they're running
adobe reader or worse flash then they're almost guaranteed to have had a
known exploit every week for the last I'll let you know when they
stop. Of course you could say similar about firefox, but the exploits
are rarely as bad. A graphical and simple (probably impossible) OpenBSD
browser, would really be something, but now I'm just dreaming.

On the other hand, the fact it is hard to get someone to use gpg may
mean that if they do then you can trust them to a higher degree than if
it was already setup for all users.

You can use gpg to securely talk to yourself, of course.



Re: [Was: OT - gmail alternatives] PGP web mail anyone?

2010-12-14 Thread Tomas Vavrys
Well, since Egypt we know that it's not going to happen.

2010/12/14 roberth :
> On Tue, 14 Dec 2010 23:06:49 +0100
> Tomas Vavrys  wrote:
>
>> Is there a light at the end of the tunnel somewhere to make email
>> secure even for amateurs who don't know how to use PGP? I'm very
>> curious about the future of email, especially now. I would like to
>> hear opinions of OpenBSD wizards. The thing is that it is very hard to
>> persuade someone to use PGP all the time.
>
> yes, as strange as it sounds, the solution is called education.



Re: delete user in group script

2010-12-14 Thread Adriaan
On Tue, Dec 14, 2010 at 10:00 PM, Leonardo Rodrigues
 wrote:
> Ok! Here goes my contribution to this thread!
>
> # $1=group
> # $2=user
>
> cd /etc
> cat ./group \
>| sed '/'$1'/ s/'$2'//' \
>| sed '/'$1'/ s/,,/,/' \
>| sed '/'$1'/ s/,$//' \
>| sed '/'$1'/ s/:,/:/' > group.new
>
> mv /etc/group.new /etc/group
> chown root.wheel /etc/group
> chmod 644 /etc/group
> exit 0
>

My take ;)

# -
FILE=/etc/group
FILE=group

install ${FILE} ${FILE}.orig

sed -e "/$1/s/$2//" \
-e "/$1/s/,,/,/" \
-e "/$1/s/,$//" \
-e "/$1/s/:,/:/"   ${FILE}.orig > ${FILE}

# 

Adriaan



Re: [Was: OT - gmail alternatives] PGP web mail anyone?

2010-12-14 Thread Johan Beisser
On Tue, Dec 14, 2010 at 2:06 PM, Tomas Vavrys  wrote:
> Is there a light at the end of the tunnel somewhere to make email
> secure even for amateurs who don't know how to use PGP? I'm very
> curious about the future of email, especially now. I would like to
> hear opinions of OpenBSD wizards. The thing is that it is very hard to
> persuade someone to use PGP all the time.

PGP has gotten easier with various front ends. Take a look at GPG Made
Easy for an example of simplifying the library calls for application
access to PGP encryption.

jb



Re: [Was: OT - gmail alternatives] PGP web mail anyone?

2010-12-14 Thread roberth
On Tue, 14 Dec 2010 23:33:13 +0100
Tomas Vavrys  wrote:

> Well, since Egypt we know that it's not going to happen.
> 
> 2010/12/14 roberth :
> > On Tue, 14 Dec 2010 23:06:49 +0100
> > Tomas Vavrys  wrote:
> >
> >> Is there a light at the end of the tunnel somewhere to make email
> >> secure even for amateurs who don't know how to use PGP? I'm very
> >> curious about the future of email, especially now. I would like to
> >> hear opinions of OpenBSD wizards. The thing is that it is very
> >> hard to persuade someone to use PGP all the time.
> >
> > yes, as strange as it sounds, the solution is called education.
> 

egypt what?
lots of goverments are working hard on getting darwin back into our
daily life. too weak or stupid? you die.

some people have the patience to teach, others don't.
old people miss the cuteness factor of children, but still...

everybody should have experienced how satisfying it is to see senior
home inhabitants starting to teach "the internet" to others once they
got it.
what really stands out is, that they don't expect all the girls on a
social networking site to have to show them theirs because they
uploaded a photo of theirs. :)



Re: [Was: OT - gmail alternatives] PGP web mail anyone?

2010-12-14 Thread roberth
On Tue, 14 Dec 2010 23:33:13 +0100
Tomas Vavrys  wrote:

> Well, since Egypt we know that it's not going to happen.
> 
> 2010/12/14 roberth :
> > On Tue, 14 Dec 2010 23:06:49 +0100
> > Tomas Vavrys  wrote:
> >
> >> Is there a light at the end of the tunnel somewhere to make email
> >> secure even for amateurs who don't know how to use PGP? I'm very
> >> curious about the future of email, especially now. I would like to
> >> hear opinions of OpenBSD wizards. The thing is that it is very
> >> hard to persuade someone to use PGP all the time.
> >
> > yes, as strange as it sounds, the solution is called education.
> 

btw, you top top-posted on purpose to make your point, didn't you?



Re: [Was: OT - gmail alternatives] PGP web mail anyone?

2010-12-14 Thread Tomas Vavrys
2010/12/14 Kevin Chadwick :
> On Tue, 14 Dec 2010 23:06:49 +0100

> it is very hard to persuade someone to use PGP in the first place, and
> even harder to believe they have a secure machine.

I have a great experience with Pidgin and OTR. Even a child could
handle the first authorization after a simple installation of OTR
plugin. A lot of my friends use it now, because I have encouraged a
little paranoia in them. However, it's not email though.



Re: opensmtpd with custom passwd file

2010-12-14 Thread Hugo Osvaldo Barrera

On 12/14/2010 03:21 AM, Gilles Chehade wrote:

On Mon, Dec 13, 2010 at 11:17:56PM -0300, Hugo Osvaldo Barrera wrote:

Hi!


Hi,


I've been using smtpd on my server for some time now, and I want to host
e-mail accounts for a couple of friends who've asked me to.

I was wondering if it's posible to configure opensmtpd to use a custom
passwd for user authentication.
All I've found in the man pages, is configuring user/pass for relaying,
but nothing related to actual user authentication.

Is this possible yet?  If not, are there any plans for this?


It is not possible yet, authentication is tighly coupled to accounts in
master.passwd; this will change in a not-so-distant future.



Thanks, and, by the way, smtpd is GREAT work, it's by far the easiest to
configure smtp server, and the one with the most pleasent-to-read doc
(as usual with openbsd).


:)



Oh, ok, I'll just use accounts which can't log-in though any other means 
in the meantime, though i would have prefered to use a "fake" passwd file.


Thanks! :-)



Re: OpenBSD 4.8's bsd.mp doesn't detect 4GB Memory

2010-12-14 Thread Clint Pachl

Denise H. G. wrote:

I've switched to FreeBSD for my desktop with 4G memory...
   

>
>  Unnecessary fear :
>
>  $ sysctl kern.version
>  kern.version=OpenBSD 4.8-current (GENERIC.MP) #547: Tue Dec  7 23:16:34 MST
 

2010
   

>   dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
>
>  $
>
>  load averages:  0.76,  1.14,  1.06
>
>
>hostname 13:27:52
>  49 processes:  1 running, 45 idle, 1 zombie, 2 on processor
>  CPU0 states:  2.0% user,  0.0% nice,  1.6% system,  0.0% interrupt, 96.4%
 

idle
   

>  CPU1 states:  3.8% user,  0.0% nice,  1.2% system,  0.0% interrupt, 95.0%
 

idle
   

>  Memory: Real: 321M/610M act/tot  Free: 2651M  Swap: 0K/8189M used/tot
>
>  $ dmesg | grep mem
>  RTC BIOS diagnostic error 11
>  real mem  = 3487125504 (3325MB)
>  avail mem = 3420016640 (3261MB)
>  spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600
>  spdmem1 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600
>  kqemu: kqemu version 0x00010300 loaded, max locked mem=1702696kB
 


I think Bodzar's point here is that you don't need 4GB, especially on a 
desktop.


Sure, your car can do 230 kph, but how often do you ever get over 150?

Unless you're running a very busy database server or a crazy web server, 
I don't think you'll ever need much above 2GB.


I have 2GB in most of my i386 and amd64 laptops and servers. None of my 
machines ever touch the swap. In fact, most of the time I have 50% FREE 
RAM. On my development laptop I typically run a Seamonkey Browser with 
50 tabs and Mail (400MB), about 20 terminals (half of which are SSHed to 
remote machines), Inkscape, Gimp, Postgresql locally for dev, 
ruby-sinatra, etc. and I've never been over 1.2GB. I do run cwm as my 
window manager. So lets say for shits and giggles that you're running 
KDE or something bloated like that, then maybe you'll use another gig. 
So what, you're still under 3GB.


Save yourself time and headaches and just run OpenBSD stable or 
snapshots. Compiling kernels is a waste of time when you're doing it for 
performance reasons. I used to do this shit about 8 years ago just to 
eek out a little more performance, so I thought. I was also coming from  
Linux/FreeBSD to OpenBSD at that time. I finally realized that my time 
is better spent doing other things. Now I run OpenBSD exclusively on all 
four of my systems and my life is easy.


One last thing: when developers say don't do something, they know best 
so listen. Compiling in BIGMEM is bad if they told you no.




Re: OpenBSD 4.8's bsd.mp doesn't detect 4GB Memory

2010-12-14 Thread roberth
On Tue, 14 Dec 2010 16:46:08 -0700
Clint Pachl  wrote:

> Denise H. G. wrote:
> >>> I've switched to FreeBSD for my desktop with 4G memory...
> >>>
> >> >
> >> >  Unnecessary fear :
> >> >
> >> >  $ sysctl kern.version
> >> >  kern.version=OpenBSD 4.8-current (GENERIC.MP) #547: Tue Dec  7
> >> > 23:16:34 MST
> >>  
> > 2010
> >
> >> >   dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
> >> >
> >> >  $
> >> >
> >> >  load averages:  0.76,  1.14,  1.06
> >> >
> >> >
> >> >hostname 13:27:52
> >> >  49 processes:  1 running, 45 idle, 1 zombie, 2 on processor
> >> >  CPU0 states:  2.0% user,  0.0% nice,  1.6% system,  0.0%
> >> > interrupt, 96.4%
> >>  
> > idle
> >
> >> >  CPU1 states:  3.8% user,  0.0% nice,  1.2% system,  0.0%
> >> > interrupt, 95.0%
> >>  
> > idle
> >
> >> >  Memory: Real: 321M/610M act/tot  Free: 2651M  Swap: 0K/8189M
> >> >  Memory: Real: used/tot
> >> >
> >> >  $ dmesg | grep mem
> >> >  RTC BIOS diagnostic error 11
> >> >  real mem  = 3487125504 (3325MB)
> >> >  avail mem = 3420016640 (3261MB)
> >> >  spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600
> >> >  spdmem1 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600
> >> >  kqemu: kqemu version 0x00010300 loaded, max locked mem=1702696kB
> >>  
> 
> I think Bodzar's point here is that you don't need 4GB, especially on
> a desktop.
> 
> Sure, your car can do 230 kph, but how often do you ever get over 150?
> 
> Unless you're running a very busy database server or a crazy web
> server, I don't think you'll ever need much above 2GB.
> 
> I have 2GB in most of my i386 and amd64 laptops and servers. None of
> my machines ever touch the swap. In fact, most of the time I have 50%
> FREE RAM. On my development laptop I typically run a Seamonkey
> Browser with 50 tabs and Mail (400MB), about 20 terminals (half of
> which are SSHed to remote machines), Inkscape, Gimp, Postgresql
> locally for dev, ruby-sinatra, etc. and I've never been over 1.2GB. I
> do run cwm as my window manager. So lets say for shits and giggles
> that you're running KDE or something bloated like that, then maybe
> you'll use another gig. So what, you're still under 3GB.
> 
> Save yourself time and headaches and just run OpenBSD stable or 
> snapshots. Compiling kernels is a waste of time when you're doing it
> for performance reasons. I used to do this shit about 8 years ago
> just to eek out a little more performance, so I thought. I was also
> coming from Linux/FreeBSD to OpenBSD at that time. I finally realized
> that my time is better spent doing other things. Now I run OpenBSD
> exclusively on all four of my systems and my life is easy.
> 
> One last thing: when developers say don't do something, they know
> best so listen. Compiling in BIGMEM is bad if they told you no.
> 

omg, i am using 95% of my memory all the time, should i be worried?
maybe kern.bufcachepercent=95 has something to do with it; blame Bob.



Re: OpenBSD 4.8's bsd.mp doesn't detect 4GB Memory

2010-12-14 Thread Clint Pachl

roberth wrote:

omg, i am using 95% of my memory all the time, should i be worried?
maybe kern.bufcachepercent=95 has something to do with it; blame Bob.
   


Holy shit! Mine's at 10%. Maybe I should crank mine up to to 95% and 
then buy more RAM.




Re: [Was: OT - gmail alternatives] PGP web mail anyone?

2010-12-14 Thread xSAPPYx
Dan Kaminsky (http://dankaminsky.com) has been working on "Domain Key
Infrastructure" bootstrapped of of dnssec that looks pretty
interesting. I'm not sure where the video is for this talk (it was at
blackhat/defcon 2010), but I found the slides..
http://www.slideshare.net/dakami/phreebird-suite-10-introducing-the-domain-key-infrastructure


On Tue, Dec 14, 2010 at 14:06, Tomas Vavrys  wrote:
> Is there a light at the end of the tunnel somewhere to make email
> secure even for amateurs who don't know how to use PGP? I'm very
> curious about the future of email, especially now. I would like to
> hear opinions of OpenBSD wizards. The thing is that it is very hard to
> persuade someone to use PGP all the time.
>
> 2010/12/13 Joel Wiramu Pauling :
>> On 13 December 2010 22:23, Joachim Schipper 
>> wrote:
>>> On Sun, Dec 12, 2010 at 09:11:16PM -0700, Travis King wrote:
 Joel Wiramu Pauling  wrote:
 > Marti Martinez  wrote:
 > > Ted Unangst  wrote:
 > >> At some point you're going to realize that the javascript that
 > >> decrypts your mail has to come from someplace.
 > >
 > > A better alternative would be a PGP browser addon (...)
 >
 > [See] firegpg

 firegpg is the only way I can get friends and family to communicate
 with me securely. I don't even know what the interface looks like, but
 it does work (apparently).
>>>
>>> It's unmaintained. I would also be surprised if the server can't get at
>>> your plaintext (e.g. with Javascript, or even Java/Flash).
>>>
>>> You may want to look at
>>> http://rdist.root.org/2010/11/29/final-post-on-javascript-crypto/ and
>>> the comments (in particular, my
>>>
>>
> http://rdist.root.org/2010/11/29/final-post-on-javascript-crypto/#comment-623
>> 9).
>>>
>>> Summary: it doesn't work, and can't work unless you add a plugin with
>>> *many* restrictions.
>>>
>>> B B B B B B B B B B B B B B B Joachim
>>>
>>> --
>>> PotD: devel/ivy - dependency manager for Java
>>> http://www.joachimschipper.nl/
>>>
>>
>> Firegpg was basically just chrome extensions to local(read client)
>> side gpg binaries. It wasn't insecure for the reasons you cite, the
>> author just got sick of having to update it to work with gmail (it's
>> initial target). It is still useful for easy access to gpg functions
>> within firefox.



Re: [Was: OT - gmail alternatives] PGP web mail anyone?

2010-12-14 Thread Ted Unangst
On Tue, Dec 14, 2010 at 5:19 PM, Johan Beisser  wrote:
> On Tue, Dec 14, 2010 at 2:06 PM, Tomas Vavrys  wrote:
>> Is there a light at the end of the tunnel somewhere to make email
>> secure even for amateurs who don't know how to use PGP? I'm very
>> curious about the future of email, especially now. I would like to
>> hear opinions of OpenBSD wizards. The thing is that it is very hard to
>> persuade someone to use PGP all the time.
>
> PGP has gotten easier with various front ends. Take a look at GPG Made
> Easy for an example of simplifying the library calls for application
> access to PGP encryption.

Typing "pgp --make-it-safe" or clicking a button has never been the
hard part.  The key management and trust clusterfuck is the hard part.

Kaminksy's "DNS is the root of all certs" approach looks promising, so
I think there's a chance we'll see real progress within ten years.



Re: [Was: OT - gmail alternatives] PGP web mail anyone?

2010-12-14 Thread roberth
On Tue, 14 Dec 2010 16:38:54 -0800
xSAPPYx  wrote:

> Dan Kaminsky (http://dankaminsky.com) has been working on "Domain Key
> Infrastructure" bootstrapped of of dnssec that looks pretty
> interesting. I'm not sure where the video is for this talk (it was at
> blackhat/defcon 2010), but I found the slides..
> http://www.slideshare.net/dakami/phreebird-suite-10-introducing-the-domain-key-infrastructure

he is not the only one doin keys via dns(sec).
verisign had a reason to sell their ca-buisness when they did.



how to know if a headphone jack is plugged in

2010-12-14 Thread Aaron Lewis
how to know if a headphone jack is plugged in , anyone knows ?

-- Aaron



Re: OpenBSD 4.8's bsd.mp doesn't detect 4GB Memory

2010-12-14 Thread roberth
On Tue, 14 Dec 2010 17:19:23 -0700
Clint Pachl  wrote:

> roberth wrote:
> > omg, i am using 95% of my memory all the time, should i be worried?
> > maybe kern.bufcachepercent=95 has something to do with it; blame
> > Bob. 
> 
> Holy shit! Mine's at 10%. Maybe I should crank mine up to to 95% and 
> then buy more RAM.
> 

90% was what was asked for in testing the feature.
but since evacuating ram when needed works so nicely, i thought why not
crank it up some more.
guess even 99% with 2GB ram won't be noticable. ram is so much faster
than the disk you have to get the data from. and no, no swap use
whatsoever.
someday bufcachepercent will be bumped by default. can't see a reason
not to.

no need to by more ram, to raise the cache.
only got two gig in my thinkpad.
after booting and starting the usual susspects(xfce,claws,ff,some
terminals), i am still way below 1gig in use. (that's before caching
realy kicks in. nice to have it for cvsync-ing the updated cvs-tree and
then 'cvs up'-ing from ram...)



Re: how to know if a headphone jack is plugged in

2010-12-14 Thread Jacob Meuser
On Wed, Dec 15, 2010 at 10:06:57AM +0800, Aaron Lewis wrote:
> how to know if a headphone jack is plugged in , anyone knows ?
> 
> -- Aaron

for azalia(4):

$ mixerctl | grep _sense

other drivers, I don't think any others have such a feature.  maybe some
of the macppc audio devices ...  some ac97 codecs support it, but it's
not standardised and not supported in OpenBSD.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Papai Noel existe - Anuncie GRATIS.

2010-12-14 Thread auto-motivos
Se vocj nco esta conseguindo ver o contezdo deste email acesse a versco
alternativa.

Informativo-1

Site

[IMAGE]

Cadastre-se

[IMAGE]



Re: how to know if a headphone jack is plugged in

2010-12-14 Thread roberth
On Wed, 15 Dec 2010 10:06:57 +0800
Aaron Lewis  wrote:

> how to know if a headphone jack is plugged in , anyone knows ?
> 
> -- Aaron

there is this hole thingy, if there is that plug thingy in it, you
might expect it to be plugged in.
to make sure, you push on it, that's into the direction of the hole
thingy.
if you are not sure, you pull and push until it kinda snaps, then it is
most likely plugged in.
if it is still not flush to the connector you get a hammer or sumsuch
and do whatever you like.



sysjail project

2010-12-14 Thread Mikle Krutov
Hello, list!

I'm interested, why is it said on sysjail projects site that
>Sources tested variously on i386, AMD64, alpha, and others. It will only
>work with OpenBSD 3.9, 4.0, 4.1, 4.2, and 4.3. The most current version
>is 1.2.35, dated 29 May 2010. 
While 
>dated 29 May 2010
?
Is that information wrong? If not, what are the reasons that it does not
work on nowdays realeases?
-- 

Old mercenaries never die. They go to hell and regroup.

With best regards, Mikle Krutov, Bercut ltd. Technical Support department



Re: sysjail project

2010-12-14 Thread Jason Dixon
On Wed, Dec 15, 2010 at 06:26:24AM +0300, Mikle Krutov wrote:
> Hello, list!
> 
> I'm interested, why is it said on sysjail projects site that
> >Sources tested variously on i386, AMD64, alpha, and others. It will only
> >work with OpenBSD 3.9, 4.0, 4.1, 4.2, and 4.3. The most current version
> >is 1.2.35, dated 29 May 2010. 
> While 
> >dated 29 May 2010
> ?
> Is that information wrong? If not, what are the reasons that it does not
> work on nowdays realeases?

http://en.wikipedia.org/wiki/Sysjail

"The project was officially discontinued on 2009-03-03 due to flaws
inherent to syscall wrapper-based security architectures. The
restrictions of sysjail could be evaded by exploiting race conditions
between the wrapper's security checks and kernel's execution of the
syscalls.[1]"

1. http://www.watson.org/~robert/2007woot/

-- 
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net/



Re: Advice on learning C as first language

2010-12-14 Thread Daniel B.
On Wed, 24 Nov 2010, Marco Peereboom wrote:

> The must have is:
> http://www.amazon.com/Programming-Environment-Addison-Wesley-Professional-Computing/dp/0321525949/ref=pd_sim_b_8

+1



Re: OpenBSD in Rock Band 3

2010-12-14 Thread Daniel B.
On Wed, 8 Dec 2010, Marco Peereboom wrote:

> So you suggest they should continue to break the law?

Thinking on how things are actually done today, they are obviously 
wrong, but at least then mentioned OpenBSD.



my new script for delete user from group

2010-12-14 Thread OpenBSD Geek
After correction, i'm agree it is a bit long, but it works.
Thank you very much for your posts!

if [ $1 ] & [ $2 ]; then

tempfile=`mktemp /tmp/tempfile.`
cp /etc/group $tempfile

onlygroup=`mktemp /tmp/tempfile.`
cat $tempfile | grep ^$2 > $onlygroup

nogroup=`mktemp /tmp/tempfile.`
cat $tempfile | grep -v ^$2 > $nogroup

cat $onlygroup | sed "s/$1//g" | \
sed "s/ /,/g" | sed "s/,,/,/g" | sed "s/,$//g" >> $nogroup

mv /etc/group /etc/group.old
cp $nogroup /etc/group

chmod 644 /etc/group
chown root /etc/group
chgrp wheel /etc/group

rm -f /tmp/tempfile.

else
echo "Remove user from a group"
echo "Use : sh duig user group"
fi



Re: my new script for delete user from group

2010-12-14 Thread Andres Perera
On Wed, Dec 15, 2010 at 12:47 AM, OpenBSD Geek 
wrote:
> After correction, i'm agree it is a bit long, but it works.
> Thank you very much for your posts!
>
> if [ $1 ] & [ $2 ]; then

Missing an ampersand, and if $1 or $2 evaluate to -t, some shells will return
1
if stdout is not a terminal.

>
> tempfile=`mktemp /tmp/tempfile.`
> cp /etc/group $tempfile

/tmp/`basename $0`.XXX is better

it would suck if all scripts used tempfile as a prefix

>
> onlygroup=`mktemp /tmp/tempfile.`
> cat $tempfile | grep ^$2 > $onlygroup

cat file | grep == grep < file

>
> nogroup=`mktemp /tmp/tempfile.`
> cat $tempfile | grep -v ^$2 > $nogroup
>
> cat $onlygroup | sed "s/$1//g" | \
> B  B  B  B sed "s/ /,/g" | sed "s/,,/,/g" | sed "s/,$//g" >> $nogroup

sed "s:,\?$1,\?::g" < $onlygroup > $nogroup

This is just making it readable

It doesnt address the fact that passwd/group should NOT be edited this way

>
> mv /etc/group /etc/group.old
> cp $nogroup /etc/group

No, dude.

cp is not atomic

>
> chmod 644 /etc/group
> chown root /etc/group
> chgrp wheel /etc/group
>
> rm -f /tmp/tempfile.

No. When you use mktemp, it returns the generated name:
rm $tempfile $nogroup $onlygroup

>
> else
> echo "Remove user from a group"
> echo "Use : sh duig user group"
> fi

Please do not wrap your whole script in an if clause. Just return earlier.

Even if you do correct these things, it's still horrible.