Re: OpenBSD 4.3 and Xorg resolution 1280x800?

2008-05-05 Thread Matthieu Herrb
On Sun, May 4, 2008 at 8:39 PM, rancor [EMAIL PROTECTED] wrote:
 Hi. Thanks for your reply

  I'm running OpenBSD 4.3 in a virtual environment using Virtualbox 1.6 and
  they don't have any grapics adapter specified. They just say: Use VESA
  generic adapter and that's what I'm doing.

  Maybe it's Virtualbox that is the problem and not OpenBSD.

As I've explained it several times, the VESA driver can only use modes
that the BIOS knows about.
If the virtualbox emulated BIOS doesn't provide a 1280x800 mode,
you're out of luck.



colors in regular openbsd terminal

2008-05-05 Thread Parvinder Bhasin

Hi,

I was wondering if there was to get some colors inside the regular  
terminal (not Xterm or Xorg).
I know if I alias colorls it sort of works for just listing  
directories and files but I would like to customize the look of the  
entire terminal for example :


lets say I type in ifconfig  , I would like to change the colors on  
the ip addresses and the interface names.

Any pointers would come in handy.  Thanks in advance.

thx.



Re: colors in regular openbsd terminal

2008-05-05 Thread Almir Karic
On Mon, May 5, 2008 at 8:25 AM, Parvinder Bhasin
[EMAIL PROTECTED] wrote:
 Hi,

  I was wondering if there was to get some colors inside the regular terminal
 (not Xterm or Xorg).
  I know if I alias colorls it sort of works for just listing directories and
 files but I would like to customize the look of the entire terminal for
 example :

  lets say I type in ifconfig  , I would like to change the colors on the
 ip addresses and the interface names.
  Any pointers would come in handy.  Thanks in advance.

i don't know of any nice ways :/

/sbin/ifconfig | sed s/^[a-z]*[0-9]/`tput setaf 1``tput setaf 0`/

this colors the interface names in red, if you want more complicated
things there are good chances you will be better with awk than sed :-)



-- 
For far too long, power has been concentrated in the hands of root
and his wheel oligarchy. We have instituted a dictatorship of the
users. All system administration functions will be handled by the
People's Committee for Democratically Organizing the System (PC-DOS).



Re: Window Manager

2008-05-05 Thread xavier brinon
On Mon, May 5, 2008 at 3:16 AM, Douglas A. Tutty [EMAIL PROTECTED]
wrote:

 On Sun, May 04, 2008 at 09:29:42PM -0300, Gonzalo Lionel Rodriguez wrote:
  I dont know if it is the place to ask it, but that window manager uses?
 And
  why?


 I don't understand the question.  Are you asking what window manager I
 use?  icewm:  small, easy to configure, has a taskbar for frequently
 used apps.  Works well on my low-resource systems.


 Doug.


If indeed Doug is right about your question
I'm testing e17, not so small, not that easy to configure (everything is
new, it takes time), very shiny (I can show off with my OBSD now)

Xavier.



Re: Window Manager

2008-05-05 Thread Jesus Sanchez

Douglas A. Tutty escribis:

On Sun, May 04, 2008 at 09:29:42PM -0300, Gonzalo Lionel Rodriguez wrote:
 
I dont know if it is the place to ask it, but that window manager 
uses? And

why?




I don't understand the question.  Are you asking what window manager I
use?  icewm:  small, easy to configure, has a taskbar for frequently
used apps.  Works well on my low-resource systems. 


Doug.


  

It depends on the hard power you have, for low CPU use I prefer fvwm2,
wich is really light and functional, other nice choices are icewm,
windowmaker (wmaker) and enlightenment (this uses more CPU and have more
cool effects).

Try windowmaker, its really intuitive, and icewm is great for windows
users.

-Jesus



Re: Doubt about license

2008-05-05 Thread Artur Grabowski
Pieter Verberne [EMAIL PROTECTED] writes:

 Pulic domain also says do with it whatever you like. I really don't
 know about the importance of the disclaimer. Maybe it depends on
 the country you live in.

public domain is a meaningless term in many countries (it doesn't have
any meaning in courts, which in turn means that you keep all the rights
that copyright law gives you).

In many countries you can't give up the right to be recognized as the
author even if you want to.

 BTW, how many times is the BSD license in the source repository? I think
 it is a filthiness of $ head [sourcefile].

I think it's pretty. Makes the code feel like home.

//art



Re: Editing C with...

2008-05-05 Thread Artur Grabowski
Marco Peereboom [EMAIL PROTECTED] writes:

 He is eluding to things like smart tabs and auto indent.  Those are
 disabled by default on vim and when programming they are both a curse and
 a gift from the gods.  I'll admit to having spend more than a few
 minutes fine tuning that.

 I am an old vi rat that finally caved to vim for several reasons.
 Let me mention just a few:
   * ctrl-p (autocomplete of a word)
   * ctrl-v (visual blocks)
   * split
   * spelling check
   * tab complete commands and filenames in command mode
   * incremental and highlighted search
   * tabs
   * colors, yes I said it!

So, you're using emacs with vi keys.
And I use vi with emacs keys (mg).

//art



Re: OpenBSD 4.3 and Xorg resolution 1280x800?

2008-05-05 Thread Tomas Bodzar
Hi,

It will be problem of Virtualbox.I can't run NetBSD and OpenBSD on this SW
under Win XP(segmentation fault during all installs).On Vmware Server 1.0.5 or
Qemu is everything OK(both Lin and Win,Beta 2 under Lin is something terrible
- M A S T O D O N T).

Hsync,vsync a vga are number one target if you have problem with resolution.

I have very funny problem on Qemu with OBSD 4.3 release :-)

I cant type  =  ,so some type of coding in files is very crazy :-D I
thought,than I can change it by physical layout of keyboard(101,102,105,104
and etc. Keyboards),but change in xorg.conf does nothing and can't find how to
change it in console - no info in man or web.

wsconsctl shows line keyboard.type=pc-xt ,but no possibility to change this
(or nothing about it in man)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
rancor
Sent: Sunday, May 04, 2008 8:39 PM
To: rancor; misc@openbsd.org
Subject: Re: OpenBSD 4.3 and Xorg resolution 1280x800?

Hi. Thanks for your reply

I'm running OpenBSD 4.3 in a virtual environment using Virtualbox 1.6 and they
don't have any grapics adapter specified. They just say: Use VESA generic
adapter and that's what I'm doing.

Maybe it's Virtualbox that is the problem and not OpenBSD.

Regards rancor


On Sun, May 4, 2008 at 5:16 PM, Manuel Wildauer [EMAIL PROTECTED]
wrote:

 Which Video-Card?

 I have a Intel 82855GM and in my Xorg.conf are:
 Driver  intel

 It works good



Re: Doubt about license

2008-05-05 Thread Pieter Verberne
On Sun, May 04, 2008 at 08:40:00PM +0200, Paul de Weerd wrote:
 On Sun, May 04, 2008 at 05:55:16PM +0200, Pieter Verberne wrote:
 | Keeping authorship for a resume sounds like a somewhat good reason
 | to me. I think you could also use public domain code for a resume,
 | but that may have it's downsides. My question is something like: is
 | keeping copyright worth putting the annoying license in every file?
 
 Calling it an annoying license is somewhat disrespectful. If you
 find the license annoying, don't use the work.
Disrespectful is a funny word for it. The point is: the ISC license
sucks less.. (than any other license, I think) I'm thinking if
public domain would suck less than a permissive license.

 I do this quite often,
 in fact, not use some piece of software because I don't like the
 license.
Me too. When I'm looking for a piece of software (like a webbrowser),
I'm most of the time first looking for a permissive license.

 |  All files require a copyright and license notice.
 | True, but is the name of the license, or the name + URL enough? Than you
 | could replace the whole ISC license with just the line like:
 | # This file is ISC-licensed.
 
 And who wrote This file ? You seem to have forgotten the copyright
 notice. The part where it says (c) 2008, whomever.
Idd, I've forgotten.

 | This would make one reason for using public domain less; It won't safe
 | lines in textfiles.
 
 What is so annoying about a few lines of text in a source file ?
I dunno, somewhat the same thing as HTHL is annoying for it verbosity.
I'm an obsessive minimalist I think..

(I've been thinking about using Plan9 wich is more minimalistic, (and
has a better design I think) but it's license is yuck)
 
 Yeah, just being Dutch and all... ;)
..:) Whatever.



Re: Doubt about license

2008-05-05 Thread Pieter Verberne
On Mon, May 05, 2008 at 10:45:31AM +0200, Artur Grabowski wrote:
 Pieter Verberne [EMAIL PROTECTED] writes:
 public domain is a meaningless term in many countries (it doesn't have
 any meaning in courts, which in turn means that you keep all the rights
 that copyright law gives you).
 
 In many countries you can't give up the right to be recognized as the
 author even if you want to.
Like in my country. But that does not mean I have to use permissive licenses,
that means there is a error in the law. Copyright should be optional; It
should be assigned automaticly, but I also should be able to take
distance of (abandon) copyright. It sucks that anyone who wants to put
there work in public domain has to use a license text instead. So, I've
written the Dutch ministry of justice about it. Things should be solved
on the right place; that is where the law is. Permissive licenses are
sometimes used as a kind of nasty workaround (hack) for putting things
effectively in public domain (!by those who don't care about keeping
copyright!).
*sigh* whatever.. I guess I'm just dutchman.. or so.. My minimalism
is probably somewhat obsessive:)
 
  BTW, how many times is the BSD license in the source repository? I think
  it is a filthiness of $ head [sourcefile].
 
 I think it's pretty. Makes the code feel like home.
-_-



Re: Window Manager

2008-05-05 Thread raven

Gonzalo Lionel Rodriguez ha scritto:

I dont know if it is the place to ask it, but that window manager uses? And
why?

Regards


  


wmaker (Window Maker) :  small, easy to configure, has a taskbar for frequently used apps, and for each workspace you can have different applications, so you can have multiple workspaces with shortcuts to most used apps.  Works well on low-resource systems. 


Francesco



gtk+2-2.12.7 on't upgrade after upgrade to 4.3

2008-05-05 Thread Ed Ahlsen-Girard
Has anyone encountered this?  I'm at a point where the next thing I see 
to try entails uninstalling the present gtk+, but that will drag a fair 
amount of stuff along with it (mozilla-*, gimp, et al.).

There isn't a man page that seems to apply to my beady little mind.

[demime 1.01d removed an attachment of type APPLICATION/DEFANGED which had a 
name of eagirard.20177DEFANGED-vcf]



1U IBM or Dell server for firewall

2008-05-05 Thread LEVAI Daniel
Hi!

I'm in need of a 1U IBM (or Dell as a last resort) server for a firewall
in our office. To be honest, I'm not quite familiar with IBM servers of
these kind, but I'm sure that someone is using one already for a fw, so
I just need a model number or configuration which is working perfectly
with OpenBSD 4.3. It doesn't have to be a fancy configuration, it will
be just a simple firewall... If someone would be kind enough to
recommend me an already working and tested IBM server, I'd be very
happy and thankful :)

Thanks in advance:

Daniel

--
LIVAI Daniel
GPG key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: Editing C with...

2008-05-05 Thread Ed Ahlsen-Girard
 -Original Message-
 From: Steve Shockley [mailto:[EMAIL PROTECTED]
 Sent: Sunday, May 04, 2008 9:56 AM
 To: misc
 Subject: Re: Editing C with...

 Nick Holland wrote:
  but I WOULD tell any new user: learn the
  base system tools first.

 More to the point, have a working knowledge of ed.  Had a royal PITA
the
 other day when I misspelled softdep in the /usr line in fstab, and
 didn't know how to use ed.

  Most modern OSs (with the exception of
  Windows, assuming you wish to lump it in with that category) include
  a usable editor.

 Notepad?  edlin?



Windows still has edit, as well, which is kinder and gentler than edlin
and will run without the GUI (IIRC).



Re: Editing C with...

2008-05-05 Thread Darrin Chandler
On Sun, May 04, 2008 at 12:14:14AM -0400, Nick Holland wrote:

 Yes, I know, you can turn off all that crap, but if I'm trying to
 configure or administer a system, my first goal is not to spend an
 hour moving in...make the changes needed, and move on, and NOT fix
 the editor.

And there it is, in a nutshell. If you're administering many machines
with different OS and setup, it would be counterproductive to do it any
other way.

If you're writing code on your own workstation then you can tweak your
environment the way you like, and that can be worthwhile. Expending the
effort to move in makes sense if you're going to live there a long
time.

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



Apache suexec problem

2008-05-05 Thread Chris Bennett
I am upgrading  4.0 to 4.3, overwriting everything to change partition 
layout.

Apache seems to be working fine except for cgi
I get in suexec_log:
[2008-05-05 00:53:03]: info: (target/actual) uid: (chris002/chris002) 
gid: (bencon/bencon) cmd: search.pl

[2008-05-05 00:53:03]: emerg: failed to setusercontext (5001: search.pl)
[2008-05-05 00:56:54]: info: (target/actual) uid: (chris002/chris002) 
gid: (bencon/bencon) cmd: search.pl

[2008-05-05 00:56:54]: emerg: failed to setusercontext (5001: search.pl)

I can't find anything searching the web except programmer's bug notes 
which don't apply.


What is this error? What do I need to check (I have even tried adding a 
new user and chowning to that uid and gid.
Didn't help but also didn't change error output at all in suexec_log 
(stayed EXACTLY as above, even after stopping apache and/or rebooting)


Thanks,
Chris



Re: DLINK DFE530T as INTEL PRO/1000 MT Subtitution?

2008-05-05 Thread Insan Praja SW
On Mon, 05 May 2008 20:07:23 +0700, Eke Nordin [EMAIL PROTECTED]  
wrote:


On Sat, May 3, 2008 at 2:14 PM, Insan Praja SW [EMAIL PROTECTED]  
wrote:

Hi Misc@,
 Today I find a very difficult situation, I cannot find any shop in
Indonesia that have stocks on single port intel PRO/1000MT PCI NICs. So  
I
had to make a decision, replace this NICs with something more available  
and

that would be Dlink DFE530T NIC, which I had no experience on this NICs.
Many on list recommend these em(4) cards, but nothing on Dlink.
 I'm basically trying to develop Loadbalance/redundant Puffy Gigabit
routers, on Intel S3000AH boards which already had onboard em(4)s. I  
already
have installed i386 4.3-current on this boards, doing bgpd, pf, and  
carp.

Btw, 4,3-current seem to do fine in these boxes.
 So, I'm lookin forward for any hints, suggestions or someone to shares
their experiences with typical setup.
 Kind Regards,


DFE sounds like 10/100 only, you didn't mean DGE530T?
Those works very well (they are sk(4) devices), but 32bit/33MHz
PCI doesn't quite fill a 1000baseT.


My bad, it actually a DGE530T. Thanks for the info Ake..
Kind regards,


Insan
--
insandotpraja(at)gmaildotcom



Re: Window Manager

2008-05-05 Thread Jonathan Schleifer
Gonzalo Lionel Rodriguez [EMAIL PROTECTED] wrote:

 I dont know if it is the place to ask it, but that window manager
 uses? And why?

For small systems, I use evilwm (with a few patches of my own) or
OpenBox, on systems with more power (and RAM!) I use Gnome ( + compiz
when I have 3D support, for example on Linux).

--
Jonathan

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



Re: colors in regular openbsd terminal

2008-05-05 Thread Edd Barrett
On Mon, May 5, 2008 at 7:25 AM, Parvinder Bhasin
[EMAIL PROTECTED] wrote:
 Hi,

  I was wondering if there was to get some colors inside the regular terminal
 (not Xterm or Xorg).

export TERM=wsvt25

-- 

Best Regards

Edd

http://students.dec.bournemouth.ac.uk/ebarrett



Re: Apache suexec problem

2008-05-05 Thread Chris Bennett
I did find the following, which seems relevant but I have no idea if 
doing this would be ok or not.




Number: 6637
Category:   suexec
Synopsis:   suexec doesn't use setusercontext() and related
Confidential:   no
Severity:   non-critical
Priority:   medium
Responsible:apache
State:  open
Quarter:
Keywords:   
Date-Required:

Class:  change-request
Submitter-Id:   apache
Arrival-Date:   Fri Oct 06 21:30:00 PDT 2000
Closed-Date:
Last-Modified:
Originator: [EMAIL PROTECTED]
Release:1.3.12
Organization:

apache

Environment:

FreeBSD - all version. My version is 4.1 (base).  GNU cc..

Description:

FreeBSD (probably other BSD flavors.. I don't know what O/S'es have this 
functionality) employs a login capabilities database wherein certain classes of 
users can have limits imposed upon them, such as max cpu time, memory, # of 
procs, filesize, etc.  It's a wonderful addition to my suexec (see patch below; 
I'm sure it needs to be MUCH better than what I've done for general 
distribution) - it helps prevent runaway cgi's.
If you need more info on these routines or a platform or anything, I'll lend a 
hand.
Thanks!

How-To-Repeat:



Fix:
diff -u suexec.c suexec.c.orig


--- suexec.cSat Sep  2 18:08:04 2000
+++ suexec.c.orig   Sat Sep  2 16:28:54 2000
@@ -90,10 +90,6 @@

#include stdarg.h

-/* LOCAL CODE ADDITION */
-#include login_cap.h
-/* END LOCAL CODE ADDITION */
-
#include suexec.h

/*
@@ -441,22 +437,6 @@
   log_err(emerg: failed to setuid (%ld: %s)\n, uid, cmd);
   exit(110);
}
-
-/*
- * (LOCAL CODE ADDITION)
- * setusercontext() so login.conf's settings take effect
- * Above, there's a comment that says:
- *Save these for later since initgroups will hose the struct
- * Which means that the 'pw' struct should be hosed by now.. but
- * I don't see why, and this seems to work fine, at least for FreeBSD
- */
-
-if ((setusercontext(NULL, pw, uid, LOGIN_SETRESOURCES)) != 0) {
-log_err(emerg: Failed to setusercontext(%ld: %s)\n, uid, cmd);
-exit(130);
-}
-
-/* END LOCAL CODE ADDITION */

/*
 * Get the current working directory, as well as the proper

Release-Note:
Audit-Trail:
Unformatted:

[In order for any reply to be added to the PR database, you need]
[to include [EMAIL PROTECTED] in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as general/1098: or  ]
[Re: general/1098:).  If the subject doesn't match this   ]
[pattern, your message will be misfiled and ignored.  The   ]
[apbugs address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS! ]

OpenBSD 4.3 has suexec.c section as:


#if defined(USE_SETUSERCONTEXT)
   if (setusercontext(NULL, pw, uid,
   LOGIN_SETALL  ~(LOGIN_SETLOGIN | LOGIN_SETPATH)) != 0) {
   log_err(emerg: failed to setusercontext (%u: %s)\n, uid, cmd);
   exit(110);
   }
#else
   /*
* Change UID/GID here so that the following tests work over NFS.
*
* Initialize the group access list for the target user,
* and setgid() to the target group. If unsuccessful, error out.
*/
   if (((setgid(gid)) != 0) || (initgroups(actual_uname, gid) != 0)) {
   log_err(emerg: failed to setgid (%u: %s)\n, gid, cmd);
   exit(109);
   }

   /*
* setuid() to the target user.  Error out on fail.
*/
   if ((setuid(uid)) != 0) {
   log_err(emerg: failed to setuid (%u: %s)\n, uid, cmd);
   exit(110);
   }
#endif







Chris Bennett wrote:
I am upgrading  4.0 to 4.3, overwriting everything to change partition 
layout.

Apache seems to be working fine except for cgi
I get in suexec_log:
[2008-05-05 00:53:03]: info: (target/actual) uid: (chris002/chris002) 
gid: (bencon/bencon) cmd: search.pl

[2008-05-05 00:53:03]: emerg: failed to setusercontext (5001: search.pl)
[2008-05-05 00:56:54]: info: (target/actual) uid: (chris002/chris002) 
gid: (bencon/bencon) cmd: search.pl

[2008-05-05 00:56:54]: emerg: failed to setusercontext (5001: search.pl)

I can't find anything searching the web except programmer's bug notes 
which don't apply.


What is this error? What do I need to check (I have even tried adding 
a new user and chowning to that uid and gid.
Didn't help but also didn't change error output at all in suexec_log 
(stayed EXACTLY as above, even after stopping apache and/or rebooting)


Thanks,
Chris




Re: Apache suexec problem

2008-05-05 Thread Chris Bennett

I also just found on openbsd.org/plus34.html:

Use setusercontext(3) 
http://www.openbsd.org/cgi-bin/man.cgi?query=setusercontextsektion=3 
instead of roll-your-own in httpd(8) 
http://www.openbsd.org/cgi-bin/man.cgi?query=httpdsektion=8, so that 
login.conf(5) 
http://www.openbsd.org/cgi-bin/man.cgi?query=login.confsektion=5 
values apply.


Chris

Chris Bennett wrote:
I did find the following, which seems relevant but I have no idea if 
doing this would be ok or not.




Number: 6637
Category:   suexec
Synopsis:   suexec doesn't use setusercontext() and related
Confidential:   no
Severity:   non-critical
Priority:   medium
Responsible:apache
State:  open
Quarter:Keywords:   Date-Required:
Class:  change-request
Submitter-Id:   apache
Arrival-Date:   Fri Oct 06 21:30:00 PDT 2000
Closed-Date:
Last-Modified:
Originator: [EMAIL PROTECTED]
Release:1.3.12
Organization:

apache

Environment:

FreeBSD - all version. My version is 4.1 (base).  GNU cc..

Description:
FreeBSD (probably other BSD flavors.. I don't know what O/S'es have 
this functionality) employs a login capabilities database wherein 
certain classes of users can have limits imposed upon them, such as 
max cpu time, memory, # of procs, filesize, etc.  It's a wonderful 
addition to my suexec (see patch below; I'm sure it needs to be MUCH 
better than what I've done for general distribution) - it helps 
prevent runaway cgi's.
If you need more info on these routines or a platform or anything, 
I'll lend a hand.

Thanks!

How-To-Repeat:



Fix:
diff -u suexec.c suexec.c.orig


--- suexec.cSat Sep  2 18:08:04 2000
+++ suexec.c.orig   Sat Sep  2 16:28:54 2000
@@ -90,10 +90,6 @@

#include stdarg.h

-/* LOCAL CODE ADDITION */
-#include login_cap.h
-/* END LOCAL CODE ADDITION */
-
#include suexec.h

/*
@@ -441,22 +437,6 @@
   log_err(emerg: failed to setuid (%ld: %s)\n, uid, cmd);
   exit(110);
}
-
-/*
- * (LOCAL CODE ADDITION)
- * setusercontext() so login.conf's settings take effect
- * Above, there's a comment that says:
- *Save these for later since initgroups will hose the struct
- * Which means that the 'pw' struct should be hosed by now.. but
- * I don't see why, and this seems to work fine, at least for 
FreeBSD

- */
-
-if ((setusercontext(NULL, pw, uid, LOGIN_SETRESOURCES)) != 0) {
-log_err(emerg: Failed to setusercontext(%ld: %s)\n, uid, cmd);
-exit(130);
-}
-
-/* END LOCAL CODE ADDITION */

/*
 * Get the current working directory, as well as the proper

Release-Note:
Audit-Trail:
Unformatted:

[In order for any reply to be added to the PR database, you need]
[to include [EMAIL PROTECTED] in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as general/1098: or  ]
[Re: general/1098:).  If the subject doesn't match this   ]
[pattern, your message will be misfiled and ignored.  The   ]
[apbugs address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS! ]

OpenBSD 4.3 has suexec.c section as:


#if defined(USE_SETUSERCONTEXT)
   if (setusercontext(NULL, pw, uid,
   LOGIN_SETALL  ~(LOGIN_SETLOGIN | LOGIN_SETPATH)) != 0) {
   log_err(emerg: failed to setusercontext (%u: %s)\n, uid, cmd);
   exit(110);
   }
#else
   /*
* Change UID/GID here so that the following tests work over NFS.
*
* Initialize the group access list for the target user,
* and setgid() to the target group. If unsuccessful, error out.
*/
   if (((setgid(gid)) != 0) || (initgroups(actual_uname, gid) != 0)) {
   log_err(emerg: failed to setgid (%u: %s)\n, gid, cmd);
   exit(109);
   }

   /*
* setuid() to the target user.  Error out on fail.
*/
   if ((setuid(uid)) != 0) {
   log_err(emerg: failed to setuid (%u: %s)\n, uid, cmd);
   exit(110);
   }
#endif







Chris Bennett wrote:
I am upgrading  4.0 to 4.3, overwriting everything to change 
partition layout.

Apache seems to be working fine except for cgi
I get in suexec_log:
[2008-05-05 00:53:03]: info: (target/actual) uid: (chris002/chris002) 
gid: (bencon/bencon) cmd: search.pl

[2008-05-05 00:53:03]: emerg: failed to setusercontext (5001: search.pl)
[2008-05-05 00:56:54]: info: (target/actual) uid: (chris002/chris002) 
gid: (bencon/bencon) cmd: search.pl

[2008-05-05 00:56:54]: emerg: failed to setusercontext (5001: search.pl)

I can't find anything searching the web except programmer's bug notes 
which don't apply.


What is this error? What do I need to check (I have even tried adding 
a new user and chowning to that uid and gid.
Didn't help but also didn't change 

Nouvelle collection

2008-05-05 Thread Yolande Large
Si ce message ne s'affiche pas correctement, vous pouvez le visualiser en
suivant ce lien.

[IMAGE]

[IMAGE]

[IMAGE]

[IMAGE]

Bonjour,

Dicouvrez la nouvelle collection de Coffret Cadeaux Liberty..

Cette solution raffinie permettra ` chacun de vos binificiaires de
choisir son cadeau parmi une silection encore plus prestigieuse d’objets
de grandes marques, de champagne, de vin, d'activitis plaisir : stage de
pilotage, massage, nuitie en chbteaux, spa ...

Tout est inclus dans cette offre soigneusement ilaborie.

Dans l'attente d'un prochain contact,

Yolande LARGE
Directrice ginirale

www.coffret-liberty.com
Tel : 0892 680 907
Fax : 02 41 48 57 32

Pour ne plus recevoir nos informations, suivez le lien



Re: Croatian keymap (Was: azalia)

2008-05-05 Thread Mats O Jansson

On Fri, 2 May 2008, [EMAIL PROTECTED] wrote:


it seems that xmms has resampling logic(just as faq claimed :))
and successfully plays
mp3 and flac files after complaining about:

**warning**:/dev/audio:cannot handle 44100Hz(invalid argument)

-it seems my device is locked at 48000Hz

everything else works great, thx to all developers

p.s. i would like to make croatian keymap which is not supported and
be great to get some pointers for documentation how to do that or
where to look


Just a tad to little information...

Are you talking about a croatian keymap in console mode or in X?

How different is the croatian keymap compared with a slovenian?

The slovenian (si) is supported in console, but you need a latin 2 font
to get the correct characters.

-moj



Re: mknod fails after wrong arch MAKEDEV

2008-05-05 Thread Hannah Schroeter
Hi!

On Sun, May 04, 2008 at 03:09:25PM +, Paul Pruett wrote:
Isn't /tmp mounted with option nodev, by chance?

Would not explain it failing in /dev

[...]

How does it fail?

Try for example (manually):

mkfifo foo
mknod foo c 1 1

You see mknod fail with File exists. Even on a filesystem *not*
mounted nodev. (But then, MAKEDEV uses rm -f before mknod, as far as I
can see, so that should not be the problem.)

What *can* be an issue is that mknod inside a chroot is not allowed, as
well as mknod as non-root (except for pipes, i.e. mknod path p, which
is the same as mkfifo path).

Kind regards,

Hannah.



Re: Apache suexec problem

2008-05-05 Thread Marc Espie
I've looked a bit at suexec, trying to make it go saner. I still cringe.
The model is intrinsically broken, for a lot of reasons. I don't think it's
feasible to fix suexec for real.

You've got to realize that suexec basically *elevates* a process to root,
making its decision on its name and various fishy tests.

I don't see how this can be made safe.



Re: Apache suexec problem

2008-05-05 Thread Dan Harnett
On Mon, May 05, 2008 at 08:36:27AM -0500, Chris Bennett wrote:
 I am upgrading  4.0 to 4.3, overwriting everything to change partition 
 layout.
 Apache seems to be working fine except for cgi
 I get in suexec_log:
 [2008-05-05 00:53:03]: info: (target/actual) uid: (chris002/chris002) gid: 
 (bencon/bencon) cmd: search.pl
 [2008-05-05 00:53:03]: emerg: failed to setusercontext (5001: search.pl)
 [2008-05-05 00:56:54]: info: (target/actual) uid: (chris002/chris002) gid: 
 (bencon/bencon) cmd: search.pl
 [2008-05-05 00:56:54]: emerg: failed to setusercontext (5001: search.pl)

Did you remember to set the setuid bit on suexec after upgrading?  Your
suexec binary as well as it's permissions are reset after an upgrade.

See suexec(8).



Re: Apache suexec problem

2008-05-05 Thread Chris Bennett
Actually I didn't, checked that right after I posted, BUT it was already 
set as setuid!! A mistake in release??


Dan Harnett wrote:

On Mon, May 05, 2008 at 08:36:27AM -0500, Chris Bennett wrote:
  
I am upgrading  4.0 to 4.3, overwriting everything to change partition 
layout.

Apache seems to be working fine except for cgi
I get in suexec_log:
[2008-05-05 00:53:03]: info: (target/actual) uid: (chris002/chris002) gid: 
(bencon/bencon) cmd: search.pl

[2008-05-05 00:53:03]: emerg: failed to setusercontext (5001: search.pl)
[2008-05-05 00:56:54]: info: (target/actual) uid: (chris002/chris002) gid: 
(bencon/bencon) cmd: search.pl

[2008-05-05 00:56:54]: emerg: failed to setusercontext (5001: search.pl)



Did you remember to set the setuid bit on suexec after upgrading?  Your
suexec binary as well as it's permissions are reset after an upgrade.

See suexec(8).




Re: mknod fails after wrong arch MAKEDEV

2008-05-05 Thread Paul Pruett

How does it fail?
Try for example (manually):

mkfifo foo
mknod foo c 1 1


# cd /
# mknod foo c 1 1
ksh: mknod: foo: Invalid argument


FAILS with invalid argument.



What *can* be an issue is that mknod inside a chroot is not allowed, as
well as mknod as non-root (except for pipes, i.e. mknod path p, which
is the same as mkfifo path).


agreed,
but I don't think I have /  as a chroot,
and I am doing it as root, not su



I fear I some how messed up the userland or some kind of auditing
when I accidently a month ago used the MAKEDEV for a i386, then had to 
boot off cdrom to redo /dev




Re: Apache suexec problem

2008-05-05 Thread Dan Harnett
On Mon, May 05, 2008 at 11:39:03AM -0500, Chris Bennett wrote:
 Actually I didn't, checked that right after I posted, BUT it was
 already set as setuid!! A mistake in release??

No.  There is no mistake.

$ sudo chmod u+s /usr/sbin/suexec
$ ls -l /usr/sbin/suexec
-r-sr-xr-x  1 root  bin  12068 Mar 12 12:41 /usr/sbin/suexec
$ ftp -V -o - $MIRROR/pub/OpenBSD/4.3/i386/base43.tgz \
| sudo tar zxphf - -C /
$ ls -l /usr/sbin/suexec
-r-xr-xr-x  1 root  bin  12068 Mar 12 12:41 /usr/sbin/suexec


Are you running in a chroot?



Re: colors in regular openbsd terminal

2008-05-05 Thread Parvinder Bhasin

Thanks!! Will give it a shot.

-Parvinder Bhasin

On May 5, 2008, at 6:56 AM, Edd Barrett wrote:


On Mon, May 5, 2008 at 7:25 AM, Parvinder Bhasin
[EMAIL PROTECTED] wrote:

Hi,

I was wondering if there was to get some colors inside the regular  
terminal

(not Xterm or Xorg).


export TERM=wsvt25

--

Best Regards

Edd

http://students.dec.bournemouth.ac.uk/ebarrett




Re: Window Manager

2008-05-05 Thread jmc
--- Gonzalo Lionel Rodriguez [Sun, May 04, 2008 at 09:29:42PM -0300]: --- 
 I dont know if it is the place to ask it, but that window manager uses? And
 why?

ratpoison. easy to customize, very minimalistic. 



Re: Apache suexec problem

2008-05-05 Thread Stuart Henderson
On 2008-05-05, Chris Bennett [EMAIL PROTECTED] wrote:
 I am upgrading  4.0 to 4.3, overwriting everything to change partition 
 layout.

Did you somehow end up with suexec on a partition mounted nosuid?



Re: problem building release for 4.3 stable

2008-05-05 Thread Christer Solskogen

Anthony Roberts wrote:


Is this file really supposed to be present in 4.3?



No, because you are building 4.3-current. Change tag to OPENBSD_4_3 
instead, and rebuild.


--
chs



Fw: issue on Attansic Technology L1 network card and OpenBSD

2008-05-05 Thread don cipo
And, like I previously said in a recent message, Atheros sends me to Asus. 
Let's see what Asus has to say about this.
We, the end users, are the prisoners of the hardware manufacturers. They 
impose us what operating systems to use. It's a shame !


- Original Message - 
From: Atheros Information [EMAIL PROTECTED]

To: don cipo [EMAIL PROTECTED]
Sent: Monday, May 05, 2008 9:05 PM
Subject: Re: issue on Attansic Technology L1 network card and OpenBSD


Thank you for your interest in products containing Atheros Communications' 
technology.


However, we do not offer the network cards or drivers that you're 
inquiring about.  Atheros typically sells chips to module manufacturers 
and therefore would not be able to help you with this task.  For issues 
regarding configuration and usage of your product, please contact ASUS' 
technical support department.  We suggest you refer to ASUS' website, as 
they typically offer online technical support pages where software 
drivers, updates, and other related information can be obtained.


Thank you for your understanding.
Atheros Communications, Inc.



On Fri, 2 May 2008 10:53:47 +0300
 don cipo [EMAIL PROTECTED] wrote:

Dear Sir,

I've recently bought an Asus P5K-V motherboard to use on my internet 
gateway here at work. This motherboard have the Attansic Technology L1 
network chip embedded. The issue is that I can't use OpenBSD since there 
isn't any driver for this OS for the network card. Please help the 
OpenBSD project with technical documentation so they can write a driver 
for this Attansic Technology L1 network card. Thank you very much ! -- 
This message has been scanned for viruses and

dangerous content by MailScanner, and is
believed to be clean.




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: Apache suexec problem

2008-05-05 Thread Chris Bennett

Good idea, but I just checked and /usr is not nosuid

Stuart Henderson wrote:

On 2008-05-05, Chris Bennett [EMAIL PROTECTED] wrote:
  
I am upgrading  4.0 to 4.3, overwriting everything to change partition 
layout.



Did you somehow end up with suexec on a partition mounted nosuid?




Re: Apache suexec problem

2008-05-05 Thread Chris Bennett

I tried renaming suexec to suexec.bak
this produced the result of some scripts working, others don't
These are all tested scripts
I am now concerned that there may be a hardware problem
How can I check out the disk in OpenBSD? fsck doesn't seem to really do 
any write testing.
I saw a previous post about using dd or some package for linux ext2fs or 
something like that, but I had a little trouble following those posts

Could I get a newbie style explanation of what to use?



Re: newfs during install

2008-05-05 Thread Denis Doroshenko
On Mon, May 5, 2008 at 5:50 AM, Nick Holland
[EMAIL PROTECTED] wrote:
 Denis Doroshenko wrote:
  ...
   the faq continuously repeats root partition where (i believe) root
   filesystem is actually meant.

  no, it means what it says, and says what it means (at least in this
  regard. :)

  File systems live on partitions.  Partitions are created with fdisk
  and disklabel, and file systems live on those partitions, created
  with newfs.  (of course, file systems can also live on virtual disks
  made out of other partitions, or files residing on file systems within
  partitions residing on real or virtual disks...and more.  Your head
  spinning yet?)

  Ok, at least that's my definition.

  You can also say fdisk makes partitions disklabel makes slices or
  fdisk makes slices and disklabel makes partitions or fdisk makes
  partitions and disklabel makes subpartitions or fdisk makes
  do-hickies and disklabel makes thig-a-majigs, but no matter how you
  put it, SOMEONE, if not most people, are going to get confused when
  they first start out.  This is acknowledged directly here:
 http://www.openbsd.org/faq/faq4.html#Disks

well, i feel sorry for my slacking-lazy ass. i needed to read the whole faq,
as there is the term definition part!  one of my university professors
taught do not get used to the terms, and his most funny joke was the
formulas written with symbols that are randomly picked (e.g. a, b, c for
the force, acceleration and mass). most students were confused
completely as he was moving to more complex stuff. well i'm one bad
student and you got me!!

my intelized mind is still confused with partitions here and partitions
there, OTOH i had only one layer of partitions on a sparc64 :-) gosh,
even disklabel(8) calls the filesystem containers this way!

  Nick.

thanks Nick! i have only a hope that i'm not alone here and your efforts
help us all bad faq-readers.



Re: Apache suexec problem

2008-05-05 Thread Louis V. Lambrecht

Dan Harnett wrote:

On Mon, May 05, 2008 at 11:39:03AM -0500, Chris Bennett wrote:
  

Actually I didn't, checked that right after I posted, BUT it was
already set as setuid!! A mistake in release??



No.  There is no mistake.

$ sudo chmod u+s /usr/sbin/suexec
$ ls -l /usr/sbin/suexec
-r-sr-xr-x  1 root  bin  12068 Mar 12 12:41 /usr/sbin/suexec
$ ftp -V -o - $MIRROR/pub/OpenBSD/4.3/i386/base43.tgz \
| sudo tar zxphf - -C /
$ ls -l /usr/sbin/suexec
-r-xr-xr-x  1 root  bin  12068 Mar 12 12:41 /usr/sbin/suexec


Are you running in a chroot?


  

Ha!
I  understand setuid and UID/Gid root/bin for suexec,
but shouldn't the executables be made www/www with authorized users 
members of www group?


Default suexec -V
shows no access for UID/GID  1000, so www would not work either.

Also, suexec -V shows public_html enabled, just need to edit the 
httpd.cong to allow it also.

Again a problem as / and .. are disallowed, so, no Perl.

The manual page on the local Apache server have been written by 
linguists, not eager to learn

computer users.

Redaing the thread, I understand I am not the only unfortunate. Sadly said.



Re: Fw: issue on Attansic Technology L1 network card and OpenBSD

2008-05-05 Thread Lars Noodén
don cipo wrote:
 And, like I previously said in a recent message, Atheros sends me to
 Asus. Let's see what Asus has to say about this.

Asus should be more amenable to producing the specs if not also a
driver.  Here is a heavily abridged press release:

 OEMs rally behind Open Source Drivers. ...
In Austin, leading computer manufacturers Dell, HP,
Lenovo, and many others ... OEM vendors reported that
they will encourage chipset and other component vendors
to provide open source drivers... The companies
announced on stage that they will now include wording in
their hardware procurement processes to bstrongly
encourageb the delivery of open source drivers ...
Asustek Computer, Inc., manufacturer of the popular
Linux-based Eee PC, is also encouraging its hardware
suppliers to provide open source drivers ...
VIA Technology also announced the opening of their
drivers and better support for the open source community
...

http://linux-foundation.org/weblogs/press/2008/04/24/linux-foundation-reports-highlights-from-annual-collaboration-summit/

http://blog.wired.com/monkeybites/2008/04/dell-hp-lenovo.html

Regards,
-Lars



Re: azalia

2008-05-05 Thread Gabriel Guzman
Also running 4.3 generic, and been reading here and in archives about 
people having issues with the azalia driver.   Here is my info, if it's 
useful to devs, or if you guys need anything else from me, let me know:


short story:  xmms works fine - cdio cdplay doesn't work - ogg123 
doesn't work - cat file.wav  /dev/(audio|sound) works, but can't set 
sample rates.


# cat track01.wav  /dev/audio
works (plays slow)

# cat track01.wav  /dev/sound
works (plays slow)

attempting to set the play.rate or play.sample_rate seems to do nothing:
# audioctl play.rate=44100
audioctl: set failed: Invalid argument

# aucat track01.wav
aucat: AUDIO_SETINFO: Invalid argument

attempting to play an ogg file through the sun driver:

# ogg123 house_of_cards.ogg 



Audio Device:   Sun audio driver output

Playing: house_of_cards.ogg
Ogg Vorbis stream: 2 channel, 44100 Hz
Title: House of Cards
Artist: Radiohead
Genre: 12
Date: 2008
Album: In Rainbows
Track number: 08
Error: Cannot open device sun

same when trying to use /dev/sound w/the sun driver:
# ogg123 -d sun -o dev:/dev/sound house_of_cards.ogg

Audio Device:   Sun audio driver output

Playing: house_of_cards.ogg
Ogg Vorbis stream: 2 channel, 44100 Hz
Title: House of Cards
Artist: Radiohead
Genre: 12
Date: 2008
Album: In Rainbows
Track number: 08
Error: Cannot open device sun.

# cdio cdplay
No CD device name specified. Defaulting to cd0.
cdio: can't configure audio device

Playing through xmms works fine.


dmesg:
OpenBSD 4.3 (GENERIC) #698: Wed Mar 12 11:07:05 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) Dual CPU T2330 @ 1.60GHz (GenuineIntel 
686-class) 1.

60 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF

LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xTPR
real mem  = 1063669760 (1014MB)
avail mem = 1020456960 (973MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/20/08, BIOS32 rev. 0 @ 0xfdcf0, 
SMBIOS

rev. 2.4 @ 0xe0010 (70 entries)
bios0: vendor LENOVO version 7PETB2WW (2.12 ) date 02/20/2008
bios0: LENOVO 76509LU
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT SSDT SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) EXP0(S4) EXP1(S4) EXP2(S4) 
EXP3(S4) PCI1

(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T4513 serial  5504 type LION oem SANYO
acpiac0 at acpi0: AC unit online
bios0: ROM list: 0xc/0x1! 0xd/0x1a00 0xd1a00/0x1000 
0xe/0x1!

cpu0 at mainbus0
cpu0: unknown Enhanced SpeedStep CPU, msr 0x060f0c2b06000c2b
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1600 MHz (1388 mV): speeds: 1600, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x0c
agp0 at pchb0: aperture at 0xe000, size 0x800
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)
Intel GM965 Video rev 0x0c at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x03: irq 11
uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x03: irq 11
ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x03: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x03: irq 11
azalia0: codec[s]: Conexant/0x5045
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x03: irq 11
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 Intel 82801H PCIE rev 0x03: irq 11
pci2 at ppb1 bus 3
wpi0 at pci2 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: irq 
11, MoW

1, address 00:1f:3c:18:d8:83
ppb2 at pci0 dev 28 function 2 Intel 82801H PCIE rev 0x03: irq 11
pci3 at ppb2 bus 4
bge0 at pci3 dev 0 function 0 Broadcom BCM5787M rev 0x02, BCM5754/5787 
A2 (0xb

002): irq 11, address 00:1c:25:90:79:9f
brgphy0 at bge0 phy 1: BCM5787 10/100/1000baseT PHY, rev. 0
uhci2 at pci0 dev 29 function 0 Intel 82801H USB rev 0x03: irq 10
uhci3 at pci0 dev 29 function 1 Intel 82801H USB rev 0x03: irq 11
uhci4 at pci0 dev 29 function 2 Intel 82801H USB rev 0x03: irq 11
ehci1 at pci0 dev 29 function 7 Intel 82801H USB rev 0x03: irq 11
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 

pbm install 4.3 Packard Bell EasyNote

2008-05-05 Thread xavier brinon
Hello to all,
The install of the 4.3 is quite difficult in comparison to the 4.2 (both
dmesg are attached to the mail)
the wifi is not properly recognised
The boot is processed completely 50% of the times. I mean each time I have
the ddb prompt, I just reboot (boot reboot)
(see the dmesgko4.3 and the dmesgok4.3) and that second time it completes
I've attached also the trace and ps.

I reinstalled the 4.2 and all works fine,
4.3 stable is booting improperly half the time
and 4.3 -current also.

I stil can reboot my computer two times, and keep the ethernet cable instead
of my wifi,  but any improvement is welcome

If anyone can help, thanks in advance.
0xe6000/0x1000! 0xeb000/0x5000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82855GM Host rev 0x02
Intel 82855GM Memory rev 0x02 at pci0 dev 0 function 1 not configured
Intel 82855GM Config rev 0x02 at pci0 dev 0 function 3 not configured
vga1 at pci0 dev 2 function 0 Intel 82855GM Video rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xb000, size 0x800
Intel 82855GM Video rev 0x02 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x03: irq 10
uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x03: irq 11
ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x03: irq 7
ehci0: reset timeout
ehci0: init failed, error=13
ppb0 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x83
pci1 at ppb0 bus 1
rtw0 at pci1 dev 1 function 0 Realtek 8180 rev 0x20: irq 11
rtw0: ver RTL8180F, 
rtw0: could not recall EEPROM in 1us

rtw0: could not recall EEPROM in 1us
rl0 at pci1 dev 2 function 0 Realtek 8139 rev 0x10: irq 3, address 
00:40:d0:62:86:13
rlphy0 at rl0 phy 0: RTL internal PHY
ichpcib0 at pci0 dev 31 function 0 Intel 82801DBM LPC rev 0x03
pciide0 at pci0 dev 31 function 1 Intel 82801DBM IDE rev 0x03: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: ST94019A
wd0: 16-sector PIO, LBA48, 38154MB, 78140160 sectors
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: QSI, DVD+-RW SDW-082S, LX06 ATAPI 5/cdrom 
removable
ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x03: irq 5
iic0 at ichiic0
iic0: addr 0x18 00=00 01=00 02=00 3e=00 4e=00 words 00= 01= 02= 
03= 04= 05= 06= 07=
iic0: addr 0x1b 00=00 01=00 3e=00 48=d0 words 00= 01= 02= 03= 
04= 05= 06= 07=
iic0: addr 0x1e 00=00 01=00 3e=00 48=d0 words 00= 01= 02= 03= 
04= 05= 06= 07=
iic0: addr 0x21 00=00 01=00 02=00 3e=00 words 00= 01= 02= 03= 
04= 05= 06= 07=
iic0: addr 0x24 00=00 01=00 3e=00 words 00= 01= 02= 03= 04= 
05= 06= 07=
iic0: addr 0x26 00=00 01=00 02=00 3e=00 words 00= 01= 02= 03= 
04= 05= 06= 07=
iic0: addr 0x29 00=00 01=00 02=00 03=00 04=00 3e=00 3f=00 words 00= 01= 
02= 03= 04= 05= 06= 07=
iic0: addr 0x2c 00=00 3e=00 3f=00 words 00= 01= 02= 03= 04= 
05= 06= 07=
iic0: addr 0x2f 00=00 01=00 3e=00 words 00= 01= 02= 03= 04= 
05= 06= 07=
iic0: addr 0x4a 3e=00 words 00= 01= 02= 03= 04= 05= 
06= 07=
iic0: addr 0x4d 3e=00 words 00= 01= 02= 03= 04= 05= 
06= 07=
auich0 at pci0 dev 31 function 5 Intel 82801DB AC97 rev 0x03: irq 5, ICH4 AC97
ac97: codec id not read
audio0 at auich0
Intel 82801DB Modem rev 0x03 at pci0 dev 31 function 6 not configured
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 Intel UHCI root hub rev 1.00/1.00 addr 1
usb1 at uhci1: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
biomask edf5 netmask edfd ttymask 
mtrr: Pentium Pro MTRR support
nvram: invalid checksum
softraid0 at root
OpenBSD 4.3-current (GENERIC) #0: Sun Apr 27 22:32:03 CEST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Celeron(R) M processor 1400MHz (GenuineIntel 686-class) 1.40 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF
real mem  = 234385408 (223MB)
avail mem = 218484736 (208MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/14/04, BIOS32 rev. 0 @ 0xe97a0, SMBIOS 
rev. 2.3 @ 0xec31d (38 entries)
bios0: 

Re: azalia

2008-05-05 Thread Deanna Phillips
Gabriel Guzman [EMAIL PROTECTED] writes:

 Also running 4.3 generic, and been reading here and in
 archives about people having issues with the azalia driver.
 Here is my info, if it's useful to devs, or if you guys need
 anything else from me, let me know:

 short story: xmms works fine - cdio cdplay doesn't work -
 ogg123 doesn't work - cat file.wav  /dev/(audio|sound) works,
 but can't set sample rates.

These are all sure signs of a device fixed at a 48 kHz sample
rate.  The driver is doing the best it can with the crummy
hardware it's been given.



Re: azalia

2008-05-05 Thread Gabriel Guzman

Deanna Phillips wrote:

Gabriel Guzman [EMAIL PROTECTED] writes:


Also running 4.3 generic, and been reading here and in
archives about people having issues with the azalia driver.
Here is my info, if it's useful to devs, or if you guys need
anything else from me, let me know:

short story: xmms works fine - cdio cdplay doesn't work -
ogg123 doesn't work - cat file.wav  /dev/(audio|sound) works,
but can't set sample rates.


These are all sure signs of a device fixed at a 48 kHz sample
rate.  The driver is doing the best it can with the crummy
hardware it's been given.



I figured it was something along those lines, as attempting to change 
the sample rate wasn't working.   Thanks for all the work on this driver!


and 4.3 is awesome, thanks to all the devs.

gabe.



Re: Fw: issue on Attansic Technology L1 network card and OpenBSD

2008-05-05 Thread Stuart Henderson
On 2008-05-05, Lars Noodin [EMAIL PROTECTED] wrote:
   to provide open source drivers... The companies
   announced on stage that they will now include wording in
   their hardware procurement processes to bstrongly
   encourageb the delivery of open source drivers ...

bah, they ask for the wrong thing *again*... Ever looked at the
average vendor open source device driver? Try a few and compare
with some OpenBSD-sourced drivers, say, mpi(4) or something.

Drivers are not documentation.



Re: problem building release for 4.3 stable

2008-05-05 Thread Anthony Roberts
 Is this file really supposed to be present in 4.3?


 No, because you are building 4.3-current. Change tag to OPENBSD_4_3
 instead, and rebuild.

I'm reasonably sure that's not the issue. The rt2860 firmware is
definitely present in the source tree, in files tagged OPENBSD_4_3:

[EMAIL PROTECTED]:/usr/src/sys/dev/microcode/ral# cvs status build.c
===
File: build.c   Status: Up-to-date

   Working revision:1.4
   Repository revision: 1.4 /cvs/src/sys/dev/microcode/ral/build.c,v
   Sticky Tag:  OPENBSD_4_3 (branch: 1.4.4)
   Sticky Date: (none)
   Sticky Options:  (none)

[EMAIL PROTECTED]:/usr/src/sys/dev/microcode/ral# grep rt2860 *
Makefile:FIRM=  ral-rt2561 ral-rt2561s ral-rt2661 ral-rt2860
build.c:output(ral-rt2860,  rt2860,  sizeof rt2860);
microcode.h:static const uint8_t rt2860[] = {

But it isn't present in src/distrib/sets/lists/base/md.i386

[EMAIL PROTECTED]:/usr/src/distrib/sets/lists/base# cvs status md.i386
===
File: md.i386   Status: Up-to-date

   Working revision:1.692
   Repository revision: 1.692   /cvs/src/distrib/sets/lists/base/md.i386,v
   Sticky Tag:  OPENBSD_4_3 (branch: 1.692.2)
   Sticky Date: (none)
   Sticky Options:  (none)

[EMAIL PROTECTED]:/usr/src/distrib/sets/lists/base# grep ral-rt2860 md.i386
***no output***

The file is present in the 4.3 release tarballs obtained from the FTP site:

[EMAIL PROTECTED]:~# tar tzf base43.tgz | grep ral-rt2860
./etc/firmware/ral-rt2860

I don't think me checking out the wrong tag would explain this. I'd love
it if someone could point out any error on my part though.

-Anthony



Fw: issue on Attansic Technology L1 network card and OpenBSD

2008-05-05 Thread don cipo

Dear Asus manufacturer,
Please help the OpenBSD project with technical documentation so they can 
write a driver for this Attansic Technology L1 network chip so I can fully 
use your product. Thank you very much !

Best regards !

- Original Message - 
From: Atheros Information [EMAIL PROTECTED]

To: don cipo [EMAIL PROTECTED]
Sent: Monday, May 05, 2008 9:05 PM
Subject: Re: issue on Attansic Technology L1 network card and OpenBSD


Thank you for your interest in products containing Atheros Communications' 
technology.


However, we do not offer the network cards or drivers that you're 
inquiring about.  Atheros typically sells chips to module manufacturers 
and therefore would not be able to help you with this task.  For issues 
regarding configuration and usage of your product, please contact ASUS' 
technical support department.  We suggest you refer to ASUS' website, as 
they typically offer online technical support pages where software 
drivers, updates, and other related information can be obtained.


Thank you for your understanding.
Atheros Communications, Inc.



On Fri, 2 May 2008 10:53:47 +0300
 don cipo [EMAIL PROTECTED] wrote:

Dear Sir,

I've recently bought an Asus P5K-V motherboard to use on my internet 
gateway here at work. This motherboard have the Attansic Technology L1 
network chip embedded. The issue is that I can't use OpenBSD since there 
isn't any driver for this OS for the network card. Please help the 
OpenBSD project with technical documentation so they can write a driver 
for this Attansic Technology L1 network card. Thank you very much !



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



ipsec.conf question

2008-05-05 Thread Prabhu Gurumurthy

All,

I have a question regarding ipsec.conf.

Example:

IPsec peers: 3.3.3.3, 3.3.3.2
Interesting traffic: 1.1.1.1 - 192.168.100.2
 2.2.2.2 - 192.168.100.0/24

Main/Quick mode crypto/groups being: aes, sha1 and group2
PSK being test123

How can I define the above concisely?

I can, for example, do the following:

ike esp from 1.1.1.1 to 192.168.100.2 \
local 3.3.3.3 peer 3.3.3.2\
main auth hmac-sha1 enc aes group modp1024 \
quick auth hmac-sha1 enc aes group modp1024 \
psk test123

ike esp from 2.2.2.2 to 192.168.100.0/24 \
local 3.3.3.3 peer 3.3.3.2\
main auth hmac-sha1 enc aes group modp1024 \
quick auth hmac-sha1 enc aes group modp1024 \
psk test123

Is there any way to shorten it? since most of it seem to be redundant except for 
the interesting traffic part.


FWIW, I am running 4.3-current:
OpenBSD pgurumur-vm-openbsd.xxx.com 4.3 GENERIC#732 i386

Thanks
Prabhu
-



Re: azalia problem on 4.2-release: loud tone

2008-05-05 Thread Deanna Phillips
Jacob Yocom-Piatt [EMAIL PROTECTED] writes:

 have a little via c7 machine for my home workstation and the audio
 chipset is detected as an azalia device

 azalia0 at pci4 dev 1 function 0 VIA HD Audio rev 0x00: irq 5
 azalia0: host: High Definition Audio rev. 1.0
 azalia0: codec: VIA/0x1708 (rev. 5.0), HDA version 1.0

 when i play music through xmms, i do hear it but it is pretty much
 washed out by a loud, constant, irritating tone that is substantially
 louder than the music itself. AFAICT there is nothing else outputting
 audio on the machine.

 advice on how to do any of the following would be appreciated:

 - determine if something on the machine is generating this sound
 - stop the sound
 - fix the driver

I have not had a chance to look at this, but I have written some
basic info on solving problems with the generic driver:

http://freedaemonhosting.com/~deanna/azalia-no-sound.txt

I won't post it inline here, for fear of being run out on a
rail.  It's a very tedious process and only meant for the truly
devoted or truly desperate ;)



Re: Window Manager

2008-05-05 Thread Douglas A. Tutty
On Sun, May 04, 2008 at 09:16:06PM -0400, Douglas A. Tutty wrote:
 On Sun, May 04, 2008 at 09:29:42PM -0300, Gonzalo Lionel Rodriguez wrote:
  I dont know if it is the place to ask it, but that window manager uses? And
  why?
 
 
 I don't understand the question.  Are you asking what window manager I
 use?  icewm:  small, easy to configure, has a taskbar for frequently
 used apps.  Works well on my low-resource systems.  

I intend, when I get the time, to try openbox.

Doug.



Re: 1U IBM or Dell server for firewall

2008-05-05 Thread K K
On Mon, May 5, 2008 at 8:09 AM, LEVAI Daniel [EMAIL PROTECTED] wrote:
  I'm in need of a 1U IBM (or Dell as a last resort) server for a firewall
  in our office.  ... working perfectly with OpenBSD 4.3.

We started out pricing Dell and IBM, but ran into the same issue --
it can be tricky to price out a specification that works perfectly,
and even with a corporate discount, these can be expensive vendors.


In the end we went with KD85 for rackmount PF firewalls,
and IronSystems for servers with fast CPU and big disks.

Came in under budget, supported OpenBSD friendly vendors,
and both classes of machine came with OpenBSD pre-installed.

Kevin



Re: Window Manager

2008-05-05 Thread Gonzalo Lionel Rodriguez
if fvwm (default) had a traybar (and taskbar) for programs like pidgin or
aMSN, that4s be great.

2008/5/5 Douglas A. Tutty [EMAIL PROTECTED]:

 On Sun, May 04, 2008 at 09:16:06PM -0400, Douglas A. Tutty wrote:
  On Sun, May 04, 2008 at 09:29:42PM -0300, Gonzalo Lionel Rodriguez
 wrote:
   I dont know if it is the place to ask it, but that window manager
 uses? And
   why?
 
 
  I don't understand the question.  Are you asking what window manager I
  use?  icewm:  small, easy to configure, has a taskbar for frequently
  used apps.  Works well on my low-resource systems.

 I intend, when I get the time, to try openbox.

 Doug.



Re: Window Manager

2008-05-05 Thread John Nietzsche
Does anybody knows how to get multiple workspace in openmotif that
comes with openbsd 4.3 ?

Thanks in advance.

On Sun, May 4, 2008 at 9:29 PM, Gonzalo Lionel Rodriguez
[EMAIL PROTECTED] wrote:
 I dont know if it is the place to ask it, but that window manager uses? And
  why?

  Regards



Re: Editing C with...

2008-05-05 Thread John Nietzsche
for me, vi and vim are the ones.

Would you mind explaining me i am just learning C applied in networking area ?


On Sat, May 3, 2008 at 2:56 PM, Jordi Espasa Clofent
[EMAIL PROTECTED] wrote:
 Yes, I know, it's completely a dumb question; but I'm curious about it.

  I'm just learning C applied in networking area and I wonder what editor is
 preferred by OpenBSD developers.

  At present moment I use vim.

  --
  Thanks,
  Jordi Espasa Clofent



Re: Window Manager

2008-05-05 Thread punosevac
 if fvwm (default) had a traybar (and taskbar) for programs like pidgin or
 aMSN, that4s be great.

I am not using fvwm but it is highly configurable so I would not be
surprised that you can do that if you go through documentation. That might
take you a while:-) In any rate there are at list dozen of traybar and
taskbars in ports that can do the job you are describing. Some of them are
extremely light.

Now since I am already participating in the discussion let me state for the
record that I use OpenBox and Xfce-panel (as a tray/task bar).
I used for the long time TWM and still very usable. If you like ultralight
things look at a dynamic window manager (dwm). It has less than 2000 lines
of C code.

Best,
Predrag

 2008/5/5 Douglas A. Tutty [EMAIL PROTECTED]:

 On Sun, May 04, 2008 at 09:16:06PM -0400, Douglas A. Tutty wrote:
  On Sun, May 04, 2008 at 09:29:42PM -0300, Gonzalo Lionel Rodriguez
 wrote:
   I dont know if it is the place to ask it, but that window manager
 uses? And
   why?
 
 
  I don't understand the question.  Are you asking what window manager I
  use?  icewm:  small, easy to configure, has a taskbar for frequently
  used apps.  Works well on my low-resource systems.

 I intend, when I get the time, to try openbox.

 Doug.



Re: Editing C with...

2008-05-05 Thread bofh
On Mon, May 5, 2008 at 8:45 PM, John Nietzsche [EMAIL PROTECTED]
wrote:

 for me, vi and vim are the ones.

 Would you mind explaining me i am just learning C applied in networking
 area ?


I picked up a copy of TCPIP Illustrated, and am going through the
examples.  HTH.


-- 
http://www.glumbert.com/media/shift
http://www.youtube.com/watch?v=tGvHNNOLnCk
This officer's men seem to follow him merely out of idle curiosity. --
Sandhurst officer cadet evaluation.
Securing an environment of Windows platforms from abuse - external or
internal - is akin to trying to install sprinklers in a fireworks factory
where smoking on the job is permitted. -- Gene Spafford
learn french: http://www.youtube.com/watch?v=j1G-3laJJP0feature=related



[OT] suitability of CF for weekly backups

2008-05-05 Thread Douglas A. Tutty
Can anyone see a problem with using CF cards in a removeable CF/IDE
adapter for daily/weekly/monthly backup cycle?  Note: not for 30-year
archive or anything, just for backup.

I'm thinking it would fill the niche between DVDs and a tape drive and
not have the throughput requirements for use on an older box.

Doug.



Re: Window Manager

2008-05-05 Thread Predrag Punosevac

John Nietzsche wrote:

Does anybody knows how to get multiple workspace in openmotif that
comes with openbsd 4.3 ?

Thanks in advance.

On Sun, May 4, 2008 at 9:29 PM, Gonzalo Lionel Rodriguez
[EMAIL PROTECTED] wrote:
  

I dont know if it is the place to ask it, but that window manager uses? And
 why?

 Regards



  
I wonder if you could use VDesk   http://openports.se/x11/vdesk   from 
ports?




Re: Window Manager

2008-05-05 Thread Gerardo Santana Gómez Garrido
On Mon, May 5, 2008 at 6:55 PM, Gonzalo Lionel Rodriguez
[EMAIL PROTECTED] wrote:
 if fvwm (default) had a traybar (and taskbar) for programs like pidgin or
  aMSN, that4s be great.

if you don't like fvwm (it's certainly ugly) you can try the options
mentioned. I prefer KDE.

By the way, there's a mailing list about OpenBSD for Spanish speakers here:

http://groups.google.com/group/OpenBSD-Mexico

-- 
Gerardo Santana



Re: 1U IBM or Dell server for firewall

2008-05-05 Thread Tomas Bodzar
Hi,

From HW view is more than enough this type :

http://www-03.ibm.com/systems/x/hardware/rack/x3250/index.html

but I don't know how much is HW from this server supported in OpenBSD.In
specifications are only Win systems,so best way is to ask IBM about support
under their Unixes on this device (it tells something about possibility to run
it on OpenBSD).Then you can compare it against HW list from OpenBSD.

It's for way - I NEED JUST IBM (due to company policy or something like this)

Better (and lightest) way is purchase some from KD85.

Ofcourse,for pf is some old 1U with PIII , 256 RAM  enough too.You can get
one or two year warranty even on these old types.

TB

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
LEVAI Daniel
Sent: Monday, May 05, 2008 3:09 PM
To: OpenBSD misc
Subject: 1U IBM or Dell server for firewall

Hi!

I'm in need of a 1U IBM (or Dell as a last resort) server for a firewall
in our office. To be honest, I'm not quite familiar with IBM servers of
these kind, but I'm sure that someone is using one already for a fw, so
I just need a model number or configuration which is working perfectly
with OpenBSD 4.3. It doesn't have to be a fancy configuration, it will
be just a simple firewall... If someone would be kind enough to
recommend me an already working and tested IBM server, I'd be very
happy and thankful :)

Thanks in advance:

Daniel

--
LIVAI Daniel
GPG key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: ncurses.h and stddef.h conflicts?

2008-05-05 Thread Ted Unangst
On 5/3/08, achillean surtri [EMAIL PROTECTED] wrote:
  After changing _WCHAR_T to _WCHAR_T_DEFINED_, and _WINT_T to
  _WINT_T_DEFINED_ in ncurses.h the problem was fixed. And I did a quick grep
  on /usr/include and at first glance didn't see any other header files that
  check for _WCHAR_T, so it doesn't seem like changing it to _WCHAR_T_DEFINED_
  would break anything...

  Anyways, as it doesn't seem right to change a common header file such as
  ncurses.h, I was wondering whether there's something I'm missing?

The version of curses in OpenBSD is very old, so this isn't surprising.



Re: Editing C with...

2008-05-05 Thread Jordi Espasa Clofent

Would you mind explaining me i am just learning C applied in networking
area ?



I picked up a copy of TCPIP Illustrated, and am going through the
examples.


For example.

--
Thanks,
Jordi Espasa Clofent