Re: OpenBSD 4.9 pre-orders

2011-03-25 Thread Frank Bax
Here in Canada there is no standard for clothes that are sold in 
S,M,L,XL,XXL,etc sizes.  Actual size/fit varies by manufacturer.


Theo:  Are hoodies and T-shirts made by same company?

If yes, there is a better chance of knowing in advance if XXL hoodie is 
made in same size as XXL T-shirt.


What size you get/like also depends on how tight you want the fit to be.




On 03/18/11 03:55, Henrik Engmark wrote:

I am kind of uncertain about Canadian clothes sizes.
I am 187 centimetres tall, and I weigh in at about 100 kilos.
In other words, quite the fat bloke.
What size hoodie would you recommend, X, XX or XXX?


On Tue, 15 Mar 2011 15:10:02 -0600, Theo de Raadt wrote:


I've turned on OpenBSD 4.9 pre-orders. Support us by buying something
please. These sales are a part of keeping the project going.

As for clothing... there's going to be a black hoodie this time.




Re: Security List

2011-02-09 Thread Frank Bax

On 02/09/11 02:04, SJP Lists wrote:

On 9 February 2011 12:37, woolsherpahatwoolsherpa...@gmail.com  wrote:

On 6 February 2011 05:23, Alessandro Baggialessandro.ba...@gmail.com  wrote:
Hi List, i had registered me to the security list:
security-annou...@openbsd.org since 9 Genuary 2011, but any email come on my
account. Some that had security list subscribtion, can tell me if since
09/01/2001 at today there are mails?


I use a script which scrapes http://www.openbsd.org/errata48.html
daily and emails me the changes as they occur.


Shane


That sounds pretty cool... any chance you would be willing to share?


Okay, I'm probably not doing this the best way, so as embarrassing as
this is, it might hopefully get improved by someone...

#!/bin/sh
#
# OpenBSD_errata48.sh
#
# Check for any changes to the OpenBSD 4.8 Errata list and email
# an alert if so.


# Move the lastest successful OpenBSD errata grab so that is becomes
# the previous successful grab.

mv /home/scripts/OpenBSD_errata48_latest.txt \
/home/scripts/OpenBSD_errata48_previous.txt

# Use lynx to just output to stdout the text of the OpenBSD Errata
# page, without a URL list.  Output the status to an error file so
# that sending bogus emails due to server being unavailable does not
# occur.
#
# Then filter out everything but the errata detail lines and output
# to a temporary file that will only be used if the web server status
# is 200 OK.

lynx -dump -nolist -error_file=/home/scripts/OBSD_errata48_err.txt \
  http://www.openbsd.org/errata48.html | egrep ^ \* ?|   ? \
/home/scripts/OpenBSD_errata48_current.txt

# Check the error status file to make sure the file was successfully
# retrieved.  If successful, procede with comparison between the
# current and previous errata, to determine whether an email should
# be sent.

if egrep  200 OK /home/scripts/OBSD_errata48_err.txt
then
 mv /home/scripts/OpenBSD_errata48_current.txt \
/home/scripts/OpenBSD_errata48_latest.txt
 if ! diff /home/scripts/OpenBSD_errata48_latest.txt \
   /home/scripts/OpenBSD_errata48_previous.txt  /dev/null
 then
 diff /home/scripts/OpenBSD_errata48_latest.txt \
  /home/scripts/OpenBSD_errata48_previous.txt \
  | egrep ^\ | sed 's/\   //g' \
  | tr -d \n | perl -pe 's/\* /\n\n/g' \
  | sed 's/  */ /g' \
  | mail -s OpenBSD 4.8 Errata! y...@yourdomain.net
 fi
else rm /home/scripts/OpenBSD_errata48_current.txt
fi

rm /home/scripts/OBSD_errata48_err.txt




Why not reuse existing functionality?  Add your lynx command (which 
downloads file) to a crontab; then add filename to /etc/changelist


I've sometimes thought it would be nice to have the 'changelist' code 
extracted from /etc/security to a separate script so user-defined 
changes could be emailed to users other than root.  Coding this is 
beyond my capabilities.  I think this new script would need three 
parameters:

- /etc/changelist   [list of files]
- /var/backups  [dir for .backup and .current files]
- root  [user to receive email notifications]

For an adventurous coder; perhaps /etc/changelist would allow url's to 
monitor remote webpages.




Re: syslog.conf(5) log a given facility only to a separate logfile, not /var/log/messages

2011-01-01 Thread Frank Bax

On 01/01/11 08:56, Damon McMahon wrote:

Greetings,

My Apple Airport Extreme wireless bridge forwards syslog messages of
the following format using facility local0 to my OpenBSD syslogd(8)
running in insecure -u mode thus:

Jan  1 13:29:53 dadsairport dadsairport admin: Connection accepted
from :::192.168.0.4/52199.
Jan  1 13:46:33 dadsairport dadsairport dot11: Installed unicast CCMP
key for supplicant 00:1e:52:72:20:06

I can direct these to a separate logfile using the following line in
syslog.conf(5):

local0.* /var/log/airport

These messages are also directed by default to /var/log/messages as
they are included in this default line of syslog.conf:

*.notice;auth,authpriv,cron,ftp,kern,lpr,mail,user.none /var/log/messages

My question is how can these messages be excluded from /var/log/messages?


From my reading of the manual page, the only way to filter these

messages using base syslogd is via the program tag, and as you can see
from the above these tags vary. Is there any other way without
installing syslogd-ng from ports?

Thanks in advance for any assistance.



man syslog.conf - especially the parts about !!prog

There is an example for spamd that will be interesting for you.



Re: removing unneeded package dependencies

2010-12-27 Thread Frank Bax

On 12/27/10 09:35, Dmitrij D. Czarkoff wrote:

I use a custom script to remove automaticly installed dependencies to the
manually installed packages I deleted.




If you had used -D dependencies when you manually deleted a package; 
the dependencies would also be deleted (unless they are required for 
another package).




pop3 server looping?

2010-12-27 Thread Frank Bax
 I see this message in /var/log/daemon about every 10 minutes or so 
(starting about an hour ago); what does this mean?


Dec 27 10:30:01 bax inetd[28318]: pop3/tcp server failing (looping), 
service terminated




Re: qemu core dumped

2010-12-06 Thread Frank Bax

On 12/06/10 10:40, Stuart Henderson wrote:

On 2010-12-05, Frank Baxf...@sympatico.ca  wrote:

After my cdrom arrived; I upgraded to 4.8 -release soon after packages
became available online.  I don't use qemu often; but when I tried to
run it after upgrade; I get core dump.  I don't use kqemu.
I invoke qemu using same options (saved in file) as worked in 4.7:

$ pkg_info | grep qemu
qemu-0.12.4p0   multi system emulator
$ export ETHER=em0 ; sudo -E qemu -m 440 -net nic,vlan=0 -net tap,vlan=0
-localtime -monitor stdio /home/fbax/qemu/Win98C.cow -hdb
/home/fbax/qemu/Win98D.cow
   {tun0 (bridge0-  em0)}
Abort trap (core dumped)

Did something change that I might be unaware of?
What is the next step in resolving this problem?



Use qemu-0.9 instead. Unfortunately there is no amd64 package for it
with 4.8 (there's a conflict between gcc 3.4 and 4.2 packages which
needs handling manually), but you can build it from ports
(/usr/ports/emulators/qemu-old).



Thanks!  Things got a little tight with /usr only 4G; but after removing 
some stuff that did not belong there; qemu now working!

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/sd0e  3.9G3.6G106M97%/usr



qemu core dumped

2010-12-05 Thread Frank Bax
After my cdrom arrived; I upgraded to 4.8 -release soon after packages 
became available online.  I don't use qemu often; but when I tried to 
run it after upgrade; I get core dump.  I don't use kqemu.

I invoke qemu using same options (saved in file) as worked in 4.7:

$ pkg_info | grep qemu
qemu-0.12.4p0   multi system emulator
$ export ETHER=em0 ; sudo -E qemu -m 440 -net nic,vlan=0 -net tap,vlan=0 
-localtime -monitor stdio /home/fbax/qemu/Win98C.cow -hdb 
/home/fbax/qemu/Win98D.cow

 {tun0 (bridge0 - em0)}
Abort trap (core dumped)

Did something change that I might be unaware of?
What is the next step in resolving this problem?



Re: qemu core dumped

2010-12-05 Thread Frank Bax

On 12/05/10 15:58, Frank Bax wrote:

After my cdrom arrived; I upgraded to 4.8 -release soon after packages
became available online. I don't use qemu often; but when I tried to run
it after upgrade; I get core dump. I don't use kqemu.
I invoke qemu using same options (saved in file) as worked in 4.7:

$ pkg_info | grep qemu
qemu-0.12.4p0 multi system emulator
$ export ETHER=em0 ; sudo -E qemu -m 440 -net nic,vlan=0 -net tap,vlan=0
-localtime -monitor stdio /home/fbax/qemu/Win98C.cow -hdb
/home/fbax/qemu/Win98D.cow
{tun0 (bridge0 - em0)}
Abort trap (core dumped)

Did something change that I might be unaware of?
What is the next step in resolving this problem?



I just read /usr/local/share/doc/qemu/README.OpenBSD
I'm using amd64, but not -net user; I revised my cmd anyway and it still 
crashes...


$ sudo env ETHER=em0 qemu -net nic,model=rtl8139 -net tap -m 440 
-localtime /home/fbax/qemu/Win98C.cow -hdb /home/fbax/qemu/Win98D.cow

 {tun0 (bridge0 - em0)}
Abort trap (core dumped)



Re: ALIX CF card

2010-11-19 Thread Frank Bax

Thanks.  I've done this on another system; but forgot this time.

Also need to change /etc/ttys if login via serial console is desired.


On 11/18/10 08:24, Sergey Bronnikov wrote:

it is not a hang.
Just disabled output to serial console.

You should add lines:
set tty com0
stty com0 57600
to /etc/boot.conf

On 07:31 Thu 18 Nov , Frank Bax wrote:

I installed 4.7 to a CF card via usb connector on HP D530.  I then
inserted CF card into a new ALIX system with serial console.

Boot process hangs with both bsd.sp and bsd.rd (see below).

What is my next step in determining the problem here?


PC Engines ALIX.2 v0.99h
640 KB Base Memory
261120 KB Extended Memory

01F0 Master 044A ULTIMATE  CF CARD 16GB
Phys C/H/S 16383/16/63 Log C/H/S 1856/255/63 LBA
Using drive 0, partition 3.
Loading...
probing: pc0 com0 com1 pci mem[640K 255M a20=on]
disk: hd0+

OpenBSD/i386 BOOT 3.02

boot  boot bsd.rd
booting hd0a:bsd.rd: 5864788+916112 [52+221040+208132]=0x6e0600
entry point at 0x200120




ALIX CF card

2010-11-18 Thread Frank Bax
I installed 4.7 to a CF card via usb connector on HP D530.  I then 
inserted CF card into a new ALIX system with serial console.


Boot process hangs with both bsd.sp and bsd.rd (see below).

What is my next step in determining the problem here?


PC Engines ALIX.2 v0.99h
640 KB Base Memory
261120 KB Extended Memory

01F0 Master 044A ULTIMATE  CF CARD 16GB
Phys C/H/S 16383/16/63 Log C/H/S 1856/255/63 LBA
Using drive 0, partition 3.
Loading...
probing: pc0 com0 com1 pci mem[640K 255M a20=on]
disk: hd0+
  OpenBSD/i386 BOOT 3.02
boot boot bsd.rd
booting hd0a:bsd.rd: 5864788+916112 [52+221040+208132]=0x6e0600
entry point at 0x200120



Re: i386 and amd64 snapshots - kernel SHA256 mismatch

2010-10-16 Thread Frank Bax

Marco Peereboom wrote:

On Sat, Oct 16, 2010 at 01:08:25AM +, JC Choisy wrote:

That being out of the way, you got me wondering what good is
any integrity check which failure is OK.


It is only meant to help uptight people having some sort of false sense
of integrity/security.  It really is for release only because snapshots
are a moving target.  In my opinion the whole check is a giant waste of
time because every damn time the snaps are out of sync for a reason or
another people come whining to the list about something that is
irrelevant.



Am I correct in assuming that the code before this integrity check is 
not able to distinguish between release and snapshot?




Re: anyone tried the freebsd version of teamspeak3 with the freebsd emulation?

2010-08-15 Thread Frank Bax

Siju George wrote:

On Sat, Aug 14, 2010 at 6:08 PM, Stuart Henderson s...@spacehopper.org wrote:

On 2010-08-14, Sevan / Venture37 ventur...@gmail.com wrote:

On 14 August 2010 10:46, Stuart Henderson s...@spacehopper.org wrote:

no, but in general you want to use Linux emulation not FreeBSD emulation.
also, if it's threaded software, use GENERIC not GENERIC.MP.

Hi Stuart,
I'm just curious is that because of limitations in our freebsd
compatibility layer?

It's even less maintained than the linux one (and there's very little
point in doing so; most things you might run as a binary are going to be
available for Linux in either the same or a newer version as FreeBSD).



You don't get sound in linux emulation right?
I could never make sound work



I'm running Ventrilo with linux emulation; does that count?



pf.conf question

2010-07-22 Thread Frank Bax

My OpenBSD system has several network cards.
- pppoe0 - is connected to DSL line
- fxp0 - is connected to switch for local network
- ral0 - is wireless

I am able to access internet from computers on LAN.
From outside my home; I am able to use port 2000 to access a Win2K system.

When I try to access the same Win2K systemon port 11005; I get 
connection refused.



$ sudo cat pf.conf
set skip on lo
pass
block in on ! lo0 proto tcp to port 6000:6010
ext_if = pppoe0
int_if = fxp0
air_if = ral0
match out on $ext_if nat-to ($ext_if)
win2k= 192.168.0.3
match in on $ext_if inet proto tcp from any to ($ext_if) port 2000 
rdr-to $win2k
match in on $ext_if inet proto tcp from any to ($ext_if) port 11005 
rdr-to $win2k

$ sudo pfctl -f /etc/pf.conf



From external system:

$ telnet .dyndns.org 2000
Trying 64.231.xx.xxx...
Connected to .dyndns.org.
Escape character is '^]'.
Terminated

$ telnet .dyndns.org 11005
Trying 64.231.xxx.xxx...
telnet: connect to address 64.231.xxx.xxx: Connection refused


I don't see any difference is setup between port 2000 and 11005; are 
there any suggestions out there?




Re: pf.conf question answer

2010-07-22 Thread Frank Bax

Frank Bax wrote:
When I try to access the same Win2K system on port 11005; I get 
connection refused.


match in on $ext_if inet proto tcp from any to ($ext_if) port 2000 
rdr-to $win2k
match in on $ext_if inet proto tcp from any to ($ext_if) port 11005 
rdr-to $win2k




Sorry for the noise.  The service on port 11005 is udp; so connection 
was being refused by win2k system, not OpenBSD.




Re: OpenBSD users.

2010-07-17 Thread Frank Bax

Mateusz Gierblinski wrote:

Hi misc@

I'm just wondering. Where are you OpenBSD users from?

I'm from Belgium, anyone else?

Take care



There is an OpenBSD user in every country on this planet.



lpd printing

2010-05-07 Thread Frank Bax

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

Frank



sudo - protected directory

2010-04-19 Thread Frank Bax
The first example in 'man sudo' shows how to list files in a protected 
directory:

sudo ls /usr/local/protected

I am not sure how I would search the contents of files found in such a 
directory, for example:

$ sudo ls -l /var/spool/mqueue/
total 8
-rw---  1 root  wheel  2031 Apr 17 02:54 dfo3H6qkaT024430
-rw---  1 root  wheel   936 Apr 19 18:22 qfo3H6qkaT024430
$ sudo grep . /var/spool/mqueue/

How do I get some output from this grep command?



Re: Shutdown fails intermittently with OpenBSD running off SD MMC card

2010-03-05 Thread Frank Bax

nixlists wrote:

On 3/5/10, J.C. Roberts list-...@designtools.org wrote:


 look for the `-p` flag.



Know all about it. The problem is the kernel won't even get to that
point - it hangs on syncing disks... stage.



Seems you might not be alone...

http://www.mail-archive.com/misc@openbsd.org/msg72159.html



Re: Refusal to mention OpenBSD in a MSc Advanced Networking course

2010-02-19 Thread Frank Bax

Duncan Patton a Campbell wrote:

On Sun, 14 Feb 2010 08:11:21 -0700 (MST)
Diana Eichert deich...@wrench.com wrote:


On Sat, 13 Feb 2010, Steve Shockley wrote:


On 2/13/2010 6:49 PM, Diana Eichert wrote:

PS when I went to college BSD didn't exist and I turned out okay

The overly pedantic part of me wonders if you went to college pre-'77...

my introductory CS class was Algol-W, you figure out the timeline.  ;-)

diana



Hehe.  I did APL.  Was gonna be the next best thing to sliced bread ;-)




I did Algol-W, APL and SNOBOL (among others).  I do not remember which 
order.  There was also group on campus working on a multi-platform OS 
called THOTH written in Eh (but came after B and C appeared).  I seem to 
recall the third hardware was running this OS in about 8 hours.




Re: perl script-cron fails, at and command line work

2010-01-23 Thread Frank Bax

Chris Bennett wrote:

I just re-installed fresh from 4.5 to 4.6.

I now have a problem with a script that ran from cron for many months 
without problems.


 From cron I get:

Logfile LWP_SupeRref.log failed to open at /home/user/LWP/LWP_ref.pl 
line 73.


I have tried altering permissions, deleting file, touching file, etc

This script works just fine from command line and also using at command





Are you *sure* you know what directory the log file is being created in? 
 If the script is writing to default/current directory; perhaps your 
cron environment has changed.




Re: Root file system is growing strangely

2009-12-19 Thread Frank Bax

ropers wrote:

2009/12/18 Daniel Zhelev dan...@zhelev.biz:

after log in I sow that the root file system
is over 100%.


*Over* 100%? How is that even possible?




FAQ 14.14



Re: Comparing large amounts of files

2009-12-11 Thread Frank Bax

STeve Andre' wrote:

but am trying to come up with a reasonable way
of spotting duplicates, etc.



You mean like this...

$ cp /etc/firmware/zd1211-license /tmp/XX1
$ cp /var/www/icons/dir.gif /tmp/XX2
$ fdupes /etc/firmware/ /var/www/icons/ /tmp/
/tmp/XX2
/var/www/icons/dir.gif
/var/www/icons/folder.gif

/tmp/XX1
/etc/firmware/zd1211-licence
/etc/firmware/zd1211-license

/var/www/icons/uuencoded.png
/var/www/icons/uu.png

/var/www/icons/uuencoded.gif
/var/www/icons/uu.gif

/var/www/icons/folder.png
/var/www/icons/dir.png



Re: Source for LENOVO parts?

2009-11-11 Thread Frank Bax

Thanks!!  Excellent service.  fan replaced and all is good now.

Home renovations mean that my laptop was subjected to some concrete dust 
a few months ago; so I'm thinking my fan failure might have had 
something to do with that.




Eric Elena wrote:

The same thing happened to me 2 months ago. Maybe this fan is not very
reliable.
Anyway, I bought mine online on the IBM France website. For Canada, it
seems you have to contact the Toronto Parts Order Centre 
https://www-304.ibm.com/shop/americas/content/home/store_IBMPublicCanada/en_CA/parts.html



Le samedi 31 octobre 2009 C  08:31 -0400, Frank Bax a C)crit :

I have a Lenovo T60p (8744-J2U L3-CM199-07/07).
I have been running OpenBSD on it since I purchased it (Summer 2007).

The CPU fan is getting noisy and I'd like to replace it.

The store where I purchased my laptop cannot order the replacement part.

Can anyone suggest a supplier for this part?  I live 200km west of 
Toronto, ON, Canada.




Source for LENOVO parts?

2009-10-31 Thread Frank Bax

I have a Lenovo T60p (8744-J2U L3-CM199-07/07).
I have been running OpenBSD on it since I purchased it (Summer 2007).

The CPU fan is getting noisy and I'd like to replace it.

The store where I purchased my laptop cannot order the replacement part.

Can anyone suggest a supplier for this part?  I live 200km west of 
Toronto, ON, Canada.




image editor

2009-10-07 Thread Frank Bax

I'm looking for basic image editor: crop, resize, lossless jpg rotation.

Something minimalistic would be nice, so GIMP is out.



Re: spamd - nixspam list, September 30, 2009

2009-10-01 Thread Frank Bax

Rod Whitworth wrote:

nixpix:
#!/bin/sh
cd /root/data
rm -f nixspam
ftp http://www.openbsd.org/spamd/nixspam.gz
if [ $? -eq 0 ] ; then
gunzip nixspam.gz
cut -d   -f 1 nixspam /var/db/nixspam
fi



Any particular reason why you don't use:
zcat nixspam.gz | cut -d   -f 1  /var/db/nixspam

Obviously the above script must run before spamd-setup; how much sooner 
do you run it?




Re: Credit Card and OpenBSD 4.6

2009-09-15 Thread Frank Bax

patrick keshishian wrote:

On Tue, Sep 15, 2009 at 12:31 PM, Friedrich Locke wrote:

I was charge for OpenBSD 4.6 and i have not received any message, as
usual, informing the package was sent to me.
Is anyone else facing the same scenario ??


You have pre-ordered OpenBSD 4.6 (I assume). Pre-orders by their
definition, will not be available to be shipped until sometime in the
future.




It has been my experience that credit card is charged on the day the 
package is dropped into mail.  I usually receive the email confirmation 
that the package has been sent after the package has already arrived.




Re: cron problem

2009-07-02 Thread Frank Bax

Chris Bennett wrote:

I had an odd problem with cron.

I made three perl scripts: LWP4.pl, LWP5.pl and LWP6.pl

During testing, I put the following entry in cron:

33   *   *   *   *   *   LWP4.pl; LWP5.pl; LWP6.pl;




Too many asterisks?



Re: cron problem

2009-07-02 Thread Frank Bax

Chris Bennett wrote:

steve szmidt wrote:



Just off hand, are there not too many time parameters?

  

Probably, I just threw in some * to fill in extra ones.
I was just trying to show that I was purposefully running at a certain 
time during testing.

Too lazy to count them correctly :)




So how many asterisks are in your crontab?  An extra * will attempt to 
run every file in current directory.  Your script files wouldn't 
happen to be in the default directory would they?




Re: OT, .. Majordomo problem

2009-05-23 Thread Frank Bax

L. V. Lammert wrote:

On Sat, 23 May 2009, ropers wrote:


I don't know what causes your problem, but I saw this:


No kidding! Wonder why I sent the email to the list!

Why would MD reject an email when it is listed in the list members?



Your subject says it all; this is OT on this list; try MD list at:
http://www.greatcircle.com/majordomo/



Re: Even and Odd numbered OpenBSD versions

2009-05-19 Thread Frank Bax

Hugo Villeneuve wrote:

I think it's the reverse. Only install the odd numbered ones.

I had to run the single processor kernel in 4.4 because it didn't
like booting off the second CPU. I should have skipped that release.



Ah, extrapolation from a sample of one.  Very scientific.



Re: OpenBSD on Sun Netra X1

2009-04-28 Thread Frank Bax

Jussi Peltola wrote:

Depends on the db9-rj45 adaptor, some need a rollover cable, some a
straight one. Try it.



http://www.ossmann.com/5-in-1.html



Re: alternate shell not running

2009-04-25 Thread Frank Bax

Aaron Martinez wrote:

On Sat, Apr 25, 2009 at 3:39 PM, Aaron Martinez m...@proficuous.com wrote:
1) what does the /etc/passwd entry for one of these users look like?


lgf:*:1010:1::/home/ght:/usr/local/bbox/bin/login_script


2) when you say they get a standard shell, what *EXACTLY* do you mean?
   (If you mean they get a /bin/sh prompt and it runs their
.profile, then please say that)


when logging in as user ght




You changed shell for user lgf; then login as ght?



Re: alternate shell not running

2009-04-25 Thread Frank Bax

Aaron Martinez wrote:

Aaron Martinez wrote:

On Sat, Apr 25, 2009 at 3:39 PM, Aaron Martinez m...@proficuous.com
wrote:
1) what does the /etc/passwd entry for one of these users look like?

lgf:*:1010:1::/home/ght:/usr/local/bbox/bin/login_script


2) when you say they get a standard shell, what *EXACTLY* do you
mean?
   (If you mean they get a /bin/sh prompt and it runs their
.profile, then please say that)

when logging in as user ght



You changed shell for user lgf; then login as ght?


sorry.. i was just preserving identities.. and missed one lgf entry..  
the actual user is lgf.  i just was changing it to ght.  So everything is

in fact lgf there is no mixing of id's.

$ ls -l /usr/local/login_script
-rwxr-xr-x  1 root  wheel  2132 Apr 23 00:22 /usr/local/login_script



You issued ls command for a different script than the user's shell.



4.5 arrived in Canada

2009-04-17 Thread Frank Bax
This year I was watching more closely for pre-order page to be updated 
and paid a few extra bucks for express shipping.


Same picture - two sizes:

0.5M: http://gallery.bax.on.ca/OpenBSD45s.jpg
5.0M: http://gallery.bax.on.ca/OpenBSD45.jpg

Frank



Re: VNC and PF

2009-04-16 Thread Frank Bax

Yuriy A. Dmitrishin wrote:

Looks like it's my mistake.

This rule doesn't work when I connecting from my LAN, but only from ext. 
network.



Ah, then it's working properly.  From ext network; VNC should be run 
inside a tunnel since VNC sessions are not encrypted.  VNC passwords are 
sent as plain text.




Re: Assistance OpenBSD

2009-02-21 Thread Frank Bax

Chris Cooper wrote:

I can do simple stuff like pwd, cd, ls,
mnt CD, etc., but I cannot pkg_add from the 4.3 CD or run executable files. 
What I would like to do is add a browser and get on the web.

 snip
I have OpenBSD on my spare HP Pavilion N5250 notebook
with an Intel pentium CPU but it is not connected to the internet.



You want to browser the web; but you are not connected to the internet? 
 This could be a big problem!


You say you have the skills to mount cdrom and navigate to
4.4/packages/i386/
While in this directory; you can use sudo pkg_add ... to install a 
package; if it doesn't work, providing us the error message will help. 
Your user account will need to be in group wheel for sudo to work.


Frank



Re: spamd issues

2009-01-08 Thread Frank Bax

Darrin Chandler wrote:

On Tue, Jan 06, 2009 at 08:26:37PM -0500, Frank Bax wrote:

I notice that one example line was removed from pf.conf:
   table spamd persist
I guess I can delete that line from my file too?


Er, you'll still need that unless something's happened that I totally
missed.



I'm thinking that line remembers something during reboot (but I'm not 
sure what that is).  Does removing it forget GREY or WHITE or both?




If you are running spamd on your mail server then it's a bit simpler:

no rdr on $ext_if proto tcp from spamd-mywhite to any port smtp
no rdr on $ext_if proto tcp from spamd-white to any port smtp
rdr pass on $ext_if proto tcp from any to any port smtp \
   - 127.0.0.1 port spamd



Seems to be working just fine, thanks.  GREY/WHITE issue is still 
there though.




spamd issues

2009-01-06 Thread Frank Bax

I've been using spamd since 3.5 or 3.6 - It seems to be working great,
so mostly I just let it do it's thing and ignore it.

Today I was having some issues sending mail through a local ISP to my
system (4.4 release).  Some investigation showed that spamdb reports the
ip address of the ISP's smtp server as both WHITE and GREY?  This should
not be possible, should it?

$ sudo spamdb | grep 64.7.153.18
WHITE|64.7.153.18|||1231252840|1231254379|1234364784|9|0
GREY|64.7.153.18|smarthost1.sentex.ca|x...@clgw.ca|x...@clgw.ca|1231252840|1231254390|1231267240|10|0

Is it possible to remove the GREY entry (spamdb -d only removes WHITE
entires)?

I'm trying to remember how many config files need to be included for
this; hopefully, I don't miss any.


= = /etc/pf.conf

ext_if=rl0

in_mx=127.0.0.1

table spamd persist
table spamd-white persist
table spamd-mywhite persist

scrub in

rdr pass on $ext_if proto tcp from spamd-mywhite to port smtp \
- $in_mx port smtp
rdr pass on $ext_if proto tcp from spamd to port smtp \
- 127.0.0.1 port spamd
rdr pass on $ext_if proto tcp from spamd-white to port smtp \
- $in_mx port smtp
rdr pass on $ext_if proto tcp from !spamd-white to port smtp \
- 127.0.0.1 port spamd

pass in log on $ext_if proto tcp to ($ext_if) port smtp keep state
pass out log on $ext_if proto tcp from ($ext_if) to port smtp keep state


all:\
:myblack:mywhite:uatraps:nixspam:china:korea:

uatraps:\
:black:\
:msg=Your address %A has sent mail to a ualberta.ca spamtrap\n\
within the last 24 hours:\
:method=http:\
:file=www.openbsd.org/spamd/traplist.gz

nixspam:\
:black:\
:msg=Your address %A is in the nixspam list\n\
See http://www.heise.de/ix/nixspam/dnsbl_en/ for details:\
:method=http:\
:file=www.openbsd.org/spamd/nixspam.gz

china:\
:black:\
:msg=SPAM. Your address %A appears to be from China\n\
See http://www.okean.com/asianspamblocks.html for more details:\
:method=http:\
:file=www.openbsd.org/spamd/chinacidr.txt.gz:

korea:\
:black:\
:msg=SPAM. Your address %A appears to be from Korea\n\
See http://www.okean.com/asianspamblocks.html for more details:\
:method=http:\
:file=www.openbsd.org/spamd/koreacidr.txt.gz:


myblack:\
:black:\
:msg=SPAM: %A has been blacklisted.:\
:method=file:\
:file=/etc/mail/spamd_black.txt:

mywhite:\
:white:\
:method=file:\
:file=/etc/mail/spamd_white.txt:



= = = /etc/mail/spamd_white.txt
Adapted from

http://cvs.puremagic.com/viewcvs/greylisting/schema/whitelist_ip.txt

Site seems to be down at the moment; but it hadn't changed content in
sometime.



Re: spamd issues

2009-01-06 Thread Frank Bax

Darrin Chandler wrote:

On Tue, Jan 06, 2009 at 12:58:00PM -0500, Frank Bax wrote:

Today I was having some issues sending mail through a local ISP to my
system (4.4 release).  Some investigation showed that spamdb reports the
ip address of the ISP's smtp server as both WHITE and GREY?  This should
not be possible, should it?

$ sudo spamdb | grep 64.7.153.18
WHITE|64.7.153.18|||1231252840|1231254379|1234364784|9|0


GREY|64.7.153.18|smarthost1.sentex.ca|x...@clgw.ca|x...@clgw.ca|1231252840|
1231254390|1231267240|10|0

Is it possible to remove the GREY entry (spamdb -d only removes WHITE
entires)?


WHITE is seen first, so the GREY has no effect. This behavior started a
few releases ago, and it's been discussed several times. There's no need
to remove the GREY entries. They expire on their own in short order.



Ah, my bad; sorry.  Thanks for being kind enough to post the same answer 
a second time.  Now I've done a bit of homework.


http://marc.info/?l=openbsd-miscm=118755082205516w=2
http://marc.info/?l=openbsd-miscm=120033441815022w=2
http://marc.info/?l=openbsd-miscm=120507275423154w=2

The basic response was that this behaviour is normal; but I started to 
wonder about this when 2 of 3 posts did not contain a pf.conf file.  In 
the only thread (first one) where a pf.conf file was included; Edgars 
happened to mention:

  I've always had my spamd-white list match on a no rdr
  before any of the other rules.
I don't have a no rdr rule and neither did the OP that included his 
pf.conf file.


Going through the changelog for pf.conf, I notice this change Feb.2007:

http://www.openbsd.org/cgi-bin/cvsweb/src/etc/pf.conf.diff?r1=1.33;r2=1.34

I'm afraid I barely understood how spamd worked when I first did the 
setup back in 3.5; and now I don't fully understand the impact of these 
changes made to examples in pf.conf; but I do notice a few things. 
First, I notice that other people started having soon after this change 
was committed.  Is it possible that a change to my pf.conf would get rid 
of the duplicate ip addresses (once the GREY's had expired)?


I notice that one example line was removed:
   table spamd persist
I guess I can delete that line from my file too?

I notice that the two example rules that were changed match my 2nd and 
4th rules.  That cannot be coincidence.


in_mx=127.0.0.1
rdr pass on $ext_if proto tcp from spamd-mywhite to port smtp \
- $in_mx port smtp
rdr pass on $ext_if proto tcp from spamd to port smtp \
- 127.0.0.1 port spamd
rdr pass on $ext_if proto tcp from spamd-white to port smtp \
- $in_mx port smtp
rdr pass on $ext_if proto tcp from !spamd-white to port smtp \
- 127.0.0.1 port spamd

Should I change my file to:

rdr pass on $ext_if proto tcp from spamd-mywhite to port smtp \
- $in_mx port smtp
no rdr on $ext_if proto tcp from spamd-white to any port smtp
rdr pass on $ext_if proto tcp from spamd-white to port smtp \
- $in_mx port smtp
rdr pass on $ext_if proto tcp from any to any port smtp \
- 127.0.0.1 port spamd

I'm thinking my 3rd rule is now redundant - is this correct?

Frank



Re: ftp from script

2008-12-31 Thread Frank Bax

Ed Ahlsen-Girard wrote:

`ftp -ia ftp://host.domain/pub/OpenBSD/snapshots/architecture/*.tgz`;

Using system () does not get any different behavior, whether I pass a
list or a proper array.  In all cases I see a connection to the server, 
followed by a complaint of an invalid directory, and disconnection.



I don't use snapshots; but I used similar code to get packages.

Why use a list/array?  I use this code to get a single/multiple files 
using wildcards instead.  I made a slight mod to my script to test 
snapshots.


my $get = shift;
system( 'ftp -ia 
ftp://'.$site.'/pub/OpenBSD/'.$ver.'/packages/'.$arch.'/'.$get );


Did you remember to escape the asterisk if passing that into script?

./script \*.tgz



useradd /etc/security

2008-11-12 Thread Frank Bax
After a few upgrades; I noticed that new users added with useradd(8) 
(using commands in upgradeXX.htm) are created with 13 asterisks in 
passwd field.  During a new install only one asterisk is placed in this 
field for system users.  I was curious about this difference and feeling 
a bit adventurous; so I changed them all from 13 to 1 (including some 
created for packages).


The next day; there is a message in daily insecurity output:

Checking the /etc/master.passwd file:
Login _pgsql is off but still has a valid shell and alternate access 
files in home directory are still readable.


When I need to login (rarely) as _pgsql; I use sudo su - _pgsql. 
Since I don't need to have a password on this user; I changed _pgsql 
back to 13 asterisks.


I looked at /etc/security - at about line 40 and following there is a 
statement that bypasses the test for shell and home directory if the 
password is 13 characters.


Finally, the point...

I was thinking that new users added in upgradeXX should have only one 
asterisk instead of 13; so that /etc/security will produce warning if 
these users somehow have shells in the future?


Frank



Re: QEMU crashes

2008-11-04 Thread Frank Bax

Todd T. Fries wrote:

Just out of curiosity, humor me, run qemu as root with the following added
options:

-net nic,vlan=0 -net tap,vlan=0

I've observed that at some point user mode networking has started segv'ed on
amd64 when running any qemu guest, and am sorry to report I have not yet
tracked down the source of the issue..

Please let me know if you have other experiences.

Thanks,



This was interesting; I learned some new things.

First I tried su -; then qemu ... - but this results in sdl errors.
The above -net options cause /etc/qemu-ifup to be invoked; it took me a 
few minutes to figure out how to make that work properly.
When I try export ETHER=em0 ; sudo -E qemu ...; I am now able to send 
my files out of the guest - THANKS.


One problem - when I shutdown the guest, I get:
/etc/qemu-ifdown: could not launch network script
I run the script manually no problem.

BTW:  Since I first started using Win98 under qemu about a year ago; I 
noticed that Win98 guest does not keep accurate time?  It looks like 
only every other second is counted; so that after 2 hours, Win98 clock 
advanced only one hour.  Does this also happen on other guests?


Frank



QEMU crashes

2008-11-03 Thread Frank Bax
I've been using qemu to run a Win98 guest on i386 host for about a year. 
 On Aug.2, I installed an i386 snapshot that was a few days old.  Since 
then, I've been running a Win98 guest on qemu-0.9.1p3 with no issues.


Sometime over the past 12 months I realised I could be running amd64 on 
my Core2Duo processor; so (using purchased cdrom's) I made the switch to 
8.4 amd64 release over the weekend.  Not sure if I did it correctly; but 
I did it as an upgrade, then deleted and added all packages.  Seems to 
be working fine so far; except for some problems with qemu.


I notice that both -no-kqemu and -kernel-kqemu result in invalid option.

Am I allowed to run a guest like Win98 on host running amd64?  It seems 
to work ok when running a couple of apps (win  dos); as long as there 
is no network access.


The Win98 guest system crashes (segmentation fault, core dumped) when I 
access internet from the guest.  This can be either accessing a website 
with IE or running pscp (an scp program for windows, from makers of 
PuTTY).  Ping does not cause guest to crash.


Ping to 10.0.2.2 (host) works (time is 1ms).  Ping to internet ip 
address results in Request timed out.  Ping to name does manage dns 
lookup; but still gets Request timed out.


When the Win98 guest crashes; my mouse pointer goes with it.  I'm using 
icewm.  I manage to shutdown other apps with keyboard shortcuts; then 
restart X.  Is there a way to get mouse pointer back?


kqemu is not installed.

I don't know what other information about this issue to include here.

I'm not sure if a dmesg is appropriate; but here it is:

OpenBSD 4.4 (GENERIC.MP) #1812: Tue Aug 12 17:22:53 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3206639616 (3058MB)
avail mem = 3109740544 (2965MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (68 entries)
bios0: vendor LENOVO version 7IET30WW (1.11 ) date 07/13/2007
bios0: LENOVO 8744J2U
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT SSDT
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4)
EXP1(S4) EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3)
HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz, 1994.62 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,LONG
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz, 1994.34 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,LONG
cpu1: 4MB 64b/line 16-way L2 cache
ioapic0 at mainbus0 apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
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 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpicpu1 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130c2806000c28
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2000 MHz (1340 mV): speeds: 2000, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03
ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03: apic 1 int
16 (irq 11)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Mobility FireGL V5250 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: no integrated graphics
drm at vga1 unsupported
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02:
apic 1 int 17 (irq 11)
azalia0: codec[s]: Analog Devices/0x1981, Conexant/0x2bfa, using Analog
Devices/0x1981
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1 int
20 (irq 11)
pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic
1 int 16 (irq 11), address 00:1a:6b:6b:20:6c
ppb2 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1 int
21 (irq 11)
pci3 at ppb2 bus 3
wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02:
apic 1 int 17 (irq 11), 

Re: 4.4 (back) in Canada

2008-10-21 Thread Frank Bax

Don Hiatt wrote:

Just received 4.4 in Vancouver, BC along with my sweet new T-Shirt. :-)

OpenBSD developers rock, thank you gentlemen.




My disks and T-shirt arrived on Friday in Ontario!



ksh: tab completion problem

2008-09-19 Thread Frank Bax
When I finally made switch to OpenBSD on my day-to-day system; I 
transferred all my files from my old system.  One of the directory names 
has a $ in it.


I figured out how to easily reproduce the problem I encountered (using 
/bin/ksh):


mkdir '/tmp/test$1'
mkdir '/tmp/test$1/test$2'
cd /tmp/test [tab][tab]

The first [tab] has expected result; but not the second one.



Re: ntpd can hang on boot

2008-09-06 Thread Frank Bax

Peter Fraser wrote:

I stupidly screwed up my pf.conf, as a result ntpd -s which is invoked in
/etc/rc (as a result of my /etc/rc.conf.local) could not resolve the names of
the time servers.



What version?
http://kerneltrap.org/mailarchive/openbsd-misc/2007/11/16/420560



Re: OpenBSD 4.4 pre-orders

2008-09-04 Thread Frank Bax

new_guy wrote:

Theo de Raadt wrote:

Pre-orders for OpenBSD 4.4 (CD, tshirt, poster) are up at

   http://www.openbsd.org/orders.html



Do the first X number of pre-orders get autographed... or something :)





The first X pre-orders get a LOT more than just autographs!!  Order now!

It seems X is always lower than where my order is on list; I think 
perhaps X=0.


I keep hoping for the release where Canada Post delivers my copy before 
release date.




Re: httpd slowdown issues

2008-09-03 Thread Frank Bax

Chris Tankersley wrote:

Starting on line 2198 I start getting these kinds of output:
 23747 php  CALL  fcntl(0x5,0x3,0)
 23747 php  RET   fcntl -1 errno 9 Bad file descriptor
 23747 php  CALL  fcntl(0x6,0x3,0)
 23747 php  RET   fcntl -1 errno 9 Bad file descriptor
 23747 php  CALL  fcntl(0x7,0x3,0)



http://dev.mysql.com/doc/refman/5.0/en/not-enough-file-handles.html



4.3 hoststated renamed to relayd

2008-09-01 Thread Frank Bax
The upgrade43 guide does not mention that /etc/ftpusers shouldmust be 
changed.




Re: Not updating .libs1-gettext-0.16.1, remember to clean it

2008-08-15 Thread Frank Bax

macintoshzoom wrote:

how?





http://marc.info/?l=openbsd-miscm=120345554523124w=2



Re: -kernel-kqemu, WinXP guest on August 3 Snapshot

2008-08-07 Thread Frank Bax

Protocol Six Consulting wrote:

Hi,  :-)

I am trying to run a WinXP guest OS on qemu with the -kernel-kqemu 
command-line option.
Kqemu was installed on OBSD using the August 3 Snapshot package, and 
loads normally on system boot (see end of dmsg)


Running Windoze works fine on qemu *without* the -kernel-kqemu option 
specified, but when I use that option
XP always bluescreens right after a successful (Windows) log-in. In 
other words I can run kqemu fine in User Code mode only.


Still troubleshooting this, but so far I know that the bluescreen does 
not happen when Windoze is run in Safe Mode (which implies to me that 
some Windows driver is interacting badly with kqemu kernel code mode)


Has anyone else seen this issue?
Any insights and/or solutions?




I created a WinXP guest system one year ago; just out of idle curiosity. 
 WinXP has only one user without password, so login is automatic. 
There is no additional software installed.  I'm running Jul31 snapshot 
and packages.  I ran three tests:


1) Boots fine.  checked desktop properties.  Shutdown locked up system 
(had to power cycle).
2) started top first with 1-sec update cycle.  WinXP boots fine; 
shutdown fine.
3) With top still running; bootup locks up system; top stops updating; 
had to power cycle.


I have a Win98 guest that crashes with -kernel-kqemu
Windows protections error.  You need to restart your computer.

Frank



4.3 install hangs

2008-07-08 Thread Frank Bax

I'm trying to install 4.3 on a Dell Core2Duo desktop.

I tried both i386 and amd64 release disks.  Both hang during install 
(see part of dmesg below).


I was going to try serial console for a full dmesg up to point of 
failure; but there is no com port.


I manually typed dmesg from after the usb stuff.


4.3 i386 release:

isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckkbd0 at pckbc0 (kbd slot)
pckbcd0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
nxpx0 at isa0 port 0xf/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask fbfd netmask fffd ttymask 
rd0: fixed, 3800 blocks

4.3 amd64 release:

isa0 at mainbus0
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


I happen to have a i386 snapshot from Jun.27; but that stalls at same 
point as i386 release.


What should I try next?



Re: 4.3 install hangs

2008-07-08 Thread Frank Bax

Nick Guenther wrote:

On Tue, Jul 8, 2008 at 10:16 AM, Frank Bax [EMAIL PROTECTED] wrote:

I'm trying to install 4.3 on a Dell Core2Duo desktop.

I tried both i386 and amd64 release disks.  Both hang during install (see
part of dmesg below).

I was going to try serial console for a full dmesg up to point of failure;
but there is no com port.

I manually typed dmesg from after the usb stuff.


4.3 i386 release:

isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckkbd0 at pckbc0 (kbd slot)
pckbcd0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
nxpx0 at isa0 port 0xf/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask fbfd netmask fffd ttymask 
rd0: fixed, 3800 blocks

4.3 amd64 release:

isa0 at mainbus0
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


I happen to have a i386 snapshot from Jun.27; but that stalls at same point
as i386 release.

What should I try next?


Try to boot the MP kernel. You should be able to pick it from the
install disk's bootloader. Now, it won't run, because it won't find a
root disk, but it should give you an idea if it'll work. For my
Macbook2,1 I actually used a second laptop to do the install on, and
then put the harddrive back in the Mac after setting it to boot
bsd.mp.

-Nick




Thanks!  I'm don't know how to boot the MP kernel from install cdrom; 
but to remove/replace disks is an easy task; I've even done that before; 
not sure why I didn't think of it myself this time.  I installed using 
another system; then moved disk back to the Dell; which boots fine now. 
 Here is a dmesg (also sent to dmesg@):



OpenBSD 4.3 (GENERIC) #1368: Wed Mar 12 11:05:31 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 2136137728 (2037MB)
avail mem = 2062782464 (1967MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf (50 entries)
bios0: vendor Dell Inc. version 1.0.13 date 03/21/2008
bios0: Dell Inc. Vostro 200
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP HPET MCFG SLIC DMY2 APIC SSDT
acpi0: wakeup devices PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5) 
PEX5(S5) HUB0(S5) IGBE(S5) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) 
USB5(S3) EHC1(S3) EHC2(S3) AZAL(S5) PCI0(S5)

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEX0)
acpiprt2 at acpi0: bus -1 (PEX1)
acpiprt3 at acpi0: bus -1 (PEX2)
acpiprt4 at acpi0: bus -1 (PEX3)
acpiprt5 at acpi0: bus -1 (PEX4)
acpiprt6 at acpi0: bus -1 (PEX5)
acpiprt7 at acpi0: bus 2 (HUB0)
acpicpu0 at acpi0
acpitz0 at acpi0: critical temperature 120 degC
acpibtn0 at acpi0: PWRB
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Core(TM)2 Duo CPU E4600 @ 2.40GHz, 2394.30 MHz
cpu0: 
FPU,VME,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,NXE,LONG

cpu0: 2MB 64b/line 8-way L2 cache
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel 82G33 Host rev 0x02
ppb0 at pci0 dev 1 function 0 Intel 82G33 PCIE rev 0x02: irq 5
pci1 at ppb0 bus 1
vga1 at pci0 dev 2 function 0 Intel 82G33 Video rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 25 function 0 Intel ICH9 IFE rev 0x02: irq 10, address 
00:1d:09:9a:69:1a

uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x02: irq 5
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x02: irq 11
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x02: irq 11
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x02: irq 9
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 0x02: irq 3
azalia0: codec[s]: Realtek/0x0888
audio0 at azalia0
uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x02: irq 4
uhci4 at pci0 dev 29 function 1 Intel 82801I USB rev 0x02: irq 11
uhci5 at pci0 dev 29 function 2 Intel 82801I USB rev 0x02: irq 9
ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x02: irq 4
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0x92
pci2 at ppb1 bus 2
pcib0 at pci0 dev 31 function 0 Intel 82801IR LPC rev 0x02
pciide0 at pci0 dev 31 function 2 Intel 82801I SATA rev 0x02: DMA, 
channel 0 configured to native-PCI, channel 1 configured to native-PCI

pciide0: using irq 11 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: WDC WD5000AAKS-75A7B0
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: Optiarc, DVD+-RW AD-7200S, 101A SCSI0 
5/cdrom removable

Xenocara patch

2008-06-27 Thread Frank Bax
Yesterday, I upgraded from 4.2 to 4.3 release and icewm freezes when I 
hit Alt-tab.  I found this reference to a patch:


http://groups.google.com/group/comp.unix.bsd.openbsd.misc/browse_thread/thread/9de493f8bbab33a9

Avoiding keyboard shortcuts seems to be a workaround so far.

I'm not a source/patch kind of guy; so I'm wondering if I upgrade to 
-snapshot now; will this patch be included?  Might I then consider an 
upgrade to 4.4 release in the fall to be supported?


Is there another way to get just this binary patch?



Re: install42.iso hangs....any ideas?

2008-04-16 Thread Frank Bax

Unix Fan wrote:

Hannah Schroeter wrote:

 IIRC not, I have a DVD-RAM drive and it probes as cd(4), not as sd(4).

Why is everyone ignoring me? I wasn't asking if the device could be

 attached as sd, I meant.. could DVD-RAM drives be used as if
 they're like an ordinary drive that attached to sd(4).


That might not be what you asked; but it still could be the answer to 
your question.  I've been on this list long enough to know that if an 
answer does not right away make sense to me; then in some way I don't 
get it and extra reading is warranted.  Maybe that's happened here. 
OpenBSD names devices based on driver used.  I haven't looked at code (I 
wouldn't understand it anyway); but I would not expect the cd(4) device 
driver to support random writes; whereas the sd(4) driver would.  I 
suspect that if your DVD-RAM device *were* detected as sd; then it 
*might* behave as an sd device.


Then again; I might not even have a clue...



Re: Not updating .libs-XXXXX, remember to clean it (huh?)

2008-02-19 Thread Frank Bax

Juan Miscaro wrote:

1. I am shown the following:

Not updating .libs-curl-7.16.2, remember to clean it
Not updating .libs-db-4.2.52p11, remember to clean it
Not updating .libs-pcre-7.1, remember to clean it
Not updating .libs-png-1.2.18, remember to clean it

How do I clean it?



http://archives.neohapsis.com/archives/openbsd/2007-04/1780.html



apache/proxy - monitoring access to reverse proxy

2008-02-18 Thread Frank Bax

I'm wondering if an OpenBSD box with apache can solve this problem...

A website requires authentication to access and the are a limited number 
of accounts setup (within web application, not .htaccess) on that 
website; so accounts are shared.  Of course, this situation causes 
problems when two people use the same account, since the second login 
will disconnect the first one.  The simple/ideal solution is to create 
more accounts, but in this case, that is not possible.


I did manage to setup a local OpenBSD box with apache to access the real 
site using mod_proxy (ProxyPass  ProxyPassReverse).  Today's problem is 
unrelated to my previous question on this topic.


But I don't see anything in docs about software that will add yet 
another layer to manage the connections to remote server.  When a user 
log's into local webserver; it would be nice if I could present a list 
of used/unused account/connections to remote server/website.  Is this 
possible?  Is it possible to block access to local server when accounts 
on remote server are already in use?


Frank



Re: low-MHz server

2008-02-01 Thread Frank Bax

Sherwood Botsford wrote:
Why not try the recycle centers?  In Alberta now, electronics is 
diverted for salvage purposes.  I bet this is true in Ontario too.



Not yet.  Ontario is just now starting to think about such a program...

http://www.huffstrategy.com/MediaManager/release/Dianne-Saxe/21-1-08/Ontario-to-change-how-e-waste-is-processed/952.html



Re: panic: bogus long slot station count 0

2008-01-31 Thread Frank Bax

Frank Bax wrote:

panic is easily reproducible...
- power up the OLPC XO
- goto neighbourhood
- click on icon for my router.
- the OpenBSD router panics.


http://www.nabble.com/panic:-bogus-long-slot-station-count-0-td15142434.html

Is this a bug?  Is there anything (workaround?) I can do to get OLPC 
wireless connection?




panic: bogus long slot station count 0

2008-01-28 Thread Frank Bax

It's been an interesting two days.  About a week ago, my OLPC XO arrived
in the mail; I turned it on and tried to find my wireless network.
Almost immediately my family complains there's no internet!  Panic on
the OpenBSD router.  Well, I had my work cut out for me because I'd
never setup serial console before.  Thanks to FAQ; changes on router
were quite easy (even though it's i386 and there were lots of caveats
about maybe it won't work).  Then to find a null-modem cable (I knew I
had usb/serial cable, but it took some time to find it).  I could have
done it with just the null-modem cable; but that would mean I'd use a
windows system for console and I thought if I was going to do this; I'd
do it right - OpenBSD all the way.  I did use a windows machine to make
sure everything was setup and hookup correctly; since I had used
hyperterm and null modems cables in another life.  Then came a BIG
problem (for me).  What program does one use on OpenBSD to talk on the
serial port?  I figured the answer had to be out there somewhere (it was
- 'tip'); but it took me HOURS to find it.  By comparison, it took only
a few minutes to learn how to modify /etc/remote to talk to usb/serial
cable on ttyU0.  Then I had to wait for the people in the house to stop
using the internet...

panic is easily reproducible...
- power up the OLPC XO
- goto neighbourhood
- click on icon for my router.
- the OpenBSD router panics.

I'm not sure what to include, but here is ifconfig, trace, ps, dmesg.

$ ifconfig
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33208
groups: lo
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
fxp0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500
lladdr 00:06:29:33:a4:91
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.0.2 netmask 0xff00 broadcast 192.168.0.255
inet6 fe80::206:29ff:fe33:a491%fxp0 prefixlen 64 scopeid 0x1
vr0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:50:ba:0a:33:9d
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::250:baff:fe0a:339d%vr0 prefixlen 64 scopeid 0x2
ral0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500
lladdr 00:12:17:99:70:2d
groups: wlan
media: IEEE802.11 autoselect mode 11g hostap
status: active
ieee80211: nwid XX chan 11 bssid 00:12:17:99:70:2d nwkey
not displayed 100dBm
inet 10.0.0.2 netmask 0xff00 broadcast 10.0.0.255
inet6 fe80::212:17ff:fe99:702d%ral0 prefixlen 64 scopeid 0x3
enc0: flags=0 mtu 1536
pppoe0: flags=8851UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST mtu 1492
dev: vr0 state: session
sid: 0x395 PADI retries: 0 PADR retries: 0 time: 00:15:51
sppp: phase network authproto pap authname b1XX
groups: pppoe egress
inet6 fe80::206:29ff:fe33:a491%pppoe0 -  prefixlen 64 scopeid 0x6
inet 65.95.136.148 -- 64.230.197.50 netmask 0x
bridge0: flags=41UP,RUNNING mtu 1500
groups: bridge
pflog0: flags=141UP,RUNNING,PROMISC mtu 33208
groups: pflog



panic: bogus long slot station count 0
Stopped at  Debugger+0x4:   leave
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb trace
Debugger(d6445800,d07ac840,d08c7bdc,d0f48030,d1082e00) at Debugger+0x4
panic(d0686960,0,d08c7c1c,d0f4a0c0,d0f28300) at panic+0x63
ieee80211_node_leave_11g(d0f48030,d1082e00,d08c7c0c,0) at
ieee80211_node_leave_
11g+0xa2
ieee80211_node_leave(d0f48030,d1082e00,d1082e00,58,0) at
ieee80211_node_leave+0
x94
ieee80211_input(d0f48030,d6615d00,d1082e00,58,0,d62e0800) at
ieee80211_input+0x
267
rt2560_decryption_intr(d0f48000,d08c,0,0) at rt2560_decryption_intr+0x296
rt2560_intr(d0f48000) at rt2560_intr+0xfa
Xrecurse_legacy9() at Xrecurse_legacy9+0xb1
--- interrupt ---
apm_cpu_idle(c0,d078d380,d078d200,7fff,d0335a7b) at apm_cpu_idle+0x42
idle_loop(d08c7f00,4,d08c7f18,d0332d66,d08c7f00) at idle_loop+0x5
sleep_finish(d08c7f00,1,4,d06979cc,0) at sleep_finish+0x4d
tsleep(d078d200,4,d06979cc,0) at tsleep+0x7a
uvm_scheduler(d078d1dc,3,0,d064e610,2) at uvm_scheduler+0x1b
main(0,0,0,0,0) at main+0x713
ddb ps
   PID   PPID   PGRPUID  S   FLAGS  WAIT  COMMAND
 25243  27935  27935 67  3   0x180  netconhttpd
 18572  1  18572  0  3  0x4082  ttyin getty
  6770  1   6770  0  3  0x4082  ttyin getty
 23595  1  23595  0  3  0x4082  ttyin getty
 12594  1  12594  0  3  0x4082  ttyin getty
 30877  1  30877  0  3  0x4082  ttyin getty
 18003  1  18003  0  3  0x4082  ttyin getty
  8486  17547  17547  0  3   0x181  pause smbd
 21508  1  21508  0  3   

Re: spamd - 250 return text

2008-01-28 Thread Frank Bax

On Aug 4, 2007 Peter Fraser wrote:

I think that the problem is a bad mail program at your clients,
A user should not see the 250 status, it is not a
failure of any sort but I have seen it as a return
status sent to a user.

Here is an example that I have seen from someone who sent us
a message. The message failed and this is the status that they
received:

Reporting-MTA: dns; toq7.bellnexxia.net
Arrival-Date: Fri, 20 Jul 2007 21:26:11 -0400
Received-From-MTA: dns; Christine (64.230.70.248)
Content-Type: text/plain

Final-Recipient: RFC822; [EMAIL PROTECTED]
Action: failed
Status: 4.4.7
Remote-MTA: dns; thinkage.ca
Diagnostic-Code: smtp; 250 This is hurting you more than it is hurting me.




This bounce message has nothing to do with client mail program.
It's the ISP's mail server.  bellnexxia.net is part of bell/sympatico in
Canada.  I got an almost identical bounce message (below) this morning
after trying to post to misc@ on the weekend.  My mail client is
Thunderbird on OpenBSD.  I suspect the problem is that bellnexxia's smtp
server has managed to get itself on a spam blacklist; in which case;
the 250 msg doesn't really convey that point.  In any case; I'm sending via
a different isp so this msg has a chance of getting through.

- - - - -

The following recipients did not receive this message:

 misc@openbsd.org

Reporting-MTA: dns; tomts16.bellnexxia.net
Arrival-Date: Sat, 26 Jan 2008 19:06:06 -0500
Received-From-MTA: dns; toip5.srvr.bell.ca (209.226.175.88)

Final-Recipient: RFC822; misc@openbsd.org
Action: failed
Status: 4.4.7
Remote-MTA: dns; openbsd.org
Diagnostic-Code: smtp; 250 This is hurting you more than it is hurting me.



Re: OT: Can an SSH alternative to WebDav be use on OpenBSD

2008-01-25 Thread Frank Bax

Boris Goldberg wrote:

Hello Daniel,

  I  believe  it  should be possible to set up samba-over-ssh. I mean samba
listening localhost only on the server andputty
(www.chiark.greenend.org.uk/~sgtatham/putty/)   with   port  forwarding  on
clients.
  You  can also use samba-over-ipsec. IPSec is not less secure than ssh and
gives you more flexibility.




Has anyone figured out how to save PuTTY tunnel settings (whether for 
samba or anything else); so that they can be easily dropped onto 
multiple systems without having to do manual setup on each one?




Re: most secure graphical browser

2008-01-17 Thread Frank Bax

Douglas A. Tutty wrote:

I have a box that I want to keep as secure as I can but I also need to
be able to use a graphical browser from it (I know that this is a
trade-off).  


There is no graphical browser in base.  I don't need or want this
browser to do javascript or flash (I have a different box for
entertainment).  Of the browsers in packages, which browser would people
think is likely the most secure?  



Have you considered running the browser in a virtual environment?



Re: spamd-setup hangup/timeout settings

2008-01-14 Thread Frank Bax

Jason George wrote:

My spamd-setup always takes 20-30 minutes on two servers (4.1 and 4.2).
  This is not normal?  When I run it manually; most of the time is
spent downloading traplist.gz


You are all connecting to beck@'s machine at the University of Alberta 
(www.openbsd.org) ?


I use the same major ISP that the U of A uses as one of its principal peers.  
I get timeouts, poor throughput and generally the same behaviour as mentioned 
above for all transfers to that site (spamd lists, snapshots, etc).



It appears somebody changed something on Saturday.  I had several 
downloads on that day timeout after 332 minutes.  Since then, they are 
most often in 15-35 second range; never over 2 minutes.  Thanks!




Re: spamd-setup hangup/timeout settings

2008-01-09 Thread Frank Bax

Jason George wrote:

My spamd-setup always takes 20-30 minutes on two servers (4.1 and 4.2).
  This is not normal?  When I run it manually; most of the time is
spent downloading traplist.gz


You are all connecting to beck@'s machine at the University of Alberta 
(www.openbsd.org) ?


I use the same major ISP that the U of A uses as one of its principal peers.  
I get timeouts, poor throughput and generally the same behaviour as mentioned 
above for all transfers to that site (spamd lists, snapshots, etc).



Are there any alternative?  /etc/mail/spamd.conf mentions 
www.de.openbsd.org; but Beck's traplist.gz is not actually mirrored there.


Frank



Re: spamd-setup hangup/timeout settings

2008-01-08 Thread Frank Bax

Florian Fuessl wrote:
Frank Bax wrote: 

My spamd-setup always takes 20-30 minutes on two servers (4.1 and 4.2).
  This is not normal?  When I run it manually; most of the time is
spent
downloading traplist.gz

This morning, I changed the crontab time /usr/libexec/spamd-setup -d

4.1 runtimes (minutes): 39, 10, 27, 32
4.2 runtimes (minutes): 23, 29, 22, 22



The runtime here is usually only a few seconds:
[...] time /usr/libexec/spamd-setup -d
blacklist becks 110141 entries
blacklist nixspam 39962 entries
blacklist sorbs-zombie 102 entries
blacklist sorbs-dul 277194 entries
whitelist sorbs-dul-white 357120 entries
0m13.34s real 0m5.80s user 0m2.21s system

That's why it's so strange, that sometimes spamd-setup process hangs and
does not quit within 20 minutes. :-
Any ideas, how to handle that case correctly or how to debug that case?



Sorry, I can't help you.  I have determined that my problem is with 
download.  I've timed the downloads (wget only, not spamd-setup) between 
27 seconds and 45 minutes.  I'm no expert here; but I don't think it's 
name resolution (as Peter suggested), because wget starts off 
downloading rather quickly, then slows/stalls during download; one time 
it even timed out and started over on its own.  My servers are co-locate 
and I've asked my ISP to check into it; because I'm thinking the problem 
is outside my box.


Frank



Re: download problems

2008-01-08 Thread Frank Bax

Doug:

Just curious.  Does the same problem exist on your OpenBSD boxes?  You
can also use lynx if you don't have wget installed.

time lynx -dump http://www.openbsd.org/spamd/traplist.gz  /dev/null

Frank




Frank Bax wrote:

Doug:

I've been noticing that my systems seem to sometimes hang at spamd 
during startup.  I've been doing some checking and I think it might be 
because spamd-setup is being run during startup (as well as cronjob).


spamd-setup is taking 20-30 MINUTES to run on each of my servers; yet 
a posting on OpenBSD list indicates this should take UNDER 1 MINUTE.  
Part of spamd-setup downloads current blacklists for blocking spam.  
To test download speeds, I tried wget to download the file:


time wget http://www.openbsd.org/spamd/traplist.gz

On Sunday afternoon, I ran wget twice on both servers:
   209.205.45.62 - download times: 27sec, 34min
   209.205.45.73 - download times: 11min, 3min

Obviously, there is a huge variability in download times.  Is there 
some network config problem that could be causing these delays?


Frank




Re: spamd-setup hangup/timeout settings

2008-01-06 Thread Frank Bax

Florian Fuessl wrote:

I'm running spamd-setup via regular cronjob every 20 minutes. Sometimes the
spamd-setup process seems to hang and does not finish within this period,
although all black- and whitelists are local files.

Is there a way define timeouts for tasks of spamd-setup? What solution is
recommended for this case? Killing the running spamd-setup task(s) before
starting a new one?



My spamd-setup always takes 20-30 minutes on two servers (4.1 and 4.2). 
 This is not normal?  When I run it manually; most of the time is spent 
downloading traplist.gz


This morning, I changed the crontab time /usr/libexec/spamd-setup -d

4.1 runtimes (minutes): 39, 10, 27, 32
4.2 runtimes (minutes): 23, 29, 22, 22

blacklist myblack 29 entries
whitelist mywhite 107 entries
Getting http://www.openbsd.org/spamd/traplist.gz
blacklist uatraps 61229 entries
Getting http://www.openbsd.org/spamd/nixspam.gz
blacklist nixspam 4 entries
Getting http://www.openbsd.org/spamd/chinacidr.txt.gz
blacklist china 431 entries
Getting http://www.openbsd.org/spamd/koreacidr.txt.gz
blacklist korea 270 entries
   22m10.16s real 0m1.66s user 0m0.37s system



Re: Marry Christmas!

2007-12-24 Thread Frank Bax
Christmas and a pagan holiday might both be celebrated on the same day; 
but this does not make Christmas a pagan holiday,




Marco Peereboom wrote:

Christmas is a pagan holiday so it really does not matter if one is
religious or not.

On Sun, Dec 23, 2007 at 07:11:46PM +0100, Maxim Bourmistrov wrote:

subject to you all, religious or not!

P.S. and Happy New Year!

//Santa




Intel D946GZIS sound, video, nic?

2007-12-08 Thread Frank Bax

I have the opportunity to install several low-end non-Windows desktops
in a non-profit agency.  Over the past 5 years; we've tried a handful of
Linux distributions; each one a little better than the one before.  I've
watched OpenBSD progress a lot in desktop arena over this time period
and I want to try it this time; despite my own negative experience with
a lenovo laptop (which I still use anyway).  We're going to get one
system initially; if everything works out; we could get about a dozen
systems next year.

Windows and Linux users at this agency already use OpenOffice and
Firefox on P3 systems.  email client is either Outlook Express or Kmail;
but I expect to get rid of Kmail.

Our hardware supplier deals almost exclusively with Windows users (no
surprise); in the low-end business market, they sell many systems with:
Intel D946GZIS motherboard
SigmaTel* STAC9227 audio codec
Intel GMA 3000 onboard graphics subsystem
10/100 Intel 82562G Platform LAN Connect (PLC)
Pentium Dual Core E2160
RAM 1G
80G hard disk
LG GSA-H62N SATA DVD-RW

I don't see the onboard sound/video/nic in i386.html?  Our vendor says 
All of the newer Intel boards use the Intel 3000 GMA and the same NIC 
also; so I must be the one missing something here?


There are no SATA DVD drives listed in i386.htm?

Frank



Re: RTL8185 wireless support?

2007-12-01 Thread Frank Bax

Jonathan Gray wrote:

On Fri, Nov 30, 2007 at 11:42:53PM -0500, Frank Bax wrote:

TP-LINK 802.11g/b pci cards (model TL-WN353G) are on sale; so I got one.
Chipset is marked RTL8185L.

I found a reference to RTL8185 in CVS, but I'm not clear on what the Sep5 
comments for if_rtw_pci.c are saying?  It either says:

a) RTL8185 was supported, but now only if RTW_DEBUG is set?
b) RTL8185 was supported with RTW_DEBUG, but now??


RTL8185 support was started but could not be finished due
to lack of information on the radios.



Would contributing a device help?  Or is it vendor docs you need?



Re: how best to handle DNS on firewalled home network?

2007-11-15 Thread Frank Bax

Jonathan Thornburg wrote:

My plan is to have the firewall run its own dhcpd on its inside interface,
giving out private client addresses in the 192.168.0.0/16 address range.
(This way clients can be kept at the same MS-Windoze configure everything
automagically DHCP settings they would use elsewhere.)



The OpenBSD router/firewall on my home network uses only dhcpd and 
named; a few pf rules to allow some port forwarding; and ipcheck to 
monitor dynamic ip address.  dhcpd tells clients OpenBSD is name-server.




Re: wine question - BAT2EXE?

2007-10-07 Thread Frank Bax

Frank Bax wrote:
As you can see from my posts (wine and qemu); I am open to any solution 
that will allow me to run this app with performance approaching 
(preferably faster than) native P3-600.  I'll donate C$100 to OpenBSD if 
it works before year-end - it's not much, but its more than US$100 for 
the first time in +30 years.  Shucks, I'll probably make the donation 
anyway; after all, the cost of a cdrom has been constant for a couple of 
years now.



Holy screen savers Batman!!

Thank you Jona Joachim for posting a question answered in August.
Thank you Peter N. M. Hansteen for answering the same question twice.
Thanks especially to Richard Toohey for keeping me thinking about this 
issue off-list over the past few days (and the trip down memory lane); I 
could have easily missed todays emails as well.


I missed the initial thread discussing X11 speed on Lenovo laptop.  Here 
I thought that problem had something to do with the fact I was using 
vesa driver and that it was unrelated to qemu performance.


I boot bsd.mp with acpi enabled and the data conversion is completed in 
1:50 (down from 6:00); my target was 1:20 (speed on native P3-600). 
Close enough!


I just donated $100 to the project.  What a great team!

Frank



Re: wine question - BAT2EXE?

2007-10-06 Thread Frank Bax

wine-990225 does not run BAT or COM files; only EXE files.

There are two problems with:
wine command.com /c progam.bat
wine does not execute COM and expects every argument to be executable.

I've seen some references to cmd and wcmd (which seem to be wine 
internal replacement for command.com); but as near as I can tell, this 
is a feature added in later versions of wine; because I can't get it to 
work either.


My plan is to create a BAT file containing
cd 
program.exe
And convert to an EXE file, thereby (hopefully) avoiding problem in 
initial post.


It is not necessary for the BAT2EXE program itself to work on wine (I 
can run that native); but I need the resulting EXE to run on wine.


I've used OpenBSD for hosting (apache/mail) since 2000; and last year we 
setup an OpenBSD router in the house (with wifi even).  I just moved 
from my (7 yr old) P3-600 laptop with Win98 to a new laptop with OpenBSD 
in August.  I tried OpenBSD desktop several times over those years; but 
kept switching back - OpenBSD has come a LONG way with desktop support 
in recent years!


As you can see from my posts (wine and qemu); I am open to any solution 
that will allow me to run this app with performance approaching 
(preferably faster than) native P3-600.  I'll donate C$100 to OpenBSD if 
it works before year-end - it's not much, but its more than US$100 for 
the first time in +30 years.  Shucks, I'll probably make the donation 
anyway; after all, the cost of a cdrom has been constant for a couple of 
years now.


Frank


ropers wrote:

Sorry if this is nosy and sounds stupid, but I'm intrigued:
Why would you need your .bat to become a .exe file?
Hiding your code is obviously not a valid reason, or you wouldn't be
asking this on the OpenBSD mailing list.

On 05/10/2007, Frank Bax [EMAIL PROTECTED] wrote:

Does know of a BAT2EXE program that produces an EXE which works under
wine?  First hit on google bat2exe wine indicates there is one that
works on Linux (written in delphi), but the link is broken.

I've tried several.  Some actually create COM (not EXE) files which wine
won't run.  Others create EXE files that crash in various ways under wine.

Frank



Frank Bax wrote:

I installed wine-990225p0 from packages on 4.1 and can run simple
programs like sol and notepad.  I have an old program I'm trying to run;
but this program cannot find it's own files unless the current working
directory is set to the directory where software was installed.  It
seems more recent wine versions support 'bat' files which would solve
this; but this doesn't seem to work in this version.

When I try:
wine c://program.exe
the software complains that it cannot open LIBS\FOXTOOLS.FLL

This file is found at C:\\LIBS\FOXTOOLS.FLL

Is there a way to run something like this on wine 990225?:
cd 
program.exe

If this is not workable on 990225; do current wine versions work on
OpenBSD?

Frank




Re: wine question - BAT2EXE?

2007-10-05 Thread Frank Bax
Does know of a BAT2EXE program that produces an EXE which works under 
wine?  First hit on google bat2exe wine indicates there is one that 
works on Linux (written in delphi), but the link is broken.


I've tried several.  Some actually create COM (not EXE) files which wine 
won't run.  Others create EXE files that crash in various ways under wine.


Frank



Frank Bax wrote:
I installed wine-990225p0 from packages on 4.1 and can run simple 
programs like sol and notepad.  I have an old program I'm trying to run; 
but this program cannot find it's own files unless the current working 
directory is set to the directory where software was installed.  It 
seems more recent wine versions support 'bat' files which would solve 
this; but this doesn't seem to work in this version.


When I try:
wine c://program.exe
the software complains that it cannot open LIBS\FOXTOOLS.FLL

This file is found at C:\\LIBS\FOXTOOLS.FLL

Is there a way to run something like this on wine 990225?:
cd 
program.exe

If this is not workable on 990225; do current wine versions work on 
OpenBSD?


Frank




Re: qemu speed (was: wine question)

2007-10-04 Thread Frank Bax
Indeed, this is a FoxPro program.  I had tried changing the path; and 
tested it by starting program without using full path to EXE - although 
the program does startup this way; it still fails at the same point.


I also tried QEMU; but was still researching options before bringing 
speed question here.  I've read that it can be a bit slow; but I'm 
wondering HOW slow?  I use the FoxPro program to convert a database from 
one format to another.  Native Win98 on P3-600 the process takes 1:20 
(min:sec).  On a 2GHz Core2Duo, QEMU takes 6:00 minutes.  Is this 
expected speed?  On QEMU/BSD forum, it was suggested I compile from 
source, so I used ports instead of package, but there was no change to 
speed of this process.  Files are currently inside a virtual disk.  Is 
that fastest for disk i/o?  Am I likely to speed it up if I have files 
on host and access them via samba?  Is there another way to access host 
files from Win98 guest?


Frank



Richard Toohey wrote:
I do not know much about wine, but the issue interested me ... I've 
built from ports and

I am having a look.

 From the manual page, re. the wine configuration file, it has this:

   format: path = directories separated by semi-colons
   default: C:\WINDOWS;C:\WINDOWS\SYSTEM
   Used to specify the path which will be used to  find  exe-
   cutables and .DLL's.

Can you add C:\ and/or C:\\LIBS to that list and see if it helps?

A FLL looks like a FoxPro dynamic link library, so it should count as a 
DLL.


Back to RTFMing ...

On 3/10/2007, at 8:27 AM, Joachim Schipper wrote:


On Mon, Oct 01, 2007 at 05:56:46PM -0400, Frank Bax wrote:
I installed wine-990225p0 from packages on 4.1 and can run simple 
programs

like sol and notepad.  I have an old program I'm trying to run; but this
program cannot find it's own files unless the current working 
directory is

set to the directory where software was installed.  It seems more recent
wine versions support 'bat' files which would solve this; but this 
doesn't

seem to work in this version.

When I try:
wine c://program.exe
the software complains that it cannot open LIBS\FOXTOOLS.FLL

This file is found at C:\\LIBS\FOXTOOLS.FLL

Is there a way to run something like this on wine 990225?:
cd 
program.exe

If this is not workable on 990225; do current wine versions work on
OpenBSD?


I'm not sure if there is a way to 'cd' on OpenBSD's version of Wine. As
to porting: more recent Wines do weird things with threads, if I
understand the issue correctly. In short, don't expect an update soon.

Qemu works fine, if you don't need to run a particularly demanding
program.

Joachim

--
TFMotD: inet6 (4) - Internet protocol version 6 family




Re: OpenBSD sticker considered cool by a layman

2007-10-02 Thread Frank Bax

Eke Nordin wrote:

On 10/2/07, Hannah Schroeter [EMAIL PROTECTED] wrote:

Hello!

On Mon, Oct 01, 2007 at 10:29:30PM -0500, Todd Alan Smith wrote:

On 10/1/07, Anton Karpov [EMAIL PROTECTED] wrote:

i have nothing to hide ;)

http://papers.ssrn.com/sol3/papers.cfm?abstract_id=998565

Cool link... Information about an article about privacy, and for
downloading it you need javascript and whatever more... (I didn't manage
to get the full text).


Not to mention no download unless registration.

Sort of makes the whole excercise rather pointless (if the point
wasn't to laugh at gullible people).



Scroll down a bit further - the PDF downloads do not require registration.



wine question

2007-10-01 Thread Frank Bax
I installed wine-990225p0 from packages on 4.1 and can run simple 
programs like sol and notepad.  I have an old program I'm trying to run; 
but this program cannot find it's own files unless the current working 
directory is set to the directory where software was installed.  It 
seems more recent wine versions support 'bat' files which would solve 
this; but this doesn't seem to work in this version.


When I try:
wine c://program.exe
the software complains that it cannot open LIBS\FOXTOOLS.FLL

This file is found at C:\\LIBS\FOXTOOLS.FLL

Is there a way to run something like this on wine 990225?:
cd 
program.exe

If this is not workable on 990225; do current wine versions work on OpenBSD?

Frank



Re: Bug in the wireless wpi driver ?

2007-09-17 Thread Frank Bax

Catalin Stoian wrote:

Ah, it was midnight when I wrote this. I truly meant ls instead of
cat, sorry. I just wanted to show that that firmware package is
installed correctly, ignore that part if you want. And I don't
understand what you mean with the radio thing.



Neither cat nor ls will show pkg was installed; only that you downloaded 
it.  Try:


$ pkg_info | grep wpi
wpi-firmware-2.14.4 Firmware binary image for wpi driver

The radio thing means check your laptop for a physical switch or 
Fn-key sequence that will turn your radio (wpi device) on/off.  On some 
laptops there is a physical switch that will turn off/on both wireless 
network and bluetooth at the same time.


Frank



Re: Lenovo 8744-J2U - several questions

2007-08-10 Thread Frank Bax

At 06:36 AM 8/9/07, Eric Elena wrote:


Le mercredi 08 aoC;t 2007 C  10:55 -0400, Frank Bax a C)crit :
 At 04:49 AM 8/7/07, Eric Elena wrote:

 Le lundi 06 aoC;t 2007 C  21:21 -0400, Stephan Andre' a C)crit :
   On Monday 06 August 2007 18:29:12 Matthieu Herrb wrote:
On 8/6/07, Frank Bax [EMAIL PROTECTED] wrote:
 Just got a new Lenovo 8744-J2U laptop and installed the Aug.1 
snapshot:


 vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 
0x71d4 rev

 0x00
   
Oh and I forgot: this is a Mobility FireGL V5250, which is indeed not
supported by the current X.Org ati driver. It should be supported by
the new 'avivo'  driver, but this driver is not yet available for
OpenBSD.
  
   Matthieu,  I'm also looking at the Lenovo T60.  Is the avivo driver
   ready for use, and how much effort is there in incorporating it
   into Xenocara?   I'd really like a new laptop--my A31p is old.
  
   Thanks, STeve Andre'
  
 
 I tested the avivo driver running linux, it works fine with a firegl
 5200 card. There is only one trouble with DPMS: the screen displays
 something weird when it switches off then switches on.
 Running openbsd stable, I use the vesa driver but there is no problem
 here.


 Does your laptop have a wide-screen monitor like mine?

No, my t60p has a normal screen monitor.

 In T60p BIOS, there
 is an option HV expansion which will stretch output to always fill the
 screen.  With this option enabled, I am able to fill the monitor, but
 images do not have proper aspect ratio; so for now I have disabled the 
option.


There is also this option in older thinkpad bios. I have it enabled and
as I said it works fine. What is the resolution you would like to work?



I'm trying to get 1680x1050; but so far only 1280x1024 works at the moment.
dmesg and xorg.conf were in original post, found here:
http://permalink.gmane.org/gmane.os.openbsd.misc/127104
Xorg.0.log is available here:
http://www.execulink.com/~fbax/Xorg.0.log



Re: Intel Core 2 - errata pulled?!?

2007-08-10 Thread Frank Bax

At 11:01 AM 8/8/07, Nick Holland wrote:

Asking Does OpenBSD support my new processor is usually missing the
point.  Ask if it supports your new COMPUTER.  Better yet, get yourself
one of those credit-card CDR blanks, drop cd42.iso on it, and carry
it with you and find out, or on modern computers (duh, which we are
talking about, right?), grab a USB flash drive, and put a test install
on that, and you can boot the entire OS, test X, NIC, whatever, and
grab a dmesg, drop it on disk and analyze it later.




Excellent idea; except there is only one Lenovo laptop (its a C300) on 
display in computers stores in the city I live. 



Re: Lenovo 8744-J2U - several questions

2007-08-08 Thread Frank Bax

At 04:49 AM 8/7/07, Eric Elena wrote:


Le lundi 06 aoC;t 2007 C  21:21 -0400, Stephan Andre' a C)crit :
 On Monday 06 August 2007 18:29:12 Matthieu Herrb wrote:
  On 8/6/07, Frank Bax [EMAIL PROTECTED] wrote:
   Just got a new Lenovo 8744-J2U laptop and installed the Aug.1 snapshot:
  
   vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x71d4 rev
   0x00
 
  Oh and I forgot: this is a Mobility FireGL V5250, which is indeed not
  supported by the current X.Org ati driver. It should be supported by
  the new 'avivo'  driver, but this driver is not yet available for
  OpenBSD.

 Matthieu,  I'm also looking at the Lenovo T60.  Is the avivo driver
 ready for use, and how much effort is there in incorporating it
 into Xenocara?   I'd really like a new laptop--my A31p is old.

 Thanks, STeve Andre'


I tested the avivo driver running linux, it works fine with a firegl
5200 card. There is only one trouble with DPMS: the screen displays
something weird when it switches off then switches on.
Running openbsd stable, I use the vesa driver but there is no problem
here.



Does your laptop have a wide-screen monitor like mine?  In T60p BIOS, there 
is an option HV expansion which will stretch output to always fill the 
screen.  With this option enabled, I am able to fill the monitor, but 
images do not have proper aspect ratio; so for now I have disabled the option.  





Re: Lenovo 8744-J2U - several questions

2007-08-08 Thread Frank Bax

At 04:30 AM 8/7/07, Pierre Riteau wrote:


Le 7 ao{t 07 ` 05:23, Frank Bax a icrit :


At 06:26 PM 8/6/07, Matthieu Herrb wrote:


On 8/6/07, Frank Bax [EMAIL PROTECTED] wrote:
 Just got a new Lenovo 8744-J2U laptop and installed the Aug.1
snapshot:

 1) When I shutdown X, text resolution is messed up.  Chars are
bigger, they
 are 40 per line, with wrap.  All Ctrl-Alt-Fn sessions are
affected.  If I
 issue a command like 'date', then hit enter several time, I find
that the
 command and its output are finally visible.

Since you're using the vesa driver, it means that the VESA BIOS on
your laptop is broken.
Check for updates on Lenovo's web site.

 2) ATI adapter is not recognized. Changing depth to 24 works;
but I can't
 seem to change resolution - always comes up 1280x1024; but this
is a 15.4
 widescreen display; which i believe should run at 1680x1050.

Again, broken bios. Lenovo should provide a bios with resolutions
matching the physical size of the screen.
Try using i915resolution from ports. It has been reported to work
with
other BIOSes too.



Thanks for the prompt response.  I updated BIOS from 1.08 to 1.11;
one line changed in dmesg.

$ diff dmesg_0803.txt dmesg_0806.txt
8c8
 bios0 at mainbus0: AT/286+ BIOS, date 04/30/07, BIOS32 rev. 0 @
0xfd6b0, SMBIOS rev. 2.4 @ 0xe0010 (68 entries)
---
 bios0 at mainbus0: AT/286+ BIOS, date 07/13/07, BIOS32 rev. 0 @
0xfd6b0, SMBIOS rev. 2.4 @ 0xe0010 (68 entries)


Still no change on initial problems though.

I tried 915resolution, but I'm thinking it's not compatible:

$ sudo /usr/local/sbin/915resolution -l
Intel 800/900 Series VBIOS Hack : version 0.5.2

Unable to open the BIOS file: Operation not permitted


IIRC it must be run in secure level -1.

From the description of the port :
Because 915resolution requires write access to /dev/mem, the system
must be at a securelevel = 0.



OK.  I added some lines to /etc/securelevel ...

/usr/local/sbin/915resolution -l  /tmp/915a.log 21
Unable to determine bios type.
Please run the program 'dump_bios' as root and
email the file 'vbios.dmp' to [EMAIL PROTECTED]
Chipset: 945GM
Mode Table Offset: $C + $51
Mode Table Entries: 416
Intel 800/900 Series VBIOS Hack : version 0.5.2

/usr/local/sbin/915resolution 4d 1680 1050  /tmp/915.log 21
Unable to determine bios type.
Please run the program 'dump_bios' as root and
email the file 'vbios.dmp' to [EMAIL PROTECTED]
Chipset: 945GM
Mode Table Offset: $C + $51
Mode Table Entries: 416
Intel 800/900 Series VBIOS Hack : version 0.5.2


/usr/local/sbin/915resolution -l  /tmp/915b.log 21
Unable to determine bios type.
Please run the program 'dump_bios' as root and
email the file 'vbios.dmp' to [EMAIL PROTECTED]
Chipset: 945GM
Mode Table Offset: $C + $51
Mode Table Entries: 416
Intel 800/900 Series VBIOS Hack : version 0.5.2


Would Xorg.0.log provide any clues to anyone that know how to decode 
it?  It's 120K, so I made it available here:

http://www.execulink.com/~fbax/Xorg.0.log

Frank 



Lenovo 8744-J2U - several questions

2007-08-06 Thread Frank Bax

Just got a new Lenovo 8744-J2U laptop and installed the Aug.1 snapshot:

1) When I shutdown X, text resolution is messed up.  Chars are bigger, they 
are 40 per line, with wrap.  All Ctrl-Alt-Fn sessions are affected.  If I 
issue a command like 'date', then hit enter several time, I find that the 
command and its output are finally visible.


2) ATI adapter is not recognized. Changing depth to 24 works; but I can't 
seem to change resolution - always comes up 1280x1024; but this is a 15.4 
widescreen display; which i believe should run at 1680x1050.


3) The keyboard has a couple of 'dead' keys near cursor keys which are 
Alt-left and Alt-right in windows.  I'd like to map these to PgUp and 
PgDn.  How do I do that?


Output of commands follow:
$ dmesg
$ cat /etc/xorg.conf

Frank


OpenBSD 4.2-beta (GENERIC.MP) #218: Wed Aug  1 18:35:21 MDT 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz (GenuineIntel 686-class) 2 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR

real mem  = 2145808384 (2046MB)
avail mem = 2067234816 (1971MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/30/07, BIOS32 rev. 0 @ 0xfd6b0, 
SMBIOS rev. 2.4 @ 0xe0010 (68 entries)

bios0: LENOVO 8744J2U
pcibios0 at bios0: rev 2.1 @ 0xfd640/0x9c0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdea0/272 (15 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #22 is the last bus
bios0: ROM list: 0xc/0x1 0xd/0x1000 0xd1000/0x1000 
0xdc000/0x4000! 0xe/0x1!

acpi at mainbus0 not configured
mainbus0: Intel MP Specification (Version 1.4)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166 MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz (GenuineIntel 686-class) 2 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR

mainbus0: bus 0 is type PCI
mainbus0: bus 1 is type PCI
mainbus0: bus 2 is type PCI
mainbus0: bus 3 is type PCI
mainbus0: bus 21 is type PCI
mainbus0: bus 22 is type ISA
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130c2806000c28
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2000 MHz (1340 mV): speeds: 2000, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GM MCH rev 0x03
ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x71d4 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: apic 2 
int 11 (irq 11)

azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: Analog Devices AD1981HD (rev. 2.0), HDA version 1.0
azalia0: codec: 0x14f1/0x2bfa (rev. 0.0), HDA version 0.9
azalia0: codec[1]: No support for modem function groups
azalia0: codec[1]: No audio function groups
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02
pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic 2 
int 11 (irq 11), address 00:1a:6b:6b:20:6c

ppb2 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02
pci3 at ppb2 bus 3
wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: apic 2 
int 11 (irq 11), MoW1, address 00:1b:77:8d:23:55

ppb3 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02
pci4 at ppb3 bus 4
ppb4 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02
pci5 at ppb4 bus 12
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 2 int 11 
(irq 11)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 2 int 11 
(irq 11)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 2 int 11 
(irq 11)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 2 int 11 
(irq 11)
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 2 int 11 
(irq 11)

usb0 at ehci0: USB revision 2.0
uhub0 at usb0: Intel EHCI root hub, rev 2.00/1.00, addr 1
ppb5 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci6 at ppb5 bus 21
cbb0 at pci6 dev 0 function 0 TI PCI1510 CardBus rev 0x00: apic 2 int 11 
(irq 11)

cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 22 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02: PM disabled
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x02: DMA, 
channel 0 configured to compatibility, channel 1 configured to compatibility

atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 

Re: Lenovo 8744-J2U - several questions

2007-08-06 Thread Frank Bax

At 06:26 PM 8/6/07, Matthieu Herrb wrote:


On 8/6/07, Frank Bax [EMAIL PROTECTED] wrote:
 Just got a new Lenovo 8744-J2U laptop and installed the Aug.1 snapshot:

 1) When I shutdown X, text resolution is messed up.  Chars are bigger, they
 are 40 per line, with wrap.  All Ctrl-Alt-Fn sessions are affected.  If I
 issue a command like 'date', then hit enter several time, I find that the
 command and its output are finally visible.

Since you're using the vesa driver, it means that the VESA BIOS on
your laptop is broken.
Check for updates on Lenovo's web site.

 2) ATI adapter is not recognized. Changing depth to 24 works; but I can't
 seem to change resolution - always comes up 1280x1024; but this is a 15.4
 widescreen display; which i believe should run at 1680x1050.

Again, broken bios. Lenovo should provide a bios with resolutions
matching the physical size of the screen.
Try using i915resolution from ports. It has been reported to work with
other BIOSes too.



Thanks for the prompt response.  I updated BIOS from 1.08 to 1.11; one line 
changed in dmesg.


$ diff dmesg_0803.txt dmesg_0806.txt
8c8
 bios0 at mainbus0: AT/286+ BIOS, date 04/30/07, BIOS32 rev. 0 @ 0xfd6b0, 
SMBIOS rev. 2.4 @ 0xe0010 (68 entries)

---
 bios0 at mainbus0: AT/286+ BIOS, date 07/13/07, BIOS32 rev. 0 @ 0xfd6b0, 
SMBIOS rev. 2.4 @ 0xe0010 (68 entries)



Still no change on initial problems though.

I tried 915resolution, but I'm thinking it's not compatible:

$ sudo /usr/local/sbin/915resolution -l
Intel 800/900 Series VBIOS Hack : version 0.5.2

Unable to open the BIOS file: Operation not permitted



 vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x71d4 rev 0x00

Oh and I forgot: this is a Mobility FireGL V5250, which is indeed not
supported by the current X.Org ati driver. It should be supported by
the new 'avivo'  driver, but this driver is not yet available for OpenBSD.



Is there someplace where I can monitor OpenBSD status of this? 



Re: Equivalent to linux disk delete?

2007-05-06 Thread Frank Bax

At 01:51 PM 5/6/07, Sebastian Rother wrote:

I wanted to remove those partitions but OpenBSDs fdisk
doesn`t know about a delete Command



If you edit a partition with 'e' command; you'll see Partition id ('0' to 
disable).  Try it. 



Re: file sets

2007-05-04 Thread Frank Bax

At 12:38 PM 5/2/07, bubka20 wrote:


no, sorry, I'm meant base40.tgz, etc40tgz, etc.  My problem though is with
step#6.  I'm probably not creating the cd properly ( my cd contains files:
base40, bsd, bsd.mp, bsd.rp, comp40, etc40, game40, man40, misc40, xbase40,
xetc40, xfont40, xserve40, xshare40 in random order with no tree
structure..). Should I create them with a tree 4.0/i386/base40, bsd, etc.?
and if so, how do I do that?




I've noticed this same problem when creating custom cdroms for OpenBSD 
install.  I could never get the install program to see the files sets if 
they were in the root directory on cdrom.   In your burning software, copy 
the directory containing sets to cdrom instead of the files in that directory. 



Upgrade 4.0 - 4.1 / files gone

2007-05-04 Thread Frank Bax
During audit of upgrade from 4.0 to 4.1, I notice that a couple of files 
that were in etc40.tgz have been removed from etc41.tgz

/.profile
/.cshrc
Does this mean we should all delete these files from our systems?  If yes, 
should this be mentioned in upgrade41.html?




Re: Upgrade 4.0 - 4.1 / files gone

2007-05-04 Thread Frank Bax

At 02:09 PM 5/4/07, Matthias Kilian wrote:


On Fri, May 04, 2007 at 12:57:14PM -0400, Frank Bax wrote:
 During audit of upgrade from 4.0 to 4.1, I notice that a couple of files
 that were in etc40.tgz have been removed from etc41.tgz
   /.profile
   /.cshrc

huh?

$ tar tfz etc41.tgz|sed 2q
./.cshrc
./.profile

Where did you get your install sets from?



Bizarre.  I extracted files again from the exact same etc41.tgz (copied 
from cdrom a few days ago) and got my two missing files, plus 
/etc/mail/spamd.conf which was also missing from first extract.  All 
working well now. 



spamd - good job!

2007-04-20 Thread Frank Bax
I'm finally upgrading from 3.5 to 4.0!  I use the whitelist from puremagic 
and in the past 2.5 years I have also added another 10 ip addresses to 
spamd whitelist because of problems with mail getting through.  This week I 
did tests on 3 of those ip addresses and we are 3/3 for current spamd 
accepting connections without whitelist.  Great job!  I've also done some 
practice runs with in-place upgrades to snapshot; and plan to upgrade to 
4.1 soon after disks arrive.




Re: gunzip changes lastmod time?

2007-04-20 Thread Frank Bax

At 02:09 PM 4/19/07, Charles Longeau wrote:


2007/4/19, Frank Bax [EMAIL PROTECTED]:

 On an older box still running 3.5; gunzip/gzip does not change lastmod
 time; but on 4.0 [release] gunzip changes the lastmod time.  What's the
 reason for this change?


This was a bug and it has been fixed. For more info, please see :
http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yesnumbers=5417



Wow; I missed my big chance.  I actually spotted the problem in January, 
but thought I must have missed something.  My first assumption is always 
that any problem I see must have been by some else first; or I'm doing 
something wrong.




Re: spamd - good job!

2007-04-20 Thread Frank Bax
Is there a place that documents the spamd differences from 4.0 to 4.1; or 
am I left with detecting the differences in documentation?  I see 41.htm 
mentions greylist sync which I won't need (although I could see a one-time 
use when migrating boxes); greytrapping sounds interesting, might try that 
(it's in man spamd).  What's noticing out of order MX use - just a log 
entry?  Are there any changes to existing functionality to be forewarned 
about; or just new features?


I'm actually running a February snapshot (early 4.1 beta) if that makes a 
difference; this is considered living on the edge for me.




At 12:59 PM 4/20/07, Bob Beck wrote:


Thanks. 4.1 has some major changes too, so bear in mind
spamd wise it's a big change from 4.0

-Bob


* Frank Bax [EMAIL PROTECTED] [2007-04-20 08:29]:
 I'm finally upgrading from 3.5 to 4.0!  I use the whitelist from puremagic
 and in the past 2.5 years I have also added another 10 ip addresses to
 spamd whitelist because of problems with mail getting through.  This 
week I

 did tests on 3 of those ip addresses and we are 3/3 for current spamd
 accepting connections without whitelist.  Great job!  I've also done some
 practice runs with in-place upgrades to snapshot; and plan to upgrade to
 4.1 soon after disks arrive.




gunzip changes lastmod time?

2007-04-19 Thread Frank Bax
On an older box still running 3.5; gunzip/gzip does not change lastmod 
time; but on 4.0 [release] gunzip changes the lastmod time.  What's the 
reason for this change?


$ dmesg  dmesg.txt
$ touch -t 20070101 dmesg.txt
$ ls -l dmesg.txt
-rw-r--r--  1 fbax  fbax  3797 Jan  1 00:00 dmesg.txt
$ gzip dmesg.txt
$ ls -l dmesg.txt.gz
-rw-r--r--  1 fbax  fbax  1829 Jan  1 00:00 dmesg.txt.gz
$ gunzip dmesg.txt.gz
$ ls -l dmesg.txt
-rw-r--r--  1 fbax  fbax  3797 Apr 19 13:15 dmesg.txt



Re: SSH/SFTP question

2007-04-14 Thread Frank Bax

At 09:37 AM 4/13/07, stuart van Zee wrote:


Sorry if this belongs elsewhere but I was sure someone here would know.

I was under the impression that when using SFTP to transfer files they
were automatically treated as Binary files.  So if the remote file uses
CRLF to terminate lines, the downloaded file would have CRLF terminating
it's lines.  So I have a vendor that has replaced his FTP with SSH/SFTP.
my code is written to expect CRLF because that is the way the files
were when using the old FTP system to download.  Now, when I use SFTP
the files just have the LF.  The vendors answer is that we need to use
ASCII mode to transfer the files to get the CRLF.  I didn't know that
there WAS an ASCII mode in SFTP let alone that using ASCII as opposed to
Binary would change the line terminators.  The files in question are
technically ASCII text files but shouldn't I be getting an EXACT copy of
the file when I use Binary mode (assuming that I am right and that is
indeed the default with SFTP)?

What I really need is an explanation or a pointer to where I can get an
explanation so that I really know what I am talking about when I talk
to this vendor (and KNOW that I know what I am talking about).



FTP and SFTP clients will often have an option to send files as 
ASCII/BINARY/AUTO.  This option controls how CRLF is handled when 
encountered in the source file.  This option has nothing at all to do with 
the FTP/SFTP protocol itself; but is an option often included in client 
software.


When transfer option is ASCII (or sometimes TEXT); a translation 
occurs.  When copying from Windows to *BSD, CRLF changes to LF.  When 
copying from *BSD to Windows, LF changes to CRLF.


When transfer option is BINARY; no translation ever occurs.

When transfer is AUTO; behaviour is either ASCII or BINARY depending on 
file extension.  TXT, HTM, PHP, CGI, PL might all be considered text files; 
client software often allows this list to be configured.


PSCP and WinSCP are two examples of windows software that support 
SFTP.  PSCP does not convert CRLF to LF; WinSCP has a user option 
controlling this translation.


Based on what your vendor says; it looks like the file originally contains 
only LF and not CRLF; so enabling ASCII transfer should convert LF to 
CRLF.  If your transfer software doesn't have this option find another that 
does. 



Re: A backwards approach to upgrading.

2007-04-05 Thread Frank Bax

At 02:22 PM 4/4/07, Peter Fraser wrote:


I use an approach to upgrading that I have not seen written
anywhere. It does need additional space in the root partition
but with disks these days that is not normally a problem.

First copy away the important parts of the root partition
onto another partition. What is the important parts is up to
you, but should include any changes that you have made to
the root partition.  I use the ROOTBACKUP code in /etc/daily
which copies the root partition to another partition on
a separate disk, so that is done automatically.



If you've got the space to waste on a large root partition; wouldn't it 
make more sense to simply leave the original root partition as a small 
slice and create a partition used exclusively for installing new releases; 
then merge from this 'install' partition to your live partitions. 



Re: Dell Latitude D520

2007-03-23 Thread Frank Bax
Thanks!  4.1 didn't initially change anything; but ACPI enabled fixed both 
#1 and #2.



At 04:03 PM 3/23/07, Marco Peereboom wrote:


You really need to run 4.1 on that machine; probably even with ACPI enabled.

On Fri, Mar 23, 2007 at 01:32:33PM -0400, Frank Bax wrote:
 I installed 4.0 release on Dell Latitude D520 and found these issues:

 1) Reboot will display messages about disk resync; monitor goes blank and
 then hangs until I press power off twice to reboot.

 2) Laptop has a Core2Duo T5500 but only one processor is detected with MP
 kernel.

 3) dmesg indicates Intel PRO/Wireless 3945ABG rev 0x02
 I downloaded wpi-firmware-1.13 and installed the package; but when I try
 to bring up the device:
 $ sudo ifconfig wpi0 up
 $ dmesg | tail
 wpi0: timeout waiting for thermal sensors calibration
 wpi0: timeout waiting for thermal sensors calibration
 wpi0: fatal firmware error

 I'm in the process of downloading current snapshot to see what happens.




Re: Dell Latitude D520

2007-03-23 Thread Frank Bax

At 04:16 PM 3/23/07, Simon Effenberg wrote:


On Fri, Mar 23, 2007 at 01:32:33PM -0400, Frank Bax wrote:
 3) dmesg indicates Intel PRO/Wireless 3945ABG rev 0x02
 I downloaded wpi-firmware-1.13 and installed the package; but when I try to
 bring up the device:
 $ sudo ifconfig wpi0 up
 $ dmesg | tail
 wpi0: timeout waiting for thermal sensors calibration
 wpi0: timeout waiting for thermal sensors calibration
 wpi0: fatal firmware error


I have the same Intel card and when I am near an weird access point i
get the same error messages but at home it works. Could be the AP what
makes your card crazy.



This is not good news.  The router at home is running OpenBSD 4.0!

OpenBSD 4.0 router (P2-400):

$ dmesg | grep ral
ral0 at pci0 dev 20 function 0 Ralink RT2560 rev 0x01: irq 10, address 
00:12:17:99:70:2d

ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525

$ cat /etc/hostname.ral0
inet 10.0.0.2 255.255.255.0 10.0.0.255 media DS2 mediaopt hostap mode 11b 
nwid XX1XX nwkey XX2XX


$ ifconfig ral0
ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:12:17:99:70:2d
media: IEEE802.11 DS2 mode 11b hostap (autoselect mode 11b hostap)
status: active
ieee80211: nwid XX1XX chan 2 bssid 00:12:17:99:70:2d nwkey not 
displayed 100dBm

inet 10.0.0.2 netmask 0xff00 broadcast 10.0.0.255
inet6 fe80::212:17ff:fe99:702d%ral0 prefixlen 64 scopeid 0x3

We have a WinXP laptop already working through this interface.

On the Dell laptop running 4.1 snapshot:

$ dmesg | grep wpi
wpi0 at pci2 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: apic 2 
int 17 (irq 11), address 00:19:d2:6a:e0:f3


$ sudo ifconfig wpi0 nwid XX1XX nwkey XX2XX chan 2 up

$ ifconfig wpi0
wpi0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
lladdr 00:19:d2:6a:e0:f3
groups: wlan
media: IEEE802.11 autoselect
status: no network
ieee80211: nwid XX1XX chan 2 nwkey not displayed 100dBm
inet6 fe80::219:d2ff:fe6a:e0f3%wpi0 prefixlen 64 scopeid 0x1

$ dmesg | tail
wpi0: timeout waiting for thermal sensors calibration
wpi0: fatal firmware error



Re: qemu disk images

2007-03-04 Thread Frank Bax

At 03:16 PM 3/4/07, Lars D. NoodC)n wrote:

I can boot a variety of installer CDs (xubuntu and debian) and get the
same problem.  Here is how I am firing up qemu:

qemu -k fi -cdrom debian-testing-i386-netinst.iso -boot d \
-hda debian.ext2.dmg-hdb debian.swap.dmg

However, the guest system is unable to mount the images or their
partitions seemingly regardless of how I create them.



How do you start qemu AFTER the install is completed?  Something like this?
qemu -k fi -hda debian.ext2.dmg -hdb debian.swap.dmg



home router problem

2007-03-03 Thread Frank Bax
I have OpenBSD 4.0 with three nics (internet, wired, wireless).  A WinXP 
system (10.0.0.11) on wireless has access to internet and can ping Win98 
system (192.168.0.15) on wired side, but cannot print to printer (192.168.0.7).


Firewalls disabled on Windows systems for this test.

Ping from OpenBSD to WinXP, Win98 and printer all work properly.

Ping from WinXP to Win98 works.

C:\Documents and Settings\Nancyping 192.168.0.15
Pinging 192.168.0.15 with 32 bytes of data:
Reply from 192.168.0.15: bytes=32 time=1ms TTL=127
Reply from 192.168.0.15: bytes=32 time=1ms TTL=127
Reply from 192.168.0.15: bytes=32 time=2ms TTL=127
Reply from 192.168.0.15: bytes=32 time=1ms TTL=127
Ping statistics for 192.168.0.15:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 2ms, Average = 1ms

Ping from WinXP to printer fails.
C:\Documents and Settings\Nancyping 192.168.0.7
Pinging 192.168.0.7 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.0.7:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),


$ cat /etc/hostname.pppoe0
inet 0.0.0.0 255.255.255.255 NONE pppoedev vr0 authproto pap authname 
b1XX authkey XX up

dest 0.0.0.1
!/sbin/route add default 0.0.0.1
$ cat /etc/hostname.vr0
up
$ cat /etc/hostname.fxp0
inet 192.168.0.2 255.255.255.0 NONE
$ cat /etc/hostname.ral0
inet 10.0.0.2 255.255.255.0 10.0.0.255 media DS2 mediaopt hostap mode 11b 
nwid XX nwkey XX

$ cat /etc/mybridge.bridge0
add fxp0 add ral0 up
$ sudo grep -v ^# /etc/pf.conf
ext_if = pppoe0
int_if = fxp0
air_if = ral0
scrub out on $ext_if max-mss 1440
nat on $ext_if from $int_if:network - ($ext_if)
nat on $ext_if from $air_if:network - ($ext_if)
$ sudo pfctl -s nat
nat on pppoe0 inet from 192.168.0.0/24 to any - (pppoe0) round-robin
nat on pppoe0 inet from 10.0.0.0/24 to any - (pppoe0) round-robin
$ sudo pfctl -s rules
scrub out on pppoe0 all max-mss 1440 fragment reassemble
$ ifconfig
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224
groups: lo
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:06:29:33:a4:91
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.0.2 netmask 0xff00 broadcast 192.168.0.255
inet6 fe80::206:29ff:fe33:a491%fxp0 prefixlen 64 scopeid 0x1
vr0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:50:ba:0a:33:9d
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::250:baff:fe0a:339d%vr0 prefixlen 64 scopeid 0x2
ral0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:12:17:99:70:2d
media: IEEE802.11 DS2 mode 11b hostap (autoselect mode 11b hostap)
status: active
ieee80211: nwid thebestone chan 2 bssid 00:12:17:99:70:2d nwkey 
not displayed 100dBm

inet 10.0.0.2 netmask 0xff00 broadcast 10.0.0.255
inet6 fe80::212:17ff:fe99:702d%ral0 prefixlen 64 scopeid 0x3
pflog0: flags=141UP,RUNNING,PROMISC mtu 33224
pfsync0: flags=0 mtu 1460
groups: carp
enc0: flags=0 mtu 1536
pppoe0: flags=8851UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST mtu 1492
dev: vr0 state: session
sid: 0x4ba PADI retries: 0 PADR retries: 0 time: 3d 04:52:08
sppp: phase network authproto pap authname b1XX
groups: pppoe egress
inet6 fe80::206:29ff:fe33:a491%pppoe0 -  prefixlen 64 scopeid 0x8
inet 65.95.132.190 -- 0.0.0.1 netmask 0x

$ route show
Routing tables

Internet:
DestinationGatewayFlagsRefs  UseMtu  Interface
default0.0.0.1UGS 8  3961700  -   pppoe0
0.0.0.1defaultUH  10  -   pppoe0
10.0.0/24  link#3 UC  10  -   ral0
10.0.0.11  00:0c:e5:4e:97:71  UHLc176100  -   ral0
loopback   localhost  UGRS00  33224   lo0
localhost  localhost  UH  1  192  33224   lo0
192.168.0/24   link#1 UC  60  -   fxp0
192.168.0.708:00:09:e4:3c:cb  UHLc0  329  -   fxp0
192.168.0.11   00:50:ba:50:6b:15  UHLc1   106608  -   fxp0
192.168.0.12   00:50:fc:6c:a4:14  UHLc0   735364  -   fxp0
192.168.0.15   00:d0:59:0e:53:8a  UHLc348799  -   fxp0
192.168.0.30   00:00:b4:a9:0e:d6  UHLc0   664401  -   fxp0
192.168.0.31   00:0e:a6:50:13:b6  UHLc0  1417232  -   fxp0
BASE-ADDRESS.MCAST localhost  URS 00  33224   lo0

Internet6:
DestinationGatewayFlagsRefs  

  1   2   >