Re: delete user in group script

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

# $1=group
# $2=user

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

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


On Tue, Dec 14, 2010 at 10:31 AM, Jan Stary h...@stare.cz wrote:
 On Dec 14 15:31:40, OpenBSD Geek wrote:
 Hi,

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

 if [ $1 ]  [ $2 ]; then
 cp /etc/group /tmp
 cat /tmp/group | grep ^$2  /tmp/onlygroup
 cat /tmp/group | grep -v ^$2  /tmp/nogroup
 cat /tmp/onlygroup | sed s/$1//g | \
 sed s/ /,/g | sed s/,,/,/g | sed s/,$//g  /tmp/newgroup
 cat /tmp/newgroup  /tmp/nogroup
 cat /dev/null  /tmp/group
 cat /tmp/nogroup  /tmp/group
 cp /tmp/group /etc
 chmod 644 /etc/group
 chown root /etc/group
 chgrp wheel /etc/group

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

 rm -f /tmp/*
 echo Success.

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


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

 Cheers,

 Wesley MOUEDINE ASSABY
 www.mouedine.net



Re: Donations

2010-12-10 Thread Leonardo Rodrigues
To paraphrase Benjamin Franklin (an american! diplomat!):

Any society that would give up a little liberty to gain a little
security will deserve neither and lose both.



Doubts about dynamic forwarding and traffic queueing

2010-12-07 Thread Leonardo Rodrigues
Hello everyone,

I'm trying to come up with a solution for the following scenario, and
its answer still eludes me...

An user sets up an SSH connection (using flags -N -D) with dynamic
forwarding enabled (for web surfing, git, messenger, etc), to an
OpenBSD machine. That machine runs PF and traffic queueing.

Is there a way to shape/queue traffic for that user, based on that
user id (for example, using authpf-noip)?
Since port forwarding has to be disabled in the SSH daemon, in order
to prevent users from circumventing authpf, is there a way to still
have the dynamic forwarding behaviour using only PF rules loaded by
authpf-noip for that user?

Any insight on the matter is welcomed =)



Re: Nobreak

2010-10-06 Thread Leonardo Rodrigues
This link could help you:

https://calomel.org/nut_ups.html

On Sun, Oct 3, 2010 at 3:49 AM, SJP Lists sjp.li...@flashbsd.net wrote:
 On 2 October 2010 02:16, Henning Brauer lists-open...@bsws.de wrote:
 * Gregory Edigarov g...@bestnet.kharkov.ua [2010-09-30 16:13]:
 nut is in ports, though I would recomend to build it by hands.

 sigh. cut the crap. the package is fine. and handbuilding is stupid,
 pretty much without exceptions.

 --
 Henning Brauer, h...@bsws.de, henn...@openbsd.org
 BS Web Services, http://bsws.de
 Full-Service ISP - Secure Hosting, Mail and DNS Services
 Dedicated Servers, Rootservers, Application Hosting

 I don't know about nut, but I have come across one package where I'd
 prefer to build as a port.  arpwatch, destination email address is
 hard coded in.  Unless I missed something obvious.


 Shane



Re: 4.7 CDs arrived in Colorado

2010-04-28 Thread Leonardo Rodrigues
Humm... will packages for 4.7 be available now on FTP, since people
are already getting their pre-order cd sets?

On Wed, Apr 28, 2010 at 1:46 AM, Ted Roby ted.r...@gmail.com wrote:
 On Tue, Apr 27, 2010 at 7:33 PM, Mark Zimmerman markz...@frii.com wrote:

 Not much to say, except Thanks and WooHoo!


 I'll have mine as soon as priority mail gets it from there to here!



Re: 4.7 CDs arrived in Colorado

2010-04-28 Thread Leonardo Rodrigues
Yes, I understand... :)

I just asked that, because I remember one release where the FTP server
was made available before the official date, due to much people
getting their CD sets earlier from preordering. I thought the same
would happen now, since we still have two weeks until the release
date, and pre-orders are already showing up.

On Wed, Apr 28, 2010 at 11:57 AM, Mark Zimmerman markz...@frii.com wrote:
 On Wed, Apr 28, 2010 at 1:46 AM, Ted Roby ted.r...@gmail.com wrote:
  On Tue, Apr 27, 2010 at 7:33 PM, Mark Zimmerman markz...@frii.com wrote:
 
  Not much to say, except Thanks and WooHoo!
 
 
  I'll have mine as soon as priority mail gets it from there to here!

 On Wed, Apr 28, 2010 at 11:38:30AM -0300, Leonardo Rodrigues wrote:
 Humm... will packages for 4.7 be available now on FTP, since people
 are already getting their pre-order cd sets?


 Nope, unless they change the way it has always been. The early
 delivered CDs are fun to have, and allow you to do some early goofing
 around on spare drives and/or non-production machines. They do not
 imply support. That will happen on the release date. This is probably
 in the FAQ somewhere.



Re: Brazil resellers of OpenBSD - Tempo Real?

2010-04-20 Thread Leonardo Rodrigues
I used to buy official OpenBSD sets there, but I remember trying to
buy a set a couple of months ago, and I couldn't find any.
Actually, their website isn't even working (www.temporeal.com.br) and
there are reports on some forums that the physical store has closed.

Meh =(

On Mon, Apr 19, 2010 at 9:35 PM, Nenhum_de_Nos math...@eternamente.info
wrote:
 On Mon, 19 Apr 2010 15:24:32 -0700 (MST)
 Austin Hook aus...@computershop.ca wrote:

 Does anyone know if the bookstore Tempo Real still exists and if they have
 a physical mailing address?   Or does anyone know of a potential reseller
 of OpenBSD in Brazil?

 it looks like is alive.
http://www.novatemporeal.com.br/temporeal/contato.asp

 unfortunately there is no physical address I could find on the site.

 the devil store (http://www.devilstore.com.br/) deals FreeBSD discs, they
may have interest in OpenBSD as well. their comercial mail is
comerc...@freebsdbrasil.com.br.

 HTH,

 matheus

 --
 We will call you cygnus,
 The God of balance you shall be

 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?

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



OpenSSH exploit... or not?

2009-07-20 Thread Leonardo Rodrigues
For information... http://seclists.org/fulldisclosure/2009/Jul/0279.html



Re: OpenBSD server with samba and openldap

2009-05-15 Thread Leonardo Rodrigues
Hi,

I've set up an OpenBSD PDC server for a client, serving some 40
computers, and did not encounter that performance issue you mentioned.
I did not use OpenLDAP, relying instead on tdbsam and unix accounts.
It runs OpenBSD 4.4 with samba from packages.

Also, as some have mentioned, some performance issues were fixed
(http://www.vnode.ch/fixing_seekdir). See if you're not running an
older samba version.

On Thu, May 14, 2009 at 7:45 PM, Paul M l...@no-tek.com wrote:
 I recall seeing in the samba docs that setting the account info in
 samba could optionally also add the entries on the unix side - meaning
 you only need to set set it once. I'm hazy on the details, perhaps look
 into alternatives to using LDAP. When I've done this I've always
 entered them separately.

 One unrelated point I'd like to make is performance - I've found
 really annoying connection delays, particularly with word and excel.
 Transfer rates are ok, it's opening and saving files that's an
 issue.
 Extensive googling and I could make it tolerable at best. As this is
 for a client, it's proved to be an embarasment. I would dearly love to
 find I'm doing something wrong, and I expect that I will, but my
 advice would be to check it out without committing yourself, if
 that's possible.
 I did find one article on the net that said that all bsd's suffer
 performance issues with samba, and the Samba docs do seem to be
 completely linux-centric.
 I'll check out the link below.


 paul



Re: Multiboot OpenBSD with Vista

2009-05-15 Thread Leonardo Rodrigues
It's really good to know that there's someone working recently on
bringing Wine to OpenBSD. It really isn't a trivial port =(

On Fri, May 15, 2009 at 4:42 PM, Daniel Ouellet dan...@presscom.net wrote:
 Lars Nooden wrote:

 I've not see a port of WINE to OpenBSD for some time, but it'd be worth
 a try, just in case.


 Actually I was just looking at this last night and it's not working yet.
 Getting closer all the time and good progress was done for sure looks like,
 but still some issues are not worked out yet;

 More details here:

 http://wiki.winehq.org/OpenBSD

 A specific wiki was setup just for OpenBSD to try to bring it up to speed
 should you be interested.

 But the short of it, not a go yet. Looks like it might go one day. Austin
 was actually asking for some help on one of the issue he is working on and
 the last updates and diff he putted in was 4/20/2009 I think.



Re: Quick question about an PF user's guide example

2009-03-11 Thread Leonardo Rodrigues
 Note that only the pf.conf directives that apply directly to the above policy 
 are present; nat, rdr, options, etc., are not shown.

Yeah, I noticed that too =) But I don't know if that setup would work
without NAT enabled. But then, I'm no network expert...

 Bear in mind that while a queue is applied to the egress interface,
 the classification of that traffic may take place on another
 interface. So you could do something more like this:

 pass from 192.168.0.5 to ! mynet keep state queue traffic1_ext

I considered trying that, but I think that queueing only the egress
interface wouldn't solve my problem. Since my link to the internet is
an ADSL line, 1Mb downstream and 512Kb upstream, I think that the only
sane way to queue both up and down bandwidth would be to set up altq
on the egress interface (for queueing uploads) and another altq on the
internal interface (for queueing downloads). The big problem here is
that I have _three_ internal interfaces that must share the internet
link.

I considered setting a hard limit on each internal interface (33%
each), but that can't be, since I need them to borrow available
bandwidth and have different priorities on downloading via the
external interface.

Does anyone has any ideas on how to accomplish such a setup?

Leonardo Rodrigues



Quick question about an PF user's guide example

2009-03-10 Thread Leonardo Rodrigues
Hi everyone,

I'm trying to build a PF / ALTQ ruleset that handles traffic between 3
internal interfaces and 1 external, so that the internal interfaces
can have different priorities on the available bandwidth they can get
from the external interface. I don't know if that's possible with only
ALTQ rules, or if I'll have to use tagging, so I'm trying to
understand some simple setups before.

While reading the example #2 on the PF user's guide
(http://www.openbsd.org/faq/pf/queueing.html#example2), I came across
the following ruleset:


boss  = 192.168.0.200
...
altq on fxp0 cbq bandwidth 1.5Mb queue { std_ext, www_ext, boss_ext }
...
queue boss_ext   bandwidth 500Kb priority 3 cbq(borrow)
...
# filter rules for fxp0 outbound
pass out on fxp0 from $boss to any keep state queue boss_ext---


Where fxp0 is the external interface (internet). My question is about
that last rule above. Assuming that NAT is working so that the boss
is able to surf the web, and since NAT translations happen before the
filtering rules, then the rule above shouldn't work... right? The fxp0
interface would be able to filter only on already translated addresses
(its own address), and not on unstranslated addresses, like
192.168.200, which is the boss IP, on a different subnet. Would a
rule like that work?

If that setup works, I might be able to implement my original idea, by
doing something like:
pass out on fxp0 from 192.168.0.5 to any keep state queue traffic1_ext
pass out on fxp0 from 192.168.2.5 to any keep state queue traffic2_ext
pass out on fxp0 from 192.168.5.5 to any keep state queue traffic3_ext

Thanks for any ideas =)

Leonardo Rodrigues



Re: Wine on OpenBSD

2009-01-04 Thread Leonardo Rodrigues
 On Sun, Dec 28, 2008 at 02:28:58PM -0600, Austin English wrote:

 I've gotten around some of the issues, but am looking for the 'right'
 way to do so, rather than hacks.

Check the ports/misc archives. There was an effort on porting wine,
but it did not get very far. If I remember correctly, there was some
issues with process signal handling or whatever.



Re: 4.4 arrives in Brazil

2008-12-06 Thread Leonardo Rodrigues
Great, thanks for letting us now. With the global financial crisis,
the exchange rate got into a point that I just can't import it from
ComputerShopCalgary.
And R$99 is a great price =)

2008/12/2 Ricardo Augusto de Souza [EMAIL PROTECTED]:
 OpenBSD 4.4 arrives in Brazil.

 http://www.temporeal.com.br/produtos.php?id=172290


 It4s just R$ 99,00



Re: how to undelete?

2008-07-20 Thread Leonardo Rodrigues
I stand corrected then =)

However, while trying to salvage some files, I do remember that some
info about the file was zeroed. It really wasn't the whole file data,
but something related to blocks and/or inodes, like data that leads to
the actual data, if that makes sense...
Anyway, I couldn't recover the file.

On Thu, Jul 10, 2008 at 4:04 AM, Janne Johansson [EMAIL PROTECTED] wrote:
 On Thu, 2008-07-10 at 03:40 -0300, Leonardo Rodrigues wrote:
 If I'm not mistaken, openbsd zeroes the data when you delete a file.
 I remember trying to recover a file and then receiving a 0Kb file =)

 I think you are mistaken.
 I would take ages to delete large files in those cases.



Re: how to undelete?

2008-07-10 Thread Leonardo Rodrigues
If I'm not mistaken, openbsd zeroes the data when you delete a file.
I remember trying to recover a file and then receiving a 0Kb file =)

If you still want to try, you could try using the sleuth kit
(available in ports) to recover something.



Re: Lastet supported jdk on OpenBSD

2008-05-21 Thread Leonardo Rodrigues
That too. And the plugin case is somewhat worse, since as far as I
know, Sun still hasn't released the proper license for the browser
plugin, so, no packages for it even on -current. As others pointed
out, if you're running -current, you can already install the jdk or
jre packages.

On Wed, May 21, 2008 at 10:22 AM, John Nietzsche
[EMAIL PROTECTED] wrote:
 Does it mean web browser plugin availability too?



USB mouse does not work on Lenovo T61

2008-05-01 Thread Leonardo Rodrigues
Hi everyone,

Just got a Thinkpad T61, and installed latest snapshot (08-04-29).
Strangely enough, the lenovo usb mouse (2000dpi) that came with it
doesn't work. When plugged in, these messages appear:

uhub4: port 1, set config at addr 2 failed
uhub4: device problem, disabling port 1

I've tried different USB ports, to no avail. Any suggestions on how to
make it work?

I've got a couple of questions also. Does the fingerprint reader
(ugen0 right?) work? Does the accelerometer (aps) work? It seems that
the latter fails to initialise...

If anyone knows something about these issues I'm having, I'd be
grateful for any tips!

Thanks everyone =)

Here's the full dmesg (isnt it great to see so many devices being
recognised? kudos to the openbsd team!):

OpenBSD 4.3-current (GENERIC.MP) #667: Tue Apr 29 01:59:23 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz (GenuineIntel
686-class) 2 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
real mem  = 2112114688 (2014MB)
avail mem = 2034110464 (1939MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 01/21/08, BIOS32 rev. 0 @
0xfdc60, SMBIOS rev. 2.4 @ 0xe0010 (73 entries)
bios0: vendor LENOVO version 7LETB0WW (2.10 ) date 01/21/2008
bios0: LENOVO 7663CV4
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF!
SSDT SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) IGBE(S4)
EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3)
USB1(S3) USB2(S3) USB3(S3) USB4(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz (GenuineIntel
686-class) 2 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: duplicate apic id, remapped to apid 2
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpicpu1 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T5264 serial  1983 type LION oem Panasonic
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock at acpi0 not configured
bios0: ROM list: 0xc/0xf000 0xcf000/0x1000 0xd/0x1000 0xe/0x1!
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06120b2f06000b2f
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2200 MHz (1452 mV): speeds: 2200, 1200 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x0c
ppb0 at pci0 dev 1 function 0 Intel GM965 PCIE rev 0x0c: apic 2 int
16 (irq 10)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor NVIDIA, unknown product 0x0429 rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: no integrated graphics
em0 at pci0 dev 25 function 0 Intel ICH8 IGP M AMT rev 0x03: apic 2
int 20 (irq 11), address 00:1c:25:40:29:26
uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x03: apic 2
int 20 (irq 11)
uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x03: apic 2
int 21 (irq 11)
ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x03: apic 2
int 22 (irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x03:
apic 2 int 17 (irq 11)
azalia0: RIRB time out
azalia0: RIRB time out
azalia0: codec[s]: Analog Devices AD1984, Conexant/0x2bfa, using
Analog Devices AD1984
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x03: apic 2
int 20 (irq 11)
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 Intel 82801H PCIE rev 0x03: apic 2
int 21 (irq 11)
pci3 at ppb2 bus 3
wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02:
apic 2 int 17 (irq 11), MoW1, address 00:1c:bf:b3:ec:b0
ppb3 at pci0 dev 28 function 2 Intel 82801H PCIE rev 0x03: apic 2
int 22 (irq 11)
pci4 at ppb3 bus 4
ppb4 at pci0 dev 28 function 3 Intel 82801H PCIE rev 0x03: apic 2
int 23 (irq 11)
pci5 at ppb4 bus 5
ppb5 at pci0 dev 28 function 4 Intel 82801H PCIE rev 0x03: apic 2
int 20 (irq 11)
pci6 at ppb5 bus 

Re: USB mouse does not work on Lenovo T61

2008-05-01 Thread Leonardo Rodrigues
  Does it work in another machine, or on another os?

Yes it does (tested on Windows XP). A cheap USB mouse works fine also.
I'll try to test it on another Unix-like machine.
This is strange. The mouse seems to be simple enough to work. What did
Lenovo put on it?...

So, if there's no software for the aps, than I won't even bother
trying to make it work...

Now, the fingerprint would be really nice if it worked =)



Re: OpenBSD 4.3 released May 1, 2008

2008-04-30 Thread Leonardo Rodrigues
Well, it should work if your snapshot is pre-4.3. The FAQ says that
upgrades should work if your current release is minus one from the
release you are upgrading to.


  Ok, so to clarify, I was running a snapshot on my macppc machine.

  I've been finding it a bit slow, but nice enough, bnut with the release
  realeased as it were, I should now rebuild the kernel/userland to
  incorporate the changes?

  Sorry if this is in the FAQ somewhere, I've been unable to find it.

  Cheers


  Rich Healey



Re: Nvidia Quadro NVS 140M

2008-04-27 Thread Leonardo Rodrigues
Damnit, my T61 will arrive next week, and I didn't know how serious
this issue was when I ordered the laptop =(
I may be stuck with it, since Lenovo takes almost a month to deliver a
laptop here in Brazil, and if I decide to change the motherboard, I
wouldn't like to even think about the time it would take.

How about using the vesa driver instead?



Re: Nvidia Quadro NVS 140M

2008-04-26 Thread Leonardo Rodrigues
Do you mean basic support for the card or for 3D?
Basic performance (no 3D) should be supported by Xorg`s nv driver.
There seems to be some problems with that though
(https://bugs.freedesktop.org/show_bug.cgi?id=14803).



Re: 4.3 song and lyrics and commentary

2008-04-11 Thread Leonardo Rodrigues
Yeah, that was a lng thread. Quite funny too hehe.

It's good to see that the artwork is as good as ever =)
Keep up the good job!



Re: Verify authenticity of installation files on mirrors?

2008-04-06 Thread Leonardo Rodrigues
Does buying the original CD sets count?

On Sun, Apr 6, 2008 at 6:49 PM, Philipp Winter [EMAIL PROTECTED] wrote:
 Hi,

  I did not find a file on the OpenBSD mirrors which contains a digital
  signature for the 'MD5' files which are placed in the platformspecific
  directories (e.g.: ftp://ftp.openbsd.org/pub/OpenBSD/4.2/i386/).

  Is there no way to verify the authenticity of the installation files?

  Thanks,
  Philipp



Re: OpenBSD Artwork BSD Licensed?

2008-03-23 Thread Leonardo Rodrigues
There's also a nice one that comes with the OpenBSD Audio CD. (great
songs by the way!)


  On a side note, is there somewhere we can purchase some translucent
  wireframe blowfish stickers?
  I for one would love to have some of these and I'm sure others would too.





-- 
An OpenBSD user... and that's all you need to know =)

Please, send private emails to [EMAIL PROTECTED]



Re: openbsd game server

2008-03-20 Thread Leonardo Rodrigues
Err, could you be a bit more specific?
I have managed to build some openbsd-based game servers in the past,
like QuakeWorld, Quake3, Counter-Strike, and the likes. Keep in mind
that some game server binaries are only available for Linux, so you
will have to turn on linux emulation.

On Thu, Mar 20, 2008 at 5:32 PM, arthur [EMAIL PROTECTED] wrote:
 Hi All,

  I am thinking about running a game server for my daughter and her friends. 
 Any
  suggestion for a multi-user (with a gui user end). Thanks.

  Arthur





-- 
An OpenBSD user... and that's all you need to know =)

Please, send private emails to [EMAIL PROTECTED]



Re: What is our ultimate goal??

2008-02-17 Thread Leonardo Rodrigues
 Actually what Ted has done was utterly disastrous, he knows his own
 code well enough to have completed it.
 BTW, you are as big an oaf as Richard Stallman, you keep ranting about
 how you've put in your blood, sweat and tears, but forget to
 understand the point that without us users you are nothing.

Wow...
People should inform themselves instead of writing things like that.
OpenBSD states very clearly that it has a developer culture, and not
an user one. Just be grateful for the code that you get FOR FREE.
Also, if you feel that the project helps you, give something back to
the project (like code or donations) to keep it running, and to keep
it helping YOU.
The developers code and share their code not because they want to be
famous or to receive accolades from the project's users, but because
they are solving the problems that they have an interest. They don't
own the users anything, instead, they give their code for free to
whoever might find it useful.

Is it so hard to understand that?

Leonardo Rodrigues



Re: Authenticate squid in Active Directory

2008-02-08 Thread Leonardo Rodrigues
 I'm not sure I fully understand:
 I was under the impression that NT, up to NT 4, used the PDC/BDC
 model, and W2K and later used AD. While the kernel-panic tutorial does
 seem to address using OpenBSD to handle logins to NT4-compatible
 domains (including logins to such domains from W2K/WXP clients), it
 seems to me that it's not offering anything that's truly
 interchangeable with AD. Please correct me if I'm wrong.

 Thanks and regards,
 --ropers



SAMBA version 3 does not offer a complete AD solution. That's promised
for SAMBA v4 though...

The tutorial at kernel-panic is a good one, but I do not see the point
of using ldap, instead of the standard samba backend for example,
since user account database replication is not likely to work on SAMBA
+ OpenBSD, unless one automates the process of creating local accounts
on each machine along with the ldap accounts.


-- 
An OpenBSD user... and that's all you need to know =)

Please, send private emails to [EMAIL PROTECTED]



Re: Authenticate squid in Active Directory

2008-02-05 Thread Leonardo Rodrigues
Hummm, I wish I had seen this patch earlier. Anyway, when I need
winbind, I just edit squid's Makefile and add winbind configure
args...
As Eduardo said, why not have a winbind flavor for the squid package?

-- 
An OpenBSD user... and that's all you need to know =)



Re: mmap() on i386

2008-01-07 Thread Leonardo Rodrigues
I'm still running OpenBSD 4.1-generic and rtorrent 0.7.1 on a home
server for months now, and I never really had any problems, except
having to raise the limit on maxopen files. You could try checking
yours with ulimit -n.
If the problem is not that, then I'm clueless =(



-- 
An OpenBSD user... and that's all you need to know =)

Please, send private emails to [EMAIL PROTECTED]



Re: Suggested PF Setup when using BitTorrent?

2008-01-05 Thread Leonardo Rodrigues
Maybe those watchdog timeouts have nothing to do with bittorrent, and
are probably more related to nic problems. Have you tried running your
torrent client with a different network card?


On Jan 5, 2008 4:22 PM, Brian [EMAIL PROTECTED] wrote:
 Is there any suggested PF setup when using BitTorrent?

 Right now, the biggest problem I have when using BitTorrent is watchdog
 timeouts.

 Thanks,

 Brian




   
 
 Never miss a thing.  Make Yahoo your home page.
 http://www.yahoo.com/r/hs





-- 
An OpenBSD user... and that's all you need to know =)

Please, send private emails to [EMAIL PROTECTED]



Re: Real men don't attack straw men

2007-12-14 Thread Leonardo Rodrigues
 The ports system may contain a general facility which could build and
 install any program.  (I don't know if it does.)  If so, I have
 nothing against that.  But it certainly contains specific recipes for
 installing specific non-free programs.  That's what I object to.


I believe that what you object (facilities to build non-free software)
is a really irrelevant issue. People should have the liberty to use
any software they so desire.
With that point of view of yours, one could condemn the use of Linux,
BSD or any other free OS on hardware platforms that are not open,
because the OS encourages use of non-free hardware, but that is
taking things out of proportion :)

I also personally think that your concept of freedom is actually
less free then OpenBSD's project concept of freedom. But everyone
knows that already.

This is getting _tiresome_. Really... =(

-- 
An OpenBSD user... and that's all you need to know =)



Re: Powered by obsd stickers and other stuff

2007-11-09 Thread Leonardo Rodrigues
Hey, nice job! Those are really good looking. I'll use that background puffy
=)

On Nov 9, 2007 9:18 PM, Iqigo Tejedor Arrondo [EMAIL PROTECTED] wrote:
 Hello all

  Some art, at slw spanish foul asymetric connection. The sources are
 xcf, at 1600x1200.

  Clarify that I am not a designer :)

  I have make the typical Powered by stickers:
 http://inigo.homeunix.net/files/art/powered_by_puffy_black.png
 http://inigo.homeunix.net/files/art/powered_by_puffy_grey.png

  I hope that those stickers replace the vista compatible of the
 developers laptops :)

  There are some backgrounds:

  A blue rounded gradient with puffy:
 http://inigo.homeunix.net/files/art/background_blue_puff_1024x768.png
 http://inigo.homeunix.net/files/art/background_blue_puffy_text_1024x768.png

  The same but old picture filter:
 http://inigo.homeunix.net/files/art/background_grandpuffy_1024x768.png

  And last, but not least, a old daemon half wired / half red:
 http://inigo.homeunix.net/files/art/art_head_mix_200x175.png

  The sources (5.3Mm at 33k of upload):
  http://inigo.homeunix.net/art.tgz

   Last, I want to acknowledge to the project, by the results, the
 quality, the and every i know about it.

 Greetings.
 Inigo





--
An OpenBSD user... and that's all you need to know =)

Please, send private emails to [EMAIL PROTECTED]



Re: OpenBSD 4.2 release November 1, 2007

2007-10-31 Thread Leonardo Rodrigues
May the IPV6 Samurai rest in peace. We are all thankful for his work.

And cheers to yet another release =)

-- 
An OpenBSD user... and that's all you need to know =)

Please, send private emails to [EMAIL PROTECTED]



Re: AMD Releases 900+ Pages Of GPU Specs

2007-09-12 Thread Leonardo Rodrigues
Could this lead to an implementation of a driver that is less evil,
I mean that does not bypass kernel in order to mess around with
registers etc? Or is this the design state of all video cards on the
market?


-- 
An OpenBSD user... and that's all you need to know =)

Please, send private emails to [EMAIL PROTECTED]



Re: Show your appreciation and get your 4.2 DVD

2007-09-06 Thread Leonardo Rodrigues
There's a wireframe puffy sticker with the audio cd? Gotta buy one now :P

Yes, I agree with Daniel Ouellet too. Buying the projects releases and
merchandise really gives that nice warm and fuzzy feeling by knowing
that you are supporting a project that has, in my opinion, great
ideals. And because security matters too!

Thanks everyone, let's keep the project going =)

-- 
An OpenBSD user... and that's all you need to know =)

Please, send private emails to [EMAIL PROTECTED]



Re: Intel Core 2

2007-06-27 Thread Leonardo Rodrigues

http://www.geek.com/images/geeknews/2006Jan/core_duo_errata__2006_01_21__full.gif
Show stopper Potentially Catastrophic Those are some warm and fuzzy words =)

Geez, that's a whole lot of bugs... I never imagined that processors
could be so bugged.
Theo says that AMD is getting less helpful towards open source OS.
Well, that's great. We only have 2 big proc developers for i386, and
now those two are turning out crap products with diminishing
documentation =(

I wonder where this road will lead us.

--
An OpenBSD user... and that's all you need to know =)

Please, send private emails to [EMAIL PROTECTED]



Re: General Answers about OpenBSD

2007-06-09 Thread Leonardo Rodrigues

On 6/9/07, Peter J. Philipp [EMAIL PROTECTED] wrote:

There is always issues with shit in this box.
It's a constant drain on nerves, but for some reason I still do it.


?

--
An OpenBSD user... and that's all you need to know =)

Please, send private emails to [EMAIL PROTECTED]



Re: Laptop won't boot with latest i386 snapshot

2007-06-08 Thread Leonardo Rodrigues

Yes, it did solve the problem =)
Thanks Artur.
Seems that the new acpi code doesn't like my laptop.

On 08 Jun 2007 09:21:19 +0200, Artur Grabowski [EMAIL PROTECTED] wrote:



I don't think those are the problem though.

Try disabling acpi instead.

//art


--
An OpenBSD user... and that's all you need to know =)

Please, send private emails to [EMAIL PROTECTED]



Re: Laptop won't boot with latest i386 snapshot

2007-06-08 Thread Leonardo Rodrigues

Pardon me but, isn't acpi and apm already enabled by default on
yesterday's snapshot?

acpi0 at mainbus0: rev 0
acpi0: tables DSDT FACP APIC SSDT
acpitimer at acpi0 not configured
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGPB)
acpiprt2 at acpi0: bus 2 (P2P_)
acpiec at acpi0 not configured
...

Also, typing enable acpi or enable apm returns an already enabled message.



On 6/8/07, Kenneth R Westerback [EMAIL PROTECTED] wrote:


You could try enabling the acpi* stuff. Sometimes the interrupt
allocation on newer boxes requires acpi.

 Ken




--
An OpenBSD user... and that's all you need to know =)

Please, send private emails to [EMAIL PROTECTED]



Laptop won't boot with latest i386 snapshot

2007-06-07 Thread Leonardo Rodrigues

Hello list!

After doing a fresh install of todays snapshot on my HP Pavilion
ZV5000 laptop, the system doesn't boot anymore.
When it gets on the line below, the CPU goes full speed (the fan goes
full power) and the system seems to hang:

Texas Instruments PCI1620 Misc rev 0x01 at pci2 dev 4 function 2 not
configured
ohci2 at pci2 dev 7 function 0 NEC USB rev 0x43: irq 10, version
1.0, legacy support

The line above is from an old succesfull dmesg that I took with
3.9-current. This old dmesg is at the end of the email. I think
there's no way to post a dmesg of the failing boot because this latpop
does not have a COM port =( If need be, I'll just write down the boot
process and type it on another email.

So, any ideas? It seems the problem is somehow USB related. Is there
any serious modification to the USB code that may have caused this?

Now, as a side note, while using 4.1-release I couldn't get the audio
driver (auixp) to work properly using headphones. With headphones
plugged in, I get no sound on them, and the laptop speakers won't mute
automagically. It would be really nice to have this little quirk
working =)

Well, thanks everyone!


OpenBSD 3.9-current (GENERIC) #693: Sat Apr 15 16:17:16 MDT 2006
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 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,CNXT-ID
real mem  = 401633280 (392220K)
avail mem = 359100416 (350684K)
using 4278 buffers containing 20185088 bytes (19712K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(e9) BIOS, date 12/15/04, BIOS32 rev. 0 @ 0xfd710
pcibios0 at bios0: rev 2.1 @ 0xfd710/0x8f0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf10/208 (11 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x1002 product 0x434c
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc/0xf000 0xd/0x6000! 0xd6000/0x1000 0xd7000/0x800!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 ATI Radeon IGP 9100 Host rev 0x02
ppb0 at pci0 dev 1 function 0 ATI Radeon IGP 9100 AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 ATI Radeon Mobility IGP 9100 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ohci0 at pci0 dev 19 function 0 ATI SB200 USB rev 0x01: irq 11,
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ATI OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 19 function 1 ATI SB200 USB rev 0x01: irq 11,
version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: ATI OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
piixpm0 at pci0 dev 20 function 0 ATI SB200 SMBus rev 0x16: SMI
iic0 at piixpm0
pciide0 at pci0 dev 20 function 1 ATI IXP200 IDE rev 0x00: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: SAMSUNG HM120JC
wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: TEAC, DV-W28EW, C.0S SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
pcib0 at pci0 dev 20 function 3 ATI SB200 PCI-ISA rev 0x00
ppb1 at pci0 dev 20 function 4 ATI SB200 PCI-PCI rev 0x00
pci2 at ppb1 bus 2
Texas Instruments TSB43AB21 FireWire rev 0x00 at pci2 dev 0 function
0 not configured
Broadcom BCM4306 rev 0x03 at pci2 dev 2 function 0 not configured
rl0 at pci2 dev 3 function 0 Realtek 8139 rev 0x10: irq 11, address
00:0f:b0:4a:bc:aa
rlphy0 at rl0 phy 0: RTL internal PHY
cbb0 at pci2 dev 4 function 0 Texas Instruments PCI1620 CardBus rev
0x01: irq 10
cbb1 at pci2 dev 4 function 1 Texas Instruments PCI1620 CardBus rev
0x01: irq 10
Texas Instruments PCI1620 Misc rev 0x01 at pci2 dev 4 function 2 not
configured
ohci2 at pci2 dev 7 function 0 NEC USB rev 0x43: irq 10, version
1.0, legacy support
usb2 at ohci2: USB revision 1.0
uhub2 at usb2
uhub2: NEC OHCI root hub, rev 1.00/1.00, addr 1
uhub2: 3 ports with 3 removable, self powered
ohci3 at pci2 dev 7 function 1 NEC USB rev 0x43: irq 5, version 1.0,
legacy support
usb3 at ohci3: USB revision 1.0
uhub3 at usb3
uhub3: NEC OHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci2 dev 7 function 2 NEC USB rev 0x04: irq 11
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: NEC EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 5 ports with 5 removable, self powered
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0x40
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 4 device 0 cacheline 0x8, lattimer 0x40

Re: Laptop won't boot with latest i386 snapshot

2007-06-07 Thread Leonardo Rodrigues

Thanks John!

I had to disable ohci and ehci to succesfully boot the machine.

Here's the dmesg:

OpenBSD 4.1-current (GENERIC) #254: Thu Jun  7 00:24:55 MDT 2007
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 3.00GHz (GenuineIntel 686-class) 3.01 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,CNXT-ID,xTPR
real mem  = 1206939648 (1151MB)
avail mem = 1153245184 (1099MB)
User Kernel Config
UKC disable ehc\^H \^H\^H \^H\^H \^Hochi\^H \^H\^H \^H\^H \^Hhci
136 ohci* disabled
137 ohci* disabled
UKC disable ehci
138 ehci* disabled
139 ehci* disabled
UKC quit
Continuing...
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/15/04, BIOS32 rev. 0 @
0xfd710, SMBIOS rev. 2.31 @ 0xd7010 (36 entries)
bios0: Hewlett-Packard Pavilion zv5200 (PU600UA#ABA)
pcibios0 at bios0: rev 2.1 @ 0xfd710/0x8f0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf10/208 (11 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x1002 product 0x434c
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc/0xf000 0xd/0x6000! 0xd6000/0x1000 0xd7000/0x800!
acpi0 at mainbus0: rev 0
acpi0: tables DSDT FACP APIC SSDT
acpitimer at acpi0 not configured
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGPB)
acpiprt2 at acpi0: bus 2 (P2P_)
acpiec at acpi0 not configured
acpicpu at acpi0 not configured
acpicpu at acpi0 not configured
acpitz at acpi0 not configured
acpibtn at acpi0 not configured
acpibtn at acpi0 not configured
acpiac at acpi0 not configured
acpibat at acpi0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 ATI Radeon IGP 9100 Host rev 0x02
ppb0 at pci0 dev 1 function 0 ATI Radeon IGP 9100 AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 ATI Radeon Mobility IGP 9100 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ATI SB200 USB rev 0x01 at pci0 dev 19 function 0 not configured
ATI SB200 USB rev 0x01 at pci0 dev 19 function 1 not configured
piixpm0 at pci0 dev 20 function 0 ATI SB200 SMBus rev 0x16: SMI
iic0 at piixpm0
pciide0 at pci0 dev 20 function 1 ATI IXP200 IDE rev 0x00: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: SAMSUNG HM120JC
wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: TEAC, DV-W28EW, C.0S SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
pcib0 at pci0 dev 20 function 3 ATI SB200 PCI-ISA rev 0x00
ppb1 at pci0 dev 20 function 4 ATI SB200 PCI-PCI rev 0x00
pci2 at ppb1 bus 2
TI TSB43AB21 FireWire rev 0x00 at pci2 dev 0 function 0 not configured
Broadcom BCM4306 rev 0x03 at pci2 dev 2 function 0 not configured
rl0 at pci2 dev 3 function 0 Realtek 8139 rev 0x10: irq 11, address
00:0f:b0:4a:bc:aa
rlphy0 at rl0 phy 0: RTL internal PHY
cbb0 at pci2 dev 4 function 0 TI PCI1620 CardBus rev 0x01: irq 10
cbb1 at pci2 dev 4 function 1 TI PCI1620 CardBus rev 0x01: irq 10
TI PCI1620 Misc rev 0x01 at pci2 dev 4 function 2 not configured
NEC USB rev 0x43 at pci2 dev 7 function 0 not configured
NEC USB rev 0x43 at pci2 dev 7 function 1 not configured
NEC USB rev 0x04 at pci2 dev 7 function 2 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0x40
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 4 device 0 cacheline 0x8, lattimer 0x40
pcmcia1 at cardslot1
auixp0 at pci0 dev 20 function 5 ATI IXP200 AC97 rev 0x00: irq 10
auixp0: soft resetting aclink
ATI IXP200 Modem rev 0x01 at pci0 dev 20 function 6 not configured
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: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
viasio0 at isa0 port 0x4e/2: VT1211 rev 0x02: HM: not activated WDG:
not activated
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask e77d netmask ef7d ttymask 
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
softraid0 at root
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a swap on wd0b dump on wd0b
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auixp0


On 6/7/07, John Danks [EMAIL PROTECTED] wrote:

When you see the boot prompt, type boot -c to get into UKC. From
there type verbose and then quit. This will enable verbose boot
messages so you can see 

Re: bcw(4) is gone

2007-04-10 Thread Leonardo Rodrigues

Phew, what a load of animosity. I really hope humanity still has a chance.

Now, regarding the bcw issue, let's leave this thread to die. Mistakes
are meant to be forgiven, and life to be lived forwards =)

--
An OpenBSD user... and that's all you need to know =)



Does anyone know a good file manager for OpenBSD?

2007-03-20 Thread Leonardo Rodrigues

Hello everyone =)

So, the title says it all. Anyone know a nice download manager utility
for OpenBSD? Something along the lines of downloader 4 X for linux, or
maybe even something like flashget/getright from the Windows world. I
get the feeling that a nice download manager is a rare sight in the
Unix world...

Sorry if this has already been asked before, but I looked on the
archives I have and I haven't found any reference to it.

--
An OpenBSD user...



RES: Script to sync pf rules for CARP fws

2006-11-14 Thread Leonardo Rodrigues de Mello
Here is one script i have done, you must setup ssh key authentication between
root from fw1 to fw2 and fw1 to fw1. and must install bash.


I use my CARP + PFSYNC OpenBSD as my gateway+firewall+reverse apache proxy+dns
server.  I have scripts for apache syncronization and for dns server
syncronization.

Best Regards,
--
#!/usr/local/bin/bash
# Editpf.sh by Leonardo Rodrigues de Mello Copyright 2006
# [EMAIL PROTECTED]
# Licensed under the terms of GNU GPL version 2.

# FW1 is the master firewall,
# from whom firewall 02 syncronize it configuration.
# Any Edit or Change must be done in FW1

#Hostname of Firewall 01,
FW1=fw1
#Hostname of Firewall 02
FW2=fw2

#Making backup of Pf.conf
cp /etc/pf.conf /etc/pf.conf.orig

#Lets edit the pf.conf in the master firewall
echo Editing PF.conf in $FW1
sleep 1
vi /etc/pf.conf

#Get Date to archive changes
date=`date +%y-%m-%d-%H-%M`

#Checking if the syntax of the changes are ok
if pfctl -f /etc/pf.conf
then
   echo The syntax of the file apears to be ok
   sleep 1
else
   echo The syntax of the file appears to have error
   echo Restoring old configuration file
   cp /etc/pf.conf.orig /etc/pf.conf
   echo exiting with ERROR
   exit 1
fi

#Checking Diferences Between the Two Firewalls Configuration Files
echo Checking Diferences Between pf.conf in $FW2 and $FW1
sleep 1
diff -u (ssh [EMAIL PROTECTED] 'cat /etc/pf.conf') (ssh [EMAIL PROTECTED] 'cat
/etc/pf.conf')  /var/log/mudancas/2.0/$date.pf.conf
less /var/log/mudancas/2.0/$date.pf.conf

#Giving the user the chance to abort the changes
echo Can i propagate the changes in pf.conf between the TWO FIREWALLS?(Y/N)
read anwser

if [ $anwser = Y ] || [ $anwser = y ]
then
   echo Propagating the Changes
   sleep 1
   scp /etc/pf.conf [EMAIL PROTECTED]:/etc/pf.conf
   echo Checking if the changes were sucessfully done
   sleep 1
   if diff -u (ssh [EMAIL PROTECTED] 'cat /etc/pf.conf') (ssh [EMAIL 
PROTECTED] 'cat
/etc/pf.conf')  pfctl -f /etc/pf.conf  ssh [EMAIL PROTECTED] 'pfctl -f
/etc/pf.conf'
   then
  echo Rulerset Loaded
  echo Changes propagated
  echo Exiting gracefully from editpf.sh
  exit 0
   else
  echo Rulerset not loaded, check syntax or connection between
firewalls
  echo Exiting dirt and quick from edit.pf.sh
  exit 1
   fi
else
   echo Changes ABORTED By User
   echo Recovering old configuration file
   sleep 1
   mv /etc/pf.conf.orig /etc/pf.conf
   pfctl -f /etc/pf.conf
   echo Exiting gracefully from editpf.sh
   exit 0
fi
---


-Mensagem original-
De: [EMAIL PROTECTED] em nome de C. L. Martinez
Enviada:ter 14/11/2006 13:37
Para:   misc@openbsd.org
Cc:
Assunto:Script to sync pf rules for CARP fws

Hi all,

 Somebody knows where I can find a good shell script to sync pf.conf rules
over a several Openbsd firewalls using CARP?

many thanks.



Re: OpenBSD as a PDC on a windows network

2006-11-02 Thread Leonardo Rodrigues

From what I've heard, Samba 4.0 will be able to fully replace an

Active Directory PDC.
Current Samba version (3.x) is only able to fully replace an NT-style PDC.


On 11/2/06, Gustavo Rios [EMAIL PROTECTED] wrote:

When you say about samba 4.0, you mean it can be used as a fully
replacement for a WINDOWS PDC?

Thanks in advance!




Re: Is there a deluser equivalent in OpenBSD?

2006-10-29 Thread Leonardo Rodrigues

Thanks everyone for the input. I guess I'll stick to a little script then =)
Though, it seems a bit strange that OpenBSD lacks something like that.
I thought it was a given.

--
An OpenBSD user... and that's all you need to know =)



Is there a deluser equivalent in OpenBSD?

2006-10-28 Thread Leonardo Rodrigues

Hello everyone,

So, I'm trying to set up a samba server, and looking into the
smb.conf, there's this command deluser that I can't find a similar
one on OpenBSD to replace it. I need a tool that is able to delete a
user from a group, by using the username and the group as arguments.
I've looked on userdel, useradd, groupmod and groupdel, but it seems
that they won't do what I want...
I think I'm missing something pretty obvious... =(

Can anyone give me some hints please?

--
An OpenBSD user... and that's all you need to know =)



Re: Is there a deluser equivalent in OpenBSD?

2006-10-28 Thread Leonardo Rodrigues

The man page says rmuser only accepts an username as an argument...

Thanks, but usermod (with -G arg) seems to only let me add users to a
group or multiple groups, but not remove them . The man page, from
what I could understand, also says nothing about removing users =(


--
An OpenBSD user... and that's all you need to know =)



Re: Is there a deluser equivalent in OpenBSD?

2006-10-28 Thread Leonardo Rodrigues

Humm...

From the man page of userdel(8):


DESCRIPTION
The userdel utility removes a user from the system, optionally removing
that user's home directory and any subdirectories.

So, it won't remove an user from a group, but an user from the entire
system. No signs of removing from a group on the entire man page...

Geez... seems like I won't find what I'm looking for...


--
An OpenBSD user... and that's all you need to know =)



Re: Is there a deluser equivalent in OpenBSD?

2006-10-28 Thread Leonardo Rodrigues

Just edit the group itself, see /etc/group. Also take a look at
usermod(8) again.

-Nick




First, thanks for the help everyone =)

Actually, it wouldn't be practical to manually edit /etc/group. An
userdel-like command is needed in the smb.conf of the samba server
in order to graphically and easily manage users on the server by using
a Windows NT server tool.

Also, er, call me dumb, but after rereading usermod(8), I really see
no way to explicitly remove an user from a group... =(  By using -G or
-g, it seems to be only able to add groups to an user, and not remove
users from a given group...

--
An OpenBSD user... and that's all you need to know =)



NOD32 Antivirus and OpenBSD?

2006-10-23 Thread Leonardo Rodrigues

Hello everyone,

I'm thinking on purchasing this NOD32 anti-virus solution from
ESET.COM and use it here at work. I really want to use it with
OpenBSD, since every other server machine runs OpenBSD as well. The
problem is that eset.com claims that their product will run on Linux
and FreeBSD, they say nothing about OpenBSD. I've heard rumors of
NOD32 being also able to run on OpenBSD, but I *think* that was for
earlier versions of NOD32. I'm not very fond of rumors, so I came here
to ask your opinion about it. Does anyone here have any experience
with NOD32 and OpenBSD? Or another really good antivirus that I may
consider?

Thanks in advance,

Leonardo Rodrigues
--
An OpenBSD user... and that's all you need to know =)



Re: Looking to start developing OpenBSD

2006-07-26 Thread Leonardo Rodrigues

Would you please implement the C99 %a string format support that is
missing in our libc? :DD
I'd love if someone could do it =)

Anyway, you could start by taking a look at the bug tracking system
(http://www.openbsd.org/query-pr.html). *Plenty* of work to be done
there.

On 7/26/06, Nick Price [EMAIL PROTECTED] wrote:

I'm interested in starting to do development on the OpenBSD OS.  What are
some good tasks that need to be done that someone isn't currently working
on?  Someone suggested ACPId, but apparently it's already being worked on.

Thanks
Nick





--
An OpenBSD user... and that's all you need to know =)



[OffTopic] AMD buys ATI

2006-07-24 Thread Leonardo Rodrigues

Quote:
However, AMD believes that it will not morph into another Intel: Our
approach is very different from Intel, said AMD spokesman Bubba
Wolford. You really would be comparing apples to oranges. We are very
much about an open approach. That includes opening up our chipset, our
platforms and our processors. If you look at 'Torrenza' you see how we
allow companies to innovate around our products, he said.

Source: http://www.tgdaily.com/2006/07/24/amd_not_another_intel/

Does that means documentation? Or am I just reading too much on the
words open?
By the way, how fares AMD on the giving documentation department?

--
An OpenBSD user... and that's all you need to know =)



Re: Samba

2006-07-13 Thread Leonardo Rodrigues

So, if anyone has a copy of that sync script, I'd be glad to have a
copy too! Please e-mail me.



Re: BitTorrent too many files open

2006-05-30 Thread Leonardo Rodrigues

Try using rtorrents. Take a look at the man pages and give it a go.
There's also another bittorrent client on /ports/net, but I forgot its
name. But it has been mentioned here on the list somewhere... a quick
search on the archives for bittorrent and you may find it.

On 5/30/06, Greg Thomas [EMAIL PROTECTED] wrote:

I'm using bittorrent.curses to try to get a large concert downloaded
but I'm getting  IO Error [Errno 24] Too many open files.

I set --max_files_open 50 even though it's supposedly the default.
Sysctl is set at the default.  I can't find it right now but I saw one
article that mentioned that for the BSDs python needs to be compiled
so it can manipulate certain system attributes.

Help.

Thanks,
Greg





--
An OpenBSD user... and that's all you need to know =)



Re: Status of tomcat on OpenBSD

2006-05-29 Thread Leonardo Rodrigues

There are ports and packages for jakarta-tomcat. Latest version being v5.0.

On 5/29/06, Jason Murray [EMAIL PROTECTED] wrote:

Hello, just inquiring about the current state of tomcat on OpenBSD. I
did a search on the list and the only resent mention of tomcat
degenerated into a RoR sucks flamewar.





--
An OpenBSD user... and that's all you need to know =)



Re: Firefox keeps crashing

2006-05-13 Thread Leonardo Rodrigues

Just adding some more info to the topic...
I've had some problems while running Firefox (tried on elightenment
and fvwm) on OpenBSD 3.8-release and OpenBSD 3.9-snapshot from around
february-2006. It was painfully slow, and switching between tabs was
like watching a turtle trying to run.

However, when I switched to 3.9-release and 3.9-snapshot (around
april-2006), the problem was solved, and firefox now runs smooth.
Don't know why though =)

By the way, I find it funny that firefox, being open-source and all
that, initializes slower on Unix machines than on WindowsXP for
example...


--
An OpenBSD user... and that's all you need to know =)



Re: OpenBSD's LIBC C99 missing %a string format support

2006-04-30 Thread Leonardo Rodrigues

I've been tinkering with the code a bit, and found a dirty workaround.
I changed all the snprintf's and sscanf's calls using %a to %f. Things
compiled and installed fine, and the app (window manager enlightenment
dr17, code from CVS) seems to be working fine as far as I have tested,
though I am quite sure I'll experience problems sooner or later =)
I'll try to link libtrio and use trio_snprintf and trio_sscanf with
the %a flag instead of using the %f flag and see if it works better or
whatever...

Still... its quite interesting that things are working like they
should. %a should give me an hexadecimal fractional while %f should
give me a decimal fractional. Things should be really messed up on
E17... Well, let's wait and see.

On 4/28/06, Giancarlo Razzolini [EMAIL PROTECTED] wrote:

Otto Moerbeek wrote:
 On Fri, 28 Apr 2006, Gustavo Rios wrote:

 I could suggest one to avoid ANSI C functions as much as possible.
 Write his/her own ones. Why? The motivation has been stated by you:
 portability concerns.

 Only if you believe the code you produce is better than the result of
 the effort of hundreds of people over a period of more than 20 years.

 People inventing the wheel over and over is nothing more than a waste
 of effort and a endless source of bugs.  Effort that instead could
 have been spent on providing more C99 features to our libc.

   -Otto


Programming in ANSI is the best way to get portability. I agree with
Otto. Invent the wheel over and over is a waste that could be put to
some good use. The only place that i believe that invent the wheel is
good is when you are learning. After that point, using ANSI functions,
is the best way to program correctly, securely and portable.

My 2 cents,
--
Giancarlo Razzolini
Linux User 172199
Moleque Sem Conteudo Numero #002
Slackware Current
OpenBSD Stable
Snike Tecnologia em Informatica
4386 2A6F FFD4 4D5F 5842  6EA0 7ABE BBAB 9C0E 6B85

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]





--
An OpenBSD user... and that's all you need to know =)



Re: Laptop HP Pavilion zv5445US and OpenBSD 3.8/3.9 (problems at boot sequence)

2006-04-23 Thread Leonardo Rodrigues
If I go from Windows to OpenBSD by restarting the laptop (i.e,
choosing in windows to restart the machine), OpenBSD fails to boot.
But, if I choose to power the laptop down instead of restarting,
OpenBSD boots fine.

Seems that Windows is leaving garbage somewhere on the system...

On 4/23/06, Jacob Meuser [EMAIL PROTECTED] wrote:
 On Sun, Apr 23, 2006 at 03:46:50AM -0300, Leonardo Rodrigues wrote:
  Hello again misc!
 
  I'm dual-booting WindowsXP and OpenBSD on an HP Pavilion zv5445US
  (zv5000 series) and have been using OpenBSD 3.8 for quite some time
  now, but there's a little issue that's been annoying me ever since.
 
  Sometimes the machine boots fine, and sometimes it doesn't.
  It often hangs right at
  root on wd0a
  rootdev=0x0 rrootdev=0x300 rawdev=0x302
 
  However, if I restart the laptop and let it boot again, it boots just fine.
  It often starts freezing again if I log on WindowsXP and try to boot
  OpenBSD after that.
 
  I've recently switched to OpenBSD 3.9-current from a snapshot to see
  if things would get fixed, but they got worse. Now instead of
  freezing, it just restarts right on the same msg rootdev=0x0 blabla
 
  It only boots fine again, if I power the laptop down somewhere during
  fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
  biomask ef7d netmask ef7d ttymask 
  pctr: user-level cycle counter enabled
  and try booting again. And even that isn't guaranteed to work.
 
  And again, if I log on WindowsXP, and then try to start OpenBSD, it
  restarts during boot, just as I described above.
 
  I used to get some kernel errors right there too (that ddb prompt),
  but this error hasn't appeared for a while now.
 
  So, I would like to know some suggestions on what I should do. I'm
  quite clueless about it. Maybe it's some issues with the sound adapter
  (as it crashes right before the ac97 msg)? Or with the hard disk? Some
  kernel module to disable on boot time?
 
  Any help is welcome :)

 when you go from Windows to OpenBSD, are you cold booting, or warm
 booting; i.e. do you shut the laptop off in between?  does that make
 a difference?

 --
 [EMAIL PROTECTED]


 
  Here's a dmesg of a successful boot:
 
  OpenBSD 3.9-current (GENERIC) #693: Sat Apr 15 16:17:16 MDT 2006
  [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
  cpu0: Intel(R) Pentium(R) 4 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,CNXT-ID
  real mem  = 401633280 (392220K)
  avail mem = 359100416 (350684K)
  using 4278 buffers containing 20185088 bytes (19712K) of memory
  mainbus0 (root)
  bios0 at mainbus0: AT/286+(e6) BIOS, date 12/15/04, BIOS32 rev. 0 @ 0xfd710
  pcibios0 at bios0: rev 2.1 @ 0xfd710/0x8f0
  pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf10/208 (11 entries)
  pcibios0: no compatible PCI ICU found: ICU vendor 0x1002 product 0x434c
  pcibios0: PCI bus #4 is the last bus
  bios0: ROM list: 0xc/0xf000 0xd/0x6000! 0xd6000/0x1000 
  0xd7000/0x800!
  cpu0 at mainbus0
  pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
  pchb0 at pci0 dev 0 function 0 ATI Radeon IGP 9100 Host rev 0x02
  ppb0 at pci0 dev 1 function 0 ATI Radeon IGP 9100 AGP rev 0x00
  pci1 at ppb0 bus 1
  vga1 at pci1 dev 5 function 0 ATI Radeon Mobility IGP 9100 rev 0x00
  wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
  wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
  ohci0 at pci0 dev 19 function 0 ATI SB200 USB rev 0x01: irq 11,
  version 1.0, legacy support
  usb0 at ohci0: USB revision 1.0
  uhub0 at usb0
  uhub0: ATI OHCI root hub, rev 1.00/1.00, addr 1
  uhub0: 3 ports with 3 removable, self powered
  ohci1 at pci0 dev 19 function 1 ATI SB200 USB rev 0x01: irq 11,
  version 1.0, legacy support
  usb1 at ohci1: USB revision 1.0
  uhub1 at usb1
  uhub1: ATI OHCI root hub, rev 1.00/1.00, addr 1
  uhub1: 3 ports with 3 removable, self powered
  piixpm0 at pci0 dev 20 function 0 ATI SB200 SMBus rev 0x16: SMI
  iic0 at piixpm0
  pciide0 at pci0 dev 20 function 1 ATI IXP200 IDE rev 0x00: DMA,
  channel 0 configured to compatibility, channel 1 configured to
  compatibility
  wd0 at pciide0 channel 0 drive 0: SAMSUNG HM120JC
  wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
  wd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5
  atapiscsi0 at pciide0 channel 1 drive 0
  scsibus0 at atapiscsi0: 2 targets
  cd0 at scsibus0 targ 0 lun 0: TEAC, DV-W28EW, C.0S SCSI0 5/cdrom removable
  cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
  pcib0 at pci0 dev 20 function 3 ATI SB200 PCI-ISA rev 0x00
  ppb1 at pci0 dev 20 function 4 ATI SB200 PCI-PCI rev 0x00
  pci2 at ppb1 bus 2
  Texas Instruments TSB43AB21 FireWire rev 0x00 at pci2 dev 0 function
  0 not configured
  Broadcom BCM4306 rev 0x03 at pci2 dev 2 function 0 not configured
  rl0 at pci2 dev 3 function 0 Realtek 8139 rev 0x10: irq 11, address
  00:0f:b0:4a:bc:aa
  rlphy0 at rl0 phy 0

Re: OpenBSD recommendations on HW

2006-04-10 Thread Leonardo Rodrigues
Here's a quote from the FAQ:
Other manufacturers, such as Broadcom, Texas Instruments and
Connexant have actively fought our attempts to develop free drivers
for their products. We encourage you to respect their wishes by not
buying their products. Realtek, Ralink, Atmel, and ADMtek make good
products and support the open source community's desire for free
drivers, and have earned our support and business.

There may be more though...

On 4/10/06, Lasse Bach [EMAIL PROTECTED] wrote:
 Hi,

 I'm considering buying a wireless ethernet adapter for an OpenBSD box.
 If course I have checked which cards are supported by OpenBSD.

 But I think it would be nice if the OpenBSD developers would setup a page
 telling which hardware the developers recommends in terms of that the
 manufactures have released documentation for the hardware.

 I personnaly would prefer hardware from vendors who release
 documentation for
 their hardware.

 I have no idea if this takes too much work, or if anyone even likes the
 idea.

 But it would also shed some light on which manufactures are releasing
 hardware
 documentation for their products, and who isn't.



 Lasse Bach



PF and MS RDP trouble (help!)

2006-04-09 Thread Leonardo Rodrigues
Hello everyone!

I'm having a bit of trouble trying to access a Windows 2003 server
that is behind an OpenBSD 3.9 -current firewall.

From the LAN, I can remote access the 2k3 server easily, by just
opening the mstsc and entering the machine's IP (192.168.0.1).
The problem is, I want to access the 2k3 server from home, and my PF
rules aren't working =(
I try to connect to the firewall's external IP via the ms terminal
service client, but my connection times out...

Here's my pf.conf

#BEGIN
lab_if = em0 # i'm still not using it.
adm_if = rl0
ext_if = rl1

tcp_services = { 22, 113  }
icmp_types = echoreq
priv_nets = { 192.168.0.0/16, 127.0.0.0/8, 172.16.0.0/12, 10.0.0.0/8  }

set block-policy return
set loginterface $ext_if

scrub in all

nat on $ext_if from $adm_if:network to any - $ext_if

#RDP rdr rule
rdr on $ext_if proto tcp from any to $ext_if port 3389 - 192.168.0.1 port 3389

block all

pass quick on lo0 all

block drop in quick on $ext_if from $priv_nets to any
block drop out quick on $ext_if from any to $priv_nets

# RDP (MS Terminal Service)
pass in on $ext_if proto tcp from any to any port 3389

pass in on $ext_if inet proto tcp from any to $ext_if \
 port $tcp_services flags S/SA keep state

pass in inet proto icmp all icmp-type $icmp_types keep state

pass in on $adm_if from $adm_if:network to any keep state
#pass in on $lab_if from $lab_if:network to any keep state

pass out on $adm_if from any to $adm_if:network keep state
#pass out on $lab_if from any to $lab_if:network keep state

pass out on $ext_if proto tcp all modulate state flags S/SA
pass out on $ext_if proto { udp, icmp } all keep state
#END

I think I'm missing something very obvious here... so, better ask the
list than slam my head on the wall :D

Also, as one can see from the .conf file, I have two networks, ADM
(192.168.0.0/24) and LAB (192.168.1.0/24), that must be isolated from
each other. I still haven't figured that one out yet. Anyone willing
to give me some light onto this matter?

Thanks in advance, and kudos for everyone that makes OpenBSD a great OS :)



Re: PF and MS RDP trouble (help!)

2006-04-09 Thread Leonardo Rodrigues
Thanks for the tips, I was able to log the redirection rules and trace
the problem. And there was none at all! PF was working perfectly. The
packets were being redirected but I was getting no answer from the
2k3. So, I phoned the sys admin, chatted a little, and found out that
he didn't set a gateway to the 2k3 server after a maintenance session.
Heh... life is hard ain't it? :)


On 4/9/06, NetNeanderthal [EMAIL PROTECTED] wrote:
 On 4/9/06, Leonardo Rodrigues [EMAIL PROTECTED] wrote:
  Hello everyone!
 
  I'm having a bit of trouble trying to access a Windows 2003 server
  that is behind an OpenBSD 3.9 -current firewall.
 
  From the LAN, I can remote access the 2k3 server easily, by just
  opening the mstsc and entering the machine's IP (192.168.0.1).
  The problem is, I want to access the 2k3 server from home, and my PF
  rules aren't working =(
  I try to connect to the firewall's external IP via the ms terminal
  service client, but my connection times out...
 
  Here's my pf.conf
 snip ruleset

 What methods have you used to diagnose this?

 Read the FAQ page and the man pages.
 http://www.openbsd.org/faq/pf/logging.html
 /usr/bin/man pfctl pflogd tcpdump

 Turn on logging for all block rules and start pflogd.  Then, try the
 following command and retest the connection attempt:

 /sbin/pflogd
 /sbin/ifconfig pflog0 up
 /usr/sbin/tcpdump -netttoi pflog0 port 3389

 If you still can't find what's stopping the connection after examining
 pflog0, send the output of the following command back to the list:

 /sbin/pfctl -vvvsa



Re: Realtek RTL8201CL NIC support

2006-03-28 Thread Leonardo Rodrigues
 the realtek part number is a PHY.

Yep. The (in)famous wikipedia told me that.
(http://en.wikipedia.org/wiki/PHYceiver)

 some references
 seem to suggest a tulip.  you could try to see if this does
 anything (try both de(4) and dc(4) in your kernel), but no high
 hopes.

I'll try it later when I arrive at work.



Realtek RTL8201CL NIC support

2006-03-27 Thread Leonardo Rodrigues
Hello guys!

I've installed and configured OpenBSD 3.9 on an Asus P5RD1-VM
motherboard (ATI Xpress 200), but was kind of sad when I found out
that the onboard NIC Realtek RTL8201CL wasn't supported by OpenBSD. It
has only two PCIs slots, but I need three working NICs on it...
So I'd just like to know some more info regarding its support. Will a
driver to this onboard NIC be available in the near future? Or should
I return this mobo and get another with more PCI's slots?

Actually, I will return the mobo and get another one.  But I'd like to
know anyway how's the support for this nic, or some place where I can
get more info about it.

Thanks!



Re: Realtek RTL8201CL NIC support

2006-03-27 Thread Leonardo Rodrigues
Ooops, sorry for that. Completely forgot.
Anyways, here it goes ;)

OpenBSD 3.9 (GENERIC) #617: Thu Mar  2 02:26:48 MST 2006
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 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,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,CNXT-ID
real mem  = 469016576 (458024K)
avail mem = 420777984 (410916K)
using 4278 buffers containing 23552000 bytes (23000K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 10/19/05, BIOS32 rev. 0 @ 0xf0010
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 3.0 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf87e0/256 (14 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x10b9 product 0x1573
pcibios0: Warning, unable to fix up PCI interrupt routing
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.
WARNING: can't reserve area for BIOS PROM.
bios0: ROM list: 0xc/0xe000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 vendor ATI, unknown product 0x5a33 rev 0x01
ppb0 at pci0 dev 1 function 0 ATI RS480 PCIE rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 ATI Radeon XPRESS 200 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 25 function 0 Acer Labs M5249 PCI-PCI rev 0x00
pci2 at ppb1 bus 2
rl0 at pci2 dev 19 function 0 Realtek 8139 rev 0x10: irq 5, address
00:e0:7d:82:7f:e2
rlphy0 at rl0 phy 0: RTL internal PHY
rl1 at pci2 dev 20 function 0 Realtek 8139 rev 0x10: irq 11, address
00:e0:7d:83:8e:a6
rlphy1 at rl1 phy 0: RTL internal PHY
Acer Labs M5263 LAN rev 0x50 at pci0 dev 27 function 0 not configured
ohci0 at pci0 dev 28 function 0 Acer Labs M5237 USB rev 0x03: irq
11, version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 28 function 1 Acer Labs M5237 USB rev 0x03: irq 3,
version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Acer Labs OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ohci2 at pci0 dev 28 function 2 Acer Labs M5237 USB rev 0x03: irq 5,
version 1.0, legacy support
usb2 at ohci2: USB revision 1.0
uhub2 at usb2
uhub2: Acer Labs OHCI root hub, rev 1.00/1.00, addr 1
uhub2: 3 ports with 3 removable, self powered
vendor Acer Labs, unknown product 0x5461 (class multimedia unknown
subclass 0x03, rev 0x00) at pci0 dev 29 function 0 not configured
pcib0 at pci0 dev 30 function 0 vendor Acer Labs, unknown product
0x1573 rev 0x31
alipm0 at pci0 dev 30 function 1 Acer Labs M7101 Power rev 0x00:
SMBus disabled
pciide0 at pci0 dev 31 function 0 Acer Labs M5229 UDMA IDE rev 0xc7:
DMA, channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: SAMSUNG SP0802N
wd0: 16-sector PIO, LBA48, 76351MB, 156368016 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 disabled (no drives)
Acer Labs M5287 SATA rev 0x02 at pci0 dev 31 function 1 not configured
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: PC speaker
spkr0 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
fd1 at fdc0 drive 1: density unknown
biomask ff6d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

There are two Realtek NICs attached to the only two PCI slots. I was
getting lots of watchdog timeouts from them while using them with
OBSD3.8. Installing 3.9 solved that.



Re: Help compiling Squid with LDAP modules

2006-03-26 Thread Leonardo Rodrigues
OK, here it goes:
Just to make sure I had all LDAP dependencies, I did a make, make
install, on the openldap, login_ldap and mod_auth_ldap ports. Then, I
added LDAP on --enable-basic-auth-helpers and added ldap_group on
--enable-external-acl-helpers in the squid Makefile.

Then I tried to compile squid by typing make. And this is an excerpt
of the error I get:
Making all in LDAP
source='/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c'
object='squid_ldap_auth.o' libtool=no 
depfile='.deps/squid_ldap_auth.Po'
tmpdepfile='.deps/squid_ldap_auth.TPo'  depmode=gcc3 /bin/sh
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/cfgaux/depcomp
 cc -DHAVE_CONFIG_H -I.
-I/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP
-I../../../include
-I/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/include
-O2 -pipe -c `test -f
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c
|| echo 
'/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/'`/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:88:18:
lber.h: No such file or directory
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:89:18:
ldap.h: No such file or directory
In file included from
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/include/config.h:37,
 from
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/include/util.h:37,
 from
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:91:
../../../include/autoconf.h:277:1: warning: fd_mask redefined
In file included from /usr/include/sys/types.h:220,
 from /usr/include/stdio.h:45,
 from
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:85:
/usr/include/sys/select.h:79:1: warning: this is the location of the
previous definition
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:102:
error: `LDAP_SCOPE_SUBTREE' undeclared here (not in a function)
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:106:
error: `LDAP_DEREF_NEVER' undeclared here (not in a function)
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:112:
error: `LDAP_NO_LIMIT' undeclared here (not in a function)

...

/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:595:
error: `password' undeclared (first use in this function)
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:606:
error: `LDAPMessage' undeclared (first use in this function)
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:606:
error: `res' undeclared (first use in this function)
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:607:
error: `entry' undeclared (first use in this function)
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:611:
error: `search_ld' undeclared (first use in this function)
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:611:
error: `persistent_ld' undeclared (first use in this function)
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:614:
error: `ldapServer' undeclared (first use in this function)
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:614:
error: `port' undeclared (first use in this function)
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:616:
error: `userid' undeclared (first use in this function)
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:619:
error: `LDAP_SUCCESS' undeclared (first use in this function)
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:630:
error: `LDAP_PARTIAL_RESULTS' undeclared (first use in this function)
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:655:
warning: assignment makes pointer from integer without a cast
/usr/ports/www/squid/w-squid-2.5.STABLE12p1/squid-2.5.STABLE12/helpers/basic_auth/LDAP/squid_ldap_auth.c:691:
error: `LDAP_COMPARE_TRUE' undeclared (first use in this function)
*** 

Help compiling Squid with LDAP modules

2006-03-25 Thread Leonardo Rodrigues
Hello guys.

I'm trying to build the squid from ports with ldap modules. I've
already enabled the flags in the makefile, and already compiled and
installed the openldap-client and openldap-server for the libraries.
But squid won't compile :(

I've managed to compile it on another machine, running 3.8 release,
but I just can't remember for the life of me what I did to make it
run. I've already tried copying the include and libraries folder from
the openldap port to the include and lib of the squid directory, but
it didn't work. From the error output, it seems that squid can't find
the necessary depedencies to compile properly. A lot of undeclared
variable errors :D

So, instead of trying some more options, I was wondering if I could
win some time by asking it here on misc.

Can anyone help?

Thanks in advance =)

PS. Running 3.9-current from snapshot around the first week of march.