audio jacks on macbook

2010-03-07 Thread Ted Roby
I'm running OpenBSD -current on a 3rd gen Macbook, and have sound for the
most part.
However, I noticed that the headphones jack doesn't quite work properly.

If I plug in external speakers, with their own power supply, the audio over
my
built-in speakers lessens, but does not shut off. Also, zero sound comes out
of the
external speakers while this lessened sound continues out of the built-in
speakers.

Of course, I have not had this problem on other platforms. I have not even
begun
troubleshooting this. I have not tested to see if the same problem exists in
-stable.
I have not tried starting the system up with the headphones plugged in for
proper
identification of the hardware.

This is being experienced on Intel HD Audio.



Re: OpenBSD 4.6 Intel Mac Mini

2010-03-07 Thread Lars Nooden
On 2010-3-7 4:21 AM, Devin Ceartas wrote:
 I run openBSD 4.6 on intel mac minis as production web and email
 servers. Works great. Nothing special about the install unless you want
 to keep a mac partion. Put in the i386 disk, reboot. May have hold down
 c, I forget. 

The AMD64 CD would give the advantages (and disadvantages) of that
architecture.

I find the rEFIt bootloader very convenient.

 I think there are two partion options and I fond I works
 best without the HFS.

The HFSplus packages is available for powerpc, not AMD64 or i386.

/Lars



Re: OpenBSD 4.6 Intel Mac Mini

2010-03-07 Thread Lars Nooden
On 2010-3-7 12:36 AM, John Hope wrote:

 Does any clear step by step documentation exist for installing OpenBSD
 on a Mac Mini? ...

One way, not necessarily the best way, if you want dualboot, is

* boot the OS X installation disk.

* Partition the disk, leaving a FAT32 partition for OpenBSD.  Using
FAT32 is way to make a physical partition.  (This may not be necessary.)

* Install OS X.

* Install rEFIt
http://refit.sourceforge.net/
  Make sure to run
/efi/refit/enable-always.sh

* boot the OpenBSD installation cd, change the FAT32 partition to
OpenBSD and use all of it.

* reboot, and use the rEFIt menu to choose the Start Partitioning Tool
option to sync the MBR.

* choose the OpenBSD icon and wait a bit.  I don't know what it's doing,
but it won't go anywhere.

* forcibly reboot.  Now you can choose OS X or OpenBSD upon startup.  OS
X will be the default, unless you change rEFIt's settings.


YMMV

It's possible to set triple boot with linux also, but watch out that
grub doesn't mess with the bootloader when you do your next update.  If
that happens then you can set grub to include something like this:

## OpenBSD
title OpenBSD
root (hd1,1)
# or where ever the root was
makeactive
chainloader +1


/Lars



Re: any known working configuration of OpenBGPd and CARP ?

2010-03-07 Thread Rogier Krieger
On Sun, Mar 7, 2010 at 06:00, PP;QQ P(P8P?P8QP8P= chipits...@gmail.com
wrote:
 from the network point of view, packets will come from the same MAC an
 IP address (because of CARP), so ... if BACKUP will just continue to
 maintain a session, established by MASTER,  nobody will even know, 1
 sec is nothing in terms of BGP

Your just continue sounds a bit optimistic. It could also be called
hijacking a session, though you picked a better purpose and much nicer
words for it. It's of course possible, since stuff such as MD5
signatures and IPsec exist to thwart that sort of thing.

Sounds like a cool idea, though.

Regards,

Rogier



La Corrézienne invite les Enfants !

2010-03-07 Thread La Correzienne
Si vous ne visualisez pas ce mail correctement, merci de cliquer iciPour
jtre s{r(e) de recevoir notre newsletter, merci de rajouter
service-clie...@la-correzienne.com ` votre carnet d'adresses.
Si vous n'arrivez pas ` visualiser cette newsletter, merci de cliquer ici.

La
Corrizienne

La Corrizienne invite les Enfants !
La Corrizienne invite les Petits ` jouer aux viritables billes en terre,
` des jeux de sociiti pensis pour eux, icouter les histoires rythmies par
Catherine Fontaine, et ` afficher leurs opinions sur des tee-shirts 
inidits !
Petits et Grands se retrouveront pour partager
les mythiques sucettes du Pierrot Gourmand !

Silection de
produits la corrizienne

La Corrhze 

Parrainage



[IMAGE]
Pour vous retirer de cette liste d'envoi, merci de cliquer ici
Powered by ActiveTrail.



Re: any known working configuration of OpenBGPd and CARP ?

2010-03-07 Thread Claudio Jeker
On Sun, Mar 07, 2010 at 10:00:40AM +0500,  ??? wrote:
 2010/3/7 Claudio Jeker cje...@diehard.n-r-g.com:
  On Sat, Mar 06, 2010 at 06:52:24PM +0100, Rogier Krieger wrote:
  On Sat, Mar 6, 2010 at 17:26, P P;Q Q  P(P8P?P8Q P8P=
  chipits...@gmail.com
  wrote:
   no, I want routes exactly to carp.
 
  That sounds odd. Routes are something different than what particular
  host responds to frames directed to a specific hardware address.
 
  If I understand the rest of your description correctly, you want only
  the master bgpd to have sessions and to somehow distribute its routes
  to the backup(s), with the backups starting with that 'state' and
  initiate connections to your BGP peers whenever a master goes down. I
  doubt that'll work.
 
  In your scenario, if your master goes down, there are no longer any
  BGP sessions up with any of your peers. If I'm not mistaken, that will
  cause them to withdraw the prefixes you previously advertised from
  their tables and no longer forward traffic to you.
 
 
  Right, as soon as the master dies the routes will be withdrawn (there may
  be some overlap since it is possible that carp switches before bgpd
  realizes the loss). At the moment it is not possible to have a real backup
  router running. I have some ideas and partial diffs that will allow backup
  CARP nodes to preload tables. Main problem is that we need graceful
  restart for this but most peers (as in cizzzcoee) are not able to assist
  graceful restart.
 
  Btw. I'm looking for a device that is capable of doing graceful restarts
  (as for example some foundry) to test my diff against. Would be great if I
  could get access to a lab router to play with.
 
 we have Juniper on other side, I could test the patch.
 

Thanks but I need full access to the device. When I know it is working I
will send it out to tech@ so that people can test against other
implementations.

 
  When your new master is promoted, it will set up a new session with
  your peers. This is probably not the sort of failover you want to see
  happening in production.
 
 
  That's why you have multiple bgpd routers with redundant pathes.
 
 from the network point of view, packets will come from the same MAC an
 IP address (because of CARP), so ... if BACKUP will just continue to
 maintain a session, established by MASTER,  nobody will even know, 1
 sec is nothing in terms of BGP
 

You can not just continue to maintain a session, established by MASTER.
That implies that you can migrate a running TCP session plus all the
necessary state information of the session engine from one system to
another.

-- 
:wq Claudio



Re: OpenBSD 4.6 Intel Mac Mini

2010-03-07 Thread John Hope
Thank you for both replies.

It was much, much easier than I thought. Just cleared the disk via
Disk Utility from my Mac OS X disk. Popped in my 4.6 CD and done a
usual install. Worked perfectly! startx worked perfectly first time
too!

Thank you OpenBSD team/users!

P.S: In my 4.6 CD booklet it says:

cd /cdrom/4.6 /packages/arch

I think you've mistakenly added a space after the 4.6. Or am I missing
something?

John



relayd as reverse-proxy with authentication?

2010-03-07 Thread Christian Kildau
Hello,

is it possible to run relayd as kind of a HTTP reverse-proxy that adds
SSL and Authentication?
Currently we run apache2 as a reverse proxy on our gateway that takes
request on port 443 using ssl,
requires authentication against a htaccess file and and then proxies
the request to our internal webserver.

Is relayd the right tool for that or is there a better small tool for that task?


Kind regards
Chris



Re: audio jacks on macbook

2010-03-07 Thread Jacob Meuser
On Sun, Mar 07, 2010 at 01:25:54AM -0700, Ted Roby wrote:
 I'm running OpenBSD -current on a 3rd gen Macbook, and have sound for the
 most part.
 However, I noticed that the headphones jack doesn't quite work properly.
 
 If I plug in external speakers, with their own power supply, the audio over
 my
 built-in speakers lessens, but does not shut off. Also, zero sound comes out
 of the
 external speakers while this lessened sound continues out of the built-in
 speakers.
 
 Of course, I have not had this problem on other platforms. I have not even
 begun
 troubleshooting this. I have not tested to see if the same problem exists in
 -stable.
 I have not tried starting the system up with the headphones plugged in for
 proper
 identification of the hardware.
 
 This is being experienced on Intel HD Audio.

for future reference, don't bother to mention hardware/driver issues if you
aren't going to include a dmesg.

there's also a section in the faq for what to do if you have problems
*with audio*.

http://www.openbsd.org/faq/

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



Re: audio jacks on macbook

2010-03-07 Thread Jacob Meuser
On Sun, Mar 07, 2010 at 12:10:03PM +, Jacob Meuser wrote:
 On Sun, Mar 07, 2010 at 01:25:54AM -0700, Ted Roby wrote:
  I'm running OpenBSD -current on a 3rd gen Macbook, and have sound for the
  most part.
  However, I noticed that the headphones jack doesn't quite work properly.
  
  If I plug in external speakers, with their own power supply, the audio over
  my
  built-in speakers lessens, but does not shut off. Also, zero sound comes out
  of the
  external speakers while this lessened sound continues out of the built-in
  speakers.
  
  Of course, I have not had this problem on other platforms. I have not even
  begun
  troubleshooting this. I have not tested to see if the same problem exists in
  -stable.
  I have not tried starting the system up with the headphones plugged in for
  proper
  identification of the hardware.
  
  This is being experienced on Intel HD Audio.
 
 for future reference, don't bother to mention hardware/driver issues if you
 aren't going to include a dmesg.

the output of 'pcidump -x' will probably be useful for this as well.

see src/sys/dev/pci/azalia_codec.c r1.131.

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



Re: tools for finding a type of bug?

2010-03-07 Thread Amarendra Godbole
On Fri, Mar 5, 2010 at 11:02 PM, Mark Bucciarelli mkb...@gmail.com wrote:
 Is there some set of tools you all use to
 help find bad code?

 Specifically, I'm working with a large code
 base (monetdb), and have found two instances
 where the fopen() return value was not
 checked.

 Now I'd like to search the tree and find all
 instances of this bug.

 How do you do this?  Must it be manual or
 are there static analysis tools (e.g., grep 
 awk or perhaps clang) that you use.

 (I didn't mark as OT b/c I'm working towards
 an OpenBSD port of this most-excellent db.)
[...]

grep is an excellent static source code analyzer if you know what you
are looking for. If you don't know what you are looking for, then you
should mostly pay folks who know things that you might be looking for
(for eg., fortify, coverity).

-Amarendra



nmbd does not listen

2010-03-07 Thread jean-francois
Hi,

After installing the default system + installing samba I am in front on a 
system now working but not replyying to windows port 137 requests to nmbd for 
mapping the server, the windows neighboor function.

After checking netstat I see that nmbd is not in listen on this port however 
running.

Is there some basic configuration I missed to do ?

Regards



Re: nmbd does not listen

2010-03-07 Thread Rogier Krieger
On Sun, Mar 7, 2010 at 14:31, jean-francois jfsimon1...@gmail.com wrote:
 Is there some basic configuration I missed to do ?

As a quick check, did you start both smbd and nmbd components (ps ax
is your friend here) and did you place the necessary lines in
/etc/rc.local as per the message you received upon install? If you
missed that, see pkg_info(1) and its -M option.

Alternatively, review the log files for samba to see what's (not) happening.

Regards,

Rogier



Votre Rollup à 69 eur - Vos nouveaux avantages

2010-03-07 Thread Rollup-Express
 Le vrai Rollup


Madame, Monsieur,

Vu le trhs grand succhs de notre boutique online www.rollupbelgium.be , nous
avons l'avantage de vous informer qu'une nouvelle version de cette boutique
vient d'jtre mise en ligne ` l'adresse www.rollup-express.com/.


Quels sont vos avantages ?


Des prix digressifs toujours aussi intiressants
(impression comprise - voir tableau ci-dessous)

Tilichargement beaucoup plus rapide de vos images

Livraison gratuite dans de nombreux pays (Belgique, France, Pays-bas,
Allemagne, Grand-Bretagne, etc)

Frais de livraison riduits dans les autres pays (tableau)

Des nombreux messages qui vous priviennent de l'ivolution de votre commande

La possibiliti de suivre online cette ivolution

La disponibiliti immidiate de votre facture.

Une lisibiliti accrue, etc.



 Quantiti (` partir de..) 1 3+ 6+ 12+ 36+ 96+
 Prix pour 1 pc (*)
 Impression comprise 129 99 84 69 64 59

(*) eur - htva / transport gratuit dans de nombreux pays



 Rollup-Express est une division de VTS s.a. - 6041 Gosselies - Belgique

Si vous ne souhaitez plus recevoir nos informations: http://fs.vedi.be



Re: audio jacks on macbook

2010-03-07 Thread Ted Roby
On Sun, Mar 7, 2010 at 5:10 AM, Jacob Meuser jake...@sdf.lonestar.orgwrote:

 On Sun, Mar 07, 2010 at 01:25:54AM -0700, Ted Roby wrote:
  I'm running OpenBSD -current on a 3rd gen Macbook, and have sound for the
  most part.
  However, I noticed that the headphones jack doesn't quite work properly.
 
  If I plug in external speakers, with their own power supply, the audio
 over
  my
  built-in speakers lessens, but does not shut off. Also, zero sound comes
 out
  of the
  external speakers while this lessened sound continues out of the built-in
  speakers.
 
  Of course, I have not had this problem on other platforms. I have not
 even
  begun
  troubleshooting this. I have not tested to see if the same problem exists
 in
  -stable.
  I have not tried starting the system up with the headphones plugged in
 for
  proper
  identification of the hardware.
 
  This is being experienced on Intel HD Audio.

 for future reference, don't bother to mention hardware/driver issues if you
 aren't going to include a dmesg.

 there's also a section in the faq for what to do if you have problems
 *with audio*.


My apologies. I submit dmesg outputs every week, but that doesn't mean you
get them.
I've been through the FAQs, etc. I will dig into this, and report back if I
find a fix.





 http://www.openbsd.org/faq/

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



Re: multipath and route-to

2010-03-07 Thread Shi Jie Gung
I run multipath NAT on my openbsd like this

pf.conf
pass out from em0:network to !em0:network nat-to {tun0,tun1}

I think change nat-to to route-to can also work.

By the way, this is for routing,nating clients.
If you wish to do multipath for the machine openbsd is running on.

1. Check the default route interface, suppose tun0
2. pass out on tun0 from any to any nat-to {tun0,tun1,tun2}

These are done with OpenBSD-current 
http://www.openbsd.org/faq/current.html#20090901




- Original Message 
From: Leonardo Lombardo l.lomba...@jwizard.it
To: misc@openbsd.org
Sent: Thu, March 4, 2010 8:22:50 PM
Subject: multipath and route-to

Hi all,

is there a way to force a route in pf, with route-to, on a machine that have 
multipath routing enabled ?
I'm trying to configure a gateway with multipath routing with the possibility 
of assigning a fixed route for some clients.

I can't find a way but to disable ecmp and do all the work with pf.

Can you give me some hints ?

Thanks
Leonardo



Re: any known working configuration of OpenBGPd and CARP ?

2010-03-07 Thread Eugene Yunak
On 7 March 2010 11:22, Claudio Jeker cje...@diehard.n-r-g.com wrote:
  When your new master is promoted, it will set up a new session with
  your peers. This is probably not the sort of failover you want to see
  happening in production.
 
 
  That's why you have multiple bgpd routers with redundant pathes.

 from the network point of view, packets will come from the same MAC an
 IP address (because of CARP), so ... if BACKUP will just continue to
 maintain a session, established by MASTER, B nobody will even know, 1
 sec is nothing in terms of BGP


 You can not just continue to maintain a session, established by MASTER.
 That implies that you can migrate a running TCP session plus all the
 necessary state information of the session engine from one system to
 another.

 --
 :wq Claudio

Time for the bgpdsync (as in pfsync)? Sounds like a nice idea to me.
On the other hand, i fail to see a problem with having two separate
routers connect to your bgp peer(s), without carp on the outgoing
interface. why would one want carp them? does your peer only allow for
one session at a time from your side?

--
The best the little guy can do is what
the little guy does right



Re: any known working configuration of OpenBGPd and CARP ?

2010-03-07 Thread Илья Шипицин
2010/3/7 Eugene Yunak e.yu...@gmail.com:
 On 7 March 2010 11:22, Claudio Jeker cje...@diehard.n-r-g.com wrote:
  When your new master is promoted, it will set up a new session with
  your peers. This is probably not the sort of failover you want to see
  happening in production.
 
 
  That's why you have multiple bgpd routers with redundant pathes.

 from the network point of view, packets will come from the same MAC an
 IP address (because of CARP), so ... if BACKUP will just continue to
 maintain a session, established by MASTER,  nobody will even know, 1
 sec is nothing in terms of BGP


 You can not just continue to maintain a session, established by MASTER.
 That implies that you can migrate a running TCP session plus all the
 necessary state information of the session engine from one system to
 another.

 --
 :wq Claudio

 Time for the bgpdsync (as in pfsync)? Sounds like a nice idea to me.

yes, pfsync is great.

 On the other hand, i fail to see a problem with having two separate
 routers connect to your bgp peer(s), without carp on the outgoing
 interface. why would one want carp them? does your peer only allow for
 one session at a time from your side?

we have 3 providers, so we have to negotiate /29 network and
2-speakers for our side.

/30 and 1-speaker is much simple from that point of view.


 --
 The best the little guy can do is what
 the little guy does right



Re: nmbd does not listen

2010-03-07 Thread jean-francois
Le Dimanche 07 Mars 2010 15:18:49, Rogier Krieger a icrit :
 On Sun, Mar 7, 2010 at 14:31, jean-francois jfsimon1...@gmail.com wrote:
  Is there some basic configuration I missed to do ?

 As a quick check, did you start both smbd and nmbd components (ps ax
 is your friend here) and did you place the necessary lines in
 /etc/rc.local as per the message you received upon install? If you
 missed that, see pkg_info(1) and its -M option.

 Alternatively, review the log files for samba to see what's (not)
 happening.

 Regards,

 Rogier

Yes, daemons are loaded.

# ps -ax | grep mbd
 5434 ??  Is  0:00.01 /usr/local/libexec/smbd
28545 ??  I   0:00.00 /usr/local/libexec/smbd
19915 ??  Ss  0:00.03 /usr/local/libexec/nmbd
 2725 ??  I   0:00.11 /usr/local/libexec/smbd

In rc.local I don't have the -M option, what is this for ?

if [ -x /usr/local/libexec/smbd ]; then
echo -n ' smbd'
/usr/local/libexec/smbd
fi
if [ -x /usr/local/libexec/nmbd ]; then
echo -n ' nmbd'
/usr/local/libexec/nmbd

I have a process relative to nmbd binding to UDP 137 in the systat net page -
but it's not mentionned LISTEN or ESTABLISHED, it's just empty as if the
process was not listening. It's nmbd. This process does'nt listen actually
apprearently.

In log it says the following which seems understanble since nmbd does not
listen on UDP 137.

Mar  7 19:03:04 serveur nmbd[19915]: [2010/03/07 19:03:04, 0]
/usr/obj/ports/samba-3.0.34/samba-3.0.34/source/libsmb/nmblib.c:send_udp(793)
Mar  7 19:03:04 serveur nmbd[19915]:   Packet send failed to 10.0.1.255(138)
ERRNO=Host is down



Re: audio jacks on macbook

2010-03-07 Thread Ted Roby
On Sun, Mar 7, 2010 at 5:26 AM, Jacob Meuser jake...@sdf.lonestar.orgwrote:

 On Sun, Mar 07, 2010 at 12:10:03PM +, Jacob Meuser wrote:
  On Sun, Mar 07, 2010 at 01:25:54AM -0700, Ted Roby wrote:
   I'm running OpenBSD -current on a 3rd gen Macbook, and have sound for
 the
   most part.
   However, I noticed that the headphones jack doesn't quite work
 properly.
  
   If I plug in external speakers, with their own power supply, the audio
 over
   my
   built-in speakers lessens, but does not shut off. Also, zero sound
 comes out
   of the
   external speakers while this lessened sound continues out of the
 built-in
   speakers.
  
   Of course, I have not had this problem on other platforms. I have not
 even
   begun
   troubleshooting this. I have not tested to see if the same problem
 exists in
   -stable.
   I have not tried starting the system up with the headphones plugged in
 for
   proper
   identification of the hardware.
  
   This is being experienced on Intel HD Audio.
 
  for future reference, don't bother to mention hardware/driver issues if
 you
  aren't going to include a dmesg.

 the output of 'pcidump -x' will probably be useful for this as well.

 see src/sys/dev/pci/azalia_codec.c r1.131.


I'm getting a better idea of audio handling on OpenBSD, but my ignorance
still
extends beyond resolution of this issue. OSX identifies audio as ICH8.

Here are my outputs:

#cat dmesg_GENERIC.MP-current
r...@kramer.my.domain:/tmp/bsd-build
cpu0: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz (GenuineIntel 686-class)
2.20 GHz
cpu0:
FPU,V86,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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
real mem  = 3184046080 (3036MB)
avail mem = 3092570112 (2949MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 07/29/05, SMBIOS rev. 2.4 @ 0xe
(43 entries)
bios0: vendor Apple Inc. version MB31.88Z.008E.B02.0803051832 date
03/05/08
bios0: Apple Inc. MacBook3,1
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT SSDT
SSDT
acpi0: wakeup devices ADP1(S3) LID0(S3) ARPT(S3) GIGE(S3) UHC1(S3) UHC2(S3)
UHC3(S3) UHC4(S3) UHC5(S3) EHC1(S3) EHC2(S3) EC__(S3)
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: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz (GenuineIntel 686-class)
2.20 GHz
cpu1:
FPU,V86,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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (RP05)
acpiprt2 at acpi0: bus 3 (RP06)
acpiprt3 at acpi0: bus 4 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 15253732082930497 type 15253732284385612 oem
15253732284452179
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: LCD_
acpivout1 at acpivideo0: VGA_
acpivout2 at acpivideo0: TV__
bios0: ROM list: 0xc/0xee00!
cpu0: Enhanced SpeedStep 2195 MHz: speeds: 2200, 2000, 1800, 1600, 1400,
1200, 800 MHz
memory map conflict 0xf00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xfffa/0x3
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel GM965 Video rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 11)
drm0 at inteldrm0
Intel GM965 Video rev 0x03 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x03: apic 1 int 20
(irq 10)
uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x03: apic 1 int 16
(irq 11)
ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x03: apic 1 int 21
(irq 9)
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 82801H HD Audio rev 0x03: apic 1
int 20 (irq 10)
azalia0: RIRB time out
azalia0: codecs: Realtek ALC885
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x03: apic 1 int 16
(irq 255)
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 4 Intel 82801H PCIE rev 0x03: apic 1 int 16
(irq 255)
pci2 at ppb1 bus 2
Broadcom BCM4321 rev 0x03 at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 28 function 5 Intel 82801H PCIE rev 0x03: apic 1 int 17
(irq 255)
pci3 at ppb2 bus 3
mskc0 at pci3 dev 0 function 0 Marvell Yukon 

Re: OpenBSD 4.6 Intel Mac Mini

2010-03-07 Thread J.C. Roberts
On Sun, 7 Mar 2010 11:50:51 + John Hope hopejoh...@googlemail.com
wrote:

 P.S: In my 4.6 CD booklet it says:
 
 cd /cdrom/4.6 /packages/arch
 
 I think you've mistakenly added a space after the 4.6. Or am I missing
 something?

I just checked the official 4.6 release CD set and booklet. Yes, on page
four of the booklet, that is either a typo or printing mistake (e.g. in
the type setting).

Please realize the space available on the CD sets is highly limited, so
the number of packages available on them is fairly small. There is a
much larger selection of packages available on the ftp mirrors.

http://www.openbsd.org/ftp.html

jon



Re: nmbd does not listen

2010-03-07 Thread J.C. Roberts
On Sun, 7 Mar 2010 19:10:20 +0100 jean-francois
jfsimon1...@gmail.com wrote:

 Le Dimanche 07 Mars 2010 15:18:49, Rogier Krieger a icrit :
  On Sun, Mar 7, 2010 at 14:31, jean-francois jfsimon1...@gmail.com
  wrote:
   Is there some basic configuration I missed to do ?
 
  As a quick check, did you start both smbd and nmbd components (ps ax
  is your friend here) and did you place the necessary lines in
  /etc/rc.local as per the message you received upon install? If you
  missed that, see pkg_info(1) and its -M option.
 
  Alternatively, review the log files for samba to see what's (not)
  happening.
 
  Regards,
 
  Rogier
 
 Yes, daemons are loaded.
 
 # ps -ax | grep mbd
  5434 ??  Is  0:00.01 /usr/local/libexec/smbd
 28545 ??  I   0:00.00 /usr/local/libexec/smbd
 19915 ??  Ss  0:00.03 /usr/local/libexec/nmbd
  2725 ??  I   0:00.11 /usr/local/libexec/smbd
 
 In rc.local I don't have the -M option, what is this for ?
 

He was speaking of the package tools and how to get the install message
again if you missed it the first time. For example:

$ pkg_info -M samba

For more information:

$ man pkg_info

 if [ -x /usr/local/libexec/smbd ]; then
 echo -n ' smbd'
 /usr/local/libexec/smbd
 fi
 if [ -x /usr/local/libexec/nmbd ]; then
 echo -n ' nmbd'
 /usr/local/libexec/nmbd
 
 I have a process relative to nmbd binding to UDP 137 in the systat
 net page - but it's not mentionned LISTEN or ESTABLISHED, it's just
 empty as if the process was not listening. It's nmbd. This process
 does'nt listen actually apprearently.
 
 In log it says the following which seems understanble since nmbd does
 not listen on UDP 137.
 
 Mar  7 19:03:04 serveur nmbd[19915]: [2010/03/07 19:03:04, 0]
 /usr/obj/ports/samba-3.0.34/samba-3.0.34/source/libsmb/nmblib.c:send_udp
 (793) Mar  7 19:03:04 serveur nmbd[19915]:   Packet send failed to
 10.0.1.255(138) ERRNO=Host is down
 

Are you sure the desired processes have opened the desired ports?

$ fstat | grep -E 'USER|internet'

Are you sure your /etc/pf.conf is allowing connections?

-jon



Re: nmbd does not listen

2010-03-07 Thread Jean-Francois
Le Dimanche 07 Mars 2010 21:15:24, J.C. Roberts a icrit :
 On Sun, 7 Mar 2010 19:10:20 +0100 jean-francois

 jfsimon1...@gmail.com wrote:
  Le Dimanche 07 Mars 2010 15:18:49, Rogier Krieger a icrit :
   On Sun, Mar 7, 2010 at 14:31, jean-francois jfsimon1...@gmail.com
  
   wrote:
Is there some basic configuration I missed to do ?
  
   As a quick check, did you start both smbd and nmbd components (ps ax
   is your friend here) and did you place the necessary lines in
   /etc/rc.local as per the message you received upon install? If you
   missed that, see pkg_info(1) and its -M option.
  
   Alternatively, review the log files for samba to see what's (not)
   happening.
  
   Regards,
  
   Rogier
 
  Yes, daemons are loaded.
 
  # ps -ax | grep mbd
 
   5434 ??  Is  0:00.01 /usr/local/libexec/smbd
 
  28545 ??  I   0:00.00 /usr/local/libexec/smbd
  19915 ??  Ss  0:00.03 /usr/local/libexec/nmbd
 
   2725 ??  I   0:00.11 /usr/local/libexec/smbd
 
  In rc.local I don't have the -M option, what is this for ?

 He was speaking of the package tools and how to get the install message
 again if you missed it the first time. For example:

   $ pkg_info -M samba

 For more information:

   $ man pkg_info

  if [ -x /usr/local/libexec/smbd ]; then
 
  echo -n ' smbd'
  /usr/local/libexec/smbd
 
  fi
  if [ -x /usr/local/libexec/nmbd ]; then
 
  echo -n ' nmbd'
  /usr/local/libexec/nmbd
 
  I have a process relative to nmbd binding to UDP 137 in the systat
  net page - but it's not mentionned LISTEN or ESTABLISHED, it's just
  empty as if the process was not listening. It's nmbd. This process
  does'nt listen actually apprearently.
 
  In log it says the following which seems understanble since nmbd does
  not listen on UDP 137.
 
  Mar  7 19:03:04 serveur nmbd[19915]: [2010/03/07 19:03:04, 0]
  /usr/obj/ports/samba-3.0.34/samba-3.0.34/source/libsmb/nmblib.c:send_udp
  (793) Mar  7 19:03:04 serveur nmbd[19915]:   Packet send failed to
  10.0.1.255(138) ERRNO=Host is down

 Are you sure the desired processes have opened the desired ports?

   $ fstat | grep -E 'USER|internet'

 Are you sure your /etc/pf.conf is allowing connections?

 -jon

I am not sure but believe the problem is in smb.conf
I tried to change many parameters to make nmbd LISTEN and answer UDP/137
requests without success.

root nmbd   185817* internet dgram udp *:137
root nmbd   185818* internet dgram udp *:138
root nmbd   185819* internet dgram udp 10.0.1.1:137
root nmbd   18581   10* internet dgram udp 10.0.1.1:138
root smbd   23715   19* internet stream tcp 0xd78abc84 *:445
root smbd   23715   20* internet stream tcp 0xd78abe14 *:139
root sshd   240994* internet6 stream tcp 0xd78ab644 *:6
root sshd   240995* internet stream tcp 0xd78ab7d4 *:6

Thank you



Re: audio jacks on macbook

2010-03-07 Thread Jacob Meuser
On Sun, Mar 07, 2010 at 11:28:46AM -0700, Ted Roby wrote:
 On Sun, Mar 7, 2010 at 5:26 AM, Jacob Meuser jake...@sdf.lonestar.orgwrote:
 
  On Sun, Mar 07, 2010 at 12:10:03PM +, Jacob Meuser wrote:
   On Sun, Mar 07, 2010 at 01:25:54AM -0700, Ted Roby wrote:
I'm running OpenBSD -current on a 3rd gen Macbook, and have sound for
  the
most part.
However, I noticed that the headphones jack doesn't quite work
  properly.
   
If I plug in external speakers, with their own power supply, the audio
  over
my
built-in speakers lessens, but does not shut off. Also, zero sound
  comes out
of the
external speakers while this lessened sound continues out of the
  built-in
speakers.
   
Of course, I have not had this problem on other platforms. I have not
  even
begun
troubleshooting this. I have not tested to see if the same problem
  exists in
-stable.
I have not tried starting the system up with the headphones plugged in
  for
proper
identification of the hardware.
   
This is being experienced on Intel HD Audio.
  
   for future reference, don't bother to mention hardware/driver issues if
  you
   aren't going to include a dmesg.
 
  the output of 'pcidump -x' will probably be useful for this as well.
 
  see src/sys/dev/pci/azalia_codec.c r1.131.
 
 
 I'm getting a better idea of audio handling on OpenBSD, but my ignorance
 still
 extends beyond resolution of this issue. OSX identifies audio as ICH8.
 
 Here are my outputs:

can you apply this and tell me what happens?  if this doesn't fix it,
please include 'mixerctl -v' (the -v is important) output.

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

Index: azalia_codec.c
===
RCS file: /cvs/src/sys/dev/pci/azalia_codec.c,v
retrieving revision 1.141
diff -u -p azalia_codec.c
--- azalia_codec.c  11 Feb 2010 21:33:39 -  1.141
+++ azalia_codec.c  7 Mar 2010 22:41:35 -
@@ -132,7 +132,8 @@ azalia_codec_init_vtbl(codec_t *this)
this-subid == 0x00a3106b) {/* APPLE_MB4 */
this-qrks |= AZ_QRK_GPIO_UNMUTE_0;
}
-   if (this-subid == 0x00a0106b)
+   if (this-subid == 0x00a1106b ||
+   this-subid == 0x00a0106b)
this-qrks |= AZ_QRK_WID_OVREF50;
break;
case 0x10ec0888:



4.7 make release fails

2010-03-07 Thread Ron McDowell
Downloaded 
ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/i386/install47.iso yesterday 
afternoon and installed it on a Dell Latitude D420.  dmesg at 
http://www.fuzzwad.com/OpenBSD/dmesg.out if you want to see it.


Performed the following steps taken from 'man release' [full output  can 
be seen at http://www.fuzzwad.com/OpenBSD/typescript1 
http://www.fuzzwad.com/OpenBSD/typescript2 
http://www.fuzzwad.com/OpenBSD/typescript3 ]:


[r...@zombie(OpenBSD)] cd /usr
[r...@zombie(OpenBSD)] cvs -d anon...@anoncvs3.usa.openbsd.org:/cvs 
checkout -P src

[r...@zombie(OpenBSD)] cd /sys/arch/i386/conf
[r...@zombie(OpenBSD)] config GENERIC
[r...@zombie(OpenBSD)] cd ../compile/GENERIC/
[r...@zombie(OpenBSD)] make clean  make depend  make
[r...@zombie(OpenBSD)] make install
reboot
[r...@zombie(OpenBSD)] cd /usr/obj
[r...@zombie(OpenBSD)] rm -rf *
[r...@zombie(OpenBSD)] cd /usr/src
[r...@zombie(OpenBSD)] make obj
[r...@zombie(OpenBSD)] cd /usr/src/etc  env DESTDIR=/ make distrib-dirs
[r...@zombie(OpenBSD)] cd /usr/src
[r...@zombie(OpenBSD)] make build
reboot
[r...@zombie(OpenBSD)] export DESTDIR=/usr/dest
[r...@zombie(OpenBSD)] export RELEASEDIR=/usr/release
[r...@zombie(OpenBSD)] mkdir $DESTDIR $RELEASEDIR
[r...@zombie(OpenBSD)] cd /usr/src/etc
[r...@zombie(OpenBSD)] make release

/usr/src and /usr/obj were empty at the start of the above, I checked.

and here's the tail end of typescript3, where make release failed.

...
crunchgen -h  -k _crunched_hostname_stub hostname.lo
cc -static -o instbin instbin.o dd.lo mount_cd9660.lo df.lo mount.lo 
mount_ext2fs.lo arch.lo restore.lo stty.lo ln.lo disklabel.lo pax.lo 
ping.lo cat.lo ifconfig.lo ls.lo rtsol.lo ping6.lo sysctl.lo kbd.lo 
less.lo fdisk.lo grep.lo umount.lo mount_msdos.lo mount_udf.lo sha256.lo 
fsck.lo ccdconfig.lo mknod.lo installboot.lo route.lo ftp.lo reboot.lo 
mount_ffs.lo dhclient.lo ed.lo cp.lo gzip.lo chmod.lo fsck_ffs.lo 
init.lo newfs.lo apmd.lo rm.lo mt.lo mkdir.lo sed.lo ksh.lo bioctl.lo 
sleep.lo mv.lo apm.lo dmesg.lo hostname.lo -L/usr/dest/usr/lib 
-L/usr/src/distrib/special/libstubs/obj -lstubs -lutil -lotermcap -ll 
-lm -ldes

strip instbin
strip -R .comment instbin
dd if=/dev/zero of=/var/tmp/image.30725 bs=512 count=3800
3800+0 records in
3800+0 records out
1945600 bytes transferred in 0.029 secs (66017441 bytes/sec)
vnconfig -v -c svnd0 /var/tmp/image.30725
svnd0: 1945600 bytes on /var/tmp/image.30725
disklabel -w svnd0 rdroot
newfs -m 0 -o space -i 4096 /dev/rsvnd0a
newfs: reduced number of fragments per cylinder group from 944 to 928 to 
enlarge last cylinder group

/dev/rsvnd0a: 1.9MB in 3800 sectors of 512 bytes
5 cylinder groups of 0.45MB, 116 blocks, 128 inodes each
super-block backups (for fsck -b #) at:
32, 960, 1888, 2816, 3744,
fsck /dev/rsvnd0a
** /dev/rsvnd0a
** File system is clean; not checking
mount /dev/svnd0a /mnt
mtree -def /usr/src/distrib/i386/ramdisk_cd/../../miniroot/mtree.conf -p 
/mnt/ -u

.:  gid (0, 1000, modified)
missing: ./bin (created)
missing: ./dev (created)
missing: ./etc (created)
missing: ./etc/ppp (created)
missing: ./etc/firmware (created)
missing: ./mnt (created)
missing: ./mnt2 (created)
missing: ./sbin (created)
missing: ./tmp (created)
missing: ./usr (created)
missing: ./usr/bin (created)
missing: ./usr/mdec (created)
missing: ./usr/sbin (created)
missing: ./usr/share (created)
missing: ./usr/share/misc (created)
missing: ./usr/share/keymaps (created)
missing: ./var (created)
missing: ./var/tmp (created)
missing: ./var/db (created)
missing: ./var/run (created)
missing: ./var/empty (created)
missing: ./var/hash (created)
*** Error code 2

Stop in /usr/src/distrib/i386/ramdisk_cd (line 120 of 
/usr/src/distrib/i386/ramdisk_cd/../common/Makefile.inc).

*** Error code 1

Stop in /usr/src/distrib/i386 (line 48 of /usr/share/mk/bsd.subdir.mk).
*** Error code 1

Stop in /usr/src/distrib (line 48 of /usr/share/mk/bsd.subdir.mk).
*** Error code 1

Stop in /usr/src/etc (line 296 of Makefile).
/usr/src/etc
[r...@zombie(OpenBSD)] exit

Script done on Sun Mar  7 10:51:19 2010

--
Ron McDowell
San Antonio TX



Curso de Nominas 2010

2010-03-07 Thread Newsletter
SERVICIOS VISISN HUMANA ; 

Visisn Humana (Consultorma en Recursos Humanos) tiene el agrado de
invitarlo al Taller Integral de Nsminas 2010que se llevara a cabo en el
mes de Marzo de 2010. 

OBJETIVO: Conocer los procedimientos y disposiciones fiscales en el ISR
que se aplican a los ingresos por salario y previsisn social.

DIRIGIDO A:

Encargados y Jefes de Nsmina, Contadores, Auditores y Gerentes de
Contabilidad, Jefes de Recursos Humanos y en general a toda persona que
esti interesada en conocer la materia.

TEMARIO:

  * Ingresos Gravados para el trabajador

  * Ingresos exentos para el trabajador

  * Determinacisn de las retenciones mensuales de ISR segzn tarifa

  * Determinacisn del subsidio al empleo

  * Calculo de la previsisn social, exenta y gravada

  * Diferentes calculos de retencisn de ISR en forma diaria, semanal,
decenal, quincenal y mensual

  * Retenciones por pagos de prima dominical, vacacional, gratificacisn y
tiempo extra

  * Procedimientos opcionales de ISR por ingresos de varios meses
obtenidos en un solo mes

  * Calculo de etencisn para los trabajadores de pagos extraordinarios,
finiquitos, indemnizaciones, compensaciones, etc.

  * Obligaciones de los patones y trabajadores

GRUPOS REDUCIDOS

Incluye:

X Manual de cada curso

X Constancia emitida por agente capacitador registrado ante la STPS

X Coffee Break

GRUPO 2

MIIRCOLES 10 DE MARZO DE 2010

9:00 A 15:00 HRS.

COSTO NORMAL $1,500 MAS IVA

PROMOCISN

$800 MAS IVA

SEDE:

Visisn Humana

Dr. Barragan N: 560 Despacho 5 Col. Narvarte, Mixico D.F.

Tels. 4633 7752 (llamada local en el D.F.)

Fax: 3548 1624 (llamada local en el D.F.)

capacitac...@serviciosvisionhumana.com.mx

OTROS CURSOS:

Reclutamiento y Seleccisn de Personal

Introduccisn al IMSS e INFONAVIT

Entrevista por Competencias

Clima Laboral

Evaluacisn del Desempeqo

Curso de Pruebas Psicolsgicas

Administracisn de Recursos Humanos

Introduccisn a la Grafologma en R.H.

SERVICIOS

Reclutamiento y Seleccisn de Personal

Evaluaciones Psicolsgicas

Estudios Socioeconsmicos

EVALUACIONES POLIGRAFICAS

Maquila de Nsmina

CONTACTO

capacitac...@serviciosvisionhumana.com.mx

www.serviciosvisionhumana.com.mx

Tel: (0155) 4633 7752

Fax: (0155) 3548 1624

Recuerde que esta informacisn le puede ser ztil en un futuro. Para darse
de baja responder con el tmtulo BORRAR.



[Full-disclosure] FreeBSD and OpenBSD ftpd bug (not exploitable?)

2010-03-07 Thread Zamri Besar
Dear all,

Found this in full-disclosure mailing list.

-- Forwarded message --
From: Kingcope kco...@googlemail.com
Date: Fri, Mar 5, 2010 at 11:19 PM
Subject: [Full-disclosure] FreeBSD and OpenBSD ftpd bug (not exploitable?)
To: full-disclos...@lists.grok.org.uk, bugt...@securityfocus.com


 FreeBSD ftpd globbing bug - null pointer dereference ?

Affected FreeBSD Releases
+-+-+-+-+-+-+-+-+-+
FreeBSD 8.0, 6.3 and 4.9

Affected OpenBSD Releases
+-+-+-+-+-+-+-+-+-+
OpenBSD 4.6

Testing Environment
+-+-+-+-+-+-+-+-+-+
FreeBSD localhost.Belkin 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21
15:48:17 UTC 2009 r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
i386

Full Description
+-+-+-+-+-+-+-+-+-+
FreeBSD (tested back to 4.9-Release) (and OpenBSD 4.6) has a bug in its ftpd
when handling globbing requests.

My investigation results in this being a null pointer dereference in
popen.c.
I am not sure if this could be a heap overrun, but I don't think so.

from popen.c:

/* glob each piece */
gargv[0] = argv[0];
for (gargc = argc = 1; argv[argc]  gargc  (MAXGLOBARGS-1); argc++) {
glob_t gl;
int flags = GLOB_BRACE|GLOB_NOCHECK|GLOB_TILDE;

memset(gl, 0, sizeof(gl));
gl.gl_matchc = MAXGLOBARGS;
flags |= GLOB_LIMIT;
[1] if (glob(argv[argc], flags, NULL, gl))
gargv[gargc++] = strdup(argv[argc]);
[2] else
[3] for (pop = gl.gl_pathv; *pop  gargc  (MAXGLOBARGS-1);
 pop++)
gargv[gargc++] = strdup(*pop);
globfree(gl);
}

At [1] glob() is called. if theres a long directory (for example A x 200)
and a request like described
in how to repeat this problem is sent to the ftpd it crashes. My
assumption is because it lands in the
else clause [2], glob doesn't fail but gives back a zeroed out gl structure.
In [3] then there's no check
if pop is null and therefore *pop gets dereferenced which is a null pointer
and the ftpd instance crashes.

Could someone please shed some light into why glob doesn't fail but gives a
zeroed out structure back?

How to repeat the problem
+-+-+-+-+-+-+-+-+-+-+-+-+-+

$ ftp 192.168.2.11
Connected to 192.168.2.11.
220 localhost.Belkin FTP server (Version 6.00LS) ready.
Name (192.168.2.11:nr): kcope
331 Password required for kcope.
Password:
230 User kcope logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp mkdir
W
257
W
directory created.
ftp ls {W*/../W*/../W*/../W*/../W*/../W*/../W*/}
200 PORT command successful.
---snip---

on the other side:

---snip---
0x282261e5 in read () at read.S:3
3 RSYSCALL(read)
Current language:  auto; currently asm
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x0805622c in getline ()
(gdb) i r
eax0x0 0
ecx0x0 0
edx0x0 0
ebx0xbfbfd911 -1077946095
esp0xbfbfba70 0xbfbfba70
ebp0xbfbfcc08 0xbfbfcc08
esi0x1 1
edi0xbfbfcbf4 -1077949452
eip0x805622c 0x805622c
eflags 0x10293 66195
cs 0x33 51
ss 0x3b 59
ds 0x3b 59
es 0x3b 59
fs 0x3b 59
gs 0x1b 27
(gdb) x/10i $eip
0x805622c getline+12620: mov(%edx),%eax
0x805622e getline+12622: setle  %cl
0x8056231 getline+12625: mov%ecx,%esi
0x8056233 getline+12627: test   %eax,%eax
0x8056235 getline+12629: je 0x8056281 getline+12705
0x8056237 getline+12631: test   %cl,%cl
0x8056239 getline+12633: je 0x8056281 getline+12705
0x805623b getline+12635: mov%edx,%ebx
0x805623d getline+12637: mov0xee7c(%ebp),%edx
0x8056243 getline+12643: lea0xee90(%ebp,%edx,4),%edi
(gdb) i f
Stack level 0, frame at 0xbfbfcc10:
eip = 0x805622c in getline; saved eip 0x805047b
called by frame at 0xbfbfcc14
Arglist at 0xbfbfcc08, args:
Locals at 0xbfbfcc08, Previous frame's sp is 0xbfbfcc10
Saved registers:
  ebx at 0xbfbfcbfc, ebp at 0xbfbfcc08, esi at 0xbfbfcc00, edi at
0xbfbfcc04,
  eip at 0xbfbfcc0c
(gdb)

Testing program:

---snip---

#include glob.h
#include stdio.h

#define MAXUSRARGS  100
#define MAXGLOBARGS 1000

void do_glob() {
glob_t gl;
char **pop;

char buffer[256];
strcpy(buffer, {A*/../A*/../A*/../A*/../A*/../A*/../A*});

int flags = GLOB_BRACE|GLOB_NOCHECK|GLOB_TILDE;
memset(gl, 0, sizeof(gl));
gl.gl_matchc = MAXGLOBARGS;
flags |= GLOB_LIMIT;
if (glob(buffer, flags, NULL, gl)) {
printf(GLOB FAILED!\n);
return 0;
}
else
//   

Re: audio jacks on macbook

2010-03-07 Thread Ted Roby
On Sun, Mar 7, 2010 at 3:44 PM, Jacob Meuser jake...@sdf.lonestar.orgwrote:

 On Sun, Mar 07, 2010 at 11:28:46AM -0700, Ted Roby wrote:
  On Sun, Mar 7, 2010 at 5:26 AM, Jacob Meuser jake...@sdf.lonestar.org
 wrote:
 
   On Sun, Mar 07, 2010 at 12:10:03PM +, Jacob Meuser wrote:
On Sun, Mar 07, 2010 at 01:25:54AM -0700, Ted Roby wrote:
 I'm running OpenBSD -current on a 3rd gen Macbook, and have sound
 for
   the
 most part.
 However, I noticed that the headphones jack doesn't quite work
   properly.

 If I plug in external speakers, with their own power supply, the
 audio
   over
 my
 built-in speakers lessens, but does not shut off. Also, zero sound
   comes out
 of the
 external speakers while this lessened sound continues out of the
   built-in
 speakers.

 Of course, I have not had this problem on other platforms. I have
 not
   even
 begun
 troubleshooting this. I have not tested to see if the same problem
   exists in
 -stable.
 I have not tried starting the system up with the headphones plugged
 in
   for
 proper
 identification of the hardware.

 This is being experienced on Intel HD Audio.
   
for future reference, don't bother to mention hardware/driver issues
 if
   you
aren't going to include a dmesg.
  
   the output of 'pcidump -x' will probably be useful for this as well.
  
   see src/sys/dev/pci/azalia_codec.c r1.131.
  
  
  I'm getting a better idea of audio handling on OpenBSD, but my ignorance
  still
  extends beyond resolution of this issue. OSX identifies audio as ICH8.
 
  Here are my outputs:

 can you apply this and tell me what happens?  if this doesn't fix it,
 please include 'mixerctl -v' (the -v is important) output.

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

 Index: azalia_codec.c
 ===
 RCS file: /cvs/src/sys/dev/pci/azalia_codec.c,v
 retrieving revision 1.141
 diff -u -p azalia_codec.c
 --- azalia_codec.c  11 Feb 2010 21:33:39 -  1.141
 +++ azalia_codec.c  7 Mar 2010 22:41:35 -
 @@ -132,7 +132,8 @@ azalia_codec_init_vtbl(codec_t *this)
this-subid == 0x00a3106b) {/* APPLE_MB4 */
this-qrks |= AZ_QRK_GPIO_UNMUTE_0;
}
 -   if (this-subid == 0x00a0106b)
 +   if (this-subid == 0x00a1106b ||
 +   this-subid == 0x00a0106b)
this-qrks |= AZ_QRK_WID_OVREF50;
break;
case 0x10ec0888:


applied patch
cd /tmp/bsd-build
make clean  make depend  make
cp bsd /pbsd
boot hd0a:/pbsd

There is no difference in the way audio is handled prior to the patch.
Sound is diminished on built-in. Sound is zero on headphones.

In my own personal testing prior to your test patch I attempted:
mixerctl outputs.hp_source=mix4

My logic behind this was to attempt forced selection of stereo (channels 0
and 1)
Wrong or right, it made no difference. No permanent changes were made to my
configs.


output from mixerctl -v:

record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=125,125
record.adc-2:3_mute=off  [ off on ]
record.adc-2:3=125,125
record.adc-4:5_mute=off  [ off on ]
record.adc-4:5=125,125
record.dig-adc-0:1_sou=SPDIF-in  [ SPDIF-in ]
inputs.mix_source=line-in,beep,hp,spkr2  { mic line-in beep hp spkr2 }
inputs.mix_mic=120,120
inputs.mix_line-in=120,120
inputs.mix_beep=120,120
inputs.mix_hp=120,120
inputs.mix_spkr2=120,120
outputs.mix2=126,126
inputs.mix2_source=dac-4:5,mix  { dac-4:5 mix }
outputs.mix3=126,126
inputs.mix3_source=dac-2:3,mix  { dac-2:3 mix }
outputs.mix4=126,126
inputs.mix4_source=dac-0:1,mix  { dac-0:1 mix }
outputs.mix5=126,126
inputs.mix5_source=dac-6:7,mix  { dac-6:7 mix }
outputs.spkr_source=mix5  [ mix2 mix3 mix4 mix5 mix9 ]
outputs.spkr_mute=on  [ off on ]
outputs.spkr_dir=output  [ none output input input-vr0 input-vr50 input-vr80
input-vr100 ]
outputs.spkr_boost=off  [ off on ]
outputs.hp_source=mix3  [ mix2 mix3 mix4 mix5 mix9 ]
outputs.hp_mute=off  [ off on ]
inputs.hp=85,85
outputs.hp_dir=output  [ none output input input-vr0 input-vr50 input-vr80
input-vr100 ]
outputs.hp_boost=off  [ off on ]
outputs.spkr2_source=mix4  [ mix2 mix3 mix4 mix5 mix9 ]
outputs.spkr2_mute=off  [ off on ]
inputs.spkr2=85,85
outputs.spkr2_dir=output  [ none output input ]
outputs.spkr2_boost=off  [ off on ]
inputs.mic=85,85
outputs.mic_dir=input-vr80  [ none output input input-vr0 input-vr50
input-vr80 input-vr100 ]
outputs.line-in_source=mix2  [ mix2 mix3 mix4 mix5 mix9 ]
outputs.line-in_mute=off  [ off on ]
inputs.line-in=85,85
outputs.line-in_dir=input  [ none output input input-vr0 input-vr50
input-vr80 input-vr100 ]
outputs.line-in_boost=off  [ off on ]
outputs.SPDIF_source=dig-dac-0:1  [ dig-dac-0:1 ]
record.adc-4:5_source=mic,line-in,beep,hp,spkr2,mix  { mic line-in beep hp
spkr2 mix }

Re: OT: vmware mind control (WAS: Re: Dell PE850 CERC SATA controller)

2010-03-07 Thread Steve Shockley

On 3/6/2010 10:22 AM, Ted Roby wrote:

Oh, and it also blinks a pretty light when in use. I could be a typical Mac
user, and consider this to be the best ever!.


AND, as a Mac user, you'd have the most secure OS in the world!



Re: OT: vmware mind control (WAS: Re: Dell PE850 CERC SATA controller)

2010-03-07 Thread Ted Roby
On Sun, Mar 7, 2010 at 6:21 PM, Steve Shockley
steve.shock...@shockley.netwrote:

 On 3/6/2010 10:22 AM, Ted Roby wrote:

 Oh, and it also blinks a pretty light when in use. I could be a typical
 Mac
 user, and consider this to be the best ever!.


 AND, as a Mac user, you'd have the most secure OS in the world!



Irony: A vmware vendor sending me free schwag after fubar of their own
software release.

Alchemy: Following Scott's advice

On Fri, Mar 5, 2010 at 11:17 PM, Scott McEachern sc...@erratic.ca wrote:

Hey, it's better than a(nother) kick in the pants.  BTW: a bootable OpenBSD
with X, scrotwm, firefox, mplayer, and a bunch of other handy stuff all fits
in well under a gig on a USB stick.  Make sure to mention that in your
follow-up Thank-You note for the stick. :)



Re: 4.7 make release fails

2010-03-07 Thread J.C. Roberts
On Sun, 07 Mar 2010 17:42:18 -0600 Ron McDowell r...@fuzzwad.org wrote:

 mtree -def /usr/src/distrib/i386/ramdisk_cd/../../miniroot/mtree.conf
 -p /mnt/ -u
 .:  gid (0, 1000, modified)
snip
 missing: ./var/hash (created)
 *** Error code 2
 
 Stop in /usr/src/distrib/i386/ramdisk_cd (line 120 of 
 /usr/src/distrib/i386/ramdisk_cd/../common/Makefile.inc).
 *** Error code 1

It looks like the use of mtree(8) is wrong. It *think* should be `-U`
rather than `-u`



wd0a partion openbsd 4.6

2010-03-07 Thread roys2000
Hello,

Can someone please tell me how I can clean my root partition?

df -h 

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/wd0a  2.0G2.0G   -101M   105%/
/dev/wd0k  830G   84.7G704G11%/home
/dev/wd0d  3.9G   40.0K3.7G 0%/tmp
/dev/wd0f 49.2G888M   45.9G 2%/usr
/dev/wd0g  2.0G159M1.7G 8%/usr/X11R6
/dev/wd0h  7.9G2.2G5.2G30%/usr/local
/dev/wd0j  3.9G   70.6M3.7G 2%/usr/obj
/dev/wd0i  3.9G683M3.1G18%/usr/src
/dev/wd0e  7.9G   68.7M7.4G 1%/var

When I look in my /root partition, there is only 1mb

I feel kind of stupid to have to ask such question,
but i simply can't find an answer on the net,
and really don't want to install everything from scratch.

Regards,

Roy Stuivenberg.



Re: Dell PE850 CERC SATA controller

2010-03-07 Thread Steve Shockley

On 3/5/2010 7:42 AM, Nick Holland wrote:

And yes, this is just the tip of the iceberg with vmware quality
issues, but that one was really, really easy to understand.


So, you're saying VMware *is* enterprise-ready, then?  Like Blackberry 
Enterprise Server, CA Message Manager, or any number of products that 
appear in a quadrant.




Re: 4.7 make release fails

2010-03-07 Thread J.C. Roberts
On Sun, 7 Mar 2010 17:54:37 -0800 J.C. Roberts
list-...@designtools.org wrote:

 On Sun, 07 Mar 2010 17:42:18 -0600 Ron McDowell r...@fuzzwad.org
 wrote:
 
  mtree
  -def /usr/src/distrib/i386/ramdisk_cd/../../miniroot/mtree.conf
  -p /mnt/ -u .:  gid (0, 1000, modified)
 snip
  missing: ./var/hash (created)
  *** Error code 2
  
  Stop in /usr/src/distrib/i386/ramdisk_cd (line 120 of 
  /usr/src/distrib/i386/ramdisk_cd/../common/Makefile.inc).
  *** Error code 1
 
 It looks like the use of mtree(8) is wrong. It *think* should be `-U`
 rather than `-u`
 

Oops. The usage of mtree(8) is actually correct. I checked it for
changes all the way back to the initial import.

Are you doing anything strange with your /mnt/ directory?
stuff already mounted there?
additional sub dirs?

When it fails, what are the contents of /mnt/ ?



Re: audio jacks on macbook

2010-03-07 Thread Jacob Meuser
On Sun, Mar 07, 2010 at 05:53:32PM -0700, Ted Roby wrote:
 On Sun, Mar 7, 2010 at 3:44 PM, Jacob Meuser jake...@sdf.lonestar.orgwrote:
 
  On Sun, Mar 07, 2010 at 11:28:46AM -0700, Ted Roby wrote:
   On Sun, Mar 7, 2010 at 5:26 AM, Jacob Meuser jake...@sdf.lonestar.org
  wrote:
  
On Sun, Mar 07, 2010 at 12:10:03PM +, Jacob Meuser wrote:
 On Sun, Mar 07, 2010 at 01:25:54AM -0700, Ted Roby wrote:
  I'm running OpenBSD -current on a 3rd gen Macbook, and have sound
  for
the
  most part.
  However, I noticed that the headphones jack doesn't quite work
properly.
 
  If I plug in external speakers, with their own power supply, the
  audio
over
  my
  built-in speakers lessens, but does not shut off. Also, zero sound
comes out
  of the
  external speakers while this lessened sound continues out of the
built-in
  speakers.
 
  Of course, I have not had this problem on other platforms. I have
  not
even
  begun
  troubleshooting this. I have not tested to see if the same problem
exists in
  -stable.
  I have not tried starting the system up with the headphones plugged
  in
for
  proper
  identification of the hardware.
 
  This is being experienced on Intel HD Audio.

 for future reference, don't bother to mention hardware/driver issues
  if
you
 aren't going to include a dmesg.
   
the output of 'pcidump -x' will probably be useful for this as well.
   
see src/sys/dev/pci/azalia_codec.c r1.131.
   
   
   I'm getting a better idea of audio handling on OpenBSD, but my ignorance
   still
   extends beyond resolution of this issue. OSX identifies audio as ICH8.
  
   Here are my outputs:
 
  can you apply this and tell me what happens?  if this doesn't fix it,
  please include 'mixerctl -v' (the -v is important) output.
 
  --
  jake...@sdf.lonestar.org
  SDF Public Access UNIX System - http://sdf.lonestar.org
 
  Index: azalia_codec.c
  ===
  RCS file: /cvs/src/sys/dev/pci/azalia_codec.c,v
  retrieving revision 1.141
  diff -u -p azalia_codec.c
  --- azalia_codec.c  11 Feb 2010 21:33:39 -  1.141
  +++ azalia_codec.c  7 Mar 2010 22:41:35 -
  @@ -132,7 +132,8 @@ azalia_codec_init_vtbl(codec_t *this)
 this-subid == 0x00a3106b) {/* APPLE_MB4 */
 this-qrks |= AZ_QRK_GPIO_UNMUTE_0;
 }
  -   if (this-subid == 0x00a0106b)
  +   if (this-subid == 0x00a1106b ||
  +   this-subid == 0x00a0106b)
 this-qrks |= AZ_QRK_WID_OVREF50;
 break;
 case 0x10ec0888:
 
 
 applied patch
 cd /tmp/bsd-build
 make clean  make depend  make
 cp bsd /pbsd
 boot hd0a:/pbsd
 
 There is no difference in the way audio is handled prior to the patch.
 Sound is diminished on built-in. Sound is zero on headphones.
 
 In my own personal testing prior to your test patch I attempted:
 mixerctl outputs.hp_source=mix4
 
 My logic behind this was to attempt forced selection of stereo (channels 0
 and 1)
 Wrong or right, it made no difference. No permanent changes were made to my
 configs.

hmm.  ok.  I think I know what the problem is.  that change you made to
set outputs.hp_source=mix4 makes sense.  did you try that with the diff?

but the real bugger is that you have 'spkr' and 'spkr2'.  are there really
two sets of built-in speakers?  I guess so, as this would explain why
muting outputs.spkr only diminishes the sound.  the problem is that
spkr2 ends up where hp should be (that is, hp should get mix4, the
first stereo pair output, by default).

can you build a kernel with AZALIA_DEBUG defined (uncomment it it
azalia.h) and send me the dmesg from that?  I need to know how the
widgets are described by the codec.

 
 output from mixerctl -v:
 
 record.adc-0:1_mute=off  [ off on ]
 record.adc-0:1=125,125
 record.adc-2:3_mute=off  [ off on ]
 record.adc-2:3=125,125
 record.adc-4:5_mute=off  [ off on ]
 record.adc-4:5=125,125
 record.dig-adc-0:1_sou=SPDIF-in  [ SPDIF-in ]
 inputs.mix_source=line-in,beep,hp,spkr2  { mic line-in beep hp spkr2 }
 inputs.mix_mic=120,120
 inputs.mix_line-in=120,120
 inputs.mix_beep=120,120
 inputs.mix_hp=120,120
 inputs.mix_spkr2=120,120
 outputs.mix2=126,126
 inputs.mix2_source=dac-4:5,mix  { dac-4:5 mix }
 outputs.mix3=126,126
 inputs.mix3_source=dac-2:3,mix  { dac-2:3 mix }
 outputs.mix4=126,126
 inputs.mix4_source=dac-0:1,mix  { dac-0:1 mix }
 outputs.mix5=126,126
 inputs.mix5_source=dac-6:7,mix  { dac-6:7 mix }
 outputs.spkr_source=mix5  [ mix2 mix3 mix4 mix5 mix9 ]
 outputs.spkr_mute=on  [ off on ]
 outputs.spkr_dir=output  [ none output input input-vr0 input-vr50 input-vr80
 input-vr100 ]
 outputs.spkr_boost=off  [ off on ]
 outputs.hp_source=mix3  [ mix2 mix3 mix4 mix5 mix9 ]
 outputs.hp_mute=off  [ off on ]
 inputs.hp=85,85
 

[Fwd: Re: 4.7 make release fails]

2010-03-07 Thread Ron McDowell

Dangit, I hit reply instead of reply-all. :(

 Original Message 

J.C. Roberts wrote:

On Sun, 7 Mar 2010 17:54:37 -0800 J.C. Roberts
list-...@designtools.org wrote:

  

On Sun, 07 Mar 2010 17:42:18 -0600 Ron McDowell r...@fuzzwad.org
wrote:



mtree
-def /usr/src/distrib/i386/ramdisk_cd/../../miniroot/mtree.conf
-p /mnt/ -u .:  gid (0, 1000, modified)
  

snip


missing: ./var/hash (created)
*** Error code 2

Stop in /usr/src/distrib/i386/ramdisk_cd (line 120 of 
/usr/src/distrib/i386/ramdisk_cd/../common/Makefile.inc).

*** Error code 1
  

It looks like the use of mtree(8) is wrong. It *think* should be `-U`
rather than `-u`




Oops. The usage of mtree(8) is actually correct. I checked it for
changes all the way back to the initial import.

Are you doing anything strange with your /mnt/ directory?
stuff already mounted there?
additional sub dirs?
  


No, this is a basically clean system, just installed for the purpose of 
testing this build.  I'm having the same problem on another box at a 
colo center [where my source and obj trees are spread over different 
disks] but THIS one is right in front of me where I can kick it :) and 
everything is on one drive, and in /usr.



When it fails, what are the contents of /mnt/ ?
  


I'll have to rerun it and look.  /dev/svnd0 is mounted on /mnt at that 
point.




--
Ron McDowell
San Antonio TX



Re: wd0a partion openbsd 4.6

2010-03-07 Thread Nick Holland
roys2...@sdf.lonestar.org wrote:
 Hello,
 
 Can someone please tell me how I can clean my root partition?
 
 df -h 
 
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/wd0a  2.0G2.0G   -101M   105%/
 /dev/wd0k  830G   84.7G704G11%/home
 /dev/wd0d  3.9G   40.0K3.7G 0%/tmp
 /dev/wd0f 49.2G888M   45.9G 2%/usr
 /dev/wd0g  2.0G159M1.7G 8%/usr/X11R6
 /dev/wd0h  7.9G2.2G5.2G30%/usr/local
 /dev/wd0j  3.9G   70.6M3.7G 2%/usr/obj
 /dev/wd0i  3.9G683M3.1G18%/usr/src
 /dev/wd0e  7.9G   68.7M7.4G 1%/var
 
 When I look in my /root partition, there is only 1mb

uh... / != /root.
Or in engrish, your root partition ( / ) is not the same as the
/root directory (which is one of many things in that partition).
You don't have a /root partition according to that (nor is there
reason to have one, normally)

Start with doing something like this:

$ cd /
$ sudo du -hs *
2.0Kaltroot
6.2Mbin
6.9Mbsd
2.3Mbsd.rd
6.9Mbsd.sp
40.0K   dev
3.6Metc
1.0Ghome
2.0Kmnt
50.0K   ofwboot
14.0K   root
15.2M   sbin
2.0Kstand
0B  sys
2.0Ktmp
1.3Gusr
7.6Mvar

(that's a sparc64 machine, so the binaries in my /bin, /sbin and
similar are probably much bigger than yours)

Now, everything that isn't in your list above in df -h is ignored, as
it is in a separate partition.  The rest is stuff sitting simply in
your root partition.  Being that you have a rather large root
partition, you have something that has gone horribly wrong, not just
casual oops, put a few too many files someplace.  And this probably
also means you are doing things as root you should be doing, as
nothing in the / is normally writable by ordinary users.

Common place to do things wrong: /dev (i.e., bigoutput /dev/nul will
create a big file in the /dev directory, rather than /dev/null,
which is the bitbucket device.

Another thing that can happen is you can have data in (for example)
the /usr directory of the root device BEFORE you mount the /usr
partition at that location.  That's a bit icky to fix sometimes,
booting bsd.rd and poking around is sometimes productive.

Nick.



Re: wd0a partion openbsd 4.6

2010-03-07 Thread J.C. Roberts
On Mon, 8 Mar 2010 01:59:03 + (UTC) roys2...@sdf.lonestar.org wrote:

 Hello,
 
 Can someone please tell me how I can clean my root partition?
 
 df -h 
 
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/wd0a  2.0G2.0G   -101M   105%/
 /dev/wd0k  830G   84.7G704G11%/home
 /dev/wd0d  3.9G   40.0K3.7G 0%/tmp
 /dev/wd0f 49.2G888M   45.9G 2%/usr
 /dev/wd0g  2.0G159M1.7G 8%/usr/X11R6
 /dev/wd0h  7.9G2.2G5.2G30%/usr/local
 /dev/wd0j  3.9G   70.6M3.7G 2%/usr/obj
 /dev/wd0i  3.9G683M3.1G18%/usr/src
 /dev/wd0e  7.9G   68.7M7.4G 1%/var
 
 When I look in my /root partition, there is only 1mb
 
 I feel kind of stupid to have to ask such question,
 but i simply can't find an answer on the net,
 and really don't want to install everything from scratch.
 
 Regards,
 
 Roy Stuivenberg.
 

You were most likely not paying attention and copied something into
your root partition, or you were mistakenly running as the root user
all the time. Also, you seem to be confusing your root partition
/dev/wd0a which contains your root file system /, with the home
directory of the root user /root/

After a normal installation, you'll have the following in /

$ ls -laF /
total 41924
drwxr-xr-x  15 root  wheel  512 Mar  7 19:04 ./
drwxr-xr-x  15 root  wheel  512 Mar  7 19:04 ../
drwxr-xr-x   2 root  wheel  512 Feb  2 16:21 altroot/
drwxr-xr-x   2 root  wheel 1024 Feb  2 16:23 bin/
-rw-r--r--   1 root  wheel43604 Feb 11 10:28 boot
-rw-r--r--   1 root  wheel  7510284 Feb 11 10:20 bsd
-rw-r--r--   1 root  wheel  7529736 Feb 11 10:20 bsd.mp
-rw-r--r--   1 root  wheel  6244738 Feb 11 10:20 bsd.rd
drwxr-xr-x   3 root  wheel23552 Mar  2 07:00 dev/
drwxr-xr-x  32 root  wheel 2560 Mar  2 12:05 etc/
drwxr-xr-x   3 root  wheel  512 Feb 23 04:15 home/
drwxr-xr-x   2 root  wheel  512 Feb  2 16:21 mnt/
drwx--   3 root  wheel  512 Mar  2 12:00 root/
drwxr-xr-x   2 root  wheel 1536 Feb  2 16:23 sbin/
drwxr-xr-x   2 root  wheel  512 Feb  2 16:21 stand/
lrwxr-xr-x   1 root  wheel   11 Feb 11 10:27 sys@ - usr/src/sys
drwxrwxrwt   7 root  wheel 1024 Mar  7 15:27 tmp/
drwxr-xr-x  17 root  wheel  512 Feb  2 18:11 usr/
drwxr-xr-x  24 root  wheel  512 Feb 23 04:13 var/

I've you've copied a bunch of crap into any of the following
directories:
/
/altroot/
/bin
/dev/
/etc/
/root/
/sbin/
/stand/

then you'll run out of space on the root partition. If you don't have
a bunch of unwanted files directly under / then you'll need to figure
out under which directory you put all the crap.

Though it will take a while to run, the following command will show you
how many kilobytes is being used by each directory. This must be run as
root for it to work.

# find -x / -type d -maxdepth 1 -print0 | xargs -0 du -ksx | sort -n
2   /altroot
2   /mnt
2   /stand
16  /root
40  /dev
58  /tmp
4606/bin
7632/etc
11574   /sbin
14144   /var
44794   /
472530  /usr
25284058/home


On occasion you *need* to use the root account temporarily, but you
should *NOT* be running as the root user all of the time. The home
directory of the root user, namely /root/ should always look about
like this.

$ sudo ls -laF /root/
total 32
drwx--   3 root  wheel  512 Mar  2 12:00 ./
drwxr-xr-x  15 root  wheel  512 Mar  7 19:04 ../
-rw-r--r--   1 root  wheel   22 Nov 10 06:58 .Xdefaults
-rw-r--r--   1 root  wheel  578 Nov 10 06:58 .cshrc
-rw---   1 root  wheel  125 Nov 10 06:58 .klogin
-rw-r--r--   1 root  wheel  328 Feb 11 10:42 .login
-rw-r--r--   1 root  wheel  411 Nov 10 06:58 .profile
drwx--   2 root  wheel  512 Nov 20 13:46 .ssh/
$ 

If you've made the mistake of running as the root user, then you've
probably got a ton of crap under /root/ which has caused you to run out
of space on the root partition.

jon



Re: Dell PE850 CERC SATA controller

2010-03-07 Thread Nick Holland
Steve Shockley wrote:
 On 3/5/2010 7:42 AM, Nick Holland wrote:
 And yes, this is just the tip of the iceberg with vmware quality
 issues, but that one was really, really easy to understand.
 
 So, you're saying VMware *is* enterprise-ready, then?  Like Blackberry 
 Enterprise Server, CA Message Manager, or any number of products that 
 appear in a quadrant.

yeah, of course.
Based on the products that stick Enterprise in their names, the
computer world definition appears to be something like:
* High priced (Our product will save you X dollars a year!  We'll be
charging you 0.5*X dollars a year, but you will be way ahead!  It's
worth it!  Of course, the X saved is adjustable and impossible to
really measure, the 0.5*X is a fixed cost you /will/ be paying).
* high down time (caused by the rest of the things on this list)
* arcane knowledge required (I don't mean expert knowledge -- you
have to understand a lot of things to properly manage an e-mail
system, but most enterprise products seem to deliberately ship in
crippled mode and require FIXING to bring up to usable levels, using
all kinds of voodoo syntax *cough*Cisco*cough*)
* Insecure by design
* really cool blinky charts and graphs to show the managers who have
no f'ing clue what they mean, but they look good.
* good to put on your resume, because it is far more important to be
Enterprise grade than to do good work(*).
* many cases of Munchausen by Proxy Syndrome (i.e., administrators
selflessly giving up their weekend and evenings to come and rescue
the company from problems that never should have existed in the first
place).  I've seen cases where it isn't just the administrator's fault
-- I've seen managers who were completely unimpressed by people who's
systems Just Worked because they were did Good Work, and promote those
that Work really hard for the company by bandaging crap that should
have been properly FIXED, or whined that the systems were not
Enterprise Grade.  Yes, I watched a really good administrator get
passed over for for promotion because his reports basically said, all
is good and things Just Worked, but someone else of considerably less
skill was saying, oh, it is all junk!



(*) Good work:  So far, I don't think this phrase has been co-opted
and corrupted by any crapware maker, so let's claim and define it:
* True value price, not ability to pay.
* Return on investment not requiring hallucinogens to see.  They say
we'll save $10 million a year!  Dude, our total cash flow is only
half a million.  My favorite example: someone told the owner of a
company that 20% of the employees were file clerks, and that the total
payroll was $30M/yr.  Thus, if they could get rid of the [low paid]
file clerks, they could save $6M/yr [yes, that was the argument: file
clerks and VPs all earn the same amount of money by this logic], and a
document imaging system would pay for itself in a year!  This set a
chain of events in motion which has had..uh..interesting effects on
the company, and as far as I know, not a single file clerk has been
laid off.  The top people in the IT department are all elsewhere,
though (and no, I'd never believe this story, other than the details
were provided to me by someone I trust who got it from someone who
would know...and that I've seen evidence the owner had some serious
problems with reality).
* Minimal total down time.  Infrequent, short is ok and expected.
infrequent, long is not.  Frequent, long is right out.
* True redundancy and ability to withstand a realistic fault in an
acceptable way.
* Simple enough to avoid creating bizarre faults that can't be handled
in an acceptable way (i.e., simple systems have simple problems.
Complex systems will have things happen you can't imagine and didn't
plan for).
* Expectation that things won't go well at some point and plans in
place to deal with it when it does go bad.
* Provisions to move to a new solution when better solutions become
available and to replace existing hardware when it is old and beyond
its serviceable life (how many projects have you seen which lingered
on and on on old crap hardware because no one could figure out how to
re-implement on something modern?)
* Acceptance that no one in your company has ever done EXACTLY this
project before, and there will be learning taking place.  The only
people who have precisely done that many times are either liars or
total screwups, usually both.
* Spending a small amount of money on properly run pilot projects
before spending large amounts of money on the final project is money
well spent.

I should probably clean up and refine these lists, that was just a
quick toss-together.

yeah, I'm venting, but I'm increasingly finding this industry
embarrassing to work in.

Nick.



Re: audio jacks on macbook

2010-03-07 Thread Ted Roby
On Sun, Mar 7, 2010 at 7:31 PM, Jacob Meuser jake...@sdf.lonestar.orgwrote:


 hmm.  ok.  I think I know what the problem is.  that change you made to
 set outputs.hp_source=mix4 makes sense.  did you try that with the diff?


Tested. No change.



 but the real bugger is that you have 'spkr' and 'spkr2'.  are there really
 two sets of built-in speakers?  I guess so, as this would explain why
 muting outputs.spkr only diminishes the sound.  the problem is that
 spkr2 ends up where hp should be (that is, hp should get mix4, the
 first stereo pair output, by default).


I can only assume there are two sets. Sound from this model of Macbook
is better (louder, more range) than the sound I experienced from a G4
Powerbook. Four little cones would certainly account for that.



 can you build a kernel with AZALIA_DEBUG defined (uncomment it it
 azalia.h) and send me the dmesg from that?  I need to know how the
 widgets are described by the codec.

 The following dmesg includes prior suggested patch to azalia_codec.c
and AZALIA_DEBUG defined


OpenBSD 4.7 (bsd-build) #0: Sun Mar  7 20:50:01 MST 2010
r...@kramer.my.domain:/tmp/bsd-build
cpu0: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz (GenuineIntel 686-class)
2.20 GHz
cpu0:
FPU,V86,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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
real mem  = 3184046080 (3036MB)
avail mem = 3092561920 (2949MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 07/29/05, SMBIOS rev. 2.4 @ 0xe
(43 entries)
bios0: vendor Apple Inc. version MB31.88Z.008E.B02.0803051832 date
03/05/08
bios0: Apple Inc. MacBook3,1
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT SSDT
SSDT
acpi0: wakeup devices ADP1(S3) LID0(S3) ARPT(S3) GIGE(S3) UHC1(S3) UHC2(S3)
UHC3(S3) UHC4(S3) UHC5(S3) EHC1(S3) EHC2(S3) EC__(S3)
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: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz (GenuineIntel 686-class)
2.20 GHz
cpu1:
FPU,V86,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,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (RP05)
acpiprt2 at acpi0: bus 3 (RP06)
acpiprt3 at acpi0: bus 4 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 15253732082930497 type 15253732284385612 oem
15253732284452179
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: LCD_
acpivout1 at acpivideo0: VGA_
acpivout2 at acpivideo0: TV__
bios0: ROM list: 0xc/0xee00!
cpu0: Enhanced SpeedStep 2195 MHz: speeds: 2200, 2000, 1800, 1600, 1400,
1200, 800 MHz
memory map conflict 0xf00f8000/0x1000
memory map conflict 0xfed1c000/0x4000
memory map conflict 0xfffa/0x3
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel GM965 Video rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 11)
drm0 at inteldrm0
Intel GM965 Video rev 0x03 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x03: apic 1 int 20
(irq 10)
uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x03: apic 1 int 16
(irq 11)
ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x03: apic 1 int 21
(irq 9)
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 82801H HD Audio rev 0x03: apic 1
int 20 (irq 10)
azalia_reset: resetting
azalia_reset: reset counter = 4999
azalia_reset: reset counter = 4985
azalia0: host: High Definition Audio rev. 1.0
azalia0: host: 4 output, 4 input, and 0 bidi streams
azalia0: found a codec at #0
azalia_init_corb: CORB allocation succeeded.
azalia_init_corb: CORBWP=0; size=256
azalia_init_rirb: RIRB allocation succeeded.
azalia_init_rirb: RIRBRP=0, size=256
azalia0: codec[0] vid 0x10ec0885, subid 0x00a1106b, rev. 1.3, HDA version
1.0
azalia0: nidstart=1 #functions=1
azalia_codec_init: FTYPE result = 0x0101
azalia_codec_init: There are 37 widgets in the audio function.
encodings=1PCM
PCM formats=e056024bit,20bit,16bit,192kHz,96kHz,48kHz,44.1kHz
inamp: mute=0 size=0 steps=0 offset=0
outamp: mute=0 size=0 steps=0 offset=0
gpio: wake=0 unsol=1 gpis=0 gpos=0 

Re: Dell PE850 CERC SATA controller

2010-03-07 Thread Marco Peereboom
You forgot the pyramid!

And the Venn diagram...

On Sun, Mar 07, 2010 at 09:19:19PM -0500, Steve Shockley wrote:
 On 3/5/2010 7:42 AM, Nick Holland wrote:
 And yes, this is just the tip of the iceberg with vmware quality
 issues, but that one was really, really easy to understand.

 So, you're saying VMware *is* enterprise-ready, then?  Like Blackberry  
 Enterprise Server, CA Message Manager, or any number of products that  
 appear in a quadrant.



Re: nmbd does not listen

2010-03-07 Thread Philip Guenther
On Sun, Mar 7, 2010 at 1:37 PM, Jean-Francois jfsimon1...@gmail.com wrote:
...
 I am not sure but believe the problem is in smb.conf

...but you'll not actually show the contents of that file.  I take it
you're taking the problem to the samba mailing lists then?


 I tried to change many parameters to make nmbd LISTEN and answer UDP/137
 requests without success.

Repeat after me: UDP IS STATELESS.

Indeed, a quick examination of the output of netstat on any OpenBSD
system shows that the state column is *always* empty for UDP sockets.

As for answering requests, how do you know it isn't?  Did you trace
the process?  Did you use tcpdump to confirm that the packets were
being received?  Have you confirmed that your pf config isn't blocking
them?

It's been years since I've had to deal with samba, so I can't really
help you further...other than to point out that you failed to provide
any information about your system or the samba you're running.  What
version of OpenBSD?  Did you install the samba package from the ftp
site, or did you build the port yourself, or did you download the
source and build it yourself without using the ports framework?


Philip Guenther



Re: audio jacks on macbook

2010-03-07 Thread Jacob Meuser
On Sun, Mar 07, 2010 at 09:09:27PM -0700, Ted Roby wrote:
 On Sun, Mar 7, 2010 at 7:31 PM, Jacob Meuser jake...@sdf.lonestar.orgwrote:
 
 
  hmm.  ok.  I think I know what the problem is.  that change you made to
  set outputs.hp_source=mix4 makes sense.  did you try that with the diff?
 
 
 Tested. No change.

hmm.  why is that silent?  another GPIO needs to be unmuted perhaps?

  but the real bugger is that you have 'spkr' and 'spkr2'.  are there really
  two sets of built-in speakers?  I guess so, as this would explain why
  muting outputs.spkr only diminishes the sound.  the problem is that
  spkr2 ends up where hp should be (that is, hp should get mix4, the
  first stereo pair output, by default).
 
 
 I can only assume there are two sets. Sound from this model of Macbook
 is better (louder, more range) than the sound I experienced from a G4
 Powerbook. Four little cones would certainly account for that.
 
 
 
  can you build a kernel with AZALIA_DEBUG defined (uncomment it it
  azalia.h) and send me the dmesg from that?  I need to know how the
  widgets are described by the codec.
 
  The following dmesg includes prior suggested patch to azalia_codec.c
 and AZALIA_DEBUG defined
 

 azalia0: unknown14 wcap=40018fCONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO
 
 cap=373cVREF100,VREF80,VREFGND,VREF50,VREFHIZ,INPUT,OUTPUT,HEADPHONE,PRESENCE
 [04/00] color=unknown device=spkr conn=fixed conntype=unknown
 location=n/a chassis=internal special=none
 inamp: mute=0 size=39 steps=3 offset=0
 outamp: mute=1 size=0 steps=0 offset=0
 connections=0xc,0xd,0xe,0xf,0x26; selected=0xc

there's 1 fixed internal stereo speaker

 azalia0: green15 wcap=40018fCONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO
 
 cap=373cVREF100,VREF80,VREFGND,VREF50,VREFHIZ,INPUT,OUTPUT,HEADPHONE,PRESENCE
 [05/00] color=green device=hp conn=jack conntype=combination
 location=rear chassis=external special=none
 inamp: mute=0 size=39 steps=3 offset=0
 outamp: mute=1 size=0 steps=0 offset=0
 connections=0xc,0xd,0xe,0xf,0x26; selected=0xd

that's the headphone jack

 azalia0: unknown16 wcap=40018fCONNLIST,UNSOL,AMPOV,OUTAMP,INAMP,STEREO
 cap=3cINPUT,OUTPUT,HEADPHONE,PRESENCE
 [04/01] color=unknown device=spkr conn=fixed conntype=unknown
 location=n/a chassis=internal special=none
 inamp: mute=0 size=39 steps=3 offset=0
 outamp: mute=1 size=0 steps=0 offset=0
 connections=0xc,0xd,0xe,0xf,0x26; selected=0xe

and there's fixed internal stereo speaker #2

the following should deal better with the two speaker sets.   can you
check that plugging into the headphone jack now mutes all built-in
speakers?  please send 'mixerctl -v' output with this patch applied.

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

Index: azalia.c
===
RCS file: /cvs/src/sys/dev/pci/azalia.c,v
retrieving revision 1.166
diff -u -p azalia.c
--- azalia.c24 Dec 2009 10:12:19 -  1.166
+++ azalia.c8 Mar 2010 04:21:01 -
@@ -1660,7 +1660,8 @@ azalia_codec_init(codec_t *this)
 
this-na_dacs = this-na_dacs_d = 0;
this-na_adcs = this-na_adcs_d = 0;
-   this-speaker = this-spkr_dac = this-fhp = this-fhp_dac =
+   this-speaker = this-speaker2 = this-spkr_dac =
+   this-fhp = this-fhp_dac =
this-mic = this-mic_adc = -1;
this-nsense_pins = 0;
this-nout_jacks = 0;
@@ -1704,13 +1705,22 @@ azalia_codec_init(codec_t *this)
case CORB_CD_FIXED:
switch (w-d.pin.device) {
case CORB_CD_SPEAKER:
-   if ((this-speaker == -1) ||
-   (w-d.pin.association 
-   
this-w[this-speaker].d.pin.association)) {
+   if (this-speaker == -1) {
this-speaker = i;
+   } else if (w-d.pin.association 
+   
this-w[this-speaker].d.pin.association ||
+   (w-d.pin.association ==
+   
this-w[this-speaker].d.pin.association 
+   w-d.pin.sequence 
+   
this-w[this-speaker].d.pin.sequence)) {
+   this-speaker2 = this-speaker;
+   this-speaker = i;
+   } else {
+   this-speaker2 = i;
+   }
+   if (this-speaker == i)
this-spkr_dac =


Re: OT: vmware mind control (WAS: Re: Dell PE850 CERC SATA controller)

2010-03-07 Thread bofh
On Fri, Mar 5, 2010 at 10:05 PM, Jason Beaudoin jasonbeaud...@gmail.comwrote:


 What a crock of shite. Good to know as I am just getting into a few
 small-scale virtualizing projects.. not so sure I am at *all*
 surprised.


Is there *ANY* good virtualization software out there?  I don't care what OS
it needs to host it (preferably not windows :)) - my needs are simple (home
use):

1)  free
2)  has some level of documentation
3)  able to support solaris x86
4)  able to pass through raw (disk) devices to a guest (can you spell zfs
:))
5)  able to support other x86 OSes (openbsd, linux, windows)

I'm trying xen on debian right now, and it is very difficult to find good
documentation on what's going on.  I can't even figure out how to get it to
install from an ISO image!  Possibly, my google-fu is weak, but, *GAH*

I'm *very* tempted to go with ESXi - for the price of free, and the ability
to actually use the damn thing.  Never tried qemu before, there seems to be
a number of separate pieces that needs to be pieced together the last time I
looked at it.

Just what do you guys use?

-- 
http://www.glumbert.com/media/shift
http://www.youtube.com/watch?v=tGvHNNOLnCk
This officer's men seem to follow him merely out of idle curiosity.  --
Sandhurst officer cadet evaluation.
Securing an environment of Windows platforms from abuse - external or
internal - is akin to trying to install sprinklers in a fireworks factory
where smoking on the job is permitted.  -- Gene Spafford
learn french:  http://www.youtube.com/watch?v=30v_g83VHK4



Re: OT: vmware mind control (WAS: Re: Dell PE850 CERC SATA controller)

2010-03-07 Thread VICTOR TARABOLA CORTIANO
I'm running/I've runned OpenBSD, NetBSD, OpenWall GNU/Linux and
Slackware 9.0/12.0/13.0 on qemu.

I'm no expert, but it seems to work ok. Give it a try, it compiles
fast.

I didn't use any modules on qemu - actually, I didn't even know such
modules exist. Go ahead and try the main package.

I'm running Slacware 13.0 on my pc, using qemu to learn OpenBSD.



Re: 4.7 make release fails

2010-03-07 Thread Philip Guenther
On Sun, Mar 7, 2010 at 3:42 PM, Ron McDowell r...@fuzzwad.org wrote:
...
 mtree -def /usr/src/distrib/i386/ramdisk_cd/../../miniroot/mtree.conf -p
/mnt/ -u
 .:  gid (0, 1000, modified)

It appears that you changed root's primary/default gid from 0 to 1000.
 Don't do that.


Philip Guenther



Re: OT: vmware mind control (WAS: Re: Dell PE850 CERC SATA controller)

2010-03-07 Thread Philip Guenther
On Sun, Mar 7, 2010 at 9:11 PM, bofh goodb...@gmail.com wrote:
...
 Is there *ANY* good virtualization software out there?

Yes, there are some that support the world economy by generating
'make work' jobs, thereby distracting people from revolution.  Oh,
that's not what you meant by 'good'?

The rest of your message gave several requirements but don't actually
say *what problem you're trying to solve*, so any answers you get to
your question are just reflections of what the responder guesses you
to be aiming for.


Philip Guenther



Re: wd0a partion openbsd 4.6

2010-03-07 Thread Ron McDowell

I'd do a

find -x / -type f -exec ls -l {} \; |more

and look for big files that don't really belong there.

Common errors are something like redirecting to /devnull or /dev/nul 
instead of /dev/null or so.


If you can't find them, email me that output and I'll have a look.

--
Ron McDowell
San Antonio TX



roys2...@sdf.lonestar.org wrote:

Hello,

Can someone please tell me how I can clean my root partition?

df -h 


Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/wd0a  2.0G2.0G   -101M   105%/
/dev/wd0k  830G   84.7G704G11%/home
/dev/wd0d  3.9G   40.0K3.7G 0%/tmp
/dev/wd0f 49.2G888M   45.9G 2%/usr
/dev/wd0g  2.0G159M1.7G 8%/usr/X11R6
/dev/wd0h  7.9G2.2G5.2G30%/usr/local
/dev/wd0j  3.9G   70.6M3.7G 2%/usr/obj
/dev/wd0i  3.9G683M3.1G18%/usr/src
/dev/wd0e  7.9G   68.7M7.4G 1%/var

When I look in my /root partition, there is only 1mb

I feel kind of stupid to have to ask such question,
but i simply can't find an answer on the net,
and really don't want to install everything from scratch.

Regards,

Roy Stuivenberg.




OT: multiple web servers on OpenBSD (WAS: OT: vmware blah blah)

2010-03-07 Thread Scott McEachern

bofh wrote:

Is there *ANY* good virtualization software out there?  I don't care what OS
it needs to host it (preferably not windows :)) - my needs are simple (home
use):

  


This doesn't answer your question or help you in any way, but I thought 
I'd mention it for the list archives (with a nicely searchable subject).


A while back I was considering using some type of virtualization for 
running 5 web servers on the same box.  I ended up tossing the idea of 
virtualization for a couple of reasons:


1) I couldn't really find any VM software I liked that ran nicely on 
OpenBSD.  I was not aware of qemu at the time, so no flames please.  (I 
didn't look all that hard, apparently.)


2) The performance hit you'll inevitably take.  (Why I didn't look too 
hard.)


There are probably many (better) ways to go about this, and I'd love to 
hear them, but I ended up doing this:


- one OpenBSD box, with multiple IP address aliases
- one OpenBSD firewall, which rdr's external IPs to the appropriate web 
server IP
- 5 chrooted OpenBSD default (1.3.29) Apache's (at this time, I have no 
need for Apache 2, but hey, it's in ports.)

- 5 custom httpd.conf files for each
- 5 custom php.ini files for each (plus other related config file friends)
- 5 different httpd daemons for each (httpd0-4), just in case
- virtual aliases with Apache is not a solution because the sites use 
https/ssl

- all the sites have all the php-*, pear-*, mod_* stuff at their disposal

I did have to change /etc/rc (I know, I'm a sinner) so it did it's 
normal things, but slightly adjusted for each of the 5 servers.


I run a single instance each of chrooted MySQL and PostgreSQL servers, 
which the various sites can access by IP as their own restricted 
database users.


I considered using FreeBSD's jail functionality, but the drawbacks were 
thus:


1) for the time it would take to learn about configuring FreeBSD's 
jails, I could do the stuff above many times over.


2) I wouldn't get the OpenBSD version of httpd that has much love from 
the team (tx henning@ and others).


I'm probably forgetting details, since it's been a while since I did 
it.  The end result works just fine for *my* needs, and best of all it's 
still on my OS of choice so well within my comfort zone.  I haven't a 
clue how this would scale for a web hosting provider, but then again, 
that's not my problem. :)


Sorry for the noise.  I once searched for this a long time ago and 
didn't find anything, so for future reference, yes, it's easily doable.


PS: I'm dying for the day that relayd handles https too. :)

--

-RSM

http://www.erratic.ca



Re: audio jacks on macbook

2010-03-07 Thread Ted Roby
On Sun, Mar 7, 2010 at 9:49 PM, Jacob Meuser jake...@sdf.lonestar.orgwrote:

 On Sun, Mar 07, 2010 at 09:09:27PM -0700, Ted Roby wrote:
  On Sun, Mar 7, 2010 at 7:31 PM, Jacob Meuser jake...@sdf.lonestar.org
 wrote:
 
 
   hmm.  ok.  I think I know what the problem is.  that change you made to
   set outputs.hp_source=mix4 makes sense.  did you try that with the
 diff?
  
  
  Tested. No change.

 hmm.  why is that silent?  another GPIO needs to be unmuted perhaps?


I'll learn myself some gpioctl
I tried outputs.hp_source=mix4 again to no avail.


 the following should deal better with the two speaker sets.   can you
 check that plugging into the headphone jack now mutes all built-in
 speakers?  please send 'mixerctl -v' output with this patch applied.


Success! Internal speakers go silent. Headphones, however, remain
erroneously quiet.
This may or may not be down to user config. I will keep banging on things.


dmesg hasn't changed:
azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x03: apic 1
int 20 (irq 10)
azalia0: RIRB time out
azalia0: codecs: Realtek ALC885
audio0 at azalia0

here's some mixerctl -v right after boot:

record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=125,125
record.adc-2:3_mute=off  [ off on ]
record.adc-2:3=125,125
record.adc-4:5_mute=off  [ off on ]
record.adc-4:5=125,125
record.dig-adc-0:1_sou=SPDIF-in  [ SPDIF-in ]
inputs.mix_source=line-in,beep,hp  { mic line-in beep hp }
inputs.mix_mic=120,120
inputs.mix_line-in=120,120
inputs.mix_beep=120,120
inputs.mix_hp=120,120
outputs.mix2=126,126
inputs.mix2_source=dac-2:3,mix  { dac-2:3 mix }
outputs.mix3=126,126
inputs.mix3_source=dac-0:1,mix  { dac-0:1 mix }
outputs.mix4=126,126
inputs.mix4_source=dac-4:5,mix  { dac-4:5 mix }
outputs.mix5=126,126
inputs.mix5_source=dac-6:7,mix  { dac-6:7 mix }
outputs.spkr_source=mix4  [ mix2 mix3 mix4 mix5 mix9 ]
outputs.spkr_mute=on  [ off on ]
outputs.spkr_dir=output  [ none output input input-vr0 input-vr50 input-vr80
input-vr100 ]
outputs.spkr_boost=off  [ off on ]
outputs.hp_source=mix3  [ mix2 mix3 mix4 mix5 mix9 ]
outputs.hp_mute=off  [ off on ]
inputs.hp=85,85
outputs.hp_dir=output  [ none output input input-vr0 input-vr50 input-vr80
input-vr100 ]
outputs.hp_boost=off  [ off on ]
outputs.spkr2_source=mix4  [ mix2 mix3 mix4 mix5 mix9 ]
outputs.spkr2_mute=on  [ off on ]
outputs.spkr2_dir=output  [ none output input ]
outputs.spkr2_boost=off  [ off on ]
inputs.mic=85,85
outputs.mic_dir=input-vr80  [ none output input input-vr0 input-vr50
input-vr80 input-vr100 ]
outputs.line-in_source=mix2  [ mix2 mix3 mix4 mix5 mix9 ]
outputs.line-in_mute=off  [ off on ]
inputs.line-in=85,85
outputs.line-in_dir=input  [ none output input input-vr0 input-vr50
input-vr80 input-vr100 ]
outputs.line-in_boost=off  [ off on ]
outputs.SPDIF_source=dig-dac-0:1  [ dig-dac-0:1 ]
record.adc-4:5_source=mic,line-in,beep,hp,mix  { mic line-in beep hp mix }
record.adc-2:3_source=mic,line-in,beep,hp,mix  { mic line-in beep hp mix }
record.adc-0:1_source=mic,line-in,beep,hp,mix  { mic line-in beep hp mix }
outputs.mix9=126,126
inputs.mix9_source=dac-8:9,mix  { dac-8:9 mix }
outputs.hp_sense=plugged  [ unplugged plugged ]
outputs.line-in_sense=unplugged  [ unplugged plugged ]
outputs.spkr_muters=hp,line-in  { hp line-in }
outputs.master=126,126
outputs.master.mute=off  [ off on ]
outputs.master.slaves=mix3,mix4,spkr,hp,spkr2  { mix2 mix3 mix4 mix5 spkr hp
spkr2 mic line-in mix9 }
record.volume=125,125
record.volume.mute=off  [ off on ]
record.volume.slaves=adc-0:1,adc-2:3,adc-4:5  { adc-0:1 adc-2:3 adc-4:5 spkr
hp spkr2 mic line-in }
outputs.mode=analog  [ analog digital ]
record.mode=analog  [ analog digital ]


have another mixerctl -v with hp plugged in (outputs.hp_source=mix4):

record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=125,125
record.adc-2:3_mute=off  [ off on ]
record.adc-2:3=125,125
record.adc-4:5_mute=off  [ off on ]
record.adc-4:5=125,125
record.dig-adc-0:1_sou=SPDIF-in  [ SPDIF-in ]
inputs.mix_source=line-in,beep,hp  { mic line-in beep hp }
inputs.mix_mic=120,120
inputs.mix_line-in=120,120
inputs.mix_beep=120,120
inputs.mix_hp=120,120
outputs.mix2=126,126
inputs.mix2_source=dac-2:3,mix  { dac-2:3 mix }
outputs.mix3=126,126
inputs.mix3_source=dac-0:1,mix  { dac-0:1 mix }
outputs.mix4=126,126
inputs.mix4_source=dac-4:5,mix  { dac-4:5 mix }
outputs.mix5=126,126
inputs.mix5_source=dac-6:7,mix  { dac-6:7 mix }
outputs.spkr_source=mix4  [ mix2 mix3 mix4 mix5 mix9 ]
outputs.spkr_mute=on  [ off on ]
outputs.spkr_dir=output  [ none output input input-vr0 input-vr50 input-vr80
input-vr100 ]
outputs.spkr_boost=off  [ off on ]
outputs.hp_source=mix4  [ mix2 mix3 mix4 mix5 mix9 ]
outputs.hp_mute=off  [ off on ]
inputs.hp=85,85
outputs.hp_dir=output  [ none output input input-vr0 input-vr50 input-vr80
input-vr100 ]
outputs.hp_boost=off  [ off on ]
outputs.spkr2_source=mix4  [ mix2 mix3 mix4 mix5 mix9 ]
outputs.spkr2_mute=on  [ off on ]
outputs.spkr2_dir=output  [ none output input ]
outputs.spkr2_boost=off  [ 

Re: nmbd does not listen

2010-03-07 Thread Jean-Francois
Hello,

Le Lundi 08 Mars 2010 05:13:34, vous avez icrit :
 On Sun, Mar 7, 2010 at 1:37 PM, Jean-Francois jfsimon1...@gmail.com
 wrote: ...

  I am not sure but believe the problem is in smb.conf

 ...but you'll not actually show the contents of that file.  I take it
 you're taking the problem to the samba mailing lists then?

I used the default file, with security user and two mount points shared as
user. I then tried to change the paramters as local master and domain
master as explained in the mal and examples.
I did not ask to samba mailing list simply because I did not yet suggested it
came from smb.conf - I am not sure about this.

  I tried to change many parameters to make nmbd LISTEN and answer UDP/137
  requests without success.

 Repeat after me: UDP IS STATELESS.

Thanks for the reminder. Yet I did not know that for this reason, LISTEN
was'nt mentionned.

 Indeed, a quick examination of the output of netstat on any OpenBSD
 system shows that the state column is *always* empty for UDP sockets.

 As for answering requests, how do you know it isn't?  Did you trace
 the process?  Did you use tcpdump to confirm that the packets were
 being received?  Have you confirmed that your pf config isn't blocking
 them?

I did'nt trace the process, but tcpdump show the packets, pflog confirms that
the rule pass in pf.conf lets correctly passing the packets.

 It's been years since I've had to deal with samba, so I can't really
 help you further...other than to point out that you failed to provide
 any information about your system or the samba you're running.  What
 version of OpenBSD?  Did you install the samba package from the ftp
 site, or did you build the port yourself, or did you download the
 source and build it yourself without using the ports framework?

It's 4.6 default + samba 3 default from packages.
I did not copy all informations such as content of smb.conf and pf.conf as I
did not feel it necessary - for the first, it is close enough from default and
for the second it's perfectly patching what is needed for process to work.


 Philip Guenther



Re: OT: multiple web servers on OpenBSD (WAS: OT: vmware blah blah)

2010-03-07 Thread Scott McEachern

Scott McEachern wrote:


PS: I'm dying for the day that relayd handles https too. :)



Many thanks to Todd T. Fries for pointing out relayd does SSL/https.  
Dunno if it changed, or if I misread at the time, but I could have sworn 
it only did layer 7.  My bad.


--

-RSM

http://www.erratic.ca