Re: Looping in ksh

2006-12-20 Thread Bruno Carnazzi

2006/12/20, Uwe Dippel <[EMAIL PROTECTED]>:

I needed some little script; and - as usual - tried it out by typing:
i=0
uplim=10
while [ $i -lt $uplim ]
do
   ((i=i+1))
   echo $i
done
1
2
3
4
5
6
7
8
9
10


Hi,

This is a shell rewrite of jot(1). Try :
$ jot 10 1 10

Best Regard,

Bruno.



Re: trouble with IPv6 address with pkg_add(1)

2006-11-28 Thread Bruno Carnazzi

2006/11/28, Marcus Popp <[EMAIL PROTECTED]>:

On 2006-11-28T20:58, Bruno Carnazzi wrote:
...
> >I don't think this problem is caused by IPv6.
> >Have you tried adding a slash, as stated in man 1 pkg_add, to the
> >PKG_PATH?


You are right : adding an ending slash did the trick.

Thank you and sorry for the noise...


>
> I'm updating... :)
>
> But I don't think the backslash is the problem, as in second case,
> everything works fine (without backslash)...
very likely these are different ftp-servers (application) with differnt
configurations => different behavior.

so long,

Marcus.




Re: trouble with IPv6 address with pkg_add(1)

2006-11-28 Thread Bruno Carnazzi

2006/11/28, Marcus Popp <[EMAIL PROTECTED]>:

On 2006-11-28T19:40, Bruno Carnazzi wrote:
>   Hi all,
>
> When using
> 
PKG_PATH=ftp://ftp.freenet.de/pub/ftp.openbsd.org/pub/OpenBSD/snapshots/packages/i386
> with pkg_add(1), updating package with "sudo pkg_add -ui -F update -F
> updatedepends" fails, saying "no package in PKG_PATH". When using
> PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/i386,
> everything work fine. As both path includes exactly the same packages,
> I expect there is a trouble with IPv6 adress (I go through a IPv4
> NAT-box, and my LAN is IPv4-only) :
I don't think this problem is caused by IPv6.
Have you tried adding a slash, as stated in man 1 pkg_add, to the
PKG_PATH?


I'm updating... :)

But I don't think the backslash is the problem, as in second case,
everything works fine (without backslash)...


like 
PKG_PATH=ftp://ftp.freenet.de/pub/ftp.openbsd.org/pub/OpenBSD/snapshots/packages/i386/

so long,

Marcus.




Re: iwi0 connection frustration

2006-11-28 Thread Bruno Carnazzi

2006/11/28, Vim Visual <[EMAIL PROTECTED]>:

As I wrote in the previous email, I have pkg_add'ed the damien firmware.

this means that I did

sudo pkg_add 
http://damien.bergamini.free.fr/packages/openbsd/iwi-firmware-3.0.tgz

the files

/etc/firmware/iwi-license
/etc/firmware/iwi-boot
/etc/firmware/iwi-bss
/etc/firmware/iwi-ibss
/etc/firmware/iwi-monitor
/etc/firmware/iwi-ucode-bss
/etc/firmware/iwi-ucode-ibss
/etc/firmware/iwi-ucode-monitor

are there and dmesg | grep iwi tells me that the adpater has been
recognized during the boot process; what's more, I get *something*
like

# ifconfig iwi0
iwi0: flags=8802 mtu 1500
address: xx:xx:xx:xx:xx:xx
nwid ""
media: IEEE802.11 autoselect
status: no network


Maybe
# ifconfig iwi0 up
?



but I am missing the "powersave" line. I don't know whether this is
related to the problem.

It cannot be a hardware problem because the crashbox with the debian
variant ubuntu recognised the chip and I was able to connect to my
nwid

I am wondering whether this has something to do with the encryption
bit rate... I see that the maximum is 104-bit and I don't remember
which rate I chose (the wlan modem is at home, I am in the office now)

Mmmh... maybe I should try to switch off the wep and see what happens...

2006/11/28, Der Engel <[EMAIL PROTECTED]>:
> Did you install the firmware?
>
> On 11/28/06, Vim Visual <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I am still testing a "crashbox" (not bad, from zero to a full OpenBSD
> > system including port trees in less than a week, my first OpenBSD system :) 
)
> > but I have now an issue with the wlan connection. The card is an Intel
> > PRO/Wireless
> > 2200BG
> >
> > First of all: I have read the man pages (good boy, good boy! arf, arf!)
> >
> > My net:
> >
> > nwid: pepitogrillo
> >
> > nwkey: eltrenloco
> >
> > (hahaha!)
> >
> > I have pkg_add'ed the damien firmware.
> >
> > But still I cannot connect. My command line is
> >
> > sudo ifconfig iwi0 nwkey eltrenloco nwid pepitogrillo
> >
> > (I hope that the order of the factors doesn't alter the product! Is
> > iwi an abelian group? )
> >
> > and then
> >
> > sudo dhclient iwi0
> >
> > After the first DHCPDISCOVER on iwi0 to 255.255.255.255 I get
> > "send_packet: No buffer space available", this goes on some 12 times
> > and then No DHCPOFFERS received and No working leases in presistent
> > database - sleeping
> >
> > I cannot show you dmesg because, as a matter of fact, the crashbox
> > doesn't have connection :) And I don't feel like typping everything!
> >
> > Trying it via /etc/hostname.iwi0 doesn't help
> >
> > Any hint? (I am sure yes!)
> >
> > thanks in advance,
> >
> > Pau
> >
> > PS: The "send_packet: No buffer space available" disappears after a
> > sudo ifconfig iwi0 down, sudo ifwonfig iwi0 up




trouble with IPv6 address with pkg_add(1)

2006-11-28 Thread Bruno Carnazzi

  Hi all,

When using 
PKG_PATH=ftp://ftp.freenet.de/pub/ftp.openbsd.org/pub/OpenBSD/snapshots/packages/i386
with pkg_add(1), updating package with "sudo pkg_add -ui -F update -F
updatedepends" fails, saying "no package in PKG_PATH". When using
PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/packages/i386,
everything work fine. As both path includes exactly the same packages,
I expect there is a trouble with IPv6 adress (I go through a IPv4
NAT-box, and my LAN is IPv4-only) :

$ host ftp.freenet.de
ftp.freenet.de is an alias for ftp-0.freenet.de.
ftp-0.freenet.de has address 194.97.2.67
ftp-0.freenet.de has address 194.97.2.68
ftp-0.freenet.de has address 194.97.2.69
ftp.freenet.de is an alias for ftp-0.freenet.de.
ftp-0.freenet.de has IPv6 address 2001:748:100:50::3
ftp-0.freenet.de has IPv6 address 2001:748:100:50::4
ftp-0.freenet.de has IPv6 address 2001:748:100:50::5
ftp.freenet.de is an alias for ftp-0.freenet.de.

and

$ host ftp.openbsd.org
ftp.openbsd.org is an alias for openbsd.sunsite.ualberta.ca.
openbsd.sunsite.ualberta.ca has address 129.128.5.191
ftp.openbsd.org is an alias for openbsd.sunsite.ualberta.ca.
ftp.openbsd.org is an alias for openbsd.sunsite.ualberta.ca.

I don't want' to waste OpenBSD mainsite bandwidth :)

I suppose I can find a work-around with FETCH_CMD, but it's against
OpenBSD "it-just-works" spirit...

Note : uname -a is OpenBSD beasty.etherspace.run 4.0 GENERIC#1237 i386

Best regards,

Bruno.



GENERIC ou GENERIC.MP for a SuperMicro SC513 ?

2006-11-28 Thread Bruno Carnazzi

 Hi misc,

I've installed (without a problem, as always, thank you devs !)
OpenBSD/i386 4.0-release on a SuperMicro SC513. This server is powered
by an Intel Dual-core Pentium 3.0GHz. When I boot whith bsd.mp, I've
got a "ioapic0: pin 16 shares different IPL interrupts (40..50),
degraded performance" kernel notification on boot. So, should I use
bsd or bsd.mp for this machine ? This machine is intended to be a HTTP
proxy (squid).

Note: in case of mp, what's the notions of "boot processor" and
"application processor" ?

Thank you,

Bruno.


Here are the 2 dmesg :

OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) D CPU 3.00GHz ("GenuineIntel" 686-class) 3 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,CNXT-ID
,CX16
cpu0: Enhanced SpeedStep disabled by BIOS
real mem  = 2145865728 (2095572K)
avail mem = 1949339648 (1903652K)
using 4256 buffers containing 107397120 bytes (104880K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(ad) BIOS, date 04/17/06, BIOS32 rev. 0 @
0xfd470, SMBIOS rev. 2.51 @ 0x7feea000 (33 entries)
bios0: Supermicro PDSMi
pcibios0 at bios0: rev 2.1 @ 0xfd470/0xb90
pcibios0: PCI BIOS has 20 Interrupt Routing table entries
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801GB LPC" rev 0x00)
pcibios0: PCI bus #10 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x1000 0xc9000/0x1000
ipmi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel E7230 MCH" rev 0x81
ppb0 at pci0 dev 1 function 0 "Intel E7230 PCIE" rev 0x81
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01
pci2 at ppb1 bus 2
ppb2 at pci2 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09
pci3 at ppb2 bus 3
"Intel IOxAPIC" rev 0x09 at pci2 dev 0 function 1 not configured
ppb3 at pci0 dev 28 function 4 "Intel 82801G PCIE" rev 0x01
pci4 at ppb3 bus 4
em0 at pci4 dev 0 function 0 "Intel PRO/1000MT (82573E)" rev 0x03: irq
10, address 00:30:48:5c:64:52
ppb4 at pci0 dev 28 function 5 "Intel 82801G PCIE" rev 0x01
pci5 at ppb4 bus 5
em1 at pci5 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: irq
11, address 00:30:48:5c:64:53
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: irq 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: irq 10
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: irq 5
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb5 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xe1
pci6 at ppb5 bus 10
vga1 at pci6 dev 0 function 0 "ATI Rage XL" rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GB LPC" rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801GB SATA" rev 0x01: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using irq 10 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: irq 10
iic0 at ichiic0
lm1 at iic0 addr 0x2d: W83627HF
lm2 at iic0 addr 0x2f: W83792D rev D
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: 
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83627HF
lm1 detached
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask ef65 netmask ef65 ttymask ffe7
pctr: user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

And

Ope

Can not boot OpenBSD/macppc 4.0-release from cd40.iso on PowerBook G4 15"

2006-11-23 Thread Bruno Carnazzi

  Hi misc,

I'd like to evaluate OpenBSD/macpcc as a replacement for Mac OS X (or
dual boot) on my PowerBook G4 15" (fr keyboard). While OpenBSD 3.9
boots flawlessly, OpenBSD 4.0 hangs with a kernel panic (cd40.iso)...
As I reboot and try to retrieve my dmesg, I see that OpenFirmware
keeps track of my previous boot attempt. Is there a way to retrieve
some dmesg under Mac OS X after a failed OpenBSD boot ? How can I
report this ?

Best regards,

Bruno.



Re: Ralink broken after last update

2006-10-31 Thread Bruno Carnazzi

2006/10/31, Damien Bergamini <[EMAIL PROTECTED]>:

| I'm in this case too using OpenBSD 4.0-current (GENERIC) #1163: Thu
| Oct 19 14:40:44 MDT 2006 :
|
| ural0 at uhub0 port 1
| ural0: Nintendo Nintendo Wi-Fi USB Connector, rev 2.00/0.01, addr 2
| ural0: MAC/BBP RT2571 (rev 0x05), RF RT2526, address 00:0d:0b:c3:cb:bb
|
| ural0 is in hostap mode, /etc/hostname.ural0 :
|
| 192.168.13.254 255.255.255.0 media DS11 mediaopt hostap mode 11b nwid
w3lC0m3_H0
| m3 chan 11
|
| I use it from my powerbook, and sometimes, I lost Wi-Fi connectivity
| for about 1 minutes... Screen helps :)

This is a different problem.
ural(4) has always used AMRR for rate control and it isn't even
enabled in hostap mode.  Is your problem new to OpenBSD 4.0 or
was it already existing in previous releases?
Is your powerbook wifi adapter working in powersave mode?


In fact, I have this problem since using first ural0 implementation
(3.9-current, as far as i remember). I use the integrated Airport
interface of my powerbook, which does not have any powersafe options
(or I'm not aware of them). Sometimes, I'm really near the AP (about 2
meters), and if there is too many people in the room, it become really
instable (powerbook signal strengh indicator lowers to 1 ticks). There
is a (in french) "robustesse d'interfirence" option with airport, but
it can't help.

Best regards,

Bruno.



Thanks,
Damien




Re: defaults for OpenSSH

2006-10-30 Thread Bruno Carnazzi

2006/10/30, daniel <[EMAIL PROTECTED]>:

Bruno Carnazzi wrote:
> In order to have sane configuration defaults in OpenBSD, what are the
> good reasons to not disable ssh root access, and to not disable sshv1
> protocol by default ?

It's insane if you can't login after a fresh install...


But a fresh install with only root account is not sane :)




d.
--
Hi, I'm a .signature virus! Copy me to your .signature file and
help me propagate, thanks!




Re: Ralink broken after last update

2006-10-30 Thread Bruno Carnazzi

2006/10/30, Erki Malling <[EMAIL PROTECTED]>:

I'm running Canyon CN-WF511 wireless PCI card (Ralink RT2561S)
in hostap mode in my 30m2 flat, serving one laptop next room.
The wireless quality has always been less than stellar, even
when few meters from the OpenBSD box antenna. But it works for
reading mail and news and thats all that matters in this case.

Unfortunately, after updating last week (I'm following -current)
things got a bit worse. When in the same room with the AP, it works
as craptastically as before, but further away (say 5 meters and a
concrete wall between) things slowly cripple to the point when laptop
can't even find the AP.


I'm in this case too using OpenBSD 4.0-current (GENERIC) #1163: Thu
Oct 19 14:40:44 MDT 2006 :

ural0 at uhub0 port 1
ural0: Nintendo Nintendo Wi-Fi USB Connector, rev 2.00/0.01, addr 2
ural0: MAC/BBP RT2571 (rev 0x05), RF RT2526, address 00:0d:0b:c3:cb:bb

ural0 is in hostap mode, /etc/hostname.ural0 :

192.168.13.254 255.255.255.0 media DS11 mediaopt hostap mode 11b nwid w3lC0m3_H0
m3 chan 11

I use it from my powerbook, and sometimes, I lost Wi-Fi connectivity
for about 1 minutes... Screen helps :)

Best regards.



Long story short, looks like this update is to blame here:

replace rssadapt(9) with amrr for automatic rate control.
as a side-effect, this should fix all the "bogus xmit rate" panics
users have been complaining about for some time when operating in
HostAP mode.

I grabbed previous versions of relevant files from cvsweb and
rebuilt the kernel.

Things work well now.

Btw, I, too, suffered kernel panics before but forcing mode 11b in
hostname.ral0 took care of that.

Here's my dmesg: http://doktor.kompro.ee/dmesg

PS. I stared at the output of tcpdump -i ral0 -y IEEE802_11_RADIO
when it was broken but could'nt make any sense of it.
If someone would tell me what to look for there, I'm willing
to break things again and investigate.




defaults for OpenSSH

2006-10-30 Thread Bruno Carnazzi

  Hi misc,

In order to have sane configuration defaults in OpenBSD, what are the
good reasons to not disable ssh root access, and to not disable sshv1
protocol by default ?

Best regards,

Bruno.



Package update candidates

2006-10-22 Thread Bruno Carnazzi

  Hi misc,

When upgrading some packages with 'pkg_add -u', I sometimes see :
No need to update 
and
Candidates for updating  -> 

What's the difference ?
Please notice that in first case, the package seems "ignored", and in
the second case, the package seems uninstalled and reinstalled in the
same version...

Best regards,

Bruno.



Re: pppoe slow on openbsd

2006-10-20 Thread Bruno Carnazzi

2006/10/20, Vijay Sankar <[EMAIL PROTECTED]>:

FWIW, OpenBSD PPPoE implementation has been more robust for me than
anything else I have used, including Windows, and I have used it since
OpenBSD version 3.0 -- userland initially and later kernel-mode.

I am not sure whether there are better ways to configure this but all I
had to do was create hostname.pppoe0 with the following lines. You may
want to read the documentation more thoroughly.

pppoedev de0
!/sbin/ifconfig de0 up
!/usr/sbin/spppcontrol \$if myauthproto=pap myauthname=username
myauthkey=secret
!/sbin/ifconfig \$if inet 0.0.0.0 0.0.0.1 netmask 0x
!/sbin/route add default 0.0.0.1
link1 up


Note that things have changed in 4.0. hostname.pppoe0 now looks like this :
!/sbin/ifconfig ne3 up
inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev ne3 authproto chap \
   authname AUTH authkey PASSWORD up
!/sbin/route add default 0.0.0.1

Bruno.



Hope this helps.



On Fri, 2006-20-10 at 04:59 +0200, Chris wrote:
> I write once again for the same old things I was writing
> at the opwnbsd 3.4. If you search the emails to the list are there.
>
> Same old same old.
>
> The pppoe dial error (userland) "cant assign requsted address" after
> 4 major OpenBsd releases didnt go away. Noone cared to address the situation
> and of course the same old answer "diferent isps use diferent pppoe
> implementations" was the easy answer to leave the question unanswered.
>
> The 90% of home office internet conections are have to do with pppoe crapy dsl
> implementetions at least here in Europe.
>
> Despite that I have never found a single windows xp box to not work
> properly with
> these "crapy implementations" no matter to whatever adsl provider
> someone wants to
> conect to, and without the need for any extra drivers to be installed
> concerning these diferrent isps.
>
> So from the openbsd 3.4 release I have instaled Openbsd as a router
> (suggested by me)
> to different small offices succesfully and  despite the Openbsd pppoe
> risk that these boxes will never see the Internet world.
> I just hoped and trusted the community, that someone
> will go and support the first thing that an os must be capable of, to
> conect to the internet
> using an available ISP. I hoped that someone in the community will fix
> the problems so
> will come one day that we can use an openbsd box to conect to the Internet
> without praying or going after that to a doctor for a nervous breakdown.
>
> So 3.5 -> 3.6 -> 3.7 -> 3.8 and now I am afraid to tell my clients to update.
> No matter what usefull things the new releases have if I can not
> conect them to the Internet the only option is to call microsoft to
> apply for the licencing program...
>
> THE ONLY THING THAT CHANGES FROM RELEASE TO RELEASE
> IN OPENBSD PPPOE IS THE ERROR MESSAGES AFTER A SUCCESSFUL
> CONECTION IS MADE.
>
> I am so disappointed with this,  as every now and then in these years
> I read posts in the list, from the newbie trying to install an openbsd
> box for the first time, as users that are very familiar with openbsd
> like myself, crying out "the pppoe implementation in openbsd is
> broken".
>
> An answer to all these people:
> IS PPP OPENBSD IMPLEMENTATION BROKEN?
>
> YES IT IS NO MATTER WHAT YOU READ IN THE LIST.
> YES IT IS AND NO ONE CARES.
> YES YOU HAVE DONE NOTHING WRONG IN YOUR CONFIGURATION,
> THE ERRORS ARE NOT THERE FOR DEBUGGING JUST FOR SEEING THEM.
>
> On openbsd 3.9 I can conect through pppoe(userland) to my ISP
> everything works fine
> but I can not download more than 250KB/s despite that my line is
> capable of 2000KB/s.
> In a 3.5 box same configuration same ISP I am capable of 2000KB/s. May
> I must downgrade?
>
> I myself want to ask whats the meaning of an os secure and capable of tasks if
> I can not conect to an ISP using the way that 90% of Inernet users use
> in this world.
>
> I have spend another week trying to resolve another pppoe problem,
> where everything seems to work fine as always, but as always in
> openbsd's  pppoe something goes wrong.
>
> Of course if I conect my modem to a wondows xp "stupid insecure pc" or
> to e "Unix based
> "Powerbook" and I experince no such problems.
>
> I called my ISP after the line was installed and complain that my line
> dont work ok and now
> I think I may be have to call them and tell them that I just used a
> stupid os that cant do
> what the most "stupid" oses can DO.
>
> I needed to write this after 5 years of seeing the community to ignore
> the needs of its users. We have donated, support it and continue to do
> so. We have no right to demand things but I think we have the right to
> alert the community as definitily with this matter something IS
> DEFINITELY wrong.
>
> I think that the 50% of Openbsd users use pppoe conections and I thing
> that the 10%
> of us use for example IPSEC. Despite that IPSEC works far better than
> establishing a dsl conection and download at proper rates.
> And I am sure that this mail will be ignore

Re: pppoe slow on openbsd

2006-10-20 Thread Bruno Carnazzi

 Hi,

I don't understand your hunger. My home adsl router is OpenBSD driven
and I have no problem using kernel pppoe for more than year (since
3.8). As I live on Reunion Island, I suppose my ISP conforms to
european standards. I can play with my 2Mbps bandwidth with no trouble
at all.

Maybe you should read man pppoe(4).

Best regards,

Bruno.

2006/10/20, Chris <[EMAIL PROTECTED]>:

I write once again for the same old things I was writing
at the opwnbsd 3.4. If you search the emails to the list are there.

Same old same old.

The pppoe dial error (userland) "cant assign requsted address" after
4 major OpenBsd releases didnt go away. Noone cared to address the situation
and of course the same old answer "diferent isps use diferent pppoe
implementations" was the easy answer to leave the question unanswered.

The 90% of home office internet conections are have to do with pppoe crapy dsl
implementetions at least here in Europe.

Despite that I have never found a single windows xp box to not work
properly with
these "crapy implementations" no matter to whatever adsl provider
someone wants to
conect to, and without the need for any extra drivers to be installed
concerning these diferrent isps.

So from the openbsd 3.4 release I have instaled Openbsd as a router
(suggested by me)
to different small offices succesfully and  despite the Openbsd pppoe
risk that these boxes will never see the Internet world.
I just hoped and trusted the community, that someone
will go and support the first thing that an os must be capable of, to
conect to the internet
using an available ISP. I hoped that someone in the community will fix
the problems so
will come one day that we can use an openbsd box to conect to the Internet
without praying or going after that to a doctor for a nervous breakdown.

So 3.5 -> 3.6 -> 3.7 -> 3.8 and now I am afraid to tell my clients to update.
No matter what usefull things the new releases have if I can not
conect them to the Internet the only option is to call microsoft to
apply for the licencing program...

THE ONLY THING THAT CHANGES FROM RELEASE TO RELEASE
IN OPENBSD PPPOE IS THE ERROR MESSAGES AFTER A SUCCESSFUL
CONECTION IS MADE.

I am so disappointed with this,  as every now and then in these years
I read posts in the list, from the newbie trying to install an openbsd
box for the first time, as users that are very familiar with openbsd
like myself, crying out "the pppoe implementation in openbsd is
broken".

An answer to all these people:
IS PPP OPENBSD IMPLEMENTATION BROKEN?

YES IT IS NO MATTER WHAT YOU READ IN THE LIST.
YES IT IS AND NO ONE CARES.
YES YOU HAVE DONE NOTHING WRONG IN YOUR CONFIGURATION,
THE ERRORS ARE NOT THERE FOR DEBUGGING JUST FOR SEEING THEM.

On openbsd 3.9 I can conect through pppoe(userland) to my ISP
everything works fine
but I can not download more than 250KB/s despite that my line is
capable of 2000KB/s.
In a 3.5 box same configuration same ISP I am capable of 2000KB/s. May
I must downgrade?

I myself want to ask whats the meaning of an os secure and capable of tasks if
I can not conect to an ISP using the way that 90% of Inernet users use
in this world.

I have spend another week trying to resolve another pppoe problem,
where everything seems to work fine as always, but as always in
openbsd's  pppoe something goes wrong.

Of course if I conect my modem to a wondows xp "stupid insecure pc" or
to e "Unix based
"Powerbook" and I experince no such problems.

I called my ISP after the line was installed and complain that my line
dont work ok and now
I think I may be have to call them and tell them that I just used a
stupid os that cant do
what the most "stupid" oses can DO.

I needed to write this after 5 years of seeing the community to ignore
the needs of its users. We have donated, support it and continue to do
so. We have no right to demand things but I think we have the right to
alert the community as definitily with this matter something IS
DEFINITELY wrong.

I think that the 50% of Openbsd users use pppoe conections and I thing
that the 10%
of us use for example IPSEC. Despite that IPSEC works far better than
establishing a dsl conection and download at proper rates.
And I am sure that this mail will be ignored as the 98329389283
mails in this list that noone answer and you can find in the list
remaining for ever unanswered.

So just I am Asking kindly again after 5 years.

Will be a way to establish a dsl broadband conection from an openbsd gateway
to an ISP without errors and problems ever in the future like the 99%
of all other OSes
(even those that are not deticated to networking as OpenBsd) CAN? OR NOT?

Even if the abswer is NO I will be greatefull as many other users to know
that so we can make our ways out of this OSas there are some thing in
OS world that some of us cant live without it.

Feel free not to comment.




libevent in OpenBSD/i386 3.9-release

2006-10-18 Thread Bruno Carnazzi

  Hi misc,

I'm currently playing with libevent and there is something that I
don't understand. I've made a small echo server using bufferevent_read
and bufferevent_write. Here's the read_handler :

  96 void
  97 client_read(struct bufferevent *bufev, void *arg)
  98 {
  99 char buf[BUFLEN];
 100 int n, p;
 101 n = bufferevent_read(bufev, buf, BUFLEN);
 102 p = bufferevent_write(bufev, buf, n);
 103
 104 logmsg(LOG_DEBUG, "client read %d bytes (%d write)", n, p);
 105 }

While this code works (echo some text), bufferevent_write() always return 0 !

This is confusing, because man event(3) says :

The bufferevent_write() function can be used to write data to the file
descriptor.  The data is appended to the output buffer and written to the
descriptor automatically as it becomes available for writing.  The
bufferevent_read() function is used to read data from the input buffer.
->  Both functions return the amount of data written or read.

Is my code broken or man page not accurate ?

Best regards,

Bruno.



Re: Happy Birthday OpenBSD!

2006-10-18 Thread Bruno Carnazzi

2006/10/18, ropers <[EMAIL PROTECTED]>:

On 18/10/06, Bob Beck <[EMAIL PROTECTED]> wrote:
> > Theo president ! :)
> >
> > What an interesting idea.  I would vote for him...
> >
>
> I wouldn't, and I count him as a friend. The president is a puppet
> whore of special interest groups and shitheads, made to manipulate to
> the lowest common denominator so the USA gets the government it
> deserves. Theo would go insane.

What makes you think that Bruno was referring to the US president?


In fact, I'm french :)



--> http://president.ir/eng/




Re: Happy Birthday OpenBSD!

2006-10-18 Thread Bruno Carnazzi

Theo president ! :)

2006/10/18, Edgars <[EMAIL PROTECTED]>:

Yee!

-Original message-
From: "Melameth, Daniel D." [EMAIL PROTECTED]
Date: Wed, 18 Oct 2006 15:40:01 +0300
To: misc@openbsd.org
Subject: Happy Birthday OpenBSD!

> Oct 18  OpenBSD born, Wednesday 08:37:01 GMT, 1995
>
>
> "OpenBSD turns not older with years, but newer every day." -Derived from
> an Emily Dickenson quote
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.




Re: ksh .profile not evaluated using screen, xterm or subshells

2006-10-16 Thread Bruno Carnazzi

2006/10/16, Paul de Weerd <[EMAIL PROTECTED]>:

On Mon, Oct 16, 2006 at 08:52:26PM +0400, Bruno Carnazzi wrote:
|   Hi misc,
|
| I export/alias some important stuff in my ksh .profile. It works
| normally, but since I run screen or xterm, my .profile is not
| evaluated (or even if I launch a sub-shell). I know there is a
| difference between login shell and sub shell but how can I have some
| environment variables and aliases in all context, everytime ?
|
| I use OpenBSD/i386 3.9-release's pdksh.

In your .profile :

export ENV=~/.kshrc

Now put your aliases etc. in your .kshrc. BTW, stuff you export in
.profile shoud be available to you in your subshells.


Thank you Paul, your method works perfectly in all case.
This point is also well explained in man ksh(1).

Now, I can have a fortune for login shell only :)

Best regards,

Bruno.



Cheers,

Paul 'WEiRD' de Weerd

--
>[<++>-]<+++.>+++[<-->-]<.>+++[<+
+++>-]<.>++[<>-]<+.--.[-]
 http://www.weirdnet.nl/




ksh .profile not evaluated using screen, xterm or subshells

2006-10-16 Thread Bruno Carnazzi

  Hi misc,

I export/alias some important stuff in my ksh .profile. It works
normally, but since I run screen or xterm, my .profile is not
evaluated (or even if I launch a sub-shell). I know there is a
difference between login shell and sub shell but how can I have some
environment variables and aliases in all context, everytime ?

I use OpenBSD/i386 3.9-release's pdksh.

Best regards,

Bruno.



dmesg2dot

2006-10-15 Thread Bruno Carnazzi

  Hi misc,

Here's a small awk script that convert OpenBSD dmesg into graphviz dot format.
Just for sharing and/or comments...

Best regards,

Bruno.

#!/usr/bin/awk -f

BEGIN { unknow=0; print "digraph dmesg {"; }
{ if ($2 == "at") {
   dev=$1; pdev=$3; desc=$0;
   sub(/:/, "", pdev);
   gsub(/"/, "\\\"", desc);
   if (dev == "\"unknown\"") { dev = "unknow" unknow++; }
   printf "\t%s [label=\"%s\"];\n\t%s -> %s;\n", dev, desc, pdev, dev;
   }
}
END { print "}" }



C unit tests seen by OpenBSD developpers

2006-10-13 Thread Bruno Carnazzi

  Hi misc,

I'm currently learning C. In many languages, you hear lots of stuff
likes 'unit testing', 'refactoring', 'agile  programming' and
others... It seems that these techniques are not very present in C
programming (whereas check framework is in packages, it seems too
complex) Looking quickly at the OpenBSD's CVS, I found no unit test. I
won't debate on the merit or cost of this approach, and I'm not really
fond of it (add not-so-usefull complexity) but I'm just curious to
know why OpenBSD developpers choose to not use this technique for
userland tools (for kernel, it's obvious :).

Best regards,

Bruno.



Re: graphviz rendering of installed ports dependencies

2006-10-08 Thread Bruno Carnazzi

Note there is a problem when graphing application dependencies (-D
option) . Graphviz can not draw nodes that are shared in multiples
subgraph (ie : shared library used by multiple application).

So, this functionnality only works for simple installations.

Explanation : 
https://mailman.research.att.com/pipermail/graphviz-interest/2006q1/003421.html

Best regards,

Bruno.

2006/10/8, Bruno Carnazzi <[EMAIL PROTECTED]>:

Now, with colored nodes, colored dependencies, and options handling :


[SNIP]





2006/10/8, Bruno Carnazzi <[EMAIL PROTECTED]>:
> Now, with colors :
>
>[SNIP]
>
>
> 2006/10/8, Bruno Carnazzi <[EMAIL PROTECTED]>:
> > First blood :
> >
> > [SNIP]
> >
> > But for my big packages set, it does not produce a beautiful graph.
> > Someone know how to beautify it ?
> >
> > Thank you,
> >
> > Bruno.
> >
> > Attached, my generated dot file (gosh ! gdm is really a pig !) :
> >
> [SNIP]
> >
> > 2006/10/7, Matthias Kilian <[EMAIL PROTECTED]>:
> > > On Sat, Oct 07, 2006 at 10:32:21PM +0400, Bruno Carnazzi wrote:
> > > > Someone knows if this kind of stuff already exists ?
> > >
> > > I just found this one (old, untested, and after all *not* supported,
> > > since it seems to directly access /var/db/pkg):
> > >
> > > http://vgai.de/gpkgview.sh
> > >
> > > Ciao,
> > > Kili




Re: graphviz rendering of installed ports dependencies

2006-10-08 Thread Bruno Carnazzi

Now, with colored nodes, colored dependencies, and options handling :

#!/bin/sh

PROGNAME=$(basename $0)

NODE_COLOR=0
DEP_COLOR=0
TOP_COL=greenyellow
BOTTOM_COL=firebrick
DEP_COL=lightgrey

TOP_PKGS=""

get_fulldepends() {
   FULLDEP=
   STEP=$(pkg_info -f $1 | grep '@depend'  | cut -d':' -f3 | tr '\n' ' ')

   until [ -z "$STEP" ] ; do
   DEP=$(echo $STEP | cut -d' ' -f1)
   echo $FULLDEP | grep $DEP > /dev/null
   if [ $? -ne 0 ] ; then
   FULLDEP="$FULLDEP $DEP"
   STEP="$STEP $(pkg_info -f $DEP | grep
'@depend'  | cut -d':' -f3 | tr '\n' ' ')"
   fi
   STEP=$(echo $STEP | cut -s -d' ' -f2- | tr -d  '\n')
   done
   echo $FULLDEP
}

ARGS=$(getopt nDb:d:t: $*)
if [ $? -ne 0 ] ; then
   echo "$PROGNAME [-nD] [-b color] [-d color] [-t color]"
   exit 2
fi
set -- $ARGS
for i
do
   case "$i"
   in
   -n)
   NODE_COLOR=1
   shift;;
   -D)
   DEP_COLOR=1
   shift;;
   -b)
   NODE_COLOR=1
   BOTTOM_CO=$2; shift; shift;;
   -d)
   DEP_COLOR=1
   DEP_COL=$2 ; shit; shift;;
   -t)
   NODE_COLOR=1
   TOP_COL=$2; shift; shift;;
   --)
   shift; break;;
   esac
done


echo "digraph pkg_dep"
echo "{"

for PKG in $(pkg_info | cut -d' ' -f1) ; do
   PKG_INFO=$(pkg_info -c $PKG | tail -n+4 | tr -s '\n')
   echo "\t\"$PKG\" [label=\"$PKG\\\n$PKG_INFO\"];"
   REQ_BY=""
   for REQ_BY in $(pkg_info -R $PKG | tail -n+4 | tr -s '\n') ; do
   echo "\t\"$REQ_BY\" -> \"$PKG\";"
   done
   if [ -z "$REQ_BY" ] ; then
   TOP_PKGS="$TOP_PKGS $PKG"
   fi
   if [ $NODE_COLOR -eq 1 ] ; then
   REQ=$(pkg_info -f $PKG | grep '@depend' | cut -d':' -f3)
   if [ -z "$REQ_BY" ] ; then
   echo "\t\"$PKG\" [color=\"$TOP_COL\",
style=\"filled\"];"
   elif [ -z "$REQ" ] ; then
   echo "\t\"$PKG\" [color=\"$BOTTOM_COL\",
style=\"filled\"];"
   fi
   fi
done

if [ $DEP_COLOR -eq 1 ] ; then
   for PKG in $TOP_PKGS ; do
   echo
   echo "\tsubgraph \"cluster_$PKG\""
   echo "\t{"
   echo "\t\tstyle=filled;"
   echo "\t\tcolor=$DEP_COL;"
   echo "\t\tlabel=\"all-$PKG\";"
   echo "\t\t\"$PKG\";"
   for P in $(get_fulldepends $PKG) ; do
   echo "\t\t\"$P\";"
       done
   echo "\t}"
   done
fi

echo "}"

exit 0




2006/10/8, Bruno Carnazzi <[EMAIL PROTECTED]>:

Now, with colors :

[SNIP]


2006/10/8, Bruno Carnazzi <[EMAIL PROTECTED]>:
> First blood :
>
> [SNIP]
>
> But for my big packages set, it does not produce a beautiful graph.
> Someone know how to beautify it ?
>
> Thank you,
>
> Bruno.
>
> Attached, my generated dot file (gosh ! gdm is really a pig !) :
>
[SNIP]
>
> 2006/10/7, Matthias Kilian <[EMAIL PROTECTED]>:
> > On Sat, Oct 07, 2006 at 10:32:21PM +0400, Bruno Carnazzi wrote:
> > > Someone knows if this kind of stuff already exists ?
> >
> > I just found this one (old, untested, and after all *not* supported,
> > since it seems to directly access /var/db/pkg):
> >
> > http://vgai.de/gpkgview.sh
> >
> > Ciao,
> > Kili




Re: graphviz rendering of installed ports dependencies

2006-10-08 Thread Bruno Carnazzi

Now, with colors :

#!/bin/sh

TOP_COLOR=greenyellow
BOTTOM_COLOR=firebrick

echo "digraph pkg_dep"
echo "{"

for PKG in $(pkg_info | cut -d' ' -f1) ; do
   PKG_INFO=$(pkg_info -c $PKG | tail -n+4 | tr -s '\n')
   echo "\t\"$PKG\" [label=\"$PKG\\\n$PKG_INFO\"];"
   REQ_BY=""
   for REQ_BY in $(pkg_info -R $PKG | tail -n+4 | tr -s '\n') ; do
   echo "\t\"$REQ_BY\" -> \"$PKG\";"
   done
   REQ=$(pkg_info -f $PKG | grep '@depend' | cut -d' ' -f2 | cut -d':' -f3)
   if [ -z "$REQ_BY" ] ; then
   echo "\t\"$PKG\" [color=\"$TOP_COLOR\", style=\"filled\"];"
   elif [ -z "$REQ" ] ; then
   echo "\t\"$PKG\" [color=\"$BOTTOM_COLOR\", style=\"filled\"];"
   fi
done

echo "}"



2006/10/8, Bruno Carnazzi <[EMAIL PROTECTED]>:

First blood :

#!/bin/sh

echo "digraph pkg_dep"
echo "{"

for PKG in $(pkg_info | cut -d' ' -f1)
do
PKG_INFO=$(pkg_info -c $PKG | tail -n+4 | tr -s '\n')
echo "\t\"$PKG\" [label=\"$PKG\\\n$PKG_INFO\"];"
for REQ_BY in $(pkg_info -R $PKG | tail -n+4 | tr -s '\n')
do
echo "\t\"$REQ_BY\" -> \"$PKG\";"
done
done

echo "}"

But for my big packages set, it does not produce a beautiful graph.
Someone know how to beautify it ?

Thank you,

Bruno.

Attached, my generated dot file (gosh ! gdm is really a pig !) :


[SNIP]


2006/10/7, Matthias Kilian <[EMAIL PROTECTED]>:
> On Sat, Oct 07, 2006 at 10:32:21PM +0400, Bruno Carnazzi wrote:
> > Someone knows if this kind of stuff already exists ?
>
> I just found this one (old, untested, and after all *not* supported,
> since it seems to directly access /var/db/pkg):
>
> http://vgai.de/gpkgview.sh
>
> Ciao,
> Kili




Re: graphviz rendering of installed ports dependencies

2006-10-07 Thread Bruno Carnazzi
s-4.2.3p1" -> "libxfce4mcs-4.2.3p0";
"xffm-4.2.3p3" -> "libxfce4mcs-4.2.3p0";
"xfce4-session-4.2.3p1" -> "libxfce4mcs-4.2.3p0";
"xfwm4-4.2.3.2p0" -> "libxfce4mcs-4.2.3p0";
"xfce4-panel-4.2.3p1" -> "libxfce4mcs-4.2.3p0";
"xfcalendar-4.2.3p1" -> "libxfce4mcs-4.2.3p0";
"xfce-mcs-manager-4.2.3p1" -> "libxfce4mcs-4.2.3p0";
"xfdesktop-4.2.3p2" -> "libxfce4mcs-4.2.3p0";
"libxfce4util-4.2.3.2" [label="libxfce4util-4.2.3.2\nbasic utility
library for xfce4"];
"xfce-utils-4.2.3p1" -> "libxfce4util-4.2.3.2";
"xfce4-netload-0.3.3p1" -> "libxfce4util-4.2.3.2";
"xffm-4.2.3p3" -> "libxfce4util-4.2.3.2";
"xfce4-panel-4.2.3p1" -> "libxfce4util-4.2.3.2";
"xfce4-fsguard-0.2.1p1" -> "libxfce4util-4.2.3.2";
"xfcalendar-4.2.3p1" -> "libxfce4util-4.2.3.2";
"xfdesktop-4.2.3p2" -> "libxfce4util-4.2.3.2";
"xfce4-datetime-0.3.1p3" -> "libxfce4util-4.2.3.2";
"libxfcegui4-4.2.3p2" -> "libxfce4util-4.2.3.2";
"xfce4-session-4.2.3p1" -> "libxfce4util-4.2.3.2";
"libxfce4mcs-4.2.3p0" -> "libxfce4util-4.2.3.2";
"xfwm4-4.2.3.2p0" -> "libxfce4util-4.2.3.2";
"xfce4-diskperf-1.5p3" -> "libxfce4util-4.2.3.2";
"xfce4-systemload-0.3.6p3" -> "libxfce4util-4.2.3.2";
"xfce-mcs-manager-4.2.3p1" -> "libxfce4util-4.2.3.2";
"libxfcegui4-4.2.3p2" [label="libxfcegui4-4.2.3p2\n"];
"xfce-utils-4.2.3p1" -> "libxfcegui4-4.2.3p2";
"xfce4-netload-0.3.3p1" -> "libxfcegui4-4.2.3p2";
"xffm-4.2.3p3" -> "libxfcegui4-4.2.3p2";
"xfce4-panel-4.2.3p1" -> "libxfcegui4-4.2.3p2";
"xfce4-fsguard-0.2.1p1" -> "libxfcegui4-4.2.3p2";
"xfcalendar-4.2.3p1" -> "libxfcegui4-4.2.3p2";
"xfdesktop-4.2.3p2" -> "libxfcegui4-4.2.3p2";
"xfce4-datetime-0.3.1p3" -> "libxfcegui4-4.2.3p2";
"xfce4-session-4.2.3p1" -> "libxfcegui4-4.2.3p2";
"xfwm4-4.2.3.2p0" -> "libxfcegui4-4.2.3p2";
"xfce4-diskperf-1.5p3" -> "libxfcegui4-4.2.3p2";
"xfce4-systemload-0.3.6p3" -> "libxfcegui4-4.2.3p2";
"xfce-mcs-manager-4.2.3p1" -> "libxfcegui4-4.2.3p2";
"libxml-2.6.16p8" [label="libxml-2.6.16p8\nXML parsing library"];
"xfce4-netload-0.3.3p1" -> "libxml-2.6.16p8";
"libgnomeprintui-2.10.2p2" -> "libxml-2.6.16p8";
"libgnomeprint-2.10.3p0" -> "libxml-2.6.16p8";
"gnome-vfs2-2.10.1p0" -> "libxml-2.6.16p8";
"xfce4-panel-4.2.3p1" -> "libxml-2.6.16p8";
"gdm-2.6.0.9p2" -> "libxml-2.6.16p8";
"xfdesktop-4.2.3p2" -> "libxml-2.6.16p8";
"libgsf-1.11.1p2" -> "libxml-2.6.16p8";
"libbonobo-2.10.1p0" -> "libxml-2.6.16p8";
"vlc-0.8.4ap3" -> "libxml-2.6.16p8";
"libgnomecanvas-2.10.2p1" -> "libxml-2.6.16p8";
"libbonoboui-2.10.1p1" -> "libxml-2.6.16p8";
"libgnome-2.10.0p0" -> "libxml-2.6.16p8";
"xfce4-diskperf-1.5p3" -> "libxml-2.6.16p8";
"shared-mime-info-0.15" -> "libxml-2.6.16p8";
"xfce4-systemload-0.3.6p3" -> "libxml-2.6.16p8";
"libxslt-1.1.12p3" -> "libxml-2.6.16p8";
"gconf2-2.10.1p1" -> "libxml-2.6.16p8";
"abiword-2.4.2" -> "libxml-2.6.16p8";
"xffm-4.2.3p3" -> "libxml-2.6.16p8";
"xfce4-fsguard-0.2.1p1" -> "libxml-2.6.16p8";
"librsvg-2.9.5p4" -> "libxml-2.6.16p8";
"libglade2-2.5.1p4" -> "libxml-2.6.16p8";
"xfce4-datetime-0.3.1p3" -> "libxml-2.6.16p8";
"docbook-4.2p2" -> "libxml-2.6.16p8";
"libgnomeui-2.10.1p1" -> "libxml-2.6.16p8";
"scrollkeeper-0.3.14p2" -> "libxml-2.6.16p8";
"libxslt-1.1.12p3" [label="libxslt-1.1.12p3\n"];
"scrollkeeper-0.3.14p2" -> "libxslt-1.1.12p3";
"mozilla-firefox-1.5.0.7" [label="mozilla-firefox-1.5.0.7\nredesign
of Mozilla's browser component"];
"pango-1.10.2p0" [label="pango-1.10.2p0\n"];
"xfce-utils-4.2.3p1" -> "pango-1.10.2p0";
"xfce4-netload-0.3.3p1" -> "pango-1.10.2p0";
"libgnomeprintui-2.10.2p2" -> "pango-1.10.2p0";
"libgnomeprint-2.10.3p0" -> "pango-1.10.2p0";
"xfce4-panel-4.2.3p1" -> "pango-1.10.2p0";
"gdm-2.6.0.9p2" -> "pango-1.10.2p0";
"mozilla-firefox-1.5.0.7" -> "pango-1.10.2p0";
"gnome-keyring-0.4.4p1" -> "pango-1.10.2p0";
"xfdesktop-4.2.3p2" -> "pango-1.10.2p0";
"libxfcegui4-4.2.3p2" -> "pango-1.10.2p0";
"gtk+2-2.6.10p1" -> "pango-1.10.2p0";
"libgnomecanvas-2.10.2p1" -> "pango-1.10.2p0";
"libbonoboui-2.10.1p1" -> "pango-1.10.2p0";
"xfce4-diskperf-1.5p3" -> "pango-1.10.2p0";
"xfce4-systemload-0.3.6p3" -> "pango-1.10.2p0";
"gconf2-2.10.1p1" -> "pango-1.10.2p0";
"abiword-2.4.2" -> "pango-1.10.2p0";
"xfce-mcs-manager-4.2.3p1" -> "pango-1.10.2p0";
"xffm-4.2.3p3" -> "pango-1.10.2p0";
"xfce4-fsguard-0.2.1p1" -> "pango-1.10.2p0";
"xfcalendar-4.2.3p1" -> "pango-1.10.2p0";
"librsvg-2.9.5p4" -> "pango-1.10.2p0";
"vim-6.4.6p1-gtk2" -> "pango-1.10.2p0";
"libglade2-2.5.1p4" -> "pango-1.10.2p0";
"xfce4-session-4.2.3p1" -> "pango-1.10.2p0";
"xfce4-datetime-0.3.1p3" -> "pango-1.10.2p0";
"xfwm4-4.2.3.2p0" -> "pango-1.10.2p0";
"libgnomeui-2.10.1p1" -> "pango-1.10.2p0";
"png-1.2.8p0" [label="png-1.2.8p0\nlibrary for manipulating PNG 
images"];
"gtk+2-2.6.10p1" -> "png-1.2.8p0";
"vlc-0.8.4ap3" -> "png-1.2.8p0";
"sdl-image-1.2.4p0" -> "png-1.2.8p0";
"cairo-1.0.2p0" -> "png-1.2.8p0";
"mozilla-firefox-1.5.0.7" -> "png-1.2.8p0";
"pango-1.10.2p0" -> "png-1.2.8p0";
"abiword-2.4.2" -> "png-1.2.8p0";
"popt-1.7p0" [label="popt-1.7p0\ngetopt(3)-like library with a number
of enhancements"];
"libgnomeprint-2.10.3p0" -> "popt-1.7p0";
"gnome-vfs2-2.10.1p0" -> "popt-1.7p0";
"gdm-2.6.0.9p2" -> "popt-1.7p0";
"librsvg-2.9.5p4" -> "popt-1.7p0";
"ORBit2-2.12.2p1" -> "popt-1.7p0";
"libbonobo-2.10.1p0" -> "popt-1.7p0";
"libbonoboui-2.10.1p1" -> "popt-1.7p0";
"libgnome-2.10.0p0" -> "popt-1.7p0";
"libgnomeui-2.10.1p1" -> "popt-1.7p0";
"gconf2-2.10.1p1" -> "popt-1.7p0";
"abiword-2.4.2" -> "popt-1.7p0";
"pstree-2.17p1" [label="pstree-2.17p1\nlist processes as a tree"];
"screen-4.0.2" [label="screen-4.0.2\nmulti-screen window manager"];
"scrollkeeper-0.3.14p2" [label="scrollkeeper-0.3.14p2\n"];
"gdm-2.6.0.9p2" -> "scrollkeeper-0.3.14p2";
"sdl-1.2.9p1-sun" [label="sdl-1.2.9p1-sun\ncross-platform multimedia 
library"];
"vlc-0.8.4ap3" -> "sdl-1.2.9p1-sun";
"ffmpeg-20050413" -> "sdl-1.2.9p1-sun";
"sdl-image-1.2.4p0" -> "sdl-1.2.9p1-sun";
"sdl-mixer-1.2.6p3" -> "sdl-1.2.9p1-sun";
"smpeg-0.4.4p2" -> "sdl-1.2.9p1-sun";
"sdl-net-1.2.5p2" -> "sdl-1.2.9p1-sun";
"wesnoth-1.0p1" -> "sdl-1.2.9p1-sun";
"sdl-image-1.2.4p0" [label="sdl-image-1.2.4p0\n"];
"vlc-0.8.4ap3" -> "sdl-image-1.2.4p0";
"wesnoth-1.0p1" -> "sdl-image-1.2.4p0";
"sdl-mixer-1.2.6p3" [label="sdl-mixer-1.2.6p3\n"];
"wesnoth-1.0p1" -> "sdl-mixer-1.2.6p3";
"sdl-net-1.2.5p2" [label="sdl-net-1.2.5p2\nSDL cross-platform
networking library"];
"wesnoth-1.0p1" -> "sdl-net-1.2.5p2";
"shared-mime-info-0.15" [label="shared-mime-info-0.15\nShared mime
database for desktops"];
"gnome-vfs2-2.10.1p0" -> "shared-mime-info-0.15";
"smpeg-0.4.4p2" [label="smpeg-0.4.4p2\nmpeg video player library with
sound support"];
"sdl-mixer-1.2.6p3" -> "smpeg-0.4.4p2";
"startup-notification-0.8" [label="startup-notification-0.8\nlibrary
for tracking application startup"];
"xfce-utils-4.2.3p1" -> "startup-notification-0.8";
"xfce4-netload-0.3.3p1" -> "startup-notification-0.8";
"xffm-4.2.3p3" -> "startup-notification-0.8";
"xfce4-panel-4.2.3p1" -> "startup-notification-0.8";
"xfce4-fsguard-0.2.1p1" -> "startup-notification-0.8";
"xfcalendar-4.2.3p1" -> "startup-notification-0.8";
"xfdesktop-4.2.3p2" -> "startup-notification-0.8";
"libxfcegui4-4.2.3p2" -> "startup-notification-0.8";
"xfce4-datetime-0.3.1p3" -> "startup-notification-0.8";
"xfce4-session-4.2.3p1" -> "startup-notification-0.8";
"xfwm4-4.2.3.2p0" -> "startup-notification-0.8";
"xfce4-diskperf-1.5p3" -> "startup-notification-0.8";
"xfce4-systemload-0.3.6p3" -> "startup-notification-0.8";
"xfce-mcs-manager-4.2.3p1" -> "startup-notification-0.8";
"tiff-3.7.3p1" [label="tiff-3.7.3p1\ntools and library routines for
working with TIFF images"];
"gtk+2-2.6.10p1" -> "tiff-3.7.3p1";
"sdl-image-1.2.4p0" -> "tiff-3.7.3p1";
"vim-6.4.6p1-gtk2" [label="vim-6.4.6p1-gtk2\nvi clone, many
additional features"];
"vlc-0.8.4ap3" [label="vlc-0.8.4ap3\nvideolan client; multimedia 
player"];
"wesnoth-1.0p1" [label="wesnoth-1.0p1\nstrategy game with fantasy 
theme"];
"xfcalendar-4.2.3p1" [label="xfcalendar-4.2.3p1\nsimple calendar
application with reminders for xfce4"];
"xfce-mcs-manager-4.2.3p1" [label="xfce-mcs-manager-4.2.3p1\nsettings
manager for xfce4"];
"xfce-utils-4.2.3p1" -> "xfce-mcs-manager-4.2.3p1";
"xffm-4.2.3p3" -> "xfce-mcs-manager-4.2.3p1";
"xfce4-session-4.2.3p1" -> "xfce-mcs-manager-4.2.3p1";
"xfwm4-4.2.3.2p0" -> "xfce-mcs-manager-4.2.3p1";
"xfce4-panel-4.2.3p1" -> "xfce-mcs-manager-4.2.3p1";
"xfcalendar-4.2.3p1" -> "xfce-mcs-manager-4.2.3p1";
"xfdesktop-4.2.3p2" -> "xfce-mcs-manager-4.2.3p1";
"xfce-utils-4.2.3p1" [label="xfce-utils-4.2.3p1\nessential utilities
and scripts for xfce4"];
"xfce4-datetime-0.3.1p3" [label="xfce4-datetime-0.3.1p3\nshows the
date and time in the xfce4 panel"];
"xfce4-diskperf-1.5p3" [label="xfce4-diskperf-1.5p3\ndisplays instant
disk performance in the xfce4 panel"];
"xfce4-fsguard-0.2.1p1" [label="xfce4-fsguard-0.2.1p1\nmonitors a
chosen mountpoint for free disk space"];
"xfce4-icon-theme-4.2.3" [label="xfce4-icon-theme-4.2.3\nicon theme
for xfce4"];
"xfce4-netload-0.3.3p1" [label="xfce4-netload-0.3.3p1\ndisplays load
of a network interface in the xfce4 panel"];
"xfce4-panel-4.2.3p1" [label="xfce4-panel-4.2.3p1\nxfce4 panel"];
"xfce4-icon-theme-4.2.3" -> "xfce4-panel-4.2.3p1";
"xfce4-netload-0.3.3p1" -> "xfce4-panel-4.2.3p1";
"xfce4-datetime-0.3.1p3" -> "xfce4-panel-4.2.3p1";
"xfce4-diskperf-1.5p3" -> "xfce4-panel-4.2.3p1";
"xfce4-fsguard-0.2.1p1" -> "xfce4-panel-4.2.3p1";
"xfce4-systemload-0.3.6p3" -> "xfce4-panel-4.2.3p1";
"xfdesktop-4.2.3p2" -> "xfce4-panel-4.2.3p1";
"xfce4-session-4.2.3p1" [label="xfce4-session-4.2.3p1\nxfce4 session 
manager"];
"xfce4-systemload-0.3.6p3" [label="xfce4-systemload-0.3.6p3\ndisplays
cpu/memory/swap/uptime in xfce4 panel"];
"xfdesktop-4.2.3p2" [label="xfdesktop-4.2.3p2\n"];
"xffm-4.2.3p3" [label="xffm-4.2.3p3\n"];
"xfwm4-4.2.3.2p0" [label="xfwm4-4.2.3.2p0\nxfce4 window manager"];
"xfwm4-themes-4.2.3" -> "xfwm4-4.2.3.2p0";
"xfwm4-themes-4.2.3" [label="xfwm4-themes-4.2.3\nwindow decoration
themes for xfwm4"];
"zipios++-0.1.5.9p0" [label="zipios++-0.1.5.9p0\njava-like zip 
interface"];
"wesnoth-1.0p1" -> "zipios++-0.1.5.9p0";
}

2006/10/7, Matthias Kilian <[EMAIL PROTECTED]>:

On Sat, Oct 07, 2006 at 10:32:21PM +0400, Bruno Carnazzi wrote:
> Someone knows if this kind of stuff already exists ?

I just found this one (old, untested, and after all *not* supported,
since it seems to directly access /var/db/pkg):

http://vgai.de/gpkgview.sh

Ciao,
Kili




Re: graphviz rendering of installed ports dependencies

2006-10-07 Thread Bruno Carnazzi

sorry,

s/ports/packages/

2006/10/7, Bruno Carnazzi <[EMAIL PROTECTED]>:

   Hi misc,

Someone knows if this kind of stuff already exists ?

Best regards,

Bruno.




graphviz rendering of installed ports dependencies

2006-10-07 Thread Bruno Carnazzi

  Hi misc,

Someone knows if this kind of stuff already exists ?

Best regards,

Bruno.



Slogan for OpenBSD goodies

2006-10-05 Thread Bruno Carnazzi

   Hi misc,

I was thinking to a slogan that could be printed on some openbsd goodies :

"Free software can't exist without Free hardware."

I think this is really the core of the current free software problem.

Best regards,

Bruno.



Re: Letter to OLPC

2006-10-05 Thread Bruno Carnazzi

2006/10/5, Theo de Raadt <[EMAIL PROTECTED]>:

I have decided to make public this letter which I sent to the OLPC
("One Laptop Per Child" group, which is strongly associated with Red
Hat.


OLPC seems to be in fact "One Laptop Per Customer". I'm tired of this
wonderful human capacity to transform most beautiful ideas into bunch
of commercial shit.

Don't discourage.

Best regards,

Bruno.



There have been replies to it by both Jim Gettys (argueing that their
expediency is justified) and RMS (agreeing strongly with my point of
view), but I will not disclose their letters.

I am getting really tired of "open source" people who work against the
open source community.  Our little group can probably take credit for
having "opened up" more wireless devices than the rest of the
community, and therefore we feel we have a better grasp of the damage
OLPC has done here.  Our reverse engineering and documentation efforts
will in time help all free software projects.

Please take note, and publish if you wish.  Thanks.

---
To: Jonathan Gray <[EMAIL PROTECTED]>
cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
cc: [EMAIL PROTECTED]
cc: deraadt
Subject: Re: Marvell 88W8388 documentation
In-reply-to: Your message of "Thu, 14 Sep 2006 22:47:00 +1000."
 <[EMAIL PROTECTED]>
Date: Wed, 04 Oct 2006 12:38:34 -0600
From: Theo de Raadt <[EMAIL PROTECTED]>

> Please correct me if I am wrong but it seems that documentation
> for Marvell's 88W8388's is not publically available without
> signing an NDA?
>
> If this is the case why did a project that seems to pride
> itself of openess agree to deal with such a company?
> Drivers written under NDA tend to be full of magic numbers,
> near impossible for others to properly maintain and
> totally against the spirit of open projects.
>
> I really think you should push for Marvell to give out
> documentation without them forcing NDAs onto people.
> Failing that I'm sure there are other vendors
> who would be willing to be more helpful.

Jonathan showed me this mail he sent you about your NDA "cooperation"
with Marvell for the wireless chip that you want to use for the OLPC
project, so that Marvell will write you special hacks to do low-power
mesh networking while the main cpu is powered off.  This does not
gaurantee Marvell is going to be open and release documentation for
their chips though.

When large players like you make such private agreements with such
secretive vendors, you work against our common goals of getting more
open documentation for devices.  It is only with open documentation
that OS groups can increase device support, and later -- keep the
device drivers reliable after the device is EOL'd by the vendor.

I've heard claims that you (OLPC members, Red Hat employees) think
this relationship with Marvell will eventually prompt/teach them to be
more open in time.  Do you not realize how much of a DELUSION the
history of free/open operating systems shows that point of view to be?
Very few chip vendors have ever opened up unless they were pushed, let
alone Marvell (who I  am led to believe also has NDA's with Red Hat
employees for the Marvell Yukon/Yukon 2 gigabit ethernet chips --
again one of the few closed chips).

It is clear that your choices are not about opening up Marvell, but
simply commercially expedient and hurtful to our common cause.  You
came to Marvell with potential sales of millions of units, and then
completely wimped out in demanding ideals that you say you share with
the community.  Now other companies like Intel, Broadcom, and TI can
say to us "Why should we open up, Marvell did not have to".

So I must say I am extremely dissapointed you have chosen to work
against the very obvious goals of "open", and I hope that in time you
are made to feel ashamed of the choice you have made.




[Love Letter] Functionnality vs State of mind

2006-10-04 Thread Bruno Carnazzi

Hi misc,

I'd just like to say that nowadays, in free software world (real free
software, not open source), from my point of view, I feel you have to
choose between "featurefullness" and state of mind. By state of mind,
I mean project goals and moral values. From this point of view, I love
OpenBSD operating system, they are the core of the free software ideas
and values. I have a Linux background, and despite Linux
featurefullness, I feel it's a technical mess (blobs, unstable api,
desynched userland/kernel) and Linux is getting more and more
money-driven by big companies such as IBM, HP & friends... This is not
free software values from my point of view. Free software is about
code, knowledge and people. Linux is about
functionnalities-through-blobs, NDA, and big companies. This is
definitively not a good way. I don't mind if OpenBSD lacks some stuff
right now. I can wait, and help.

Thank you for your contribution for building a more human world in
your technical area.

OpenBSD guys, you rules ! :)

Best regards,

Bruno.

PS: Excuse my approximative english (I try to improve !)



Re: internal modem

2006-10-04 Thread Bruno Carnazzi

2006/10/4, Fred Crowson <[EMAIL PROTECTED]>:

ivorob wrote:
>
> Ok, Thanks. I try to investigate this problem. If you have some links
> about WinModem programming and something about creating drivers in
> OpenBSD, please, send it me ;) Thanks in advance.
>
> PS. I built custom kernel because bluetooth driver was disabled in GENERIC.
>
> Best regards, Vorobyov Ivan.
>

Unfortunately I can't help you with programming.  Bluetooth was disabled
as it was broken, but there is good news on the bluetooth front - its is
being actively developed at the moment.


Great Bluetooth support will really enjoy me !

From my point of view, it's one of the biggest lack of OpenBSD at this

moment (with WPA too).

Can you elaborate on this point ?

Bruno.



Fred
--
OpenBSD on the Zaurus C3200
http://www.crowsons.net/puters/zaurus.php




Re: List of OpenBSD CVS commiters

2006-10-02 Thread Bruno Carnazzi

2006/10/2, Alexander Yurchenko <[EMAIL PROTECTED]>:

On Mon, Oct 02, 2006 at 01:12:40PM +0400, Bruno Carnazzi wrote:
>Hi all,
>
> Is there a way to get a list of the OpenBSD project CVS commiters per
> domain (kernel, userland, ports...) ? I think it could be usefull to
> have an idea of who's who...

http://www.oxide.org/cvs/


Whooo ! It rocks !
This url is going to my del.icio.us account :)

Thank you,

Bruno.



>
> Best regards,
>
> Bruno.

--
   Alexander Yurchenko




List of OpenBSD CVS commiters

2006-10-02 Thread Bruno Carnazzi

   Hi all,

Is there a way to get a list of the OpenBSD project CVS commiters per
domain (kernel, userland, ports...) ? I think it could be usefull to
have an idea of who's who...

Best regards,

Bruno.



Re: [OT] Raw socket programming

2006-10-01 Thread Bruno Carnazzi

2006/10/2, Joachim Schipper <[EMAIL PROTECTED]>:

On Sun, Oct 01, 2006 at 04:25:42PM +0400, Bruno Carnazzi wrote:
>  Hi misc,
>
> For my own education, I'm writing in C a PPTP proxy for pf-driven
> NAT-boxes, based on libevent. A PPTP session is made of a TCP control
> connection and a GRE tunnel. I've got no trouble handling the control
> connection, but I don't know how to handle GRE packets. Actually, I
> bind a first raw socket on 127.0.0.1, with protocol=IPPROTO_GRE,
> rdr'ing with pf all outgoing GRE packet from lan here. I can read GRE
> packets from this socket, great. The idea is to copy these packets on
> a second gre raw socket, binded on the wan interface ip address. I
> encounter these problems :
>  * How can I find my wan interface ip address ?
>  * How can I handle his dynamic nature ? (this is a pppoe(4) interface)
>  * How can I handle multiple wan ip address ?
>
> I though it should be possible to have only 1 "big" socket for the
> whole proxy, listening on 0.0.0.0 (is that equivalent to INADDR_ANY
> ?). Reading GRE packets from clients should be the same way as before,
> but what about writing GRE packets to servers ? Which source IP will
> be choosen for these packet ? I feel that this design is bad but I
> lack some raw socket background. I'd like the advice of sockets guru
> :)
>
> I've read this and didn't find something usefull :
> UNIX Socket FAQ : http://www.developerweb.net/forum/index.php

Why not just let pf(4) handle the forwarding? This is the way ftp-proxy
does it, and *way* more efficient than copying everything in userspace.


This is the core of the problem I try to solve. If you let pf(4)
handle the forwading of gre packets, it doesn't work for more than one
client. Your have to look at the call-id field in gre headers to
forward server-to-client packet to the correct client. My solution is
to do this work in userspace (easier for a first try) : receiving gre
packet, retrieve the related gre session and forward to the origin
client. Is there a way to be more pf-specific ?

Best regards,

Bruno.



Joachim




[OT] Raw socket programming

2006-10-01 Thread Bruno Carnazzi

 Hi misc,

For my own education, I'm writing in C a PPTP proxy for pf-driven
NAT-boxes, based on libevent. A PPTP session is made of a TCP control
connection and a GRE tunnel. I've got no trouble handling the control
connection, but I don't know how to handle GRE packets. Actually, I
bind a first raw socket on 127.0.0.1, with protocol=IPPROTO_GRE,
rdr'ing with pf all outgoing GRE packet from lan here. I can read GRE
packets from this socket, great. The idea is to copy these packets on
a second gre raw socket, binded on the wan interface ip address. I
encounter these problems :
 * How can I find my wan interface ip address ?
 * How can I handle his dynamic nature ? (this is a pppoe(4) interface)
 * How can I handle multiple wan ip address ?

I though it should be possible to have only 1 "big" socket for the
whole proxy, listening on 0.0.0.0 (is that equivalent to INADDR_ANY
?). Reading GRE packets from clients should be the same way as before,
but what about writing GRE packets to servers ? Which source IP will
be choosen for these packet ? I feel that this design is bad but I
lack some raw socket background. I'd like the advice of sockets guru
:)

I've read this and didn't find something usefull :
UNIX Socket FAQ : http://www.developerweb.net/forum/index.php

Best regards,

Bruno.



Re: usable winxp ipsec client... referenced in a message but I can't find the archive

2006-09-23 Thread Bruno Carnazzi

  Hello,

I've seen this in action and it seems to be quiet powerfull :
http://sourceforge.net/projects/lsipsectool/

Best regards,

Bruno.

2006/9/23, Peter Landry <[EMAIL PROTECTED]>:

Hello,
http://marc.theaimsgroup.com/?l=openbsd-misc&m=115409112232227&w=2
references a "usable" ipsec client for winxp in the archives, but I
can't find what it's referring to. Can anyone point me in the right
direction?

I'm tired of banging my head against ipseccmd.exe...

Thanks,
Peter L.




Re: Problem installing jre-1.5.0p9 without X11

2006-09-11 Thread Bruno Carnazzi

2006/9/11, Tobias Ulmer <[EMAIL PROTECTED]>:

On Mon, Sep 11, 2006 at 04:26:23PM +0400, Bruno Carnazzi wrote:
> Hi all,
>
> I'd like to install jre-1.5.0p9 on my production server, which are
> installed without X11. jre-1.5.0p9 relies on openmotif, which relies
> on X11. This jre will run tomcat webapps, so openmotif will not be
> really used.
>
> I try to install openmotif to satisfy dependencies with some force
> option, but it fails... Here's the log :
>
> $ sudo pkg_add -v -F libdepends,scripts openmotif
> parsing openmotif-2.1.30.5p1
> Can't install openmotif-2.1.30.5p1: lib not found ICE.8.1
> Even by looking in the dependency tree:
>
> Maybe it's in a dependent package, but not tagged with @lib ?
> (check with pkg_info -K -L)
> If you are still running 3.6 packages, update them.
> Can't install openmotif-2.1.30.5p1: lib not found SM.8.0
> Can't install openmotif-2.1.30.5p1: lib not found X11.9.0
> Can't install openmotif-2.1.30.5p1: lib not found Xext.9.0
> Can't install openmotif-2.1.30.5p1: lib not found Xp.9.0
> Can't install openmotif-2.1.30.5p1: lib not found Xt.9.0
> Not an ustar archive header
>
>openmotif-2.1.30.5p1: complete
> Adjusting md5 for /usr/local/lib/libXm.a from
> 34083b72a78e25556586ba1599ea2cf1 t
> o
> 5744ecff6c897cc215b94f56ef3c3df3
> --- openmotif-2.1.30.5p1 ---
> system(/bin/sh, -c, [ -f /usr/X11R6/lib/X11/config/Motif.rules ] &&
> (mv -f /usr/
>   X11R6/lib/X11/config/Motif.rules
> /usr/X11R6/lib/X11/config/Motif.rules.orig && c
>  p -p
> /usr/local/lib/X11/config/Motif.rules /usr/X11R6/lib/X11/config))
> failed:
>256
> system(/bin/sh, -c, [ -f /usr/X11R6/lib/X11/config/Motif.tmpl ] && (mv
> -f /usr/X
>11R6/lib/X11/config/Motif.tmpl
> /usr/X11R6/lib/X11/config/Motif.tmpl.orig && cp -
>p
> /usr/local/lib/X11/config/Motif.tmpl /usr/X11R6/lib/X11/config))
> failed:  256
> /usr/sbin/pkg_add: Installation of openmotif-2.1.30.5p1 failed ,
> partial install
>  ation recorded as partial-openmotif-2.1.30.5p1
> $
>
> Am I doom to install xbase ?
>
> Best regards,
>
> Bruno.
>
>

No, you can hack out all the GUI stuff in java easily. I did that on a
rainy saturday afternoon.


Is that possible to bypass X just with pkg_tools ?

Bruno.



Tobias

ps: sometimes... wow.




Problem installing jre-1.5.0p9 without X11

2006-09-11 Thread Bruno Carnazzi

Hi all,

I'd like to install jre-1.5.0p9 on my production server, which are
installed without X11. jre-1.5.0p9 relies on openmotif, which relies
on X11. This jre will run tomcat webapps, so openmotif will not be
really used.

I try to install openmotif to satisfy dependencies with some force
option, but it fails... Here's the log :

$ sudo pkg_add -v -F libdepends,scripts openmotif
parsing openmotif-2.1.30.5p1
Can't install openmotif-2.1.30.5p1: lib not found ICE.8.1
Even by looking in the dependency tree:

Maybe it's in a dependent package, but not tagged with @lib ?
(check with pkg_info -K -L)
If you are still running 3.6 packages, update them.
Can't install openmotif-2.1.30.5p1: lib not found SM.8.0
Can't install openmotif-2.1.30.5p1: lib not found X11.9.0
Can't install openmotif-2.1.30.5p1: lib not found Xext.9.0
Can't install openmotif-2.1.30.5p1: lib not found Xp.9.0
Can't install openmotif-2.1.30.5p1: lib not found Xt.9.0
Not an ustar archive header

   openmotif-2.1.30.5p1: complete
Adjusting md5 for /usr/local/lib/libXm.a from
34083b72a78e25556586ba1599ea2cf1 t
o
5744ecff6c897cc215b94f56ef3c3df3
--- openmotif-2.1.30.5p1 ---
system(/bin/sh, -c, [ -f /usr/X11R6/lib/X11/config/Motif.rules ] &&
(mv -f /usr/
  X11R6/lib/X11/config/Motif.rules
/usr/X11R6/lib/X11/config/Motif.rules.orig && c
 p -p
/usr/local/lib/X11/config/Motif.rules /usr/X11R6/lib/X11/config))
failed:
   256
system(/bin/sh, -c, [ -f /usr/X11R6/lib/X11/config/Motif.tmpl ] && (mv
-f /usr/X
   11R6/lib/X11/config/Motif.tmpl
/usr/X11R6/lib/X11/config/Motif.tmpl.orig && cp -
   p
/usr/local/lib/X11/config/Motif.tmpl /usr/X11R6/lib/X11/config))
failed:  256
/usr/sbin/pkg_add: Installation of openmotif-2.1.30.5p1 failed ,
partial install
 ation recorded as partial-openmotif-2.1.30.5p1
$

Am I doom to install xbase ?

Best regards,

Bruno.



Re: OpenBSD/i386 4.0 Install CD successfull boot on IBM HS20 BladeCenter !

2006-09-05 Thread Bruno Carnazzi

2006/9/5, Bruno Carnazzi <[EMAIL PROTECTED]>:

   Hi misc,

I've spent some time in trying to install openbsd on some IBM HS20 and
I didn't manage with 3.8 and 3.9. While trying with the 4.0-beta CD,
I've found a way to boot. As I don't have some erasable HS20
available, I can't install it. If someone can post here a dmesg after
installation, it would be great. The trick is really simple, you just
have to disable pckbc driver :

* Boot on cd40.iso
* Boot in UKC (boot -c)
* in UKC :
> disable pckbc
> exit

That's all folks :)


I don't know why, but you have to press a key at the beginning of the
kernel load, if not, it won't boot...



I think this should work too with 3.8 and 3.9. The setting can be made
permanent with config(8).


Doh... with 3.9-stable CD, this leads to a kernel panic :(



Best regards,

Bruno




OpenBSD/i386 4.0 Install CD successfull boot on IBM HS20 BladeCenter !

2006-09-05 Thread Bruno Carnazzi

  Hi misc,

I've spent some time in trying to install openbsd on some IBM HS20 and
I didn't manage with 3.8 and 3.9. While trying with the 4.0-beta CD,
I've found a way to boot. As I don't have some erasable HS20
available, I can't install it. If someone can post here a dmesg after
installation, it would be great. The trick is really simple, you just
have to disable pckbc driver :

* Boot on cd40.iso
* Boot in UKC (boot -c)
* in UKC :
   > disable pckbc
   > exit

That's all folks :)

I think this should work too with 3.8 and 3.9. The setting can be made
permanent with config(8).

Best regards,

Bruno



5.1 sound card support in OpenBSD

2006-09-03 Thread Bruno Carnazzi

 Hi misc,

I can't find informations on 5.1 sound card support in OpenBSD. I know
OpenBSD sound system relies on SunAudio, but I'm not aware of its
capabilities.

Best regards,

Bruno.



Re: Missing section in FAQ - 6 Networking ?

2006-09-03 Thread Bruno Carnazzi

2006/9/3, Nick Holland <[EMAIL PROTECTED]>:

Bruno Carnazzi wrote:
>   Hi misc,
>
> There is a numbering problem or a missing section in FAQ - 6
> Networking : http://www.openbsd.org/faq/faq6.html#6.8

Not quite sure how that's a problem.

Things get added and removed.

I have an aversion to renumbering articles excessively... Even though
one of the early things I did in the FAQ was breaking the tie between
section numbers and links, I still tend to think of articles by the
section number...as apparently you do, as well.

I really hate the situation where I feel a new article should go in
the middle of a page with a related article, but there's no "hole" in
the numbering.  So, I either have to renumber a bunch of things (ick)
or stick it at the end (ick).  For that reason, I am reluctant,
probably too reluctant, to renumber pages after the deletion of an
article.

btw: if you think that's a "problem", the proper technique is to
assume the "mistake" was made more than once and look for similar
numbering incongruities (there's at least one other much more annoying
gap), look at the CVS logs and see if you can figure out WHY things
are as they are, figure out how things should be done better, and
submit a patch. :)  In this case, things are as I sort-of intend them
to be, though I have been thinking about closing things up (and
deleting/relocating more articles, so it isn't quit that simple yet).

Nick.




You convinced me that it's not a problem. There are *lots* of better
things to do and renumbering can introduce new broken links, take lots
of time and don't provide very usefull things...

Best regards,

Bruno.



Unable to build jdk-1.4.2p7 on OpenBSD/i386 3.9-GENERIC

2006-09-03 Thread Bruno Carnazzi

 Hi misc,

I can't build jdk-1.4.2p7 on my openbsd box (3.9 running in
MS-VirtualServer)... Can somebody help ?
jdk-1.3.1p6, jre-1.3.1p6 and jdk-linux-1.3.1_16 succeeded.

Here's the logs :

===portslogger===
+++ Mon Sep  4 03:38:57 MDT 2006
===>  Building for jdk-1.4.2p7

*** WARNING: you may see an error such as
***   virtual memory exhausted
*** when building this package.  If you do you must increase
*** your limits.  See the man page for your shell and look
*** for the 'limit' or 'ulimit' command. You may also want to
*** see the login.conf(5) manual page.
*** Some examples are:
*** csh(1) and tcsh(1): limit datasize 
*** ksh(1), zsh(1) and bash(1): ulimit -d 

kern.emul.linux: 1 -> 1
bsd i586 1.4.2-p7 build started: 06-09-04 03:38
if [ -r ./../../deploy/make/Makefile ]; then \
 ( cd  ./../../deploy/make; gmake sanity EXTERNALSANITYCONTROL=true
CONTROL_TOPDIR=/usr/obj/ports/jdk-1.4.2p7/control
CONTROL_TOPDIR_NAME=control ALT_OUTPUTD
IR=/usr/obj/ports/jdk-1.4.2p7/control/build/bsd-i586
ARCH_DATA_MODEL=32 MILESTONE=p7 BUILD_NUMBER=_04_sep_2006_03_38
ALT_JAVAWS_BOOTDIR=/usr/obj/ports/jdk-1.
4.2p7/control/build/bsd-i586 ; ); \
fi
Abort trap (core dumped)
Abort trap (core dumped)
gmake[1]: Entering directory `/usr/obj/ports/jdk-1.4.2p7/deploy/make'
gmake[1]: Leaving directory `/usr/obj/ports/jdk-1.4.2p7/deploy/make'
gmake[1]: Entering directory `/usr/obj/ports/jdk-1.4.2p7/j2se/make'
gmake[1]: Leaving directory `/usr/obj/ports/jdk-1.4.2p7/j2se/make'

Build Machine Information:
  build machine =

Build Directory Structure:
  CWD = /usr/obj/ports/jdk-1.4.2p7/control/make
  TOPDIR = ./../..
  CONTROL_TOPDIR = ./../../control
  GENERICS_TOPDIR = ./../../generics
  HOTSPOT_TOPDIR = ./../../hotspot
  J2SE_TOPDIR = ./../../j2se
  MOTIF_TOPDIR = ./../../motif

Hotspot Settings:
  HOTSPOT_BUILD_JOBS =

Bootstrap Settings:
  JAVAWS_BOOTDIR = /usr/obj/ports/jdk-1.4.2p7/control/build/bsd-i586
  BOOTSTRAP J2SDK VERSION:
  OUTPUTDIR = /usr/obj/ports/jdk-1.4.2p7/control/build/bsd-i586

Build Tool Settings:
  UNIXCOMMAND_PATH = /bin/
  COMPILER_PATH = /usr/bin/
  DEVTOOLS_PATH = /usr/local/bin/
  USRBIN_PATH = /usr/bin/
  GCC32_COMPILER_PATH = /java/devtools/bsd/gcc3.2/
  MOZILLA_PATH =
  MOZILLA_HEADERS_PATH =
  MOZILLA_LIBS_PATH =
  CC_VER = 3.3.5
  PATH = 
/usr/obj/ports/jdk-1.4.2p7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/X11R6/bin

Build Directives:
  PEDANTIC =
  INSANE =

Build Platform Settings:
  PLATFORM = bsd
  ARCH = i586
  LIBARCH = i386
  ARCH_FAMILY = i586
  ARCH_DATA_MODEL = 32
  OS_VERSION = 3.9
  FREE_SPACE = 1996732

GNU Make Settings:
  MAKE = gmake
  MAKE VERSION =
  MAKECMDGOALS = sanity
  MAKEFLAGS = w --
ALT_JAVAWS_BOOTDIR=/usr/obj/ports/jdk-1.4.2p7/control/build/bsd-i586
BUILD_NUMBER=_04_sep_2006_03_38 MILESTONE=p7 ARCH_DATA_MODEL=32 ALT_O
UTPUTDIR=/usr/obj/ports/jdk-1.4.2p7/control/build/bsd-i586
CONTROL_TOPDIR_NAME=control
CONTROL_TOPDIR=/usr/obj/ports/jdk-1.4.2p7/control
EXTERNALSANITYCONTROL
=true
  SHELL = /bin/sh

Target Build Versions:
  JAVAWS_VERSION = 1.4.2
  MILESTONE = p7
  BUILD_NUMBER = _04_sep_2006_03_38

Bootstrap Settings:
  BOOTDIR = /usr/obj/ports/jdk-1.4.2p7
  BOOTSTRAP J2SDK VERSION: 1.4.2
  OUTPUTDIR = /usr/obj/ports/jdk-1.4.2p7/control/build/bsd-i586

Build Tool Settings:
  UNIXCOMMAND_PATH = /bin/
  COMPILER_PATH = /usr/bin/
  DEVTOOLS_PATH = /usr/local/bin/
  USRBIN_PATH = /usr/bin/
  MOTIF_DIR = /usr/local
  CC_VER = 3.3.5
  ZIP_VER = 2.3
  PATH = 
/usr/obj/ports/jdk-1.4.2p7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/X11R6/bin

Build Directives:
  USE_ONLY_BOOTDIR_TOOLS =
  USE_HOTSPOT_INTERPRETER_MODE =
  PEDANTIC =
  DEV_ONLY = YES
  J2RE_ONLY =
  NO_DOCS =
  NO_IMAGES =
  TOOLS_ONLY = true
  INSANE =

Build Platform Settings:
  PLATFORM = bsd
  ARCH = i586
  LIBARCH = i386
  ARCH_FAMILY = i586
  ARCH_DATA_MODEL = 32
  OS_VERSION = 3.9
  FREE_SPACE = 1969766

GNU Make Settings:
  MAKE = gmake
  MAKE VERSION =
  MAKECMDGOALS = sanity
  MAKEFLAGS =
  SHELL = /bin/sh

Target Build Versions:
  JDK_VERSION = 1.4.2
  MILESTONE = p7
  BUILD_NUMBER = _04_sep_2006_03_38

External File/Binary Locations:
  HOTSPOT_SERVER_PATH =
/usr/obj/ports/jdk-1.4.2p7/control/build/bsd-i586/hotspot-i586/server
  HOTSPOT_CLIENT_PATH =
/usr/obj/ports/jdk-1.4.2p7/control/build/bsd-i586/hotspot-i586/client
  MOTIF_DIR = /usr/local
  CACERTS_FILE = ./../src/share/lib/security/cacerts

WARNING: Your build environment has the variable DEV_ONLY
defined. This will result in a development-only
build of the J2SE workspace, lacking the documentation
build and installation bundles.

ERROR: Your JAVAWS_BOOTDIR environment variable does not point
  to a valid Java 2 SDK for bootstrapping this build.
  A Java 2 SDK 1.4 build must be bootstrapped using
  J2SDK 1.4.0 fcs (or later).
  Apparently, your bootstrap JDK is version
  Please update your ALT_JAVAWS_BOOTDIR setting and start your build again.

Ex

Missing section in FAQ - 6 Networking ?

2006-09-03 Thread Bruno Carnazzi

 Hi misc,

There is a numbering problem or a missing section in FAQ - 6
Networking : http://www.openbsd.org/faq/faq6.html#6.8

Best regards,

Bruno.



Re: RAIDframe "Root on RAID" -- configuring dump device

2006-08-31 Thread Bruno Carnazzi

2006/8/27, Josh Grosse <[EMAIL PROTECTED]>:

Has anyone using Root on RAID managed to point their dumpdev at a swap space,
either within a RAID array or on a standard swap partition?


This is a powerfull hack that helped me to mount my root RAID'ed :
http://www.eclectica.ca/howto/openbsd-software-raid-howto.php

Best regards,

Bruno.



I have not, and a search of the archives only came up with one posting, with
a similar question, but no answer:

http://marc.theaimsgroup.com/?l=openbsd-misc&m=111763609916743&w=2

I'm running -current on i386, and have just successfully implemented RAID
level 1 mirroring.  I am using two Autoconfig devices:

raid0 (ffs partitions) which is also set as the Root partition
raid1 (swap).

My kernel configuration is GENERIC plus RAIDframe, which means that my
config line reads:

config  bsd swap generic

When booting normally, with raid0a as root, I get this kernel message right
before init starts:

swapmount: no device

and then during rc I get:

savecore: no core dump

I have tried modifying the config line.  If I use:

config  bsd root on wd0a swap on wd0b

then I do get an unmirrored partition as my swap_device, and it is also a
dump device.  But ... adding /dev/raid1b doesn't work -- adding this device
to /etc/fstab seems to be ignored, and "swapctl -a /dev/raid1b" fails with
"file not found."  raid1b is an unacceptable keyword for kernel config.

Anyone with a successful swap/dump setup who might be able to point me to
what I'm missing?

--

Kernel config file:

include "/usr/src/sys/arch/i386/conf/GENERIC"
pseudo-device   raid4
option  RAID_AUTOCONFIG
makeoptions DEBUG="-g"

--

wd0 disklabel. wd0d is a component of raid0, wd0g is a component of raid1:


# sizeoffset  fstype [fsize bsize  cpg]
  a:40918563  4.2BSD   2048 16384  328 # Cyl 0*-   405
  b:   2097648  73829952swap   # Cyl 73244 - 75324
  c: 160836480 0  unused  0 0  # Cyl 0 -159559
  d:  69206256409248RAID   # Cyl   406 - 69062
  g:   3805200  69615504RAID   # Cyl 69063 - 72837

--

raid0 disklabel:

# sizeoffset  fstype [fsize bsize  cpg]
  a:20473763  4.2BSD   2048 16384  199 # Cyl 0*-   199
  c:  69206144 0  unused  0 0  # Cyl 0 - 67584*
  d:   2097152204800  4.2BSD   2048 16384  323 # Cyl   200 -  2247
  e:  20971520   2301952  4.2BSD   2048 16384  323 # Cyl  2248 - 22727
  f:  45932672  23273472  4.2BSD   2048 16384  323 # Cyl 22728 - 67584*

raid1 disklabel:

# sizeoffset  fstype [fsize bsize  cpg]
  b:   380499363swap   # Cyl 0*-  3715*
  c:   3805056 0  unused  0 0  # Cyl 0 -  3715*

--

dmesg:

OpenBSD 4.0-beta (JGGIMI) #2: Sat Aug 26 18:46:46 EDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/JGGIMI
cpu0: AMD Sempron(tm) 2600+ ("AuthenticAMD" 686-class, 256KB L2 cache) 1.84 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 502820864 (491036K)
avail mem = 450252800 (439700K)
using 4256 buffers containing 25243648 bytes (24652K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(37) BIOS, date 01/07/05, BIOS32 rev. 0 @ 0xfb9b0, 
SMBIOS rev. 2.2 @ 0xf (44 entries)
bios0: ASUS A7VT
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0xda84
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfda10/112 (5 entries)
pcibios0: PCI Exclusive IRQs: 3 5 10 11
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x7e00 0xc8000/0x8000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8378 PCI" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA VT8377 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "VIA VT8378 VGA" rev 0x01: aperture at 
0xe400, size 0x1000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
dc0 at pci0 dev 8 function 0 "Lite-On PNIC-II" rev 0x25: irq 10, address 
00:a0:cc:e3:42:d6
dcphy0 at dc0 phy 31: internal PHY
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x80: irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0

Re: Unable to find startxfce under OpenBSD/i386 3.9

2006-08-29 Thread Bruno Carnazzi

2006/8/29, Jasper Lievisse Adriaanse <[EMAIL PROTECTED]>:

On Tue, Aug 29, 2006 at 03:21:28PM +0400, Bruno Carnazzi wrote:
>   Hi misc,
>
> I'd like to use Xfce4 as my main desktop environment, and I can't run
> it under OpenBSD :(
>
> I've installed the following packages through pkg_add(4) :
[...]
>
> I can't find startxfce in /usr/local/bin or elsewhere. When X is
> started, I can run xffm and so on, but under fvwm ! :)
>
> Any idea ? What's the missing package ?
you need xfce-utils.


Thank you guys ! That did the trick :)

Best regards,

Bruno.



>
> Best regards,
>
> Bruno.
>
cheers,
Jasper

--
Humppa is a serious thing!
NedBSD: http://nedbsd.nl




Unable to find startxfce under OpenBSD/i386 3.9

2006-08-29 Thread Bruno Carnazzi

  Hi misc,

I'd like to use Xfce4 as my main desktop environment, and I can't run
it under OpenBSD :(

I've installed the following packages through pkg_add(4) :
atk-1.10.3p1accessibility toolkit used by gtk+
cairo-1.0.2p0
dbh-1.0.24p0library to create disk based hashtables
expat-1.95.6p1  XML 1.0 parser written in C
gettext-0.14.5p1
glib2-2.8.4 general-purpose utility library
glitz-0.4.4 OpenGL image compositing library
gtk+2-2.6.10p1
gtk-xfce-engine-2.2.8p3 theme engine for GTK2
jpeg-6bp3   IJG's JPEG compression utilities
libiconv-1.9.2p3character set conversion library
libxfce4mcs-4.2.3p0
libxfce4util-4.2.3.2 basic utility library for xfce4
libxfcegui4-4.2.3p2
libxml-2.6.16p8 XML parsing library
lua-5.0.2p6 powerful, light-weight programming language
pango-1.10.2p0
png-1.2.8p0 library for manipulating PNG images
startup-notification-0.8 library for tracking application startup
tiff-3.7.3p1tools and library routines for working with TIFF images
xfcalendar-4.2.3p1  simple calendar application with reminders for xfce4
xfce-mcs-manager-4.2.3p1 settings manager for xfce4
xfce-mcs-plugins-4.2.3p1 settings manager plug-ins for xfce4
xfce4-appfinder-4.2.3p1 xfce4 application finder
xfce4-battery-0.3.0p1 battery monitor panel plugin for xfce4
xfce4-clipman-0.4.1p3 clipboard history plugin for the xfce4 panel
xfce4-datetime-0.3.1p3 shows the date and time in the xfce4 panel
xfce4-diskperf-1.5p3 displays instant disk performance in the xfce4 panel
xfce4-fsguard-0.2.1p1 monitors a chosen mountpoint for free disk space
xfce4-icon-theme-4.2.3 icon theme for xfce4
xfce4-iconbox-4.2.3p1 graphical alternative to xfce-utils taskbar
xfce4-lua-graph-0.1 lua driven plugin for the xfce4 panel
xfce4-minicmd-0.3.0p3 puts a small entry widget onto your panel
xfce4-netload-0.3.3p1 displays load of a network interface in the xfce4 panel
xfce4-notes-0.11.1p1 provides sticky notes for the desktop
xfce4-panel-4.2.3p1 xfce4 panel
xfce4-session-4.2.3p1 xfce4 session manager
xfce4-showdesktop-0.4.0p4 hides/unhides all unsticky windows with one click
xfce4-systemload-0.3.6p3 displays cpu/memory/swap/uptime in xfce4 panel
xfce4-systray-4.2.3p1 xfce4 notification area/system tray for the panel
xfce4-taskbar-0.2.2p4 taskbar plugin for the xfce4 panel
xfce4-toys-4.2.3p1  tips/fortune dialog, xeyes for the xfce4 panel
xfce4-trigger-launcher-4.2.3p1 provides a toggle button showing on/off
state for xfce4-panel
xfce4-wavelan-0.4.1p3 displays stats from a WLAN interface
xfce4-weather-0.4.9p4 see temperature/weather conditions on the xfce4 panel
xfce4-xkb-0.3.2p2   xkb layout switcher panel plugin for xfce4
xfdesktop-4.2.3p2
xffm-4.2.3p3
xfwm4-4.2.3.2p0
xfwm4-themes-4.2.3  window decoration themes for xfwm4

I can't find startxfce in /usr/local/bin or elsewhere. When X is
started, I can run xffm and so on, but under fvwm ! :)

Any idea ? What's the missing package ?

Best regards,

Bruno.



Daemon supervisor

2006-08-21 Thread Bruno Carnazzi

  Hi misc,

I'd like to implement a daemon supervisor that could automatically
restart a daemon when it crashes. Can I use /etc/ttys for this
(automatic respawn) ? Is that a good practice ?

ex :
tty00   "/usr/local/sbin/squid"   unknown on

Thank you,

Bruno.



Re: New (?) OpenBSD-based live-dvd

2006-08-17 Thread Bruno Carnazzi

2006/8/17, Rod.. Whitworth <[EMAIL PROTECTED]>:

On Thu, 17 Aug 2006 11:15:57 +0400, Bruno Carnazzi wrote:

>... Bundled with OpenOffice and more... :)
I downloaded it.

No OOo component ran when clicked. I don't have time to find out why
yet.


The documentation explains the needed tricks to make it run (lock file
problem)...



It is pig slow on a 1.4G Thinkpad with 1GB ram.

I think I'll have to debug it and run on the metal instead of the
vapour-disk.


>
>http://quetzal.matem.unam.mx/
>
>Have fun,
>
>Bruno.
>
>

From the land "down under": Australia.
Do we look  from up over?

Do NOT CC me - I am subscribed to the list.
Replies to the sender address will fail except from the list-server.
Your IP address will also be greytrapped for 24 hours after any attempt.
I am continually amazed by the people who run OpenBSD who don't take this 
advice. I always expected a smarter class. I guess not.




New (?) OpenBSD-based live-dvd

2006-08-17 Thread Bruno Carnazzi

... Bundled with OpenOffice and more... :)

http://quetzal.matem.unam.mx/

Have fun,

Bruno.



Re: Confirmation From ATI Developer

2006-05-15 Thread Bruno Carnazzi

wtf ?

2006/5/14, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:

Dear Theo de Raadt and Richard Stallman,
Thank you for visiting ATI.COM !
This is an AUTOMATIC RESPONSE which confirms that your request has been
successfully received by our server and will be processed.
Please do not reply to this message, any replies to this email  will not
be responded to or forwarded. This service is used for outgoing e-mail
only and cannot respond to technical support or customer service inquiries
===
USEFUL LINKS
ATI HOMEPAGE
See: http://www.ati.com
ATI CONTACT INFO
See: http://www.ati.com/companyinfo/contact/congeneral.html
===
Copyright (c) 2005, ATI Technologies Inc. All Rights Reserved
END OF AUTOMATIC RESPONSE




Driver source

2006-05-14 Thread Bruno Carnazzi

  Hi all,

In OpenBSD, what's the simplest driver source to read to have a good
idea of what's in a driver code (for some hardware device) ?

Best regards,

Bruno.



typing errors in http://www.openbsd.org/faq/pf/fr/filter.html

2006-05-14 Thread Bruno Carnazzi

  Hi all,

Some reading notes for french readers :

* in http://www.openbsd.org/faq/pf/fr/filter.html#intro :
chaque paquet est ivalui ` l'aune de toutes les rhgles avant qu'une
dicision finale ne soit prise.

should be (typing error) :

chaque paquet est ivalui ` l'aide de toutes les rhgles avant qu'une
dicision finale ne soit prise.

* in http://www.openbsd.org/faq/pf/fr/filter.html#syntax :
action [direction] [log] [quick] [on interface] [af] [proto protocol] \
  [from src_addr] [port src_port]] [to dst_addr [port dst_port]] \
  [flags tcp_flags] [state]

should be (too many brackets) :

action [direction] [log] [quick] [on interface] [af] [proto protocol] \
  [from src_addr [port src_port]] [to dst_addr [port dst_port]] \
  [flags tcp_flags] [state]

and :
Les trois derniers opirateurs demandent deux arguments pour former un
intervalle qui n'inclue pas ces arguments.

should be (off-by-one error :) :
Les deux derniers opirateurs demandent deux arguments pour former un
intervalle qui n'inclue pas ces arguments.

Best regards,

Bruno.



hostapd small bug

2006-05-13 Thread Bruno Carnazzi

 Hi all,

looking at /var/log/daemon, it seems that hostapd syslog timestamp
does not take care of local timezone :

May 13 16:49:12 puffy test_syslog[6582]: This is just a test for my c studies
May 13 16:49:18 puffy hostapd[18915]: ural0: (rate: 100/8 sec)
00:0d:0b:c3:cb:bb > 00:0d:93:ed:ee:2b, bssid 00:0d:0b:c3:cb:bb, DS >:
data, 
May 13 16:49:18 puffy hostapd[18915]:
May 13 16:49:22 puffy test_syslog[6582]: This is just a test for my c studies
May 13 20:49:38 puffy dhcpd: DHCPREQUEST for 192.168.13.32 from
00:0d:93:ed:ee:2b via ural0
May 13 20:49:38 puffy dhcpd: DHCPACK on 192.168.13.32 to
00:0d:93:ed:ee:2b via ural0
May 13 20:49:48 puffy test_syslog[21638]: This is just a test for my c studies

My small program test_syslog does so. I've fixed it with just calling
tzset() in main().
Maybe the same problem in hostapd...

Best regards,

Bruno.



Porting some IPTables conn_track extension to OpenBSD

2006-05-13 Thread Bruno Carnazzi

  Hi all,

Dispite this silly object, I'm interesting in porting some iptables
conn_track listed here :
http://www.netfilter.org/documentation/HOWTO//netfilter-extensions-HOWTO-5.html.
I'm mostly interested in the pptp conntrack, which I need for my
nat-box. I'd like an advise : what's the most appropriate place to run
such extensions ? If using pf kernel space, the kernel will grow with
many suported protocols.  If using userland proxy and some pf rdr,
it's sometimes "ugly" : I'm thinking to PPTP, where you need to
configure a target PPTP server per proxy, so you need n proxy for n
target server, which is ugly. On the other hand, ftp-proxy works
great in userland. Or PPPoE which can run in both... Is there a rule
of thumb to determine the good place for some connection
tracking/proxy for a given protocol ?

Best regards,

Bruno.



Re: Recommendations for an OpenBSD-based Backup Solution

2006-05-12 Thread Bruno Carnazzi

2006/3/21, Peter <[EMAIL PROTECTED]>:

--- "Donald J. Ankney" <[EMAIL PROTECTED]> wrote:

> I threw together a Perl script that uses tar and external firewire
> drives. Tar has flags that will let it backup over SMB (for the
> windows
> boxes) and one can always do use scp (via certificates) piped through
>
> tar for remote linux/BSD boxes. I've been using this solution across
> several platforms (all servers) for a year now, and it has worked
> well.
>
>
> Obi Okeke wrote:
> > An appeal to the Gods of OpenBSD!  Let me write up
> > front that I am most grateful for all that the OpenBSD
> > project has done.
> >
> > Some friends of mine need a backup solution that can
> > easily handle regular, automated backups from some M$
> > Win 2k and Linux workstations as well as an OpenBSD
> > 3.8 based Samba file server that I had set up for them
> > a while ago.
> >
> > I've used FreeBSD 5x running Bacula at another site,
> > but I am looking for an all OpenBSD solution so I
> > don't have to install another box running
> > FreeBSD/Bacula on their site since they already have 2
> > OBSD boxes up and running (perfectly thanks to OBSD) -
> > one for firewall/router/nat/squid and one for the
> > Samba fileserver.  I would like to add the backup
> > solution to the file server box since its not heavily
> > loaded at all.  Any recommendations would be greatly
> > appreciated.  Thanks in advance.
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
>
>

I am using rsync.  It also works well.  I wrote small scripts (windows
side) for users to back up at their discretion.  Since they are
actually synchronizing it doesn't take long at all (akin to saving work
in Word or whatever whenever you want).
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com




I regularly use rsnapshot instead of "raw" rsync and it just works :
http://www.rsnapshot.org/

Best regards,

Bruno.



Re: PF and PPTP

2006-05-12 Thread Bruno Carnazzi

From a developper point of view, what is the best technique for

building such a proxy : a userland proxy, or some special pf code ? My
feeling is that userland proxy are better suited for application level
procotol (HTTP, FTP...) and in-kernel code is better suited for lower
level protocols (TCP, UDP, IP, ICMP, GRE...). What are the difference
between OpenBSD ftp-proxy and IPTables ftp_conn_track.o ? What's the
best design ?

Best regards,

Bruno.

2006/5/10, Luiz Souza <[EMAIL PROTECTED]>:

Bruno Carnazzi wrote:
> 2006/5/10, Damian Gerow <[EMAIL PROTECTED]>:
>> Thus spake Bruno Carnazzi ([EMAIL PROTECTED]) [10/05/06 01:37]:
>> : My home PF NATing gateway route just one PPTP tunnel (for my laptop),
>> : and I don't need special thing for it to work (GRE enabled via sysctl
>> : and pf must pass GRE proto). Is there a special case when you have
>> : multiple PPTP (GRE) tunnels that need proxying ?
>>
>> In theory, so long as there is only one given client on the LAN
>> connecting
>> to a given PPTP endpoint on the 'Net, I can handle it all using
>> standard PF
>> syntax.  My problem is that I have two clients on the LAN that wish to
>> connect to the same endpoint -- that, AFAIK, requires a proxy.
>
> That's my first question : why the need for a proxy for a network level
> protocol ?
>
> Bruno.
>
>>
>>   - Damian
>

because GRE needs some _special_ processing on nat box and pf nat engine
do not support this, so a proxy is really needed.

luiz




Re: PF and PPTP

2006-05-10 Thread Bruno Carnazzi

2006/5/10, Damian Gerow <[EMAIL PROTECTED]>:

Thus spake Bruno Carnazzi ([EMAIL PROTECTED]) [10/05/06 01:37]:
: My home PF NATing gateway route just one PPTP tunnel (for my laptop),
: and I don't need special thing for it to work (GRE enabled via sysctl
: and pf must pass GRE proto). Is there a special case when you have
: multiple PPTP (GRE) tunnels that need proxying ?

In theory, so long as there is only one given client on the LAN connecting
to a given PPTP endpoint on the 'Net, I can handle it all using standard PF
syntax.  My problem is that I have two clients on the LAN that wish to
connect to the same endpoint -- that, AFAIK, requires a proxy.


That's my first question : why the need for a proxy for a network 
level protocol ?


Bruno.



  - Damian




Re: PF and PPTP

2006-05-09 Thread Bruno Carnazzi

 Hi,

My home PF NATing gateway route just one PPTP tunnel (for my laptop),
and I don't need special thing for it to work (GRE enabled via sysctl
and pf must pass GRE proto). Is there a special case when you have
multiple PPTP (GRE) tunnels that need proxying ?

Best regards,

Bruno.

2006/5/10, Damian Gerow <[EMAIL PROTECTED]>:

I find myself in a situation where I need to route a few PPTP tunnels
through a NATing PF gateway.  Because of the usage of GRE, I'm aware that I
need to enable GRE via sysctl, and that I'll need to run the connections
through a proxy.

However, I'm having a hard time digging up a proxy I've got confidence in.
I've tried pptpproxy:



and frickin:



But the former won't compile, and the latter doesn't instill a large amount
of confidence in me (not to mention that it won't fork to the background).
This is on a 3.9 system (or shortly before).

How are other people handling multiple PPTP tunnels?




Re: FTP download/CD sales ratio

2006-05-04 Thread Bruno Carnazzi

2006/5/3, Bruno Carnazzi <[EMAIL PROTECTED]>:

   Hi all,

I'd just want to say that I've bought OpenBSD 3.9 CD's and still not
received them ! So, I've download it (one time for home, one time for
job), it's easier than waiting for the CDs :) But this let me think
that the estimated FTP/CD ratio is not very meaningfull (about the
money question). I don't know how to estimate the part of unpaied FTP
OpenBSD download.


I know I live on Reunion Island, but Wim... What are you doing man !? ;)


Aaa Yes !! Just received it today ! Wim, you're definitely a great man ! :)

I love these funky stickers !

Long life to OpenBSD !



This message has been cyphered, wifi'ed, bridged, filtered, routed,
nat'ed, pppoe'ed with OpenBSD 3.9. Thank you for making this possible.

Bruno.




Re: Linksys support... hmm

2006-05-03 Thread Bruno Carnazzi

2006/4/30, Shane J Pearson <[EMAIL PROTECTED]>:

Hi Lasse,

On 2006.04.30, at 8:38 PM, Lasse Bach wrote:

> "I also need to know if v5 of the WMP54G uses a Ralink Technology
> RT25x0 chip?"

Are you unable to avoid it?

> Maybe someone on the mailing list can provide me with an answer to:
> 2. Why are such information not available to their customers?

Because they suck (the company).


I'm using Nintendo USB Wifi connector, and it works kindly since
3.9-beta, as you can see :

$ dmesg | grep ural
ural0 at uhub0 port 1
ural0: Nintendo Nintendo Wi-Fi USB Connector, rev 2.00/0.01, addr 2
ural0: MAC/BBP RT2570 (rev 0x05), RF RT2526, address 00:0d:0b:c3:cb:bb

Its bundled with a chord that allow you to glue it high on a wall :)




I wonder if a PCI<->minipci card with a minipci RT25x0 based card
might be good for you?

 From RAL(4):

The following Mini PCI adapters should work:

  Amigo AWI-922W.  Billionton MIWLGRL.  Gigabyte GN-WIKG.  MSI
MP54G2.  MSI
  MS-6833.  Tonze PC-620C.  Zinwell ZWX-G360.


Shane




FTP download/CD sales ratio

2006-05-03 Thread Bruno Carnazzi

  Hi all,

I'd just want to say that I've bought OpenBSD 3.9 CD's and still not
received them ! So, I've download it (one time for home, one time for
job), it's easier than waiting for the CDs :) But this let me think
that the estimated FTP/CD ratio is not very meaningfull (about the
money question). I don't know how to estimate the part of unpaied FTP
OpenBSD download.

I know I live on Reunion Island, but Wim... What are you doing man !? ;)

This message has been cyphered, wifi'ed, bridged, filtered, routed,
nat'ed, pppoe'ed with OpenBSD 3.9. Thank you for making this possible.

Bruno.



Re: Default Gateway, PF, BAD State

2006-04-18 Thread Bruno Carnazzi
2006/4/6, Joachim Schipper <[EMAIL PROTECTED]>:
> On Thu, Apr 06, 2006 at 01:15:53AM +1200, Joshua Sandbrook wrote:
> > Hello There.
> >
> > Ive got two openbsd gateways:
> >
> > 192.168.3.253 +192.168.4.254 - gateway to 192.168.4.0/24 subnet. this
> > obsd box has a default gateway set to 192.168.3.254, and all hosts on
> > the 192.168.4.0/24 subnet have their gateway set to 192.168.4.254. PF
> > turned OFF.
> >
> > 192.168.3.254 - gateway to the internet, is set as default gateway for
> > hosts on the 192.168.3.0/24. This box has a route set for 192.168.4.0/24
> > to 192.168.3.253.
> >
> > Now then... What happens is when a workstation ( 192.168.3.0/24 hosts )
> > trys to transfer a file to a host on the 192.168.4.0/24 subnet, it
> > transfers around 60Kb, before it hangs and starts eventually times out
> > or gets reset. This is with pf turned ON on the 192.168.3.254 box. Rules
> > are to pass out and pass in everything.
> >
> > I 'set debug loud' in pf.conf, and in /var/log/messages lots of these
> > types of messages showed up:
> >
> > Apr  6 17:21:31 sidb /bsd: pf: BAD state: TCP 192.168.3.222:33085
> > 192.168.3.222:33085 192.168.4.51:22 [lo=2515403070 high=2515336655
> > win=49640 modulator=0] [lo=0 high=49640 win=1 modulator=0] 2:0 A
> > seq=2515403070 ack=0 len=1460 ackskew=0 pkts=64:0 dir=out,fwd
> >
> > Now, if I turn pf OFF, everything works fine. And if I manually add a
> > route to a workstation for 192.168.4.0/24 then it also works fine,
> > because it then does not use the 192.168.3.254 gateway to get to
> > 192.168.4.0/24.
> >
> > So then... any ideas how to fix this?
>
> No, but the fact that you claim 192.168.3.0/24 can get to 192.168.4.0/24
> without going through the router means either one of us is confused or
> your network is set up in a rather strange way.

Not sure, but I think a Proxy-ARP can do this sort of trick...

>
> Joachim



Re: Multi-user Password Manager

2006-04-12 Thread Bruno Carnazzi
2006/4/12, Joachim Schipper <[EMAIL PROTECTED]>:
> On Wed, Apr 12, 2006 at 05:20:31PM +0400, Bruno Carnazzi wrote:
> >Hi misc,
> >
> > I'm looking for an open-source software solution for a multi-user
> > password management. Ideally, it's a webapp running on OpenBSD,
> > allowing multiple user, each can only see a subpart of the password
> > database (ACL or things like that). I've found a lots of such project
> > on sf.net but only for single user... Somebody got an idea ?
>
> Actually, I don't even know what you want to achieve.
>
> Should each user have access to his/her own passwords, and nothing else?
> Which user can change which password(s)?

The security model can be something like 'john belongs to pay_group,
so he can read and maybe write (if group administrator) passwords of
pay_group'.

This software: http://www.sowsoft.com/password-manager.htm seems to do
the trick but I'd prefer an open-source solution, of course...

>
> I have a feeling some parts of Horde could be used to make do, but it
> will be hackish. And still a webapp - not my first choice for storing
> critical information.

I agree, but in an heterogenous environment (windows, linuxes & macs)
which I'm in, it's helpfull :)

>
> Joachim
>
>

Thank you for reply,

Bruno.



Multi-user Password Manager

2006-04-12 Thread Bruno Carnazzi
   Hi misc,

I'm looking for an open-source software solution for a multi-user
password management. Ideally, it's a webapp running on OpenBSD,
allowing multiple user, each can only see a subpart of the password
database (ACL or things like that). I've found a lots of such project
on sf.net but only for single user... Somebody got an idea ?

Thank you,

Bruno.



[OT] Open Source Software & Minarchism

2006-04-06 Thread Bruno Carnazzi
 Hi all,

I'd like to understand if there is an average consensus about
minarchism in pro-BSD users group (from the license point-of-view)...
Do you believe that this kind of society organisation could be a great
"context" for Open Source software in general ? Could we compare the
activity of an Open Source Community with a political system ? How ?

I don't want to make a flamewar (really :), but I see some common
points in the BSD license and this political system : there are both
very simple and promote mainly individual liberty. From this point of
view, this system seems seductive, but I'm sure it has also drawbacks
that I'd like to discuss with misc readers.

Here's a definition of minarchism :
http://en.wikipedia.org/wiki/Minarchism (this article is translated in
other language, see the links)

Hope it's not too off-topic :)

Best regards,

Bruno.

Note 1 : Don't hesitate to reply privately if this is *really* off-topic :)
Note 2 : As I am a french guy, I've understand better the french
version of this article, which seems to be smaller and less precise
than english one.



Re: Are we users stupid or what?

2006-04-03 Thread Bruno Carnazzi
2006/4/3, Samurai Chef <[EMAIL PROTECTED]>:
> > on Sunday 02 April 2006 07:58 pm, Deanna Phillips wrote:
> >
> > And yeah, Linux users are generally stupid.
>
> Can help but chime in on the "stupid" issue...
>
> I run Windows, MPE i/X, HP-UX, OpenBSD, Linux, Oracle, and Cisco
> routers, and yes, sometimes, I'm stupid.  Everyone has stupid moments.
>  If you think you don't, get over it.  My money-back guarantee says
> that you do have stupid moments.

Yeah ! I am stupid ! :)

>
> As for the sweeping generalization, hell, why not?  This list tends to
> do just that so it should be no surprise.  That being said, unless you
> *know* the comment was directed at *you*, don't take it personal.



OpenBSD greatest challenge

2006-03-24 Thread Bruno Carnazzi
   Hi misc,

I'm a young sysadmin who really enjoy using free OSes, and especially
OpenBSD, for his technical excellence, no doubt about that. I use
OpenBSD for about 1 year, so I start to understand the way of thinking
of the community, through misc@ reading. I take a lot of pleasure with
OpenBSD, but I'm a bit disturbing about his community and funding
process...

How can an Open-Source project be fund ? In my mind I only see 3
source of money :
   * Community funding
   * Public funding (public research subvention...)
   * Corporation funding (these who resell OpenSSH, for example)

I think the best (technically and ideologically speaking) funding
process is BY the community. It's the only way I see to stay free
(libre, en frangais).

People should realize that Free Software is not "free as in beer". So,
this idea need to be spread and understand. The technical superiority
is already here.

So, if the community can fund an Open-Source project, how can it be ?
I don't think the approach "We are coding OpenBSD for us, and if you
like it, you can use it." is really satisfaying. This does not stick
enough with the community, and so, people are not incitate to donate
as they don't always see the interest.

For me, the OpenBSD greatest challenge is to become one with a larger
community without conceding anything to his legendary technical
excellence. It can be done with some additionnal mailing-list (maybe,
a junior@ ? :), involving more developper in some
high-quality-and-user-friendly-functionnalities-that-non-kernel-hackers-can-use-and-understand,
and probably lots of other things. Be closer with the community. It IS
the value of an Open-Source project.

And people interested in open-source software should be conscious that
nobody can live without money, and that a software is free after it
has been payed. It is the price to pay to see great projects living
and prospering.

Understand & Donate.

Best regards, and excuse my poor english.

Bruno.



Re: Install defaults

2006-03-20 Thread Bruno Carnazzi
Thank you, you convinced me that it's not a good idea :)

2006/3/21, Nick Holland <[EMAIL PROTECTED]>:
> Bruno Carnazzi wrote:
> >   Hi all,
> >
> > Why not use soft update as a default for created file system on
> > install ? It seems to be a good practice, no ?
>
> Well...assuming you:
>* Have some extra RAM to spare.
>* Don't mind added complexity
>* aren't running on a Sun4c
>
> sure, soft updates are a fine idea for most people to use on most of
> their systems.
>
> However, no one's system is broke because of not having softdeps on.  No
> one's system will crash because of no softdeps.
>
> Softdeps is an added complexity.  You don't add complexity and get a
> more solid result.
>
> IF you always want softdeps on the systems you work with, it is two
> lines of shell script in a siteXX.tgz file (or less if you know what you
> are doing, or more if you know of some edge cases I didn't think of).
> However, I don't think it will be defaulting to "on" anytime in the next
> release (and probably not the one after that). :)
>
> Nick.



Install defaults

2006-03-20 Thread Bruno Carnazzi
  Hi all,

Why not use soft update as a default for created file system on
install ? It seems to be a good practice, no ?

Best regards,

Bruno.



OpenBSD/Linux centralized authentication

2006-03-18 Thread Bruno Carnazzi
  Hi misc,

At work, we are running a Microsoft Active Directory for our Windows
Domain, who mainly provided Windows Desktop for our customers and
centralized authentication. We have also several OpenBSD & Linux boxes
for some DNS, SFTP, Squid, CVS and also several Web-apps. We'd like to
centralize these Unix authentication... Is there a way to authenticate
directly over a MS Domain Controller ? How can this be achieved
(Kerberos, LDAP..?) ? Also, is it a good idea ? :) What are the
alternatives (building an OpenLDAP server, Kerberos, (we don't wan't
NIS !)) ?

Hope somebody has some advice to share,

Best regards,

Bruno.



Re: OpenBSD 3.8 and IBM Blade HS20 boot CD

2006-03-18 Thread Bruno Carnazzi
  Hi misc,

I've found this message from someone who get FreeBSD-6 running on some
HS-20 Blade : 
http://marc.theaimsgroup.com/?l=freebsd-stable&m=114120051600449&w=2

The trick seems to be the disabling of ACPI and the disabling of some
keyboard function (I dunno what are those isp* ?) :

booting from CD, in bootmenu choose "6" and type:

unset acpi_load
load ispfw
load isp
set hint.atkbd.0.disabled="1"
boot

Someone knows if there some OpenBSD-equivalent to these FreeBSD
bootloader command ? Running OpenBSD on some HS20 would really kick my
ass !! :)

Note : with all CDs and floppies, the installation hangs on this
message : "pckbc_start: send error". This message is print from the
pckbc_start function in
http://www.kame.net/dev/cvsweb.cgi/kame/openbsd/sys/dev/ic/pckbc.c

Best regards,

Bruno.

2006/1/20, Bruno Carnazzi <[EMAIL PROTECTED]>:
> I've got exactly the same problem. It seems that BladeCenter have an
> unusual keyboard controller (switchable). I tried to boot with all
> floppy disk, with external keyboard (USB and PS/2), different BIOS
> settings and it never worked. I think the internal KVM is not
> "hardware transparent". I'm not sure but I think that NetBSD/i386
> 2.0.2 didn't boot either (can't remember). Also, critical pieces of
> hardware are detected and configured : buses, cpu, ram, nic, scsi,
> video... It's raging to be blocked by... the keyboard !! Hope it will
> be supported some days...
>
> Best regards,
>
> Bruno.
>
> On 1/18/06, Martin R. Sxrensen <[EMAIL PROTECTED]> wrote:
> > Hi... I hope that someone can help me, I'm new to OpenBSD and I'm trying to 
> > install 3.8 on a IBM blade server HS20 Then I try to boot from the 
> > install CD or floppy I get en error saying: pckbc_start: send error and 
> > then it stops.
> >
> > I have disable USB, but that didn't chance anything
> >
> > Sow please help !!
> >
> > Regards
> > Martin Sxrensen



OpenBSD's AFS informations

2006-02-25 Thread Bruno Carnazzi
   Hi misc,

I come to you because my enterprise will need some distributed file
system in the mounths to come. We need to distribute a big file system
between 2 main sites, accessed by multiples clients spreaded across
differents sites. A client is nearly always a thinclient running RDP
to some TSE cluster for office'ing. We got 1 TSE farm on each main
site. And a file server on each site too (actually a HS20 blade
running Windows 2003). We do not synchronize these file server, which
make them fault-untolerant. Each contains user profiles & documents.
The Microsoft solution, DFS, seems ok but I'd like to know if AFS
could be smartly used in that case. So, I'd like to know if OpenBSD's
AFS could do the following (I assume that our actual file servers are
replaced by OpenBSD AFS cells) :
  * Gently synchronize/distribute 2 physical file servers in 1 logical
file server (real time is not needed)
  * Does it scale well (new AFS cells, new clients) ?
  * Does it support a quota mechnism ?
  * Implementation and Administration cost (we are 2 bright guys :) ?
  * What about the file permissions ? Is that Windows 2k3-friendly (ACL) ?
  * Why OpenBSD devs re-writed an AFS instead of reusing OpenAFS ?
  * Integration with ActiveDirectory for authentication ?
  * Recovery of a lost cell ?

Wow... Hard work to come :)

Best regards,

Bruno.



pthread with Linux emulation on OpenBSD/i386 3.8-release

2006-02-16 Thread Bruno Carnazzi
  Hi all,

I try to run the Linux IBM Tivoli Storage Manager v5.2.2 on
OpenBSD/i386 3.8-release, with linux emulation. I use a GENERIC
kernel. I got the same result with GENERIC.MP (it's an SMP system). No
hw pb.

The goal is not to use this system in production but to evaluate the
stability of the Linux emulation. At this time, the result is not very
usable : the client failed with core dump in a few second.

TSM logs says :
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:35:22 pthread_kill argument invalid: ESRCH
02/17/06   08:37:45 B/A Txn Consumer thread, fatal error, signal 11

I'd like to know if this is :
  * a kernel problem with linux pthread emulation
  * a redhat-base known bug
  * a dsmc (TSM client) bug (as it's closed-source, hard to determine...)

Thank you,

Bruno.



Re: OpenBSD for a desktop environment ?

2006-02-16 Thread Bruno Carnazzi
 Hi community,

I reply to myself : wonderfull. I've setup a full KDE environment in
half-a-day. I remember some Gentoo days where I had to wait sometimes
for days for the same thing (that crashes because I was so aggressive
with gcc optimisation :)

I really enjoy to discover that OpenBSD is also excellent for desktop
in a full open-source environment. I'm now totally addicted ! :)

Also, I think OpenBSD is seen as a
hardcore-security-os-that-wont-run-anything-because-its-a-security-hole,
which is FALSE : YOU CAN *EASILY* USE OPENBSD FOR SOMETHING ELSE THAN
A ROUTER AND THAT MUST BE KNOWN :)

The pure-monolitic kernel is really wonderfull : no dumb module to
load that you forget to compile, auto-probing, no user-land craps
(pcmcia-cs)...

For me, OpenBSD is one of the best open-source spirit incarnation : if
something does really not work on OpenBSD, it's not the good way.

Thanks to the developpers to make it possible.

Best regards,

Bruno.

Note : Recently, NetBSD-current support wpa_supplicant. I try to use
it with OpenBSD... See
http://mail-index.netbsd.org/current-users/2005/10/01/0014.html

2006/2/14, Bruno Carnazzi <[EMAIL PROTECTED]>:
>   Hi all,
>
> I'd like to know if someone tried to build a desktop environment on
> OpenBSD/i386. I think to rich desktop like Gnome or KDE. Is it hard ?
> What's your feedback ?
>
> Best regards,
>
> Bruno.



OpenBSD for a desktop environment ?

2006-02-13 Thread Bruno Carnazzi
  Hi all,

I'd like to know if someone tried to build a desktop environment on
OpenBSD/i386. I think to rich desktop like Gnome or KDE. Is it hard ?
What's your feedback ?

Best regards,

Bruno.



Linux emulation on OpenBSD/i386 3.8 with bsd.mp

2006-02-13 Thread Bruno Carnazzi
  Hi all,

Refering to : http://www.bsdforums.org/forums/archive/index.php/t-29968.html,
I've tried to install the IBM Tivoli Storage Manager Linux client
v5.2.2 on OpenBSD/i386 3.8 through linux emulation. It behaves
normally, but I can't backup with the '-subdir=yes' option, it
generates a core dump. I think it tries to use some linux pthread and
emulation seems to hang on bsd.mp. Here is the dsmerror.log :

02/13/06   14:08:13 B/A Txn Consumer thread, fatal error, signal 11
02/13/06   14:08:13 B/A Txn Producer thread, fatal error, signal 11
02/13/06   14:08:18 pthread_kill argument invalid: ESRCH
02/13/06   14:08:18 pthread_kill argument invalid: ESRCH

I suspect a bug with linux threads on bsd.mp...

Best regards,

Bruno.

PS : If TSM client can't work on OpenBSD, I'll look at
http://rsnapshot.org (simple, powerfull, BSD-licensed)



OpenBSD 3.9-beta : pf_test: pf_get_mtag returned NULL

2006-02-13 Thread Bruno Carnazzi
   Hi all,

I've tried an OpenBSD/i386 3.9-beta snapshots 2 weeks ago. It worked
perfectly until now that I have build an AP with it, with an Nintendo
USB connector. 2 times, pf died and vomit continuously things like :

Feb 11 21:31:30 puffy /bsd: pf_test: pf_get_mtag returned NULL
Feb 11 21:31:30 puffy /bsd: pf_test: pf_get_mtag returned NULL
Feb 11 21:32:51 puffy /bsd: pf_test: pf_get_mtag returned NULL
Feb 11 21:35:08 puffy /bsd: pf_test6: pf_get_mtag returned NULL
Feb 11 21:35:08 puffy /bsd: pf_test: pf_get_mtag returned NULL
Feb 11 21:35:08 puffy /bsd: pf_test6: pf_get_mtag returned NULL

And all routing/connections died with it... :(
It appears 2 times :
  * 1 time under heavy network load (rsnapshot'ing through wifi)
  * 1 time with a very weak radio signal

I think it's a "beta effect" and I'm sure it will be fixed on 3.9-release :)

I use an OpenVPN L2-bridge to sure my AP. Here is the ifconfig while
using my AP :
$ ifconfig -a
lo0: flags=8049 mtu 33224
groups: lo
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
pflog0: flags=141 mtu 33224
pfsync0: flags=0<> mtu 1460
enc0: flags=0<> mtu 1536
ne3: 
flags=8b63
mtu 1500
lladdr 00:10:60:f6:71:29
media: Ethernet manual
inet6 fe80::210:60ff:fef6:7129%ne3 prefixlen 64 scopeid 0x5
rl0: flags=8943 mtu 1500
lladdr 00:40:f4:c3:9a:27
description: LAN interface
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.200.254 netmask 0xff00 broadcast 192.168.200.255
inet6 fe80::240:f4ff:fec3:9a27%rl0 prefixlen 64 scopeid 0x6
ural0: flags=8843 mtu 1500
lladdr 00:0d:0b:c3:cb:bb
media: IEEE802.11 autoselect hostap (autoselect mode 11b hostap)
status: active
ieee80211: nwid w3lC0m3_H0m3 chan 11 bssid 00:0d:0b:c3:cb:bb 100dBm
inet 192.168.13.254 netmask 0xff00 broadcast 255.255.255.0
inet6 fe80::20d:bff:fec3:cbbb%ural0 prefixlen 64 scopeid 0x7
tun0: flags=9943 mtu 1500
lladdr 00:bd:b2:0a:21:01
inet6 fe80::2bd:b2ff:fe0a:2101%tun0 prefixlen 64 scopeid 0x9
pppoe0: flags=8851 mtu 1492
dev: ne3 state: session
sid: 0x602 PADI retries: 0 PADR retries: 0 time: 01:29:52
groups: pppoe egress
inet 217.175.191.229 --> 0.0.0.1 netmask 0x
inet6 fe80::210:60ff:fef6:7129%pppoe0 ->  prefixlen 64 scopeid 0xa
bridge0: flags=41 mtu 1500
groups: bridge

The brconfig :
$ brconfig -a
bridge0: flags=41
Configuration:
priority 32768 hellotime 2 fwddelay 15 maxage 20
Interfaces:
tun0 flags=3
port 9 ifpriority 128 ifcost 55
rl0 flags=7
port 6 ifpriority 128 ifcost 55
ne3 flags=7
port 5 ifpriority 128 ifcost 55
Addresses (max cache: 100, timeout: 240):
00:0d:56:3e:c9:fb ne3 1 flags=0<>
00:30:88:00:45:40 ne3 1 flags=0<>
74:61:70:00:00:00 tun0 1 flags=0<>
00:90:a3:b3:b1:07 ne3 1 flags=0<>
00:12:bf:0e:42:2f ne3 1 flags=0<>

Here's my dmesg :
OpenBSD 3.9-beta (GENERIC) #595: Mon Jan 30 12:13:55 MST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 233 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 33071104 (32296K)
avail mem = 22089728 (21572K)
using 429 buffers containing 1757184 bytes (1716K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(63) BIOS, date 09/07/98, BIOS32 rev. 0 @ 0xfc2c0
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high, estimated 2:40 hours
apm0: flags 20102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf01c0/96 (4 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
WARNING: can't reserve area for I/O APIC.
WARNING: can't reserve area for Local APIC.
bios0: ROM list: 0xc/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX" rev 0x02
cbb0 at pci0 dev 2 function 0 "Toshiba ToPIC97 CardBus" rev 0x05: irq 11
cbb1 at pci0 dev 2 function 1 "Toshiba ToPIC97 CardBus" rev 0x05: irq 11
vga1 at pci0 dev 4 function 0 "Chips and Technologies 6" rev 0xc6
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 4126MB, 8452080 sectors
wd0(pciide

Re: Wireless Ethernet cards ?

2006-02-13 Thread Bruno Carnazzi
  Hi,

I've just built my home Wifi AP with an Nintendo USB Wifi Connector,
it works perfectly (support a/b/g + hostap + monitor). I run an
OpenBSD/i386 3.9-beta. The adapter is built on a Ralink chipset.

Best regards,

On 2/13/06, uv negativa <[EMAIL PROTECTED]> wrote:
> Hi all,
> Well, i need some help!
> what is the best Wireless hardware  supported on openbsd?
>
> I think I'll buy one wireless with chipset ath, but in the manual says
>
>  Revision A1 of the D-LINK DWL-G520 and DWL-G650 are based on an Intersil
>  PrismGT chip and are not supported by this driver.
>
> and at http://www.openbsdmetastore.com/ it says:  this is supported;
>
> On the other hand, on manual the hardware listing is somehow old and
> out-of-date, reason why i go to
> http://customerproducts.atheros.com/customerproducts/ResultsPageBasic.asp,but
> i dont know what is pci cards are supported?
>
> list ath
>
> Product Name
> 3CRDAG675 : 3Com 11a/b/g Wireless PCI Adapter
> Dual-Band Wireless A+G Desktop Network Card - Model F6D3000
> Cisco Aironet 802.11a/b/g Wireless PCI Adapter
> iWAVEPORT WL54G (1a) 108Mbps Wireless Super-G Network PCI Adapter
> CG-WLPCI54AG
> AirPlus Xtreme G 108Mbps PCI Adapter DWL-G520
> AirPremier AG Wireless 108Mbps PCI Adapter DWL-AG530
> LD-WL5411A/B
> WN-AG/PCI
> KLG-530: 108G+ Wireless PCI Desktop Adapter Card
> WMP55AG 802.11a/g PCI
> 108Mbps Wireless PCI Adapter - Model WG311T
> Dual-Band WLAN PCI Adapter - Model WAG311
> Wireless Integrated PCI Adapter - Model HA311
> RangeMax Wireless PCI Adapter - Model WPN311
> Dual Band Wireless PCI Adapter - Model WAG311
> 108 Mbps Wireless PCI Adapter - Model WG311T
> 8482WD PCI card, World, Gold
> 8482JP 11a/b/g PCI card- Japan- Gold
> SX-10WG
> EliteConnect Universal 2.4GHz/5GHz PCI Card SMC2512W-AG
> TL-WN650G
> TL-WN550G
> TEW-443PI - 108Mbps 802.11g Wireless PCI Adapter
> TEW-503PI - 802.11a/g Wireless PCI Adapter
> TEW-603PI 108Mbps 802.11g MIMO Wireless PCI Adapter
>
>
>
>
> Thanks for help?



Slow disk access ?

2006-02-02 Thread Bruno Carnazzi
   Hi all,

I'm running OpenBSD/i386 3.8 with GENERIC.MP on a Compaq Proliant
DL380, powered by 2 PIII-866. All my partitions lives on a 3 ULTRA320
SCSI 10K RPM disk RAID-5 array.

When I untar ports.tar.gz, it took about 4 minutes for a 8Mb archive
(lots of small files)... I feel this is a bit poor performance :

$ time tar -xzf ports.tar.gz
3m57.80s real 0m1.85s user 0m4.52s system
$ ls -l
total 17188
drwxr-xr-x  44 bcarnazzi  bcarnazzi 1024 Sep  2 05:08 ports
-rw-r--r--   1 bcarnazzi  bcarnazzi  8775929 Feb  2 17:01 ports.tar.gz

I already use softupdate, as mount reports :

/dev/sd0a on / type ffs (local, softdep)
/dev/sd0h on /home type ffs (local, nodev, nosuid, softdep)
/dev/sd0d on /tmp type ffs (local, nodev, nosuid, softdep)
/dev/sd0g on /usr type ffs (local, nodev, softdep)
/dev/sd0e on /var type ffs (local, nodev, nosuid, softdep)

Here is the dmesg :

OpenBSD 3.8 (GENERIC.MP) #298: Sat Sep 10 15:51:54 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 864 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 2147049472 (2096728K)
avail mem = 1953083392 (1907308K)
using 4278 buffers containing 107454464 bytes (104936K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf
pcibios0 at bios0: rev 2.1 @ 0xf/0x2000
pcibios0: PCI BIOS has 7 Interrupt Routing table entries
pcibios0: PCI Interrupt Router at 000:15:0 ("ServerWorks ROSB4
SouthBridge" rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x4000! 0xcc000/0x800
0xe8000/0x6000 0xee000/0x2000!
mainbus0: Intel MP Specification (Version 1.4) (COMPAQ   PROLIANT)
cpu0 at mainbus0: apid 1 (boot processor)
cpu0: apic clock running at 132 MHz
cpu1 at mainbus0: apid 0 (application processor)
cpu1: Intel Pentium III ("GenuineIntel" 686-class) 864 MHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
mainbus0: bus 0 is type PCI
mainbus0: bus 3 is type PCI
mainbus0: bus 9 is type ISA
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 11, 35 pins
ioapic0: misconfigured as apic 0, remapped to apic 8
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20LE Host" rev 0x05
pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20LE Host" rev 0x05
pci1 at pchb1 bus 3
cac0 at pci0 dev 1 function 0 "Symbios Logic 53c1510" rev 0x02: apic 8
int 10 (irq 10) Compaq Integrated Array
scsibus0 at cac0: 1 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI2 0/direct fixed
sd0: 69455MB, 17432 cyl, 255 head, 32 sec, 512 bytes/sec, 142245120 sec total
fxp0 at pci0 dev 2 function 0 "Intel 82557" rev 0x08, i82559: apic 8
int 11 (irq 11), address 00:02:a5:29:15:f0
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
vga1 at pci0 dev 3 function 0 "ATI Mach64 GV" rev 0x7a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Compaq Netelligent ASMC" rev 0x00 at pci0 dev 4 function 0 not configured
xl0 at pci0 dev 5 function 0 "3Com 3c905C 100Base-TX" rev 0x78: apic 8
int 5 (irq 5)xl0: reset didn't complete
, address 00:0a:5e:5a:c9:a4
exphy0 at xl0 phy 24: 3Com internal media interface
xl0: reset didn't complete
pcib0 at pci0 dev 15 function 0 "ServerWorks ROSB4 SouthBridge" rev 0x4f
pciide0 at pci0 dev 15 function 1 "ServerWorks OSB4 IDE" rev 0x00: DMA
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0:  SCSI0 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
isa0 at pcib0
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: 
spkr0 at pcppi0
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 0 netmask 0 ttymask 0
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: sd0 matches BIOS drive 0x80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02

Is this "normal" OpenBSD performance ? I feel an ext3 fs a bit faster
on linux-2.6 running the same hardware :

mount :
/dev/ida/disc0/part3 on / type ext3 (rw,noatime)

time :
[EMAIL PROTECTED] tmp $ time tar -xzf ports.tar.gz

real1m29.349s
user0m2.700s
sys 0m4.460s

2 times faster :(

While in my case, FS performance is not very important, I'd like to
know if this difference can be reduced and if not, why this difference
(noatime plays in favor of linux) ?

Thank you,

Bruno.



Re: Small pauses with a trunk(4) interface

2006-02-02 Thread Bruno Carnazzi
Yeah !

Using your third suggested configuration on my old cisco 2950, I now
have a very responsive system...
Thank you for your fantastic work on trunk and these information (the
need for a switch configuration (etherchannel, HP trunking, etc.)
should be somewhere in manpages, in my mind...)

Best regards,

Bruno.

On 2/1/06, Reyk Floeter <[EMAIL PROTECTED]> wrote:
> hi,
>
> On Wed, Feb 01, 2006 at 06:42:47PM +0400, Bruno Carnazzi wrote:
> > I use OpenBSD/i386 3.8 with GENERIC.MP.
>
> trunk(4) support in OpenBSD 3.8 was quite new and there were some
> bugfixes and improvements during the last development cycle. these
> fixes, like trunkproto failover and multicast support for things like
> pfsync or carp, will be available in OpenBSD 3.9.
>
> > I use a trunk interface based on 2 physical devices as you can see here :
> >
> -//-
> > trunk0: flags=8843 mtu 1500
> > lladdr 00:02:a5:29:15:f0
> > trunk: trunkproto roundrobin
> > trunkport xl0
> > trunkport fxp0 master
> > groups: trunk egress
> > media: Ethernet autoselect
> > status: active
> > inet 172.20.3.100 netmask 0xfe00 broadcast 172.20.3.255
> >
> -//-
> > fxp0 at pci0 dev 2 function 0 "Intel 82557" rev 0x08, i82559: apic 8
> > int 11 (irq 11), address 00:02:a5:29:15:f0
> > inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
> -//-
> > xl0 at pci0 dev 5 function 0 "3Com 3c905C 100Base-TX" rev 0x78: apic 8
> > int 5 (irq 5)xl0: reset didn't complete
> > , address 00:0a:5e:5a:c9:a4
> > exphy0 at xl0 phy 24: 3Com internal media interface
> > xl0: reset didn't complete
>
> there's a problem with your 3com nic which is not related to trunk,
> you should replace the nic ie. with a second fxp(4).
>
> > With this configuration, I can see small network pauses  (1s) when
> > SSHing or downloading something through the local running squid. I
> > figure the trunk works this way : packet are sent through the member
> > interfaces with the trunk IP address and with the master NIC MAC@ and
> > packet are received on all trunk members thanks to the promiscuous
> > mode. As my NIC are plugged on the same L2 switch (for testing
> > purpose, maybe I'll use 2 different switch on a production
> > configuration), I suggest it bothers the switch with the same MAC@ on
> > 2 ports. All error counters are null on this switch. I didn't
> > configure something like etherchannel or 802.3ad on these interface.
> >
>
> trunk(4) operates on layer 2, it is (not yet) related to any IP stuff.
> it uses one MAC address borrowed from the master interface (currently
> the first trunkport you add). in roundrobin mode, it distributes the
> outgoing packets through all attached and active interfaces and
> receives packets for this MAC from any active port. as you noticed,
> your switch will get confused if you don't configure a trunk group
> (cizzco calls it etherchannel or port group; hp procurve calls it
> trunk).
>
> OpenBSD 3.8 only supported trunk(4) in roundrobin mode, but i added a
> failover mode in 3.8-current for the next release. failover mode only
> uses the first active interface (primarily the master interface) for
> packet distribution and does a failover to the next active interface
> if the port's state link goes down. this works with "stupid" switches
> or even hubs. the switch will probably take some time to learn the mac
> address on a new port but only once in case of a failover.
>
> IEEE 802.3ad is not supported at the moment, it just works fine in
> simple roundrobin or in failover mode without any dynamic link
> aggregation protocols (i don't really see the point for 802.3ad at the
> moment, it adds no benefit just some dynamic "plug and play" foo).
>
> > Does trunk operate this way ? Is there a way to avoid this phenomenon ?
> >
>
> - try again with enabling a trunk group on your switch
> - try again with 3.9-beta
> - try again in failover mode
>
> my development is focussed on hp procurve switches because their trunk
> implementation works pretty well and i can probably play with
> 802.3ad/LACP later (and they use openssh in their switches ;-)).
>
> examples:
>
> (1) openbsd trunkproto roundrobin <-> hp trunk
>
> HPswitch(config)# no interface c4-c5 lacp
> HPswitch(config)# interface c4-c5 trk1 trunk
>
> openbsd# ifconfig trunk0
> trunk0: flags=8843 mtu 1500
> lladdr 00:00:5a:9f:31:d6
> trunk: trunkproto roundrobin
> trunkport sk1
> trunkport sk0 master
>   

Small pauses with a trunk(4) interface

2006-02-01 Thread Bruno Carnazzi
  Hi all,

I use OpenBSD/i386 3.8 with GENERIC.MP.
I use a trunk interface based on 2 physical devices as you can see here :

$ ifconfig -a
lo0: flags=8049 mtu 33224
groups: lo
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
fxp0: flags=8943 mtu 1500
lladdr 00:02:a5:29:15:f0
trunk: trunkdev trunk0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::202:a5ff:fe29:15f0%fxp0 prefixlen 64 scopeid 0x1
xl0: flags=8943 mtu 1500
lladdr 00:0a:5e:5a:c9:a4
trunk: trunkdev trunk0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::20a:5eff:fe5a:c9a4%xl0 prefixlen 64 scopeid 0x2
pflog0: flags=0<> mtu 33224
pfsync0: flags=0<> mtu 1348
enc0: flags=0<> mtu 1536
trunk0: flags=8843 mtu 1500
lladdr 00:02:a5:29:15:f0
trunk: trunkproto roundrobin
trunkport xl0
trunkport fxp0 master
groups: trunk egress
media: Ethernet autoselect
status: active
inet 172.20.3.100 netmask 0xfe00 broadcast 172.20.3.255

Here's the dmesg (notice the xl0 strange message) :
OpenBSD 3.8 (GENERIC.MP) #298: Sat Sep 10 15:51:54 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 864 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 2147049472 (2096728K)
avail mem = 1953083392 (1907308K)
using 4278 buffers containing 107454464 bytes (104936K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf
pcibios0 at bios0: rev 2.1 @ 0xf/0x2000
pcibios0: PCI BIOS has 7 Interrupt Routing table entries
pcibios0: PCI Interrupt Router at 000:15:0 ("ServerWorks ROSB4
SouthBridge" rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x4000! 0xcc000/0x800
0xe8000/0x6000 0xee000/0x2000!
mainbus0: Intel MP Specification (Version 1.4) (COMPAQ   PROLIANT)
cpu0 at mainbus0: apid 1 (boot processor)
cpu0: apic clock running at 132 MHz
cpu1 at mainbus0: apid 0 (application processor)
cpu1: Intel Pentium III ("GenuineIntel" 686-class) 864 MHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
mainbus0: bus 0 is type PCI
mainbus0: bus 3 is type PCI
mainbus0: bus 9 is type ISA
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 11, 35 pins
ioapic0: misconfigured as apic 0, remapped to apic 8
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20LE Host" rev 0x05
pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20LE Host" rev 0x05
pci1 at pchb1 bus 3
cac0 at pci0 dev 1 function 0 "Symbios Logic 53c1510" rev 0x02: apic 8
int 10 (irq 10) Compaq Integrated Array
scsibus0 at cac0: 1 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI2 0/direct fixed
sd0: 69455MB, 17432 cyl, 255 head, 32 sec, 512 bytes/sec, 142245120 sec total
fxp0 at pci0 dev 2 function 0 "Intel 82557" rev 0x08, i82559: apic 8
int 11 (irq 11), address 00:02:a5:29:15:f0
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
vga1 at pci0 dev 3 function 0 "ATI Mach64 GV" rev 0x7a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Compaq Netelligent ASMC" rev 0x00 at pci0 dev 4 function 0 not configured
xl0 at pci0 dev 5 function 0 "3Com 3c905C 100Base-TX" rev 0x78: apic 8
int 5 (irq 5)xl0: reset didn't complete
, address 00:0a:5e:5a:c9:a4
exphy0 at xl0 phy 24: 3Com internal media interface
xl0: reset didn't complete
pcib0 at pci0 dev 15 function 0 "ServerWorks ROSB4 SouthBridge" rev 0x4f
pciide0 at pci0 dev 15 function 1 "ServerWorks OSB4 IDE" rev 0x00: DMA
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0:  SCSI0 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
isa0 at pcib0
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: 
spkr0 at pcppi0
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 0 netmask 0 ttymask 0
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: sd0 matches BIOS drive 0x80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02

With this configuration, I can see small network pauses  (1s) when
SSHing or downloading something through the local running squid. I
figure the trunk works this way : packet a

Re: Alias IP on a trunk(4) interface

2006-01-31 Thread Bruno Carnazzi
Oups sorry,it just works. Posting too early...

$ ifconfig trunk0
trunk0: flags=8843 mtu 1500
lladdr 00:02:a5:29:15:f0
trunk: trunkproto roundrobin
trunkport xl0
trunkport fxp0 master
groups: trunk egress
media: Ethernet autoselect
status: active
inet 172.20.3.100 netmask 0xfe00 broadcast 172.20.3.255
inet 197.7.70.222 netmask 0xff00 broadcast 197.7.70.255



On 1/31/06, Bruno Carnazzi <[EMAIL PROTECTED]> wrote:
>   Hi all,
>
> I'd like to add some alias IP to a trunk(4) interface and it doesn't
> seem to work...
> Here's is my ifconfig -a just after booting :
>
> $ ifconfig -a
> lo0: flags=8049 mtu 33224
> groups: lo
> inet 127.0.0.1 netmask 0xff00
> inet6 ::1 prefixlen 128
> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
> fxp0: flags=8943 mtu 1500
> lladdr 00:02:a5:29:15:f0
> trunk: trunkdev trunk0
> media: Ethernet autoselect (100baseTX full-duplex)
> status: active
> inet6 fe80::202:a5ff:fe29:15f0%fxp0 prefixlen 64 scopeid 0x1
> xl0: flags=8943 mtu 1500
> lladdr 00:0a:5e:5a:c9:a4
> trunk: trunkdev trunk0
> media: Ethernet autoselect (100baseTX full-duplex)
> status: active
> inet6 fe80::20a:5eff:fe5a:c9a4%xl0 prefixlen 64 scopeid 0x2
> pflog0: flags=0<> mtu 33224
> pfsync0: flags=0<> mtu 1348
> enc0: flags=0<> mtu 1536
> trunk0: flags=8843 mtu 1500
> lladdr 00:02:a5:29:15:f0
> trunk: trunkproto roundrobin
> trunkport xl0
> trunkport fxp0 master
> groups: trunk egress
> media: Ethernet autoselect
> status: active
> inet 172.20.3.100 netmask 0xfe00 broadcast 172.20.3.255
>
> And here is my /etc/hostname.trunk0 :
> !/sbin/ifconfig fxp0 up
> !/sbin/ifconfig xl0 up
>
> inet 172.20.3.100 255.255.254.0 NONE trunkport fxp0 trunkport xl0
> inet alias 197.7.70.222 255.255.255.0
> up
>
> The 197.7.70.200 alias does not appears...
> Refering to http://www.openbsd.org/faq/faq6.html#Setup, this command :
> ifconfig trunk0 inet alias 197.7.70.222 netmask 255.255.255.255 should
> do the trick. But not. Silently retrurn with a null error code.
>
> The CAVEATS section of man 4 trunk does not reports this.
>
> Got an idea ?
>
> Thank you,
>
> Bruno.



Alias IP on a trunk(4) interface

2006-01-31 Thread Bruno Carnazzi
  Hi all,

I'd like to add some alias IP to a trunk(4) interface and it doesn't
seem to work...
Here's is my ifconfig -a just after booting :

$ ifconfig -a
lo0: flags=8049 mtu 33224
groups: lo
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
fxp0: flags=8943 mtu 1500
lladdr 00:02:a5:29:15:f0
trunk: trunkdev trunk0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::202:a5ff:fe29:15f0%fxp0 prefixlen 64 scopeid 0x1
xl0: flags=8943 mtu 1500
lladdr 00:0a:5e:5a:c9:a4
trunk: trunkdev trunk0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::20a:5eff:fe5a:c9a4%xl0 prefixlen 64 scopeid 0x2
pflog0: flags=0<> mtu 33224
pfsync0: flags=0<> mtu 1348
enc0: flags=0<> mtu 1536
trunk0: flags=8843 mtu 1500
lladdr 00:02:a5:29:15:f0
trunk: trunkproto roundrobin
trunkport xl0
trunkport fxp0 master
groups: trunk egress
media: Ethernet autoselect
status: active
inet 172.20.3.100 netmask 0xfe00 broadcast 172.20.3.255

And here is my /etc/hostname.trunk0 :
!/sbin/ifconfig fxp0 up
!/sbin/ifconfig xl0 up

inet 172.20.3.100 255.255.254.0 NONE trunkport fxp0 trunkport xl0
inet alias 197.7.70.222 255.255.255.0
up

The 197.7.70.200 alias does not appears...
Refering to http://www.openbsd.org/faq/faq6.html#Setup, this command :
ifconfig trunk0 inet alias 197.7.70.222 netmask 255.255.255.255 should
do the trick. But not. Silently retrurn with a null error code.

The CAVEATS section of man 4 trunk does not reports this.

Got an idea ?

Thank you,

Bruno.



Re: OpenBSD/i386 3.8 on a Compaq DL380 SMP with GENERIC.MP

2006-01-30 Thread Bruno Carnazzi
Thank you guys,

Setting Linux as OS in the BIOS did the trick ! top(1) now reports 2 CPUs.
OS was previously setted at 'Other'.
Is there some stability/performance advantage in upgrading the
Proliant Firmware ?

Here's the new dmesg :

OpenBSD 3.8 (GENERIC.MP) #298: Sat Sep 10 15:51:54 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 864 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 2147049472 (2096728K)
avail mem = 1953083392 (1907308K)
using 4278 buffers containing 107454464 bytes (104936K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf
pcibios0 at bios0: rev 2.1 @ 0xf/0x2000
pcibios0: PCI BIOS has 7 Interrupt Routing table entries
pcibios0: PCI Interrupt Router at 000:15:0 ("ServerWorks ROSB4
SouthBridge" rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x4000! 0xcc000/0x800
0xe8000/0x6000 0xee000/0x2000!
mainbus0: Intel MP Specification (Version 1.4) (COMPAQ   PROLIANT)
cpu0 at mainbus0: apid 1 (boot processor)
cpu0: apic clock running at 132 MHz
cpu1 at mainbus0: apid 0 (application processor)
cpu1: Intel Pentium III ("GenuineIntel" 686-class) 864 MHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
mainbus0: bus 0 is type PCI
mainbus0: bus 3 is type PCI
mainbus0: bus 9 is type ISA
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 11, 35 pins
ioapic0: misconfigured as apic 0, remapped to apic 8
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20LE Host" rev 0x05
pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20LE Host" rev 0x05
pci1 at pchb1 bus 3
cac0 at pci0 dev 1 function 0 "Symbios Logic 53c1510" rev 0x02: apic 8
int 10 (irq 10) Compaq Integrated Array
scsibus0 at cac0: 1 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI2 0/direct fixed
sd0: 69455MB, 17432 cyl, 255 head, 32 sec, 512 bytes/sec, 142245120 sec total
fxp0 at pci0 dev 2 function 0 "Intel 82557" rev 0x08, i82559: apic 8
int 11 (irq 11), address 00:02:a5:29:15:f0
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
vga1 at pci0 dev 3 function 0 "ATI Mach64 GV" rev 0x7a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Compaq Netelligent ASMC" rev 0x00 at pci0 dev 4 function 0 not configured
xl0 at pci0 dev 5 function 0 "3Com 3c905C 100Base-TX" rev 0x78: apic 8
int 5 (irq 5)xl0: reset didn't complete
, address 00:0a:5e:5a:c9:a4
exphy0 at xl0 phy 24: 3Com internal media interface
xl0: reset didn't complete
pcib0 at pci0 dev 15 function 0 "ServerWorks ROSB4 SouthBridge" rev 0x4f
pciide0 at pci0 dev 15 function 1 "ServerWorks OSB4 IDE" rev 0x00: DMA
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0:  SCSI0 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
isa0 at pcib0
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: 
spkr0 at pcppi0
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 0 netmask 0 ttymask 0
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: sd0 matches BIOS drive 0x80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02

Bruno.

On 1/30/06, Steven S <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On 1/30/06, Bruno Carnazzi <[EMAIL PROTECTED]> wrote:
> >>   Hi all,
> >>
> >> Everything seems to work fine but OpenBSD find only one CPU ! :(
> >> Somebody know why and how can I use the 2 CPUs ?
> >>
> ...
> >
> > Works fine here on the DL380G4's  with -current (worked with release
> > too if I remember correctly).  From your dmesg, this looks like a
> > first generation box - there's numerous tweaks in the BIOS on these
> > machines.  Until recently I also had a DL360G1 running 3.7 with both
> > CPUs recognized - this should be more or less the same hardware you
> > have.
> >
> > --Bill
>
> I have two dual DL360-G1's in a FW/CARP config running now.  I ended up
> using the Compaq SmartStart CD (or whatever the bootable CD utility is
> called) and set the OS to "Linux".
>
> -Steve S.



Re: webmin like for openbsd

2006-01-30 Thread Bruno Carnazzi
  Hi,

Have a look at SyMon : http://www.xs4all.nl/~wpd/symon/

It's just a monitor, you CAN NOT act on your server thru this (which
is a better way, I think). For remote admin, use ssh, web is not
appropriate.

Best regards,

Bruno.

On 1/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> guys do you have any idea if their's another package like webmin for openbsd?
>
> what is your comment also about webmin.. is it safe to use?
>
> thanks guys.. ;)



Re: OpenBSD/i386 3.8 on a Compaq DL380 SMP with GENERIC.MP

2006-01-30 Thread Bruno Carnazzi
top show me only one CPU...

load averages:  0.09,  0.11,  0.06
  
14:23:20
24 processes:  23 idle, 1 on processor
CPU states:  0.0% user,  0.0% nice,  0.2% system,  2.0% interrupt, 97.8% idle
Memory: Real: 14M/172M act/tot  Free: 1842M  Swap: 0K/299M used/tot

  PID USERNAME PRI NICE  SIZE   RES STATEWAIT TIMECPU COMMAND
 5862 _squid 20 4136K 5968K sleeppoll 0:00  0.00% squid
31899 root   20 3312K 2120K idle netio0:00  0.00% sshd
19342 root   20  572K 1092K sleeppoll 0:00  0.00% top
12615 named  20 2092K 2344K idle select   0:00  0.00% named
11338 root  180  396K  456K idle pause0:00  0.00% ksh
17509 bcarnazz   20 3288K 1392K sleepselect   0:00  0.00% sshd
13242 root   20 1188K 1132K sleepselect   0:00  0.00% sendmail
 4659 _ntp   20  348K  584K sleeppoll 0:00  0.00% ntpd
30535 bcarnazz  180  540K  468K sleeppause0:00  0.00% ksh
22523 _syslogd   20  356K  552K idle poll 0:00  0.00% syslogd
31515 bcarnazz  280  400K 1024K onproc   -0:00  0.00% top
10975 _squid-60  184K  304K idle piperd   0:00  0.00% unlinkd
1 root  100  264K  308K idle wait 0:00  0.00% init
 1079 root   20  440K  664K sleepselect   0:00  0.00% cron
26496 root   30  248K  524K idle ttyin0:00  0.00% getty
 6457 root   30  340K  524K idle ttyin0:00  0.00% getty
28005 root   30  352K  532K idle ttyin0:00  0.00% getty
 6209 root   30  228K  532K idle ttyin0:00  0.00% getty
  148 root   20  404K  620K idle poll 0:00  0.00% ntpd
 3980 root  100  864K  568K idle wait 0:00  0.00% squid
 2756 root   20  328K  512K idle netio0:00  0.00% syslogd
15677 root   20  556K  896K idle select   0:00  0.00% sshd
 8774 root   20  280K  488K idle select   0:00  0.00% inetd
  882 root   20 1476K  532K idle netio0:00  0.00% named


On 1/30/06, Marco Fretz <[EMAIL PROTECTED]> wrote:
> im really not sure, but i think the secound cpu is not found at the same
> time in boot process as the first. i had an ibm intellisation with 2
> cpus. the sec cpu was listed in dmesg after mounting fs.
>
> you dont see sec cpu in # top?
>
> any one knows thats ok?
>
>
> On Mon, 2006-01-30 at 12:15 +0400, Bruno Carnazzi wrote:
> >   Hi all,
> >
> > Everything seems to work fine but OpenBSD find only one CPU ! :(
> > Somebody know why and how can I use the 2 CPUs ?
> >
> > Thank you,
> >
> > Bruno.
> >
> > Here is the dmesg :
> >
> > OpenBSD 3.8 (GENERIC.MP) #298: Sat Sep 10 15:51:54 MDT 2005
> > [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
> > cpu0: Intel Pentium III ("GenuineIntel" 686-class) 864 MHz
> > cpu0: 
> > FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
> > real mem  = 2147049472 (2096728K)
> > avail mem = 1953083392 (1907308K)
> > using 4278 buffers containing 107454464 bytes (104936K) of memory
> > mainbus0 (root)
> > bios0 at mainbus0: AT/286+(00) BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf
> > pcibios0 at bios0: rev 2.1 @ 0xf/0x2000
> > pcibios0: PCI BIOS has 7 Interrupt Routing table entries
> > pcibios0: PCI Interrupt Router at 000:15:0 ("ServerWorks ROSB4
> > SouthBridge" rev 0x00)
> > pcibios0: PCI bus #0 is the last bus
> > bios0: ROM list: 0xc/0x8000 0xc8000/0x4000! 0xcc000/0x800
> > 0xe8000/0x6000 0xee000/0x2000!
> > cpu0 at mainbus0: (uniprocessor)
> > cpu0: Intel Pentium III ("GenuineIntel" 686-class) 864 MHz
> > cpu0: 
> > FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
> > pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> > pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20LE Host" rev 0x05
> > pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20LE Host" rev 0x05
> > pci1 at pchb1 bus 3
> > cac0 at pci0 dev 1 function 0 "Symbios Logic 53c1510" rev 0x02: irq 10
> > Compaq Integrated Array
> > scsibus0 at cac0: 1 targets
> > sd0 at scsibus0 targ 0 lun 0:  SCSI2 0/direct 
> > fixed
> > sd0: 69455MB, 17432 cyl, 255 head, 32 sec, 512 bytes/sec, 142245120 sec 
> > total
> > fxp0 at pci0 dev 2 function 0 "Intel 82557" rev 0x08, i82559: irq 11,
> > address 00:02:a5:29:15:f0
> > inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
> > vga1 at pci0 dev 3 function 0 "ATI Mach64 GV" rev 0x7a
> > wsdisplay0 at vga1 

OpenBSD/i386 3.8 on a Compaq DL380 SMP with GENERIC.MP

2006-01-30 Thread Bruno Carnazzi
  Hi all,

Everything seems to work fine but OpenBSD find only one CPU ! :(
Somebody know why and how can I use the 2 CPUs ?

Thank you,

Bruno.

Here is the dmesg :

OpenBSD 3.8 (GENERIC.MP) #298: Sat Sep 10 15:51:54 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 864 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 2147049472 (2096728K)
avail mem = 1953083392 (1907308K)
using 4278 buffers containing 107454464 bytes (104936K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf
pcibios0 at bios0: rev 2.1 @ 0xf/0x2000
pcibios0: PCI BIOS has 7 Interrupt Routing table entries
pcibios0: PCI Interrupt Router at 000:15:0 ("ServerWorks ROSB4
SouthBridge" rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x4000! 0xcc000/0x800
0xe8000/0x6000 0xee000/0x2000!
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 864 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20LE Host" rev 0x05
pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20LE Host" rev 0x05
pci1 at pchb1 bus 3
cac0 at pci0 dev 1 function 0 "Symbios Logic 53c1510" rev 0x02: irq 10
Compaq Integrated Array
scsibus0 at cac0: 1 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI2 0/direct fixed
sd0: 69455MB, 17432 cyl, 255 head, 32 sec, 512 bytes/sec, 142245120 sec total
fxp0 at pci0 dev 2 function 0 "Intel 82557" rev 0x08, i82559: irq 11,
address 00:02:a5:29:15:f0
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
vga1 at pci0 dev 3 function 0 "ATI Mach64 GV" rev 0x7a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Compaq Netelligent ASMC" rev 0x00 at pci0 dev 4 function 0 not configured
xl0 at pci0 dev 5 function 0 "3Com 3c905C 100Base-TX" rev 0x78: irq 5,
address 00:0a:5e:5a:c9:a4
exphy0 at xl0 phy 24: 3Com internal media interface
pcib0 at pci0 dev 15 function 0 "ServerWorks ROSB4 SouthBridge" rev 0x4f
pciide0 at pci0 dev 15 function 1 "ServerWorks OSB4 IDE" rev 0x00: DMA
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0:  SCSI0 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
isa0 at pcib0
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: 
spkr0 at pcppi0
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask f7c5 netmask ffe5 ttymask ffe7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: sd0 matches BIOS drive 0x80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02



Re: OpenBSD 3.8 and IBM Blade HS20 boot CD

2006-01-20 Thread Bruno Carnazzi
I've got exactly the same problem. It seems that BladeCenter have an
unusual keyboard controller (switchable). I tried to boot with all
floppy disk, with external keyboard (USB and PS/2), different BIOS
settings and it never worked. I think the internal KVM is not
"hardware transparent". I'm not sure but I think that NetBSD/i386
2.0.2 didn't boot either (can't remember). Also, critical pieces of
hardware are detected and configured : buses, cpu, ram, nic, scsi,
video... It's raging to be blocked by... the keyboard !! Hope it will
be supported some days...

Best regards,

Bruno.

On 1/18/06, Martin R. Sxrensen <[EMAIL PROTECTED]> wrote:
> Hi... I hope that someone can help me, I'm new to OpenBSD and I'm trying to 
> install 3.8 on a IBM blade server HS20 Then I try to boot from the 
> install CD or floppy I get en error saying: pckbc_start: send error and then 
> it stops.
>
> I have disable USB, but that didn't chance anything
>
> Sow please help !!
>
> Regards
> Martin Sxrensen



Re: Securing an OpenBSD AP (or bridge, dunno)

2006-01-15 Thread Bruno Carnazzi
You're right, MAC@ is easy spoofable. I've found this and it looks to
be what I want :
http://software.newsforge.com/print.pl?sid=05/11/21/175249

It combines L3 isolation before authentication, L2 advantages (same
LAN) after authentication (L2 OpenVPN tunnel + bridge with wired LAN),
and a good level of security : authentication through authpf and
strong ciphering through OpenVPN.

Hopes it help,

Best regards,

Bruno.

On 1/15/06, Jonathan Gray <[EMAIL PROTECTED]> wrote:
> On Sun, Jan 15, 2006 at 12:10:13PM +0400, Bruno Carnazzi wrote:
> >Hi all,
> >
> > I use an OpenBSD/i386 3.8 as a gateway for routing my residential ADSL
> > access. I'm going to use an USB dongle (this is my last externel port
> > available :( to provide some Wifi access for some laptops (mainly my
> > Powerbook). I'd like it to be secured enough. So, here's some question
> > about this :
> >
> > * What's the best supported wifi chipset "USB-availbale) (ural vs wi vs atu 
> > ?)
> > * What's the best "linking" method : routing (AP) or bridging ? I
> > think in AP mode, filtering could be easier (of course, a filtering
> > wifi bridge is also possible) ? Is bridging more CPU-friendly (no nat)
> > ? (It's only a PII-233 that already share a 2Mbps with an in-kernel
> > PPPoE on 2 PCMCIA cards -> lots of interrupts !)
>
> ural is the only one that works in hostap mode.  You will need
> USB2 to get full speeds out of it which your PII won't have onboard.
>
> > * Wireless security : i'd like to use MAC@ filtering (it should be ok)
> > and a ciphering technology for privacy. I know OpenBSD doesn't yet
> > support WPA. What are some good alternative (in L2 or L3) ? WEP is not
> > a solution. Is it possible to use IPSec in transport mode to protect
> > this traffic or something else (OpenVPN ?)
>
> You need to specify what you want.  Access control based on MAC addresses
> is stupid and can be easily worked around, if you just want
> access control that isn't retarded you should look at authpf.



Securing an OpenBSD AP (or bridge, dunno)

2006-01-15 Thread Bruno Carnazzi
   Hi all,

I use an OpenBSD/i386 3.8 as a gateway for routing my residential ADSL
access. I'm going to use an USB dongle (this is my last externel port
available :( to provide some Wifi access for some laptops (mainly my
Powerbook). I'd like it to be secured enough. So, here's some question
about this :

* What's the best supported wifi chipset "USB-availbale) (ural vs wi vs atu ?)
* What's the best "linking" method : routing (AP) or bridging ? I
think in AP mode, filtering could be easier (of course, a filtering
wifi bridge is also possible) ? Is bridging more CPU-friendly (no nat)
? (It's only a PII-233 that already share a 2Mbps with an in-kernel
PPPoE on 2 PCMCIA cards -> lots of interrupts !)
* Wireless security : i'd like to use MAC@ filtering (it should be ok)
and a ciphering technology for privacy. I know OpenBSD doesn't yet
support WPA. What are some good alternative (in L2 or L3) ? WEP is not
a solution. Is it possible to use IPSec in transport mode to protect
this traffic or something else (OpenVPN ?)
* Do I forget something ? :)

Thank you,

Best regards,

Bruno.



Unsupported Wifi dongle

2006-01-10 Thread Bruno Carnazzi
   Hi all,

I've been given a Wifi USB dongle (the one given with the LiveBox
(France Telecom ADSL access) : the Inventel UR054g (in fact, it's a
Thomson Telecom product). With my OBSD 3.8/i386 (GENERIC), it's not
recognized (in fact, as ugen0), here is the dmesg :

OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 233 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 33071104 (32296K)
avail mem = 22192128 (21672K)
using 429 buffers containing 1757184 bytes (1716K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(63) BIOS, date 09/07/98, BIOS32 rev. 0 @ 0xfc2c0
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high
apm0: flags 20102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf01c0/96 (4 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
WARNING: can't reserve area for I/O APIC.
WARNING: can't reserve area for Local APIC.
bios0: ROM list: 0xc/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX" rev 0x02
cbb0 at pci0 dev 2 function 0 "Toshiba ToPIC97 CardBus" rev 0x05: irq 11
cbb1 at pci0 dev 2 function 1 "Toshiba ToPIC97 CardBus" rev 0x05: irq 11
vga1 at pci0 dev 4 function 0 "Chips and Technologies 6" rev 0xc6
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 4126MB, 8452080 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82371AB Power" rev 0x02 at pci0 dev 7 function 3 not configured
"Toshiba Fast Infrared Type O" rev 0x23 at pci0 dev 10 function 0 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0 cacheline 0x0, lattimer 0x0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 2 device 0 cacheline 0x0, lattimer 0x0
pcmcia1 at cardslot1
isa0 at pcib0
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
sb0 at isa0 port 0x220/24 irq 5 drq 1: dsp v3.01
midi0 at sb0: 
audio0 at sb0
opl0 at sb0: model OPL3
midi1 at opl0: 
wss0 at isa0 port 0x530/8 irq 10 drq 0: CS4231 or AD1845 (vers 4)
audio1 at wss0
pcppi0 at isa0 port 0x61
midi2 at pcppi0: 
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask eb4d netmask eb4d ttymask fbcf
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
ne3 at pcmcia0 function 0 "PCMCIA, FastEthernet, V" port 0xa300/32
ne3: address 00:10:60:f6:71:29
rl0 at cardbus1 dev 0 function 0 "Realtek, Rtl8139, \M^?": irq 11
address 00:40:f4:c3:9a:27
rlphy0 at rl0 phy 0: RTL internal phy
ugen0 at uhub0 port 1
ugen0: GlobespanVirata Cohiba 3887 rev0, rev 2.00/10.20, addr 2
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
pppoe0: phase establish
pppoe0: phase authenticate
pppoe0: phase network


Some tech spec can be found at :
http://www.unex.com.tw/web1/images/product/spec/UR054g.htm

Under Linux, it can works through NDISWrapper using the prisma02 driver.
Based on : http://www.inexq.co.uk/web1/english/download/search.asp#,
it use a Conexant chipset.

Can we hope to have this model supported in the next release ?

Thank you,

Best regards,

Bruno.



Re: DRI on OpenBSD (again, but with Xorg)

2006-01-10 Thread Bruno Carnazzi
Is DRI support activated in GENERIC kernel (OpenBSD 3.8/i386) ?

Thank you,

On 1/10/06, Andreas Bihlmaier <[EMAIL PROTECTED]> wrote:
> On Mon, Jan 09, 2006 at 03:25:34PM +0400, Bruno Carnazzi wrote:
> >Hi All,
> >
> > Referencing to this post :
> > http://www.monkey.org/openbsd/archive/misc/0303/msg01384.html there is
> > (was ?) some work in progress in supporting DRI on OpenBSD. As this
> > post was written when XFree86 was still in the distro, I'd like to
> > know if this work is curently progressing with Xorg ?
>
> It did work for me until the most recent snapshot, in which it is broke
> at least for me and on amd64.
> Completely unrelated the kde port seems to be broken right now as well, thus I
> come to the conclusion:
>
> Should work with -release, -stable, but don't try a current snapshot (at
> least not amd64) at the moment.
>
> Hope that helps.
>
> Regards,
> ahb



DRI on OpenBSD (again, but with Xorg)

2006-01-09 Thread Bruno Carnazzi
   Hi All,

Referencing to this post :
http://www.monkey.org/openbsd/archive/misc/0303/msg01384.html there is
(was ?) some work in progress in supporting DRI on OpenBSD. As this
post was written when XFree86 was still in the distro, I'd like to
know if this work is curently progressing with Xorg ?

Thank you,

Best regards,

Bruno.



Re: OpenBSD 3.8 PPPoE Broadband Connection Howto

2005-12-22 Thread Bruno Carnazzi
  Hi,

At home, I have your working target :)
I use an OBSD/i386 3.8 box connected to an ADSL router, but configured
in bridge mode (modem-only). If you use a router, you don't have to
configure PPPoE on your OBSD. If you use a bridge (seems to be your
case), you need to configure PPPoE on your OBSD box, which will
receive a public IP from your ISP. For me, using 'chap' as an
authentication did the trick. I've documented all my "adventure" at
http://carbonara.kicks-ass.org/doku.php?id=openbsd:pppoerouter (in
French, sorry !)

OpenBSD helped me to understand PPPoE "under the hood". In my mind,
it's an excellent (the best ?) teaching platform and a wonderfull
production system.

Long life to OpenBSD !!

On 12/21/05, Siju George <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a new Broadband Internet connection. It uses PPPoE with a
> username and password to connect to internet.
> I can connect to Internet with Windows 2003 (easy click and configure)
> so the DSL Router is working and the username and password is correct.
> I would like to use OpenBSD 3.8 to connect to Internet with it and not
> Windows 2003.
>
> I read the man pages and FAQ and did accordingly ( I suppose ) and it
> is not working. Could some one please point out as to what could I
> have done wrong?
>
> Details of my OpenBSD 3.8 system:
>
> I have two interfaces "rl0" "rl1"
>
> rl0 has the PPPoE connection and rl1 is connected to the LAN Switch.
>
> # ifconfig -a
> lo0: flags=8049 mtu 33224
> groups: lo
> inet 127.0.0.1 netmask 0xff00
> inet6 ::1 prefixlen 128
> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
> rl0: flags=8843 mtu 1500
> lladdr 00:50:fc:7d:4e:50
> media: Ethernet autoselect (100baseTX full-duplex)
> status: active
> inet6 fe80::250:fcff:fe7d:4e50%rl0 prefixlen 64 scopeid 0x1
> rl1: flags=8843 mtu 1500
> lladdr 00:08:a1:7b:bf:52
> media: Ethernet autoselect (100baseTX full-duplex)
> status: active
> inet 172.17.1.1 netmask 0xfff0 broadcast 172.31.255.255
> inet6 fe80::208:a1ff:fe7b:bf52%rl1 prefixlen 64 scopeid 0x2
> pflog0: flags=141 mtu 33224
> pfsync0: flags=0<> mtu 1348
> enc0: flags=0<> mtu 1536
> pppoe0: flags=a851 mtu 1492
> dev: rl0 state: session
> sid: 0x10f1 PADI retries: 1 PADR retries: 0 time: 00:00:06
> groups: pppoe egress
> inet 0.0.0.0 --> 0.0.0.1 netmask 0x
> inet6 fe80::250:fcff:fe7d:4e50%pppoe0 ->  prefixlen 64 scopeid 0x7
>
> # cat /etc/sysctl.conf |grep inet.ip.forwarding
> net.inet.ip.forwarding=1# 1=Permit forwarding (routing) of packets
> #
> # cat /etc/mygate
> cat: /etc/mygate: No such file or directory
> #
> # cat /etc/hostname.rl0
> up
> #
> # cat /etc/hostname.rl1
> inet 172.17.1.1 255.240.0.0 NONE
> #
> # cat /etc/hostname.pppoe0
> pppoedev rl0
> !/sbin/ifconfig rl0 up
> !/usr/sbin/spppcontrol \$if myauthproto=pap [EMAIL PROTECTED]
> myauthkey=zz
> !/sbin/ifconfig \$if inet 0.0.0.0 0.0.0.1 netmask 0x
> !/sbin/route add default 0.0.0.1
> link1 up
> #
> # cat /etc/pf.conf
> pass all
> #
>
> route show commands hangs for a long time :-(
>
> # route flush
> default  0.0.0.1  done
> loopback localhostdone
> 172.16.1.0   00:11:95:c0:c7:33done
> BASE-ADDRESS.MCAST.N localhostdone
> ::/128   localhost.broadband. done
> ::/128   localhost.broadband. done
> ::127.0.0.0/128  localhost.broadband. done
> ::224.0.0.0/128  localhost.broadband. done
> ::255.0.0.0/128  localhost.broadband. done
> :::0.0.0.0/128   localhost.broadband. done
> 2002::/128   localhost.broadband. done
> 2002:7f00::/128  localhost.broadband. done
> 2002:e000::/128  localhost.broadband. done
> 2002:ff00::/128  localhost.broadband. done
> fe80::/128   localhost.broadband. done
> fe80::250:fcff:fe7d: 00:50:fc:7d:4e:50done
> fe80::208:a1ff:fe7b: 00:08:a1:7b:bf:52done
> fe80::1%lo0  link#6   done
> fe80::250:fcff:fe7d: link#7   done
> fec0::/128   localhost.broadband. done
> #
> # sh /etc/netstart
> spppcontrol: SIOCSIFGENERIC(SPPPIOSDEFS): Device busy
> add net default: gateway 0.0.0.1
> #
>
> What could be the problem?
>
> How do I debug this?
>
> Thankyou so much :-)
>
> kind regards
>
> Siju



OS Crash Test

2005-12-13 Thread Bruno Carnazzi
  Hi all,

I'd like to know if there is a way to deeply test a POSIX operating
system, and especially OpenBSD. The goal is to estimate the platform
stability (performance estimation is not required). Tests should
covert POSIX syscalls, OpenBSD specifics (drivers, etc...). For
example, I have at home an old computer running OpenBSD 3.8 with
in-kernel PPPoE that crashed recently : how can I dump the content of
'trace' and 'ps' in this case ? How can I know the origin of the
problem (I suspect the kernel pppoe driver) ?

Thank you,
Best Regards,

Bruno.



Re: Apache 2 License

2005-12-04 Thread Bruno Carnazzi
I learn by doing mistakes ! :)

Thank you,

Bruno.

On 12/3/05, Marco Peereboom <[EMAIL PROTECTED]> wrote:
> This has been discussed over and over and over and over and over and
> over and over.  Look at the archives, no more NEW gpl code will be
> allowed in the tree.  So besides gcc there is virtually nothing left
> over.
>
> In case you didn't know gpl 2 sucks shit and so does apache 2.
> OpenBSD's version of apache is quite different than what they used to
> ship since we forked it.  Apache 2 is in ports.
>
> Again, this is a very un-researched and, on these lists, considered a
> DUMB question.
>
> On Dec 2, 2005, at 11:46 PM, Bruno Carnazzi wrote:
>
> >   Hi All,
> >
> > I've checked the Apache 2 License, which is said to be GPL-2
> > compatible (http://www.apache.org/licenses/). So, OpenBSD include some
> > GPL programs (gcc), so what's make it "unacceptable"
> > (http://www.openbsd.org/faq/faq1.html#HowAbout) ? What are the
> > differences with Apache 1.3 License ?
> >
> > Thanks,
> > Best regards,
> >
> > Bruno.



Apache 2 License

2005-12-02 Thread Bruno Carnazzi
  Hi All,

I've checked the Apache 2 License, which is said to be GPL-2
compatible (http://www.apache.org/licenses/). So, OpenBSD include some
GPL programs (gcc), so what's make it "unacceptable"
(http://www.openbsd.org/faq/faq1.html#HowAbout) ? What are the
differences with Apache 1.3 License ?

Thanks,
Best regards,

Bruno.



Ethernet Trunking

2005-11-29 Thread Bruno Carnazzi
  Hi all,

I'm looking at the link aggregation feature (man trunk(4)) of OpenBSD
3.8. In my case, I'd like to use it on Ethernet interfaces : should
the switch be configured in a special way or is it level-2 transparent
? I mostly use Cisco 2950 switches... What are the differences between
'round-robin' and 'none' protocol ? I've read this :
http://www.onlamp.com/pub/a/bsd/2005/10/20/openbsd_3_8.html?page=1.
This let me think that the configuration shown is a kind of "ARP load
balancing" (1 IP@ for 2 MAC@). Am I right or it is something else
(Virtual MAC@ or...) ?

Best Regards,

Bruno.



Re: OpenBSD/i386 on IBM BladeCenter HS20 eServer install CD error

2005-11-26 Thread Bruno Carnazzi
   Hi,

I've tried with the 3 floppy : it hangs in a different way. It stay on
pckbd and after a few seconds, reboot. I've upgrade the MM firmware to
his latest version. Don't help anymore. Maybe a BIOS upgrade ? Did you
tweak your BIOS to make it work ?

Best regards,

Bruno.

On 11/18/05, Volker Uhrig <[EMAIL PROTECTED]> wrote:
> Am 18.11.2005 um 09:06 schrieb Bruno Carnazzi:
>
> > When I try to boot with install CD (cd38.iso), it hangs with
> > 'pckbc_start: send error' (after wscons0)... GigaEthernet adapter are
> > successfully detected and configured (bge0/1) and SCSI controler too
> > (sd0/1). There is an error message at the very first kernel loading
> > stage that I can't read (too fast) about a memory trouble (CANNOT LOAD
> > MEMORY SEGMENT...). I have to press enter just before the kernel load
> > (saying booting /bsd.rd |\-/...) else it doesn't start... I've try
> > with a PS/2 keyboard and an USB keyboard, all failed... Is that a
> > keyboard trouble (bad luck !) or something else ?
> > I could be very fun if it can work ! (a BladeCenter full of
> > OpenBSD, slurp :)
>
> I installed our Server in the IBM Blade via floppy. It worked without
> problems with floppy38B.fs. Hope it helps. After installation
> everything worked like it should.
>
> I remember a problem with 3.6 where a co-worker had to disable a
> kerneloption to get it booted without problem (possible before /bsd
> boots 100%).
>
> How many memory do you have in your blade and has it two processors?
> I got problems with MFS, but didnt write a bug report, cause I cant
> verify it with another box. Could be also just an bsd.MP problem.
>
> This mail is written to a privat address and answering is _not_
> allowed over a mailinglist.
>
> Yours,
>   Volker



  1   2   >