Re: SSI

2012-09-27 Thread Ben Calvert
I think he means Single System Image

ben

On Sep 27, 2012, at 1:46 PM, Brian Empson brian_emp...@yahoo.com wrote:

 The SSI I'm talking about would be defined as making multiple separate
 machines appear as one single system with one single process space, a shared
 root filesystem, and shared virtual IP. Shared memory doesn't seem that
 important, except for maybe moving a process from one machine to another.
 Thanks,
 Brian
 
 
 
 
 
 From: Otto Moerbeek
 o...@drijf.net
 To: Brian Empson brian_emp...@yahoo.com 
 Cc:
 misc@openbsd.org misc@openbsd.org 
 Sent: Thursday, September 27, 2012 4:38
 PM
 Subject: Re: SSI
 
 On Thu, Sep 27, 2012 at 01:04:23PM -0700, Brian Empson
 wrote:
 
 Hello OpenBSD world,
 
 Has there been/are there plan to include
 some SSI functionality for BSD? I've looked into Linux for this and the
 problem stems from the fact that the kernel has to be patched with the code to
 perform this functionality. The linux kernel, being a separate entity from the
 rest of the system, makes it difficult to keep an SSI system up to date kernel
 wise. BSD seems to develop the kernel and utilities as one, lending itself to
 easier integration of these features, perhaps? I'd be willing to donate money
 to the project to see functionality like this implemented! Thoughts? Is there
 anyone I can speak to about funding a sub project for OpenBSD SSI? Or is it
 not even being considered?
 
 Thanks,
 Brian
 
 For starters, what is SSI? As
 many TLAs go, it can mean multiple
 things. I won't try to guess what you want.
 -Otto



Re: More sensible and consistent rc.conf.local

2012-08-29 Thread Ben Calvert
On Aug 29, 2012, at 6:57, Mikkel Bang facebookman...@gmail.com wrote:

 I'm just thinking that from a layman's perspective named_flags=
 doesn't make as much sense as named=YES if all you want to do is start
 named.

I can't tell if you're trolling or not.  Seriously, tho: is uninformed 
beginners would think it should be like X how you think highly sophisticated 
technical projects should be designed?

Just saying.

Ben
:wq



Re: getty

2012-08-05 Thread Ben Calvert
you must read really fast!  

I prefer to set mine to 300 so I don't need to pipe things to more :)

Seriously though, what are you trying to achieve with this setting? just 
because the text will scroll faster doesn't mean the machine will run faster... 
it might even slow things down (i have no evidence for this, other than that 
Theo  company tend to pick sane defaults)

Ben

On Aug 5, 2012, at 10:50 AM, Friedrich Locke friedrich.lo...@gmail.com wrote:

 I meant 19200 not 192600! I am not using serials, but the computer
 console on mymonitor.
 
 What you think ?
 
 On Sun, Aug 5, 2012 at 1:43 PM, Dan Shechter dans...@gmail.com wrote:
 From my experience with high speed rs232 on Cisco devices it doesn't
 work too well, and very dependent on distance and cable type.
 
 19200 was always safe and fast enough for _my_ use.
 
 BTW, 192600 is not a standard speed.
 
 
 HTH,
 Dan #13685 (RS/Sec/SP)
 The CCIE troubleshooting blog: http://dans-net.com
 Bring order to your Private VLAN network: http://marathon-networks.com
 
 
 On Sun, Aug 5, 2012 at 2:14 PM, Friedrich Locke
 friedrich.lo...@gmail.com wrote:
 
 I would like to change /etc/ttys to get, for instance:
 
 ttyC3   /usr/libexec/getty std.192600   vt220   on  secure
 
 instead of :
 
 ttyC3   /usr/libexec/getty std.9600   vt220   on  secure
 
 Do you think i could run into problems ?
 
 Thanks in advance.



Re: openbsd running on asus eeepc 1000H?

2012-07-11 Thread Ben Calvert
Yes, although its been a couple months since I turned it on.

As i recall, the biggest obstacle was finding a USB stick it would deign to 
boot from

Ben

:wq

On Jul 11, 2012, at 3:25 AM, giovanni qgiova...@gmail.com wrote:

 hi misc,
 
 anybody out there w/ an asus eepc 1000H model running openbsd? 
 I've found this netbook in a recycle hw store and I would be interested 
 in using it for some needs. 
 
 thanks
 
 -- 
 see ya,
 giovanni



Re: Hardware/System Question

2012-06-23 Thread Ben Calvert
Optiplexes have a reputation for spontaneously letting the magic smoke out of
their own power supply capacitors. hard to recommend unless you have a good
support deal with dell



On Jun 23, 2012, at 10:42 AM, Stuart Henderson s...@spacehopper.org wrote:

 On 2012-06-23, Peter open...@laufenberg.ch wrote:
 On 2012-06-22, MichaƂ Markowski markows...@gmail.com wrote:
 I can recommend this one:
 http://www.parkytowers.me.uk/thin/hp/t5135/index.shtml
 Other HP thin clients should be ok as well.

 They don't appear to be cheap enough to counteract the fact that
 performance/spec is probably best described as optimized for running
 as a terminal service client, looks like something a bit newer like
 an eee box is only a little more expensive (and comes with a hard
drive..)

 EeePCs and EeeBoxes have an ExpressGate/Splashtop remote BIOS. Not that
other
 BIOSes are necessarily cleaner but this one's a stinker for sure.

 I don't know specifically about eeeboxes but not all the eeepcs have this
bios.
 Maybe Optiplex fx160 then? they're cheap at the moment and also small.



Re: CVS: cvs.openbsd.org: ports

2011-07-17 Thread Ben Calvert
Or, install onto a USB drive using a machine you've already got, and
then boot the thing from the USB...

On Sunday, July 17, 2011, Nico Kadel-Garcia nka...@gmail.com wrote:
 On Sun, Jul 17, 2011 at 4:32 AM, Stuart Henderson s...@spacehopper.org
 wrote:
 On 2011/07/16 23:55, Rajneesh N. Shetty wrote:
 would obsd 4.9 B work ok on the attached specifications?

 please advise if
 anyone has tried it so far. this one is a notebook.

 they have an athlon
 version as well which is a netbook, but i'am not too sure i want to try
 that
 one for bsd yet...

 [ Stuart's well organized suggetions snipped, very helpful stuff. I
 hope someone is paying you well. ]

 Ranjeesh, is this for a machine you're considering buying? Or for a
 machine you've already got? Can you do a backup of what's on it and
 just *try* the 4.9 install?



Re: full disk encryption google chrome on OpenBSD!

2011-03-19 Thread Ben Calvert
On Mar 19, 2011, at 7:49 AM, Kevin Chadwick wrote:

 On Fri, 18 Mar 2011 16:58:59 +
 Kevin Chadwick wrote:

 I do get a fair increase in cpu usage for a disk at full speed disk with
 vnd but it's acceptable. Have people already done cpu usage and
 transfer speed comparisons to save me further tests.

 Well I was about to run a comparison test on vmware and I'm well
 confused unless it's a strange vmware bug or maybe the dynamic size disk
 mechanism. I might have to pull out a box.

Why do people do this?

when you're running more than one OS at a time, there's no way to control
what's running on the other system(s) and interfering with the process you're
testing. or what vmware subsystem is thrashing around and creating overhead.



Re: Question about filesystem

2011-02-05 Thread Ben Calvert
out of curiosity, which FFS were they studying?


On Feb 5, 2011, at 6:32 AM, Jean-Francois wrote:

 Hello,

 I just read some extracts of a paper, study from Margo Seltzer  Keith A.
 Smith from Harvard university, a comparison of LFS  FFS.

 It looks like the creation of files in FFS is rather long such as creation
of
 many small files is somewhat not very fast compared to certain other FS.
 As well, the fragmentation is less optimized on disks handling lots of
changes
 than some other FS.

 Basic questions from my side, is FFS-2 better than FFS in the sense of
dealing
 with creation of many small files, and is fragmentation less than with FFS
?

 Are other file systems with some improvement of performance compared to FFS
 available for OpenBSD ?

 In other words, I'm not critisizing at all a FFS file system which I do use
 successfully for few years now, what about optimizing a server by mounting
 some disks with different types of file systems, is this available at all ?

 Yes, I read FAQ and I seem to understand that all of it is simply not
 convenient if possible at all. But the question is worth to me in the sense,
 there are probably lot of interesting things about file systems use in
OpenBSD
 not yet documented.

 Thanks,

 Regard

 J.-F.



Re: tools for finding a type of bug?

2010-03-05 Thread Ben Calvert

Sent from my iPhone

On Mar 5, 2010, at 9:50 AM, Mark Bucciarelli mkb...@gmail.com wrote:

On Fri, Mar 5, 2010 at 12:45 PM, Ted Unangst ted.unan...@gmail.com  
wrote:
On Fri, Mar 5, 2010 at 12:32 PM, Mark Bucciarelli  
mkb...@gmail.com wrote:


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



So which would you use to find all fopen()
calls where the return value was ignored?


grep. And vim.



m




Re: rename(2) man page (was: Re: OpenSMTPd actual development and integration)

2010-01-25 Thread Ben Calvert
On Jan 25, 2010, at 11:20 AM, J.C. Roberts wrote:

 On Sun, 24 Jan 2010 23:34:08 -0500 nixlists nixmli...@gmail.com wrote:



 There is no certainty.
 There is only belief.

Tracing this discussion back to it's origins  earlier this month, I see the
problem as arising from a statement made by a Mathematician (DJB) about the
infallibility of his software when used with certain filesystems.

It is understandable for someone from a theoretical field (math) to assume
that there exists such a thing as certainty in real life... but unacceptable
in a software engineer. This kind of magical/deluded thinking is what makes
his software undesirable.

the unnamed individual (with such great faith in his mail system that he uses
gmail to correspond with us) is actually performing the valuable function of
helping me compose interview questions to weed out undesirable job applicants,
so let's try to keep this thread going as long as possible.


 -jon



Re: rename(2) man page (was: Re: OpenSMTPd actual development and integration)

2010-01-25 Thread Ben Calvert
On Jan 25, 2010, at 4:47 PM, frantisek holop wrote:

 hmm, on Mon, Jan 25, 2010 at 12:32:10PM -0800, Ben Calvert said that
 the unnamed individual (with such great faith in his mail system that he
uses
 gmail to correspond with us) is actually performing the valuable function
of
 helping me compose interview questions to weed out undesirable job
applicants,
 so let's try to keep this thread going as long as possible.

 how is his kind of certainty bad from a professional view?

because of the rest of your message, which is about the imperfection inherent
in real life

people who are looking for clear cut certainty in life are unable to deal with
the huge grey areas that come up when administering a real world system.

I encounter this attitude in management who want to be able to say we have a
firewall with features x y and z, so the network is secure, or much worse and
more typical using ${CommercialSoftwarePackage} is safe as long as you have
applied all the patches.

These attitudes, like the guy from Xen land a couple of weeks ago who thought
he would compliment the developers on misc@ by saying that OpenBSD is a
Perfectly Secure Operating System, are (imho) caused by the delusion that
it's possible to be certain about these kinds of things.

Good Developers and Administrators (again, imho) say things like we have
audited the code and eliminated all instances of ${BadIdea}. No one has
reported a remote root hole in x days or we've done these things, and are
monitoring the logs to see what kind of attack is tried next.

The specific mistake I believe mr nix was making is assuming that because he
read something in a man page (and earlier, something else in a FAQ) that
1. it's possible for the statement to be true
2. actually true.
3. and therefore, his mail server will never lose mail when it crashes.

the guy from Xen land, so said something like it's highly unlikely that there
are any bugs in the hypervisor was making the same mistake. he was assuming
that it's possible to have perfect software running on perfect hardware, and
therefore didn't listen to people telling him that neither condition was
actually being met.



 it all works on a good enough level (for various values of good),
 otherwise we wouldn't be using it at all.  nothing is perfect in life,
 it is always barely good enough, why would IT be different?

 not many people go on elaborate ontogenetical discussions what
 the manual _really_ meant by atomic operation or sql transaction.
 why don't we go down right to the subatomic level and just say
 we don't even exist?  that you are reading a message that
 perchance does not exist?

 if humankind was expected to make things perfect, it would be still
 working on the wheel..  we build systems that are acceptably reliable
 inside certain boundaries, made on certain budgets.

 that these budgets are evershrinking and quality is becoming
 a verb in past perfect without future tense, that is another
 sad story.  we are cheap.  we get what we pay for.

 -f
 --
 i'm so close to hell i can almost see vegas!


Ben



Re: rename(2) man page (was: Re: OpenSMTPd actual development and integration)

2010-01-25 Thread Ben Calvert
On Jan 25, 2010, at 4:30 PM, Brad Tilley wrote:

 On Mon, 25 Jan 2010 12:32 -0800, Ben Calvert b...@flyingwalrus.net
wrote:

 Tracing this discussion back to it's origins  earlier this month, I see
 the
 problem as arising from a statement made by a Mathematician (DJB) about
 the
 infallibility of his software when used with certain filesystems.

 It is understandable for someone from a theoretical field (math) to
 assume
 that there exists such a thing as certainty in real life... but
 unacceptable
 in a software engineer.

 Not sure it is correct to say that DJB is only theoretical. He wrote the
SHA1 code that won the Engineyard SHA1 contest. His code is 12 times faster
than OpenSSL's SHA1. DJB has also written a lot of Unix utilities, some of
which are controversial, nevertheless, he can write code.

 http://www.win.tue.nl//sha-1-challenge.html

ah - I have been unclear.

 I did not mean that Mr. Bernstein cannot write code. I'm sure his code is
better than anything I turn out.  In fact, the number of people happily
running his software is quite large, and the number of people happily running
my software is in the single digits.

I just meant that the attitude displayed in his FAQ (about guaranteeing to not
lose mail on ffs derived file systems) is indicative of the belief that it's
possible to be certain that mail won't be lost. which strikes me as
unrealistic and only possible in a theoretical universe.


 Brad


Ben



Re: rename(2) man page (was: Re: OpenSMTPd actual development and integration)

2010-01-25 Thread Ben Calvert
On Jan 25, 2010, at 6:11 PM, J.C. Roberts wrote:

 On Mon, 25 Jan 2010 12:32:10 -0800 Ben Calvert b...@flyingwalrus.net
 wrote:


 On Jan 25, 2010, at 11:20 AM, J.C. Roberts wrote:

 On Sun, 24 Jan 2010 23:34:08 -0500 nixlists nixmli...@gmail.com
 wrote:



 There is no certainty.
 There is only belief.

 Tracing this discussion back to it's origins  earlier this month, I
 see the problem as arising from a statement made by a Mathematician
 (DJB) about the infallibility of his software when used with certain
 filesystems.

 It is understandable for someone from a theoretical field (math) to
 assume that there exists such a thing as certainty in real life...
 but unacceptable in a software engineer. This kind of magical/deluded
 thinking is what makes his software undesirable.

 the unnamed individual (with such great faith in his mail system that
 he uses gmail to correspond with us) is actually performing the
 valuable function of helping me compose interview questions to weed
 out undesirable job applicants, so let's try to keep this thread
 going as long as possible.


 DJB does great work and thinks about his code. Like every great
 programmer, DJB wants his code to be as correct as possible within the
 very well known bounding limitations (hardware, compilers, operating
 systems, file system code, and so forth). Though he knows the
 limitations better than most, his writings intend to *CONVINCE* you of
 the correctness of *his* code and methods (within said bounds), so he
 doesn't elaborate on the supposedly known limitations and he
 expects you to already understand them.


You make an interesting point.  Why would it be necessary/useful to use
rhetoric to convince people about the quality of one's code?

ben



Re: rename(2) man page (was: Re: OpenSMTPd actual development and integration)

2010-01-25 Thread Ben Calvert
On Jan 25, 2010, at 8:57 PM, nixlists wrote:

 On Mon, Jan 25, 2010 at 8:26 PM, Marco Peereboom sl...@peereboom.us
wrote:
 I gave you the answer several times but I'll humor you and do it one
 more time.

 No, you didn't, see below.

yes, he did.

you're confusing i didn't hear what i wanted to hear with i didn't get an
answer

or maybe you're trolling. hard to tell at this point, honestly.

ben



Re: rename(2) man page (was: Re: OpenSMTPd actual development and integration)

2010-01-25 Thread Ben Calvert
will you believe me if i restate your question and his answer?

question:
 if i turn off the cache on the controller and the disk what is keeping rename
from ensuring that the file is never lost

answer:
 you can't actually know that the cache is shut off on the disk, so the
question is moot.

even if you don't have the cache, there's so many lines of code running on the
embedded controller inside the drive that you have no way of knowing WTF is
actually going on, so the question is moot.

repeat ad nauseam

Ben

On Jan 25, 2010, at 10:07 PM, nixlists wrote:

 Read the fscking thread again.

 On Tue, Jan 26, 2010 at 1:03 AM, Ben Calvert b...@flyingwalrus.net wrote:

 On Jan 25, 2010, at 8:57 PM, nixlists wrote:

 On Mon, Jan 25, 2010 at 8:26 PM, Marco Peereboom sl...@peereboom.us
wrote:
 I gave you the answer several times but I'll humor you and do it one
 more time.

 No, you didn't, see below.

 yes, he did.

 you're confusing i didn't hear what i wanted to hear with i didn't get
an answer

 or maybe you're trolling. hard to tell at this point, honestly.

 ben



Re: way to help: laptops and weekly

2010-01-24 Thread Ben Calvert
On Jan 24, 2010, at 12:15 PM, Ted Unangst wrote:



 Since we have to roll our own because #1, may as well fix #2.  I think
 a better solution is something that runs weekly from shutdown.  I hit
 the power button, I walk away, and the next time I use it everything
 is up to date.  It never interrupts my work or slows down startup.


I have to vote against this.

on my laptop, shutdown needs to happen _now_.  running a disk intensive
operation sporadically at shutdown when my battery is at 10% is a guaranteed
way to trash my filesystems. and leave the job half finished.

a couple of options occur to me:
1. introducing something like anacron to base ( maybe stealing features 
from
fcron )
2. setting weekly to start at boot with a high nice level
3. adding a FAQ section for workstations/laptops telling people to use
anacron



Re: rename(2) man page (was: Re: OpenSMTPd actual development and integration)

2010-01-24 Thread Ben Calvert
On Jan 24, 2010, at 5:06 PM, nixlists wrote:

 I specifically wrote above When configured as documented. No admin
 will run a mail server with write-back cache enabled on either
 controller or drives

really?  how sure of this are you?

let's poll the population of misc@

how many administrators of email servers* reading this list have turned off
write caching on

1. their raid controllers ( if applicable )
2. their disks

* because, let's be fair to the unnamed individual, he's only concerned with
the special case of serving email.

Ben



Re: OpenSMTPd actual development and integration

2010-01-14 Thread Ben Calvert
On Jan 14, 2010, at 3:11 PM, Marco Peereboom wrote:

 On Thu, Jan 14, 2010 at 05:09:03PM -0500, nixlists wrote:

 Sorry, forget I mentioned softupdates. Does it do what qmail does?
 Reliaibility-wise?

 qmail's queue, except for bounce message contents, is crashproof on
 the BSD FFS and most of its variants. 

 Nothing is crash prof.  Can you please stop making these retarded
 statements?  You are making a fool of yourself.

 If software people weren't so dangerous they'd be adorable.

I don't think this is an original sentiment.

I think he's quoting DJB's faq.

it's still an idiotic sentiment, but it does serve as a warning that his
(DJB's) software should be treated with great care.

kind of like the Xen guys the other day.

Ben



Re: mute CARP with i368/4.6 on HP ProLiant DL380 G5

2010-01-12 Thread Ben Calvert
pete -

pls send /etc/hostname.carp0 from the other machine.

On Jan 12, 2010, at 3:14 AM, Pete Vickers wrote:

 Hi,

 Whilst setting up a H/A service on a pair of RELEASE4.6/i386 (+ bind/ssl
 patches) machines, I observe that both become carp master concurrently.
 Debugging shows that the carp master does not appear to transmit carp
 announcements:


 r...@gins0 ~tcpdump -i bnx0 -n proto carp
 tcpdump: listening on bnx0, link-type EN10MB
 ^C [after 30 seconds]
 16 packets received by filter
 0 packets dropped by kernel
 r...@gins0 ~


 anyone any ideas ? (all other comms work fine over the link e.g. SSH, DNS,
 ping etc.)



 relevant config  dmesg follows:

 s/123.456/my.correct.prefix/

 r...@gins0 ~cat /etc/hostname.bnx0
 inet 123.456.250.16 255.255.255.128

 r...@gins0 ~cat /etc/hostname.carp0
 inet 123.456.250.18 255.255.255.128
 vhid 1 advskew 100 carpdev bnx0
 description *** Gi NS H/A ***

 r...@gins0 ~ifconfig bnx0
 bnx0: flags=8b43UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST
mtu
 1500
lladdr 00:1e:0b:bd:fa:12
priority: 0
groups: egress
media: Ethernet autoselect (1000baseT full-duplex)
status: active
inet 123.456.250.16 netmask 0xff80 broadcast 123.456.250.127
inet6 fe80::21e:bff:febd:fa12%bnx0 prefixlen 64 scopeid 0x3

 r...@gins0 ~ifconfig carp0
 carp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:00:5e:00:01:01
description: *** Gi NS H/A ***
priority: 0
carp: MASTER carpdev bnx0 vhid 1 advbase 1 advskew 100
groups: carp
inet 123.456.250.18 netmask 0xff80 broadcast 123.456.250.127
inet6 fe80::200:5eff:fe00:101%carp0 prefixlen 64 scopeid 0x5



 dmesg:



 r...@gins0 ~cat /var/run/dmesg.boot
 OpenBSD 4.6 (GENERIC) #0: Thu Jan 24 03:03:58 CET 2008
r...@gins0:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel(R) Xeon(R) CPU E5440 @ 2.83GHz (GenuineIntel 686-class) 2.84
 GHz
 cpu0:

FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS

H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,
 xTPR
 real mem  = 3487485952 (3325MB)
 avail mem = 3382898688 (3226MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf,
 SMBIOS rev. 2.4 @ 0xee000 (71 entries)
 bios0: vendor HP version P56 date 01/24/2008
 bios0: HP ProLiant DL380 G5
 acpi0 at bios0: rev 2
 acpi0: tables DSDT FACP SPCR MCFG HPET SPMI ERST APIC  BERT HEST
 acpi0: wakeup devices
 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 333MHz
 cpu at mainbus0: not configured
 cpu at mainbus0: not configured
 cpu at mainbus0: not configured
 ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
 acpimadt0: unknown apic structure type ff
 acpiprt0 at acpi0: bus 1 (IP2P)
 acpiprt1 at acpi0: bus 2 (IPTA)
 acpiprt2 at acpi0: bus 4 (IPTB)
 acpiprt3 at acpi0: bus 11 (IPE1)
 acpiprt4 at acpi0: bus 14 (IPE2)
 acpiprt5 at acpi0: bus 17 (IPE3)
 acpiprt6 at acpi0: bus 10 (IPE4)
 acpiprt7 at acpi0: bus 9 (PT02)
 acpiprt8 at acpi0: bus 6 (PT03)
 acpiprt9 at acpi0: bus 19 (PT04)
 acpiprt10 at acpi0: bus 23 (PT06)
 acpiprt11 at acpi0: bus 0 (PCI0)
 acpicpu0 at acpi0
 acpitz0 at acpi0: critical temperature 31 degC
 bios0: ROM list: 0xc/0xb000 0xcc400/0x4000! 0xd0400/0x1800
 0xe6000/0x2000!
 ipmi at mainbus0 not configured
 pci0 at mainbus0 bus 0: configuration mode 1 (bios)
 pchb0 at pci0 dev 0 function 0 Intel 5000P Host rev 0xb1
 ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0xb1
 pci1 at ppb0 bus 9
 ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
 pci2 at ppb1 bus 10
 ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
 pci3 at ppb2 bus 11
 ppb3 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01
 pci4 at ppb3 bus 14
 ppb4 at pci2 dev 2 function 0 Intel 6321ESB PCIE rev 0x01
 pci5 at ppb4 bus 17
 ppb5 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01
 pci6 at ppb5 bus 18
 ppb6 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0xb1
 pci7 at ppb6 bus 6
 ciss0 at pci7 dev 0 function 0 Hewlett-Packard Smart Array rev 0x03: apic
8
 int 18 (irq 10)
 ciss0: 1 LD, HW rev 3, FW 4.12/4.12, 64bit fifo
 scsibus0 at ciss0: 1 targets
 sd0 at scsibus0 targ 0 lun 0: HP, LOGICAL VOLUME, 4.12 SCSI3 0/direct
fixed
 sd0: 139979MB, 512 bytes/sec, 286677120 sec total
 ppb7 at pci0 dev 4 function 0 Intel 5000 PCIE x8 rev 0xb1
 pci8 at ppb7 bus 19
 ppb8 at pci0 dev 5 function 0 Intel 5000 PCIE rev 0xb1
 pci9 at ppb8 bus 22
 ppb9 at pci0 dev 6 function 0 Intel 5000 PCIE x8 rev 0xb1
 pci10 at ppb9 bus 23
 ppb10 at pci0 dev 7 function 0 Intel 5000 PCIE rev 0xb1
 pci11 at ppb10 bus 26
 pchb1 at pci0 dev 16 function 0 Intel 5000 Error Reporting rev 0xb1
 pchb2 at pci0 dev 16 function 1 Intel 5000 Error Reporting rev 0xb1
 pchb3 at pci0 dev 16 function 2 Intel 5000 

Re: Handling HTTP virtual hosts with relayd

2009-12-18 Thread Ben Calvert
This is what squid is for.

On Dec 18, 2009, at 10:01 AM, James Stocks wrote:

 Hello everyone,

 I'm presently using Apache to reverse-proxy HTTP connections through to our
 Microsoft IIS servers so that we don't have to expose IIS directly to
Internet
 hosts.  Recently, I've been testing relayd in this role.

 Apache can reverse-proxy requests for several internal HTTP servers through
a
 single internet-routable IP address by using virtual hosts.  I've not yet
 discovered a way of getting relayd to forward the request to a different
host
 depending on the content of the 'Host:' header.  Does relayd have this
 capability?  If so how do I do it?

 Regards,
 James.



Re: Sun X4100 M2 with amd64.mp kernel reboot constantly

2009-12-06 Thread Ben Calvert
On Dec 5, 2009, at 7:02 PM, Daniel Ouellet wrote:

 This is an old issue and not new, but I tried the latest snapshot in case
the situation have changed to no avail.

 I git a little bit more details however after letting it reboot constantly
may be 40 times or so.

 Then it jam and was able to get a screen shut of the remote console before
forcing it to reboot and here is what i got. Hopefully it will be more useful
and yes I can't do ps, or ddb as it is totally jam, or simply reboot
constantly, always at the same place.

I have a similar issue with an older tyan s2891, which i attributed to the
profusion of nVidia labels on the components.

in case it's helpful, here's the output when i boot boot.mp

boot boot /bsd.mp
booting hd0a:/bsd.mp:
\|/-\5125064|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/
-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|
/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-
\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/
-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-
\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|
/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\
|/-\|/-\|/-\|+1445357/-\|/-\|/-\|/-\|/-\|/
-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|
/-\|/-\|/-\|/-\|/-\|/-\|/-\|/+923120-\|/-\
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/
-\|/-\|/-\|/+0+613664
[80+466032-\|/-\|/-\|/-\|/-\|/-\|/-\|/-+297158\
|/-\|/-\|/-\|/-\|]=0xc775a8
entry point at 0x1001e0 [7205c766, 3404, 24448b12, 64a0a304]
[ using 764040 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2009 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 4.6-current (GENERIC.MP) #14: Fri Dec  4 22:51:46 MST 2009
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3487629312 (3326MB)
avail mem = 3387949056 (3231MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.33 @ 0x7ffef000 (34 entries)
bios0: vendor Phoenix Technologies Ltd. version 2003Q2 date 08/13/2007
bios0: TYAN Computer Corp S2891
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP SPCR MCFG APIC BOOT SSDT
acpi0: wakeup devices PCI0(S5) PS2M(S4) PS2K(S4) USB0(S1) USB2(S1) MAC0(S5)
P2P0(S5) G0PA(S5) G0PB(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Opteron(tm) Processor 254, 2813.29 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: AMD erratum 89 present, BIOS upgrade may be required
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Opteron(tm) Processor 254, 2812.97 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: AMD erratum 89 present, BIOS upgrade may be required
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 24 pins
ioapic1 at mainbus0: apid 3 pa 0xdf20, version 11, 4 pins
ioapic2 at mainbus0: apid 4 pa 0xdf201000, version 11, 4 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P2P0)
acpiprt2 at acpi0: bus 2 (XVR0)
acpiprt3 at acpi0: bus 255 (XVR1)
acpiprt4 at acpi0: bus 255 (XVR2)
acpiprt5 at acpi0: bus 255 (XVR3)
acpiprt6 at acpi0: bus 9 (G0PA)
acpiprt7 at acpi0: bus 10 (G0PB)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpibtn0 at acpi0: PWRB
ipmi at mainbus0 not configured
cpu0: Cool'n'Quiet K8 2812 MHz: speeds: 2800 2600 2400 2200 2000 1800 1000
MHz
pci0 at mainbus0 bus 0
NVIDIA nForce4 DDR rev 0xa3 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 NVIDIA nForce4 ISA rev 0xa3
nviic0 at pci0 dev 1 function 1 NVIDIA nForce4 SMBus rev 0xa2
iic0 at nviic0
spdmem0 at iic0 addr 0x50: 1GB DDR SDRAM registered ECC PC2700CL2.5
spdmem1 at iic0 addr 0x52: 1GB DDR SDRAM registered ECC PC2700CL2.5
spdmem2 at iic0 addr 0x54: 1GB DDR SDRAM registered ECC PC2700CL2.5
spdmem3 at 

Re: xterm and home-dir with automounter

2009-01-13 Thread Ben Calvert

an interesting discussion of this very problem:

http://plan9.bell-labs.com/sys/doc/lexnames.html

On Jan 12, 2009, at 2:44 PM, Philip Guenther wrote:


On Mon, Jan 12, 2009 at 2:35 PM, Rudi Ludwig rud...@gmx.de wrote:

On Monday 12 January 2009 20:38:03 Philip Guenther wrote:

When the shell is started by konsole, or xterm, or login, it's
working directory has already been set to $HOME.  At that point, it
can only see the physical path (sans symlinks).  If you want it to
see the logical path, then you need to have it do a chdir  
itself...as

you figured out when you do 'cd' first thing.


So the shell starts whereever it is put to by xterm, konsole, etc.
and does not itself evaluate $HOME at start-up?


What do you mean by 'evaluate'?  It doesn't chdir there itself.  It
knows HOME=/home/rudi, and it knows that its current working directory
is /usr/home/rudi, but that's it.



So, just put some logic into your .profile to cd $HOME if the
physical directory is that of $HOME.

case $PWD in
 $(cd $HOME  pwd -P) ) cd $HOME;;
esac

I have put that at the end of my .profile and it works for remote  
login

(ssh).
But the KDE konsole and xterm  still resist and display the physical
location at start-up instead of $HOME (~).


When that happens, what do the following output?
 echo $PWD
 (cd $HOME  pwd -P)
 echo $HOME


Philip Guenther




Re: make update stores twice the packages

2008-08-28 Thread Ben Calvert

On Aug 28, 2008, at 1:36 PM, Stuart Henderson wrote:



I don't think they are links, they are real copies. I am checking  
this

with konqueror as su and it show clearly when the file is a link
or a real file.


That's not a good way to check. Try ls(1).



It's likely that he doesn't know the difference between a soft and  
hard link.


mac - you need a basic unix book.  for now, read man ln



Re: 4.3 Bootloader waiting for keypress before loading kernel

2008-08-14 Thread Ben Calvert

On Aug 14, 2008, at 4:17 PM, Ryan Smith wrote:


My root partition is 10GB in size, following the recommendation of
openbsd101.com.  I have had no other problems with other operating  
systems,
but perhaps I was just getting lucky with the bootloader being  
loaded in the
appropriate region for the BIOS.  I will try reinstalling with a  
smaller

root.


what is openbsd101.com? nevermind, don't answer.

you might consider reading the install documentation supplied with the  
product you're installing though.


ftp://ftp.openbsd.org/OpenBSD/4.3/i386/INSTALL.i386

Ben



Re: 4.3 Bootloader waiting for keypress before loading kernel

2008-08-14 Thread Ben Calvert

On Aug 14, 2008, at 8:29 PM, Ryan Smith wrote:


There was nothing lacking in the official documentation.   
Additionally, the
supplemental documentation actually didn't provide very much; most  
of the
OpenBSD stuff I have found is just summarized documentation or  
verbatim

manpages.  But if we followed the logic of if it's not the official
documentation, it's no good, there would be no reason for having  
mailing

lists or fora either.


This is not what people are saying to you.  people are trying point  
out that your strategy:


1. read the official docs
2. read some other docs
3. pick and choose which to follow
4. come to the official support forum and ask for help ( instead of  
asking the guy who's advice you followed )


is selfish.

you're asking people to volunteer to help you after ignoring the  
resources that they have ( again, voluntarily and for free ) provided  
for you.




Best,
Ryan


Ben



Re: CVS: cvs.openbsd.org: src

2008-07-10 Thread Ben Calvert

On Jun 14, 2008, at 1:47 PM, Damien Miller wrote:


Just to reinforce the experimental thing:

There are some big softraid changes coming that will alter the on-disk
metadata format (for all softraid disciplines, not just crypto).  
Volumes

created with the current tools will be unreadable afterwards. In the
meantime, we appreciate test reports but please don't complain about
incompatibility after cvs up.

We will announce when the format has stabilised.


 I don't see a lot of changes to softraid.c since June, and am not  
expert enough to tell if these would be affecting the on-disk format.


I also don't see anything in current.html about softtraid.

should i just hold off updating my machines?  should I update weekly  
with lots of dump  restore?


I'm uncomfortable getting too far behind the curve.

thanks,

Ben




-d




Re: xbase43 and friends, no MD5 checksums?

2008-06-20 Thread Ben Calvert
you're right - i'm having a hard time digging up the relevant citation  
myself.


If i remember correctly, the explanation usually given is that the x*  
distribution sets  are built separately from the other packages.  
( different times, different machines ).  it would be complicated to  
maintain a single checksum file under these circumstances.


As to why there aren't 2 different checksum files, one for the regular  
sets and one for the xenocara sets, I can only speculate that none of  
the developers feels a pressing need to implement such a system.


Ben

On Jun 19, 2008, at 11:57 PM, Stephen Day wrote:


On 19/6/2008, Ben Calvert [EMAIL PROTECTED] wrote:



On Jun 19, 2008, at 12:24 PM, Stephen Day wrote:


Hello

The MD5's for the X packages seem to be missing from the  
distribution

directories for 4.3 and snapshots.



google is your friend


Ben,

Google didn't show more than the statement that these are missing,  
which

I already know.

What I'm looking for is why they are missing and whether they could be
reinstated.


Stephen




Re: possible setup bug -- chose of default a partition can be wrong like if it is swap

2008-05-18 Thread Ben Calvert

On May 18, 2008, at 8:54 AM, Jay wrote:

you are making a lot of bad assumptions.

If I have my a slice/partition is a small swap partition and my  
c slice

is a large BSD partition, setup should install to c.


you should not use c for anything.  it's the whole disk.



Or at least maybe prompt. Usually I want fewer prompts/questions,  
but..


I ran into this problem because Solaris setup encourages the swap
partition/slice to be first.


solaris does this because it expands the installer into the swap  
partition and runs it from there.




Luckily a filled up during setup and not later, so damage/pain was
minimized.


you're assuming that openbsd partitions need to be on the disk in  
alphabetical order.  this is false


I realize the defaults in the install and the directions have you  
create the
BSD slice/partition as a so if you ignore Solaris you tend to get  
it right.


yes.  if you don't assume that openbsd will work like other OS and  
actually read the docs you tend to be better off



Any chance ever of a swap file instead of a swap partition/slice?


yes.  i leave the googling up to you.


I'm sure this isn't a good bug report, and debatable, so misc...


Im _guessing_ that what you're trying to achieve ( unadvisedly ) is  
to have a tiny swap partition at the beginning of the disk and a  
single partition for the OS.  I'm not going to bother preaching at you  
about why this is bad, if you were interested in why you'd have  
already taken the time to find out.


you can do this by creating the b (swap) partition first during the  
install and then creating the a partition _physically_after_it_ on the  
disk.


Luckily, you don't have to do it this way.  you can simply follow the  
instructions in the INSTALL.platform file and end up with a sane  
partitioning scheme.


- Jay



Ben



SRC in PKG_PATH ( was Re: updating ports after OS update )

2008-05-16 Thread Ben Calvert

On May 16, 2008, at 12:34 AM, Marc Espie wrote:


Or even add a SRC: element to your PKG_PATH as a fallback.


Marc - where is this documented?  i can't find it in pkg_add, package,  
or friends.


Ben



Re: Debian libssl security (OpenSSH safe?)

2008-05-14 Thread Ben Calvert

On May 14, 2008, at 5:22 PM, Darrin Chandler wrote:


On Thu, May 15, 2008 at 01:45:51AM +0200, raven wrote:


A decent analysis can be found here... just to understand what can  
do a

comment /* */  :)
http://blog.drinsama.de/erich/en/linux/2008051401-consequences-of-sslssh-weakness.html


Are you sure that's a decent analysis? If you have a non-debian system
with the full number of keys available, what are the chances that  
you've
landed on one of the 32767 keys? Not very likely. So that analysis  
seems

alarmist and sensational to me.


and it only applies if you're using keys _without_passphrase_.  on  
your root account.


do people actually allow remote root access ?  for more than 5 minutes  
after install?




whither pow() ?

2008-05-03 Thread Ben Calvert
I'm sure i'm doing something really basic and stupid here, but i can't  
seem to use pow() from math.h ???


ben:1$ cat test_pow.c
#include math.h

int main()
{
  double temp;

  temp = pow( 2.0, 3.0 );
  return 1;
}
ben:2$ cc test_pow.c
/tmp//ccy24322.o(.text+0x31): In function `main':
: undefined reference to `pow'
collect2: ld returned 1 exit status
ben:3$

this is an i386, running the snapshot from earlier today.

OpenBSD 4.3-current (GENERIC) #853: Fri May  2 04:37:23 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz (GenuineIntel 686- 
class) 2 GHz
cpu0:  
FPU,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,CMOV,MMX,FXSR,SSE,SSE2,SS,SSE3

real mem  = 536440832 (511MB)
avail mem = 510615552 (486MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/27/07, BIOS32 rev. 0 @  
0xf9000, SMBIOS rev. 2.3 @ 0xff01f (19 entries)
bios0: vendor Parallels Software International Inc. version 3.0 date  
16/01/2008

bios0: Parallels Software International Inc. Parallels Virtual Platform
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf2000/144 (7 entries)
pcibios0: PCI Exclusive IRQs: 3 4 5 7 9 10 11 12
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801BA LPC rev  
0x00)

pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0xa000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
vga1 at pci0 dev 2 function 0 unknown vendor 0x1ab8 product 0x1131 rev  
0x00

wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
unknown vendor 0x1ab8 product 0x1112 (class bridge subclass  
miscellaneous, rev 0x00) at pci0 dev 3 function 0 not configured
ne3 at pci0 dev 5 function 0 Realtek 8029 rev 0x00: irq 10, address  
00:1c:42:2d:c0:a9

pchb0 at pci0 dev 30 function 0 Intel 82815 Host rev 0x02
ichpcib0 at pci0 dev 31 function 0 Intel 82801BA LPC rev 0x08: PM  
disabled
pciide0 at pci0 dev 31 function 1 Intel 82801BA IDE rev 0x00: DMA,  
channel 0 wired to compatibility, channel 1 wired to compatibility

wd0 at pciide0 channel 0 drive 0: Virtual HDD [0]
wd0: 128-sector PIO, LBA48, 8000MB, 16384032 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: PRL, Virtual CD-ROM, R103 ATAPI 5/ 
cdrom removable

wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 1
pciide0: channel 1 ignored (disabled)
auich0 at pci0 dev 31 function 5 Intel 82801BA AC97 rev 0x02: irq 9,  
ICH2 AC97

ac97: codec id 0x414c4710 (Avance Logic ALC200)
ac97: codec features 18 bit DAC, 18 bit ADC, Realtek 3D
audio0 at auich0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
sb0 at isa0 port 0x220/24 irq 5 drq 1: dsp v4.05
midi0 at sb0: SB MIDI UART
audio1 at sb0
opl at sb0 not configured
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask e9dd netmask eddd ttymask fddf
mtrr: CPU supports MTRRs but not enabled
softraid0 at root
root on wd0a swap on wd0b dump on wd0b



Re: whither pow() ?

2008-05-03 Thread Ben Calvert

On May 3, 2008, at 12:56 AM, Richard Toohey wrote:


On 3/05/2008, at 6:21 PM, Richard Toohey wrote:



$ cc -lm test_pow.c
$

ok, this fixes it.  i'll attempt to understand it when more awake.   
Thanks!


Ben



suggested fix for mkfifo.1

2008-04-16 Thread Ben Calvert

en:1$ cd /usr/src/sbin/mknod
ben:2$ cvs diff mkfifo.1
Index: mkfifo.1
===
RCS file: /cvs/src/sbin/mknod/mkfifo.1,v
retrieving revision 1.9
diff -r1.9 mkfifo.1
57c57
 Set the file permission bits of newly created directories to
---
 Set the file permission bits of the newly created fifo to



Re: suggested fix for mkfifo.1

2008-04-16 Thread Ben Calvert

On Apr 16, 2008, at 1:55 PM, Jason McIntyre wrote:


On Wed, Apr 16, 2008 at 01:18:09PM -0700, Ben Calvert wrote:

en:1$ cd /usr/src/sbin/mknod
ben:2$ cvs diff mkfifo.1
Index: mkfifo.1
===
RCS file: /cvs/src/sbin/mknod/mkfifo.1,v
retrieving revision 1.9
diff -r1.9 mkfifo.1
57c57
 Set the file permission bits of newly created directories to
---

Set the file permission bits of the newly created fifo to


fixed, thanks.
(diff -u next time, please ;)


my bad.  will do.




jmc




Re: suggested change to fgetln manpage example code

2008-04-07 Thread Ben Calvert

On Apr 7, 2008, at 2:20 PM, Tobias Ulmer wrote:

On Mon, Apr 07, 2008 at 02:01:14PM -0700, [EMAIL PROTECTED] wrote:

Can we really assume that sizeof(char) is 1 ?


RCS file: /cvs/src/lib/libc/stdio/fgetln.3,v
retrieving revision 1.15
diff -r1.15 fgetln.3
137c137
   if ((lbuf = malloc(len + 1)) == NULL)
---
 if ((lbuf = malloc( sizeof(char) * (len +  
1))) ==

NULL)
[EMAIL PROTECTED]:/usr/src/lib/libc/stdio:633$




Yes.

6.5.3.4 The sizeof operator
[...]
When applied to an operand that has type char, unsigned char, or  
signed

char, (or a qualified version thereof) the result is 1. [...]


I bow before your greater knowledge.

Is this the ansi standard you're quoting from?  Is it available on- 
line somewhere so I can spare the list further stupid questions?


Ben



Re: running mail server at home

2008-02-07 Thread Ben Calvert

On Feb 7, 2008, at 7:38 AM, L. V. Lammert wrote:


On Thu, 7 Feb 2008, Douglas A. Tutty wrote:


On Thu, Feb 07, 2008 at 02:51:31AM -0800, Chris wrote:
I have a P3 box with 120GB HDD that's doing web, ssh and samba at  
the moment. I
am planning setup sendmail, spamd, mimedefang, clamd and spam- 
assassin

on this box along with web, ssh and samba.

I was wondering if anyone has any experience with running a mail
server at home.


In reality, you cannot run your own mail server at home. This would
require:

1) DNS resolution for your domain name


check - mine runs dns too



2) Appropriate MX records


check



3) Valid REVERSE DNS for your IP


and check - piece of cake with a business class dsl package.




#3 is usually the big factor for most ISPS, without it, you will not  
be

able to send email to any 'sane' mail server.

Lee


 Leland V. Lammert[EMAIL PROTECTED]
   Chief Scientist Omnitec Corporation
Network/Internet Consultants   www.omnitec.net




Ben Calvert
Chief walrus
Flying Walrus Communications, inc



Re: OpenBSD 4.2 firewall freezing, even after patch 004 and 005

2008-01-22 Thread Ben Calvert

On Jan 21, 2008, at 10:58 PM, Robert Carr wrote:


http://openbsd.org/faq/faq5.html#Why

excerpt
Some reasons why you should not build a custom kernel:

 You will not get any support from developers.
 You will be expected to reproduce any problem with a GENERIC kernel
before developers take any problem report seriously.
/excerpt





Yes, I get that.


apparently not




[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/NAVARONE-4.2


http://openbsd.org/faq/faq5.html#Why

--knitti




ben



Re: Problems with -current in CVS?

2008-01-21 Thread Ben Calvert

On Jan 21, 2008, at 10:30 PM, Colby W. wrote:


I tried two different AnonCVS repositories (one in the USA and one in
CAN) tonight but ran into the same problem when I tried rebuilding the
kernel to bring my recent -release install up to -current. Per the
instructions [1]:

[1] http://www.openbsd.org/faq/faq5.html




wrong instructions.  the correct instructions are at:

http://openbsd.org/faq/current.html

You should ALWAYS use a snapshot as the starting point for running - 
current. Upgrading by compiling your own source code is not supported.


Ben



Re: shutdown problem

2007-12-18 Thread Ben Calvert

On Dec 18, 2007, at 5:01 AM, comfooc wrote:


Hello,
I have an old laptop IBM 240X and problem with it and OpenBSD.


what version of OpenBSD?  pls attach output of dmesg.



After command 'shutdown -hp now' system powers down disk, LCD screen
and cooling. But all led lights are glowing.


please also attach a copy of your /etc/rc.shutdown file


How to determine what is
wrong and how to repair it...

Cheers




Re: Open Object Rexx compilation fails/Xalan

2007-12-18 Thread Ben Calvert

On Dec 18, 2007, at 12:20 PM, PrzemysEaw PaweEczyk wrote:


...

All you need to do is to run configure --prefix=/usr/local/ooRexx
and then at one moment you'll be greeted with messages of some sort
saying why it won't go further with compilation.


compiles fine here( other than warnings about no newlines at the ends
of the files, strcpy, and etc. ).

you are using gnu make?

and, of course, you're using the same platform and version of openbsd
that i am, right?


You do not need to
create pkgsrc or a package.


pkgsrc is from netbsd, btw.  while they reportedly have ported it to
openbsd, this is not something maintained by the openbsd community.


I went to OpenBSD pkgsrc site to submit the app but there is no such
page (I could not find it).


see above.  this is like looking for rpms for debian.


I'd appreciate any help.


I'm sure that there are plenty of people on this list who are more
qualified than I am to help you with this... if you ask nicely or
offer proper remuneration.



--
PrzemysEaw PaweEczyk (P2O2) - [EMAIL PROTECTED]
WWW: http://pp.kv.net.pl/ Forum: http://www.p2o2.fora.pl/


Ben



Re: Open Object Rexx compilation fails/Xalan

2007-12-18 Thread Ben Calvert

On Dec 18, 2007, at 5:06 PM, PrzemysEaw PaweEczyk wrote:


On Tue, 18 Dec 2007 15:33:10 -0800
Ben Calvert [EMAIL PROTECTED] wrote:


On Dec 18, 2007, at 12:20 PM, PrzemysEaw PaweEczyk wrote:


All you need to do is to run configure --prefix=/usr/local/ooRexx
and then at one moment you'll be greeted with messages of some sort
saying why it won't go further with compilation.


compiles fine here( other than warnings about no newlines at the ends
of the files, strcpy, and etc. ).

you are using gnu make?


If the op-sys containes gnu make
then it is gnu make.


it doesn't.  unless you install it.  thus my question.

Ben



Re: Real men don't attack straw men

2007-12-13 Thread Ben Calvert
Would everyone in the room who maintain a complete, working operating  
system please raise their hands?


would everyone who is forced to co-opt or recommend other people's  
operating systems... because their own is unfinished... please go away  
and write some code or something?


thank you very much



Re: LC_COLLATE and PostgreSQL

2007-06-24 Thread Ben Calvert

On Jun 24, 2007, at 1:41 PM, bsd_news wrote:


Hi
I like OpenBSD very much but:
I have not proper sorts in my PostgreSQL 8.1 database on my OpenBSD  
4.0

server.
I had set in /etc/profile the LC_COLLATE to pl_PL.ISO8859-2.
The PostgreSQL cluster was created by command:
initdb --locale=pl_PL.ISO8859-2 -E LATIN2 --lc-messages=C --lc- 
monetary=C

--lc-numeric=C --lc-time=C -D /var/postgresql/data.

I do not know is there possibility to fix this problem - maybe  
OpenBSD now

support only C and POSIX collation ?


If i understand you correctly, you're having trouble with how  
Postgresql colates, not OpenBSD.  you should consult the Postgresql  
docs, starting with


http://www.postgresql.org/docs/8.1/static/charset.html#AEN22133




Thanks for every help,
best regards,
Artur

ps. sorry for my poor English



Ben



Re: pfctl -s labels vs netstat -I interface -b

2007-06-05 Thread Ben Calvert

On Jun 5, 2007, at 8:30 AM, Stefan Castille wrote:


Dear list,

I am trying to setup some bandwidth monitoring based on firewall  
rules (consolidate
traffic per project in stead of per ip or interface). However I am  
unable to get correct

statistics from pfctl.



look for 'log (all)' in
  man pf.conf

and then checkout
  man pflog

Ben



Re: Linux Compat Query

2007-05-27 Thread Ben Calvert

On May 27, 2007, at 6:22 PM, [EMAIL PROTECTED] wrote:


On Mon, May 28, 2007 at 12:09:01AM +0100, Edd Barrett wrote:

Hi there,

My friend has made an application that uses a shared library which is
not yet ported to OpenBSD (xereces-c). We have been trying to run it
on OpenBSD using linux-compat. I know this is all set up properly  
as I

use opera a lot.

We have a static binary for the correct arch:
$ file a.out
a.out: ELF 32-bit LSB executable, Intel 80386, version 1, for
GNU/Linux 2.6.9, statically linked, not stripped


try 'branding' it with 'elf2olf -o linux a.out'.
and sysctl kern.emul.linux should be set to 1, of course.



it's already branded, or file wouldn't give that output.



Re: General Question about OpenBSD

2007-05-24 Thread Ben Calvert

On May 24, 2007, at 1:13 PM, Karl R. Balsmeier wrote:


Suzuki Kawasaki wrote:

If OpenBSD is the most uber secure why does it run on Solaris?

http://www.openbsd.org was running Apache on Solaris when last  
queried at

18-May-2007 19:52:41 GMT - refresh now Site Report

Also, is someone going to change the topic on #openbsd on all servers
worldwide?

/topic Secure for the past `date`


hm.  dunno.  probably because of the ankle-biters would be my  
guess.  which motorcycle is better?




Triumph



Re: Troubleshooting NFS/SFU

2007-05-14 Thread Ben Calvert

On May 13, 2007, at 8:44 PM, David Higgs wrote:


I've tried to configure NFS and am nearly all the way there, but it
seems like I've hit a pretty big stumbling block.  I've got OpenBSD
4.1-stable (10.0.0.1) with an NFS export of my home directory.  I also
have a Windows XP machine (10.0.0.2) and installed the SFU 3.5 NFS
client.


Are most of your clients going to be windows machines?  if so, you  
should thing seriously about using samba.
( you should also read http://www.openbsd.org/mail.html and include  
all even vaguely related config files and output of things like dmesg  
and nfsstat )




[/etc/exports]
/home/david -mapall=david:guest -network=10.0.0.0 -mask=255.255.255.0


i notice you're using 'david:guest' here... the first question  
springs to mind is to verify that user david is in group guest?




I can successfully mount this share locally and perform both reads  
and writes.


Without any of SFU's User Name Mapping configured, I can mount the
share with uid/gid of -2/-2 as advertised.  Appropriately, I cannot
access any files or directories that are not world-readable.  However,
inside a chmod-777 directory, I cannot create files or directories
(which might be as expected).

After configuring User Name Mapping to map my Windows account to the
UNIX account, I can mount the share with the expected uid/gid.


Please provide specifics?  do you mean with the david:guest uid:gid  
mentioned above?



Although I can read user-only files and directories, I still cannot
create any files or directories.


what user:group are the parent directory?  david:guest, or something  
like david:david ? what permissions are they?



  Windows keeps reporting that the
drive has write-protection enabled.



What do the log files on the server say?


I know this isn't a SFU help forum, but any ideas to try or tips on
troubleshooting the NFS side is more than welcome.  Thanks in advance.

--david

P.S. On an unrelated sidenote, does mountd always bind to the same
ports by default?


man mountd
( http://www.openbsd.org/cgi-bin/man.cgi? 
query=mountdapropos=0sektion=0manpath=OpenBSD 
+Currentarch=i386format=html )

will answer this for you


If not, is there a way to fix them at certain
values, so that PF rules can be written to match?  Linux rpc.mountd(8)
supposedly has a -p option that can be used for this purpose.




Re: startx problem

2007-05-14 Thread Ben Calvert

On May 13, 2007, at 10:02 PM, arnuld wrote:


i have configures X and my /etc/X11/xorg.conf file is same as i have
used on DragonFyBSd and Gentoo, Arch Linux etc. when i do startx on
OpenBSD amd64 4.1 it 1st turns-OFF and then after 2 seconds turns-ON
my monitor *automatically*. i had the same problem in OpenBSD 3.9
i386.


pls supply your xorg.conf and the contents of the X error log.  dmesg  
might also be useful




any solution ?

--
http://arnuld.blogspot.com/




Re: 4.1 and Macbook Pro

2007-04-30 Thread Ben Calvert

search the archives under 'macbook pro' and 'acpi'

On Apr 30, 2007, at 11:04 AM, Aaron Hsu wrote:


Hello all,

I am wondering what problems I am going to run into with the 4.1- 
RELEASE and a Macbook Pro.


Right now I have tried to boot up the latest snapshot on my Core  
Duo Macbook Pro and it hang right after the usb and rd0 line. From  
what I understand, this is the last line before entering userland  
and trying to run the rc scripts, right? Searching around I found  
no occurances of this problem or much of anything documented for  
OpenBSD and the Macbook Pros. Chatting on IRC gave me the boot -c  
option to try to use a verbose message. In another message I found  
somewhere, it also suggested boot -v.


boot -c brings up a UKC prompt which does not seem to accept  
input. The insert point or line seems to bounce back and forth very  
rapidly from the prompt to the line above it about 30 - 50  
characters to the right. boot -v (obviously) does not work, as  
apparently that's a bad option for bsd.rd.


Does anyone have any suggestions on how I can debug this and/or fix  
it?


--
Aaron Hsu [EMAIL PROTECTED]
No one could make a greater mistake than he who did nothing  
because he could do only a little. - Edmund Burke




Re: NFS mount by non-root

2007-04-26 Thread Ben Calvert

On Apr 25, 2007, at 8:33 PM, Douglas Maus wrote:


Is it possible for users (non-root) to mount NFS exports?
I seem to be able to mount_nfs using sudo, but not as a regular user.
I actually want to allow regular users to mount the NFS share from
another machine/OS (MacOSX), but since I couldn't get a regular user
to do the mount just on the local machine, I thought I'd start with
this problem first.


i've always approached this class of problem with amd:
http://www.openbsd.org/cgi-bin/man.cgi? 
query=amdapropos=0sektion=0manpath=OpenBSD 
+Currentarch=i386format=html


the daemon runs with sufficient privs to mount the fs, and all the  
user has to do is reference the fs.


Ben



Re: Microsoft gets the Most Secure Operating Systems award

2007-03-22 Thread Ben Calvert
On Thu, 22 Mar 2007 18:58:31 +0530, Siju George [EMAIL PROTECTED] wrote:
 Hi,
 
 http://www.internetnews.com/security/article.php/3667201

From the article:

 Microsoft is doing better overall than its leading commercial competitors.
^^

No wonder.  they stacked the deck before doing the comparison


 
 Just for some entertainment, no troll :-)
 
 --Siju
---
Ben Calvert
Flying Walrus Communications



Re: Important OpenBSD errata

2007-03-17 Thread Ben Calvert
christ.
buddha.

the thread that would not die.

i invoke godwins law in a (probably ) unsuccessful attempt to end the  
insanity:

nazi nazi holocaust, nazi.



On Mar 17, 2007, at 12:09 PM, Karel Kulhavy wrote:
something useless and inflammatory

[demime 1.01d removed an attachment of type application/pkcs7-signature which 
had a name of smime.p7s]



Re: serial console on macbook?

2007-02-19 Thread Ben Calvert

On Feb 19, 2007, at 11:13 AM, Otto Moerbeek wrote:


On Mon, 19 Feb 2007, Pierre Riteau wrote:


The MacBook is different from the MacBook Pro.

The first sign of trouble is that the UKC prompt doesn't work. It
won't accept input. When booting without going to UKC, it shows
various USB related error messages and the after a very long time
comes to the install prompt, which doesn't accept input either.

This happens both with an acpi-enabled bsd.rd and the default  
bsd.rd.


I didn't have a chanche yet to diagnose this further.

-Otto


One easy method to install OpenBSD on a Macbook is to plug an  
external

usb keyboard before booting on the CD. Booting takes a while but then
you can use the external keyboard to install OpenBSD. Be sure not to
use the network, msk0 will hang the machine without some acpi  
features

IIRC.
Then reboot, you will get errors about ehci, ignore them and still  
use

the external keyboard.
Compile a GENERIC.MP kernel with all acpi option enabled on another
machine and copy it to the macbook with a CD, or grab -current  
sources

on CD from another machine and copy them to the macbook. Reboot and
enjoy, built-in keyboard works, ethernet (msk0) works, usb sticks
work. But wireless device (ath0) doesn't.
I haven't tried X11 for a while but I think it works too.


Ah, I did try that before but it didn't work. But now it turns out
that I have to use the frontmost USB port. The other one is not
working. Installing as I write this...



Trying now...  this is all i386, i assume?


-Otto




serial console on macbook?

2007-02-18 Thread Ben Calvert
can't install 4.0 or snapshots on my macbook due to what appear to be  
issues with the usb controller.  ( lots of errors about the usb  
controller, and the keyboard is nonresponsive... no capslock light,  
no input )


does anyone have any ideas about how to capture the dmesg so i can  
submit?


thanks,

ben



Re: mixerctl issue on macppc

2006-12-17 Thread Ben Calvert
On Sun, 17 Dec 2006 17:19:02 +0100
Alexandre Ratchov [EMAIL PROTECTED] wrote:

 On Fri, Dec 15, 2006 at 04:29:31PM -0800, Ben Calvert wrote:
  using the current snapshot from 12/14 on Macppc, using a Tibook 400,
  using mixerctl to set the output volumes to 0 results in low volume,
  instead of no volume.
  
  
  $ mixerctl -a
  outputs.select=speaker
  outputs.speaker=0,0
  outputs.headphones=0,0
  source=cd
  master=0,0
  
  What else should I be looking at?
 
 mixerctl is supposed to do the job (provided that your device
 supports it).
 
 are you using an USB device?

Nope.  just the on-board stuff.

 could you provide contents of /var/run/dmesg.boot

[ using 360300 bytes of bsd ELF symbol table ]
console out [ATY,RageM3p12A]console in [keyboard] ADB found
using parent ATY,RageM3p12Parent:: memaddr b400 size 400, :
consaddr b6008000, : ioaddr b002, size 2: memtag 8000, iotag
8000: width 1152 linebytes 1280 height 768 depth 8 Copyright (c) 1982,
1986, 1989, 1991, 1993 The Regents of the University of California.
All rights reserved. Copyright (c) 1995-2006 OpenBSD. All rights
reserved.  http://www.OpenBSD.org

OpenBSD 4.0-current (GENERIC) #1128: Thu Dec 14 18:36:52 MST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 536870912 (524288K)
avail mem = 481820672 (470528K)
using 1254 buffers containing 26841088 bytes (26212K) of memory
mainbus0 (root): model PowerBook3,2
cpu0 at mainbus0: 7410 (Revision 0x1103): 500 MHz: 1MB backside cache
memc0 at mainbus0: uni-n
ki2c0 at memc0 offset 0xf8001000
iic0 at ki2c0
mpcpcibr0 at mainbus0 pci: uni-north, Revision 0xff
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 Apple Uni-N AGP rev 0x00
vgafb0 at pci0 dev 16 function 0 ATI Mobility M3 rev 0x02, mmio
wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation)
mpcpcibr1 at mainbus0 pci: uni-north, Revision 0x0
pci1 at mpcpcibr1 bus 0
pchb1 at pci1 dev 11 function 0 Apple Uni-N rev 0x00
macobio0 at pci1 dev 23 function 0 Apple Keylargo rev 0x03
openpic0 at macobio0 offset 0x4: version 0x4614
macgpio0 at macobio0 offset 0x50
macgpio1 at macgpio0 irq 47
programmer-switch at macgpio0 not configured
firewire-linkon at macgpio0 not configured
escc-legacy at macobio0 offset 0x12000 not configured
zsc0 at macobio0 offset 0x13000: irq 22,23
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
awacs0 at macobio0 offset 0x14000: irq 24,9,10 speaker
audio0 at awacs0
timer at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000 irq 25: via-pmu, 3 targets
akbd0 at adb0 addr 2: PowerBook G4 keyboard (Inverted T)
wskbd0 at akbd0: console keyboard, using wsdisplay0
ams0 at adb0 addr 3: EMP trackpad tpad 2-button, 400 dpi
wsmouse0 at ams0 mux 0
abtn0 at adb0 addr 7: brightness/volume/eject buttons
apm0 at adb0: battery flags 0x5, 99% charged
battery at macobio0 offset 0x0 not configured
backlight at macobio0 offset 0xf300 not configured
ki2c1 at macobio0 offset 0x18000
iic1 at ki2c1
wdc0 at macobio0 offset 0x1f000 irq 19: DMA
wd0 at wdc0 channel 0 drive 0: HITACHI_DK23EB-40
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
wd0(wdc0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4
wdc1 at macobio0 offset 0x2 irq 20: DMA
atapiscsi0 at wdc1 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: MATSHITA, DVD-ROM SR-8187, HA18 SCSI0 5/
cdrom removable cd0(wdc1:0:0): using BIOS timings, DMA mode 2
wdc2 at macobio0 offset 0x21000 irq 21: DMA
wi0 at macobio0 offset 0x3 irq 57:
wi0: Firmware 8.70 variant 1, address 00:30:65:02:3b:54
ohci0 at pci1 dev 24 function 0 Apple USB rev 0x00: irq 27, version
1.0 usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Apple OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ohci1 at pci1 dev 25 function 0 Apple USB rev 0x00: irq 28, version
1.0 usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Apple OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
cbb0 at pci1 dev 26 function 0 TI PCI1211 CardBus rev 0x00: irq 58
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
mpcpcibr2 at mainbus0 pci: uni-north, Revision 0x16
pci2 at mpcpcibr2 bus 0
pchb2 at pci2 dev 11 function 0 Apple Uni-N Eth rev 0x00
Apple Uni-N Eth Firewire rev 0x01 at pci2 dev 14 function 0 not
configured gem0 at pci2 dev 15 function 0 Apple Uni-N GMAC rev 0x01:
irq 41, address 00:03:93:87:be:52 bmtphy0 at gem0 phy 0: BCM5221
100baseTX PHY, rev. 3 uhidev0 at uhub0 port 1 configuration 1 interface
0 uhidev0: Kensington Kensington Expert Mouse, rev 1.10/1.00, addr 2,
iclass 3/1 ums0 at uhidev0: 4 buttons and Z dir.
wsmouse1 at ums0 mux 0
bootpath: '/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL 
PROTECTED]/bsd'
boot device: wd0.
root on wd0a
rootdev=0x0 rrootdev=0xb00 rawdev=0xb02


 and the output of 'audioctl -a' ?

name=AWACS
version=
config=awacs
encodings=slinear:16

Re: console switching problem from desktop

2006-12-17 Thread Ben Calvert
On Sun, 17 Dec 2006 13:04:16 - (GMT)
Neil E. Sprinlan [EMAIL PROTECTED] wrote:

 Denny White wrote:

 
  The other problem is, when I'm on the desktop in an xterm
  window, it's as though the settings in .profile like my
  aliases I have setup, aren't recognized, like they're not
  in the current environment settings.
 
 xsession or xinitrc files don't source your .profile.
 you need to start xterm with the '-ls' option or the loginShell
 resource set to TRUE to have the shell executed in them source it.
 Or put your settings in ~/.xsession (for xdm) or ~/.xinitrc (for
 startx).

http://www.openbsd.org/faq/faq8.html#ksh

Ben



mixerctl issue on macppc

2006-12-15 Thread Ben Calvert
using the current snapshot from 12/14 on Macppc, using a Tibook 400,
using mixerctl to set the output volumes to 0 results in low volume,
instead of no volume.


$ mixerctl -a
outputs.select=speaker
outputs.speaker=0,0
outputs.headphones=0,0
source=cd
master=0,0

What else should I be looking at?

Thanks,

ben

-
   Calvin: Sometimes when I'm talking, my words can't keep up with my
thoughts. I wonder why we think faster than we speak.  Hobbes: Probably
so we can think twice.



Fw: slow terminal on macppc

2006-12-05 Thread Ben Calvert
Begin forwarded message:

Date: Tue, 5 Dec 2006 15:43:20 -0800
From: Ben Calvert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: slow terminal on macppc


On Mon, 4 Dec 2006 19:59:00 -0800
Bryan Irvine [EMAIL PROTECTED] wrote:

 I'm running a test openldap server on an imac 333Mhz.  When I run
 things from the console it's really really slow, but when I'm in X
 things are a lot faster.  For example:  I just ran as a test (several
 times) the ldap command time slapcat, which basically dumps the
 contents of the DB to the screen. When I run it in X it takes around
 2.8 - 3 seconds, when run on the console without X it takes about 7.5
 minutes.
 
 This is OK because most of my time on this thing will be in X, and my
 question is more of a curiosity than anything else.

look at /etc/ttys.  you'll notice the following:

ttyC0   /usr/libexec/getty std.9600   vt220   off  secure
ttyp0   nonenetwork


the 9600 is the speed that data gets written to your console ( ttyc0 ).
Notice that ttyp* (xterms, remote ssh sessions ) have no such
restriction?

ignoring interference from other processes, there is no difference in
how fast the program runs, only in how fast it writes the data to your
screen.  If the program is waiting for one write to finish before
commiting the next, it'll be slower, but if you ran the same program
and redirected the output to a file, you'd see no difference on the
console or an xterm.

I can think of several reasons why this is a good thing, but as this
list is populated by people who are a lot smarter than myself I won't
postulate as to the actual reason why it was decided to have the
console be slow.
 
 
 --Bryan
 

Ben

-
   The only skills I have the patience to learn are those that have no
real application in life.  -- Calvin


-
   What's the point of wearing your favorite rocketship underpants if
nobody ever asks to see 'em?  -- Calvin



powerpc package updates

2006-11-24 Thread Ben Calvert
I notice that while some platforms ( i386, amd64, sparc64 ) get their
current packages rebuilt somewhat frequently, the powerpc platform is
over 30 days old.

Is this due to a hardware shortage?  Would getting someone to donate an
Xserve help?

-
   Hobbes : Well, you still have afternoons and weekends 
   Calvin : That's when I watch TV.



Why does Anthy dependon emacs? (was Re: japanese input method uim anth )

2006-11-24 Thread Ben Calvert
Your timing is excelent - i was literally just starting to look into
setting up japanese input on OpenBSD when this message came through.

However, I have a question for the maintaner ( ports@ ? )

Why does anthy depend on emacs?  On FreeBSD  Linux it certainly
doesn't, and I have no interest in compiling emacs for the next week
just to get anthy running ( yes, my machine is slow.  I spilled
beer in the other one )

Thanks,

Ben


On Sat, 25 Nov 2006 12:57:00 +0900
LinuxUser [EMAIL PROTECTED] wrote:

 Hi , all .
 
 i express heartly thanks for the man who Add uim anthy to ports
 http://ports.openbsd.nu/manageaccount.php?item=3083 .
 i now input japanese on konqueror .
 
 i simply write down my doing .
 
 
 /etc/rc.local
 ---
 echo -n 'starting local daemons:'
 echo '.'
 /usr/local/sbin/cupsd
 
 
 
 
 .xinitrc
 --
 export LANG=ja_JP.eucJP
 export LC_ALL=ja_JP.eucJP
 export LC_CTYPE=ja_JP.eucJP
 uim-xim 
 startkde
 
 
 
 # pkg_info
 uim-1.2.1p1 multilingual input method library
 anthy-7900p1 japanese input method
 
 
 the example is on the last part on http://nakajin.dyndns.org/40.html .
 again i express thanks to openbsd .
 --
 takesima
 


-
   Calvin: Sometimes when I'm talking, my words can't keep up with my
thoughts. I wonder why we think faster than we speak.  Hobbes: Probably
so we can think twice.



Re: Why does Anthy dependon emacs? (was Re: japanese input method uim anth )

2006-11-24 Thread Ben Calvert
On Sat, 25 Nov 2006 14:20:12 +0900
[EMAIL PROTECTED] (Mathieu Sauve-Frankel) wrote:


 You will notice that emacs is only a BUILD_DEPENDS. It is needed to
 build the anthy module for emacs. The ports tree is intended for 
 BUILDING PACKAGES. If you are not interested to install what is
 required in order to build the packages, then by all means install
 the binary package, it does not depend on emacs. 

I can't, as the machine used to build powerpc packages is currently off-
line, so there is no package for my arch.

Instead, As I percieve an obvious need to seperate anthy out from anthy-
emacs i'll work on hacking the port so emacs isn't a build dependency.

Unless someone else gets there first ( my previous message was a poorly-
managed attempt to determine if someone was already doing this )

 
 -- 
 Mathieu Sauve-Frankel

Ben



Re: packages

2006-11-16 Thread Ben Calvert
You know, the more I think about this, the more i think this is a good
applicationfor Espie@'s sqlports.



-
   I'm killing time while I wait for life to shower me with meaning and
happiness.-- Calvin



{ftp3,anoncvs3}.usa.openbsd.org outage?

2006-11-14 Thread Ben Calvert
plier.ucar.edu ( {ftp3,anoncvs3}.usa.openbsd.org ) has been down for the
last several days.  Does anyone know if this is a permanent or
temporary outage?

scanning the anoncvs mirror list at
http://www.openbsd.org/anoncvs.html#CVSROOT i notice that at least one
other mirror is pulling from anoncvs3.usa,

Thanks,

ben

-
I think what we need to do is convince people who live in the lands
they live in to build the nations.

George W. Bush
October 11, 2000
Presidential Debate -- Winston-Salem, North Carolina.



Re: systrace: vi policy

2006-11-12 Thread Ben Calvert
On Sun, 12 Nov 2006 12:15:39 -0600 (CST)
Jacob Yocom-Piatt [EMAIL PROTECTED] wrote:

  Original message 
 Date: Sun, 12 Nov 2006 10:26:10 -0500
 From: Okan Demirmen [EMAIL PROTECTED]  
 Subject: Re: systrace: vi policy  
 To: misc@openbsd.org
 
 On Sun 2006.11.12 at 08:55 -0600, Jacob Yocom-Piatt wrote:
 
 consider sorting your policies...also, try to be more generic in
 other places, for example, match /usr/lib/libc.so.*
  
native-fswrite: filename eq /tmp/* then permit
 
 use match
 
 
 okan,
 
 that did the trick, thx for the syntax advice. is there any
 particular utility you recommend for sorting the syscalls?

have you tried  sort(1) ?

 
 cheers,
 jake
 

Ben

-
I'm also not very analytical.  You know I don't spend a lot of time
thinking about myself, about why I do things.

George W. Bush
June 4, 2003
Aboard Air Force One



Re: need help configuring X on tibook

2006-11-04 Thread Ben Calvert
On Sat, 4 Nov 2006 10:26:07 + (UTC)
Neil S. Sprinlan [EMAIL PROTECTED] wrote:

 Ben Calvert ben at flyingwalrus.net writes:
 
  
  my {archive,google}-fu isn't up to this task, so i have to bother
  the list about this.
  
  I'm trying to get X working in more than 8bit on  a 400mhz tiBook,
  and can't find a good modeline/hsync/vrefresh.  Xorg -configure
  produces nothing useful.
 
 Did you try the one in /usr/X11R6/README?
 
 -+- neil -+-
 

wow.  that should have been obvious. Thanks,guys.



need help configuring X on tibook

2006-11-03 Thread Ben Calvert
my {archive,google}-fu isn't up to this task, so i have to bother the
list about this.

I'm trying to get X working in more than 8bit on  a 400mhz tiBook, and
can't find a good modeline/hsync/vrefresh.  Xorg -configure produces
nothing useful.

Thanks,

Ben  



Re: macppc kernel panic during boot with 10.23.2006 snapshot

2006-10-31 Thread Ben Calvert
On Mon, 30 Oct 2006 10:47:13 -0800
Ben Calvert [EMAIL PROTECTED] wrote:

 This is on a 400mhz 1st gen tibook.  It boots  runs fine with 3.9.
 
 Unfortunately the keyboard isn't doing anything useful, so all i can  
 report is what's on the screen:
 
 the last message is:
 -
 openpic0 at macobio0 offset 0x4000panic: trap type 200 at 2eafb0  
 ( openpic_do_pending_int+0x230) lr 2ea674
 
 Stopped at Debugger+0x10; lwz50,2025
 
 -
 
 I'm not convinced updating from 3.9 to 4.0-CURRENT via source is the  
 best idea, so unless someone has a quick fix for this i'll hang out
 a couple of days and try the next snapshot

Which works perfectly.  dmesg attached

  Thanks,
 
 Ben

[demime 1.01d removed an attachment of type application/octet-stream which had 
a name of dmesg.out]



macppc kernel panic during boot with 10.23.2006 snapshot

2006-10-30 Thread Ben Calvert

This is on a 400mhz 1st gen tibook.  It boots  runs fine with 3.9.

Unfortunately the keyboard isn't doing anything useful, so all i can  
report is what's on the screen:


the last message is:
-
openpic0 at macobio0 offset 0x4000panic: trap type 200 at 2eafb0  
( openpic_do_pending_int+0x230) lr 2ea674


Stopped at Debugger+0x10; lwz50,2025

-

I'm not convinced updating from 3.9 to 4.0-CURRENT via source is the  
best idea, so unless someone has a quick fix for this i'll hang out a  
couple of days and try the next snapshot


Thanks,

Ben



Re: popa3d: to compile from tree or not from tree?

2006-10-18 Thread Ben Calvert
On Tue, 17 Oct 2006 19:25:01 -0500 (CDT)
Jacob Yocom-Piatt [EMAIL PROTECTED] wrote:

 that is the question. a quick answer would be appreciated since i have to stay
 up all night and get a POP3 mailserver ready that supports the
 virtual-domain-farm-style login without having system accounts.
 
 i'll try recompiling popa3d from the source tree unless someone recommends
 otherwise or i hit a snag.

Have had really good luck with dovecot.  It's trivial to get recent versions of 
postfix to authenticate against it as well, cutting down the overhead of 
admining 2 different SASL implimentations.

 
 cheers,
 jake



[most likely OT] Re: cron jobs

2006-10-04 Thread Ben Calvert
On Wed, 4 Oct 2006 11:26:55 +0200
Paul de Weerd [EMAIL PROTECTED] wrote:

 My cronjobs do not output anything when stuff Just Works (tm). When
 something goes wrong, they will give output which will be sent to the
 admin (me). 

I'm sorry to jump in here, but I'm really curious about how you tell the 
diference between the job never running and it Just Working (tm)?

I don't know about you, but particularly in the case of backup i'm very 
interested in making sure it worked successfully.

It strikes me that this 'no news is good news' policy creats a single point of 
failure (cron).



Re: Lenovo laptops on OpenBSD

2006-10-01 Thread Ben Calvert

On Oct 1, 2006, at 5:17 PM, J Moore wrote:

I've got to buy a couple of laptops, and want to get something  
that's as

open source friendly as possible. I know at one time, there were a
number of OpenBSD users that were enthusiastic about ThinkPads.

Are the Lenovo-manufactured ThinkPads still open-source friendly?


afik, ThinkPads have _always_ been Levono-manufactured.  The  
difference is that IBM decided to stop putting 'ibm' stickers on  
them, and sold the rights to use the 'thinkpad' name to the guys  
who'd always made them anyway.




The T60 or T60p look like reasonable units for my applications -  
anyone

got any pros or cons they can share?


A quick google will answer this question.  there are plenty of linux/ 
thinkpad sites out there.




Thanks,
Jay




Re: PF optimization

2006-09-28 Thread Ben Calvert

On Sep 28, 2006, at 2:22 AM, Luca Corti wrote:


On Wed, 2006-09-27 at 21:05 -0400, Daniel Ouellet wrote:

Just in case you haven't seen it yet.





Hello,

a comment to the article mentions that x86 is not a good arch for   
high

pps firewalls because it has limits in interrupts per seconds it can
handle. No one commented on that.
Is this true? Which archs supported by openbsd are better suited for
that kind of work?

thanks



I think you're referring to this bit from the article:

snip
For instance, i386-class machines are not able to handle much
more than 10,000 interrupts per second, no matter how fast the
CPU is, due to architectural constraints.
/snip

please note the difference between 'x86' and '386'.  He's saying that  
15 year old hardware is inadequate.  Unless you're running 15 year  
old hardware, this does not apply to you.