Re: Microsoft mouse, ums and wsmouse

2009-07-24 Thread Luis Useche
In case this helps, I will attach my complete dmesg.

OpenBSD 4.5 (GENERIC.MP) #108: Sat Feb 28 14:58:58 MST 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU T5250 @ 1.50GHz ("GenuineIntel"
686-class) 1.50 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,CX16,xTPR
real mem  = 2137165824 (2038MB)
avail mem = 2058231808 (1962MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/15/07, BIOS32 rev. 0 @
0xffa10, SMBIOS rev. 2.4 @ 0xf7190 (45 entries)
bios0: vendor Dell Inc. version "A02" date 08/15/2007
bios0: Dell Inc. Inspiron 1420
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET APIC MCFG SLIC BOOT SSDT
acpi0: wakeup devices PCI0(S5) PCIE(S4) USB1(S0) USB2(S0) USB3(S0)
USB4(S0) USB5(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S3) RP02(S3)
RP03(S3) RP04(S3) RP05(S3) RP06(S5) LID_(S3) PBTN(S4) MBTN(S5)
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 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T5250 @ 1.50GHz ("GenuineIntel"
686-class) 1.50 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,CX16,xTPR
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 3 (PCIE)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 11 (RP01)
acpiprt3 at acpi0: bus 12 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus 13 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus 9 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3
acpicpu1 at acpi0: C3
acpitz0 at acpi0: critical temperature 87 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: BAT0 model "DELL PR6937" serial 24 type LION oem "Sanyo"
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
bios0: ROM list: 0xc/0xf000! 0xcf000/0x1000
cpu0: unknown Enhanced SpeedStep CPU, msr 0x0613092b06000613
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1000 MHz (1004 mV): speeds: 1500, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x0c
vga1 at pci0 dev 2 function 0 "Intel GM965 Video" rev 0x0c
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 0xe000, size 0x1000
inteldrm0 at vga1: apic 2 int 16 (irq 11)
drm0 at inteldrm0
"Intel GM965 Video" rev 0x0c at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x02: apic 2
int 20 (irq 10)
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x02: apic 2
int 21 (irq 9)
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x02: apic 2
int 22 (irq 7)
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 0x02:
apic 2 int 21 (irq 9)
azalia0: codecs: Sigmatel STAC9228X, Conexant/0x2c06, using Sigmatel STAC9228X
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x02: apic 2
int 16 (irq 0)
pci1 at ppb0 bus 11
ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x02: apic 2
int 17 (irq 0)
pci2 at ppb1 bus 12
wpi0 at pci2 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02:
apic 2 int 17 (irq 10), MoW1, address 00:18:de:be:50:48
ppb2 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev 0x02: apic 2
int 19 (irq 0)
pci3 at ppb2 bus 13
ppb3 at pci0 dev 28 function 5 "Intel 82801H PCIE" rev 0x02: apic 2
int 17 (irq 0)
pci4 at ppb3 bus 9
bge0 at pci4 dev 0 function 0 "Broadcom BCM5906M" rev 0x02, BCM5906 A2
(0xc002): apic 2 int 17 (irq 10), address 00:1c:23:f8:62:90
brgphy0 at bge0 phy 1: BCM5906 10/100baseTX PHY, rev. 0
uhci2 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x02: apic 2
int 20 (irq 10)
uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x02: apic 2
int 21 (irq 9)
uhci4 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x02: apic 2
int 22 (irq 7)
ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x02: apic 2
int 20 (irq 10)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf2
pci5 at ppb4 bus 3
"Ricoh 5C832 Firewire" rev 0x05 at pci5 dev 1 function 0 not configured
sdhc0 at pci5 dev 1 function 1 "Ricoh 5C822 SD/MMC" rev 0x22: apic 2
int 18 (irq 4)
sdmmc0 at sdhc0
"Ricoh 5C843 MMC" rev 0x12 at pci5 dev 1 function 2 not configured
"Ricoh 5C592 Memory Stick" rev 

Re: mod_perl script is failing to work under SSL

2009-07-24 Thread Chris Bennett

Markus Wernig wrote:

Chris Bennett wrote:

  

I now wanted to improve security a bit, so when I tried accessing script
with https, I get this error in log file:
Can't locate object method "request" via package "Apache" 



Hi

Compare the httpd.conf of your ssl and non-ssl virtual hosts. Both must
have something like

 PerlModule Apache::Registry

 
   SetHandler perl-script
   PerlHandler Apache::Registry
   Options ExecCGI
 

krgds /markus


  

Thanks,
Answers like these are so obvious, once someone tells you!

I won't forget this problem. Would never have thought of this fix.

Chris Bennett

--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
  -- Robert Heinlein



Re: mod_perl script is failing to work under SSL

2009-07-24 Thread Markus Wernig
Chris Bennett wrote:

> I now wanted to improve security a bit, so when I tried accessing script
> with https, I get this error in log file:
> Can't locate object method "request" via package "Apache" 

Hi

Compare the httpd.conf of your ssl and non-ssl virtual hosts. Both must
have something like

 PerlModule Apache::Registry

 
   SetHandler perl-script
   PerlHandler Apache::Registry
   Options ExecCGI
 

krgds /markus



Re: Colors and layout behaviour in tmux

2009-07-24 Thread Nicholas Marriott
Hi

> I'm trying to get colors right in tmux and just updated to the latest 
> snapshot to see if I get it running.
> 
> Ways I'm trying to initialize tmux:
> 
> $ TERM=screen tmux
> $ TERM=screen tmux -2
> $ TERM=screen tmux -8
> $ TERM=screen tmux -d

Unless you are running tmux inside screen, you should not use TERM=screen
outside.

You should have TERM=screen /inside/ tmux. tmux will set that itself but you
should be careful not to change it in shell startup files.

> Actually this problem appears specifically when running alpine. When in 
> tmux, I can just see one or one or two colors. No problem in mc. Is this e

By default, it appears alpine has colours disabled. Can you go to the colour
menu (S then K), and make sure the color style is set to "use-termdef"?

> related to the application itself? No problems running in screen, 
> though.
> 
> Speaking of layouts, it seems that some commands which work inside tmux 
> can't be used in ~/.tmux.conf:
> 
> I'm trying this in ~/.tmux.conf:
> 
> select-layout main-vertical
> 
> I get this:
> 
> /home/dbolgheroni/.tmux.conf: can't establish current session at line 3

You are trying to set the layout before any sessions have been created, see
below.

> No problem if I comment this line.
> 
> If I use something like new-window in conf file, tmux doesn't get 
> started, nor an error message shows up.

This is probably due to a bug I have fixed earlier today (cmd.c r1.9).

Even with this fix, you will not be able to use new-window/select-layout in the
configuration file without creating a session first.

The usual way to create initial windows in the configuration file is to have
something like:

# create new session with emacs in window 0
new emacs
# create some more windows
neww top
neww
# split the previous window and set its layout
splitw
splitw
selectl even-vertical

Then start the tmux server with "tmux attach" (or "tmux start").

If you start it with "tmux new", tmux will load the configuration file -
creating the session and windows with the commands in it - then create the
second new session requested by the "new" command on the command line. I'd like
to make this a bit more obvious but so far I haven't thought of a good
solution.

> Also, when in tmux, I can't have the behaviour expected by main-vertical 
> unless I already splitted window. Is this normal?

I don't understand what you mean. None of the layouts can do anything unless
you have multiple panes already. If you want to force a window to take up only
part of the full terminal size, you can use the force-width and force-height
options.

Regards

Nicholas



Colors and layout behaviour in tmux

2009-07-24 Thread Daniel Bolgheroni
Hi misc@,

I'm trying to get colors right in tmux and just updated to the latest 
snapshot to see if I get it running.

Ways I'm trying to initialize tmux:

$ TERM=screen tmux
$ TERM=screen tmux -2
$ TERM=screen tmux -8
$ TERM=screen tmux -d

Actually this problem appears specifically when running alpine. When in 
tmux, I can just see one or one or two colors. No problem in mc. Is this 
related to the application itself? No problems running in screen, 
though.

Speaking of layouts, it seems that some commands which work inside tmux 
can't be used in ~/.tmux.conf:

I'm trying this in ~/.tmux.conf:

select-layout main-vertical

I get this:

/home/dbolgheroni/.tmux.conf: can't establish current session at line 3

No problem if I comment this line.

If I use something like new-window in conf file, tmux doesn't get 
started, nor an error message shows up.

Also, when in tmux, I can't have the behaviour expected by main-vertical 
unless I already splitted window. Is this normal?

Thank you.

--
Daniel Bolgheroni
FEI - Faculdade de Engenharia Industrial
http://www.dbolgheroni.eng.br/mykey

ASCII ribbon campaign ( )
 against HTML e-mail   X
  / \



mod_perl script is failing to work under SSL

2009-07-24 Thread Chris Bennett
I have a mod_perl script to access PostgreSQL 8.3 database and 
view/insert/update records.
The script has been all mod_perl for a good while now, with everything 
working fine.

It uses all Apache::Request, Apache::Registry for script and form handling.

I now wanted to improve security a bit, so when I tried accessing script 
with https, I get this error in log file:
Can't locate object method "request" via package "Apache" at pfrap4.pl 
line 23.
[Fri Jul 24 12:36:38 2009] [error] [client X.X.X.X] Premature end of 
script headers: /var/www/...


line 23

#!/usr/bin/perl
use warnings;
no warnings ('uninitialized');
use strict;
#use diagnostics;

use Apache::Request();
use HTML::Entities ();
use DBI ();

#our $debug = 1;
our $debug = 0;


my $r = Apache->request;
my $query = Apache::Request->new($r, POST_MAX => 10, DISABLE_UPLOADS 
=> 1);


my $dbh = 
DBI->connect("DBI:Pg:dbname=$database;host=$hostname;port=5432", 
$username, $password, {'R

aiseError' => 1});

.
I am using Apache::DBI, self-signed ssl certificates, mod_gzip, 
mod_auth_digest.
I have tried removing mod_auth_digest, mod_gzip, and rebooting as a last 
resort.


Have not found any useful advice for this problem searching web.

Chris Bennett

--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
  -- Robert Heinlein



Re: 4.6: softraid boot problems

2009-07-24 Thread Joachim Schipper
On Fri, Jul 24, 2009 at 02:24:26AM +, Matthew Szudzik wrote:
> On Thu, Jul 23, 2009 at 09:59:56PM +0200, Frank Brodbeck wrote:
> > I just started to have a look at 4.6 (new installer rocks) and used the
> > opportunity to setup encryption for my /home.
> > 
> > Everything works like a charm except that sd2 (on which my /home lives)
> > doesn't get attached at boot time. This causes /etc/rc to yell at me
> 
> See
>  http://marc.info/?l=openbsd-misc&m=124187397614485

I prefer

until [ ! -z "`bioctl softraid0`" ] || bioctl -c C -l /dev/wd0e softraid0; do
false
done

The advantage is that if you have started the system in single-user mode
and already mounted all disks, you can just type 'exit'. Plain bioctl -c
gives an error message (as you can imagine, the screen fills up rather
quickly at this point).

Of course, in either case you lose if you put in a USB disk before
bioctl is run...

Joachim



MULTILINGUAL DICTIONARY linking examples without leaving your web pages

2009-07-24 Thread Translation Experts
Dear Sir/Madam,

We have now upgraded our MULTILINGUAL DICTIONARY linking examples so that your 
users will no longer leave your web pages.

For more information, please go to:

http://www.tranexp.com/intertran/linking.cgi?31

We will be very happy to answer any queries you might have.

Best regards,

Translation Experts



Re: spamdb: is it my eyes or do TRAPPED addresses still manage to get through?

2009-07-24 Thread Darrin Chandler
On Fri, Jul 24, 2009 at 03:03:51PM +0200, Peter N. M. Hansteen wrote:
> setting up a new spamd plus various content filtering at a client site
> we were kind of baffled to see that apparently manually setting an
> address to TRAPPED with spamdb, ie
> 
> spamdb -a -t 211.49.57.32
> 
> for some reason seems porous, in that messages received from that IP
> address still hits the content filter a few minutes after the manual
> intervention.  I just wonder what it is I'm seeing here - spamdb
> lookups cached or something? 

I noticed such behavior some time ago. It makes sense if you think about
it: spamd has a db, and now and then updates pf tables. Until the update
in pf occurs...

During normal, automatic operation this isn't an issue since IPs are
going from greylist to either whilelist or blacklist, and presumably (I
haven't read the code) spamd will update pf immediately since it knows
there's a change.

If you want immediate response then dump the IP in the pf table as well
as adding it with spamdb.

-- 
Darrin Chandler|  Phoenix BSD User Group  |  MetaBUG
dwchand...@stilyagin.com   |  http://phxbug.org/  |  http://metabug.org/
http://www.stilyagin.com/  |  Daemons in the Desert   |  Global BUG Federation



Temmuz ayı E-Bülteni

2009-07-24 Thread Vege İnşaat
[IMAGE]

Bu e-posta size BultenYonetim.com'dan onaylı olarak gvnderilmiştir.
B|ltenYonetim'den e-posta almak istemiyorsanız des...@bultenyonetim.com
'a boş bir mail gvnderebilirsiniz.
Rahatsizlik verdigimiz igin vz|r dileriz.
B|lten Yvnetimi bir Netport hizmetidir.





'ps auwx' and 'top': inconsistent display?

2009-07-24 Thread Toni Mueller
Hello,

I have a perl script that should work as follows:

* check some parameters
* drop privileges ( $> = ...; $) = ...;)
* fork some other programs

Now when I run this script and "ps auwx" thereafter, I see that the
programs I forked are running under the user id that I specified in the
script. When I run 'top' on the same machine, these programs appear to
be running as root.

What gives?

The system is an OpenBSD 4.5/amd64 machine.


-- 
Kind regards,
--Toni++



spamdb: is it my eyes or do TRAPPED addresses still manage to get through?

2009-07-24 Thread Peter N. M. Hansteen
setting up a new spamd plus various content filtering at a client site
we were kind of baffled to see that apparently manually setting an
address to TRAPPED with spamdb, ie

spamdb -a -t 211.49.57.32

for some reason seems porous, in that messages received from that IP
address still hits the content filter a few minutes after the manual
intervention.  I just wonder what it is I'm seeing here - spamdb
lookups cached or something? 

- Peter

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



boot parameter

2009-07-24 Thread Robert Fischer
Hi,

Is it possible to pass arbitrary parameters to boot(8), respectively the kernel,
so that they can be read from the running system (in userland)?

While poking in the boot(8) sourcecode I found the option "env". Could somebody
please tell me what this (undocumented, at least in the boot(8) manpage) option
is used for?

thanks,
Robert



Re: gcc4.2.20070307p11 fails to build

2009-07-24 Thread Jamie Griffin
On Fri 24.Jul'09 at 18:16:26 +1200, Richard Toohey wrote:
> On 24/07/2009, at 1:47 PM, Jamie Griffin wrote:
>
> Not sure how you *upgrade* a package via ports, or have I missed the  
> point?
> (You should be able to REBUILD the package from ports, but it would be
> the same version.)
>
> So the /usr/ports you get off the CD will match the environment to build
> the release packages.
>
> I think I am correct in saying that (currently) ports follow -current?
>
> But if you've installed a release, then follow the stable branch, your 
> base
> is the release.  If you try and follow ports, you need to follow current 
> (I know
> this is not 100% true anymore, because there are some stable ports  
> again.)
>
> http://undeadly.org/cgi?action=article&sid=20090703194735
>
> So are you trying to build OpenOffice from 4.5 /usr/ports?  Or are you
> trying to build current /usr/ports on 4.5?
>
> Thanks.

Hi

I did a fresh install and then updated my sources, ports and xenocara
using cvsup, then rebuilt the system to follow stable. 

I installed openoffice3 using packages as opposed to building it from ports 
because i read that is the
preferred method for installing new software. After I updated my ports
tree using cvsup and ran the ./out-of-date script and it reported that
Openoffice3 was outdated, so i tried to update it using pkg_add -u but
nothing happened so i then went into /usr/ports/editors/openoffice3/ and
did a make update (maybe that wasn't the right thing to do ??). Anyway,
a load more stuff got installed as dependencies, like jdk-1.5 (after i
had to download the sources myself, etc) and gcc-4.2.2. 

Have i been going about it all wrong? 


It's at this stage it failed with the error i gave. 



Re: gcc4.2.20070307p11 fails to build

2009-07-24 Thread Jamie Griffin
On Thu 23.Jul'09 at 21:49:24 -0700, James Hartley wrote:
> On Thu, Jul 23, 2009 at 6:47 PM, Jamie Griffin
> 
> > wrote:
> 
> > i installed openoffice3 using pkg_add. After trying to update the package
> > using ports the build fails when it tries to install gcc4.2.2 as a
> > dependency, and the error I'm getting is this:
> >
> > configure error: installation or configuration problem: C compiler
> > cannot create executables.
> > ***Error code 1
> 
> 
> What's the output of df -h?

df -h
FilesystemSize   UsedAvail Capacity  Mounted on
/dev/wd0a 295M  53.5M 226M19%/
/dev/wd0h 9.8G  33.6M 9.3G 0%/home
/dev/wd0d1005M   8.0K 955M 0%/tmp
/dev/wd0g25.1G   5.8G18.1G24%/usr
/dev/wd0e98.3M  13.1M80.2M14%/var


Jamie 



Re: New Project - MICO

2009-07-24 Thread Soner Tari
On Tue, 2009-07-21 at 20:20 +, Astrid SC!nchez wrote:
> [1].
> http://www.openbsdcolombia.org/mico In spanish

Reads "PFSENSE ... COMIXWALL ... son ... systemas operativos
modificados". With beginner level Spanish of mine, I understand there is
a confusion here. ComixWall approach is completely different from
pfSense. (In fact, that's why I started the ComixWall project.)

ComixWall is NOT a *modified* OpenBSD.

Underneath ComixWall is an untouched, pure -stable OpenBSD. In fact, if
you don't select siteXY.tgz install set, you can install OpenBSD only.
If you have doubts, just roll your own -stable sets, and upgrade a
ComixWall installation to them (MD5s should match as well, afaik).

For example, that's why siteXY.tgz set is not selected by default during
ComixWall installation. Why? Because that would mean that I modify the
install.sub in the original bsd.rd.

In short, ComixWall provides a web interface, some extra UTM services
(which do not exist in the OpenBSD ports collection yet), and default
configuration files. (Furthermore, ComixWall does not use any
intermediary between the web interface and configuration files, but
directly modifies the text configuration files, i.e. no XML as in
pfSense.)

Just wanted to clear the air.