Re: Packet Filter router i368 vs 64bit

2014-11-25 Thread Juan J. Fernandez

Thank you Brad.

Juan J. Fernandez

On 11/25/14 21:20, Brad Smith wrote:

On 11/25/14 18:18, motty cruz wrote:

  Thank you Juan,

I appreciate your suggestions and advice.
I am planning on using Dual socket B2 (LGA 1356) supports Intel® Xeon®
processor E5-2400 v2, I suppose i386 would perform better rather than 
64bit

amd processor. Thank you again!


The amd64 arch runs on any modern Intel CPU as well as AMD CPUs (as
well as VIA). amd64 refers to the ISA not that it will only run on AMD
CPUs.




Re: Packet Filter router i368 vs 64bit

2014-11-25 Thread Juan J. Fernandez

Thank you for your advice Philip.

Can you please give your advice then ?

Thank you :)

Juan J. Fernandez

On 11/25/14 21:06, Philip Guenther wrote:

On Tue, Nov 25, 2014 at 3:01 PM, Juan J. Fernandez
 wrote:

In general, you could achieve performance by configuring your kernel
according to your hardware. You can use dmesg(8) and 'GENERIC' kernel
configuration as a guide for your hardware.

That's bad advice.  When you run a non-standard kernel and something
goes wrong, the *first* response will be "does it happen on a GENERIC
kernel?  What are the symptoms, backtrace, etc there?"   And what
changes are you suggesting would make a *performance* difference?
Have you been drinking the kool-aid over at that c*l*mel site?



Sometimes i386 will run faster than 64 bit (see
http://www.openbsd.org/amd64.html).

I see nothing on that page to suggest that.


Philip Guenther





--
mQINBFRvbjABEADi5s62B4CKyNH8cBQZoThdHSnbVZ9Iwk/Kx0Pldr7Ohj3LqzMC
Bgu4RzOL9gahK2H0xqNgydqSduYBkituQ5HRJqnVid/AFLlbP6yXe+/5uFREmNpx
ozx3iR1eKHWnSXi2o+23JXKTadV1yK8KqVyILIheaD3/0rNgcFR7ZOFUevuRGQ+A
AwxlAyLu3/zy7MbmLalrfWfy1KkD2W8aVZZWVIHx9HYFBVusMY0kv0+D6ytz91Vo
HB+lFmXDxfixl9+QW61SDWDHiKyRUZVGFcPc9cWAJxQ1yGN/ziG8uHPksWVScKlQ
nFe1B1AQAdExFk5Sf/k5u8pLR6WWS8N3f7wKfRMGZmQ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ogN1/LGuxXB0PYHSIxII+TbBzJ
N/dk32GoZn81oAdq97X8mnCa4t2bquDvzWJDqnDhdvPeNeR1vWwgCvtA0g8MsaYH
atPcpgBMYomKhSDC93UfRB6EukoBD5juZO+rzSHyLIQtWjhnCpA1fZe8r4LNnW9r
lI3K4TAl8P/hR/dPj2rBv1QXeYZTPnY7VLZ5ZvaaeNDA7y0bAnpAOTqEVH7k5SpJ
j6y4ITCW8+awTqyeCynX3iZkq7z6jb4RHzoz9466f3ggW0MnALXK4nlIFiKyG26F
KOwX9zcWjT2zC0CmluXFgmY+EPfDm3m1pmABFbbGe6JTNuT4RUm9Kd7eAk4IdT5z
yp57hYmfCopGzgWj4Y6iBXI9Vod6ULIf1vAzVDPUQDNs5QiiRIiEkmPRxUvEx6wr
9KNRyzG5TFUHQBZ0kh+QpjGpzmUpfcz2bEV5TWvU0kRd+HCzHH7ZjlqeGR/rtX6q
8abov2Nem43Fzg==
=07Xr
-END PGP PUBLIC KEY BLOCK-



Re: Packet Filter router i368 vs 64bit

2014-11-25 Thread Juan J. Fernandez

Greetings Motty Cruz,

In general, you could achieve performance by configuring your kernel 
according to your hardware. You can use dmesg(8) and 'GENERIC' kernel 
configuration as a guide for your hardware.


Sometimes i386 will run faster than 64 bit (see 
http://www.openbsd.org/amd64.html).



Juan J. Fernandez

On 11/25/14 16:52, Motty Cruz wrote:

Hello all,
I am searching for hardware to build a router with OpenBSD. I have 
found mixed signals as to fastest system with i386 or 64bit. I know in 
the past i386 OpenBSD used to perform a lot better than 64bit system.


Any suggestions!
Thanks,
Motty




Re: contributing

2014-11-17 Thread Juan J. Fernandez

On 11/17/14 01:50, Ingo Schwarze wrote:

Hi Eric,

Eric Furman wrote on Sun, Nov 16, 2014 at 11:40:49PM -0500:


OpenBSD's man pages are fantastic, but one area I have
noticed that could be improved is that some entries could
benefit from having more and/or better examples of use.

That is true.  Not all manual pages are short of examples, but many
are, and some examples can be improved.  People knowing areas well
such that they can distinguish good usage from cumbersome idioms
and such that they know what is important are welcome to submit
patches.

If somebody with less experience has problems understanding some
particular aspect of some particular manual and thinks that an
example might help, saying so on this list can also be helpful
because people knowing an area well often overlook problems that
less experienced users may face.

Yours,
   Ingo



It's worth to note the author of a manual page may have considered not 
to include examples since it could mislead from the main documentation. 
In that case, the author should point to further and/or more detailed 
resources.



Juan J. Fernandez



Re: appling X-Patch -> make build breaks?

2006-05-05 Thread Juan J Dalessandro M
El vie, 05-05-2006 a las 11:55 +0200, Didier Wiroth escribis:
> >Any ideas?
> 
> Hello,
> 1) man 8 release
> 2) tcl and tk installed?
> 3) clean sources? if not, delete your sources and refetch it
> 4) do not build in your src directory!!! -> man 8 release
> good luck
> didier
> 

Okay. Thanks.

I installed tcl and tk >= 8.4 and works fine. The patch is installed
correctly.

-- 
Juan J D'Alessandro M
Coordinador General
Grupo BSD Venezuela
Valencia - Venezuela



Re: appling X-Patch -> make build breaks?

2006-05-04 Thread Juan J Dalessandro M
Hi.

I have the same problem. Compiling 007_xorg.patch on 3.8

[EMAIL PROTECTED] ~ # cd /usr/src/XF4/
[EMAIL PROTECTED] XF4 # patch -p0 < /home/juancho/parches/007_xorg.patch
[...]
[EMAIL PROTECTED] XF4 # make build
[...]

main.c:249: error: syntax error before "Tcl_Interp"
main.c:251: error: syntax error before '{' token
*** Error code 1

Stop in /usr/src/XF4/xc-old/programs/Xserver/hw/xfree86/XF86Setup.
*** Error code 1

Stop in /usr/src/XF4/xc-old/programs/Xserver/hw/xfree86 (line 879 of
Makefile).
*** Error code 1

Stop in /usr/src/XF4/xc-old/programs/Xserver (line 1148 of Makefile).
*** Error code 1

Stop in /usr/src/XF4/xc-old/programs (line 688 of Makefile).
*** Error code 1

Stop in /usr/src/XF4/xc-old (line 662 of xmakefile).
*** Error code 1

Stop in /usr/src/XF4/xc-old (line 716 of xmakefile).
*** Error code 1

Stop in /usr/src/XF4/xc-old (line 39 of Makefile).
*** Error code 1

Stop in /usr/src/XF4 (line 64 of Makefile).
*** Error code 1

Stop in /usr/src/XF4 (line 77 of Makefile).


Any ideas?

El jue, 04-05-2006 a las 10:45 +, Didier Wiroth escribis:
> see also: man 8 release, it's a bit more detailedunder:  "5.   Build and
> install XF4".Use another directory to build, for example:a) mkdir
> /usr/XF4BLDb) cd /usr/XF4BLD;lndir /usr/XF4c) nice make build- Original
> Message -From: [EMAIL PROTECTED]: Thursday, May 4, 2006
> 11:10Subject: Re: appling X-Patch -> make build breaks?To: Rogier Krieger Cc:
> misc@openbsd.org> > On 5/4/06, [EMAIL PROTECTED] > > wrote:> >>
> Stop in /usr/XF4/xc-old/programms/Xserver/hw/xfree86/XF86Setup> >> > A quick
> guess: did you install the tcl and tk packages? IIRC, > the FAQ> > mentions
> those as a prerequisite for building XF86Setup on i386.> >> > The lines in the
> preceding source code deal with tk parsing command> > line arguments.> >> >
> Cheers,> >> > Rogier> > Yupp...> > tk-8.4.7graphical toolkit for
> Tcl> tcl-8.4.7p1 Tool Command Language> > Well I`ll check the HDD for
> Errors...> I installed the Sources via FTP (it`s faster then CVS :)).> > If
> others had no problem so far there must be somethign wrong > with the HDD> or
> the Sources.> > didier: I`m not sure if these Sources are ok... (not anymore)>
> Ted: I had also other Errors. I just posted the first.> > > I`ll simply rm -RF
> /usr/XF4 and refetch the Src and try again.> > > Kind regards,> Sebastian> >
> 
-- 
Juan J D'Alessandro M
Coordinador General
Grupo BSD Venezuela
Valencia - Venezuela



Error code 1 compiling 007_xorg.patch on 3.8

2006-05-04 Thread Juan J Dalessandro M
Hi all.

I have this error during the compilation of this patch.

[EMAIL PROTECTED] XF4 # patch -p0 < /home/juancho/parches/007_xorg.patch
[EMAIL PROTECTED] XF4 # make build

Some few lines [...]

Stop in /usr/src/XF4/xc-old/programs/Xserver/hw/xfree86/XF86Setup.
*** Error code 1

Stop in /usr/src/XF4/xc-old/programs/Xserver/hw/xfree86 (line 879 of
Makefile).
*** Error code 1

Stop in /usr/src/XF4/xc-old/programs/Xserver (line 1148 of Makefile).
*** Error code 1

Stop in /usr/src/XF4/xc-old/programs (line 688 of Makefile).
*** Error code 1

Stop in /usr/src/XF4/xc-old (line 662 of xmakefile).
*** Error code 1

Stop in /usr/src/XF4/xc-old (line 716 of xmakefile).
*** Error code 1

Stop in /usr/src/XF4/xc-old (line 39 of Makefile).
*** Error code 1

Stop in /usr/src/XF4 (line 64 of Makefile).
*** Error code 1

Stop in /usr/src/XF4 (line 77 of Makefile).


Any ideas?

-- 
Juan J D'Alessandro M
Coordinador General
Grupo BSD Venezuela
Valencia - Venezuela



Re: Hostap and 802.11g

2006-02-22 Thread Juan J.
El mii, 22-02-2006 a las 09:55 +0100, Thomas Bvrnert escribis:
> no, only 11b with atheros. there is no implementation for 11g in
> openbsd.
> 
> Thomas

Uhm, sorry. I missed that point: hostap mode with 802.11b (vs INTERSIL
PRISM based cards). Indeed the card I said is a 802.11g.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: Hostap and 802.11g

2006-02-22 Thread Juan J.
El mar, 21-02-2006 a las 22:02 -0500, Melameth, Daniel D. escribis:
> Is ANYONE doing hostap with 802.11g?  If so, is it working well?  And
> doing WEP?  If not, any thoughts on doing this with -current?
> 
> Thoughts appreciated--I'd love a make, model and relevant dmesg of
> anyone doing hostap with 802.11g.

$ dmesg | grep ural
ural0 at uhub3 port 3
ural0: ANI 802.11g W, rev 2.00/0.01, addr 2
ural0: MAC/BBP RT2570 (rev 0x03), RF RT2526, address 00:80:5a:32:fb:97

Running 3.8 stable. The NIC is a cheap Conceptronic C54RU (USB 2.0), and
works like a charm in hostap mode with WEP enabled. I'm using it as a
home access point full time (it's connected to the homemade router/fw
running openbsd).

I've not noticed any problem so far.

Regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: bash: delete key sends ~ instead of [del]

2006-02-11 Thread Juan J.
El sab, 11-02-2006 a las 17:17 -0500, Nick Guenther escribis:
> Yeah, it does that. I don't know why, I assume historical reasons, and
> I would like to learn from someone here who does know. Use backspace
> instead.

Or look what says google:
http://www.google.es/search?q=delete+key+bash

> On 2/11/06, Martin Schrvder  wrote:
> > Hi,
> > on my freshly installed 3.7 in bash the delete key sends an ~
> > instead of [del]. How can I fix this?
> >
> > Sorry if this is a FAQ, but Google et.al. don't allow searching
> > for "~" :-(

Yes... search for: delete key bash

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



mod_gzip and 3.8 SOLVED

2006-01-17 Thread Juan J.
Hello misc@,

I've synced my kernel with 3.8 STABLE via CVS (Sun Jan 15 13:10:47 CET
2006) and mod_gzip-1.3.26.1ap0 now works like a charm.

The issue was:
http://marc.theaimsgroup.com/?t=11344297545&r=1&w=2

Remember the problem it's not related to zlib (mod_gzip doesn't use zlib
at all).

Just for the record.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: popa3d

2006-01-05 Thread Juan J.
El jue, 05-01-2006 a las 12:17 -0700, Jason Balan escribis:
> Question I have the following in my syslog file and created the popa3d.log
> file restarted syslog then rebooted
> 
> !popa3d
> *.* /var/log/popa3d.log
> 
> I still am getting popa3d messages on the console..any suggestions

Try:

!!popa3d
*.* /var/log/whatever
!*

Further info in the man pages :)

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



pkg_find hack

2005-12-29 Thread Juan J.
Hello,

Sometimes I don't like to install the ports tree to search for packages,
because I know what I want to install. But I don't know the exact
package name.

I've done a little script to get the index.txt from the ftp (or do a ls
*.tgz) and the search with regex in package names.

Example:

$ pkg_find ^vim
packages.lst not found, downloading from:
ftp.openbsd.org/pub/OpenBSD/3.8/packages/i386
Trying index.txt...
Done!
vim-6.3.85p0-gtk.tgz
vim-6.3.85p0-no_x11.tgz
vim-lang-6.3.85-gtk.tgz
vim-lang-6.3.85-no_x11.tgz
4 packages match...

$ pkg_find ^vim-6.*-no_x11
vim-6.3.85p0-no_x11.tgz
Install it? n
OK, may be later.

If you answer yes being root, it performs a pkg_add -r.

It's a 15 mins hack, but may be someone finds it useful.

The shell script:
http://blackshell.usebox.net/pub/shell/pkg_find.gz

I bet there are more elaborated solutions out there, but this silly
script does the work for me.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Sensors on VIA EPIA-PD6000E

2005-12-21 Thread Juan J.
Hello,

Since 3.8 my VIA EPIA-PD6000E board has sensor support via viasio
driver.

$ dmesg | grep viasio
viasio0 at isa0 port 0x2e/2: VT1211 rev 0x02: HM
viasio1 at isa0 port 0x4e/2: VT1211 rev 0x02: HM: not activated

# sysctl hw.sensors
hw.sensors.1=viasio0, UCH1, volts_dc, 3.47 V
hw.sensors.2=viasio0, UCH2, volts_dc, 2.47 V
hw.sensors.3=viasio0, UCH3, volts_dc, 2.05 V
hw.sensors.4=viasio0, UCH4, volts_dc, 4.68 V
hw.sensors.5=viasio0, UCH5, volts_dc, 12.02 V
hw.sensors.6=viasio0, +3.3V, volts_dc, 3.30 V
hw.sensors.8=viasio0, FAN2, fanrpm, 5314 RPM

Great work Yurchenko!

I don't understand the output (this board doesn't have CPU fan :D), and
as far as I know it has sensor support vma SMBus and VIA VT8235 South
Bridge.

Any pointer to full understanding the sysctl output would be greatly
appreciated.

Regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: Problems with mod_gzip and 3.8

2005-12-13 Thread Juan J.
El mar, 13-12-2005 a las 10:22 +0100, Srebrenko Sehic escribis:
> zlib API was changed between 3.6 and 3.7 which potentially broke all
> external packages depending on zlib.

Ah, after reading mod_gzip doc there's one thing I missed... mod_gzip
doesn't use zlib at all.

Snip from mod_gzip doc:
...
mod_gzip_compress.c (about 3000 lines) contains Kevin Kiley's
implementation of the gzip compression function, the one that 'actually
does the work'.
This part is not dependent on any specific Apache version and (from a
purely technical point of view) might be used by other compression tools
as well (like mod_deflate which currently uses the 'zlib' for
compression).
...

I've verified this from mod_gzip source.

So the problem with mod_gzip cannot be related to any local change in
the zlib provided with OpenBSD.

Well, let's say I'm lost again.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: Problems with mod_gzip and 3.8

2005-12-13 Thread Juan J.
El mar, 13-12-2005 a las 12:01 +0100, Markus Wernig escribis:
> > I'm using php.ini from PHP port, and it's disabled. I've checked it :)
> 
> OK. I'm using php zlib compression on 3.8, plus apache without mod_gzip,
> and it works well.
> 
> just a thought

Thanks you Markus.

It works and it's a nice temporal workaround (but partial, because it
only does compress PHP pages).

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: script

2005-12-13 Thread Juan J.
El mar, 13-12-2005 a las 08:22 -0200, Ricardo Lucas escribis:
> Hi all,
> does anyone knows a script or even a little program that remove all files
> and subdirectories and his respective files from a folder?
> I've read the man of rm and rmdir but seems like they can't do that.

rm -r directoy/

This will delete directory/ and all inside it (subdirectories and
files).

regards,

Juanjo

PS: check 'man rm' again

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: Problems with mod_gzip and 3.8

2005-12-13 Thread Juan J.
El mar, 13-12-2005 a las 11:11 +0100, Markus Wernig escribis:
> Juan J. Martmnez wrote:
> > Hello,
> > 
> > I'm having problems with mod_gzip package and OpenBSD 3.8 (i386).
> 
> Just to go sure: You might want to double-check that php's own zlib
> output compression isn't interfering (output_handler and
> zlib.output_handler/zlib.output_compression in php.ini)

I'm using php.ini from PHP port, and it's disabled. I've checked it :)

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: Problems with mod_gzip and 3.8

2005-12-13 Thread Juan J.
El lun, 12-12-2005 a las 23:48 -0800, Ted Unangst escribis:
> see recent posts to tech about apache 2 and zlib.  probably related.

I'm using Apache from obsd base install chrooted, just the same than
obsd 3.6. I'm not using Apache2. But may be is related.

According to the mail of Srebrenko[1], it may be related to a change in
obsd zlib. If this is true, it broke mod_gzip port too.

After reading mod_gzip source for a while I don't feel like start
hacking it (I don't see zlib related code, so I bet I have no idea about
what I'm doing...).

There's a fix or a workaround for this?

Thanks you Ted for the pointer.

regards,

Juanjo

[1] http://marc.theaimsgroup.com/?l=openbsd-tech&m=113406781822004&w=2

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Problems with mod_gzip and 3.8

2005-12-12 Thread Juan J.
Hello,

I'm having problems with mod_gzip package and OpenBSD 3.8 (i386).

After installing the package and properly configuring it all, it doesn't
work. And without any noticeable error :(

We have here a 3.6 installation working perfectly with mod_gzip and the
same conf: php + mysql and mod_gzip.

I've checked the /mod_gzip_status and it says all it's OK (available and
working).

I've tried to log the mod_gzip response, but nothing (it doesn't log
anything at all).

I've configured mod_gzip to not remove the working files, and I can see
then on /var/www/tmp but... the files ain't compressed.

I have no clues about what it's happening. Someone has experienced
problems with mod_gzip and OpenBSD 3.8?

Any comment will be very appreciated. Thanks you.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: Is there an Unlink Command?

2005-11-28 Thread Juan J.
El lun, 28-11-2005 a las 04:58 -0500, Dave Feustel escribis:
> How do I unlink a previously linked directory name?

With rm (a linked directory is not a directory but a link to a
directory, that's a linked file directory entry).

>From rm(1):

The rm utility attempts to remove the non-directory type files specified
on the command line.[...]

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: OpenBSD's 10th birthday

2005-10-18 Thread Juan J.
El mar, 18-10-2005 a las 03:00 -0600, Theo de Raadt escribis:
> Now it is really OpenBSD's 10th birthday ;)

Felicidades from spain.

Juanjo.

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: gphoto2/gtkam segmentation fault on i386-current

2005-09-25 Thread Juan J.
El dom, 25-09-2005 a las 21:18 +0300, Antti Nykdnen escribis:
> Hi,
> 
> Recently I've experienced (apparently libusb-related) segmentation
> faults when trying to use gphoto2 or gtkam. I'm running a snapshot from
> Sep 23 on i386. The camera I'm trying to access is a Canon Powershot
> A70.

I think this problem is related to PTP support. May be it supports other
protocol, from gphoto2:

...
"Canon PowerShot A70"
"Canon PowerShot A70 (PTP)"
...

AFIK libptp may be broken on OpenBSD. Related to this:

http://marc.theaimsgroup.com/?l=openbsd-ports&m=107050824830096&w=2
http://marc.theaimsgroup.com/?l=openbsd-ports&m=107052766510676&w=2

I have the same issue with a Kodak cam using ptp and after some timple
playing with libptp sources I forgot it :(

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: is there a way to block sshd trolling?

2005-09-25 Thread Juan J.
El vie, 23-09-2005 a las 21:24 -0700, Ray Percival escribis:
> [...]
> > I wonder if it's possible to "fingerprint" these programs.  I actually
> > have a copy of the ssh-scanner that they use.  I got it by looking at
> > the hack logs on a Linux server and going to the same FTP site they
> > used (anonymous ftp even ;).
> I use the blocker script from this article. Seems to work pretty well. I'd 
> just block Linux but I have a few friends who have yet to see the OpenBSD 
> light. 
> http://www.undeadly.org/cgi?action=article&sid=20041231195454&mode=expanded

>From my experience only about 10% of the attackers come back to try
again, so filtering after scanning logs is not worth it you don't have a
huge amount of attacks.

If your sshd_config is ok (AllowUsers is your friend), you're OK with
updates, and you're using good passwords... you're safe. Let'em try.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: SpamAssassin

2005-09-16 Thread Juan J.
El vie, 16-09-2005 a las 14:14 +0800, Robert Storey escribis:
> [...]
> what is apparently missing is the utility sa-learn which is needed to update 
> the Bayesian database. It's not in the path, and I scoured the hard disk with 
> "locate" - it's not there. No man page for sa-learn either.
> [...]
> I'd be happy for any advice on this.

Try with "whereis sa-learn". When you're looking for a binary, whereis
is a nice choice (it doesn't rely on databases that must be updates like
locate does).

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: OpenSSH Patch still missing on Errata

2005-09-12 Thread Juan J.
El lun, 12-09-2005 a las 23:07 +0200, Miroslav Kubik escribis:
> Ok, thanks for your reply anyway. I will advise it to my boss.
> 
> Have a nice day

I know it's not my business, but wtf...

I think product announcements are worth reading, in the case of OpenSSH
4.2 you can check it in the archives:

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

I know other projects have ChangeLog files and other ways to track
versions. In fact I don't know if there's a changelog around for
OpenSSH, I usually check the announce and I evaluate if it's worth
updating or not.

I agree OpenBSD crew has their 'own way to do things' (tm), but without
being a fanatical follower of Theo et al... I bet that's related in some
way to the fact I prefer obsd in my servers intead of something else.

I'm a kinda busy person, but I can stick 5 minutes on reading announces
and replying mails that ain't my business with my limited english :)

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: sendmail and clamd

2005-09-06 Thread Juan J.
El mar, 06-09-2005 a las 15:13 +0200, Cristian Del Carlo escribis:
> Hi list,
> i am planning to use openbsd as mail server with sendmail and clamd as 
> antivirus on intel machine.
> What can i use to connect sendmail and clamd? 
> I know that there are several methods : milter, amavis etc...
> Thanks,

I'm using the milter provided with the clamav port and works pretty fine
for me.

Actually I'm using two milters in the same machine, first is to
interface a bayesian anti-spam filter, and second one is to interface
clamav.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: startkde question

2005-08-23 Thread Juan J.
El mar, 23-08-2005 a las 08:48 -0500, Dave Feustel escribis:
> When I start kde via startkde after login, an instance of 
> xconsole isalso started. This instance doesn't seem to be 
> started in kdeinit. Where is it started from?

I haven't a X installation at hand (I have only obsd acting as server
here), but trying with google I got:

http://archives.neohapsis.com/archives/openbsd/2004-01/0493.html

Google has better memory than me. It may help you.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: sysctl hw.sensors hacking?

2005-08-10 Thread Juan J.
El mii, 10-08-2005 a las 00:33 -0500, Matt Garman escribis:
> [...]
> So does anyone have any suggested readings regarding this part of
> the OpenBSD architecture?  I'm sure google can find plenty of useful
> info, but at this point, I'm not even sure what to search for.  Any
> suggestions would be much appreciated.

I have a EPIA-PD6000E and I'd like to add hw sensors support too.

Both use VIA VT8235 South Bridge, and seems it doesn't works with PCI
interface so viaenv.c doesn't work as base for hacking.

AFAIK it uses a SMBus interface (I've been looking into Linux's
lmsensors), but I don't know which coder from obsd kernel to use as
base.

VT8235 datasheet isn't public. I've asked VIA for it but I got no reply
from them. So right know I've found only lmsensors sources related to
this bridge (check i2c-viapro.c code).

>From this thread:
http://marc.theaimsgroup.com/?l=openbsd-misc&m=112313995621335&w=2

I got the tip of:
http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html

But I haven't got the time to check it already.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: no sound on Dell4550 (soundblaster live, emu)

2005-07-28 Thread Juan J.
El jue, 28-07-2005 a las 09:15 +0200, tony sarendal escribis:
> emu0 at pci2 dev 0 function 0 "Creative Labs SoundBlaster Live" rev 0x00: irq 
> 10
> ac97: codec id 0x83847608 (SigmaTel STAC9708/11)
> ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
> audio0 at emu0
> 
> I can't get any sign of life at all from this one. Even cat'ing a file
> to /dev/audio0 gives me nothing.
> rev 0x00, is that really correct ?
> 
> Any ideas on how to get to the bottom of this is appreciated.

Woh! I think you're another unhappy user of a SB Live! *5.1* (from
DELL). Welcome to the club.

You'll say: what the 5.1? Right! That's a sound card shipped by Dell as
a sb compatible (enhancement of sb live! sic.), works under windows
(it's said, I've not tested it).

Two years ago this card was unsupported by all open source systems I
tried for desktop. Peep google with 'sb live 5.1 dell'.

My solution was: unplug that shit and buy a cheap and supported (REAL)
compatible sb.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: 005_libz.patch - fails to change directory

2005-07-23 Thread Juan J.
El vie, 22-07-2005 a las 20:00 -0600, Todd C. Miller escribis:
> In message <[EMAIL PROTECTED]>
>   so spake Uwe Dippel (udippel):
> 
> > Strange, we had the same thing with the last patch.
> 
> Looks like the main ftp mirror is not updating.  I've left a
> message but it may not get fixed for a while...

Btw the patch info should say "patch -p1 < 020_libz.patch" instead of
-p0 (if you change to /urs/src directory like the previous line says).

Regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: Profiling a milter

2005-07-19 Thread Juan J.
El mar, 19-07-2005 a las 18:24 +0200, Juan J. Martmnez escribis:
> Hello,
> 
> I'm trying to profile a milter.
> 
> I compile and link it with -pg option and all seems OK, but when I run
> the binary I get the message:
> 
> # ./milter
> cannot find atexit, destructors will not be run!

For the record: *you must link vs the profile version of the libraries*

tip:

$ make CFLAGS+=-pg LDFLAGS+=-pg LIBS="-lmilter_p -lpthread_p"

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Profiling a milter

2005-07-19 Thread Juan J.
Hello,

I'm trying to profile a milter.

I compile and link it with -pg option and all seems OK, but when I run
the binary I get the message:

# ./milter
cannot find atexit, destructors will not be run!

The milter itself interfaces bogofilter, so it needs to spawn a process
to scan the messages and to classify then according the result of
bogofilter.

The instances of bogofilter doesn't exit normally (I get zombies and the
output of bogofilter isn't right). This behavior seems produced by the
profiling code added by -pg to the milter (not bogofilter). May be it's
the waitpid function that is not working properly :?

I'd appreciate any pointer about what is happening. There's someone on
the list with experience profiling milters under OpenBSD?

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: C programming question

2005-07-07 Thread Juan J.
El mii, 06-07-2005 a las 13:56 -0400, Michael Shalayeff escribis:
> [...]
> > Those are declarations of pointers to functions.
> > 
> > /* real function */
> > void dumb(int a) { return a; }
> 
> warning: `return' with a value, in function returning void

Obviously dumb must return int, not void.

> [...]
> > Any good book about C should cover this. Look for OOP in C also, it's
> > frequent use pointers to functions + structs to add classes to C.
> 
> perhaps you should read that book first (:

I'd say I must shut up before answer a mail totally off-topic.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: Newbie with Wireless woes

2005-07-06 Thread Juan J.
El sab, 12-03-2005 a las 19:48 -0500, Chris escribis:
> [...]
> I see the hex, but I do not see a dos firmware update utility.  Only a 
> windows based gui.
> 
> Can you show me where you saw the DOS version?

You can use the hostap driver under a Linux box (try KNOPPIX?), and
works (I upgraded a PRISM 2 based card some time ago).

That doc it's pretty straightforward:
http://linux.junsun.net/intersil-prism/

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: C programming question

2005-07-06 Thread Juan J.
El lun, 04-04-2005 a las 11:43 -0700, Matt escribis:
> [...]
> Can someone break down these declarations (if that's what they are)?  Is 
> this a form of typecasting?  Thanks for your help.

Those are declarations of pointers to functions.

/* real function */
void dumb(int a) { return a; }
...

/* here follows a declaration of func pointer */
int (*func_ptr)(int);
int a;

/* assign it */
func_ptr=dumb;

/* use it */
a=func_ptr(123);

Any good book about C should cover this. Look for OOP in C also, it's
frequent use pointers to functions + structs to add classes to C.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: OpenBSD 3.1 and OpenBSD 3.5 pf problems

2005-06-30 Thread Juan J.
El jue, 30-06-2005 a las 09:38 +0200, rinsan@ escribis:
> > On Wednesday 29 June 2005 21.23, rinsan@ wrote:
> >> Hi!
> >>
> >> After switching from OpenBSD 3.1 (with Intel fxp0) to OpenBSD 3.5 (with
> >
> > OpenBSD 3.5 is EOL (see link below) which means you can't expect support
> > for
> > it.
> > The latest release is available at ftp://ftp.su.se/pub/OpenBSD/3.7/i386/
> > Get it and install it.
> > Then please read this URL before you come back here and file a proper
> > error
> > report, http://www.openbsd.org/report.html.
> 
> I tried this setup before 3.5 was EOL:ed (haven't had time to report it
> until now), the company that I work for tries to work with releases that
> has been in use for a while to avoid some of the bleeding-edge bugs. If I
> have some time over this summer and the customer is okay with some
> experimenting with his VPN-tunnel I will try 3.7.

Then you should install 3.7 and move it to 3.7-STABLE. 3.7 has been out
for 2 months and some bugs have been fixed.

If you wanna avoid bleeding edge bugs (and discard bleeding edge
features), you can install 3.6 and move it to 3.6-STABLE. But remember
for 3.6 you'll only have about 5 months of support (it has been released
on November, and each release has a 12 month cycle).

But IMHO obsd development is very progressive and it's not usual to find
bleeding edge bugs, so don't worry to install the newest release and
profit of the 12 month support before upgrading to the next release (if
needed, some systems doesn't need to be up-to-date and you can backport
most important fixes -if needed-).

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: mcopy -s foo a:

2005-06-21 Thread Juan J.
El mar, 21-06-2005 a las 11:39 +0200, Juan J. Martmnez escribis:
>[..]
> May be is related to FAT16 and the extension for long filenames.

Well, now I don't know if floppies have FAT16 or FAT12.

Anyway I think the problem is related to FAT (no bits :D) and long
filename support.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: mcopy -s foo a:

2005-06-21 Thread Juan J.
El mar, 21-06-2005 a las 10:24 +0200, chefren escribis:
>[...]
> I'm trying to copy a file from a mounted directory that contains a file.
> 
> Eh, I forgot to mention that if the filename is shorter no problems arise.

May be is related to FAT16 and the extension for long filenames.

obsd fs support for FAT16 doesn't have log filaname support, but mtools
does.

I've noticed problems while copying files from a Linux box to an obsd
box using long filenames (more than 8 + 3 chars). Simply use short
filenames or use mtools.

Regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: Recommendations for pop3s daemon?

2005-06-15 Thread Juan J.
El mii, 15-06-2005 a las 08:21 -0700, Jeff Simmons escribis:
> Finding myself in need of a POP3S daemon, I headed over to the ports tree
> to get the old standar UW, and noticed that there are several of the
> little devils hiding out in there.
> 
> Anyone have any recommendations? Favorites? Pros and cons? Reasons to use
> something other than UW? Any information would be greatly appreciated.

popa3d is installed in your base, just install stunnel port and you're
done.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: smtpd and smtpfwdd - and mailserver

2005-05-18 Thread Juan J.
El mii, 18-05-2005 a las 15:58 +0200, Willy Skjfveland escribis:
> [...]
> Something else?
> [...]

You might add a port if you need to get the mail from an insecure
network (such as Internet): stunnel.

In that way the wonderful popa3d becomes a nice pop3s server and your
passwords (and data) keep private.

regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/



Re: Mail Server Architecture

2005-05-10 Thread Juan J.
El mar, 10-05-2005 a las 14:31 -0700, Claus Assmann escribis:
> On Tue, May 10, 2005, L. V. Lammert wrote:
> 
> > 1) Vilter/Milter - using sendmail to scan incoming messages in realtime.
> 
> > Con:Possibility of locking up sendmail daemon; performance hit 
> > for large messages.
> 
> How does a milter lock up the sendmail daemon?
> 
> 1. The sendmail daemon doesn't contact any milter.
> 2. The sendmail server processes establish timeouts. If you set
>them too high, it's not the milters fault.

Lemme add: most milters allow to setup a message size limit.

Regards,

Juanjo

-- 
Desarrollo y sistemas: http://www.usebox.net/
  Pagina Personal: http://www.usebox.net/jjm/