Shared library not found after upgrade to 9.2-PRERELEASE

2013-09-02 Thread Jim Long
I recently upgraded a system to 

FreeBSD t42.umpquanet.com 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0 r254977: Wed 
Aug 28 19:58:37 PDT 2013 
r...@t42.umpquanet.com:/usr/obj/usr/src/sys/GENERIC  i386

I then deleted all the installed ports, and am rebuilding the
ones I still use.

I've encountered several instances where although a required
port is already installed, a dependent port build will claim that
the required library isn't found, and attempt a (re-)install of
that port.

In this example, jbig2dec claims that shared library libpng15.so
is not found, although 'ls' says it is in /usr/local/lib, and
'make missing' reports no uninstalled dependencies.

What can I do to remedy this, short of setting FORCE_PKG_REGISTER
and spending a lot of time rebuilding ports that are already
installed?

Please Cc: me on replies.

Thank you!

Jim


# cd /usr/ports/graphics/jbig2dec
# ls -l /usr/local/lib/libpng15*
-rw-r--r--  1 root  wheel  202762 Sep  1 16:10 /usr/local/lib/libpng15.a
lrwxr-xr-x  1 root  wheel  14 Sep  1 16:10 /usr/local/lib/libpng15.so@ -> 
libpng15.so.15
-rwxr-xr-x  1 root  wheel  175596 Sep  1 16:10 /usr/local/lib/libpng15.so.15*
# make clean
===>  Cleaning for png-1.5.17
===>  Cleaning for jbig2dec-0.11_1
# make missing
# make
===>  License GPLv3 accepted by the user
===>  Found saved configuration for jbig2dec-0.11
===> Fetching all distfiles required by jbig2dec-0.11_1 for building
===>  Extracting for jbig2dec-0.11_1
=> SHA256 Checksum OK for jbig2dec-0.11.tar.xz.
===>  Patching for jbig2dec-0.11_1
===>  Applying extra patch /usr/ports/graphics/jbig2dec/files/simpler-test-patch
===>  Applying FreeBSD patches for jbig2dec-0.11_1
/usr/bin/sed -i.bak -E 's|SHA1_Final\( *([^,]+), *([^\)]+)\)|SHA1_Final(\2, 
\1)|'  /usr/ports/graphics/jbig2dec/work/jbig2dec-0.11/jbig2dec.c 
/usr/ports/graphics/jbig2dec/work/jbig2dec-0.11/sha1.c
===>   jbig2dec-0.11_1 depends on shared library: libpng15.so - not found
===>Verifying for libpng15.so in /usr/ports/graphics/png
===>  Found saved configuration for png-1.5.12
===> Fetching all distfiles required by png-1.5.17 for building
===>  Extracting for png-1.5.17
=> SHA256 Checksum OK for libpng-1.5.17.tar.xz.
=> SHA256 Checksum OK for libpng-1.5.17-apng.patch.gz.
/bin/cp /usr/ports/distfiles//libpng-1.5.17-apng.patch.gz 
/usr/ports/graphics/png/work/libpng-1.5.17/
/usr/bin/gzip -nf -9 -d 
/usr/ports/graphics/png/work/libpng-1.5.17/libpng-1.5.17-apng.patch.gz
===>  Patching for png-1.5.17
===>  Applying extra patch 
/usr/ports/graphics/png/work/libpng-1.5.17/libpng-1.5.17-apng.patch
===>  Applying FreeBSD patches for png-1.5.17
/usr/bin/sed -i.bak  -e 's|RELEASE}.0|RELEASE}|'  -e 
's|LIBDIR}/pkgconfig|LIBDIR}data/pkgconfig|'  
/usr/ports/graphics/png/work/libpng-1.5.17/CMakeLists.txt
===>   png-1.5.17 depends on file: /usr/local/bin/cmake - found
===>  Configuring for png-1.5.17
===>  Performing in-source build
/bin/mkdir -p /usr/ports/graphics/png/work/libpng-1.5.17
-- The C compiler identification is GNU 4.2.1
... snip ...
[100%] Built target pngvalid
/usr/local/bin/cmake -E cmake_progress_start 
/usr/ports/graphics/png/work/libpng-1.5.17/CMakeFiles 0
Running tests...
/usr/local/bin/ctest --force-new-ctest-process 
Test project /usr/ports/graphics/png/work/libpng-1.5.17
Start 1: pngtest
1/2 Test #1: pngtest ..   Passed0.02 sec
Start 2: pngvalid
2/2 Test #2: pngvalid .   Passed   43.20 sec

100% tests passed, 0 tests failed out of 2

Total Test time (real) =  43.23 sec
===>  Installing for png-1.5.17
===>   Generating temporary packing list
===>  Checking if graphics/png already installed
===>   png-1.5.17 is already installed
  You may wish to ``make deinstall'' and install this port again
  by ``make reinstall'' to upgrade it properly.
  If you really wish to overwrite the old port of graphics/png
  without deleting it first, set the variable "FORCE_PKG_REGISTER"
  in your environment or the "make install" command line.
*** [check-already-installed] Error code 1

Stop in /usr/ports/graphics/png.
*** [lib-depends] Error code 1

Stop in /usr/ports/graphics/jbig2dec.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: bash pipe redirection gets stuck

2012-12-03 Thread long
> On 03.12.12 15:35, l...@rule.lv wrote:
> [...]
>> I stumbled upon a problem where multiple pipe redirection occasionally
>> get
>> stuck when trying to get sha256 sum of a stream.
>>
>> You can try to reproduce the problem if you have /usr/ports/shells/bash
>> installed (output redirection used in this command is possible only in
>> bash).
>> Create temporary test file with command: "dd if=/dev/urandom
>> of=/tmp/file1
>> bs=1k count=10"
>> And the command I'm using is:
>> /usr/local/bin/bash -c 'cat /tmp/file1 | tee >(/sbin/sha256 >
>> /tmp/file1.sha256) > /tmp/file1.copy' ; echo $status
>>
>> Command gets stuck about once in 20 executions.
>> top output when command gets stuck (irrelevant processes removed):
>>PID USERNAMETHR PRI NICE   SIZERES STATE   C   TIME   WCPU
>> COMMAND
>> 84073 HappyUser 1  520 17612K  2268K wait0   0:00  0.00%
>> bash
>> 84154 HappyUser 1  520 10084K   844K fifoow  1   0:00  0.00% tee
>>
>> And more strangely, I can reproduce this problem on 9.0-RELEASE and
>> 7.4-RELEASE-p6, but couldn't reproduce on 8.2-RELEASE-p4.
> It maybe couldn't gather more randomness from /dev/random?
> The random(4) manpage suggests that there's (theoretically)
> indeed a chance that it blocks - see the section about
> 'kern.random.sys.seeded'.
> So in fact - when you think the command gets stuck - it's
> probably not bash related at all.
>
> cheers,
> Frank Reppin
>
> --
> 43rd Law of Computing:
>  Anything that can go wr
> fortune: Segmentation violation -- Core dumped
>
>

Thanks for your answer, but randomly generated file is created fine (it is
only for illustrative purpose). As far as I understand, thing that blocks
is tee inside bash command or pipeline.

Thanks and best regards,
Normunds

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


bash pipe redirection gets stuck

2012-12-03 Thread long
Dear all,
I stumbled upon a problem where multiple pipe redirection occasionally get
stuck when trying to get sha256 sum of a stream.

You can try to reproduce the problem if you have /usr/ports/shells/bash
installed (output redirection used in this command is possible only in
bash).
Create temporary test file with command: "dd if=/dev/urandom of=/tmp/file1
bs=1k count=10"
And the command I'm using is:
/usr/local/bin/bash -c 'cat /tmp/file1 | tee >(/sbin/sha256 >
/tmp/file1.sha256) > /tmp/file1.copy' ; echo $status

Command gets stuck about once in 20 executions.
top output when command gets stuck (irrelevant processes removed):
  PID USERNAMETHR PRI NICE   SIZERES STATE   C   TIME   WCPU COMMAND
84073 HappyUser 1  520 17612K  2268K wait0   0:00  0.00% bash
84154 HappyUser 1  520 10084K   844K fifoow  1   0:00  0.00% tee

And more strangely, I can reproduce this problem on 9.0-RELEASE and
7.4-RELEASE-p6, but couldn't reproduce on 8.2-RELEASE-p4.

Thanks for any pointers/explanations,
Normunds

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


freebsd-update housekeeping?

2011-02-25 Thread Neil Long

Hi

Just noticed how large /var/db/freebsd-update has grown on a box I  
just upgraded from 7.3 to 7.4 (but I can't recall when I started using  
it).


Is there a recommended approach or just rm the directory if I have no  
need to roll it back?


Thanks
Neil





Re: LSI 9211 driver

2010-11-15 Thread Scott Long
A driver called "mps" exists in FreeBSD 9-CURRENT.  We're working to move it to 
FreeBSD 8 in time for the 8.2 release.

Scott

On Nov 15, 2010, at 10:03 AM, Gergely CZUCZY (by way of Gergely CZUCZY 
) wrote:

> Hello,
> 
> I'd like to ask when can we expect a driver for the LSI 9211 hardware?
> That is, the following device:
> non...@pci0:4:0:0:  class=0x010700 card=0x30501000 chip=0x00721000
> rev=0x02 hdr=0x00 vendor = 'LSI Logic (Was: Symbios Logic, NCR)'
>class  = mass storage
>subclass   = SAS
> 
> 
> I've tried to add the cardID to the mfi(4) and mpt(4) drivers, but the
> most I could get, is a failed initalization.
> 
> If any devs supposed to add properly the device to any of the drivers,
> I should be able to arrange access to this device for the time of the
> development.
> 
> Please be so kind to reply to any known developers of these drivers, if
> they might not read these mailing lists, in order to get a working
> driver for this card (been seen google hits on many missing the support
> for this driver).
> 
> Drivers for linux and solars are availabe on LSI.com, but not for fbsd.
> 
> Thank you very much in advance.
> 
> Best regards,
> Gergely
> 
> -- 
> Sincerely,
> Gergely CZUCZY
> Harmless Digital Bt
> 
> +36-30-9702963

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: IPv6 rtadv on FreeBSD 8.1?

2010-10-09 Thread Neil Long
Not specifically related but I just worked around an issue with a Dell  
laptop with the xl0 interface which has problems with 8.1.


I was experimenting with a IPv6 setup and used an old PC (big and  
noisy) with the smallest install of 8.1. It worked fine as the tunnel  
server and ipv6 gateway (using rtadvd). I have an old laptop which is  
quieter and smaller and again installed the minimum 8.1 and used the  
same config (with rl0 changed to xl0). It worked fine for its own ipv6  
traffic but another test box failed to get packets routed. After much  
head scratching I gave up on 8.1 and installed 7.3 ( I have all the  
FreeBSD Mall subscriptions going back years) and no more problems with  
xl0. Something changed with 8.1 which xl0 does not like while rl0 or  
re0 interfaces are happy it seems (on the other box). I haven't tried  
any debugging, sorry.


Just thought I would mention it in case someone else has issues :-)

Thanks
Neil

On 30 Jul 2010, at 18:48, Carl Johnson wrote:


I have running versions of 7.3 and 8.0, so I tried experimenting with
8.1 in VirtualBox, but I ran into a couple of problems.  I have an 8.0
system that is running a IPv6 tunnel to sixxs.net, and it is running
rtadvd to act as the gatway for my network.  On the 8.1 system I
enabled IPv6 in rc.conf, but it is not picking up the advertised
address.  I can add it manually, and have put it in rc.local for now,
but it seems it should work automatically as my others do.  I noticed
that the ifconfig output shows a new line that is not in 8.0:
   nd6 options=3

Is there something that has changed in 8.1 that I have to enable, or
is there a problem with 8.1?  IPv6 is working to the extent that it
did assign a link-local address, and I can use that address as long as
I specify the interface.  My configuration is the same, and I didn't
have to enable anything on the others to get the global address
assigned automatically.

Thanks for any advice.
--
Carl Johnsonca...@peak.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org 
"




--
Neil Long, Team Cymru
http://www.cymru.com | +1 630 230 5422 | n...@cymru.com






boot0 problem - strange character for default drive?

2010-04-26 Thread Neil Long

Hi

Yesterday I had a problem with a gmirror configuration and one drive  
started squeaking rather unpleasantly. If I physically remove one of  
the drives I don't get a normal boot0 screen i.e. F1 for FreeBSD and  
F5 is Drive 0 - typical for gmirror??) but some strange character  
after the 'F' - I can't find the ascii number for it but it looks like  
a capital "I" (more of an I-Beam i.e. distinct flats top and bottom)  
with a diamond in the centre. Hitting any key just gives a # and left  
to itself there is a series of '#".


I gave up and left it overnight and today I was able to boot the good  
disk and even deactivate/insert the bad disk which completed. All  
seemed fine, no errors in dmesg but on reboot - all I get is the above  
state. I tried the SATA controller on the mobo and a plug-in PCI cheap  
one (tried two). Makes no difference. It boots fine off an IDE drive.  
It boots fine using the same SATA controllers for an older non-gmirror  
drive (then I simply get the F1: FreeBSD option) so I don't think it  
is the cpu/memory/mobo?? I now have the same boot0 problem with either  
drive from the gmirror


Anyone else seen this and have a fix? I don't want to zap the drives  
since there is a working system there but just can't get to it :-)


Thanks
Neil





___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Poor throughput with natd

2009-11-23 Thread James Long
Please copy me on replies.

I am testing ipfw and natd on a gateway machine running FreeBSD
7.2-STABLE #0: Tue Oct 27 00:12:39 PDT 2009  with the generic
kernel.  ipfw.ko and ipdivert.ko are loaded as modules, since
they're not part of the GENERIC kernel.

The symptom is that scp uploads from the gateway machine have
very poor throughput, often showing "stalled" status in the scp
progress output.

Machines on the LAN do not suffer this problem, and can upload
their traffic via NAT with no observed degradation in throughput.
That's why I haven't noticed this problem until recently, when I
tried rsync-ing some files outbound from the gateway to a remote
machine.

I can work around the problem, but this problem has never cropped
up in the past.  Is there a problem in my configuration, or in
recent natd?

Thanks for your time!

Jim


All commands below were executed on the gateway machine that is
running natd with very basic options:

15:07:37 /root# findps natd
root480  0.0  0.1  3388  1252  ??  Ss   12Nov09   4:32.81 natd -n fxp1


Here are the ipfw rules:

14:55:41 /root# ipfw show
00100   94930656746770 allow ip from any to any via lo0
002000   0 deny ip from any to 127.0.0.0/8
003000   0 deny ip from 127.0.0.0/8 to any
0040077293 8699526 divert 8668 ip from any to any via fxp1
00500 35245946 28535731864 allow ip from any to any
655350   0 deny ip from any to any

Downloading, scp has no trouble:

14:55:59 /root# scp -p remote:public_html/video/tatra1.mpg .
tatra1.mpg  
 100%   85MB 559.4KB/s   02:36

But uploads stall.  This scp process was killed after about 60 seconds:

14:58:40 /root# scp -p tatra1.mpg remote:/tmp/
tatra1.mpg  
   0%  320KB   1.8KB/s - stalled -^CKilled by signal 2.

Deleting the DIVERT rule eliminates the stalling:

14:59:54 /root# ipfw delete 400
15:00:04 /root# scp -p tatra1.mpg remote:/tmp/
tatra1.mpg  
  27%   23MB 248.2KB/s   04:14 ETA^CKilled by signal 2.

But of course, it also eliminates NAT.

15:01:14 /root# ipfw add 400 divert 8668 ip from any to any via fxp1
00400 divert 8668 ip from any to any via fxp1

Adding this rule works around the natd throughput problem:

15:01:29 /root# ipfw add 350 allow all from me to any via fxp1
00350 allow ip from me to any via fxp1

15:02:03 /root# scp -p tatra1.mpg remote:/tmp/
tatra1.mpg  
 100%   85MB 266.9KB/s   05:27

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Makefile error in lang/perl5.8?

2009-02-15 Thread James Long
I'm attempting to:

portupgrade -p perl-threaded-5.8.9

My ports tree is updated to the 5.8.9_1 revision:

# New ports collection makefile for:perl5
# Date created: 16 April 1995
# Whom: markm
#
# $FreeBSD: ports/lang/perl5.8/Makefile,v 1.100 2009/02/15 22:42:37 skv Exp $
#

PORTNAME=   perl
PORTVERSION=${PERL_VER}
PORTREVISION=   1
CATEGORIES= lang devel perl5
MASTER_SITES=   CPAN \
${MASTER_SITE_LOCAL:S/$/:local/} \
http://protey.ru/freebsd/distfiles/:local
MASTER_SITE_SUBDIR= ../../src \
skv/:local
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} \
BSDPAN-${BSDPAN_VERSION}${EXTRACT_SUFX}:local
DIST_SUBDIR=perl
...


portupgrade fails with:


/bin/mkdir -p /usr/local/lib/perl5/5.8.9/BSDPAN/.
install  -o root -g wheel -m 444  
/usr/ports/lang/perl5.8/work/BSDPAN-5.8.9/BSDPAN.pm 
/usr/local/lib/perl5/5.8.9/BSDPAN/BSDPAN.pm
install: /usr/ports/lang/perl5.8/work/BSDPAN-5.8.9/BSDPAN.pm: No such file or 
directory
*** Error code 71

Stop in /usr/ports/lang/perl5.8.
*** Error code 1

Stop in /usr/ports/lang/perl5.8.
*** Error code 1

Stop in /usr/ports/lang/perl5.8.
** Command failed [exit code 1]: /usr/bin/script -qa 
/tmp/portupgrade20090215-43761-1d44k1l-0 env UPGRADE_TOOL=portupgrade 
UPGRADE_PORT=perl-threaded-5.8.9 UPGRADE_PORT_VER=5.8.9 make WITH_THREADS=1 
DEPENDS_TARGET=package reinstall
--->  Restoring the old version
...


The actual location of BSDPAN.pm is:

$ locate BSDPAN.pm
/usr/ports/lang/perl5.8/work/BSDPAN-5.8.9_1/BSDPAN.pm

My presumption is that the Makefile's install path of 

/usr/ports/lang/perl5.8/work/BSDPAN-5.8.9/BSDPAN.pm

is erronous in not including the "_1" PORTREVISION value after the
5.8.9 in "BSDPAN-5.8.9".

I applied the diff below to the Makefile, and 
'portupgrade -wp perl-threaded-5.8.9' completed successfully.

Is this the correct fix?  I realize the better fix might be to
include "_${PORTREVISION}" instead of the literal "_1", but since
the BSDPAN_VERSION line did it that way, I copied.

If not correct, can someone please educate me how I might fix
this properly?  If it is correct, can someone please update the
Makefile?


Thanks,

Jim



# diff -u Makefile.orig Makefile
--- Makefile.orig   2009-02-15 19:57:19.0 -0800
+++ Makefile2009-02-15 19:58:31.0 -0800
@@ -143,7 +143,7 @@
ExtUtils/MakeMaker.pm \
ExtUtils/Packlist.pm
 BSDPAN_VERSION=${PORTVERSION}_1
-BSDPAN_WRKSRC= ${WRKDIR}/BSDPAN-${PORTVERSION}
+BSDPAN_WRKSRC= ${WRKDIR}/BSDPAN-${PORTVERSION}_1

 PKGINSTALL=${WRKDIR}/pkg-install
 PKGDEINSTALL=  ${WRKDIR}/pkg-deinstall

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Any help about FreeBSD & Dell's Troubleshooting Tool DSET

2008-11-13 Thread Scott Long
The sense data in the screen shot boils down to an ASC/ASCQ pair of 
0x35/0x05.  Looking this up in the ASC table found at t10.org gives

the following:

35h/05h   ENCLOSURE SERVICES CHECKSUM ERROR

What this basically means is that the disk enclosure that you're using
has some sort of an unknown defect or failure.  It has nothing to do 
with the OS.  Dell needs to send you a new enclosure, plain and simple.


Scott


Jeremy Chadwick wrote:

On Thu, Nov 13, 2008 at 02:16:58PM +0100, VeeJay wrote:

I have asked the system manufacturers (Dell) but they don't provide support
for FreeBSD based systems [?]
Thats why I have only hope here with FreeBSD List...


I've CC'd Scott Long, who is the author of the mfi(4) driver.  He should
be able to explain what the error messages mean.

Scott, check out the URL below.



On Thu, Nov 13, 2008 at 1:41 PM, Jeremy Chadwick <[EMAIL PROTECTED]> wrote:


On Thu, Nov 13, 2008 at 01:29:11PM +0100, VeeJay wrote:

If it looks healthy, why there are these errors on the screen? Is it
controller problem or disk?

SCSI normally reports 3 things when it encounters an error (particularly
disk errors): Sense Key (SK), Additional Sense Code (ASC), and
Additional Sense Code Qualifier (ASCQ).

What appears in the below screenshot is a large amount of sense data,
but I can't make heads or tails out of it, because it's written in a
driver-centric manner ("Encl PD" means nothing to me).  I can read part
of the CDB data, but it doesn't tell me much.  Scott Long might know.

http://digitalfreaks.org/~lavalamp/20081023_server3_screen_dump.png

You should try asking the system manufacturer if they know what any
of the data means.




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: any news? 3945 ABG driver!

2008-06-03 Thread Long Story

Hi Vince!
 
 
  The (rtfm) advice it might exist in 7.0R which I didnot install or upgrade to 
Yet,
   Im using PC-BSD which is 6.3-R
  and I think i need to do the driver manualy, any info ?
  or i _have_ to go for 7.0-R for this driver to work ?
 
  Thanks.
 
  Marwan.> Date: Tue, 3 Jun 2008 16:42:40 +0100> From: [EMAIL PROTECTED]> To: 
[EMAIL PROTECTED]> CC: freebsd-questions@freebsd.org> Subject: Re: any news? 
3945 ABG driver!> > Long Story wrote:> > Hello Gurus,> > > > Well, any good 
news or working drivers for wireless 3945ABG ?> > for 7.0-R or 6.3-R ?> > Can 
anyone kindly provide any useful information ?> > > > man wpi ;)> > (sorry to 
rtfm you but the man page explains it better than I could)> > Vince> > > THANK 
YOU> > Marwan.> > 
_> > It’s easy 
to add contacts from Facebook and other social sites through Windows Live™ 
Messenger. Learn how.> > 
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_LearnHow___>
 > freebsd-questions@freebsd.org mailing list> > 
http://lists.freebsd.org/mailman/listinfo/freebsd-questions> > To unsubscribe, 
send any mail to "[EMAIL PROTECTED]"> 
_
Instantly invite friends from Facebook and other social networks to join you on 
Windows Live™ Messenger.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


any news? 3945 ABG driver!

2008-06-03 Thread Long Story

Hello Gurus,
 
  Well, any good news or working drivers for wireless 3945ABG ?
   for 7.0-R or 6.3-R ?
  Can anyone kindly provide any useful information ?
 
  THANK YOU
  Marwan.
_
It’s easy to add contacts from Facebook and other social sites through Windows 
Live™ Messenger. Learn how.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_LearnHow___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


advice needed regarding OS & Hardware.

2008-05-10 Thread Long Story

Hello Gurus,
 
Since few years back and im on FBSD 4.8-R for commercial use.
Its time to move on.
 
I have two Questions, and kindly looking for answers, specialy that hosting 
company
contract is (NO support for FreeBSd), So i have to becareful again, just 
like what I did
to the 4.8-R
 
For a commercial use server
1) Which version do you recommend, shall I go for 7.0-R ?
or 6.3-R.
 
2) Hosting company hardware is
   * Single Intel E6300 CORE 2 DUO 1.86Ghz /1066MHz FSB /2MB L2 Cache* 2GB 
DDR2 RAM* 2x 250GB/7200 RPM Serial ATA Drives - Hot Swap; RAID1* 3Ware 
8006-2LP SATA RAID Controller* 2 10/100/1000 Ethernet ports 
 
Any of the above parts incompatabile with FreeBSD, or it has any bug ?
do you recommend something else?
 
They didnot mention the brand of ethernet ports, from my experince I will 
go for
 Linksys, any better recomendations ?
 
 
   THANKS ALOT.
   Marwan Sultan.
_
Get Free (PRODUCT) RED™  Emoticons, Winks and Display Pics.
http://joinred.spaces.live.com?ocid=TXT_HMTG_prodredemoticons_052008___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


gvim and scim-pin can't compatible at 6.2 ???

2008-04-07 Thread Chen Long
Use FreeBSD 6.2,can't cvsup ports tree and install
vim(/usr/ports/chinese/vim) and scim-pinyin
(/usr/ports/chinese/scim-pinyin),

When I use scim-pinyin input Chinese at gvim, gvim will "death" that will
occupy 85% CPU resource ! and can't kill PID of vim. Only reboot  :-(

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: VFS KPI was Re: [OpenAFS-devel] Re: AFS ... or equivalent ...

2008-01-17 Thread Scott Long

Rick Macklem wrote:



On Wed, 16 Jan 2008, Robert Watson wrote:

[good stuff snipped]


Right now we maintain a relatively stable VM/VFS KPI withing a major 
release (i.e, FreeBSD 6.0 -> 6.1 -> 6.2 -> 6.3), but see fairly 
significant changes between major releases (5.x -> 6.x -> 7.x, etc).  
I expect to see further changes in VFS for 8.x (and some of the 
locking-related ones have already started going in).



This is loosely related to both the OpenAFS thread and the Mac OS X ZFS
port thread, so I thought I'd ask...

Has anyone considered trying to bring the FreeBSD VFS KPI (and others, for
that matter) closed to the Darwin/Mac OS X ones? The Apple folks made
quite dramatic changes to their VFS when going from Panther (very FreeBSD
like) to Tiger, but seemed to have stabilized, at least for Leopard. It
just seems that using the Mac OS X KPIs might leverage some work being
done on both sides? (I don't know if there is an OpenAFS port to Mac OS X
or interest in one, but I would think there would be a use for one, if it
existed?)

Although I'm far from an expert on the Mac OS X VFS (when I ported to it,
I just cribbed the code and it worked:-), it seems that they pretty well
got rid of the concept of a vnode-lock. If the underlying file system 
isn't SMP safe, it can put a lock on the subsystem at the VFS call.

(I think it optionally does a global lock or a uses an smp lock in the
vnode, but don't quote me on this. My code currently runs with the
thread-safe flag false in the vfs_conf structure entry, which enables
the automagic locking.)



Both Solaris and OSX seem to have found the path out of the VFS locking
woods, and it would indeed be really nice if FreeBSD could follow suit.
You're not the first to suggest the vnode locking move out of VFS and
into the filesystems.  I think that the work it would take to adapt the
existing filesystems to this design would be far less than the ongoing
work by everyone to fight the old design (both in FreeBSD proper and in
companies that do their own custom filesystems in FreeBSD), but it does
come at a cost of making things like nullfs much harder, if not nearly
impossible.  I wish I had time to work on something like this, but I
encourage others to look into it and experiment.

Scott
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Recent update to RELENG_6 creates lots of calcru warnings

2007-09-02 Thread James Long
On Sun, Sep 02, 2007 at 01:18:05PM +0200, Kris Kennaway wrote:
> James Long wrote:
>> I'm running FreeBSD RELENG_6 on a Compaq DL380 G2 dual PIII-1.4GHz with an 
>> SMP kernel.  dmesg below.
>> Prior to about August 12, the system had been quite stable.
>> Since that time, I am finding lots of calcru warnings, which often
>> cause system services to fail when they see unorthodox time shifts.
>> Section 5.19 of the handbook appears not to be current any longer,
>> suggesting setting kern.timecounter.method=1.  
>> kern.timecounter.hardware=i8254 also does not improve things.
>> Other suggestions?
>> Thanks,
>> Jim
>> Sep  1 18:00:30 ns sudo:james : TTY=ttyp0 ; 
>> PWD=/usr/local/www/sites/com.umpquanet/support ; USER=root ; 
>> COMMAND=/sbin/sysctl -w kern.timecounter.hardware=i8254
>> Sep  1 18:02:44 ns kernel: calcru: runtime went backwards from 1343309 
>> usec to 1178478 usec for pid 3663 (hpasmd)
>> Sep  1 18:02:44 ns kernel: calcru: negative runtime of -1274607 usec for 
>> pid 3660 (hpasmd)

... big snip ...

> Does reverting to the older kernel work?  If so, can you isolate which 
> commit caused the problem by doing a binary search of date ranges?  This 
> should be easy to do since the rate of changes to RELENG_6 is low.
> 
> Kris

Please pardon the rookie question, but the machine is not blazingly 
fast to build (circa 90 minute world, 20 min. kernel).  For the 
purposes of the binary search, may I build just the kernel, and would 
you suggest leaving the up-to-date world and running against a 
slightly older kernel as I test, or should I roll the world back to 
early August, and test against a slightly new kernel -- or will it 
matter?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Recent update to RELENG_6 creates lots of calcru warnings

2007-09-01 Thread James Long
I'm running FreeBSD RELENG_6 on a Compaq DL380 G2 dual PIII-1.4GHz with 
an SMP kernel.  dmesg below.

Prior to about August 12, the system had been quite stable.

Since that time, I am finding lots of calcru warnings, which often
cause system services to fail when they see unorthodox time shifts.

Section 5.19 of the handbook appears not to be current any longer,
suggesting setting kern.timecounter.method=1.  
kern.timecounter.hardware=i8254 also does not improve things.

Other suggestions?

Thanks,

Jim


Sep  1 18:00:30 ns sudo:james : TTY=ttyp0 ; 
PWD=/usr/local/www/sites/com.umpquanet/support ; USER=root ; 
COMMAND=/sbin/sysctl -w kern.timecounter.hardware=i8254
Sep  1 18:02:44 ns kernel: calcru: runtime went backwards from 1343309 usec to 
1178478 usec for pid 3663 (hpasmd)
Sep  1 18:02:44 ns kernel: calcru: negative runtime of -1274607 usec for pid 
3660 (hpasmd)
Sep  1 18:02:44 ns kernel: calcru: runtime went backwards from 6470361 usec to 
5811413 usec for pid 995 (postgres)
Sep  1 18:02:44 ns kernel: calcru: negative runtime of -1099076 usec for pid 36 
(pagedaemon)
Sep  1 18:02:44 ns kernel: calcru: negative runtime of -5928105 usec for pid 35 
(fdc0)
Sep  1 18:02:44 ns kernel: calcru: negative runtime of -1526937 usec for pid 32 
(acpi_cooling0)
Sep  1 18:02:44 ns kernel: calcru: runtime went backwards from 8015143 usec to 
1437770 usec for pid 15 (yarrow)
Sep  1 18:02:44 ns kernel: calcru: negative runtime of -12360933 usec for pid 2 
(g_event)
Sep  1 18:02:44 ns kernel: calcru: negative runtime of -2106022786 usec for pid 
13 (swi4: clock sio)
Sep  1 18:02:44 ns kernel: calcru: runtime went backwards from 295074296 usec 
to 292484248 usec for pid 1 (init)
Sep  1 18:02:44 ns kernel: calcru: runtime went backwards from 1343309 usec to 
1178478 usec for pid 3663 (hpasmd)
Sep  1 18:02:44 ns kernel: calcru: negative runtime of -1274607 usec for pid 
3660 (hpasmd)
Sep  1 18:02:44 ns kernel: calcru: runtime went backwards from 6470361 usec to 
5811413 usec for pid 995 (postgres)
Sep  1 18:02:44 ns kernel: calcru: negative runtime of -1099076 usec for pid 36 
(pagedaemon)
Sep  1 18:02:44 ns kernel: calcru: negative runtime of -5928105 usec for pid 35 
(fdc0)
Sep  1 18:02:44 ns kernel: calcru: negative runtime of -1526937 usec for pid 32 
(acpi_cooling0)
Sep  1 18:02:44 ns kernel: calcru: runtime went backwards from 8015143 usec to 
1437770 usec for pid 15 (yarrow)
Sep  1 18:02:44 ns kernel: calcru: negative runtime of -12360933 usec for pid 2 
(g_event)
Sep  1 18:02:44 ns kernel: calcru: negative runtime of -2106022734 usec for pid 
13 (swi4: clock sio)
Sep  1 18:02:44 ns kernel: calcru: runtime went backwards from 295074296 usec 
to 292484248 usec for pid 1 (init)

dmesg output:

Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-STABLE #0: Mon Aug 27 17:24:37 PDT 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP-UMP
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) III CPU family  1400MHz (1390.66-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6b1  Stepping = 1
  
Features=0x383fbff
real memory  = 1073725440 (1023 MB)
avail memory = 1037357056 (989 MB)
ACPI APIC Table: 
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  3
 cpu1 (AP): APIC ID:  0
MADT: Forcing active-low polarity and level trigger for SCI
ioapic1  irqs 16-31 on motherboard
ioapic0  irqs 0-15 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0:  on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x240-0x243 on acpi0
cpu0:  on acpi0
cpu1:  on acpi0
pcib0:  on acpi0
pci0:  on pcib0
ciss0:  port 0x2000-0x20ff mem 
0xf5ec-0xf5ef,0xf3ef-0xf3ef3fff irq 16 at device 1.0 on pci0
ciss0: [GIANT-LOCKED]
fxp0:  port 0x2400-0x243f mem 
0xf5eb-0xf5eb0fff,0xf5d0-0xf5df irq 18 at device 2.0 on pci0
miibus0:  on fxp0
inphy0:  on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:02:a5:ad:82:d5
fxp1:  port 0x2440-0x247f mem 
0xf5cf-0xf5cf0fff,0xf5b0-0xf5bf irq 20 at device 4.0 on pci0
miibus1:  on fxp1
inphy1:  on miibus1
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: Ethernet address: 00:02:a5:ad:82:d4
pci0:  at device 6.0 (no driver attached)
isab0:  at device 15.0 on pci0
isa0:  on isab0
atapci0:  port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x2c00-0x2c0f at device 15.1 on pci0
ata0:  on atapci0
ata1:  on atapci0
ohci0:  mem 0xf3fd-0xf3fd0fff irq 22 at 
device 15.2 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0:  on ohci0
usb0: USB revision 1.0
uhub0: (

A question

2007-07-21 Thread Anthony Long

Can I download your software from the web? I can't find a link.
_
PC Magazine’s 2007 editors’ choice for best web mail—award-winning Windows Live 
Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HMWL_mini_pcmag_0707___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: speed of bzip2 versus gzip

2007-07-20 Thread James Long
On Fri, Jul 20, 2007 at 05:50:20PM -0700, Chuck Swiger wrote:
> On Jul 20, 2007, at 5:37 PM, Norberto Meijome wrote:
>>> Is it normal for bzip2 to be significantly slower than gzip?
>>> If not, where can I look for things that might be causing
>>> "bzip2 --fast" to take 50-60 times longer to compress a
>>> (sendmail log) file than gzip?
>> 
>> i never measured it to see if it is 50-60 times slower, but yes, gzip 
>> blows
>> bzip2 out of the water on speed. I wanted to use bzip2 to compress 
>> multi-GB
>> weblog files, but gzip beat it my miles, and bzip2 wasn't THAT much better 
>> @
>> compressing it to make it worth it.
> 
> Thanks for the feedback, Norberto.
> 
> Of course, it all depends on what your priorities are, too-- if what you 
> want is a final tarball which is being mirrored and downloaded frequently, 
> then your goal is to obtain the absolute best compression, and how much CPU 
> --best takes isn't important.
>
> Comparing the default (-5 compression?) of gzip to bzip2 would probably be 
> more reasonable if you care about reasonably timely compression.

If I read the man page correctly, bzip2 defaults to --best, which is why
I compared gzip to bzip2 --fast.  With the 1.5G sendmail log, bzip2 --fast 
compresses to just under 10M in about 55 minutes, give or take.  bzip2
--best compresses 1.5G to 1.8M, but takes about 2.25 hours.  gzip
compresses almost as well (with 3% or so) as --fast, but does it in 1 
minute instead of 55 on a dual P-III 1.4GHz (but of course, using only
one CPU).

Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


speed of bzip2 versus gzip

2007-07-20 Thread James Long
Is it normal for bzip2 to be significantly slower than gzip?
If not, where can I look for things that might be causing
"bzip2 --fast" to take 50-60 times longer to compress a 
(sendmail log) file than gzip?

Thanks,

Jim


> ns : 07:52:06 /usr/tmp# time bunzip2 -c /var/log/maillog.0.bz2 > maillog
>
> real1m43.574s
> user1m26.846s
> sys 0m15.284s
> ns : 07:53:55 /usr/tmp# time gzip -c maillog > maillog.0.gz
>
> real1m1.092s
> user0m49.009s
> sys 0m6.682s
> ns : 07:56:56 /usr/tmp# time bzip2 -c maillog > maillog.0.bz2
> load: 1.00  cmd: bzip2 53621 [running] 1860.55u 1.82s 98% 8096k
> load: 1.00  cmd: bzip2 53621 [running] 5386.71u 5.30s 98% 8096k
>
> real133m25.236s
> user131m29.156s
> sys 0m7.744s
> ns : 10:10:36 /usr/tmp# time gzip -c maillog > maillog.1.gz
>
> real1m1.208s
> user0m52.356s
> sys 0m3.333s
> ns : 10:12:13 /usr/tmp# ls -l
> total 1576688
> -rw-r--r--  1 root  wheel  1590291797 Jul 20 07:53 maillog
> -rw-r--r--  1 root  wheel 1845620 Jul 20 10:10 maillog.0.bz2
> -rw-r--r--  1 root  wheel10761511 Jul 20 07:56 maillog.0.gz
> -rw-r--r--  1 root  wheel10761511 Jul 20 10:12 maillog.1.gz
> ns : 10:12:17 /usr/tmp# time bzip2 -1 -c maillog > maillog.1.bz2
> load: 1.02  cmd: bzip2 62522 [running] 3073.92u 8.02s 98% 1836k
>
> real55m48.149s
> user54m40.118s
> sys 0m8.028s
> ns : 11:08:34 /usr/tmp# ls -l
> total 1586944
> -rw-r--r--  1 root  wheel  1590291797 Jul 20 07:53 maillog
> -rw-r--r--  1 root  wheel 1845620 Jul 20 10:10 maillog.0.bz2
> -rw-r--r--  1 root  wheel10761511 Jul 20 07:56 maillog.0.gz
> -rw-r--r--  1 root  wheel10474338 Jul 20 11:08 maillog.1.bz2
> -rw-r--r--  1 root  wheel10761511 Jul 20 10:12 maillog.1.gz
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


devfs rule: ioctl DEVFSIO_SAPPLY: No such process

2007-04-24 Thread James Long
I'm trying to mount a devfs inside a chroot jail, so that
scponlyc with work with sftp.

This problem seems to match kern/93423, but I have another 
6.2-STABLE system which has no problem with the below.

How can I get /sbin/devfs to cooperate?

Thank you!

Jim


sys : 23:07:12 /root# mount_devfs devfs ~foo/dev
sys : 23:07:21 /root# ls -l ~foo/dev
total 1
crw-r-  1 root  operator0,  73 Apr 24 22:21 acd0
crw---  1 root  operator0,  26 Apr 24 22:21 ata
crw---  1 root  wheel   0,  33 Apr 24 22:21 atkbd0
crw---  1 root  wheel   0,  25 Apr 24 22:42 console
crw---  1 root  wheel   0,  51 Apr 24 22:21 consolectl
crw-rw-rw-  1 root  wheel   0,   6 Apr 24 22:21 ctty
crw-rw  1 uucp  dialer  0,  55 Apr 24 22:21 cuad0
crw-rw  1 uucp  dialer  0,  56 Apr 24 22:21 cuad0.init
crw-rw  1 uucp  dialer  0,  57 Apr 24 22:21 cuad0.lock
crw---  1 root  wheel   0,   5 Apr 24 22:21 devctl
cr  1 root  wheel   0,  28 Apr 24 22:21 devstat
dr-xr-xr-x  2 root  wheel  512 Apr 24 23:07 fd/
crw-r-  1 root  operator0,  64 Apr 24 22:21 fd0
crw---  1 root  wheel   0,  21 Apr 24 22:21 fido
crw-r-  1 root  operator0,   4 Apr 24 22:21 geom.ctl
crw---  1 root  operator0,  27 Apr 24 22:21 ida0
crw-r-  1 root  operator0,  63 Apr 24 22:21 idad0
crw-r-  1 root  operator0,  65 Apr 24 22:21 idad0s1
crw-r-  1 root  operator0,  67 Apr 24 15:21 idad0s1a
crw-r-  1 root  operator0,  68 Apr 24 22:21 idad0s1b
crw-r-  1 root  operator0,  69 Apr 24 22:21 idad0s1c
crw-r-  1 root  operator0,  70 Apr 24 15:21 idad0s1d
crw-r-  1 root  operator0,  71 Apr 24 15:21 idad0s1e
crw-r-  1 root  operator0,  72 Apr 24 15:21 idad0s1f
crw-r-  1 root  operator0,  66 Apr 24 22:21 idad0s3
crw---  1 root  wheel   0,  16 Apr 24 22:21 io
lrwxr-xr-x  1 root  wheel6 Apr 24 23:07 kbd0@ -> atkbd0
crw---  1 root  wheel   0,  20 Apr 24 22:21 klog
crw-r-  1 root  kmem0,  23 Apr 24 22:21 kmem
crw---  1 root  wheel   0,  62 Apr 24 22:21 mdctl
crw-r-  1 root  kmem0,  22 Apr 24 22:21 mem
dr-xr-xr-x  2 root  wheel  512 Apr 24 23:07 net/
lrwxr-xr-x  1 root  wheel8 Apr 24 23:07 net1@ -> net/fxp0
lrwxr-xr-x  1 root  wheel8 Apr 24 23:07 net2@ -> net/fxp1
lrwxr-xr-x  1 root  wheel7 Apr 24 23:07 net3@ -> net/lo0
crw---  1 root  wheel   0,   3 Apr 24 22:21 network
crw---  1 root  wheel   0,  58 Apr 24 22:21 nfs4
crw---  1 root  kmem0,  24 Apr 24 22:21 nfslock
crw-rw-rw-  1 root  wheel   0,   7 Apr 24 23:00 null
crw-r--r--  1 root  wheel   0,   9 Apr 24 22:21 pci
crw-rw-rw-  1 root  wheel   0,  77 Apr 24 23:07 ptyp0
crw-rw-rw-  1 root  wheel   0,  79 Apr 24 23:07 ptyp1
crw-rw-rw-  1 root  wheel   0,  18 Apr 24 15:21 random
lrwxr-xr-x  1 root  wheel4 Apr 24 23:07 stderr@ -> fd/2
lrwxr-xr-x  1 root  wheel4 Apr 24 23:07 stdin@ -> fd/0
lrwxr-xr-x  1 root  wheel4 Apr 24 23:07 stdout@ -> fd/1
crw---  1 root  wheel   0,  17 Apr 24 22:21 sysmouse
crw---  1 root  wheel   0,  52 Apr 24 22:21 ttyd0
crw---  1 root  wheel   0,  53 Apr 24 22:21 ttyd0.init
crw---  1 root  wheel   0,  54 Apr 24 22:21 ttyd0.lock
crw-rw-rw-  1 root  wheel   0,  78 Apr 24 23:07 ttyp0
crw-rw-rw-  1 root  wheel   0,  80 Apr 24 23:07 ttyp1
crw---  1 root  wheel   0,  35 Apr 24 22:22 ttyv0
crw---  1 root  wheel   0,  36 Apr 24 22:22 ttyv1
crw---  1 root  wheel   0,  37 Apr 24 22:22 ttyv2
crw---  1 root  wheel   0,  38 Apr 24 22:22 ttyv3
crw---  1 root  wheel   0,  39 Apr 24 22:22 ttyv4
crw---  1 root  wheel   0,  40 Apr 24 22:22 ttyv5
crw---  1 root  wheel   0,  41 Apr 24 22:22 ttyv6
crw---  1 root  wheel   0,  42 Apr 24 22:22 ttyv7
crw---  1 root  wheel   0,  43 Apr 24 22:21 ttyv8
crw---  1 root  wheel   0,  44 Apr 24 22:21 ttyv9
crw---  1 root  wheel   0,  45 Apr 24 22:21 ttyva
crw---  1 root  wheel   0,  46 Apr 24 22:21 ttyvb
crw---  1 root  wheel   0,  47 Apr 24 22:21 ttyvc
crw---  1 root  wheel   0,  48 Apr 24 22:21 ttyvd
crw---  1 root  wheel   0,  49 Apr 24 22:21 ttyve
crw---  1 root  wheel   0,  50 Apr 24 22:21 ttyvf
lrwxr-xr-x  1 root  wheel6 Apr 24 23:07 urandom@ -> random
crw---  1 root  operator0,  61 Apr 24 22:21 xpt0
crw-rw-rw-  1 root  wheel   0,   8 Apr 24 22:21 zero
sys : 23:07:27 /root# /sbin/devfs -m ~foo/dev rule -s 1 applyset
devfs rule: ioctl DEVFSIO_SAPPLY: No such process
sys : 23:08:04 /root# ls -l ~foo/dev
total 1
crw-r-  1 root  operator0,  73 Apr 24 22:21 acd0
crw---  1 root  operator0,  26 Apr 24 22:21 ata
crw---  1 root  wheel   0,  33 Apr 24 22:21 atkbd0
crw---  1 root  wheel   0,  25 Apr 24 22:42 console
crw-

Problem with OpenVPN and ethernet bridging

2007-04-22 Thread James Long
I'm trying to get my feet wet with an ethernet bridging setup 
under OpenVPN.

I have two hosts on a 10.0.0.0/24 network that I want to 
connect: dl360 is the server, and t30 is the client.  These
hosts are resolvable by /etc/hosts.  TLS seems to be working
from certs I created at cacert.org.

The goal is to bridge the t30 client to the second ethernet
NIC of the dl360 server.

The client is assigned an IP from the bridged LAN correctly, 
but the client cannot ping the 172.16.16.1 IP on the server's 
ethernet interface.  tcpdump shows traffic going out the 
tap0 interface on the client (ARP traffic, that is, trying to
ARP for 172.16.16.1).  tcpdump on the server's physical bge0
shows incoming traffic destined for UDP port 1194 on the server, 
but no traffic on the server's tap0 or bridge0 interfaces.

The OpenVPN docs, examples, and instructions are highly linux-
centric, so I'm having to read between the lines a lot.  Based on
http://www.mired.org/home/mwm/papers/FreeBSD-OpenVPN-Bridging.html
I am not assigning IPs to the server's tap and bridge interfaces,
as that page claims that such is unnecessary under FreeBSD.

So my troubleshooting is focusing on the server side, since I
can see that VPN traffic is reaching the public interface, but
OpenVPN is not mapping that traffic onto the ethernet bridge.

For now, I am creating the tap and bridge interfaces manually.
Despite having:

openvpn_enable="YES"
openvpn_if="tap bridge"

in /etc/rc.conf, I find that OpenVPN does not create the 
bridge interface.  I am running this script by hand, followed
by running "/usr/local/etc/rc.d/openvpn start":

ifconfig tap0 create
ifconfig bridge0 create
ifconfig bridge0 addm bge1 addm tap0 up


Here's ifconfig on the server:

bge0: flags=8843 metric 0 mtu 1500
options=9b
ether 00:08:02:a0:c6:9d
inet 10.0.0.22 netmask 0xff00 broadcast 10.0.0.255
media: Ethernet autoselect (100baseTX )
status: active
bge1: flags=8943 metric 0 mtu 
1500
options=98
ether 00:08:02:a0:c6:9e
inet 172.16.16.1 netmask 0xff00 broadcast 172.16.16.255
media: Ethernet autoselect (none)
status: no carrier
lo0: flags=8049 metric 0 mtu 16384
inet 127.0.0.1 netmask 0xff00 
tap0: flags=8942 metric 0 mtu 1500
ether 00:bd:87:77:8b:00
Opened by PID 49835
bridge0: flags=8843 metric 0 mtu 1500
ether b6:1d:6a:ae:be:a4
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 0 ifcost 0 port 0
member: tap0 flags=143
member: bge1 flags=143

Here's the openvpn.conf on the server:

local dl360
port 1194
proto udp

dev tap0
ca cacert.org.crt
cert dl360.crt
key dl360.key  # This file should be kept secret

dh dh1024.pem

ifconfig-pool-persist ipp.txt

server-bridge 172.16.16.1 255.255.255.0 172.16.16.50 172.16.16.100

keepalive 10 120

persist-key
persist-tun

status openvpn-status.log

log  openvpn.log

verb 3
- - -


And here's the openvpn.conf on the client:

client

dev tap
proto udp
remote dl360 1194
resolv-retry infinite
nobind

persist-key
persist-tun

ca cacert.org.crt
cert t30.crt
key t30.key

log-append openvpn.log
verb 3
- - -

I have set net.inet.ip.forwarding set to 1 on the server to ensure
that packets are forwarded between interfaces.

What am I missing on the server side that's preventing me from pinging
from 172.16.16.50 to 172.16.16.1?  The client is running 6.2-STABLE 
circa March 13, and the server is 7.0-CURRENT circa late April 21.

Thank you!

Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Monitoring tool for Compaq Smart Array 5300

2007-04-06 Thread James Long
> Date: Thu, 5 Apr 2007 10:34:15 +0200
> From: "Valerio Daelli" <[EMAIL PROTECTED]>
> Subject: Monitoring tool for Compaq Smart Array 5300
> To: freebsd-questions@freebsd.org
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Hi
> we would like to monitor the status of a Compaq Smart Array 5300
> installed on a HP Proliant DL360.
> Is there any tool for FreeBSD 6.2?
> Thanks for the help
> 
> Valerio Daelli

camcontrol is a first-order tool.  Not much detail, but it will tell
you whether the array is OK or something other than OK.

# camcontrol inquiry da0
pass0:  Fixed Direct Access SCSI-0 device
pass0: 135.168MB/s transfers

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Feedback for live CD

2007-04-05 Thread James Long
Some weeks ago, if I read the thread correctly, the committer who
works on the live CD side of the installation media requested 
feedback for odd bits that don't behave correctly in the fixit
environment.


I find that 'scp' won't run because it can't find /usr/bin/ssh.
The workaround is 'ln -s /dist/usr/bin /usr/bin'


This is when I boot from a 6.0-RELEASE CD.  If this has already
been addressed in later versions, please excuse the noise.  I
don't have a 6.2 CD at hand to test with.


Jim

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: as i progress with jails...

2007-03-31 Thread James Long
> Date: Thu, 29 Mar 2007 19:14:16 -0600
> From: "Chad Leigh -- Shire.Net LLC" <[EMAIL PROTECTED]>
> Subject: Re: as i progress with jails...
> To: Jonathan Horne <[EMAIL PROTECTED]>
> Cc: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
> 
[deleted]
> That needs to be updated per jail.  I use a master jail I nullfs  
> mount so I just ave to update userland once but if major etc changes  
> happen still have to do that in each
> 
> Chad

And is mergemaster useful inside jails, or do changes to jails'
/etc tree have to be handled manually?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


autoconf error while portupgrading audio/vorbis-tools

2007-03-25 Thread James Long
I'm tackling the great 'portupgrade -r gettext'.  All but about
five ports built okay, and I'm focusing on the exceptions.

vorbis-tools reports an error when building that suggests to me
that something is not right in the way it is using autoconf,
however it's beyond my knowledge level to diagnose.

How can I fix the problem that is preventing this from building?

Thank you!

Jim

$ pkg_info | grep -i auto
autoconf-2.59_2 Automatically configure source code on many Un*x platforms
automake-1.9.6  GNU Standards-compliant Makefile generator (1.9)
help2man-1.36.4_1   Automatically generating simple manual pages from program o

# cd /usr/ports/audio/vorbis-tools && make
===>  Extracting for vorbis-tools-1.1.1_3,3
=> MD5 Checksum OK for vorbis-tools-1.1.1.tar.gz.
=> SHA256 Checksum OK for vorbis-tools-1.1.1.tar.gz.
=> MD5 Checksum OK for vorbis-tools-1.1.1-flac-1.1.3.patch.
=> SHA256 Checksum OK for vorbis-tools-1.1.1-flac-1.1.3.patch.
===>  Patching for vorbis-tools-1.1.1_3,3
===>  Applying distribution patches for vorbis-tools-1.1.1_3,3
===>  Applying FreeBSD patches for vorbis-tools-1.1.1_3,3
===>   vorbis-tools-1.1.1_3,3 depends on file: /usr/local/bin/automake19 - found
===>   vorbis-tools-1.1.1_3,3 depends on file: /usr/local/bin/autoconf259 - 
found
===>   vorbis-tools-1.1.1_3,3 depends on file: /usr/local/bin/libtool - found
===>   vorbis-tools-1.1.1_3,3 depends on shared library: ao.3 - found
===>   vorbis-tools-1.1.1_3,3 depends on shared library: curl.4 - found
===>   vorbis-tools-1.1.1_3,3 depends on shared library: FLAC.7 - found
===>   vorbis-tools-1.1.1_3,3 depends on shared library: speex.1 - found
===>   vorbis-tools-1.1.1_3,3 depends on shared library: vorbis.3 - found
===>   vorbis-tools-1.1.1_3,3 depends on shared library: intl - found
===>  Configuring for vorbis-tools-1.1.1_3,3
/bin/cp /usr/local/share/gettext/po/Makefile.in.in  
/usr/ports/audio/vorbis-tools/work/vorbis-tools-1.1.1/po/Makefile.in.in
/usr/X11R6/share/aclocal/xmms.m4:17: warning: underquoted definition of 
XMMS_TEST_VERSION
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/X11R6/share/aclocal/xmms.m4:62: warning: underquoted definition of 
AM_PATH_XMMS
/usr/local/share/aclocal/linc.m4:1: warning: underquoted definition of 
AM_PATH_LINC
/usr/local/share/aclocal/libart.m4:11: warning: underquoted definition of 
AM_PATH_LIBART
/usr/local/share/aclocal/libIDL.m4:6: warning: underquoted definition of 
AM_PATH_LIBIDL
/usr/local/share/aclocal/imlib.m4:9: warning: underquoted definition of 
AM_PATH_IMLIB
/usr/local/share/aclocal/imlib.m4:167: warning: underquoted definition of 
AM_PATH_GDK_IMLIB
/usr/local/share/aclocal/gtk.m4:7: warning: underquoted definition of 
AM_PATH_GTK
/usr/local/share/aclocal/glib.m4:8: warning: underquoted definition of 
AM_PATH_GLIB
/usr/local/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition of 
AM_PATH_GDK_PIXBUF
/usr/local/share/aclocal/audiofile.m4:12: warning: underquoted definition of 
AM_PATH_AUDIOFILE
/usr/local/share/aclocal/ao.m4:9: warning: underquoted definition of 
XIPH_PATH_AO
/usr/local/share/aclocal/aalib.m4:12: warning: underquoted definition of 
AM_PATH_AALIB
/usr/local/share/aclocal/ORBit.m4:4: warning: underquoted definition of 
AM_PATH_ORBIT
configure.ac:32: warning: AC_COMPILE_IFELSE was called before AC_GNU_SOURCE
/usr/ports/devel/autoconf259/work/autoconf-2.59/tests/../lib/autoconf/specific.m4:339:
 AC_GNU_SOURCE is expanded from...
configure.ac:32: AC_GNU_SOURCE is required by...
/usr/local/share/aclocal/lock.m4:29: gl_LOCK_EARLY_BODY is expanded from...
configure.ac:32: gl_LOCK_EARLY_BODY is required by...
/usr/local/share/aclocal/lock.m4:22: gl_LOCK_EARLY is expanded from...
configure.ac:32: gl_LOCK_EARLY is required by...
/usr/local/share/aclocal/lock.m4:248: gl_LOCK is expanded from...
configure.ac:32: gl_LOCK is required by...
/usr/local/share/aclocal/intl.m4:162: gt_INTL_SUBDIR_CORE is expanded from...
configure.ac:32: gt_INTL_SUBDIR_CORE is required by...
/usr/local/share/aclocal/intl.m4:25: AM_INTL_SUBDIR is expanded from...
configure.ac:32: AM_INTL_SUBDIR is required by...
/usr/local/share/aclocal/gettext.m4:57: AM_GNU_GETTEXT is expanded from...
configure.ac:32: the top level
configure.ac:32: warning: AC_RUN_IFELSE was called before AC_GNU_SOURCE
configure.ac:32: warning: AC_COMPILE_IFELSE was called before AC_GNU_SOURCE
/usr/ports/devel/autoconf259/work/autoconf-2.59/tests/../lib/autoconf/specific.m4:339:
 AC_GNU_SOURCE is expanded from...
configure.ac:32: AC_GNU_SOURCE is required by...
aclocal.m4:8718: gl_LOCK_EARLY_BODY is expanded from...
configure.ac:32: gl_LOCK_EARLY_BODY is required by...
aclocal.m4:8711: gl_LOCK_EARLY is expanded from...
configure.ac:32: gl_LOCK_EARLY is required by...
aclocal.m4:8937: gl_LOCK is expanded from...
configure.ac:32: gl_LOCK is required by...
aclocal.m4:1143: gt_INTL_SUBDIR_CORE is expanded from...
configure.ac:32: gt_INTL_SUBDIR_CORE is r

Re: mkisofs,cd9660 and hard links

2007-03-24 Thread James Long
> Date: Sat, 24 Mar 2007 20:15:50 +0100 (CET)
> From: Wojciech Puchar <[EMAIL PROTECTED]>
> Subject: mkisofs,cd9660 and hard links
> To: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
> 
> i did copy of small server (taking about 3GB space) to DVD with growisofs 
> -R and using --exclude to not copy /dev etc..
> 
> worked fine.
> 
> and recovered fine, but taking much more space, because all hardlinks are 
> now separate files.
> 
> it looks like cd9660 filesystem doesn't "see" hardlinked files as 
> hardlinked, but as separate ones.
> 
> is there any program to fix it like comparing all very similar files on 
> disk and hardlinking them?

My brief analysis of this is that there's only so much that can be
done, at least programmatically.  Your DVD copy does not contain 
sufficient information to differentiate between hardlinks, apparently, 
and may not allow you to determine where softlinks used to exist, 
either.  And then there may be some files that were simply two copies 
of the same content, and should not be construed as linked files.

That said, I have done similar tasks (like deleting duplicate copies 
of files stored on two machines) by writing a shell script to 
calculate a checksum of each file on disk, then sorting the output 
based on the checksum.  Where you find duplicate checksum values, you 
likely have files that could be hard-linked to each other.  It would 
require some manual vetting of the identified duplicates to determine
whether the files are supposed to be hardlinks, symlinks or simply two 
discrete files with the same content.

This can be time-consuming for large filesystems, but for 3 Gigs,
you can just start it and walk away until it's done.

This example is rather clumsy, and if someone can show me how to do 
this without having to pipe the output into sh, I'd be edified to know 
that.  On the other hand, I often like to construct xarg lines like
this so I can see and inspect the commands that will be executed,
before actually committing to piping it into the shell.

find / -type f -print0 | xargs -0 -Ixx -n1 echo echo \$\(sha256 -q \"xx\"\) 
\"xx\" | sh > md5-list.out

Then use awk/sort/uniq/grep to find duplicate checksums, and determine
which files have identical checksum values.  Manually examine those 
files to determine whether they should be hardlinks, symlinks, or
remain as separate files.

Note that this necessarily excludes directories, which could be 
symlinks of other directories, such as /etc/namedb vs. 
/var/named/etc/namedb.


Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Why is sendmail giving me this 550 error?

2007-03-23 Thread James Long
On Fri, Mar 23, 2007 at 08:59:34PM -0500, Jeffrey Goldberg wrote:
> On Mar 23, 2007, at 8:32 PM, James Long wrote:
> 
> >Why am I getting this 550 error?  If I telnet directly to the
> >MX for lists.oetiker.ch and perform a manual ehlo/mail from/rcpt to
> >I get a 450 greylisting response,
> 
> That is what I get to.
> 
> >which makes much more sense
> >than this 550/503 failure.
> 
> For reasons I don't understand your instance of sendmail is *not*  
> talking to the MX for lists.oetiker.ch.  For some reason it is  
> talking to localhost.

Mutt is running on the mailserver.  It submits the outgoing mail to 
localhost.  localhost should relay the mail out to the recipient.

> So that 550 isn't coming from lists.oetiker.ch, but is coming from  
> your own host.

I realize that, hence my post.  The server sends lots of outgoing 
non-local mail.  Just not to the smokeping list subscription 
address.

I had looked at /etc/mail/access prior to posting, but not closely
enough.  It was being denied by an access map entry.

Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Why is sendmail giving me this 550 error?

2007-03-23 Thread James Long
Sorry for tihs being marginally off-topic, but sendmail
doesn't have a mailing list anymore (that I can tell), 
just a newsgroup, and I have no effective Usenet access.

I'm trying to subscribe to the smokeping mailing list.

Why am I getting this 550 error?  If I telnet directly to the
MX for lists.oetiker.ch and perform a manual ehlo/mail from/rcpt to
I get a 450 greylisting response, which makes much more sense
than this 550/503 failure.

Thank you!

Jim


Mar 23 18:04:10 mx sendmail[40229]: l2O14A5b040229: [EMAIL PROTECTED], 
size=327, class=0, nrcpts=1, msgid=<[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Mar 23 18:04:10 mx sm-mta[40230]: NOQUEUE: connect from localhost [127.0.0.1]
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: Milter (spamassassin): init 
success to negotiate
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: Milter: connect to filters
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: milter=spamassassin, 
action=connect, accepted
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: --- 220 example.com ESMTP 
Sendmail 8.13.8/8.13.8; Fri, 23 Mar 2007 18:04:10 -0700 (PDT)
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: <-- EHLO example.com
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: --- 250-example.com Hello 
localhost [127.0.0.1], pleased to meet you
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: --- 250-ENHANCEDSTATUSCODES
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: --- 250-PIPELINING
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: --- 250-8BITMIME
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: --- 250-SIZE
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: --- 250-DSN
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: --- 250-ETRN
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: --- 250-DELIVERBY
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: --- 250 HELP
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: <-- MAIL From:<[EMAIL 
PROTECTED]> SIZE=327
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: Milter: senders: <[EMAIL 
PROTECTED]>
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: --- 250 2.1.0 <[EMAIL 
PROTECTED]>... Sender ok
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: <-- RCPT To:<[EMAIL 
PROTECTED]>
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: --- 550 5.2.1 <[EMAIL 
PROTECTED]>... Mailbox disabled for this recipient
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: ruleset=check_rcpt, 
arg1=<[EMAIL PROTECTED]>, relay=localhost [127.0.0.1], reject=550 5.2.1 <[EMAIL 
PROTECTED]>... Mailbox disabled for this recipient
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: <-- DATA
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: --- 503 5.0.0 Need RCPT 
(recipient)
Mar 23 18:04:10 mx sendmail[40229]: l2O14A5b040229: [EMAIL PROTECTED], [EMAIL 
PROTECTED] (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, 
pri=30327, relay=[127.0.0.1] [127.0.0.1], dsn=5.2.1, stat=User unknown
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: <-- RSET
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: --- 250 2.0.0 Reset state
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5q040230: from=<[EMAIL PROTECTED]>, 
size=327, class=0, nrcpts=0, proto=ESMTP, daemon=IPv4, relay=localhost 
[127.0.0.1]
Mar 23 18:04:10 mx sendmail[40229]: l2O14A5b040229: l2O14A5c040229: DSN: User 
unknown
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5r040230: <-- RSET
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5r040230: --- 250 2.0.0 Reset state
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5s040230: <-- MAIL From:<> SIZE=1351
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5s040230: Milter: senders: <>
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5s040230: --- 250 2.1.0 <>... Sender ok
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5s040230: <-- RCPT To:<[EMAIL 
PROTECTED]>
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5s040230: Milter: rcpts: <[EMAIL 
PROTECTED]>
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5s040230: --- 250 2.1.5 <[EMAIL 
PROTECTED]>... Recipient ok
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5s040230: <-- DATA
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5s040230: --- 354 Enter mail, end with 
"." on a line by itself
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5s040230: from=<>, size=2514, class=0, 
nrcpts=1, msgid=<[EMAIL PROTECTED]>, proto=ESMTP, daemon=IPv4, relay=localhost 
[127.0.0.1]
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5s040230: Milter accept: message
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5s040230: --- 250 2.0.0 l2O14A5s040230 
Message accepted for delivery
Mar 23 18:04:10 mx sendmail[40229]: l2O14A5c040229: [EMAIL PROTECTED], 
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31351, relay=[127.0.0.1] 
[127.0.0.1], dsn=2.0.0, stat=Sent (l2O14A5s040230 Message accepted for delivery)
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5t040230: <-- QUIT
Mar 23 18:04:10 mx sm-mta[40230]: l2O14A5t040230: --- 221 2.0.0 example.com 
closing connection
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTEC

Re: Don't buy AMD products (was Re: Xorg and ATI card query.)

2007-03-14 Thread Scott Long

Stephen Montgomery-Smith wrote:

Sean Bryant wrote:


Andrew Reilly wrote:


On Tue, 13 Mar 2007 14:17:00 -0800 (PST)
Doug Ambrisko <[EMAIL PROTECTED]> wrote:
 


One thing that is a plus with nv is that X has some support for it,
whereas, the newer ati cards have no support :-(  I was a fan of ati 
since it was easier to get support.  Now I'm starting to lean 
towards Nvidia :-(




Does anyone know if there are *any* contemporary graphics cards
that have 3D acceleration supported by some flavour of
open-source x.org?  Doesn't have to be a super-fast 'leet gamer
system to be better than a non-accelerated frame buffer.

Matrox used to have a reputation for goodness (I used to have a
G400 or the like), but it's been a long time...

(I'm currently using a lowish-end NVidia card under the x.org nv
driver, but it has issues (of which no 3D accel is but one...)

Cheers,

  



Try the 'vesa' xorg driver. It may not be fancy or all that 
accelerated but it works quite well. I have an nvidia card and cannot 
get it to work for the life of me. the drive attached, but nothing 
happens after that. It might be the fact that I have a PCI express 
card. But the vesa driver is working just fine for me.



I had a PCI-X nvidia card 


PCI-X?  Or PCI Express?  PCI-X is not the same thing.

Scott
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: dmesg and GIANT-LOCK

2007-03-13 Thread James Long
On Tue, Mar 13, 2007 at 01:50:34PM -0400, Kris Kennaway wrote:
> On Tue, Mar 13, 2007 at 01:06:12AM -0700, James Long wrote:
> > With regard to the recent thread about looking for GIANT-LOCKs in
> > dmesg, why would one system say:
> > 
> > ns : 00:56:29 /home/james> uname -v ;dmesg | grep fxp
> > FreeBSD 6.2-STABLE #0: Tue Feb 20 15:47:09 PST 2007
> > fxp0:  port 0x2400-0x243f mem 
> > 0xc4fff000-0xc4ff,0xc4e0-0xc4ef irq 10 at device 2.0 on pci0
> > miibus0:  on fxp0
> > fxp0: Ethernet address: 00:02:a5:0a:57:73
> > 
> > 
> > while a more recent build says:
> > 
> > t30 : 00:56:19 /home/james> uname -v ;dmesg | grep fxp
> > FreeBSD 6.2-STABLE #2: Thu Mar  8 08:23:11 PST 2007
> > fxp0:  port 0x7400-0x743f mem 
> > 0xd020-0xd0200fff irq 11 at device 8.0 on pci2
> > miibus0:  on fxp0
> > fxp0: Ethernet address: 00:09:6b:86:82:a6
> > fxp0: [GIANT-LOCKED]
> 
> fxp is not giant locked, you can check the source for the INTR_MPSAFE
> flag in sys/dev/fxp/if_fxp.c.  I'm not sure how you are seeing this,
> please describe the configuration of this system further (kernel
> config, loader.conf).
> 
> Kris

It just dawned on me when you said "INTR_MPSAFE", would having

options IPSEC

in the kernel config cause fxp to use GIANT?

dmesg says in part:

FreeBSD 6.2-STABLE #2: Thu Mar  8 08:23:11 PST 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/T30
WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant
WARNING: MPSAFE network stack disabled, expect reduced performance.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


dmesg and GIANT-LOCK

2007-03-13 Thread James Long
With regard to the recent thread about looking for GIANT-LOCKs in
dmesg, why would one system say:

ns : 00:56:29 /home/james> uname -v ;dmesg | grep fxp
FreeBSD 6.2-STABLE #0: Tue Feb 20 15:47:09 PST 2007
fxp0:  port 0x2400-0x243f mem 
0xc4fff000-0xc4ff,0xc4e0-0xc4ef irq 10 at device 2.0 on pci0
miibus0:  on fxp0
fxp0: Ethernet address: 00:02:a5:0a:57:73


while a more recent build says:

t30 : 00:56:19 /home/james> uname -v ;dmesg | grep fxp
FreeBSD 6.2-STABLE #2: Thu Mar  8 08:23:11 PST 2007
fxp0:  port 0x7400-0x743f mem 
0xd020-0xd0200fff irq 11 at device 8.0 on pci2
miibus0:  on fxp0
fxp0: Ethernet address: 00:09:6b:86:82:a6
fxp0: [GIANT-LOCKED]



Is it just the difference in chipset/controller type that requires
the fxp driver to use GIANT on the second machine, but not the first? 
I also note that on the first machine, irq 10 is solely assigned to
fxp0.  On t30, irq 11 is shared with a number of other devices.  Dunno
if that matters.


Thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: swap file vs swap partition

2007-02-04 Thread Scott Long

Aloha Guy wrote:
Thanks for the input.  You do have good points.  The only issue with 
swap partitions is that it seems like you need to increase it everytime 
you increase the physical memory.  Is there a swap partition size limit 
that pretty much will handle anything and setting a number larger than 
that will really not offer anything?
 
John



Processors and memory have vastly outpaced the speed of disks; any
amount of swapping is going to be percieved as being very slow and
something that should be avoided.  Since RAM is also very cheap now,
most people just load enough RAM into their system to handle their load,
and then configure enough swap to hold a crashdump of that RAM.  You
always want swap so that you can handle unexpected spikes in load
without crashing, but it's less of an integral piece of normal system
operation these days.

Scott
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: swap file vs swap partition

2007-02-04 Thread Scott Long

Aloha Guy wrote:

Greetings everyone:

I am planning to build a few new boxes which will run -RELEASE and -CURRENT and 
I have a question about the swap file.  In the past, I had always used a swap 
partition of 256MB since I originally had 128MB system memory in the 1990's but 
my system has been upgraded to 2GB and it seems the swap file would have more 
flexibility as I can just change the size of the swapfile if I needed to. My 
question is is there any difference in performance between a swap file versus a 
swap partition and can one run a system with a swap file instead of a swap 
partition?


Yes.  A swap file requires a pass through the filesystem code in order
to figure out where each block is.


Also, searching has not gotten me very far but are there any drawbacks to a 
swap file instead of a swap partition?  I read somewhere that a few people seem 
to think that a swap file can't handle kernel crash dumps?


That's correct, it cannot.


Shouldn't it be the same as both of them occupy disk space and as long as the 
swap file is large enough, wouldn't it work?


The crashdump code is written to assume that the dump space is
completely contiguous, something that is not at all guaranteed by
a swap file.  While it would certainly be possible to modify it
to make a pass through the filesystem like above, the intention
of the crashdump code is also to be as simple as possible and to
depend on as few kernel services as possible.  When the system has
crashed, who knows what can be trusted anymore, right?  Also, filesystem
corruption is a frequent cause of crashes; why risk that dumping to
a swapfile might encounter corruption and trash your entire filesystem.

Scott

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: [OT] Does "~" always point to $HOME?

2007-01-26 Thread James Long
> Message: 24
> Date: Fri, 26 Jan 2007 09:22:44 -0800
> From: Bill Campbell <[EMAIL PROTECTED]>
> Subject: Re: [OT] Does "~" always point to $HOME?
> To: freebsd-questions@freebsd.org, Bill Campbell
>   <[EMAIL PROTECTED]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=us-ascii
> 
> My point isn't whether the FreeBSD /bin/sh expands it, but that not all
> systems are FreeBSD, and that one can have problems on other *NIX systems.
> 
> Knowing where there may be differences, and avoiding the assumptions that a
> program behaves the same on all systems, can help writing code that's
> portable without surprises.

This begs the rookie question:

What is the portable way to determine an aribtrary user's home directory
then, if ~username is not portable across shells?

Does one just have to grep and awk /etc/passwd?  Is the format of
/etc/passwd portable, such that one standard grep/awk sequence will 
portably return the home directory for user "username"?

Regards,

Jim


P.S.  Does this count as the portable way to do this?  :)

...
USERNAME_HOME="`bash -c "echo ~username"`"
cd $USERNAME_HOME
...

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Kernel Compiling Problem

2007-01-18 Thread Xu-Long Wang
Hi,

Some problem in my kernal file and it suggests that: one code error

Sincerely 
Wang
#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#
http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ../../conf/NOTES and NOTES files.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.13 2006/10/09 18:41:36 simon 
Exp $

machine i386
#cpuI486_CPU
#cpuI586_CPU
cpu I686_CPU
ident   MYKERNEL

# To statically compile in device wiring instead of /boot/device.hints
#hints  "GENERIC.hints" # Default places to look for devices.

#makeoptionsDEBUG=-g# Build kernel with gdb(1) debug symbols

options SCHED_4BSD  # 4BSD scheduler
options PREEMPTION  # Enable kernel thread preemption
options INET# InterNETworking
#optionsINET6   # IPv6 communications protocols
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options MD_ROOT # MD is a potential root device
#optionsNFSCLIENT   # Network Filesystem Client
#optionsNFSSERVER   # Network Filesystem Server
#optionsNFS_ROOT# NFS usable as /, requires NFSCLIENT
#optionsMSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
#optionsPROCFS  # Process filesystem (requires PSEUDOFS)
#optionsPSEUDOFS# Pseudo-filesystem framework
#optionsGEOM_GPT# GUID Partition Tables.
options COMPAT_43   # Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
#optionsSCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options ADAPTIVE_GIANT  # Giant mutex is adaptive.

device  apic# I/O APIC

# Bus support.
device  eisa
device  pci

# Floppy drives
#device fdc

# ATA and ATAPI devices
device  ata
#device atadisk # ATA disk drives
#device ataraid # ATA RAID drives
device  atapicd # ATAPI CDROM drives
device  atapifd # ATAPI floppy drives
#device atapist # ATAPI tape drives
options ATA_STATIC_ID   # Static device numbering

# SCSI Controllers
#device ahb # EISA AHA1742 family
#device ahc # AHA2940 and onboard AIC7xxx devices
#optionsAHC_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~128k to driver.
#device ahd # AHA39320/29320 and onboard AIC79xx devices
#optionsAHD_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~215k to driver.
#device amd # AMD 53C974 (Tekram DC-390(T))
#device isp # Qlogic family
#device ispfw   # Firmware for QLogic HBAs- normally a module
#device mpt # LSI-Logic MPT-Fusion
#device ncr # NCR/Symbios Logic
#device sym # NCR/Symbios Logic (newer chipsets + those of 
`ncr')
#device trm # Tekram DC395U/UW/F DC315U adapters

#device adv # Advansys SCSI adapters
#device adw # Advansys wide SCSI adapters
#device aha # Adaptec 154x SCSI adapters
#device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
#device bt  # Buslogic/Mylex MultiMas

Re: load balancing with multiple pppoe sessions

2007-01-13 Thread James Long
> Message: 5
> Date: Sat, 13 Jan 2007 10:27:47 -0300
> From: "Roberto Pereyra" <[EMAIL PROTECTED]>
> Subject: load balancing with multiple pppoe sessions
> To: freebsd-questions@freebsd.org
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Hi all!!!
> 
> A simple question ?
> 
> Does freebsd pppoe support multiple sessions ?
> 
> I need to configure a two adsl load balancing server using pf (pools
> setup) but I don't have adsl routers only modems.
> 
> Can I can do it with freebsd ?
> 
> Thanks in advance.
> 
> roberto

I'm not an expert in ppp, but I have been immersed in the ppp man page
for the last couple three days.

Assuming that your two ADSL lines are from the same ISP, and they
support multi-session ppp, then yes, FreeBSD's ppp claims to be able to
bond the two ppp sessions into a single datapipe.

Say:

man ppp

and search for MULTI-LINK


Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ppp: 'enable proxy' feature

2007-01-13 Thread James Long
Thank you to the folks who encouraged me to look at
/usr/share/examples/ppp/ppp.conf.sample for syntax on unique
IP assignment.  And after four more readings, I did find
the place in the man page where that is described!


The problem I have now is that I don't understand how to make
"enable proxy" work reliably for me.

The diagnosis I have so far says that "enable proxy" works only 
if the client knows to request an IP in the range of IPs defined
on the server.  If the client requests an IP outside that 
range (such as 10.0.0.2/0), then the server will instead assign 
them an IP from within the pool defined on the server, but the 
server does not create the proxy arp entry.

This is with 6.1-RC circa 20:34 5/1/2006 on one client, 6.2-PRE
circa 22:54 12/11/2006 on another, and 6.2-PRE 21:11 1/11/2007
on the server.

How can I get the server to proxy arp for all ppp peers that
receive IPs on the 192.168.0.0/24 LAN?

Thanks,

Jim



fxp0 is my ppp interface.  Before the client connects:

fxp0: flags=8843 mtu 1500
options=8
inet 10.0.0.1 netmask 0xff00 broadcast 10.255.255.255
ether 00:09:6b:86:82:a6
media: Ethernet autoselect (100baseTX )
status: active
lo0: flags=8049 mtu 16384
inet 127.0.0.1 netmask 0xff00 
ath0: flags=8843 mtu 1500
inet 192.168.0.68 netmask 0xff00 broadcast 192.168.0.255
ether 00:20:a6:57:a4:09
media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/6Mbps)
status: associated
ssid default channel 6 bssid 00:11:95:6b:3e:c2
authmode OPEN privacy OFF txpowmax 36 bmiss 7 protmode CTS burst
bintval 100
tun0: flags=8010 mtu 1500
tun1: flags=8010 mtu 1500
tun2: flags=8010 mtu 1500

arp table:

? (10.0.0.1) at 00:09:6b:86:82:a6 on fxp0 permanent [ethernet]
? (192.168.0.1) at 00:11:95:6b:3e:c2 on ath0 [ethernet]

ppp.log showing client connect, requesting 10.0.0.2, assigned IP 
192.168.0.229:

Jan 13 14:23:09 t30 ppp[84882]: Phase: Using interface: tun0
Jan 13 14:23:09 t30 ppp[84882]: Phase: deflink: Created in closed state
Jan 13 14:23:09 t30 ppp[84882]: tun0: Command: default: ident user-ppp VERSION 
(built COMPILATIONDATE)
Jan 13 14:23:09 t30 ppp[84882]: tun0: Command: t30: set device PPPoE:fxp0:t30
Jan 13 14:23:09 t30 ppp[84882]: tun0: Command: t30: set speed sync
Jan 13 14:23:09 t30 ppp[84882]: tun0: Command: t30: set mru 1492
Jan 13 14:23:09 t30 ppp[84882]: tun0: Command: t30: set mtu 1492
Jan 13 14:23:09 t30 ppp[84882]: tun0: Command: t30: set ifaddr 192.168.255.1 
192.168.0.128-192.168.0.254 255.255.255.255
Jan 13 14:23:09 t30 ppp[84882]: tun0: IPCP: Selected IP address 192.168.0.229
Jan 13 14:23:09 t30 ppp[84882]: tun0: Command: t30: enable proxy
Jan 13 14:23:09 t30 ppp[84882]: tun0: Command: t30: enable lqr
Jan 13 14:23:09 t30 ppp[84882]: tun0: Command: t30: enable pap
Jan 13 14:23:09 t30 ppp[84882]: tun0: Command: t30: enable passwdauth
Jan 13 14:23:09 t30 ppp[84882]: tun0: Command: t30: set dns 10.0.0.1 10.0.0.1
Jan 13 14:23:09 t30 ppp[84882]: tun0: Command: t30: accept dns
Jan 13 14:23:09 t30 ppp[84882]: tun0: Phase: PPP Started (direct mode).
Jan 13 14:23:09 t30 ppp[84882]: tun0: Phase: bundle: Establish
Jan 13 14:23:09 t30 ppp[84882]: tun0: Phase: deflink: closed -> opening
Jan 13 14:23:09 t30 ppp[84882]: tun0: Phase: deflink: Link is a netgraph node
Jan 13 14:23:09 t30 ppp[84882]: tun0: Phase: deflink: Connected!
Jan 13 14:23:09 t30 ppp[84882]: tun0: Phase: deflink: opening -> carrier
Jan 13 14:23:09 t30 ppp[84882]: tun0: Phase: deflink: carrier -> lcp
Jan 13 14:23:09 t30 ppp[84882]: tun0: LCP: FSM: Using "deflink" as a transport
Jan 13 14:23:09 t30 ppp[84882]: tun0: LCP: deflink: State change Initial --> 
Closed
Jan 13 14:23:09 t30 ppp[84882]: tun0: LCP: deflink: State change Closed --> 
Stopped
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP: deflink: LayerStart
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP: deflink: SendConfigReq(1) state = 
Stopped
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP:  MRU[4] 1492
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP:  MAGICNUM[6] 0xc2eab6f1
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP:  QUALPROTO[8] proto c025, interval 
3ms
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP:  AUTHPROTO[4] 0xc023 (PAP)
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP: deflink: State change Stopped --> 
Req-Sent
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP: deflink: RecvConfigReq(1) state = 
Req-Sent
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP:  MRU[4] 1492
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP:  MAGICNUM[6] 0xc371b5d8
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP: deflink: SendConfigAck(1) state = 
Req-Sent
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP:  MRU[4] 1492
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP:  MAGICNUM[6] 0xc371b5d8
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP: deflink: State change Req-Sent --> 
Ack-Sent
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP: deflink: RecvConfigAck(1) state = 
Ack-Sent
Jan 13 14:23:10 t30 ppp[84882]: tun0: LCP:  MRU[4] 1492
Jan 13 14:23:10 t30 ppp[84882

Re: /dev/null in a chroot

2007-01-12 Thread James Long
> Date: Sun, 07 Jan 2007 20:03:40 -0400
> From: "Marc G. Fournier" <[EMAIL PROTECTED]>
> Subject: Re: /dev/null in a chroot
> To: Michael Grant <[EMAIL PROTECTED]>,FreeBSD Questions
>   
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=us-ascii
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> 
> #!/bin/sh
> /sbin/devfs -m $1 rule apply hide
> /sbin/devfs -m $1 rule apply path null unhide
> 
> where $1 == the dev directory you mount within the chroot environment ...

This issue is currently biting users of /usr/ports/security/scponly
also, I believe.

I'm finding that recently-created scponlyc chroots do not permit sftp 
login, although they do allow ftp login.  The client symptom is just:

$ sftp [EMAIL PROTECTED]
Connecting to www...
Password:
Connection closed
$

The cause appears to be that recent versions of 
/usr/libexec/sftp-server will complain about of lack of access to 
/dev/null and exit, resulting in the closed connection witnessed by 
the remote client.

The solution appears to be to create a devfs in the scponlyc chroot.

This is a little disappointing, as scponlyc used to be delightfully
lightweight and low-maintenance.  At this point, my understanding is
that the devfs requirement means that now I must run a script at boot
time that iterates through a list of chroot'ed users and create dev 
nodes within each jail.  scponlyc jails were previously a 
set-and-forget type of setup.

What is the proper mechanism for setting up an arbitrary number of
scponlyc chroots at boot time?  /usr/share/examples/etc/devfs.conf
doesn't show an example of how to apply these rules to a non-default
dev path.  I have chosen to put a script in /usr/local/etc/rc.d.

In case other scponly users are reading this in the archives, the 
manual method that works for me with 6.2-PRE and scponly-4.6_1 is:

# cd ~user
# mkdir -p dev
# mount_devfs devfs dev
# devfs -m dev rule -s 1 applyset
# devfs -m dev rule -s 2 applyset

One then sees:

# ls -l dev
total 0
crw-rw-rw-  1 root  wheel0,   6 Jan 12 17:15 null
crw-rw-rw-  1 root  wheel0,  12 Jan 10 07:57 random
lrwxr-xr-x  1 root  wheel 6 Jan 12 16:54 urandom@ -> random
crw-rw-rw-  1 root  wheel0,   7 Jan 10 15:57 zero

which is more than enough to appease /usr/libexec/sftp-server.

chroots created some months ago contain lib versions with numbers 
typically one less, such as ./usr/lib/libssh.so.2 in the older 
chroot, versus ./usr/lib/libssh.so.3 in the newer.  The older
scponly chroots do net require devfs nodes!  I suspect they will 
eventually break though, given enough time.

Given that scponlyc provides a setup_chroot.sh script that provides
hooks for OS-specific chroot setup steps, would it help the port
maintainer to provide the shell script below?  I have it installed
in /usr/local/etc/rc.d/scponlyc.sh.


Jim



#!/bin/sh

# script to create devfs filesystems at boot time for scponlyc 
# chroot'ed users.  We will read /etc/shells to determine
# where scponlyc is installed.  Then we'll iterate through
# each user in /etc/passwd to find users whose shell is set to
# scponlyc.  For each such user found, we will create a 
# minimal devfs under ~/dev.



SCPONLYC=$(/usr/bin/grep "/scponlyc$" /etc/shells 2>/dev/null | /usr/bin/tail 
-1)


make_devfs() {
# $1 is the user name whose home directory needs a minimal
# devfs created.  If ~/dev is not a directory, it will be 
# deleted and replaced with a directory.

eval DEV="~$1/dev"
while /sbin/umount ${DEV} 2>/dev/null; do :; done
[ -h "${DEV}" ] && rm "${DEV}"
[ -f "${DEV}" ] && rm "${DEV}"
mkdir -p "${DEV}"
if /sbin/mount_devfs devfs "${DEV}"; then
  /sbin/devfs -m "${DEV}" rule -s 1 applyset || /sbin/umount ${DEV} 2>/dev/null
  /sbin/devfs -m "${DEV}" rule -s 2 applyset || /sbin/umount ${DEV} 2>/dev/null
fi

}


scponly_startup() {
# $1 is the path to the /etc/passwd file

if [ "x${SCPONLYC}" = "x" ]; then
  echo scponlyc is not defined in /etc/shells >&2
  exit 1
fi

/usr/bin/grep -v "^[ ]*#" "$1" | 
  /usr/bin/awk -F: {'print $1 " " $7'} |
while read USER SHELL; do
  if [ "x${SHELL}" = "x${SCPONLYC}" ]; then
make_devfs "${USER}"
  fi
done

}


case "$1" in
start)
scponly_startup "/etc/passwd"
echo -n ' scponlyc'
;;
*)
echo "Usage: `basename $0` start" >&2
;;
esac

exit 0
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


server-side PPPoE: how to get ppp to automatically assign IPs?

2007-01-12 Thread James Long
I'm working with PPPoE.  I have one client and a provider working.
I'm using pppoed to spawn ppp instances on the provider:

/usr/libexec/pppoed -F -p t30 fxp0

The provider's ppp.conf:

default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)
 set device /dev/cual0
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
   \"\" ATZ OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set timeout 1200
 set server +3000 pppass

t30:
# this is pppoe server-side
set device PPPoE:fxp0:t30
set ifaddr 192.168.255.1 192.168.0.128/25 255.255.255.255
enable proxy
enable pap
enable passwdauth

The client's ppp.conf is:

default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)
 set device /dev/cual0
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
   \"\" ATZ OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set timeout 1200
 set server +3000 pppass

t30:
# this is ppp over ethernet
#set ifaddr mine/0 his/0 255.255.255.255
set ifaddr 10.0.0.2/0 10.0.0.1/0 255.255.255.255
add default HISADDR
set timeout 0
set dial
set device PPPoE:fxp0:t30
set authname ppp
set authkey 


I can connect the first client no problem, and it is assigned
192.168.0.128.  When the second client tries to connect, it fails.
Actually, the "ppp -background t30" on the client goes well, and
says "PPP enabled" but then the client ppp dies, I presume because
the server side ppp closed the connection.

It appears that the problem is client IP number conflict.  The 
server-side ppp.log shows that it tries to assign the first client's 
IP to the second client, and though ppp detects the conflict, it does 
not try to assign a different IP, even though a /25 is provided in the 
server's ppp.conf, and the client is configured to accept any IP.

How can I get the pppoe provider to automatically assign a unique IP
to each client that requests service?

Also, what if my pool of available IPs has discontinuities, such as
a.b.c.d/24 and then i.j.k.l/25 and w.x.y.z/22?  I don't see how
that can be accomodated in the "set ifaddr" line.  Is there a more
extensible mechanism for assigning client IPs?  How many tun
devices is a low-end P4 machine likely to support?

Thank you!

Jim


When the second client attempts to connect, the server ppp.log shows:

Jan 12 12:59:17 t30 ppp[2513]: tun1: LCP: deflink: LayerFinish
Jan 12 12:59:17 t30 ppp[2513]: tun1: LCP: deflink: State change Closing --> 
Closed
Jan 12 12:59:17 t30 ppp[2513]: tun1: LCP: deflink: State change Closed --> 
Initial
Jan 12 12:59:17 t30 ppp[2513]: tun1: Phase: deflink: Disconnected!
Jan 12 12:59:17 t30 ppp[2513]: tun1: Phase: deflink: Connect time: 1 secs: 373 
octets in, 400 octets out
Jan 12 12:59:17 t30 ppp[2513]: tun1: Phase: deflink: 16 packets in, 17 packets 
out
Jan 12 12:59:17 t30 ppp[2513]: tun1: Phase:  total 773 bytes/sec, peak 0 
bytes/sec on Fri Jan 12 12:59:16 2007
Jan 12 12:59:17 t30 ppp[2513]: tun1: Phase: deflink: lcp -> closed
Jan 12 12:59:17 t30 ppp[2513]: tun1: Phase: bundle: Dead
Jan 12 12:59:17 t30 ppp[2513]: tun1: Phase: PPP Terminated (normal).
Jan 12 12:59:50 t30 ppp[2516]: Phase: Using interface: tun1
Jan 12 12:59:50 t30 ppp[2516]: Phase: deflink: Created in closed state
Jan 12 12:59:50 t30 ppp[2516]: tun1: Command: default: ident user-ppp VERSION 
(built COMPILATIONDATE)
Jan 12 12:59:50 t30 ppp[2516]: tun1: Command: default: set device /dev/cual0
Jan 12 12:59:50 t30 ppp[2516]: tun1: Command: default: set speed 115200
Jan 12 12:59:50 t30 ppp[2516]: tun1: Command: default: set dial ABORT BUSY 
ABORT NO\sCARRIER TIMEOUT 5"" ATZ OK-AT-OK \dATDT\T TIMEOUT 40 
CONNECT
Jan 12 12:59:50 t30 ppp[2516]: tun1: Command: default: set timeout 1200
Jan 12 12:59:50 t30 ppp[2516]: tun1: Command: default: set server +3000 
Jan 12 12:59:50 t30 ppp[2516]: tun1: Phase: Listening at port 3001.
Jan 12 12:59:50 t30 ppp[2516]: tun1: Command: t30: set device PPPoE:fxp0:t30
Jan 12 12:59:50 t30 ppp[2516]: tun1: Command: t30: set ifaddr 192.168.255.1 
192.168.0.128/25 255.255.255.255
Jan 12 12:59:50 t30 ppp[2516]: tun1: Command: t30: enable proxy
Jan 12 12:59:50 t30 ppp[2516]: tun1: Command: t30: enable pap
Jan 12 12:59:50 t30 ppp[2516]: tun1: Command: t30: enable passwdauth
Jan 12 12:59:50 t30 ppp[2516]: tun1: Phase: PPP Started (direct mode).
Jan 12 12:59:50 t30 ppp[2516]: tun1: Phase: bundle: Establish
Jan 12 12:59:50 t30 ppp[2516]: tun1: Phase: deflink: closed -> opening
Jan 12 12:59:50 t30 ppp[2516]: tun1: Phase: deflink: Link is a netgraph node
Jan 12 12:59:50 t30 ppp[2516]: tun1: Phase: deflink: Connected!
Jan 12 12:59:50 t30 ppp[2516]: tun1: Phase: deflink: opening -> carrier
Jan 12 12:59:50 t30 ppp[2516]: tun1: Phase: deflink: carrier -> lcp
Jan 12 12:59:50 t30 ppp[2516]: tun1: LCP: FSM: Using "deflink" as a transport
Jan 12 12:59:50 t30 ppp[2516]: tun1: LCP: deflink: State change Initial --> 

Re: How dangerous a Standard User could be to a FreeBSD box?

2007-01-11 Thread James Long
On Thu, Jan 11, 2007 at 08:52:44AM -0500, Nathan Vidican wrote:

> > > > > How dangerous a Standard User could be to a FreeBSD box?

> > > > Depending on local setup, this could range from 'not at all' to
> > > > 'extremely'.  Do you have a *specific* setup in mind?

> > > Standard user with the root password, a bag of explosives, a .45 magnum, 
> > > and a chip on his shoulder, say?
> > Yeah, and even a user with no account or password, a screwdriver, and
> > a Mountain Dew.

> Gotcha all beat, screw the 'standard user' issue... I had a client call 
> me once cause the office cat peed onto/into the server; no technical 
> expertise required whatsoever, no password, no re-wiring of network, 
> heck no opposable digits even or anything else for that matter, yet it 
> still managed to kill the server ;)

Ah yes, the infamous cat(1) ppp(8) exploit.  Much harder to clean up
than cat(1) dump(8), too.

Fortunately, the worst problem I've had with mine is occassional 
race conditions with mouse(4).


Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How dangerous a Standard User could be to a FreeBSD box?

2007-01-10 Thread James Long
> Date: Wed, 10 Jan 2007 17:47:52 -0800
> From: Jay Chandler <[EMAIL PROTECTED]>
> Subject: Re: How dangerous a Standard User could be to a FreeBSD box?
> To: Giorgos Keramidas <[EMAIL PROTECTED]>
> Cc: FreeBSD-Questions ,VeeJay
>   <[EMAIL PROTECTED]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Giorgos Keramidas wrote:
> > On 2007-01-10 13:24, VeeJay <[EMAIL PROTECTED]> wrote:
> >   
> >> Hi
> >> How dangerous a Standard User could be to a FreeBSD box?
> >> 
> >
> > Depending on local setup, this could range from 'not at all' to
> > 'extremely'.  Do you have a *specific* setup in mind?
> >
> >   
> Standard user with the root password, a bag of explosives, a .45 magnum, 
> and a chip on his shoulder, say?

Yeah, and even a user with no account or password, a screwdriver, and
a Mountain Dew.

Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Batch file question - average size of file in directory

2007-01-03 Thread James Long
> Date: Thu, 4 Jan 2007 04:46:43 +1100 (EST)
> From: Ian Smith <[EMAIL PROTECTED]>
> Subject: Re: Batch file question - average size of file in directory
> To: freebsd-questions@freebsd.org
> Cc: James Long <[EMAIL PROTECTED]>, Kurt Buff <[EMAIL PROTECTED]>
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> ... you REALLY don't want to zcat 110 thousand files just to wc 'em,
> unless it's a benchmark :)

Quite right!  Well played.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Batch file question - average size of file in directory

2007-01-02 Thread James Long
> Message: 28
> Date: Tue, 2 Jan 2007 10:20:08 -0800
> From: "Kurt Buff" <[EMAIL PROTECTED]>
> Subject: Batch file question - average size of file in directory
> To: [EMAIL PROTECTED]
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> All,
> 
> I don't even have a clue how to start this one, so am looking for a little 
> help.
> 
> I've got a directory with a large number of gzipped files in it (over
> 110k) along with a few thousand uncompressed files.
> 
> I'd like to find the average uncompressed size of the gzipped files,
> and ignore the uncompressed files.
> 
> How on earth would I go about doing that with the default shell (no
> bash or other shells installed), or in perl, or something like that.
> I'm no scripter of any great expertise, and am just stumbling over
> this trying to find an approach.
> 
> Many thanks for any help,
> 
> Kurt

Hi, Kurt.

Can I make some assumptions that simplify things?  No kinky filenames, 
just [a-zA-Z0-9.].  My approach specifically doesn't like colons or 
spaces, I bet.  Also, you say gzipped, so I'm assuming it's ONLY gzip, 
no bzip2, etc.

Here's a first draft that might give you some ideas.  It will output:

foo.gz : 3456
bar.gz : 1048576
(etc.)

find . -type f | while read fname; do
  file $fname | grep -q "compressed" && echo "$fname : $(zcat $fname | wc -c)"
done


If you really need a script that will do the math for you, then
pip the output of this into bc:

#!/bin/sh

find . -type f | {

n=0
echo scale=2
echo -n "("
while read fname; do
  if file $fname | grep -q "compressed"
  then
echo -n "$(zcat $fname | wc -c)+"
n=$(($n+1))
  fi
done
echo "0) / $n"

}

That should give you the average decompressed size of the gzip'ped
files in the current directory.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: var out of space

2006-12-17 Thread James Long
> Date: Sat, 16 Dec 2006 23:31:58 -0800
> From: Bradley Giesbrecht <[EMAIL PROTECTED]>
> Subject: var out of space
> To: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
> 
> Hello,
> 
> 
> I inherited a freebsd installation with a var slice/mount that is to  
> small and filling up all the time.
> 
> What type of info should I provide to allow someone to help me with a  
> solution?
> 
> I would very much prefer to not install another drive just for /var.
> 
> /usr has plenty of space. Can I mount var off of /usr?

Here is a slightly simpler solution than what Anders proposed that 
may work for you.

Find out which sub-directories of /var are the disk space consumers:

du -d1 /var | sort -rn | head

That will list the top ten.  This method assumes you have only one
or two large directories, and that moving them would yield
a substantial reduction in /var disk space usage.

Let's assume that /var/log and /var/db are the top two directories.

Shutdown to single-user mode.  Stop any daemons like syslog, sendmail,
etc. that might write to /var/log or /var/db, since you will be working
with those two directories.

cd into /var and move the log sub-directory onto the /usr mount point,
and then create a symlink to make /var/log redirect to the new location
on /usr:

cd /var
mv log /usr/var-log
ln -s /usr/var-log log

Repeat for /var/db:

mv db /usr/var-db
ln -s /usr/var-db db

Reboot.

This procedure eliminates the need to mess with your disklabel or your 
fstab.

BTW, it looks like your / partition is a bit crowded, also. :)


Jim

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Translate job number from atq to commands that will run

2006-12-16 Thread James Long
> Date: Sat, 16 Dec 2006 16:54:58 -0600
> From: JAMES T RIENDEAU <[EMAIL PROTECTED]>
> Subject: Translate job number from atq to commands that will run
> To: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
> 
> Does anybody know how I could translate the job # into the commands  
> that will run from the output of the atq command?  For example, here  
> is my current atq:
> 
> Date  Owner   Queue   Job #
> Mon Dec 18 09:00:00 CST 2006  rootc   34
> Wed Dec 20 09:00:00 CST 2006  rootc   35
> Fri Dec 22 09:00:00 CST 2006  rootc   36
> Wed Dec 27 09:00:00 CST 2006  rootc   37
> Sat Dec 30 09:00:00 CST 2006  rootc   38
> Wed Jan  3 09:00:00 CST 2007  rootc   39
> Sat Jan  6 09:00:00 CST 2007  rootc   40
> Mon Dec 18 09:00:00 CST 2006  rootc   41
> Wed Dec 20 09:00:00 CST 2006  rootc   42
> Fri Dec 22 09:00:00 CST 2006  rootc   43
> Wed Dec 27 09:00:00 CST 2006  rootc   44
> Sat Dec 30 09:00:00 CST 2006  rootc   45
> Wed Jan  3 09:00:00 CST 2007  rootc   46
> Sat Jan  6 09:00:00 CST 2007  rootc   47
> 
> I checked the /var/at/spool and /var/at/jobs, but it isn't obvious  
> which job is scheduled to run when.
> 
> Thank you,
> 
> James Riendeau
> MMI Computer Support Technician
> 1300 University Ave
> Rm. 436, Dept. of MedMicro
> Madison, WI  53706
> 
> Phone: (608) 262-3351
> Email: [EMAIL PROTECTED]

man at

Note the -c flag.


Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how do I see security logs without turning on sendmail?

2006-12-14 Thread James Long
> Date: Wed, 13 Dec 2006 17:33:32 -0600
> From: Lane <[EMAIL PROTECTED]>
> Subject: Re: how do I see security logs without turning on sendmail?
> To: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain;  charset="iso-8859-1"
> 
> Tuareg,
> 
> clearly sendmail is running.  That is indicated by "sendmail[41626]" in 
> your /var/log/sendmail log.
> 
> The question, of course, is how does it get started.

This is quite the WAG here, but can sendmail be started on-demand 
from inetd.conf?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: FreeBSD Backup

2006-12-12 Thread James Long
> Date: Tue, 12 Dec 2006 07:05:18 -0800 (PST)
> From: probsd org <[EMAIL PROTECTED]>
> Subject: RE: FreeBSD Backup
> To: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=iso-8859-1
> 
> This is assuming you have another account on another freebsd/linux box with a 
> significant amount of space. Works great on a live filesystem. I use /, /var, 
> /tmp, and /usr as examples.
>
>   dump -L -0f - /usr | ssh -C [EMAIL PROTECTED] "cat > 
> /usr/home/login/usr.dump"
>   dump -L -0f - /tmp | ssh -C [EMAIL PROTECTED] "cat > 
> /usr/home/login/tmp.dump"
>   dump -L -0f - /var | ssh -C [EMAIL PROTECTED] "cat > 
> /usr/home/login/var.dump"
>   dump -L -0f - / | ssh -C [EMAIL PROTECTED] "cat > /usr/home/login/root.dump"

Watch your umask when doing stuff like the above.  If /usr/home/login 
is world-readable (or group-readable), and your umask permits 
world-readable files, then all your secure chown root / chmod 600 
files are suddenly world readable to any rogueuser that can 
"cp /usr/home/login/root.dump ~rogueuser/".

I prefer to explicitly set the umask:

dump -L -0f - / | ssh -i ~root/.ssh/special_backup_dsa_key \
  [EMAIL PROTECTED] "umask 177; cat > /usr/home/login/root.dump"

One could/should of course also "chmod 700 /usr/home/login"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Major Version Upgrade 4.11 to 5.x

2006-12-11 Thread James Long
> Date: Mon, 11 Dec 2006 15:26:02 -0500
> From: listvj <[EMAIL PROTECTED]>
> Subject: Re: Major Version Upgrade 4.11 to 5.x
> To: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Btw, I'm sorry for posting this question twice.  I posted the first one 
> with the wrong email address.  I was surprised (and disappointed) to see 
> that the list accepted it as I did not subscribe to the list with that 
> address. :(

Why are you disappointed that the list accepts email from anyone who 
needs FreeBSD support?  Personally, I dislike some of the lists where 
you have to "join the club" before you can ask a question to receive 
support.

By the way, that is why it is customary to Cc: both the person and
and the list when replying.  It doesn't do any good to send a response
to the list if the person who asked the question isn't subscribed.


Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Major Version Upgrade - 4.11 to 5.x

2006-12-11 Thread James Long
On Sunday 10 December 2006 15:41, Valen Jones wrote:
> I'm interested in upgrading from 4.11 to 5.x.  I currently track 4.x
> stable using cvsup, but I've never done a major version upgrade.
>
> First, should I bother?  My hardware has dual pentium 1.13 processors
> with 1G ram (I'm considering maxing it out at 4).  I host a few domains
> on this machine and I have four jails configured on it which will have
> to be upgraded too.  I have users counting particularly on mail service
> not being down for too long.
>
> Other than the obvious advice to start with a good backup, can anyone
> tell me:
>
> 1)  Will I gain a major benefit from upgrading
>
> 2)  Where should I look for instructions / advice on upgrading
>
> 3)  Also any general advice from personal experience.

Beech's advice is sound.  I would stress that the simplest and easiest
by far is indeed a clean install.  And take two backups, if you have
customers counting on things going right.  Make sure your backups are
readable, usable and complete (no bad spots on tape media, no files
inadvertently omitted, etc.).

If at all possible, leave the production system running and begin the
new installation on separate hardware.  If you have a fast new machine 
to migrate onto, do that.  However your current hardware sounds
adequate for the light load you describe.  If you have just a spare
machine of nearly the same horsepower and configuration, you could
do the new installation on the spare machine, get it configured and
tested, and then backup the old machine twice, wipe the drive and
re-partition, and then transfer the newly-built configuration onto 
your production hardware.  Watch out for /etc/fstab gotchas, like if 
the test machine has an ad0 ATA drive and the production is da0 SCSI.

This will allow you to do a lot of migration, testing and tweaking 
off-line, without your customers noticing much downtime, except for
the final changeover.

How current are your installed ports?  Review the ports you do have
installed, and see whether you're really still using them.  It will
save you a little time on the new machine by not having to build
ports you don't really need anymore.  Look at your key applications, 
and where there are significant version changes between what you're 
running and what's current, familiarize yourself with the upgrade 
issues (if any) that each port presents.  Be prepared to test any
new features you hope to use, or to regression test to make sure
that legacy functionality still works the way you expect.  This 
might be the time to switch to Apache 2, for example, if you want
to.  But some things that worked under 1.3 will have to be adjusted
to work under 2.  At the least, it would be good to upgrade to the 
latest 1.3.x, to use Apache as an example.

As for #3, I have grown fond of using a FreesBIE or other live CD for
steps like booting the migration/test box to create a backup image of 
the new 6.X filesystem, and then also to boot the production box for 
the final changeover to transfer that backup image onto the production
disk.  That way your file system in an off-line (inactive) state, 
where you can cleanly backup the old production filesystem (twice!),
then wipe and re-partition, and transfer the new configuration image
onto the production drive likewise in a clean state.  If you haven't
already, spend some time just experimenting on a test machine, and 
make friends with FreesBIE and/or the Fixit live CD mode of FreeBSD 
installation media.

Good luck!

Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Latest Apache13 with PHP5 crashes when PostgreSQL support is added

2006-11-27 Thread James Long
On Mon, Nov 27, 2006 at 09:48:46PM -0800, James Long wrote:
> I have been running Apache (apache+mod_ssl-1.3.34+2.8.25_1) for some
> time with php5 and extensions to support PostgreSQL 8.0.9.  After 
> upgrading to PostgreSQL 8.1.15 I find that Apache crashes if the
> php5 PostgreSQL extension is installed.  I have updated Apache to
> apache+mod_ssl-1.3.37+2.8.28 with no improvement.  I have 
> pkg_deleted and re-installed the php5 port with no improvement.

Please forgive the typo, I am running PostgreSQL 8.1.5:

postgresql-client-8.1.5 PostgreSQL database (client)
postgresql-server-8.1.5 The most advanced open-source database available 
anywhere

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Latest Apache13 with PHP5 crashes when PostgreSQL support is added

2006-11-27 Thread James Long
I have been running Apache (apache+mod_ssl-1.3.34+2.8.25_1) for some
time with php5 and extensions to support PostgreSQL 8.0.9.  After 
upgrading to PostgreSQL 8.1.15 I find that Apache crashes if the
php5 PostgreSQL extension is installed.  I have updated Apache to
apache+mod_ssl-1.3.37+2.8.28 with no improvement.  I have 
pkg_deleted and re-installed the php5 port with no improvement.

Starting Apache via the package's rc.d script results in a short-
lived httpd process that doesn't live long enough to log anything 
before it exits.  I have to run it as "httpd -DSSL -X" to see
any debugging info at all, which is simply "Segmentation fault: 11 
(core dumped)" and an httpd.core file.

I am compiling php5-extensions with only pgsql support.  With this
php5-extensions meta-port installed, Apache will not start with PHP
support.  If I either comment out Apache's PHP support, or de-install
the php5-pgsql-5.2.0 package, Apache will start.  That suggests to
me that I have narrowed down my list of suspects.

How can I get the latest Apache 1.3.X and PHP5 to support the latest 
PostgreSQL?

Thank you for your time.

Jim




ns : 21:05:31 /usr/ports/lang/php5-extensions# make showconfig | grep -vw off
===> The following configuration options are available for php5-extensions-1.0:
 PGSQL=on "PostgreSQL database support"
===> Use 'make config' to modify these settings

If I install php5-pgsql-5.2.0 and run "/usr/local/etc/rc.d/apache start"
I get no error message on the console, and a single httpd process lives
briefly then exits.   Manually running httpd -DSSL -X shows a segmentation
fault 11.  Below, findps is a shell shortcut that is basically 
ps -axl | grep "$@" which is a quick and dirty way to see whether a process
is running.

ns : 21:26:27 /usr/local/etc/apache# findps http
ns : 21:26:30 /usr/local/etc/apache# pkg_info | grep php
php5-5.2.0  PHP Scripting Language (Apache Module and CLI)
php5-extensions-1.0 A "meta-port" to install PHP extensions
php5-pgsql-5.2.0The pgsql shared extension for php
ns : 21:26:36 /usr/local/etc/apache# pkg_info | grep ^apache
apache+mod_ssl-1.3.37+2.8.28 The Apache 1.3 webserver with SSL/TLS functionality
ns : 21:26:44 /usr/local/etc/apache# httpd -DSSL -X
Processing config directory: /usr/local/etc/apache/virtual-hosts/*.conf
 Processing config file: /usr/local/etc/apache/virtual-hosts/com.example1.conf
 Processing config file: /usr/local/etc/apache/virtual-hosts/com.example2.conf
 Processing config file: /usr/local/etc/apache/virtual-hosts/com.example3.conf
 Processing config file: /usr/local/etc/apache/virtual-hosts/com.example4.conf
 Processing config file: /usr/local/etc/apache/virtual-hosts/com.example5.conf
 Processing config file: /usr/local/etc/apache/virtual-hosts/com.example6.conf
 Processing config file: /usr/local/etc/apache/virtual-hosts/com.example7.conf
(... etc.)
 Processing config file: /usr/local/etc/apache/virtual-hosts/org.exampleN.conf
Segmentation fault: 11 (core dumped)
ns : 21:26:59 /usr/local/etc/apache# ls -l *core
-rw---  1 root  wheel  27332608 Nov 27 21:26 httpd.core
ns : 21:27:08 /usr/local/etc/apache#

If I de-install the PHP support for Postgres, apache will start:

ns : 21:30:07 /usr/local/etc/apache# pkg_delete php5-pgsql-5.2.0
pkg_delete: package 'php5-pgsql-5.2.0' is required by these other packages
and may not be deinstalled:
php5-extensions-1.0
ns : 21:30:12 /usr/local/etc/apache# pkg_delete php5-extensions-1.0
ns : 21:30:26 /usr/local/etc/apache# pkg_delete php5-pgsql-5.2.0
ns : 21:30:28 /usr/local/etc/apache# /usr/local/etc/rc.d/apache.sh start
Starting apache.
Processing config directory: /usr/local/etc/apache/virtual-hosts/*.conf
 Processing config file: /usr/local/etc/apache/virtual-hosts/com.example1.conf
 Processing config file: /usr/local/etc/apache/virtual-hosts/com.example2.conf
 Processing config file: /usr/local/etc/apache/virtual-hosts/com.example3.conf
 Processing config file: /usr/local/etc/apache/virtual-hosts/com.example4.conf
 Processing config file: /usr/local/etc/apache/virtual-hosts/com.example5.conf
 Processing config file: /usr/local/etc/apache/virtual-hosts/com.example6.conf
 Processing config file: /usr/local/etc/apache/virtual-hosts/com.example7.conf
(... etc.)
 Processing config file: /usr/local/etc/apache/virtual-hosts/org.exampleN.conf
ns : 21:30:58 /usr/local/etc/apache# findps http
root  56898 41.4  3.1 37024 32404  ??  Ss9:30PM   0:02.72 
/usr/local/sbin/httpd -DSSL
www   57036  0.0  3.1 37024 32420  ??  S 9:31PM   0:00.01 
/usr/local/sbin/httpd -DSSL
www   57037  0.0  3.1 37024 32420  ??  S 9:31PM   0:00.00 
/usr/local/sbin/httpd -DSSL
www   57038  0.0  3.1 37024 32420  ??  S 9:31PM   0:00.01 
/usr/local/sbin/httpd -DSSL
www   57039  0.0  3.1 37024 32420  ??  S 9:31PM   0:00.01 
/usr/local/sbin/httpd -DSSL
www   57040  0.0  3.1 370

error while building lang/p5-Error

2006-11-12 Thread James Long
How to fix?



ns : 20:53:22 /root# portupgrade lang/p5-Error
--->  Upgrading 'p5-Error-0.17.004' to 'p5-Error-0.17.007' (lang/p5-Error)
--->  Building '/usr/ports/lang/p5-Error'
===>  Cleaning for perl-5.8.8
===>  Cleaning for p5-Error-0.17.007
===>  Extracting for p5-Error-0.17.007
=> MD5 Checksum OK for Error-0.17007.tar.gz.
=> SHA256 Checksum OK for Error-0.17007.tar.gz.
===>   p5-Error-0.17.007 depends on file: /usr/local/bin/perl5.8.7 - found
===>  Patching for p5-Error-0.17.007
===>   p5-Error-0.17.007 depends on file: /usr/local/bin/perl5.8.7 - found
===>   p5-Error-0.17.007 depends on file: /usr/local/bin/perl5.8.7 - found
===>  Configuring for p5-Error-0.17.007
Checking if your kit is complete...
Looks good
Writing Makefile for Error
===>  Building for p5-Error-0.17.007
cp lib/Error.pm blib/lib/Error.pm
cp lib/Error/Simple.pm blib/lib/Error/Simple.pm
Manifying blib/man3/Error.3
Manifying blib/man3/Error::Simple.3
/usr/local/bin/perl5.8.7 "-Iblib/arch" "-Iblib/lib" Build.PL Build
Too early to specify a build action 'Build'.  Do 'Build Build' instead.
*** Error code 2

Stop in /usr/ports/lang/p5-Error/work/Error-0.17007.
*** Error code 1

Stop in /usr/ports/lang/p5-Error.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.76239.0 
env PORT_UPGRADE=yes make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! lang/p5-Error (p5-Error-0.17.004) (unknown build error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: cvsup*.au.freebsd.org ??

2006-10-31 Thread James Long
> Date: Tue, 31 Oct 2006 11:21:32 +1100
> From: Alan Garfield <[EMAIL PROTECTED]>
> Subject: Re: cvsup*.au.freebsd.org ??
> To: Norberto Meijome <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain
> 
> I also find that the cvsup6.au.freebsd.org is totally useless. It
> doesn't carry src-all and this effectively makes fastest_cvsup useless
> for me because when I do 'make update' in /usr/src it selects cvs6 and
> fails.

In the short term, firewall off cvsup6 and re-run fastest_cvsup to use
the second-fastest server.

Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


portaudit thinks a vulnerability just disappeared

2006-10-16 Thread James Long
I have a 4.11-RELEASE system.

Prior to doing some minor portupdates, I had this portaudit report:

Checking for packages with security vulnerabilities:

Affected package: php4-4.4.1_3
Type of problem: php -- open_basedir Race Condition Vulnerability.
Reference: 


Affected package: php4-4.4.1_3
Type of problem: php -- multiple vulnerabilities.
Reference: 


Affected package: ruby-1.8.4_3,1
Type of problem: ruby - multiple vulnerabilities.
Reference: 


Affected package: apache+mod_ssl-1.3.34+2.8.25_2
Type of problem: apache -- mod_rewrite buffer overflow vulnerability.
Reference: 


Affected package: mutt-1.4.2.1_2
Type of problem: mutt -- Remote Buffer Overflow Vulnerability.
Reference: 


5 problem(s) in your installed packages found.


I cvsup'ped my ports tree and portupgraded ruby, mutt and portaudit, 
but not any of their dependencies (since version number changes were 
minor).

portaudit -aF now thinks:

www : 17:59:17 /root# portaudit -aF
auditfile.tbz 100% of   38 kB  138 kBps
New database installed.
Affected package: php4-4.4.1_3
Type of problem: php -- open_basedir Race Condition Vulnerability.
Reference: 


Affected package: php4-4.4.1_3
Type of problem: php -- multiple vulnerabilities.
Reference: 


2 problem(s) in your installed packages found.


Why does portaudit think the apache+mod_ssl problem went away?  The 
installed version is still:

apache+mod_ssl-1.3.34+2.8.25_2 The Apache 1.3 webserver with SSL/TLS 
functionality


Thanks!

Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Using portconf and /usr/local/etc/ports.conf

2006-10-09 Thread James Long
> Date: Mon, 9 Oct 2006 05:15:28 -0700 (PDT)
> From: backyard <[EMAIL PROTECTED]>
> Subject: Re: Using portconf and /usr/local/etc/ports.conf
> To: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=iso-8859-1
> 
> if ruby uses ncurses, that blue menu thing, you have
> to add BATCH=Yes as a build option to skip the menu
> and build it with the options you have selected.

You missed the point.  If I were to set batch mode on, then
it would just build WITHOUT the options I selected.  The fact
that the config box came up with RDOC and IPV6 still selected
suggests to me that portconf isn't recognizing my entries in 
ports.conf.

> don't know much about portconf

Thanks all the same.


Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Using portconf and /usr/local/etc/ports.conf

2006-10-07 Thread James Long
I am trying to migrate my /usr/local/etc/pkgtools.conf into 
/usr/local/etc/ports.conf.  I'm not sure I have the ports.conf
syntax correct, or that the entries I'm making are being 
recognized.

I've installed the sysutils/portconf port successfully, and
my make.conf is:

monitor : /root# cat /etc/make.conf
CPUTYPE?=p3

NO_PROFILE= true
USA_RESIDENT=YES

# 2005-12-19 to build sendmail without IPv6
NO_INET6=YES

# added by use.perl 2006-01-05 14:23:56
PERL_VER=5.8.7
PERL_VERSION=5.8.7
# Begin portconf settings
# Do not touch these lines
.if !empty(.CURDIR:M/usr/ports*) && exists(/usr/local/libexec/portconf)
_PORTCONF!=/usr/local/libexec/portconf
.for i in ${_PORTCONF:S/|/ /g}
${i:S/%/ /g}
.endfor
.endif
# End portconf settings


I have this line in /usr/local/etc/ports.conf for ruby18:

lang/ruby18: WITHOUT_RDOC=1 | WITHOUT_IPV6=1


portupgrade says that portupgrade and ruby are both out of date:

monitor : /root# portupgrade -nR portupgrade 2>/dev/null
--->  Session started at: Sat, 07 Oct 2006 20:34:32 -0700
--->  Upgrade of lang/ruby18 started at: Sat, 07 Oct 2006 20:34:35 -0700
--->  Upgrading 'ruby-1.8.4_9,1' to 'ruby-1.8.5_1,1' (lang/ruby18)
OK? [no]
--->  Upgrade of lang/ruby18 ended at: Sat, 07 Oct 2006 20:34:35 -0700 
(consumed 00:00:00)
--->  ** Upgrade tasks 3: 1 done, 0 ignored, 0 skipped and 0 failed
--->  Skipping 'lang/perl5.8' because it is held by user (specify -f to force)
--->  ** Upgrade tasks 3: 1 done, 1 ignored, 0 skipped and 0 failed
--->  Upgrade of sysutils/portupgrade started at: Sat, 07 Oct 2006 20:34:35 
-0700
--->  Upgrading 'portupgrade-2.1.3.3,2' to 'portupgrade-2.1.3.3_1,2' 
(sysutils/portupgrade)
OK? [no]
--->  Upgrade of sysutils/portupgrade ended at: Sat, 07 Oct 2006 20:34:35 -0700 
(consumed 00:00:00)
--->  ** Upgrade tasks 3: 2 done, 1 ignored, 0 skipped and 0 failed
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
+ lang/ruby18 (ruby-1.8.4_9,1)
- lang/perl5.8 (perl-5.8.7_2)
+ sysutils/portupgrade (portupgrade-2.1.3.3,2)
--->  Packages processed: 2 done, 1 ignored, 0 skipped and 0 failed
--->  Session ended at: Sat, 07 Oct 2006 20:34:35 -0700 (consumed 00:00:03)

But when I:

monitor : /root# portupgrade -R portupgrade
--->  Upgrading 'ruby-1.8.4_9,1' to 'ruby-1.8.5_1,1' (lang/ruby18)
--->  Building '/usr/ports/lang/ruby18'
===>  Cleaning for ruby-1.8.5_1,1

I then get the build options dialogue box for ruby 1.8.5_1,1 with the
tick boxes for IPV6 and RDOC checked, even though I have ports.conf
entries to turn them off.

Is this my goof, or is something wrong with portconf?



Thank you!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Good networking books for a beginner?

2006-10-06 Thread James Long
Somewhere I seem to recall having read an RFC which is a primer
on IP basics.  I remember especially liking the sections where
it described the the inter-relationships between the network mask,
the role that ARP plays, and the use of routing.

Darned if I can find such a thing now, though.  If anyone knows
what this was, I'd appreciate a pointer.  The plain-text, Courier-font
layout sticks in my head, which is what makes me think it was an
RFC that I saw, put I can't find it in a brief search on rfcs.org.

Jim

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


rwhoisd : semicolons in whois output

2006-10-01 Thread James Long
I'm climbing the rwhoisd learning curve.  I appear to have blindly
followed instructions well enough to have a functioning server, but
I do not yet understand how all the database elements relate.

Why do I have ";I" appearing in some of the whois output below?

Thank you.


t30 : 16:10:13 /usr/local/etc/rwhoisd# whois -h localhost -p 4321 
192.168.201.107
%rwhois V-1.5:003eff:00 t30.museum.rain.com (by Network Solutions, Inc. 
V-1.5.9.6)
network:Class-Name:network
network:ID:NETBLK-ISPWIDGET.192.168.192.0/19
network:Auth-Area:192.168.192.0/19
network:Network-Name:ISPWIDGET-192.168.201.104
network:IP-Network:192.168.201.104/29
network:IP-Network-Block:192.168.201.104 - 192.168.201.111
network:Organization;I:Company-widget-1
network:Tech-Contact;I:[EMAIL PROTECTED]
network:Admin-Contact;I:ARIN-NIC-HANDLE
network:Created:20010919
network:Updated:20020219
network:Updated-By:[EMAIL PROTECTED]

network:Class-Name:network
network:ID:NETBLK-ISPWIDGET.192.168.192.0/19
network:Auth-Area:192.168.192.0/19
network:Network-Name:ISPWIDGET-192.168.192.0
network:IP-Network:192.168.192.0/19
network:IP-Network-Block:192.168.192.0 - 192.168.223.255
network:Organization;I:Ispwidget (Your Company Name)
network:Tech-Contact;I:[EMAIL PROTECTED]
network:Admin-Contact;I:ARIN-NIC-HANDLE
network:Created:20010919
network:Updated:20010924
network:Updated-By:[EMAIL PROTECTED]

%ok

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


man page bug in mv(1) ?

2006-09-03 Thread James Long
The man page mv(1) states:

"It is an error for either the source operand or the destination path 
to specify a directory unless both do."


However:

mv file /tmp/

works.  Am I reading things wrong, or is the man page incorrect?


Jim



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Code beautifiers, anyone?

2006-08-25 Thread James Long
> Date: Fri, 25 Aug 2006 21:27:03 +0300
> From: "Matti J. Karki" <[EMAIL PROTECTED]>
> Subject: Re: Code beautifiers, anyone?
> To: " Kyrre Nyg?rd " <[EMAIL PROTECTED]>
> Cc: "W. D." <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> On 8/25/06, Kyrre Nyg?rd <[EMAIL PROTECTED]> wrote:
> >
> > In your script, do these comments look alright then?
> >
> > (I simplified them a bit)
> >
> > inbuffer = re.sub('\) *?\n\{', ') {', inbuffer) # Move curly brackets
> > to the end of lines
> > inbuffer = re.sub('\) *?{', ') {', inbuffer) # Remove spaces between
> > closing brackets and opening curly brackets
> > inbuffer = re.sub('else *?\n{', 'else {\n', inbuffer) # Fix curly
> > brackets in `else' clauses
> > inbuffer = re.sub('{ *?(.+?\n)', '{\n\g<1>', inbuffer) # Break up the
> > content of curly brackets
> > inbuffer = re.sub('(\n.+?)}', '\g<1>\n}', inbuffer) # Take care of
> > closing brackets from the above rule
> 
> Looks OK, except...
> 
> > inbuffer = re.sub('\n +', '\n', inbuffer) # Strip trailing whitespace
> 
> This will strip spaces at the _beginning_ of line (leading spaces).

Except, possibly, lines that begin at the first byte of the buffer, 
such as the first line of the file, and any other lines that happen to 
land across the buffer boundary just so.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: iir(4) driver (Was: Re: Safe card to replace for ICP Vortex GDT851...)

2006-08-01 Thread Scott Long

Ok guys, time for a small breather here.  All these claims about
EoE and orphanage and whatnot are a bit premature and underinformed.
First, the iir driver is being worked on when the need arises.  Several
bugs were fixed in it a few months ago, and until Mark's recent series
of mails on it, no other problems had been reported.  So far there is
only one person reporting unhappiness with it, which doesn't necessarily
mean that there is systematic trouble with the driver or the hardware.
Second, various Adaptec sources have confirmed that they do support
FreeBSD.  Making big statements in public that they don't, or that it's
not up to ones' standards or hopes, isn't terribly useful or productive.
I'd hate for FreeBSD to turn into That Other BSD that publically abuses
and harasses vendors for percieved sleights.  There are much more
positive and product ways to fix problems and form good relationships,
and those ways are actively being pursued by some people right now.

And here again is my standard disclaimer:
I highly recommend that anyone who takes their data integrity seriously
should spend time qualifying any RAID solution that they are interested
in before putting it into production.  What works for your workload
might not work for someone else's workload, and vice-versa.

Scott


Patrick M. Hausen wrote:

Hello!


'k, just to clarify here ... the new products won't be based on the iir(4) 
driver then?



Yes, they won't.



Basically, should the iir(4) driver be considered EOE also?



As far as Adaptec and ICP Vortex are concerned, yes. Since the
driver is Open Source, there is no enforced EOE, just "orphanage",
if nobody is willing to work on it.

Regards,

Patrick M. Hausen
Leiter Netzwerke und Sicherheit


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


bsnmpd: send: Connection refused

2006-07-28 Thread James Long
I'm trying to implement the bsnmpd service on one of my machines.

In rc.conf I have:

# run the bsnmpd daemon, with debugging
bsnmpd_enable="YES"
bsnmpd_flags="-c /etc/snmpd-test.config -d -D dump"


In hosts.allow, very near the top, I have:

bsnmpd : ALL : allow


Here is the diff of the sample config file versus my own:

# diff -u /etc/snmpd.config  /etc/snmpd-test.config
--- /etc/snmpd.config   Tue May 16 14:27:01 2006
+++ /etc/snmpd-test.config  Fri Jul 28 14:27:28 2006
@@ -6,9 +6,9 @@
 #
 # Set some common variables
 #
-host := foobar
-location := "Room 200"
-contact := "[EMAIL PROTECTED]"
+host := localhost
+location := "right here"
+contact := "[EMAIL PROTECTED]"
 system := 1# FreeBSD
 traphost := localhost
 trapport := 162
@@ -43,7 +43,7 @@
 begemotSnmpdCommunityDisable   = 1

 # open standard SNMP ports
-begemotSnmpdPortStatus.[$(host)].161 = 1
+#begemotSnmpdPortStatus.[$(host)].161 = 1
 begemotSnmpdPortStatus.127.0.0.1.161 = 1

 # open a unix domain socket



When I start bsnmpd, I get

# /etc/rc.d/bsnmpd start
Starting bsnmpd.
snmpd[5474]: send: Connection refused
^C#

What is causing the "Connection refused" message?  The freebsd-questions 
archive 
yields no hits on "snmpd AND refused" nor "bsnmpd AND refused"



# sockstat | grep bsnmpd
root bsnmpd 5482  3  udp4   127.0.0.1:57050   127.0.0.1:162
root bsnmpd 5482  5  udp4   *:*   *:*
root bsnmpd 5482  6  udp4   127.0.0.1:161 *:*
root bsnmpd 5482  7  stream /var/run/snmpd.sock
root bsnmpd 5482  8  dgram  -> /var/run/logpriv


I am also seeing a timeout error when trying to connect to query the
bsnmpd daemon, but I won't worry about this until the "Connection
refused" message goes away.

# snmpwalk -c public localhost
snmpwalk: Timeout



Thank you!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Simple DNS Configuration

2006-07-25 Thread James Long
> Date: Mon, 24 Jul 2006 17:53:03 -0400
> From: "David Stanford" <[EMAIL PROTECTED]>
> Subject: Re: Simple DNS Configuration
> To: "Matthias Fechner" <[EMAIL PROTECTED]>
> Cc: freebsd-questions@freebsd.org
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> www IN  A   66.246.140.170
> www IN  CNAME   @
>
> Does anyone see anything wrong with this? Thanks for all your help!

I'm not sure that it's the root of all evil, but you have redundant
defintions for www.

Stop and then restart named.  Then, what is the output of

grep named /var/log/messages




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: im about to sit down an read the entire postfix manuals...

2006-07-24 Thread James Long
> Date: Sat, 22 Jul 2006 16:20:59 -0500
> From: Jonathan Horne <[EMAIL PROTECTED]>
> Subject: im about to sit down an read the entire postfix manuals...
> To: freebsd-questions@freebsd.org
> 
> becuase i want to know if it supports a specific feature or not.  so before i 
> do and spend all that time, i just thought i would ask a simple question or 2 
> to this list.
> 
> my problem: i have 5 domains that my sendmail server recieves mail for, and 
> im 
> starting to get spammed at [EMAIL PROTECTED] as well as [EMAIL PROTECTED] etc 
> etc.  realistically, name1 only needs to receive at domain1, and none of the 
> others.  there are many other accounts that only need to recieve at other 
> specific domains, and not at any of them.
> 
> before i go an burn up a lot of time reading about postfix, is there a way i 
> can solve this problem within sendmail?  if not, will researching in postfix 
> eventually lead me to the solution im looking for?  if i can fix it within 
> sendmail, id just as soon perfer to stay with that, but ill switch if i have 
> to.
> 
> thanks,
> jonathan

If I'm understanding you correctly, consider something like this in your
/etc/mail/virtusertable:

# domain1.org
#
[EMAIL PROTECTED]   name1
@domain1.orgerror:nouser
#
#
# domain2.com
#
[EMAIL PROTECTED]   name2
@domain2.comerror:nouser
#
#
# domain3.net
#
[EMAIL PROTECTED]   name3
@domain3.neterror:nouser
#
#

This makes name1 only receive mail at domain1, name2 at domain2, and
name3 at domain3.

Standard caveat about running make after modifying virtusertable.


Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: SATA300 Controllers

2006-07-06 Thread Scott Long

Wilko Bulte wrote:

On Wed, Jul 05, 2006 at 08:02:55PM -0500, Derrick T. Woolworth wrote..


Hello all,

Sorry for cross-posting, but these issues seem relevant for lists...

Has anyone had success with SATA300 controllers with FreeBSD 6.1?  I've been
trying Promise and nVidia nForce4 and I'm not having any luck.  Using a MSI
K8NGM2-L motherboard and others, but 6.1's installation hangs as soon as it
sees ad4.  I've also tried using an Adaptec 1210SA controller and had zero



Well, just as a datapoint this works fine for me:

[EMAIL PROTECTED] ~: dmesg|grep -i Prom
atapci0:  port
0xd480-0xd4ff,0xd000-0xd0ff mem 0xf7ff6000-0xf7ff6fff,0xf7fa-0xf7fb
irq 21 at device 13.0 on pci2
ar0: 238475MB  status: READY
[EMAIL PROTECTED] ~: uname -a
FreeBSD freebie.xs4all.nl 6.1-STABLE FreeBSD 6.1-STABLE #2: Wed Jun 14
22:01:33 CEST 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/FREEBIE
i386



Promise has a good relationship with FreeBSD, I would expect their 
controllers to work pretty well.


Scott

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Please help - adaptec 2820sa not allowing installation

2006-06-19 Thread Scott Long

Ensel Sharon wrote:

I did all my due diligence, I contacted freebsd-fs and _made sure_ that
even though the 2820sa is not listed by name in the HCL, that I could take
a 6.1-RELEASE cd and install freebsd on a 2820sa.

I was _assured_ that these cards are supported in 6.1-RELEASE, that all is
well, and I could install and that was that.



No, you were not assured, at least not by when we discussed this last 
week.  I told you that I personally did not guarantee that it worked, 
only that I had heard reports that it did.


You have two variables here.  One is that it's an array that is larger
than what the aac driver has supported in the past.  Second is that it's
RAID-6.  Both of these variables should be handled by the aac driver
update that happened last year, but again, I couldn't validate it, so I
can only go with the reports of others.

As others suggested, you need to experiment with simplier 
configurations.  This will help us identify the cause and hopefully 
implement a fix.  No one is asking you to throw away money or resources.

Since you've already done the simple test with a single drive, could you
do the following two tests:

1.  RAID-5, full size (whatever >2TB value you were talking about).
2.  RAID-6, <2TB.

From there, I'll figure out what needs to be done to get it fully 
working for you.


Scott

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Please help - adaptec 2820sa not ... RESOLVED

2006-06-19 Thread Scott Long

Eric Anderson wrote:

Ensel Sharon wrote:



On Mon, 19 Jun 2006, Jahilliya wrote:


Ok, aac is in the dmesg.

I can see both 2820sa cards in the dmesg, and I see no errors, etc. -
there are just no drives listed in dmesg.

My setup is 8 500 Gb drives in a single raid-6 array, size ~2.8TB.  Any
problems with that ?  Perhaps sysinstall cannot deal with a >2TB drive
?  There are no other drives in the system besides the single 2.8TB 
raid 6

array ...


Have you got any other drives you can attach to the raid?

If so, disconnect the 8 drives connected, connect up a couple that are
not part of the raid and configure them as a simple raid 1 and see if
the installers sees that raid. Or try any combination in drives to
bring the raid size down below 2TB (I'm sure this limitation has been
fixed.)




Ok, the answer is that it has not been fixed.

6.1 sysinstall does in fact see both 2820sa controllers, and when I 
put in
a single 160GB sata drive, it does see that single drive and I can 
install

onto it, etc.

Sysinstall does _not_ see my 2.7TB raid6 array.  I suspect that if it 
were

smaller than 2TB, it would see it correctly.

I have a number of options with which to deal with this, all of which
involve either wasting money or wasting disk space.  Fantastic.



Right - FreeBSD doesn't recognize >2TB LUNs.


Wrong on several counts.  First, the AAC driver does not present arrays 
to the system as SCSI LUNs.  The traditional 2TB limit with 12 byte CDB

issue simply doesn't exist with this driver.  Second, the FreeBSD SCSI
layer knows how to issue 16 byte CDBs to access >2TB, assuming that the
target understands the 16-byte protocol.  So no, there is no 2TB limit
inherent to FreeBSD.  The only limit is with individual drivers and with
hardware.

Scott


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Cannot delete stubborn files

2006-06-04 Thread James Long
> Date: Sun, 04 Jun 2006 14:42:16 -0500
> From: "Jack Stone" <[EMAIL PROTECTED]>
> Subject: Re: Cannot delete stubborn files
> To: [EMAIL PROTECTED], freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; format=flowed
> 
> >From: "Ricardo Carvalho" <[EMAIL PROTECTED]>
> >To: "Jack Stone" <[EMAIL PROTECTED]>
> >Subject: Re: Cannot delete stubborn files
> >Date: Sun, 4 Jun 2006 15:39:05 -0300
> >
> >This occurred to me once, I simply booted the system in single user mode 
> >and
> >removed the file.
> >
> 
> Nope, that didn't work either. really strangest undeletes I've ever 
> encounted.
> 
> THX
> Jack

Have you posted the output of ls -lo (problem filename) ?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Upgrading and Disk Space.

2006-05-20 Thread James Long
> Date: Sat, 20 May 2006 08:34:18 -0400
> From: "Grant Peel" <[EMAIL PROTECTED]>
> Subject: Upgrading and Disk Space.
> To: 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; format=flowed; charset="iso-8859-1";
>   reply-type=original
> 
> Hi all,
> 
> I am about to upgrade a 6.0 machine to 6.1R.
> 
> I am running a little tight on space on the3 /usr part. I was wondering what 
> can be safely removed from /usr befor starting the upgrade.
> 
> The idea is to try NOT to fill up the filesystem and crap out duing the 
> upgrade.
> 
> Any feedback will be appreciated.
> 
> -Grant

You don't say specifically, but I presume you're planning a source 
upgrade (make buildworld, et al).

You have oodles of space on /var, I'd suggest trying:

cd /usr
mv src /var && ln -s /var/src src
mv obj /var && ln -s /var/obj obj

That should give you plenty of room to cvsup and compile the upgrade.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Newbie File system

2006-05-16 Thread James Long
> Date: Mon, 15 May 2006 21:38:57 -0700
> From: Garrett Cooper <[EMAIL PROTECTED]>
> Subject: Re: Newbie File system
> To: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> James Long wrote:
> >> Date: Mon, 15 May 2006 17:20:33 +0200
> >> From: "Maan Jee" <[EMAIL PROTECTED]>
> >> Subject: Newbie File system
> >> To: freebsd-questions@freebsd.org
> >> Message-ID:
> >><[EMAIL PROTECTED]>
> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >>
> >> Can someone explane that at which filesystem is my "/home" directory
> >> located?
> >> 
> >
> > cd /home && df .
> >
> > will tell you.
> >   
> "df -h ~", "df -h $HOME", or "df -h `printenv HOME`" will do the trick.
> -Garrett

I'm not sure you read the post correctly.  He's asking where the "/home"
directory is on his system.

/home is typically a symlink to /usr/home, although it doesn't have to be.

My reply will definitively tell the user which filesystem the /home
directory (or symlink) resides on.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Newbie File system

2006-05-15 Thread James Long
> Date: Mon, 15 May 2006 17:20:33 +0200
> From: "Maan Jee" <[EMAIL PROTECTED]>
> Subject: Newbie File system
> To: freebsd-questions@freebsd.org
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Can someone explane that at which filesystem is my "/home" directory
> located?

cd /home && df .

will tell you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Has the port collection become to large to handle.

2006-05-15 Thread James Long
> Date: Sat, 13 May 2006 14:28:49 -0400
> From: "fbsd" <[EMAIL PROTECTED]>
> Subject: Has the port collection become to large to handle.
> To: "[EMAIL PROTECTED] ORG" 
> Cc: [EMAIL PROTECTED]
> 
> I for one think the port/package collection has already grown to
> large to handle in it's present state.
> Users are consuming massive bandwidth to download and it
> consumes a very large chunk of disk space. Saying nothing about
> the wasted resources consumed to back it up repeatedly.

What's your domain name again?

cvsup downloads only the bits of the port tree that have changed.
An intelligent backup strategy backs up the entire tree infrequently,
and the rest of the time, backs up only the files that have changed.

And since the ports tree is readily available off the net, why
back it up at all?

> This problem is caused by there being no mandatory requirement 

There is no mandatory requirement on anyone to do anything.

> So my question is how do we users make our needs known
> to the ports maintainer group so that will seriously address
> the problem of the packages being outdated?

I suggest you purchase one or more high-powered build machines and 
ship them prepaid to the ports maintainer.  Repeat every eight or ten 
months to ensure that the build machines remain state-of-the-art.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Zero Copy, FreeBSD and Linus Torvalds opinion

2006-04-30 Thread Scott Long

Iantcho Vassilev wrote:

Hello guys,


in bsdnews.com i found this link http://kerneltrap.org/node/6506 and
particulary this:

"I claim that Mach people (and apparently FreeBSD) are incompetent idiots.
Playing games with VM is bad. memory copies are _also_ bad, but quite
frankly, memory copies often have _less_ downside than VM games, and bigger
caches will only continue to drive that point home."




What do you think about it?


I claim that Linus is an attention whore.  How about that?

Scott
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: /boot at beginning of drive

2006-04-17 Thread James Long
> Date: Mon, 17 Apr 2006 06:21:55 +0930
> From: "Brendan Grossman" <[EMAIL PROTECTED]>
> Subject: RE: /boot at beginning of drive
> To: 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
> 
> > > Where they use that quota is anyone's guess.
> > >
> > > > User's tempfiles will go to /usr/tmp.
> > >
> > > How does that work? I just checked /tmp, and it's not a symlink.
> > 
> > Copy the contents of /tmp to /usr/tmp then remove /tmp and 
> > symlink /usr/tmp to /tmp.
> 
> Yes, may I ask what the point is though? 
> 
> Here is my reason for separating /tmp and mounting it noexec,nosuid:
> 
> http://www.sagonet.com/forums/showthread.php?t=2852

Please pardon my question out of ignorance, but isn't nosuid redundant 
when the part. is already noexec?  When else does the setuid bit come 
into play except on executable files?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Postfix: unable to deliver this message after 4 days

2006-04-02 Thread James Long
As your subject indicates, this is not a FreeBSD problem.

Postfix support is available via their mailing lists.  Please see
http://www.postfix.org/lists.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Indiana goes to DST

2006-03-30 Thread James Long
> Date: Tue, 28 Mar 2006 11:08:41 -0500
> From: DAve <[EMAIL PROTECTED]>
> Subject: Re: Indiana goes to DST
> To: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> > x x 2   Eastern Time - Michigan - most locations
> > x x 3   Eastern Time - Kentucky - Louisville area
> > x x 4   Eastern Time - Kentucky - Wayne County
> > x x 5   Eastern Standard Time - Indiana - most locations
> > x x 6   Eastern Standard Time - Indiana - Crawford County
> > x x 7   Eastern Standard Time - Indiana - Starke County
> > x x 8   Eastern Standard Time - Indiana - Switzerland County
> > 
> 
> Selections 5 through 8 will no longer be valid in April. The list of 
> counties changed. More counties than #6, #7, #8 are going to Central TZ, 
> one county is going with "Commerce Time", and item #5 (most locations) 
> is switching to DST.
> 
> So I must setup DST manually, or select to #1. I think.
> 
> DAve

That, or just move.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 6.0-RELEASE/AMD64 Ram Capacity?

2006-03-13 Thread Scott Long

Gary Palmer wrote:

On Mon, Mar 13, 2006 at 01:57:53PM -0700, Scott Long wrote:


Storage drivers that simply will not work::

asr
asr
asr
asr
asr
pst
ida
sym



Any particular reason "asr" is listed 5 times?  Did you mean to replace
some of them with other drivers, or are you emphatically sure that asr
is broken? :-)


It's there to make a point.  Do not buy asr hardware and expect it to
work on amd64.  The driver comes from the vendor, and the vendor hasn't
had any interest in supporting it since 2001.  There are many other
vendors who make much higher quality cards and who are actively
interested in supporting FreeBSD, so I recommend doing business with
them.

Scott
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 6.0-RELEASE/AMD64 Ram Capacity?

2006-03-13 Thread Scott Long

Kris Kennaway wrote:

On Fri, Mar 10, 2006 at 02:43:20PM -0500, Nathan Vidican wrote:

I seem to recall various threads relating to problems with machines running 
at or above 4GB ram... what if any issues still exist?



The only potential issues are with specific drivers (e.g. ata).
Search the amd64 mailing list archives for more discussion.

Kris


Ok, off the top of my head:

Storage drivers that are known to work with amd64 and 4GB of RAM or more:

aac
amr
iir (6.1 and above only)
ips
ahc
ahd
ciss
arcmsr
mpt
isp

Storage drivers that should work, but might need more testing and 
validation:


twa
twe
mlx
mly
amd
trm


Storage drivers that are known to have problems under load:

ata
hptmv


Storage drivers that simply will not work::

asr
asr
asr
asr
asr
pst
ida
sym


This list isn't definitive, and I've purposely excluded ISA controllers
and controllers that are significantly out of date, but it's close
enough to give you a good idea of what to shop for.

Personally, I feel a bit bad that ata and sym aren't in the first group,
but there are only so many hours in the day.  Both present interesting
challenges.

Scott
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 6.0-RELEASE/AMD64 Ram Capacity?

2006-03-10 Thread Scott Long

Nathan Vidican wrote:
I seem to recall various threads relating to problems with machines 
running at or above 4GB ram... what if any issues still exist?


We're currently operating with 2GB ECC Registered PC333 ram, but are 
finding a fairly constant usage of about 1700MB swap space; like to 
increase system memory, and installed motherboard supports 16 slots x 
2GB DIMMS each (for 32Gb total) - but what about FreeBSD?


System is running:
- Apache (about 10-12 mod_perl httpd's @ 90MB ram each)
- Apache (about 20-30 very basic httpds for static stuff @ 12Mb each)
- Sendmail, including MimeDefang and SA processes at some 90MB each
- MySQL 4.1 running about 70MB Ram
- Samba (smbd's running at 30Mb ram each 30-50 in use at any time)
- A number of Perl processes ranging from 1Mb - 900Mb each
- Other misc, but the above are the major ones

Just want to make sure no known issues exist (primarily with the above 
applications), comments anyone?





The ATA driver is still a bit flakey with more than 4GB of RAM, so make 
sure that you are using either a modern SCSI controller or a RAID 
controller.


Scott
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: coming back up after power failure (UPS)

2006-03-09 Thread James Long
> Pre Y2K PC's had mechanical power on button which stayed in the "on
> position" no matter what was happening with the line power. Those
> pcs are what UPS units were first designed for, so after the UPS
> does normal shutdown at power loss, pc will reboot when power comes
> back on.
>
> Newer PC's now have motherboard power control which goes to the
> power off position on losing line power. Some of these pc's have
> bios setting to deactivate this function so after line power loss
> the pc will reboot on power return. This is common on motherboards
> marketed for servers.
>
> Motherboards marketed for home desktop pcs may not have this bios
> option. You could open the box and cut the 2 wires leading from the
> power on button and connect then together so the motherboard always
> thinks the power on button is depressed. (do this at your own risk)

You missed the point.

If the system does NOT power itself down, but instead sits at the
"press any key to reboot" prompt, then playing with the NUT configuration
isn't going to improve anything in cases where power returns before
batteries are drained.  The OP would have to troubleshoot his inability
to get the machine to power off upon a line outage, which it appears
he has done.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: coming back up after power failure (UPS)

2006-03-09 Thread James Long
> Date: Thu, 9 Mar 2006 01:37:21 +0200
> From: Ion-Mihai Tetcu <[EMAIL PROTECTED]>
> Subject: Re: coming back up after power failure (UPS)
> To: Peter <[EMAIL PROTECTED]>
> Cc: freebsd-questions 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII
> 
> On Wed, 8 Mar 2006 16:39:02 -0500 (EST)
> Peter <[EMAIL PROTECTED]> wrote:
> 
> > On an updated 5.4 box I am using Network UPS Tools (NUT) with an APC
> > Smart-UPS.
> > 
> > All is going very well but I cannot bring my box back up after
> > simulating a power failure.  At the end of the shutdown the screen
> > shows:
> > 
> > "Press any key to reboot"
> > 
> > Obviously this is not the desired outcome.
> > 
> > How can I get my system to go down completely?  Beyond this I
> > understand there may be some BIOS adjustments to be made.
> 
> You should set up your UPS (via NUT) to kill power when you reach this
> stage (and batteries are exhausted), and to restore power to the
> computer when the line power is back again. And set you BIOS to always
> on or last state or what ever you BIOS is calling it.
> 
> I can't say how to achieve this with NUT or if it's possible, but I'm
> sure that sysutils/apcupsd can do it since I use (and maintain) that
> port.

What happens if:

1) power fails
2) NUT detects this and halts the machine
3) power returns before batteries are exhausted

Will the machine sit forever waiting for someone to "Press any key to 
reboot" ?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: winmodem driver

2006-03-05 Thread James Long
> Date: Sun, 5 Mar 2006 14:44:02 -0500 (EST)
> From: "kalin mintchev" <[EMAIL PROTECTED]>
> Subject: Re: winmodem driver
> To: freebsd-questions@freebsd.org
> 
> what do i need to add to this information to get some help?

I may be able to be of limited help, although I have never tried
to configure a PCMCIA modem.  I will endeavor to disregard my
lack of experience.   :)

> >> You forgot to tell us WHICH model of ThinkPad concerns you.  Modems in
> >> older ThinkPads, such as a T21 or A20m may be supported by the
> >> comms/ltmdm port.
> >
> > ok... i have the ltmdm installed. i run the ltmdm.sh. nothing happens.
> > i load the ltmdm module manualy with kldload. it's loaded. now what?
> >
> > here is what i have for a modem:
> >
> > [EMAIL PROTECTED]:31:6:class=0x070300 card=0x051a1014 
> > chip=0x24868086
> > rev=0x02 hdr=0x00
> > vendor   = 'Intel Corporation'
> > device   = '82801CA/CAM (ICH3-S/ICH3-M) AC'97 Modem Controller'
> > class= simple comms
> > subclass = generic modem
> >
> > the machine is a t30 thinkpad.

The T30's internal modem is not supported, to my knowledge.

> > i also have a pcmci 3COM modem card that shows up as:
> >
> > sio4: <3Com 3CXM/3CCM556> at port 0x2f8-0x2ff irq 11 function 0 config 33
> > on pccard0
> > sio4: type 16550A
> > sio4: unable to activate interrupt in fast mode - using normal mode
> >
> > not sure what normal mode is. and i don't see it in the pciconf.

So with this modem inserted in the card slot, does tip(1) work?

# grep sio4 /etc/remote
sio4|com5:dv=/dev/cuad4:br#9600:pa=none:
# tip sio4
connected
atz  <-- type this simple AT command
OK

With the modem plugged in, do you have a /dev/cuad3 entry?  What does 
ls -l /dev/cu* show?  Are you logged in as root?

> > i have a ppp.conf which looks exactly as the one in the handbook. when is
> > start ppp after a while i get the propmpt and after that if i type: dial
> > _tag_ the machine freezes...

The ppp man page is lengthy, but excellent.  It contains a lot of information
that took me several readings to digest, but it was well worth the time.  I
am not an expert in diagnosing ppp problems from logs, but if you can post 
the ppp.log entries you get when you attempt to initiate a ppp connection,
others may be able to help.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: portupgrade vs. portmanager ...

2006-03-04 Thread James Long
> Date: Sat, 4 Mar 2006 19:34:57 -0800
> From: Kent Stewart <[EMAIL PROTECTED]>
> Subject: Re: portupgrade vs. portmanager ...
> To: freebsd-questions@freebsd.org
> Cc: Peter <[EMAIL PROTECTED]>, Kiffin Gish <[EMAIL PROTECTED]>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain;  charset="iso-8859-1"
> 
> On Saturday 04 March 2006 19:20, Peter wrote:
> > --- Kiffin Gish <[EMAIL PROTECTED]> wrote:
> > > I would like to know the difference between running:
> > >
> > > portupgrade -arR
> > >
> > > and
> > >
> > > portmanager -u
> > >
> > > Just curious is all, thanks.
> >
> > I have found portmanager to be more intelligent.  When
> > you run it it takes a look at all installed ports and
> > then it decides what order to upgrade the ports and
> > their dependencies.  Portupgrade proceeds linearly and
> > you may need to run it a few more times for everything
> > to be upgraded.  At least that's how I understand it.
> >
> > 
> But the -rR tells it to look at all of the dependancies and build them 
> if they need to be. In addition, if something depends on it, it will 
> also build them. 
> 
> I don't see any differance.

Further, the assertion by [EMAIL PROTECTED] that portupgrade 
requires multiple passes is just plain false.  I upgrade over 230 
ports on my laptop with one command.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Is gd library in the ports collection.

2006-02-28 Thread James Long
> Date: Tue, 28 Feb 2006 10:19:35 -0500
> From: "fbsd_user" <[EMAIL PROTECTED]>
> Subject: Is gd library in the  ports collection.
> To: "[EMAIL PROTECTED] ORG" 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> I have reviewed the ports list for a port called gd and could 
> not tell from the names if any were the gd library 
> talked about here. http://www.boutell.com/gd/
> 
> Can any one point me to the correct port name if its really 
> in the ports collection.

A quick run of 

cd /usr/ports && make search key=gd- | less

would have turned up:

Port:   gd-2.0.33_3,1
Path:   /usr/ports/graphics/gd
Info:   A graphics library for fast creation of images
Maint:  [EMAIL PROTECTED]
B-deps: freetype2-2.1.10_1 jpeg-6b_3 pkgconfig-0.19 png-1.2.8_2
R-deps: freetype2-2.1.10_1 jpeg-6b_3 pkgconfig-0.19 png-1.2.8_2
WWW:http://www.boutell.com/gd/



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem with mysql-server.sh script (5.0.18 on 6.1-PRE)

2006-02-28 Thread James Long
- Forwarded message from James Long <[EMAIL PROTECTED]> -

Date: Tue, 28 Feb 2006 01:48:09 -0800
From: James Long <[EMAIL PROTECTED]>
To: Bj?rn K?nig <[EMAIL PROTECTED]>
Cc: Jeremy Cole <[EMAIL PROTECTED]>
Subject: Re: Problem with mysql-server.sh script (5.0.18 on 6.1-PRE)
In-Reply-To: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.5.11

> James Long schrieb:
> >>Hello,
> >>
> >>I suppose the owner of /var/db/mysql is not mysql. Check this and show 
> >>ls -ld /var/db/mysql.
> > 
> > 
> > Thank you for your reply.
> > 
> > www : 23:54:45 /root# ls -ld /var/db/mysql
> > drwx--  4 mysql  mysql  512 Feb 27 21:52 /var/db/mysql/
> > 
> 
> Ok, I would try to delete /var/db/mysql completely and then start mysql 
> with the start script again.

Hmmm, mixed success.

www : 00:59:15 /root# ls -ld /var/db/mysql
ls: /var/db/mysql: No such file or directory
www : 00:59:27 /root# /usr/local/etc/rc.d/mysql-server.sh start
/usr/local/etc/rc.d/mysql-server.sh: DEBUG: Sourcing /etc/defaults/rc.conf
/usr/local/etc/rc.d/mysql-server.sh: DEBUG: checkyesno: mysql_enable is set to 
YES.
/usr/local/etc/rc.d/mysql-server.sh: DEBUG: pid file 
(/var/db/mysql/www.example.com.pid): not readable.
/usr/local/etc/rc.d/mysql-server.sh: DEBUG: run_rc_command: evaluating 
mysql_prestart().
/usr/local/etc/rc.d/mysql-server.sh: DEBUG: checkyesno: mysql_limits is set to 
NO.
Starting mysql.
/usr/local/etc/rc.d/mysql-server.sh: DEBUG: run_rc_command: _doit: su -m mysql 
-c 'sh -c "/usr/local/bin/mysqld_safe  
--defaults-extra-file=/var/db/mysql/my.cnf --user=mysql --datadir=/var/db/mysql 
--pid-file=/var/db/mysql/www.example.com.pid --bind-address=localhost 
--log-error=/tmp/err.log > /dev/null &"'
www : 00:59:35 /root# ps -axl | grep sql
   88 18841 1   0   8  0  1708  1160 wait   S p00:00.01 /bin/sh 
/usr/local/bin/mysqld_safe --defaults-extra
   88 18866 18841   0  20  0 56220 26480 kserel S p00:00.17 
/usr/local/libexec/mysqld --defaults-extra-file=/va
www : 00:59:39 /root# cat /tmp/err.log
060228 00:59:35  mysqld started
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
060228  0:59:35  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
060228  0:59:35  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
060228  0:59:35  InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
060228  0:59:35  InnoDB: Started; log sequence number 0 0
060228  0:59:35 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.0.18'  socket: '/tmp/mysql.sock'  port: 3306  FreeBSD port: 
mysql-server-5.0.18

(blink)

Will mysqld use /etc/hosts to resolve a hostname to bind to?  If I use 
something like 'localhost', it's actually resolving that through DNS 
by appending my default domain suffix.  I tested this by creating a 
hosts entry "asdf" and verifying that "host asdf" did not resolve.  So 
asdf is in /etc/hosts, pingable on my local interface, but not 
resolvable via DNS.  When I do that, /tmp/err.log says:

060228 01:10:37  mysqld started
060228  1:10:37 [ERROR] Can't start server: cannot resolve hostname!: Unknown 
error: 0
060228 01:10:37  mysqld ended

This behaviour appears to differ with that observed by Jeremy Cole at 
Yahoo, with whom I have been corresponding on the MySQL list.  I 
originally inquired about MySQL's seeming inability to bind to an IP 
specified by hostname, rather than a literal IP number.  I'm coming 
from Postgres, which allows binding not only to an IP or a hostname, 
but an arbitrary list of IP numbers and/or hostnames (and/or local 
UNIX sockets, I believe).  MySQL appears to allow only one, although I 
certainly welcome corrections.  Maybe one just specifies multiple 
instances of the --bind-address= option, I haven't tried that.  But 
Jeremy's observation is below, and appears to indicate that he can get 
MySQL to bind to a hostname defined in /etc/hosts, although he's doing 
it a little differently.  I prefer to accomplish it through the 
standard mechanisms in /etc/rc.conf that allow me to furnish start-up 
options to /usr/local/etc/rc.d/mysql-server.sh.

My goal is this: I want to specify a hostname in /etc/hosts and define 
an IP number there.  That way, when my IP changes, I can edit 
/etc/hosts ONCE and not have to dig through lo

Re: Problem with mysql-server.sh script (5.0.18 on 6.1-PRE)

2006-02-27 Thread James Long
> Hello,
> 
> I suppose the owner of /var/db/mysql is not mysql. Check this and show 
> ls -ld /var/db/mysql.

Thank you for your reply.

www : 23:54:45 /root# ls -ld /var/db/mysql
drwx--  4 mysql  mysql  512 Feb 27 21:52 /var/db/mysql/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Problem with mysql-server.sh script (5.0.18 on 6.1-PRE)

2006-02-27 Thread James Long
I'm migrating a system from MySQL 3.x to 5.0.18 on a server running 
"6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Feb 22 08:53:15 PST 2006".

With no mysql running:

www : 19:42:23 /usr/local/etc/rc.d# ps -axl | grep mysql
www : 19:42:33 /usr/local/etc/rc.d# 

And the following defined:

www : 19:42:33 /usr/local/etc/rc.d# egrep "debug|mysql" /etc/rc.conf
mysql_enable="YES"
mysql_args="--bind-address=localhost"
rc_debug="ON"
#mysql_enable="NO"

When I:

www : 19:42:49 /usr/local/etc/rc.d# /usr/local/etc/rc.d/mysql-server.sh start

I see:

/usr/local/etc/rc.d/mysql-server.sh: DEBUG: Sourcing /etc/defaults/rc.conf
/usr/local/etc/rc.d/mysql-server.sh: DEBUG: checkyesno: mysql_enable is set to 
YES.
/usr/local/etc/rc.d/mysql-server.sh: DEBUG: pid file 
(/var/db/mysql/www.vehiclenet.com.pid): not readable.
/usr/local/etc/rc.d/mysql-server.sh: DEBUG: run_rc_command: evaluating 
mysql_prestart().
/usr/local/etc/rc.d/mysql-server.sh: DEBUG: checkyesno: mysql_limits is set to 
NO.
Starting mysql.
/usr/local/etc/rc.d/mysql-server.sh: DEBUG: run_rc_command: _doit: su -m mysql 
-c 'sh -c "/usr/local/bin/mysqld_safe  
--defaults-extra-file=/var/db/mysql/my.cnf --user=mysql --datadir=/var/db/mysql 
--pid-file=/var/db/mysql/www.vehiclenet.com.pid --bind-address=localhost > 
/dev/null &"'
www : 19:43:38 /usr/local/etc/rc.d#

So then I:

www : 19:43:45 /usr/local/etc/rc.d# ps -axl | grep mysql

and I see:

www : 19:43:50 /usr/local/etc/rc.d#

IOW, MySQL doesn't start.

If I manually run the object of the su command:

www : 19:47:46 /usr/local/etc/rc.d# sh -c "/usr/local/bin/mysqld_safe  
--defaults-extra-file=/var/db/mysql/my.cnf --user=mysql --datadir=/var/db/mysql 
--pid-file=/var/db/mysql/www.vehiclenet.com.pid --bind-address=localhost > 
/dev/null &"

And then do:

www : 19:47:58 /usr/local/etc/rc.d# ps -axl | grep mysql

I see:

root  16826  0.0  0.2  1708  1160  p0  S 7:47PM   0:00.01 /bin/sh 
/usr/local/bin/mysqld_safe --defaults-extra-file=/var/db/mysql/my.cnf 
--user=mysql --datadir=/var/db/mysql 
--pid-file=/var/db/mysql/www.vehiclenet.com.pid --bind-address=localhost
mysql 16849  0.0  4.8 57584 24916  p0  S 7:47PM   0:00.12 
/usr/local/libexec/mysqld --defaults-extra-file=/var/db/mysql/my.cnf 
--basedir=/usr/local --datadir=/var/db/mysql --user=mysql 
--pid-file=/var/db/mysql/www.vehiclenet.com.pid --bind-address=localhost
www : 19:48:03 /usr/local/etc/rc.d#

IOW, running the "sh -c ..." command manually works, although it leave 
mysqld_safe running as root, instead of as the mysql user (which does
exist).

/etc/passwd:mysql:*:88:88:MySQL Daemon:/nonexistent:/sbin/nologin
/etc/group:mysql:*:88:


If I manually run the command under su to try to get the service to run
under the mysql user account, mysql does not start, and neither su nor
mysql leave any error messages on either the console or the logs:

www : 19:55:21 /usr/local/etc/rc.d# su -m mysql -c 'sh -c 
"/usr/local/bin/mysqld_safe  --defaults-extra-file=/var/db/mysql/my.cnf 
--user=mysql --datadir=/var/db/mysql 
--pid-file=/var/db/mysql/www.vehiclenet.com.pid --bind-address=localhost > 
/dev/null &"'
www : 19:56:48 /usr/local/etc/rc.d# findps mysql
www : 19:56:52 /usr/local/etc/rc.d# su -m mysql -c 'sh -c 
"/usr/local/bin/mysqld_safe  --defaults-extra-file=/var/db/mysql/my.cnf 
--user=mysql --datadir=/var/db/mysql 
--pid-file=/var/db/mysql/www.vehiclenet.com.pid --bind-address=localhost > 
/dev/null &"'
www : 19:57:01 /usr/local/etc/rc.d# findps mysql
www : 19:57:04 /usr/local/etc/rc.d#

(findps is an alias that basically does a ps -axl | grep "$1" | grep -v grep)


How can I fix this, or get su to tell me more about why the command works
manually as root, but not under su as mysql?


Thanks!

Jim

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: can't cd to /usr/ports/devel/libtool13

2006-02-26 Thread James Long
> Date: Sun, 26 Feb 2006 15:15:40 -0500
> From: "Xn Nooby" <[EMAIL PROTECTED]>
> Subject: Re: can't cd to /usr/ports/devel/libtool13
> To: freebsd-questions@freebsd.org
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Have you tried /sysutils/portmanager yet? If not, you could try
> > installing it and then running it, as root obviously, as thus:
> 
> 
> I'm trying to avoid portsnap and portmanager for now, since I don't really
> understand them - and they don't seem to be the official way (yet).  I
> actually wish there was just one method that everyone used, instead of 3 (or
> more), lol.
> 
> thanks!

Switch to Microsoft.  They're very thorough about eliminating your
ability to choose how to do things, and pretty much force you into
doing things the one official way.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: winmodem driver

2006-02-25 Thread James Long
> Date: Sat, 25 Feb 2006 06:21:12 -0500 (EST)
> From: "kalin mintchev" <[EMAIL PROTECTED]>
> Subject: winmodem driver
> To: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain;charset=iso-8859-1
> 
> hi all...
> 
> is there a win modem driver in 6.0 that can be used with the build-in
> modem on ibm thinkpads?
> 
> thanks...

You forgot to tell us WHICH model of ThinkPad concerns you.  Modems in 
older ThinkPads, such as a T21 or A20m may be supported by the 
comms/ltmdm port.

I have been unable to find any support for modems in newer ThinkPads, 
such as the T30 and later.  However, somewhere around here I have a
modem-only mini-PCI card that came out of my A20m when I upgraded it
to a mini-PCI combo card with modem and 10/100 fxp NIC.  Both the 
modem-only card and the combo modem/NIC card had supported modem 
chipsets.  Once I can locate the modem-only PCI card I have 
(somewhere), I will try to install it in my T30 and see whether I can 
get modem functionality back.

Now, don't blame me if this fries your laptop or causes other mayhem, 
but if you want to try, you can buy these modem cards pretty cheap on 
eBay.  Based on the part numbers found on IBM's site at

http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=ibm&lndocid=MIGR-4K6L7B

I would try looking for part number 10L1305 or 08K3146.  You want a
Lucent chipset, since that is what the comms/ltmdm port is written to
support.

Good luck, and please follow up if you find a solution.

Jim


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ATAPICAM?

2006-02-24 Thread James Long
> Date: Fri, 24 Feb 2006 01:18:21 -0500
> From: Kris Kennaway <[EMAIL PROTECTED]>
> Subject: Re: ATAPICAM?
> To: Chris Maness <[EMAIL PROTECTED]>
> Cc: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
> 
> On Thu, Feb 23, 2006 at 10:06:22PM -0800, Chris Maness wrote:
> > How do I load atapicam at boot time?  I can load it with no problems 
> > after the system has started, but I if I ad the line atapicam_load="YES" 
> > in /*boot*/loader.conf, the kernel turns to fried chicken at boot time.  
> 
> "Fried chicken" isn't a technical term I'm familiar with ;-)
> 
> Kris

man kfc

(... or was that MFC?)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: changeing the port of the ftp server

2006-02-23 Thread James Long
> Date: Wed, 22 Feb 2006 20:58:36 -0800
> From: ross <[EMAIL PROTECTED]>
> Subject: changeing the port of the ftp server
> To: "freebsd-questions@freebsd.org" 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii
> 
> I can't for the life of me figure out how to change the port of my ftp  
> server. My (crummy) ISP blocks port 21 and I would like to change the  
> default port of the ftp server in order to give access to the outside  
> world.
> 
> -- 
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Why not move to a better ISP?  I don't believe in paying money
for crummy ISP service.  There's too many good ISPs out there
competing for your money.  Vote with your wallet and move to an
ISP that wants your business.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ports/databases/mysql50-server: where is mysql_upgrade ?

2006-02-22 Thread James Long
Section 5.6.2 of the MySQL 5.0 docs says:

5.6.2. mysql_upgrade -- Check Tables for MySQL Upgrade

mysql_upgrade should be executed each time you upgrade MySQL. It 
checks all tables in all databases for incompatibilities with the 
current version of MySQL Server.


After installing mysql50-server, there is no mysql_upgrade on
my system:

pe850 : 19:44:15 /root#
[1]+  Done( /usr/libexec/locate.updatedb )
pe850 : 19:44:27 /root# locate mysql_upgrade
pe850 : 19:44:32 /root#


I am building a new server with MySQL 5.0.18 running on FreeBSD
6.1-PRERELEASE and importing data from 3.22.32 running on 
4.4-STABLE.

Where can I locate mysql_upgrade?


Thanks,

Jim

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Path And 'cron'

2006-02-21 Thread James Long
> Date: Tue, 21 Feb 2006 09:25:11 -0600
> From: Tim Daneliuk <[EMAIL PROTECTED]>
> Subject: Re: Path And 'cron'
> To: Warren Block <[EMAIL PROTECTED]>
> Cc: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> 
> The problem in this case is that it is not a shell script I own
> or maintain - it is the shell script provided with 'nessus' to update
> its plugins.  I could certainly modify the script, but then I'd have
> to remember to do this every time I upgraded the program.  I prefer
> "fire and forget" solutions that take care of themselves automatically.
> Hence my desire to be able to change the default path cron uses in
> some config file

Forgive me for missing the early parts of this thread, but why
not just put a PATH directive in your crontab?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Blocking an individual email address

2006-02-15 Thread James Long
> Date: Wed, 15 Feb 2006 10:52:26 -0500
> From: "James Csoka" <[EMAIL PROTECTED]>
> Subject: Blocking an individual email address
> To: 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> I am running a FreeBSD 5.4p10 machine at my office.  It functions as our 
> firewall and mailserver.  I am running Mailscanner, which invokes sendmail 
> when necessary to process mail.  Sendmail is not started by 
> defaultMailscanner invokes individual instances of it when it needs to.
> 
> Here is my problem.  I have an employee at my office that is sending work 
> email to her home email address.  I need to find a way to block her email 
> address, whether To, From, Cc, Bcc, or whatever, from passing through my 
> mailserver.  I have already added a line to /etc/mail/access  (in the format  
> [EMAIL PROTECTED]  REJECT), and have run makemap hash /etc/mail/access.db 
> < /etc/mail/access. I tested this with my personal email address 
> (external to my network), and it had the effect of blocking any email 
> orginating from my personal email to any address at my work, however it does 
> not prevent me from sending emails to this address from a work address, which 
> is the whole point.
> 
> Does anyone have any ideas?  I could tag the address as spam, but I would 
> rather not.  There has to be a way to block anyone from sending to a certain 
> email address, I would think.
> 
> Any help would be appreciated.
> 
> -Jim

I am not a sendmail expert, but try adding this line to your sendmail.mc:

FEATURE(blacklist_recipients)

My understanding is that this causes blacklisted email addresses to be
applied to both sender (which you verified, sending from your home personal
address) and recipients (which you're trying to accomplish, blocking the
employee's address when designated as a To:/Cc:/Bcc: recipient).

Add that line, remembering to re-create your sendmail.cf, restart sendmail,
and try again.

Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: MBR blown away

2006-02-11 Thread James Long
> Date: Fri, 10 Feb 2006 21:19:07 -0500 (EST)
> From: Peter <[EMAIL PROTECTED]>
> Subject: MBR blown away
> To: freebsd-questions 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=iso-8859-1
> 
> I need help.
> 
> I added a slice to a single hard drive dual-boot (windows) system and now
> I guess that scrambled my MBR.  I get three options from the FreeBSD (5.4)
> boot manager:
> 
> 1. DOS
> 2. FreeBSD
> 3. FreeBSD
> 
> I can boot to FreeBSD (the new slice is fine) by choosing option 3 but the
> windows/dos option is fried.
> 
> My current strategy is to use boot0cfg:
> 
> # boot0cfg -B
> 
> But I'm a little squeemish.  I don't want to be locked out of FreeBSD (I
> barely use Windows but I still would like it back for Visio).  Any
> guidance?

Start by making a full backup of your FreeBSD installation.  Then 
you'll feel less squeamish about whatever you do next.

Jim

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: update problems

2006-02-08 Thread James Long
> Date: Wed, 8 Feb 2006 13:25:38 -0500
> From: Chuck Teal <[EMAIL PROTECTED]>
> Subject: Re: update problems
> To: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain;  charset="iso-8859-1"
> 
> On Wednesday February 8 2006 10:40, Iantcho Vassilev wrote:
> > If you haven`t delete the megremaster store directory(usually /var/)
> > just rerun it. - mergemaster
> > and ask all the quesions by hand
> >
> > But first i would suggest to find the problem
> >
> > On 2/8/06, zhang <[EMAIL PROTECTED]> wrote:
> > > I've just update to 6.1-PRERELEASE from 6.0. Before I mergemaster -cv ,
> > > the system could work well . But when I mergemaster , I don't check the
> > > differents carefully and choose the " i " option directly most of the
> > > time . Now , all the network programmes can't work , I can't ping
> > > localhost/127.0.0.1 , I can't use " tcpdump " , the c/s kinds like
> > > xserver also go bad ; when the system start , many warnings such as
> > > "...see rc.conf(5)" after dmesg messages.
> > > How can I deal with it ?
> > > Thanks!
> 
> I had a similar problem just yesterday.  Running mergemaster again did not 
> fix 
> the issue.
> 
> In my situation I messed up the /etc/defaults/rc.conf.  It gave me several 
> error messages on boot up similar to yours.  I just copied the rc.conf from 
> the examples directory and replaced the rc.conf in /etc/defaults/rc.conf.  
> Then I did a:
> 
> shutdown now
> exit
> 
> It was working okay when I left this morning.
> 
> I am not sure if this is a good idea or not.  I just know it seems to have 
> solved my problem.  I would keep a backup of the original file somewhere in 
> case you need to revert back to the original.

[EMAIL PROTECTED]'s advice is too narrow, IMO.  The best practice I know 
is to back up the entire /etc directory tree before running mergemaster:

...
rm -rf /etc.old
cp -RLp /etc /etc.old
mergemaster -v
...

Then, if something goes wrong in mergemaster, you can just restore the
backup and re-run mergemaster.


Jim
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Compaq Integrated SmartArray Quantum DLT4000

2006-02-03 Thread James Long
> > On 2/1/06, RA Cohen <[EMAIL PROTECTED]> wrote:
> > > Hi All,
> > >
> > > I'm running several Compaq Proliant DL360 servers, all with
> > FBSD
> > > 6.0-RELEASE.
> > >
> > > One of these has an internal Quantum DLT 4000 (that's how
> > the
> > > BIOS identifies it) tape drive. I need to use it, but can
> > find
> > > no evidence of this hardware in the dmesg output.
> > . . .
> > > The system sees the integrated controller and uses ida0 to
> > id
> > > it, but does not see the tape drive.

In my experience, I find it highly unlikely that your DL360 has an 
internal DLT drive in it.  It wouldn't fit.

Have you opened the chassis of the server and tried to physically
locate this alleged internal tape drive?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


re: sm-mta

2006-02-02 Thread James Long
> Date: Tue, 31 Jan 2006 20:57:23 -0800 (PST)
> From: gahn <[EMAIL PROTECTED]>
> Subject: sm-mta
> To: freebsd general questions 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=iso-8859-1
> 
> Hi all:
> 
> The "sm-mta" starts up every time after the system
> reboots. How could I shut it down? my system is behind
> of firewall and I don't need mail daemon.
> 
> Thanks


Google 'freebsd deactivate sendmail' and click "I'm feeling lucky"


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Proper mail headers

2006-01-30 Thread James Long
> From: Robert Slade <[EMAIL PROTECTED]>
> Subject: Re: Proper mail headers
> To: "freebsd-questions@freebsd.org" 
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain
> 
> On Mon, 2006-01-30 at 17:13, Duane Whitty wrote:
> > Hi everyone,
> > 
> > I wanted to check to see if I am using the proper etiquette when filling 
> > in my headers, especially when responding to someone's post.  Should I 
> > just let let my reply go to the person named in Reply-To or should I 
> > reply to the list and CC the poster, or is it the other way around?
> > 
> > Thanks,
> > 
> > --Duane Whitty
> > 
> > duane @greenmeadow.ca
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "[EMAIL PROTECTED]
> 
> Duane,
> 
> I don't think that there is a right way to do it. I normally just hit
> reply to all which normally does to: the original poster and cc's the
> list. In this case it didn't as you have reply to: set as the mailing
> list.
> 
> Rob

And please, 

** LOOK ** at the recipients 

when you "Reply to all"...  A lot of mor^H^H^Hfolks seem to think that 
if they cc the list twice, they'll get twice the response.  There's no 
need to post two copies of the same message to the list.

Case in point:

> To: freebsd-questions@freebsd.org
> Cc: "Daniel A." <[EMAIL PROTECTED]>, [EMAIL PROTECTED]

> You seem to have something misconfigured. This list frequently exceeds 100 
> posts a day.

Partially because folks such as this poster don't realize what they're
doing.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


  1   2   3   >