Re: lpd printing

2010-05-08 Thread Predrag Punosevac
On 2010-05-07, Chris Bennett ch...@bennettconstruction.biz wrote:
 On 05/07/10 16:59, Frank Bax wrote:
 I've never printed from my OpenBSD desktop.
 I've used lpd on Windows to print to HP printers with HP JetDirect.

 I read the recent thread about lpd/postscript.

 Will I be able to use lpd to print to any HP JetDirect printer?

 I'm looking at getting an HP 1518ni colour laser.

 Does HP postscript level 3 emulation qualify as postscript support


Yes, it does. You do not need any drivers for that printer as long as 
you send only PostScript files. You are almost good to print with 
default /etc/printcap file

lp|local line printer:\
:lp=/dev/lp:sd=/var/spool/output:lf=/var/log/lpd-errs:

Just replace local line printer with the name of your printer and 
/dev/lp with the device node to which printer is attached.


 Frank


 If your printer is postscript, LPRng + apsfilter is a simple way to 
 install. It is also very lightweight.

Apsfilter works with LPR from the base as well. Unless he is planning
to install 500 printers which will be used by 5000 different users 
following complex policies I see no advantage in installing LPRng.

Apsfilter is good magic filter which will allow him to forget about the
types of the files which he is sending to printer as it will
automatically call appropriate filter which will convert any files to 
PostScript.


The same can be accomplished with much more modern program (foomatic 
filter) in which case /etc/printcap will look something like

lp|Lj4L|HP Lj4L:\
:lp=/dev/lpt0:\
:af=/etc/foomatic/HP-LaserJet_4L-ljet4.ppd:\
:if=/usr/local/bin/foomatic-rip:\
:sh:sd=/var/spool/output:\
:lf=/var/log/lpd-errs:

Obviously HP-LaserJet_4L-ljet4.ppd is PostScript description file which
can be generated with foomatic-fip but is also usually supplied by 
manufacturers on the installation CD.

Cheers,
Predrag



Re: low httpd performance. Apache 2.2 as default? never? *sighs

2010-05-08 Thread Pekka Niiranen

Tomas Bodzar wrote:

Are you able to read? At least this
http://www.openbsd.org/faq/faq1.html#Included and snippet from it :

# Our improved and secured version of the Apache 1.3 web server. The
OpenBSD team has added default chrooting, privilege revocation, and
other security-related improvements. Also includes mod_ssl and DSO
support.



These all great additions. I just wish Subversion would someday
be compatible with those.


so version number doesn't mean that it's 6 years old or that it's crappy.

On Sun, May 2, 2010 at 5:31 PM, Dexter Tomisson dexterto...@gmail.com wrote:

Hi.

OpenBSD's stock httpd is very slow and outdated. It is about 6 years old.
Almost an abandonware.
Is it that impossible to see OpenBSD coming with (chroot'ed) Apache 2.2.x by
the default?
That would be great!

The license problem would be solved by discussing it with the Apache
community, imho.

http://old.nabble.com/OpenBSD---the-Apache-license-problem.-Why--td28387885.html

Thanks




Re: State of multiprocessing and multithreading in OpenBSD

2010-05-08 Thread Thomas Pfaff
On Thu, 06 May 2010 10:03:28 -0700
Noah Pugsley noa...@bendtel.com wrote:

 Tony Abernethy wrote:
  Stas Miasnikou wrote:
  Marco Peereboom wrote:
  Wouldn't it be adorable if people learned to program FSMs instead of
  java in those fancy universities?
  Seconded.
 
  Do you seriously expect programmers to learn to program?
  
 Finite Sex Machine?
 

No, the Flying Spaghetti Monster.



Re: Adding a route for chrooted Apache/PHP

2010-05-08 Thread Joachim Schipper
On Fri, May 07, 2010 at 11:23:12AM +0200, Alexander Farber wrote:
 (...) I have to send a HTTP GET
 request from one of my scripts to one host (to appsmail.ru).
 
 So I've added the file /var/www/etc/hosts:
 
   127.0.0.1   localhost
   94.100.188.5appsmail.ru www.appsmail.ru

Why did you hardcode the IP here, and then hardcode it below again? Let
the resolver do its job.

 And also have changed this line in /var/www/conf/php.ini:
 
   allow_url_fopen = On

You could avoid setting this dangerous option by installing and using
php5-curl.

 Unfortunately I still get the error:
 
 Warning: file_get_contents(http://94.100.188.5/robots.txt)
 [function.file-get-contents]: failed to open stream: No route to host
 in /htdocs/mailru/index.php on line 18
 
 This is because the default route (or at least the route to appsmail.ru)
 is unknown to the chrooted Apache. (Script works ok at the console).

Eh... the routing table is per-kernel, and does not need filesystem
access. No route to host is most likely a wrong error message; please
show the code.

I don't *think* this is the reason, but note that
http://94.100.188.5/robots.txt leads to a 404.

I'm sorry I don't have a solution - just trying to fix some
misunderstandings here.

Joachim



PRESTAMO

2010-05-08 Thread Pr�stamos Latiwoter Limited Agencia
Hola

Yo soy el Seqor Smirth Rubort Director LATIWOTER servicios financieros.
Estamos certificados pristamo prestamista de pristamos ofrecen pristamos a 
empresas, pristamos personales, criditos buenos y malos pristamos garantizados 
pristamos en lmnea para los inquilinos de todo el mundo del cridito mal y el 
bien o insolvencia de, el precio del tipo de interis muy baja del 3%. Estos 
pristamos se ofrecen en el ambito de 3.000,00  a  10,000,000.00. Ofrecemos 
pristamos a las personas graves. Asm que si usted esta interesado en obtener un 
pristamo que esta en contacto con nosotros vma e-mail: 
(latiwoter_loans_f...@live.com)

En cuanto a la forma.

Have a nice day.

Recuerdos.
Mr.Rubort Smirth
Pristamos Latiwoter Limited Agencia
E-mail: latiwoter_loans_f...@live.com



Re: low httpd performance. Apache 2.2 as default? never? *sighs

2010-05-08 Thread John Wright
On Sat, May 08, 2010 at 10:22:20AM +0300, Pekka Niiranen wrote:
 These all great additions. I just wish Subversion would someday
 be compatible with those.

Subversion is awful.  Try git, it supports http without having to
install fancy apache modules.



Intel Dynamic Video Memory Technology with 4.7

2010-05-08 Thread Jan Stary
I am running a recent 4.7-current on an Intel D510MO motherboard.
http://www.intel.com/products/desktop/motherboards/D510MO/D510MO-overview.htm
See full dmesg below.

This comes with
vga1 at pci0 dev 2 function 0 Intel Pineview Integrated Graphics Controller
rev 0x02
intagp at vga1 not configured

I cannot run X without configuring it. With zero configuration,
the device is correctly recognized as 'intel', but /var/log/Xorg.0.log says

(--) checkDevMem: using aperture driver /dev/xf86
(--) Using wscons driver on /dev/ttyC4 in pcvt compatibility mode (version
3.32)

X.Org X Server 1.6.5
Release Date: 2009-10-11
X Protocol Version 11, Revision 0
Build Operating System: OpenBSD 4.7 i386
Current Operating System: OpenBSD box.stare.cz 4.7 GENERIC.MP#0 i386
Build Date: 06 May 2010  10:47:41PM

Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Sat May  8 12:52:52 2010
(II) Loader magic: 0x7ec0
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 5.0
X.Org XInput driver : 4.0
X.Org Server Extension : 2.0
(II) Loader running on openbsd
(--) PCI:*(0:0:2:0) 8086:a001:8086:4f4d Intel Pineview Integrated Graphics
Controller rev 2, Mem @ 0xf020/524288, 0xe000/268435456,
0xf010/1048576, I/O @ 0x20c0/8
(==) Using default built-in configuration (21 lines)
(==) --- Start of built-in configuration ---
Section Device
Identifier  Builtin Default intel Device 0
Driver  intel
EndSection
Section Screen
Identifier  Builtin Default intel Screen 0
Device  Builtin Default intel Device 0
EndSection
Section Device
Identifier  Builtin Default vesa Device 0
Driver  vesa
EndSection
Section Screen
Identifier  Builtin Default vesa Screen 0
Device  Builtin Default vesa Device 0
EndSection
Section ServerLayout
Identifier  Builtin Default Layout
Screen  Builtin Default intel Screen 0
Screen  Builtin Default vesa Screen 0
EndSection
(==) --- End of built-in configuration ---
(==) ServerLayout Builtin Default Layout
(**) |--Screen Builtin Default intel Screen 0 (0)
(**) |   |--Monitor default monitor
(**) |   |--Device Builtin Default intel Device 0
(==) No monitor specified for screen Builtin Default intel Screen 0.
Using a default monitor configuration.
(**) |--Screen Builtin Default vesa Screen 0 (1)
(**) |   |--Monitor default monitor
(**) |   |--Device Builtin Default vesa Device 0
(==) No monitor specified for screen Builtin Default vesa Screen 0.
Using a default monitor configuration.
(==) Not automatically adding devices
(==) Not automatically enabling devices
(==) FontPath set to:
/usr/X11R6/lib/X11/fonts/misc/,
/usr/X11R6/lib/X11/fonts/TTF/,
/usr/X11R6/lib/X11/fonts/OTF,
/usr/X11R6/lib/X11/fonts/Type1/,
/usr/X11R6/lib/X11/fonts/100dpi/,
/usr/X11R6/lib/X11/fonts/75dpi/
(==) ModulePath set to /usr/X11R6/lib/modules
(==) |--Input Device default pointer
(==) |--Input Device default keyboard
(==) The core pointer device wasn't specified explicitly in the layout.
Using the default mouse configuration.
(==) The core keyboard device wasn't specified explicitly in the layout.
Using the default keyboard configuration.
(II) System resource ranges:
[0] -1  0   0x000f - 0x000f (0x1) MX[B]
[1] -1  0   0x000c - 0x000e (0x3) MX[B]
[2] -1  0   0x - 0x0009 (0xa) MX[B]
[3] -1  0   0x - 0x (0x1) IX[B]
[4] -1  0   0x - 0x00ff (0x100) IX[B]
(II) LoadModule: extmod
(II) Loading /usr/X11R6/lib/modules/extensions//libextmod.so
(II) Module extmod: vendor=X.Org Foundation
compiled for 1.6.5, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: dbe
(II) Loading /usr/X11R6/lib/modules/extensions//libdbe.so
(II) Module dbe: vendor=X.Org Foundation
compiled for 1.6.5, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: glx
(II) Loading 

Re: Intel Dynamic Video Memory Technology with 4.7

2010-05-08 Thread Stuart Henderson
On 2010-05-08, Jan Stary h...@stare.cz wrote:
 I am running a recent 4.7-current on an Intel D510MO motherboard.
 http://www.intel.com/products/desktop/motherboards/D510MO/D510MO-overview.htm
 See full dmesg below.

 This comes with
 vga1 at pci0 dev 2 function 0 Intel Pineview Integrated Graphics Controller
 rev 0x02
 intagp at vga1 not configured

...

 Is there something I should try or test?

http://www.mail-archive.com/t...@openbsd.org/msg02383.html



Re: OpenBSD on Acer Aspire EasyStore H340?

2010-05-08 Thread Stuart Henderson
On 2010-05-07, Matthew Dempsky matt...@dempsky.org wrote:
 I was curious if anyone had tried running OpenBSD on an Acer Aspire
 EasyStore H340.  I've been looking at home NAS gear lately, and it
 seemed like a pretty nice solution (small, reasonable price, 4
 hot-swappable toolless SATA bays): http://www.amazon.com/dp/B001WGX15W

Check that there's a way to access the console, WHS systems are
generally not allowed to be supplied with standard monitor/keyboard
connectors.

Other than that, it should be a fairly standard PC.



Re: Intel Dynamic Video Memory Technology with 4.7

2010-05-08 Thread Jan Stary
On May 08 12:07:10, Stuart Henderson wrote:
 On 2010-05-08, Jan Stary h...@stare.cz wrote:
  I am running a recent 4.7-current on an Intel D510MO motherboard.
  http://www.intel.com/products/desktop/motherboards/D510MO/D510MO-overview.htm
  See full dmesg below.
 
  This comes with
  vga1 at pci0 dev 2 function 0 Intel Pineview Integrated Graphics 
  Controller
  rev 0x02
  intagp at vga1 not configured
 
 ...
 
  Is there something I should try or test?
 
 http://www.mail-archive.com/t...@openbsd.org/msg02383.html

I tested this (on an INTELDRM_GEM kernel), but it made no difference.
Same error; Xorg.0.log follows.


(--) checkDevMem: using aperture driver /dev/xf86
(--) Using wscons driver on /dev/ttyC4 in pcvt compatibility mode (version 3.32)

X.Org X Server 1.6.5
Release Date: 2009-10-11
X Protocol Version 11, Revision 0
Build Operating System: OpenBSD 4.7 i386 
Current Operating System: OpenBSD box.stare.cz 4.7 INTELGEM#0 i386
Build Date: 06 May 2010  10:47:41PM
 
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Sat May  8 18:50:39 2010
(II) Loader magic: 0x7ec0
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 5.0
X.Org XInput driver : 4.0
X.Org Server Extension : 2.0
(II) Loader running on openbsd
(--) PCI:*(0:0:2:0) 8086:a001:8086:4f4d Intel Pineview Integrated Graphics 
Controller rev 2, Mem @ 0xf020/524288, 0xe000/268435456, 
0xf010/1048576, I/O @ 0x20c0/8
(==) Using default built-in configuration (21 lines)
(==) --- Start of built-in configuration ---
Section Device
Identifier  Builtin Default intel Device 0
Driver  intel
EndSection
Section Screen
Identifier  Builtin Default intel Screen 0
Device  Builtin Default intel Device 0
EndSection
Section Device
Identifier  Builtin Default vesa Device 0
Driver  vesa
EndSection
Section Screen
Identifier  Builtin Default vesa Screen 0
Device  Builtin Default vesa Device 0
EndSection
Section ServerLayout
Identifier  Builtin Default Layout
Screen  Builtin Default intel Screen 0
Screen  Builtin Default vesa Screen 0
EndSection
(==) --- End of built-in configuration ---
(==) ServerLayout Builtin Default Layout
(**) |--Screen Builtin Default intel Screen 0 (0)
(**) |   |--Monitor default monitor
(**) |   |--Device Builtin Default intel Device 0
(==) No monitor specified for screen Builtin Default intel Screen 0.
Using a default monitor configuration.
(**) |--Screen Builtin Default vesa Screen 0 (1)
(**) |   |--Monitor default monitor
(**) |   |--Device Builtin Default vesa Device 0
(==) No monitor specified for screen Builtin Default vesa Screen 0.
Using a default monitor configuration.
(==) Not automatically adding devices
(==) Not automatically enabling devices
(==) FontPath set to:
/usr/X11R6/lib/X11/fonts/misc/,
/usr/X11R6/lib/X11/fonts/TTF/,
/usr/X11R6/lib/X11/fonts/OTF,
/usr/X11R6/lib/X11/fonts/Type1/,
/usr/X11R6/lib/X11/fonts/100dpi/,
/usr/X11R6/lib/X11/fonts/75dpi/
(==) ModulePath set to /usr/X11R6/lib/modules
(==) |--Input Device default pointer
(==) |--Input Device default keyboard
(==) The core pointer device wasn't specified explicitly in the layout.
Using the default mouse configuration.
(==) The core keyboard device wasn't specified explicitly in the layout.
Using the default keyboard configuration.
(II) System resource ranges:
[0] -1  0   0x000f - 0x000f (0x1) MX[B]
[1] -1  0   0x000c - 0x000e (0x3) MX[B]
[2] -1  0   0x - 0x0009 (0xa) MX[B]
[3] -1  0   0x - 0x (0x1) IX[B]
[4] -1  0   0x - 0x00ff (0x100) IX[B]
(II) LoadModule: extmod
(II) Loading /usr/X11R6/lib/modules/extensions//libextmod.so
(II) Module extmod: vendor=X.Org Foundation
compiled for 1.6.5, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: dbe
(II) Loading /usr/X11R6/lib/modules/extensions//libdbe.so
(II) Module dbe: vendor=X.Org Foundation
compiled for 1.6.5, module 

Re: Intel Dynamic Video Memory Technology with 4.7

2010-05-08 Thread Jan Stary
On May 08 17:53:25, Robert wrote:
 On Sat, 8 May 2010 13:06:39 +0200
 Jan Stary h...@stare.cz wrote:
 
  I am running a recent 4.7-current on an Intel D510MO motherboard.
  http://www.intel.com/products/desktop/motherboards/D510MO/D510MO-overview.htm
 
  vga1 at pci0 dev 2 function 0 Intel Pineview Integrated Graphics
 
 
 Afaik,
 that is a GMA500, PowerVR based and not supported by the intel driver.
 So vesa is all you get with those, as there is no video-psb driver in
 xenocara.

It's a GMA3150.



Re: Adding a route for chrooted Apache/PHP

2010-05-08 Thread Alexander Farber
Hello,

thanks for your replies. The reason for my PHP script failure

  Warning: file_get_contents(http://94.100.188.5/robots.txt)
 [function.file-get-contents]: failed to open stream: No route to host

have been 1) missing /var/www/etc/resolv.conf (the hosts I had already)
and 2) I forgot that I had an anti-PHP rule in pf.conf:

  # don't allow PHP-worms to propagate
  block out quick log on $ext_if proto { tcp, udp } all user www

After those changes (and the following lines in /var/www/conf/php.ini)

  allow_url_fopen = On
  # needed for phpBB's template editing:
  suhosin.post.max_value_length = 6500
  suhosin.request.max_value_length = 6500

my PHP script works fine under chrooted Apache again.

(Yes, the PHP's error message about route had been misleading :-)

Regards
Alex



Re: OpenBSD 4.6 + HD Audio

2010-05-08 Thread Mateusz Gierblinski
Hello

Thx for help guys. XMMS outputs sound. The only thing I forgot to do is to
install xmms-mp3 package.

Mateusz


2010/5/1 Jacob Meuser jake...@sdf.lonestar.org

 On Fri, Apr 30, 2010 at 05:26:49PM +0200, Mateusz Gierblinski wrote:
  Hi Guys
 
  I have recently installed OpenBSD 4.6 on my desktop computer. Everything
  works fine expect for audio. I would like to use xmms or audacious to let
  some notes get out of my boxes, but the problem is they seem not to work.
  The only thing thats works is mplayer.

 http://www.openbsd.org/faq/faq13.html#audioprob

 yes, believe it or not, there is a FAQ entry exactly for audio problems.

 please read it.

  Here's my configuration:
 
  $ audioctl -f /dev/audio

 btw, audioctl output, when nothing is using the soundcard, and you aren't
 trying to set anything with audioctl, is useless 99.% of the time.

  How can I solve this?

 the URL above will give you guidance.

 and of course, seem not to work does not in any way explain what's
 wrong.  maybe you got corrupted packages/binaries and it has nothing to
 do with the hardware.  I don't know, because you didn't explain what
 they seem not to work means.

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



Dmesg for Acer Aspire 7736Z-4015

2010-05-08 Thread Bryan
I just got this from Amazon.com for around 575 USD.  I am running
-current (28 april 2010)

X works great, as I made sure that I had the intel integrated graphics
(vice the nVidia graphics).  It has 4 GB of RAM, but I appear to be
missing a little bit, the last laptop I had used 3.5 GB...

the Fn+bright/dim doesn't work, but the nifty little button by the
touchpad manually turns the touchpad off, which is great. also, the
button to turn off the wireless works as well.

Also the webcam doesn't work, but I care not...  athn(4) works...  out
of the box even!

I have supplied the dmesg, pcidump, and usbdevs.  I can supply the
acpidump, the apm works, and I can set hw.setperf from 1.2 ghz to
2.2 ghz...

For the price, you get a 1600x900 display, and for 575 USD, you can't beat it...


If you have any other questions or need any other info... please let me know.


Regards,
Bryan


OpenBSD 4.7-current (GENERIC.MP) #560: Wed Apr 28 11:55:01 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i38
6/compile/GENERIC.MP
cpu0: Pentium(R) Dual-Core CPU T4400 @ 2.20GHz (GenuineIntel
686-class) 2.20 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,XSAVE
real mem  = 3145064448 (2999MB)
avail mem = 3050921984 (2909MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/09/09, BIOS32 rev. 0 @
0xfd8f0, SMBIOS rev. 2.5 @ 0xbbac (45 entries)
bios0: vendor Phoenix Technologies LTD version V2.04 date 12/09/2009
bios0: Acer Aspire 7736
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET MCFG SLIC APIC BOOT SSDT SSDT
acpi0: wakeup devices P0P1(S4) USB0(S3) USB1(S3) USB2(S3) USBR(S3)
EHC1(S3) USB3(S3) USB4(S3) USB5(S3) EHC2(S3) HDEF(S3) PXSX(S5)
GLAN(S5) LID0(S3) SLPB(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Pentium(R) Dual-Core CPU T4400 @ 2.20GHz (GenuineIntel
686-class) 2.20 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,XSAVE
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 13 (P0P1)
acpiprt2 at acpi0: bus 2 (RP01)
acpiprt3 at acpi0: bus 3 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus 4 (RP05)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, C1, PSS
acpicpu1 at acpi0: C2, C1, PSS
acpitz0 at acpi0: critical temperature 101 degC
acpitz1 at acpi0: critical temperature 101 degC
acpibat0 at acpi0: BAT0 model AS07B31 serial   170 type LION oem 4f594e4153
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: SLPB
acpivideo0 at acpi0: VGA_
acpivout0 at acpivideo0: CRT_
acpivout1 at acpivideo0: LCD_
acpivout2 at acpivideo0: TV0_
acpivout3 at acpivideo0: DVI_
acpivideo1 at acpi0: GFX0
acpivout4 at acpivideo1: DD01
acpivout5 at acpivideo1: DD02
acpivout6 at acpivideo1: DD03
bios0: ROM list: 0xc/0xfe00! 0xd/0x1000 0xd1200/0x1000
cpu0: Enhanced SpeedStep 2195 MHz: speeds: 2200, 1600, 1200 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x09
vga1 at pci0 dev 2 function 0 Intel GM45 Video rev 0x09
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 2 int 16 (irq 11)
drm0 at inteldrm0
Intel GM45 Video rev 0x09 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 11)
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 2
int 20 (irq 11)
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 2
int 20 (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 82801I HD Audio rev 0x03:
apic 2 int 21 (irq 10)
azalia0: codecs: Realtek ALC888, ATT/Lucent/0x1040, Intel/0x2802,
using Realtek ALC888
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: apic 2
int 16 (irq 11)
pci1 at ppb0 bus 2
bge0 at pci1 dev 0 function 0 Broadcom BCM5784 rev 0x10, BCM5784 A1
(0x5784100): apic 2 int 16 (irq 11), address 00:26:2d:82:c7:73
brgphy0 at bge0 phy 1: BCM5784 10/100/1000baseT PHY, rev. 4
ppb1 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: apic 2
int 17 (irq 11)
pci2 at ppb1 bus 3
athn0 at pci2 dev 0 function 0 Atheros AR9281 rev 0x01: apic 2 int
17 (irq 11), address c4:17:fe:81:ea:1d
athn0: AR9280 rev 2 (2T2R), ROM rev 22
ppb2 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x03: apic 2
int 16 (irq 11)
pci3 at ppb2 bus 4
uhci2 at pci0 dev 29 

PMS DE MÉXICO LO INVITA A PARTICIPAR: SEMINARIO DE ALMACENES E INVENTARIOS PARA MEJOR CONTROL

2010-05-08 Thread Elia Sandoval
PMS de Mixico. lo invita al excelente seminario:
Estrategias y Ticnicas de Supervisisn y Organizacisn de
Almacenes e Inventarios
Mixico D.F. 24 De Mayo 2010

Una sptima ejecucisn en la cadena de suministro comienza con planeacisn
estratigica y procesos de negocio definidos. Los elementos de la cadena,
bien administrados apoyan la operacisn logmstica. El resguardo de
materiales resulta mas eficiente cuando va de la mano de conceptos
aplicados en concordancia con la estrategia del negocio.

Objetivos del seminario:

-Comprender el proceso de administracisn y su influencia en el almacin.
-Aplicar la Ley de Pareto para eficientar la confiabilidad de los
registros operativos.
-Identificar los principios de administracisn de inventarios y los
sistemas de reposicisn mas comunes.
-Aplicar conceptos en ejercicios y casos practicos.

Resultados:

Relacionar la importancia estratigica del almacin conforme los objetivos
del negocio.
Ubicar el papel de Planeacisn, Compras, Proveedores e Inventarios dentro
de la Cadena de Suministro
Aplicacisn practica de conceptos en ejercicios y dinamicas.

Dirigido a:

Responsables de Logmstica, Inventarios, Almacin, Planeadores de
materiales y Encargados de abastecimiento o compra de materiales.

Mayores informes responda este correo electrsnico con los siguientes
datos.

Empresa:
Nombre:
Telifono:
Email:
Nzmero de Interesados:

Y en breve le haremos llegar la informacisn completa del evento.
O bien comunmquese a nuestros telifonos un ejecutivo con gusto le
atendera.

Tels. (33) 8851-2365, (33) 8851-2741, (33)3125-4658.

Reciba un cordial saludo.

Este Mensaje ha sido enviado a [Direccisn email] como usuario de Pms de
Mixico o bien un usuario le refiris para recibir este boletmn.
Como usuario de Pms de Mixico, en este acto autoriza de manera expresa
que Pms de Mixico le puede contactar vma correo electrsnico u otros
medios. Si usted ha recibido este mensaje por error, haga caso omiso de
el y reporte su cuenta respondiendo este correo con el subject
BAJAALMACEN
Unsubscribe to this mailing list, reply a blank message with the subject
UNSUBSCRIBE ALMACEN
Tenga en cuenta que la gestisn de nuestras bases de datos es de suma
importancia y no es intencisn de la empresa la inconformidad del receptor.



Curso Presencial y a Distancia

2010-05-08 Thread Sociedad Argentina de Psicotrauma - SAPsi
Si no puede ver este email visite www.psicotrauma.org.ar/cursopsico2.htm
Si no quiere recibir mas informacion por favor haga click en
http://web.enviodemails.com/remover.asp?il=inapsi

CURSO ESPECIALIZACION EN PSICOTRAUMA E INTERVENCION PSICOLOGICA EN
SITUACIONES CRITICAS INDIVIDUALES Y COLECTIVAS
Organizado por la Sociedad Argentina de Psicotrauma (SAPsi) y auspiciado por
el Centro de Atencion del Trauma Psiquico y el Estres Traumatico de la
Facultad de Medicina de la Universidad de Buenos Aires (UBA)
Carga Horaria: 512 Horas Catedra desde el 7 de Mayo al 17 de Diciembre
(Tercer Viernes de cada mes)
visite www.psicotrauma.org.ar/cursopsico2.htm

Director
Dr. Daniel L. Mosca
Director Asociado
Dr. Ruben Lescano
Coordinadores Docentes
Lic. Eduardo Cazabat, Lic. Liliana Sanchez, Lic. Juliana Lanza

Modalidad a Distancia Disponible
Material en CD de clases teoricas y practicas.
Material Teorico y Bibliografia en CD.
Tutoriales y  Supervisiones por Foro y Examenes on-line
Duracion:
Desde el 10 de Mayo al 14 de Diciembre de 2010

Informes e Inscripcion

Telefax (5411) 4903-0493
Campichuelo 215 C1405BOA
Ciudad de Buenos Aires - Argentina
i...@psicotrauma.org.ar
www.psicotrauma.org.ar



help configuring pf: one net can access other but not vice versa

2010-05-08 Thread Sviatoslav Chagaev
Hello,

I have the following network configuration:

$ext_if -- wired interface, connected to my ISP's network, with a real
IP address, visible from the Intertubes.

$int_if -- wired interface, to which comps on my home LAN are connected

$wifi_if -- wifi interface, working in host ap mode, free-for-all

I've set up two NATs so that comps on $int_if:network and
$wifi_if:network could access the Intertubes.

Now I want the following:
so that comps from $int_if:network could access $wifi_if:network (say,
ssh to comps over there) but not vice versa.

How do I do this?

Everything I try either ends up blocking all traffic or allowing
traffic both initiated from $int_if:network to $wifi_if:network and
vice versa in a strange way: only every second response gets to
destination, i.e. I see ping like:
seq_num: 2
seq_num: 4
...etc

Here's my current config file (with many failed attempts commented out),
system is 4.5:

#
# See pf.conf(5) for syntax and examples; this sample ruleset uses
# require-order to permit mixing of NAT/RDR and filter rules.
# Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
# in /etc/sysctl.conf if packets are to be forwarded between interfaces.

ext_if='fxp0'
int_if='sis0'
wifi_if='ral0'

# Limit speed on wifi_if to 2 megabits
#altq on $wifi_if cbq bandwidth 2Mb queue std
#queue std bandwidth 100% cbq(default)

# block return in all
# block return out all

set require-order no
set skip on lo
scrub in

# NAT
nat on $ext_if from $int_if:network to any - $ext_if
nat on $ext_if from $wifi_if:network to any - $ext_if

# NAT/filter rules and anchors for ftp-proxy(8)
#nat-anchor ftp-proxy/*
#rdr-anchor ftp-proxy/*
#rdr pass on ! egress proto tcp to port ftp - 127.0.0.1 port 8021
#anchor ftp-proxy/*
#pass out proto tcp from $proxy to any port ftp

# Filter for $ext_if
block return in on $ext_if
pass in on $ext_if proto tcp from any to any port { www, 222 }

# Filter for $wifi_if
#block return in on $wifi_if
#pass in quick on $wifi_if from any to $wifi_if:network
#pass in on $wifi_if from $wifi_if:network to { ! $wifi_if, ! $int_if:network }
#pass in quick on $wifi_if from $int_if:network to any
#block return in on $int_if from $wifi_if:network to any
#block return in on $wifi_if from any to { $wifi_if, $int_if:network }

antispoof log quick for $ext_if
antispoof log quick for $int_if
antispoof log quick for $wifi_if



Re: help configuring pf: one net can access other but not vice versa

2010-05-08 Thread Jussi Peltola
On Sun, May 09, 2010 at 01:59:16AM +0300, Sviatoslav Chagaev wrote:
 Hello,
 
 I have the following network configuration:
 
 $ext_if -- wired interface, connected to my ISP's network, with a real
 IP address, visible from the Intertubes.
 
 $int_if -- wired interface, to which comps on my home LAN are connected
 
 $wifi_if -- wifi interface, working in host ap mode, free-for-all
 
 I've set up two NATs so that comps on $int_if:network and
 $wifi_if:network could access the Intertubes.
 
 Now I want the following:
 so that comps from $int_if:network could access $wifi_if:network (say,
 ssh to comps over there) but not vice versa.
 
 How do I do this?
 
 Everything I try either ends up blocking all traffic or allowing
 traffic both initiated from $int_if:network to $wifi_if:network and
 vice versa in a strange way: only every second response gets to
 destination, i.e. I see ping like:
 seq_num: 2
 seq_num: 4
 ...etc
 
 Here's my current config file (with many failed attempts commented out),
 system is 4.5:
 
 #
 # See pf.conf(5) for syntax and examples; this sample ruleset uses
 # require-order to permit mixing of NAT/RDR and filter rules.
 # Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
 # in /etc/sysctl.conf if packets are to be forwarded between interfaces.
 
 ext_if='fxp0'
 int_if='sis0'
 wifi_if='ral0'
 
 # Limit speed on wifi_if to 2 megabits
 #altq on $wifi_if cbq bandwidth 2Mb queue std
 #queue std bandwidth 100% cbq(default)
 
 # block return in all
 # block return out all
 
 set require-order no

 set skip on lo
 scrub in
 
 # NAT
 nat on $ext_if from $int_if:network to any - $ext_if
 nat on $ext_if from $wifi_if:network to any - $ext_if
 
 # NAT/filter rules and anchors for ftp-proxy(8)
 #nat-anchor ftp-proxy/*
 #rdr-anchor ftp-proxy/*
 #rdr pass on ! egress proto tcp to port ftp - 127.0.0.1 port 8021
 #anchor ftp-proxy/*
 #pass out proto tcp from $proxy to any port ftp
 
 # Filter for $ext_if
 block return in on $ext_if
 pass in on $ext_if proto tcp from any to any port { www, 222 }

this is unnecessarily broad. to $ext_if would be adequate.

To do what you want to do, I'd write something like the following:

set block-policy return

antispoof quick for { $int_if, $wifi_if, $ext_if }

block all

pass out on $ext_if
pass out on $wifi_if proto tcp from $int_if:network to $wifi_if:network port ssh
pass in on $ext_if proto tcp to $ext_if port { www, 222 }
pass in on $int_if
pass in on $wifi_if



Re: Adding a route for chrooted Apache/PHP

2010-05-08 Thread Stuart Henderson
On 2010-05-08, Alexander Farber alexander.far...@gmail.com wrote:
 (Yes, the PHP's error message about route had been misleading :-)

This (EHOSTUNREACH) is the usual error when something is blocked by PF.



athn0 fails to connect to Motorola Droid wireless tethering

2010-05-08 Thread Bryan
I got this new Acer Apsire laptop and it has an athn(4) wireless in it...

I am currently using this to connect to my home network.

athn0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr c4:17:fe:81:ea:1d
priority: 4
groups: wlan egress
media: IEEE802.11 autoselect (DS1 mode 11g)
status: active
ieee80211: nwid Olympus chan 6 bssid 00:1d:7e:bb:bb:ba 51dB
wpapsk 0xdeadbeef wpaprotos wpa1,wpa2 wpaakms psk wpaciphers ccmp
wpagroupcipher tkip
nwid POTHUKUCHY chan 6 bssid 00:1b:2f:df:5c:16 8dB 54M
privacy,short_preamble,short_slottime
nwid Olympus chan 6 bssid 00:1d:7e:ba:5d:f0 51dB 54M
privacy,short_preamble,short_slottime
nwid Perez5 chan 11 bssid 00:21:29:d0:8d:d7 7dB 54M
privacy,short_slottime
nwid TekChic chan 2 bssid 00:22:6b:58:45:9a 32dB 54M
privacy,short_slottime
nwid 2WIRE963 chan 1 bssid 00:23:51:10:82:c1 17dB 54M
privacy,short_preamble,short_slottime
lladdr 08:00:25:fe:ee:ca 60dB 54M
ibss,short_preamble,short_slottime cache
inet 192.168.1.16 netmask 0xff00 broadcast 192.168.1.255

I bought a Droid phone, and put Cyanogenmod on it, which allows for
wireless tethering from the laptop to the phone.  It has access
permission turned off, no encryption (testing purposes only, but it
only has WEP)

When I do a scan of the wireless in the area, I get the output you see
above.  The droid is on, with tethering enabled.  The nwid is
free_net.  the lladdr entry is the Droid, but I can't connect to
it.  There is a DHCP on the phone and when I connect using a windows
box, it sees the nwid in the wireless survey, connects and receives an
IP, and I'm able to surf web and network with no issues.  With
-current (apr 28) , athn0 keeps saying no link. sleeping.
I'm adding the nwid, and I set the mode to 11b, as that is what is
being used by the phone.  There is no setting to hide the nwid, the
output just shows as above, with no

I also tried this with a rum(4) that I have laying around, and I am
having the same issue, so it's not the athn card...

r...@openbsd-host ~ # ifconfig rum0 nwid 'free_net'
r...@openbsd-host ~ # dhclient rum0
rum0: no link ...^C
r...@openbsd-host ~ # ifconfig rum0 bssid 08:00:28:fe:ee:ca
r...@openbsd-host ~ # dhclient rum0
rum0: no link ^C
r...@openbsd-host ~ # ifconfig rum0 chan 5
r...@openbsd-host ~ # dhclient rum0
rum0: no link . sleeping
r...@openbsd-host ~ # ifconfig rum0 mode 11b
r...@openbsd-host ~ # dhclient rum0
rum0: no link ^C
r...@openbsd-host ~ # ifconfig rum0 scan
rum0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:0e:3b:0a:ca:28
priority: 4
groups: wlan
media: IEEE802.11 autoselect (DS1 mode 11b)
status: no network
ieee80211: nwid free_net chan 5 bssid 08:00:28:fe:4e:eb 48dB 100dBm
nwid Olympus chan 6 bssid 00:1d:7e:cc:9d:ab 114dB 54M
privacy,short_preamble,short_slottime
nwid TekChic chan 2 bssid 00:22:6b:58:45:9a 107dB 54M
privacy,short_slottime
nwid 2WIRE963 chan 1 bssid 00:23:51:10:82:c1 103dB 54M
privacy,short_preamble,short_slottime
lladdr 08:00:28:fe:ee:ca 47dB 54M
ibss,short_preamble,short_slottime cache

here is the dmesg, I'm build a bleeding edge as I write this, and if
it fixes it, I will reply...

OpenBSD 4.7-current (GENERIC.MP) #560: Wed Apr 28 11:55:01 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Pentium(R) Dual-Core CPU T4400 @ 2.20GHz (GenuineIntel
686-class) 2.20 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTP
R,PDCM,XSAVE
real mem  = 3145064448 (2999MB)
avail mem = 3050921984 (2909MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/09/09, BIOS32 rev. 0 @
0xfd8f0, SMBIOS rev. 2.5 @ 0xbbac (45 entries)
bios0: vendor Phoenix Technologies LTD version V2.04 date 12/09/2009
bios0: Acer Aspire 7736
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET MCFG SLIC APIC BOOT SSDT SSDT
acpi0: wakeup devices P0P1(S4) USB0(S3) USB1(S3) USB2(S3) USBR(S3)
EHC1(S3) USB3(S3) USB4(S3) USB5(S3) EHC2(S3) HDEF(S3) PXSX(S5)
GLAN(S5) LID0(S3) SLPB(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Pentium(R) Dual-Core CPU T4400 @ 2.20GHz (GenuineIntel
686-class) 2.20 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTP
R,PDCM,XSAVE
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 13 (P0P1)