Intel S3210SHLC motherboard and FreeBSD 7.0

2008-10-02 Thread Carl
Does anyone have any direct experience running FreeBSD on the Intel 
S3210SHLC motherboard? If so, what problems have you run into? I'm 
trying to use FreeBSD 7.0, but I don't know yet if the problems are 
specific to 7.0 or not. The DVD reader/writer is an LG GH20NS10 SATA 
drive. Motherboard BIOS is release 45, BMC is release 31, and FRUSDR is 13.


As per another thread I started, creating a serial console installation 
CD is just not working for me, although I'm still pursuing it. I managed 
to install FreeBSD 7.0 using the standard installer CD (aka internal 
console), but any deviation from that seems impossible.


Creating a bootable USB flash thumb drive doesn't work either, despite 
having enabled such functionality in BIOS. In fact, getting this 
motherboard to boot from a USB thumb drive doesn't seem to work whether 
it contains FreeBSD or something else entirely.


I've had a couple of incidents where pressing the reset button actually 
powers down the server for 5 seconds or so before automatically powering 
back up. Not a big deal, but doesn't instill confidence in this motherboard.


Carl / K0802647

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


Re: nat and firewall

2008-10-02 Thread fire jotawski
On Thu, Oct 2, 2008 at 7:39 PM, Dominique Goncalves <
[EMAIL PROTECTED]> wrote:

> Hi,
>
> On Thu, Oct 2, 2008 at 6:09 AM, fire jotawski <[EMAIL PROTECTED]> wrote:
> > On Thu, Sep 25, 2008 at 12:10 AM, Kevin Kinsey <[EMAIL PROTECTED]> wrote:
> >
> >> FBSD1 wrote:
> >>
> >>>
> >>> natd_enable="YES"  This statement in rc.conf enables ipfw nated
> function.
> >>> firewall_nat_enable="YES"  This is an invalid statement. No such thing
> as
> >>> you have here.
> >>>
> >>
> >> This is no longer true; he did indeed find "firewall_nat_enable"
> >> in /etc/defaults/rc.conf.  The knob seems to have first appeared
> >> in February in HEAD and I'm guessing it cues the system to use a
> >> new kernel-based nat rather than natd(8), but I've not read anything
> >> further about this, as my system isn't as up to date as the OP's.
> >> I don't know when this change was MFC'ed, but apparently fairly
> >> recently?
> >>
> >> I suppose we need someone a tad more "in the know" to straighten
> >> that out for us.
> >>
> >
> > up to this moment, i do not know if natd and firewall_nat function in the
> > same or different.
> > and is there firewall_nat_flags thing too ?
>
> I'll try to explain,
>
> natd_* knobs are for natd(8), a daemon
> firewall_nat_* knobs are for ipfw(8), NAT is processed by the kernel
>
> firewall_nat_* was added in the begenning of year in RELENG_7
>
> http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.firewall?r1=1.52.2.2#rev1.52.2.2
>
> The NAT configuration is done by /etc/rc.firewall, you can read this
> file to know how the configuration is done.
>
> This is two different ways to do NAT. I can't speak about performance,
> kernel vs daemon.
>

many thanks indeed for your clear explanations.
so we simply use just one of them but not both, do not we ?

once again, i appreciate all of your kind asistances in my case.

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


'Atheros L2 - 10/100 controller (wired)' shows up in pc-bsd7, but not freebsd 7.1-stable

2008-10-02 Thread Steve Franks
I'm not surprised, just curious if there's actually a tweak, or if the
pcbsd guys haven't moved the patch upstream.  I find kde so annoying
that I put 7-stable back on the machine, and my onboard lan
disappeared again...

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


Re: More RAM for buffers?

2008-10-02 Thread Wojciech Puchar

active and the program need not be reloaded from disk.


I think non-program code can also be "inactive".


i am sure.

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


Re: Questions drivers for VGA and NIC

2008-10-02 Thread Frank Shute
On Wed, Oct 01, 2008 at 02:18:10PM -0400, Mungyung Ryu wrote:
>
> Hi BSD folks!
> 
> I installed FreeBSD 7 Release - amd64.
> I have ATI Radeon HD2600 pro VGA card but ATI is sucks for supporting driver
> for Linux or FreeBSD!
> So, I'm considering to replace the dam ATI card with NVIDIA Geforce.
> I don't wanna play 3D games on FreeBSD, so just cheap Geforce card would be
> enough,
> but it should support 1920x1200 resolution.
> I wonder if what Geforce model is supported by the FreeBSD 7R - amd64.
> Anybody can recommend?

Have you tried using: x11-drivers/xf86-video-ati? That should build on
your machine.

You can use: x11-drivers/xf86-video-nv with Nvidia cards on AMD64.

The supported cards are listed in the manpage:

http://xorg.freedesktop.org/archive/X11R7.0/doc/html/nv.4.html

Cards that will drive your resolution are mentioned in this
discussion:

http://fixunix.com/hardware/8213-what-video-card-support-1920x1200-dvi-resolution.html

I dare say anything newish should manage it.

I use the nv driver and am quite happy with it (I'm a desktop user but
non-gameplayer). It's rock solid in my experience and preferable to
running a blob.

> 
> Second, I want to use zero-copy facility of FreeBSD.
> As far as I know, the hardware (NIC) support (Scatter-Gather DMA) is needed
> for that as well as using sendfile() api.
> Among the NIC products which has SGDMA function in the market,
> which one is the most well supported by FreeBSD 7R - amd64?
> I got a technical support from Intel, and they said there is no Intel NIC
> which supports SGDMA.
> That is so surprising.. isn't it?

Don't know anything about this, I'm afraid :(

But I suggest you search for NICs that do SGDMA & then see if FreeBSD
supports it by looking at an appropriate manpage (if there is a
driver).

> 
> The driver issue is killing me on FreeBSD.
> 
> Thanks.
> 

Don't give up hope! The video should be easy to sort out, don't know
about the NIC though.

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

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


Re: Mysqldump password issue

2008-10-02 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Brad Mettee wrote:
| Shouldn't there be a space between -p and the password? Like this:
|
| mysqldump -u user -p passwd --all-databases > backup.sql

~From the man page:

The password to use when connecting to the server. If you use the
short option form (-p), you cannot have a space between the option
and the password. If you omit the password value following the
- --password or -p option on the command line, you are prompted for
one.

|
| At 02:34 PM 10/2/2008, you wrote:
| Andrei Brezan wrote:
| | Hello list,
| |
| | I wanna do a
| | mysqldump -u user -ppasswd --all-databases > backup.sql
| |
| | and all I get is
| | mysqldump: No match.
| |
| | This happens either i put --all-databases or I specify any of the
| | databases. I want to do a backup as user root, that's why I use
| | all-databases opt.
| |
| | If I use the command:
| | mysqldump -u root -p --all-databases >backup.sql
| | I get the password prompt, I type the passwd and everythig works great.
| | It seems that there is a problem with -p, i've tried --password with
| | same result.
| |
| | If anyone has any ideea please let me know about it.
| | I mention that i use Freebsd 7_0 and mysql 5.0.67
|
| Same MySQL version here, but running CURRENT. Everything works fine..
|
| |
| | Thank you
| |
| |
|
|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"

| Brad Mettee
| PC HotShots, Inc.
| Baltimore, MD
| (410) 426-7617

|  -> Let us bring out the *Power* of your PCs. <-
| -> Custom Business Software Solutions since 1991 <-

| visit http://www.pchotshots.com for information about our company.

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


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkjlS+4ACgkQwMJqmJVx9471cgCguT2IPIG/o1mJVpGwgfJlYWS/
EBoAn3+nAjiehzJ/YX8BhcPjj7xaz2ZW
=Spnn
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mysqldump password issue

2008-10-02 Thread Fred Condo


On Oct 2, 2008, at 12:00 PM, Matthew Seaman wrote:


Andrei Brezan wrote:

Hello list,
I wanna do a
mysqldump -u user -ppasswd --all-databases > backup.sql
and all I get is
mysqldump: No match.
This happens either i put --all-databases or I specify any of the
databases. I want to do a backup as user root, that's why I use
all-databases opt.
If I use the command:
mysqldump -u root -p --all-databases >backup.sql
I get the password prompt, I type the passwd and everythig works  
great.

It seems that there is a problem with -p, i've tried --password with
same result.
If anyone has any ideea please let me know about it.
I mention that i use Freebsd 7_0 and mysql 5.0.67


My guess is that the password (which you've obviously elided) contains
characters of syntactic significance to the shell.  Any of the  
following

will lead to wailing and gnashing of teeth:

* ? [ < > & ; ! | $

Probably others as well.  The general way to get round this is to
put 'quote' marks around your password -- but this will only work if
the password is a separate word on the command line -- ie. whitespace
between it and any other tokens.  I believe that the '-p' flag to  
MySQL

is a bit painful in that regard as it doesn't allow whitespace between
itself and the password.  Hmmm... untested, but it should work if you
just quote around the -p like so: '-ppassword'.

Alternatively, just change the password to one containing less
troublesome characters: a-zA-Z0-9:@#~+=-_^%., I recommend use of
'apg' to generate randomised but strangely memorable passwords.  Oh,
and simply making the password longer makes it much more secure even
if you're limited to a relatively small alphabet.


If consistent with your security policies, you can store the password  
in your ~/.my.cnf file:


[client]
user=db_user
password=funny&password



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


Re: Mysqldump password issue

2008-10-02 Thread Andrei Brezan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Matthew Seaman wrote:
> Andrei Brezan wrote:
>> Hello list,
>>
>> I wanna do a
>> mysqldump -u user -ppasswd --all-databases > backup.sql
>>
>> and all I get is
>> mysqldump: No match.
>>
>> This happens either i put --all-databases or I specify any of the
>> databases. I want to do a backup as user root, that's why I use
>> all-databases opt.
>>
>> If I use the command:
>> mysqldump -u root -p --all-databases >backup.sql
>> I get the password prompt, I type the passwd and everythig works great.
>> It seems that there is a problem with -p, i've tried --password with
>> same result.
>>
>> If anyone has any ideea please let me know about it.
>> I mention that i use Freebsd 7_0 and mysql 5.0.67
>>
> 
> My guess is that the password (which you've obviously elided) contains
> characters of syntactic significance to the shell.  Any of the following
> will lead to wailing and gnashing of teeth:
> 
>  * ? [ < > & ; ! | $
> 
> Probably others as well.  The general way to get round this is to
> put 'quote' marks around your password -- but this will only work if
> the password is a separate word on the command line -- ie. whitespace
> between it and any other tokens.  I believe that the '-p' flag to MySQL
> is a bit painful in that regard as it doesn't allow whitespace between
> itself and the password.  Hmmm... untested, but it should work if you
> just quote around the -p like so: '-ppassword'.
> 
> Alternatively, just change the password to one containing less
> troublesome characters: a-zA-Z0-9:@#~+=-_^%., I recommend use of
> 'apg' to generate randomised but strangely memorable passwords.  Oh,
> and simply making the password longer makes it much more secure even
> if you're limited to a relatively small alphabet.
> 
> Cheers,
> 
> Matthew
> 

Thank you Matthew, you were right. My password contains special
characters. It works now with '-ppasswd' or with --password='passwd'


- --
Andrei Brezan
310280 Arad - Romania
mobile <+40 740 089 315>
email <[EMAIL PROTECTED]>
www 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjlLAwACgkQUmw8msqk48YKugCfasoH9/cfo/xgss7wmuAIlnK6
xS8An0idODUSkUnwKLlRKYKqoCQ5Cy3P
=UQ5J
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ssh jail

2008-10-02 Thread kalin m



thanks..  i'll look at the patches


Matthew Seaman wrote:

kalin m wrote:


hi all...

i have openssh 5. i want to jail the users to their home directories 
so they can go down but not up.


i didn't see a directive that does that in the man or in the 
sshd_config.


how do i do that?


You need a specially patched version of OpenSSH.  You can download
the patches from here:

   http://chrootssh.sourceforge.net/download/

and try patching the system sources.  If you're not an experienced
developer wise in the ways of patch(1) and diff(1) and make(1) this
definitely isn't a good idea especially for something as security
sensitive as OpenSSH.

Realistically, just install the security/openssh-portable port and
make sure to check the 'OPENSSH_CHROOT' box in the config dialog.
Note: if you choose to select the 'OVERWRITE_BASE' option, be sure
to disable building ssh in the base system by making the appropriate
entries in /etc/src.conf (see src.conf(5)) or otherwise ensure that
whatever system update mechanism you use won't accidentally blow away
your specially patched ssh daemon.

If you don't overwrite the base system, then double check that the
init scripts are starting up the openssh-portable version.  You'll
need at least this in /etc/rc.conf:

sshd_enable="NO"
openssh_enable="YES"

Cheers,

Matthew


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


Re: ssh jail

2008-10-02 Thread Matthew Seaman

kalin m wrote:


hi all...

i have openssh 5. i want to jail the users to their home directories so 
they can go down but not up.


i didn't see a directive that does that in the man or in the sshd_config.

how do i do that?


You need a specially patched version of OpenSSH.  You can download
the patches from here:

   http://chrootssh.sourceforge.net/download/

and try patching the system sources.  If you're not an experienced
developer wise in the ways of patch(1) and diff(1) and make(1) this
definitely isn't a good idea especially for something as security
sensitive as OpenSSH.

Realistically, just install the security/openssh-portable port and
make sure to check the 'OPENSSH_CHROOT' box in the config dialog.
Note: if you choose to select the 'OVERWRITE_BASE' option, be sure
to disable building ssh in the base system by making the appropriate
entries in /etc/src.conf (see src.conf(5)) or otherwise ensure that
whatever system update mechanism you use won't accidentally blow away
your specially patched ssh daemon.

If you don't overwrite the base system, then double check that the
init scripts are starting up the openssh-portable version.  You'll
need at least this in /etc/rc.conf:

sshd_enable="NO"
openssh_enable="YES"

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Mysqldump password issue

2008-10-02 Thread Brad Mettee

Shouldn't there be a space between -p and the password? Like this:

mysqldump -u user -p passwd --all-databases > backup.sql

At 02:34 PM 10/2/2008, you wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Andrei Brezan wrote:
| Hello list,
|
| I wanna do a
| mysqldump -u user -ppasswd --all-databases > backup.sql
|
| and all I get is
| mysqldump: No match.
|
| This happens either i put --all-databases or I specify any of the
| databases. I want to do a backup as user root, that's why I use
| all-databases opt.
|
| If I use the command:
| mysqldump -u root -p --all-databases >backup.sql
| I get the password prompt, I type the passwd and everythig works great.
| It seems that there is a problem with -p, i've tried --password with
| same result.
|
| If anyone has any ideea please let me know about it.
| I mention that i use Freebsd 7_0 and mysql 5.0.67

Same MySQL version here, but running CURRENT. Everything works fine..

|
| Thank you
|
|


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkjlFCAACgkQwMJqmJVx947dzgCgmOM46RQWS+lTEHXHd/wXkZUX
Uz8AoJEkwynwlaH9rMjRxgp7Xvja82M1
=On8Y
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"



Brad Mettee
PC HotShots, Inc.
Baltimore, MD
(410) 426-7617

 -> Let us bring out the *Power* of your PCs. <-
-> Custom Business Software Solutions since 1991 <-

visit http://www.pchotshots.com for information about our company.

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


Re: Mysqldump password issue

2008-10-02 Thread Matthew Seaman

Andrei Brezan wrote:

Hello list,

I wanna do a
mysqldump -u user -ppasswd --all-databases > backup.sql

and all I get is
mysqldump: No match.

This happens either i put --all-databases or I specify any of the
databases. I want to do a backup as user root, that's why I use
all-databases opt.

If I use the command:
mysqldump -u root -p --all-databases >backup.sql
I get the password prompt, I type the passwd and everythig works great.
It seems that there is a problem with -p, i've tried --password with
same result.

If anyone has any ideea please let me know about it.
I mention that i use Freebsd 7_0 and mysql 5.0.67



My guess is that the password (which you've obviously elided) contains
characters of syntactic significance to the shell.  Any of the following
will lead to wailing and gnashing of teeth:

 * ? [ < > & ; ! | $

Probably others as well.  The general way to get round this is to
put 'quote' marks around your password -- but this will only work if
the password is a separate word on the command line -- ie. whitespace
between it and any other tokens.  I believe that the '-p' flag to MySQL
is a bit painful in that regard as it doesn't allow whitespace between
itself and the password.  Hmmm... untested, but it should work if you
just quote around the -p like so: '-ppassword'.

Alternatively, just change the password to one containing less
troublesome characters: a-zA-Z0-9:@#~+=-_^%., I recommend use of
'apg' to generate randomised but strangely memorable passwords.  Oh,
and simply making the password longer makes it much more secure even
if you're limited to a relatively small alphabet.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Mysqldump password issue

2008-10-02 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Andrei Brezan wrote:
| Hello list,
|
| I wanna do a
| mysqldump -u user -ppasswd --all-databases > backup.sql
|
| and all I get is
| mysqldump: No match.
|
| This happens either i put --all-databases or I specify any of the
| databases. I want to do a backup as user root, that's why I use
| all-databases opt.
|
| If I use the command:
| mysqldump -u root -p --all-databases >backup.sql
| I get the password prompt, I type the passwd and everythig works great.
| It seems that there is a problem with -p, i've tried --password with
| same result.
|
| If anyone has any ideea please let me know about it.
| I mention that i use Freebsd 7_0 and mysql 5.0.67

Same MySQL version here, but running CURRENT. Everything works fine..

|
| Thank you
|
|


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkjlFCAACgkQwMJqmJVx947dzgCgmOM46RQWS+lTEHXHd/wXkZUX
Uz8AoJEkwynwlaH9rMjRxgp7Xvja82M1
=On8Y
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: More RAM for buffers?

2008-10-02 Thread Josh Carroll
> inactive, cache, and buffer are all different types of "buffer".

That is my understanding as well.

> I'm fairly sure that inactive is memory used by program code.  When the
> program terminates, the memory is marked as inactive, which means the
> next time the program starts the code can simply be moved back to
> active and the program need not be reloaded from disk.

I think non-program code can also be "inactive".

For example, top memory output before:

Mem: 337M Active, 1455M Inact, 407M Wired, 352K Cache, 214M Buf, 1745M Free

and after:  find /usr/src -type f -print0 | xargs -0 cat > /dev/null 2>&1

Mem: 348M Active, 1905M Inact, 402M Wired, 912K Cache, 214M Buf, 1288M Free

I am also not sure exactly what constitutes each of these. I only know
what the top man page says. And for Buf it says:

   Buf:   number of pages used for BIO-level disk caching

I'm not entirely sure what "BIO-level disk caching" is, but it is
apparently NOT the caching of filesystem data.

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


ssh jail

2008-10-02 Thread kalin m


hi all...

i have openssh 5. i want to jail the users to their home directories so 
they can go down but not up.


i didn't see a directive that does that in the man or in the sshd_config.

how do i do that?

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


Mysqldump password issue

2008-10-02 Thread Andrei Brezan
Hello list,

I wanna do a
mysqldump -u user -ppasswd --all-databases > backup.sql

and all I get is
mysqldump: No match.

This happens either i put --all-databases or I specify any of the
databases. I want to do a backup as user root, that's why I use
all-databases opt.

If I use the command:
mysqldump -u root -p --all-databases >backup.sql
I get the password prompt, I type the passwd and everythig works great.
It seems that there is a problem with -p, i've tried --password with
same result.

If anyone has any ideea please let me know about it.
I mention that i use Freebsd 7_0 and mysql 5.0.67

Thank you


-- 
Andrei Brezan
310280 Arad - Romania
mobile <+40 740 089 315>
email <[EMAIL PROTECTED]>
www 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Securing system with kern.securelevel

2008-10-02 Thread Lowell Gilbert
"DSA - JCR" <[EMAIL PROTECTED]> writes:

> I would like to use securelevel to secure a backup schedluded box made
> with FreeBSD.
>
> This box mount and unmount external USB disk where the backup is made once
> a week.

In that case, you can't set the securelevel higher than 1.

> Which would be the correct secure level ? 1, 2, or 3?

0 or 1.

> I don't want nobody modify scripts and root things, like adding a user to
> make the thing by itself, ... or modify my crontab scripts, etc...

Is this a machine that typically has users logging into it?  If not, I
would concentrate on securing the login procedures available rather
than working on limiting the abilities of accounts once they have
access to the machine.  Securelevel is useful in a fairly narrow range
of situations: some of the less obvious are that you have to be sure
that you will notice quickly if the machine reboots, and the machine
has to be physically secure.

> Also, where i must put the kern.securelevel?

Set it in rc.conf.

> I didnt understood very well in the manual and handbook in which part of
> the bootin process (rc) i must put the line in rc.conf?

See the manual for rc.conf(5). 
You will want the kern_securelevel_enable and kern_securelevel
variables. 

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


mysqldump no match issue

2008-10-02 Thread Andrei Brezan
Hello list,

I wanna do a
mysqldump -u user -ppasswd --all-databases > backup.sql

and all I get is
mysqldump: No match.

This happens either i put --all-databases or I specify any of the
databases. I want to do a backup as user root, that's why I use
all-databases opt.

If I use the command:
mysqldump -u root -p --all-databases >backup.sql
I get the password prompt, I type the passwd and everythig works great.
It seems that there is a problem with -p, i've tried --password with
same result.

If anyone has any ideea please let me know about it.
I mention that i use Freebsd 7_0 and mysql 5.0.67

Thank you

-- 
Andrei Brezan
310280 Arad - Romania
mobile <+40 740 089 315>
email <[EMAIL PROTECTED]>
www 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: More RAM for buffers?

2008-10-02 Thread Bill Moran
In response to Kirk Strauser <[EMAIL PROTECTED]>:

> On Thursday 02 October 2008, Kirk Strauser wrote:
> 
> > I have an AMD system with 6GB of RAM.  From dmesg:
> >
> > usable memory = 6428237824 (6130 MB)
> > avail memory  = 6203797504 (5916 MB)
> >
> > However, most of it is just sitting there when it looks like it could be
> > used for buffers or cache:
> 
> On another AMD64 machine, also with 6GB of RAM, I have:
> 
> Mem: 482M Active, 1044M Inact, 363M Wired, 3792K Cache, 214M Buf, 4023M Free
> Swap: 8192M Total, 8192M Free
> 
> I can understand that on the other machine maybe inactive memory is more 
> beneficial than cache or buffers, but this system is just sitting there 
> with 4GB free (and the exact same amount of buffer memory as on the other, 
> which seems a little too coincidental).

inactive, cache, and buffer are all different types of "buffer".

I've never been 100% clear on the exact differences, but it basically has
to do with where the data in RAM came from.  Depending on whether it was
a VM page, or a disk page will determine what bucket it goes into when
it moves out of active.

I'm fairly sure that inactive is memory used by program code.  When the
program terminates, the memory is marked as inactive, which means the
next time the program starts the code can simply be moved back to
active and the program need not be reloaded from disk.

Buffer and cache memory are disk data held at different points within the
kernel.  I've never been 100% clear on the difference, and I believe it
depends heavily on a thorough understanding of how the kernel works.

The other rule of thumb I've heard is that the closer memory is to the
left side of top output, the less expensive it is for the kernel to move
it to active ... inactive being the most efficient and cache requiring
the most work by the kernel ... I could be wrong, though.

I know that a lot of what I'm saying isn't authoritative, so I hope I'm
not remembering any of this wrong.  I think to fully understand how it
works you'll need to read _The_Design_and_Implementation_.

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


Re: Optimal File System config for 2.5TB RAID5

2008-10-02 Thread Wojciech Puchar

The 3ware 9690SA outperforms gmirror and can be had in 4 port with the


did you made tests comparing it with gmirror with the same config?


battery for $600 or so.  8 port with a battery is closer to $1000

Hardware RAID gets you boot support from stripes,

already said what should be done.


email alerts for RAID


smartmontools...



of course - if someone is happy spending money for such things - it's OK, 
their manufacturers are happy too.

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


Re: More RAM for buffers?

2008-10-02 Thread Wojciech Puchar

Mem: 482M Active, 1044M Inact, 363M Wired, 3792K Cache, 214M Buf, 4023M Free
Swap: 8192M Total, 8192M Free

I can understand that on the other machine maybe inactive memory is more
beneficial than cache or buffers, but this system is just sitting there
with 4GB free (and the exact same amount of buffer memory as on the other,
which seems a little too coincidental).
--

just more files was not read already :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: newsyslog and apache

2008-10-02 Thread Zbigniew Szalbot
2008/10/2 Jerry <[EMAIL PROTECTED]>:
> On Thu, 2 Oct 2008 14:51:26 +0200
> "Zbigniew Szalbot" <[EMAIL PROTECTED]> wrote:
>
>>No need to change log rotation software since the problem clearly is
>>somewhere else. You need to inspect Apache's error logs to see why it
>>cannot start.
>
> All the information on getting it working correctly is located here:
>
> http://httpd.apache.org/docs/1.3/logs.html#rotation

But he clearly stated:

"I alos see that 'apachectl restart' stops apache but it doesn't
restart."

So I guess first thing is to check why apachectl does not restart the server.

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


Re: More RAM for buffers?

2008-10-02 Thread Wojciech Puchar


   usable memory = 6428237824 (6130 MB)
   avail memory  = 6203797504 (5916 MB)

However, most of it is just sitting there when it looks like it could be
used for buffers or cache:

Mem: 1186M Active, 3902M Inact, 468M Wired, 233M Cache, 214M Buf, 138M Free
Swap: 8192M Total, 900K Used, 8191M Free


i don't really know what it's actually are but "inact" are disk caches 
often.


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


Re: newsyslog and apache

2008-10-02 Thread Jerry
On Thu, 2 Oct 2008 14:51:26 +0200
"Zbigniew Szalbot" <[EMAIL PROTECTED]> wrote:

>No need to change log rotation software since the problem clearly is
>somewhere else. You need to inspect Apache's error logs to see why it
>cannot start.

All the information on getting it working correctly is located here:

http://httpd.apache.org/docs/1.3/logs.html#rotation

-- 
Jerry
[EMAIL PROTECTED]

"Surely you can't be serious."
"I am serious, and don't call me Shirley."


signature.asc
Description: PGP signature


Re: Canon Pixma iP4500 - problem with colours

2008-10-02 Thread Roland Smith
On Thu, Oct 02, 2008 at 11:59:04AM +0100, Mike Clarke wrote:
> On Wednesday 01 October 2008, Roland Smith wrote:
> 
> > On Wed, Oct 01, 2008 at 03:46:29PM +0100, Mike Clarke wrote:
> > > I've just installed a Canon Pixma iP4500 on a 6.3 system using CUPS
> > > and gutenprint. Black printing is fine but I've got problems with
> > > colours. The colour wheel on the CUPS test page comes out as a
> > > psychedelic collection of brightly coloured rings. If I print from
> > > gimp then the correct colours appear but they are very dark and
> > > "muddy". The colours start to look a bit more reasonable from the
> > > gimp if I push the gamma value up to 2.
> >
> > Have you installed a .ppd file for this printer? This is a file that
> > tells cups about the capabilities of this printer.
> 
> I'm using the ppd file bundled with cups 
> (/usr/local/share/cups/model/gutenprint/5.1/en_GB/stp-bjc-PIXMA-iP4500.5.1.ppd.gz).
> 
> > See
> > http://www.linuxprinting.org/show_printer.cgi?recnum=Canon-PIXMA_IP43
> >00_OR_PIXMA_IP4500
> >
> > I'm not sure if just installing the ppd file works. It does for my
> > PostScript printer.
> 
> That didn't work for me. I couldn't find anywhere to download just the 
> ppd file file so I downloaded cnijfilter-ip4500series_2.80-1_i386.deb 
> from Canon's site and extracted the ppd file from that with tar. That 
> failed with the message "Unable to 
> execute /usr/local/libexec/cups/filter/pstocanonij: No such file or 
> directory". Then I edited the cupsfilter line in the ppd file and 
> replaced pstocanonij with rastertogutenprint.5.1 but that just resulted 
> in "Gutenprint Fatal error: Corrupted NickName attribute in PPD file".

I was afraid that might happen. It needs a specific filter program. I'm
assuming that pstocanonij is a binary-only Linux program? You could try
getting it to work using FreeBSD's Linux emulation.
 
> Interestingly the CUPS test page 
> (/usr/local/share/cups/data/testprint.ps) only produces the psychedelic 
> rings in the colour wheel if I print it from the local CUPS web page or 
> from KGhostView, if I open it with the gimp and print from there I get 
> the correct colour pattern but with very muddy colours.

Gimp uses Gutenprint doesn't it? So you could try using the gutenprint driver?

My strategy is to try and avoid these troubles. Spend a bit more and get
a printer that works with postscript. Those will work on any UNIX-like OS.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpX6Teub2Vqi.pgp
Description: PGP signature


Re: nat and firewall

2008-10-02 Thread n j
>> This is no longer true; he did indeed find "firewall_nat_enable"
>> in /etc/defaults/rc.conf.  The knob seems to have first appeared
>> in February in HEAD and I'm guessing it cues the system to use a
>> new kernel-based nat rather than natd(8), but I've not read anything
>> further about this, as my system isn't as up to date as the OP's.
>> I don't know when this change was MFC'ed, but apparently fairly
>> recently?

> firewall_nat_* was added in the begenning of year in RELENG_7
> http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.firewall?r1=1.52.2.2#rev1.52.2.2
>
> This is two different ways to do NAT. I can't speak about performance,
> kernel vs daemon.

Apologies for jumping in another thread commenting on my own question,
but I think the questions are very similar (see "Recompile kernel or
module for ipfw+nat?",
http://lists.freebsd.org/pipermail/freebsd-questions/2008-September/183418.html).

It would seem that doing NAT with ipfw (in-kernel as opposed to using
userland natd) is not possible  in 7.0-RELEASE-p4 without recompiling
the kernel to include IPDIVERT even though IPDIVERT was converted to
loadable module way back. And I have doubts that even recompiling the
kernel would help doing "ipfw add nat 123 all from any to any".

However, I found the reason for that might be the following CVS commit message:

# $FreeBSD: src/sys/modules/ipfw_nat/Makefile,v 1.1 2008/02/29
22:27:18 piso Exp $

"Move ipfw's nat code into its own kld: ipfw_nat."

which got commited to RELENG_7 and HEAD only (explains why it doesn't
work on my 7.0-RELEASE-p4).

My guess is that this functionality is already available in 7.1-BETA
since the code freeze began in September and ipfw nat code got
committed in February.

I can only guess if what I wrote above if correct, but I'll upgrade
one machine to 7.1-BETA as soon as I get some spare time.

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


Re: Running cron jobs as nobody

2008-10-02 Thread DAve

Bill Campbell wrote:

You can use ``su -c '/path/to/command' username'' to run scripts as
users other than root.

Another way is to use ``crontab -u username''.  man crontab for
details.

Bill


I am being told the developer tried a user crontab without success. I've 
not suggested they try su yet though I dropped hints.


Still seems odd that setting the user to nobody in /etc/crontab did not 
work.


Dave

--
Don't tell me I'm driving the cart!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: More vbox and build troubles.

2008-10-02 Thread Dan Nelson
In the last episode (Oct 02), Desmond Chapman said:
> 
> * Checking libpng *
> compiling the following source file:
> #include 
> #include 
> extern "C" int main(void)
> {
>   printf("found version %s", PNG_LIBPNG_VER_STRING);
> #if PNG_LIBPNG_VER >= 10205
>   printf(", OK.\n");
>   return 0;
> #else
>   printf(", expected version 1.2.5 or higher\n");
>   return 1;
> #endif
> }
> using the following command line:
> g++ -O -Wall -o .tmp_out .tmp_src.cc "-lpng "
> .tmp_src.cc:2:17: error: png.h: No such file or directory
> .tmp_src.cc: In function 'int main()':
> .tmp_src.cc:5: error: 'PNG_LIBPNG_VER_STRING' was not declared in this scope
> 
> 
> I need the headers for this library- libpng-1.2.32. Are they in ports
> as part of another package or do I need to build them? If so, how?

Assuming you have the png port installed, add -I/usr/local/include
-L/usr/local/lib to your compile line.

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


Re: Running cron jobs as nobody

2008-10-02 Thread Bill Campbell
You can use ``su -c '/path/to/command' username'' to run scripts as
users other than root.

Another way is to use ``crontab -u username''.  man crontab for
details.

Bill
-- 
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:  (206) 236-1676  Mercer Island, WA 98040-0820
Fax:(206) 232-9186

Of all the contrivances devised for cheating the laboring classes of
mankind, none has been more effective than that which deludes him with
paper money. -- -Daniel Webster
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Running cron jobs as nobody

2008-10-02 Thread DAve

Good morning all,

We have a cronjob we need to run as nobody from /etc/crontab and it 
seems to be not working. The job runs, but not as user nobody.


I noticed two things,

1) the job to update the locate DB runs as nobody, because the script 
uses su to become nobody.

echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody || rc=3

2) nobody, as expected, has no shell or home dir in /etc/password.

I searched around for an answer but didn't see anything concerning this 
other than a patch to cron to check if setuid fails.


Is setting the user to nobody in /etc/crontab not possible?

Thanks,

DAve

--
Don't tell me I'm driving the cart!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: More RAM for buffers?

2008-10-02 Thread Kirk Strauser
On Thursday 02 October 2008, Kirk Strauser wrote:

> I have an AMD system with 6GB of RAM.  From dmesg:
>
> usable memory = 6428237824 (6130 MB)
> avail memory  = 6203797504 (5916 MB)
>
> However, most of it is just sitting there when it looks like it could be
> used for buffers or cache:

On another AMD64 machine, also with 6GB of RAM, I have:

Mem: 482M Active, 1044M Inact, 363M Wired, 3792K Cache, 214M Buf, 4023M Free
Swap: 8192M Total, 8192M Free

I can understand that on the other machine maybe inactive memory is more 
beneficial than cache or buffers, but this system is just sitting there 
with 4GB free (and the exact same amount of buffer memory as on the other, 
which seems a little too coincidental).
-- 
Kirk Strauser
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


More RAM for buffers?

2008-10-02 Thread Kirk Strauser
I have an AMD system with 6GB of RAM.  From dmesg:

usable memory = 6428237824 (6130 MB)
avail memory  = 6203797504 (5916 MB)

However, most of it is just sitting there when it looks like it could be 
used for buffers or cache:

Mem: 1186M Active, 3902M Inact, 468M Wired, 233M Cache, 214M Buf, 138M Free
Swap: 8192M Total, 900K Used, 8191M Free

Since I've yet to find a great explanation for what the different types of 
memory are, could someone say why all that inactive memory is better than 
using it for cache or buffers?
-- 
Kirk Strauser
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


More vbox and build troubles.

2008-10-02 Thread Desmond Chapman

* Checking libpng *
compiling the following source file:
#include 
#include 
extern "C" int main(void)
{
  printf("found version %s", PNG_LIBPNG_VER_STRING);
#if PNG_LIBPNG_VER >= 10205
  printf(", OK.\n");
  return 0;
#else
  printf(", expected version 1.2.5 or higher\n");
  return 1;
#endif
}
using the following command line:
g++ -O -Wall -o .tmp_out .tmp_src.cc "-lpng "
.tmp_src.cc:2:17: error: png.h: No such file or directory
.tmp_src.cc: In function 'int main()':
.tmp_src.cc:5: error: 'PNG_LIBPNG_VER_STRING' was not declared in this scope


I need the headers for this library- libpng-1.2.32. Are they in ports as part 
of another package or do I need to build them? If so, how?


_
See how Windows Mobile brings your life together—at home, work, or on the go.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


the patch from walt

2008-10-02 Thread Desmond Chapman

--- ld/x86_aout.h.orig  2003-01-28 17:17:14.0 -0500
+++ ld/x86_aout.h   2005-05-07 22:40:05.0 -0400
@@ -13,7 +13,9 @@
 typedef long Long;
 #define __OUT_OK 1
 #else
-typedef char Long[4];
+#define __OUT_OK 1
+#include 
+typedef int32_t Long;
 #endif

Sorry about that. 

_
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Questions drivers for VGA and NIC

2008-10-02 Thread Jerry McAllister
On Wed, Oct 01, 2008 at 06:04:24PM -0400, Jerry wrote:

> On Wed, 1 Oct 2008 23:25:19 +0200 (CEST)
> Wojciech Puchar <[EMAIL PROTECTED]> wrote:
> 
> >> In all likelihood, the probability of any vendor creating FBSD
> >> specific drivers is directly proportionate to the expenditure of
> >> funds to create and maintain the driver versus the expected revenue
> >> from such an expenditure.  
> >
> >giving out a specs will be the simplest way.
> 
> Any entity, or corporation, has a right to expect a return on their
> investment. To expect a corporation to simply give away something,
> thereby depriving their shareholders, partners or whatever, of their
> rightfully expected monetary reward is foolish. It certainly is not a
> well thought out  business model.

First, in cases like this, giving out the specs so someone can write 
a good driver could increase their sales of cards which could, in 
turn, increase their profit.So, it would help their business
rather than hurt it.   They do not sell those drivers.   They just
use them to sell video cards.Since the lack of a driver that
works in FreeBSD limits their sales of video cards, then they are 
making the business mistake you are indicating, only in a reverse 
sort of way.


Second, and very important.No corporation has any right to expect
a return on their investment.   Investment is always a risk.  They
might hope for a return, but they will have to work for it.  They will
be fortunate to get it.   More business ventures fail than succeed.

Maybe it is only a case of using the wrong word, but it is still
important to remember that there is no guarantee of profit.   That
was the big failing of price controls - that the government got
in to the business of guaranteeing profits and then the whole thing
fell apart.

jerryJerry McAllister[EMAIL PROTECTED]


> 
> -- 
> Jerry
> [EMAIL PROTECTED]
> 
> If man is only a little lower than the angels, the angels should reform.
> 
>   Mary Wilson Little


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


Re: Questions drivers for VGA and NIC

2008-10-02 Thread Robert Huff
Da Rock writes:

>  I apologise for jumping into this thread mid way, but wouldn't
>  the problem be simply a case of nil NDA? If an FOSS programmer
>  signed an NDA with say NVidia, then wouldn't the hardware
>  supplier be more willing to supply more specific details?
>  
>  Anyone with experience in the legalities here?

It's not just the legalities, it's the philosophy.
Accepting the N.D.A. would allow the writing of a driver
... which would - based on what I know about siilar N.D.A.s - have
to be released as a binary.
Now that could happen, and be a working solution; it's worked
for other products.  (Examples are left as an exercise for the
reader.)
But it's the (rare) exception and not the rule for a reason.
Ignoring philosophical disagreements, it makes it harder to find and
fix problems.
Case in point:
FreeBSD supports Intel non-CPU hardware; in at least one case
(the /em/ network driver) Intel not only writes the code (for free)
but releases it under an appropriate license.  This gains Intel a
lot of cred.  (The fact that it's superior code on a superior card
doesn't hurt, nor does tha fact that the writer is available,
responsive, and friendly.)


Robert Huff

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


Re: vbox building and freebsd

2008-10-02 Thread Matt
On Thu, Oct 2, 2008 at 2:45 AM, Desmond Chapman <[EMAIL PROTECTED]> wrote:
>
> I'm posting this to two mailing lists because of the environment.
>
> #  /home/moleque/VirtualBox-2.0.0/./configure
> Checking for environment: Determined build machine: freebsd.amd64, target 
> machine: freebsd.amd64, OK.
> Checking for kBuild: found, OK.
> Checking for gcc: found version 4.2.1, OK.
> Checking for as86: found version 0.16.17, OK.
> Checking for bcc: found version 0.16.17, OK.
> Checking for iasl: found version 20070320, OK.
> Checking for xslt: found, OK.
> Checking for pthread: found, OK.
> /libexec/ld-elf.so.1: Shared object "libc.so.6" not found, required by 
> "kmk_sed"
> Checking for libxml2: /libexec/ld-elf.so.1: Shared object "libc.so.6" not 
> found, required by "kmk_sed"
>
>  xml2 not found at -L/usr/local/lib -lxml2   -lpthread  or xml2 headers not 
> found
>  Check the file /usr/home/moleque/sdk/bindings/configure.log for detailed 
> error information.
>
[snip]

> How do I solve the xml2 conflict listed above the patch?
>
Install the misc/compat6x port to gain access to the libc.so.6 that
the pre-compiled kmk_sed was likely compiled with.  If that doesn't
work, you'll need to follow the kmake instructions to build from
source.

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


Re: Freeing an mbuf cluster

2008-10-02 Thread Bruce M. Simpson

Yony Yossef wrote:

Hi All,

I'm trying to manually build an mbuf chain with clusters in various sizes.
I'm doing it using the MGETHDR and MEXTADD macros, it works fine.
Now I'm looking for the simplest way to free an mbuf cluster, since I want
to free the clusters seperately. This function will be given as a parameter
to MEXTADD.

Is there a simple command like 'free(buf)' to free an mbuf cluster?
  


You don't specify if you are trying to add the external storage from a 
pool you manage, in which case, you're on your own.


m_free() for a cluster or mbuf should just "do the right thing". Since 
the UMA cleanup there are destructor functions which should free the 
mbuf or cluster using the right pool.


m_freem() works on chains, of course.

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


Re: newsyslog and apache

2008-10-02 Thread Zbigniew Szalbot
Hello,

2008/10/2 Jerry <[EMAIL PROTECTED]>:
> On Thu, 02 Oct 2008 14:20:50 +0200
> "DA Forsyth" <[EMAIL PROTECTED]> wrote:
>
>>I used to have one big apache log file, but decided to rotate it once
>>a month using newsyslog.
>>
>>However, now apache stops and does not restart when the log is
>>rotated.
>>
>>line from newsyslog.conf
>>/var/log/apache/httpd-access.log640 13 *$M1D8 B
>>  /var/run/httpd.pid 30
>>
>>with a similar one for the error log.
>>
>>I have to manually start apache after this rotates the log.
>>
>>I alos see that 'apachectl restart' stops apache but it doesn't
>>restart.
>>
>>any ideas?
>
>
> I use 'rotatelogs':

No need to change log rotation software since the problem clearly is
somewhere else. You need to inspect Apache's error logs to see why it
cannot start.

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


Re: Questions drivers for VGA and NIC

2008-10-02 Thread Da Rock

On Thu, 2008-10-02 at 07:26 -0400, Jerry wrote:
> On Wed, 1 Oct 2008 14:36:26 -0800
> Henrik Hudson <[EMAIL PROTECTED]> wrote:
> 
> >On Wednesday 01 October 2008, Jerry <[EMAIL PROTECTED]> sent a missive
> >stating: 
> >> On Wed, 1 Oct 2008 23:25:19 +0200 (CEST)
> >>
> >> Wojciech Puchar <[EMAIL PROTECTED]> wrote:
> >> >> In all likelihood, the probability of any vendor creating FBSD
> >> >> specific drivers is directly proportionate to the expenditure of
> >> >> funds to create and maintain the driver versus the expected
> >> >> revenue from such an expenditure.
> >> >
> >> >giving out a specs will be the simplest way.
> >>
> >> Any entity, or corporation, has a right to expect a return on their
> >> investment. To expect a corporation to simply give away something,
> >> thereby depriving their shareholders, partners or whatever, of their
> >> rightfully expected monetary reward is foolish. It certainly is not a
> >> well thought out  business model.
> >
> >There is a difference between open sourcing the binary blob and
> >possibly giving away optimizations, trade secrets, etc... and allowing
> >easier access to either hardware register specs or specs to write a
> >wrapper around a universal blob.
> >
> >Personally, I think they see it as a "quality" control issue, though
> >the quality of their own code is sometimes circumspect. The card
> >companies sell hardware and this is where their money is made and/or a
> >better experience with the software drivers. Open the hardware spec,
> >add a support clause that any "open source" drivers aren't officially
> >supported and you're good to go.
> 
> Unfortunately, that is not a legally binding disclaimer in many
> locales. It is equivalent to wearing a T-Shirt with "Touch me and I'll
> kill you" embroidered on it. If someone touches you and you kill them
> you cannot then claim that they were fore warned. That is from an
> actual lecture I receive in a business class.
> 
> >Opening the hardware spec will do nothing except sell more hardware.
> 
> Unproven and if it were in factually correct, more businesses would
> make use of it.
> 
> >a) the average joe will continue to buy systems with the supported
> >hardware / drivers, most likely Windows, OS X or a major Linux distro.
> >Probably wouldn't even know the open source ones exist.
> 
> A bit naive in my personal opinion. The overwhelming majority of users
> that I am acquainted with and many of them are college students, buy
> what ever works best for them with the least amount of user
> intervention. The  majority of users that I am familiar with do not
> want to spent valuable time attempting to configure a PC; they have
> better things to do. How many discussions have we had on this forum
> regarding the lack of a functional 'Flash' plug-in for web browsing,
> etc. Until problems like that are solved, expanding the base for FBSD
> is a touch uphill climb.
> 
> >b) the geeks of the world will start running the open source driver if
> >it's better or not if it's worse for their applications. Either way,
> >it will only sell more hardware.
> 
> Again, unproven.
> 
> >c) The FOSS only crowd will start using the hardware since it has a
> >fully open source drivers.
> >
> >The open source driver doesn't need to be able to run Doom5 at
> >incredible speeds, it just needs high quality 2d and the ability to
> >handle some 3d compositing, etc... for desktop effects.
> 
> Sorry; however, I totally disagree. A half-ass driver is akin to being
> slightly pregnant. You are either pregnant or you are not. A driver is
> either fully functional, or it is broken. To make arbitrary limits on
> what it should and should not be able to do is absurd. If I want to
> play a game, and your half-ass driver will not run it, then that driver
> is as useless as 'Tits on a bull'. It either works, or it doesn't. Too
> many people today accept inferior products/performance under just the
> guise you are employing.
> 
> >My .02$
> >
> >Henrik
> 
> Again, it appears that NVIDIA has attempted to work with the FBSD
> community. Evidently, nothing has come of it. Unfortunate, to say the
> least.

I apologise for jumping into this thread mid way, but wouldn't the
problem be simply a case of nil NDA? If an FOSS programmer signed an NDA
with say NVidia, then wouldn't the hardware supplier be more willing to
supply more specific details?

Anyone with experience in the legalities here?

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


Re: newsyslog and apache

2008-10-02 Thread Jerry
On Thu, 02 Oct 2008 14:20:50 +0200
"DA Forsyth" <[EMAIL PROTECTED]> wrote:

>I used to have one big apache log file, but decided to rotate it once 
>a month using newsyslog.
>
>However, now apache stops and does not restart when the log is 
>rotated.
>
>line from newsyslog.conf
>/var/log/apache/httpd-access.log640 13 *$M1D8 B   
>  /var/run/httpd.pid 30
>
>with a similar one for the error log.
>
>I have to manually start apache after this rotates the log.
>
>I alos see that 'apachectl restart' stops apache but it doesn't 
>restart.
>
>any ideas?


I use 'rotatelogs':

http://httpd.apache.org/docs/2.0/programs/rotatelogs.html

to facilitate the rotating of logs. If you need further information,
contact me OL.

-- 
Jerry
[EMAIL PROTECTED]

To see a need and wait to be asked, is to already refuse.


signature.asc
Description: PGP signature


Re: nat and firewall

2008-10-02 Thread Dominique Goncalves
Hi,

On Thu, Oct 2, 2008 at 6:09 AM, fire jotawski <[EMAIL PROTECTED]> wrote:
> On Thu, Sep 25, 2008 at 12:10 AM, Kevin Kinsey <[EMAIL PROTECTED]> wrote:
>
>> FBSD1 wrote:
>>
>>>
>>> natd_enable="YES"  This statement in rc.conf enables ipfw nated function.
>>> firewall_nat_enable="YES"  This is an invalid statement. No such thing as
>>> you have here.
>>>
>>
>> This is no longer true; he did indeed find "firewall_nat_enable"
>> in /etc/defaults/rc.conf.  The knob seems to have first appeared
>> in February in HEAD and I'm guessing it cues the system to use a
>> new kernel-based nat rather than natd(8), but I've not read anything
>> further about this, as my system isn't as up to date as the OP's.
>> I don't know when this change was MFC'ed, but apparently fairly
>> recently?
>>
>> I suppose we need someone a tad more "in the know" to straighten
>> that out for us.
>>
>
> up to this moment, i do not know if natd and firewall_nat function in the
> same or different.
> and is there firewall_nat_flags thing too ?

I'll try to explain,

natd_* knobs are for natd(8), a daemon
firewall_nat_* knobs are for ipfw(8), NAT is processed by the kernel

firewall_nat_* was added in the begenning of year in RELENG_7
http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.firewall?r1=1.52.2.2#rev1.52.2.2

The NAT configuration is done by /etc/rc.firewall, you can read this
file to know how the configuration is done.

This is two different ways to do NAT. I can't speak about performance,
kernel vs daemon.

Hope this helps.

> thanks in advanced for any helps and hints.
> regards,
> psr
>
>
>>
>> Kevin Kinsey
>> --
>> A wise man can see more from a mountain top
>> than a fool can from the bottom of a well.
>>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>

Regards.

-- 
There's this old saying: "Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


newsyslog and apache

2008-10-02 Thread DA Forsyth
I used to have one big apache log file, but decided to rotate it once 
a month using newsyslog.

However, now apache stops and does not restart when the log is 
rotated.

line from newsyslog.conf
/var/log/apache/httpd-access.log640 13 *$M1D8 B   
  /var/run/httpd.pid 30

with a similar one for the error log.

I have to manually start apache after this rotates the log.

I alos see that 'apachectl restart' stops apache but it doesn't 
restart.

any ideas?


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: Questions drivers for VGA and NIC

2008-10-02 Thread Robert Huff

Jerry <[EMAIL PROTECTED]>:

>Again, it appears that NVIDIA has attempted to work with the
>FBSD community. Evidently, nothing has come of it. Unfortunate,
>to say the least.

The next step - sometimes suggested, but never to my knowledge
attepted - would be for someone to run a collection to hire someone
to do the programming.
Considering we're talking about messing with the memory system,
one suspects quality help would not come cheap.
On the other hand, this is (as I understand it) not a FreeBSD
issue; it's a (Free, Net, Open, Dragonfly)BSD issue.  Trolling for
interest/talent/funds in the other user bases might useful,


Robert Huff

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


Re: Realtek 8111C?

2008-10-02 Thread Da Rock

On Thu, 2008-10-02 at 12:01 +0200, Popof Popof wrote:
> I hav a mobo with the same NIC, I use it on a FreeNAS box that's runing a
> version based on FreeBSD 6.3.
> In order to make the NIC work i had to compile the drivers from realtek with
> an other FreeBSD box and load the module on startup.
> But data transfer from / to my FreeNAS box are slow.
> 
> Anyone had the same problem with this NIC / Realtek drivers?
> Did someone used the drivers from FreeBSD 7.1 with (or without) FreeNAS ?
> Does the transfer speed are correct ?
> 
> 2008/10/1 cpghost <[EMAIL PROTECTED]>

I thought that mine might be slow, but I couldn't be sure as its pretty
weak hardware anyway. Might be worth some investigation.

(I'm running 6.2 and 6.3)

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


Re: mysql rc script failure - correction: most installed rc scripts not running manually

2008-10-02 Thread Da Rock

On Thu, 2008-10-02 at 09:18 +0200, Jonathan McKeown wrote:
> On Thursday 02 October 2008 01:59:18 Da Rock wrote:
> > On Wed, 2008-10-01 at 12:53 +0200, Erik Trulsson wrote:
> > > On Wed, Oct 01, 2008 at 08:39:47PM +1000, Da Rock wrote:
> > > >
> > > > So are you saying I can't start a script manually without enabling it
> > > > in rc.conf? I was not under that impression... I thought it could be
> > > > started manually for testing before setting it for automatic startup-
> > > > based on my reading in the handbook and man pages.
> > >
> > > Yes, you can.  Use forcestart/forcestop instead of start/stop when
> > > running the rc script if you do not have it enabled in rc.conf.  This is
> > > documented in rc(8) (and is very easily overlooked if you don't know what
> > > you are looking for.)
> >
> > Well thank you both for that piece of information, I had overlooked
> > that. I did end up using it that way, but I was still unaware that it
> > was mandatory.
> 
> The problem with forcestart is that it ignores any errors that may occur. The 
> better option for a manual start is onestart, which simply bypasses the test 
> for the option being enabled but still fails on any other error (missing 
> dependencies, startup problems etc).
> 
> Jonathan

Well that might be more useful (and best practice)...

Cheers for the heads up guys

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


Re: Questions drivers for VGA and NIC

2008-10-02 Thread Jerry
On Wed, 1 Oct 2008 14:36:26 -0800
Henrik Hudson <[EMAIL PROTECTED]> wrote:

>On Wednesday 01 October 2008, Jerry <[EMAIL PROTECTED]> sent a missive
>stating: 
>> On Wed, 1 Oct 2008 23:25:19 +0200 (CEST)
>>
>> Wojciech Puchar <[EMAIL PROTECTED]> wrote:
>> >> In all likelihood, the probability of any vendor creating FBSD
>> >> specific drivers is directly proportionate to the expenditure of
>> >> funds to create and maintain the driver versus the expected
>> >> revenue from such an expenditure.
>> >
>> >giving out a specs will be the simplest way.
>>
>> Any entity, or corporation, has a right to expect a return on their
>> investment. To expect a corporation to simply give away something,
>> thereby depriving their shareholders, partners or whatever, of their
>> rightfully expected monetary reward is foolish. It certainly is not a
>> well thought out  business model.
>
>There is a difference between open sourcing the binary blob and
>possibly giving away optimizations, trade secrets, etc... and allowing
>easier access to either hardware register specs or specs to write a
>wrapper around a universal blob.
>
>Personally, I think they see it as a "quality" control issue, though
>the quality of their own code is sometimes circumspect. The card
>companies sell hardware and this is where their money is made and/or a
>better experience with the software drivers. Open the hardware spec,
>add a support clause that any "open source" drivers aren't officially
>supported and you're good to go.

Unfortunately, that is not a legally binding disclaimer in many
locales. It is equivalent to wearing a T-Shirt with "Touch me and I'll
kill you" embroidered on it. If someone touches you and you kill them
you cannot then claim that they were fore warned. That is from an
actual lecture I receive in a business class.

>Opening the hardware spec will do nothing except sell more hardware.

Unproven and if it were in factually correct, more businesses would
make use of it.

>a) the average joe will continue to buy systems with the supported
>hardware / drivers, most likely Windows, OS X or a major Linux distro.
>Probably wouldn't even know the open source ones exist.

A bit naive in my personal opinion. The overwhelming majority of users
that I am acquainted with and many of them are college students, buy
what ever works best for them with the least amount of user
intervention. The  majority of users that I am familiar with do not
want to spent valuable time attempting to configure a PC; they have
better things to do. How many discussions have we had on this forum
regarding the lack of a functional 'Flash' plug-in for web browsing,
etc. Until problems like that are solved, expanding the base for FBSD
is a touch uphill climb.

>b) the geeks of the world will start running the open source driver if
>it's better or not if it's worse for their applications. Either way,
>it will only sell more hardware.

Again, unproven.

>c) The FOSS only crowd will start using the hardware since it has a
>fully open source drivers.
>
>The open source driver doesn't need to be able to run Doom5 at
>incredible speeds, it just needs high quality 2d and the ability to
>handle some 3d compositing, etc... for desktop effects.

Sorry; however, I totally disagree. A half-ass driver is akin to being
slightly pregnant. You are either pregnant or you are not. A driver is
either fully functional, or it is broken. To make arbitrary limits on
what it should and should not be able to do is absurd. If I want to
play a game, and your half-ass driver will not run it, then that driver
is as useless as 'Tits on a bull'. It either works, or it doesn't. Too
many people today accept inferior products/performance under just the
guise you are employing.

>My .02$
>
>Henrik

Again, it appears that NVIDIA has attempted to work with the FBSD
community. Evidently, nothing has come of it. Unfortunate, to say the
least.


-- 
Jerry
[EMAIL PROTECTED]

Not Hercules could have knock'd out his brains, for he had none.

Shakespeare


signature.asc
Description: PGP signature


Re: php5 on a system upgraded from FBSD5.4R to FBSD6.3-p3

2008-10-02 Thread Sean Cavanaugh

did you rebuild apache first after doing the upgrade?

--
From: "FreeBSD Daemon" <[EMAIL PROTECTED]>
Sent: Thursday, October 02, 2008 6:13 AM
To: <[EMAIL PROTECTED]>; 
Subject: php5 on a system upgraded from FBSD5.4R to FBSD6.3-p3


dear list,

i just upgraded my system from 5.4R to 6.3-p3
when i now try to install php5 w/ apache integration (apache module) i
get the following error when i try to start apache20:

Cannot load /usr/local/libexec/apache2/libphp5.so into server:
/usr/local/libexec/apache2/libphp5.so: Undefined symbol "__res_ninit"

I googled but neither of the solution provided by the net community
works ... i would really appreciate help.

Thanks in advance!

Zheyu

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



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


Re: Canon Pixma iP4500 - problem with colours

2008-10-02 Thread Mike Clarke
On Wednesday 01 October 2008, Roland Smith wrote:

> On Wed, Oct 01, 2008 at 03:46:29PM +0100, Mike Clarke wrote:
> > I've just installed a Canon Pixma iP4500 on a 6.3 system using CUPS
> > and gutenprint. Black printing is fine but I've got problems with
> > colours. The colour wheel on the CUPS test page comes out as a
> > psychedelic collection of brightly coloured rings. If I print from
> > gimp then the correct colours appear but they are very dark and
> > "muddy". The colours start to look a bit more reasonable from the
> > gimp if I push the gamma value up to 2.
>
> Have you installed a .ppd file for this printer? This is a file that
> tells cups about the capabilities of this printer.

I'm using the ppd file bundled with cups 
(/usr/local/share/cups/model/gutenprint/5.1/en_GB/stp-bjc-PIXMA-iP4500.5.1.ppd.gz).

> See
> http://www.linuxprinting.org/show_printer.cgi?recnum=Canon-PIXMA_IP43
>00_OR_PIXMA_IP4500
>
> I'm not sure if just installing the ppd file works. It does for my
> PostScript printer.

That didn't work for me. I couldn't find anywhere to download just the 
ppd file file so I downloaded cnijfilter-ip4500series_2.80-1_i386.deb 
from Canon's site and extracted the ppd file from that with tar. That 
failed with the message "Unable to 
execute /usr/local/libexec/cups/filter/pstocanonij: No such file or 
directory". Then I edited the cupsfilter line in the ppd file and 
replaced pstocanonij with rastertogutenprint.5.1 but that just resulted 
in "Gutenprint Fatal error: Corrupted NickName attribute in PPD file".

The link you quoted implied that the IP4300 driver might also work for 
the IP4500 so I tried to configure it as an IP4300 but it only spat out 
a blank page when I tried a test print.

Interestingly the CUPS test page 
(/usr/local/share/cups/data/testprint.ps) only produces the psychedelic 
rings in the colour wheel if I print it from the local CUPS web page or 
from KGhostView, if I open it with the gimp and print from there I get 
the correct colour pattern but with very muddy colours.

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


SNMP

2008-10-02 Thread Marcel Grandemange
Anybody have docs on how to get ucd-snmp-4.2.7.1 working on FreeBSD?

I used to have net-snmp working but had to switch over as FreeRadius only
supported ucd-snmp.

 

 

Advice?

 

 

Thanks.

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


php5 on a system upgraded from FBSD5.4R to FBSD6.3-p3

2008-10-02 Thread FreeBSD Daemon
dear list,

i just upgraded my system from 5.4R to 6.3-p3
when i now try to install php5 w/ apache integration (apache module) i
get the following error when i try to start apache20:

Cannot load /usr/local/libexec/apache2/libphp5.so into server:
/usr/local/libexec/apache2/libphp5.so: Undefined symbol "__res_ninit"

I googled but neither of the solution provided by the net community
works ... i would really appreciate help.

Thanks in advance!

Zheyu

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


Re: Logrotate

2008-10-02 Thread Frank Shute
On Wed, Oct 01, 2008 at 07:52:48PM -0400, Grant Peel wrote:
>
> Hi all,
> 
> I have recently started using logrotate to rotate all the logs in the users 
> home directories. These are all apache logs files.
> 
> /home/domain.com/logsaccess_log
> /home/domain.com/logsaccess_log.0.gz
> /home/domain.com/logsaccess_log.1.gz
> /home/domain.com/logsaccess_log.2.gz
> 
> I have a problem though. Some of my domains have softlinks pointing to 
> them, this causes the logs to be rotated 2 or more times (i.e. 1 time for 
> the 'real' directory, and 1 time each for each softlink pointing to them).
> 
> Example
> 
> /home/domain.com/logs/
> domain2.com -> domain.com
> domain3.com -> domain.com
> 
> will result in the 'access_log' being rotated 3 times in one run, causing 
> my log dirs to look like this:
> 
> -rw-r--r--   1 root  holt   160 Oct  1 05:44 access_log
> -rw-r--r--   1 root  holt   446 Oct  1 05:44 error_log
> -rw-r--r--   1 root  holt20 Oct  1 03:46 access_log.1.gz
> -rw-r--r--   1 root  holt20 Oct  1 03:46 access_log.2.gz
> -rw-r--r--   1 root  holt20 Oct  1 03:46 access_log.3.gz
> -rw-r--r--   1 root  holt20 Oct  1 03:46 access_log.4.gz
> -rw-r--r--   1 root  holt20 Oct  1 03:46 access_log.5.gz
> -rw-r--r--   1 root  holt20 Oct  1 03:46 access_log.6.gz
> -rw-r--r--   1 root  holt   224 Oct  1 03:46 access_log.7.gz
> -rw-r--r--   1 root  holt20 Sep 30 03:46 access_log.8.gz
> -rw-r--r--   1 root  holt20 Sep 30 03:46 access_log.9.gz
> 
> Here is this appropriate part of my logrotate.conf
> 
> # logrotate.conf
> 
> compress
> 
> ...
> 
> /home/*/logs/access_log {
>missingok
>rotate 14
>daily
>create 644 root
>sharedscripts
>postrotate
>/usr/local/sbin/apachectl restart
>endscript
>}
> 
> # End of logrotate.conf
> 
> 
> Question, is there a way to stop this from happening?
> 
> -Grant
> 

Aswell as doing what Jeremy Chadwick mentioned, you might want to use
newsyslog(8) to rotate your logs.

It's got a couple of advantages that I know of: it's part of the base
system and it gracefully sends Apache a signal (SIGUSR1) to stop it
writing to the logfile before it rotates it.

You want something like the following in newsyslog.conf(5):

/var/log/httpd-access.log   644  5   200  * B/var/run/httpd.pid  30

Obviously, adjust the parameters to suit your needs. You want the 30
at the end. All explained in the manpage.

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

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


Re: Realtek 8111C?

2008-10-02 Thread Popof Popof
I hav a mobo with the same NIC, I use it on a FreeNAS box that's runing a
version based on FreeBSD 6.3.
In order to make the NIC work i had to compile the drivers from realtek with
an other FreeBSD box and load the module on startup.
But data transfer from / to my FreeNAS box are slow.

Anyone had the same problem with this NIC / Realtek drivers?
Did someone used the drivers from FreeBSD 7.1 with (or without) FreeNAS ?
Does the transfer speed are correct ?

2008/10/1 cpghost <[EMAIL PROTECTED]>

> On Tue, Sep 30, 2008 at 10:26:14PM -0600, Andrew Falanga wrote:
> > On Mon, Sep 22, 2008 at 8:58 PM, Sebastian <[EMAIL PROTECTED]> wrote:
> > > Andrew Falanga wrote:
> > >>
> > >> On Saturday 20 September 2008 12:14:57 Sebastian wrote:
> > >>
> > >>>
> > >>> Da Rock wrote:
> > >>>
> > 
> >  I have used the compiled driver on 6.3 with success- but then I've
> used
> >  the driver linked in a post to drivers list. 7.0 is a no go.
> > 
> > >>>
> > >>> I tried to compile the current OEM Realtek driver under (v176) on
> fbsd
> > >>> 6.3, but couldn't get it to build. My foo is a little thin here. :)
> > >>>
> > >>>
> > >>
> > >> Where did you get this OEM driver?
> > >>
> > >
> > > The oem driver can be found here:
> > >
> > >
> http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false
> > >
> > > It builds just fine on 6.3, once I read the file manual on how to build
> a
> > > kernel module.
> > >
> > > So far no problems running it with a fair amount of traffic.
> >
> > Awesome!  Thanks.  If I've been understanding another thread on here,
> > it sounds like there's a FreeBSD driver coming in 7.1.
>
> Just for the record: the re(4) driver on my FreeBSD 7.1-PRERELEASE #0:
> Fri Sep 26 14:43:33 CEST 2008 (both i386 and amd64) now runs like a
> charm on a RealTek 8111C on-board NIC (at least with 100baseTX, I didn't
> test with Gigabit):
>
> re0:Ethernet> port 0xe800-0xe8ff mem 0xfdfff000-0xfdff,
>  0xfdfe-0xfdfe irq 17 at device 0.0 on pci2
> re0: Chip rev. 0x3c00
> re0: MAC rev. 0x0020
> miibus0:  on re0
> rgephy0:  PHY 1 on miibus0
> rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
>  1000baseT-FDX, auto
>
> $ ifconfig re0
> re0: flags=8843 metric 0 mtu 1460
> options=389bWOL_UCAST,WOL_MCAST,WOL_MAGIC>
> ether 00:21:85:XX:YY:ZZ
>inet6 fe80::221:85ff:feXX:YYYZZ%re0 prefixlen 64 scopeid 0x1
>inet 192.168.254.60 netmask 0xff00 broadcast 192.168.254.255
> media: Ethernet autoselect (100baseTX )
>status: active
>
> $ lspci -v
>
> (...)
>
> 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B
> PCI Express Gigabit Ethernet controller (rev 02)
>Subsystem: Micro-Star International Co., Ltd. Unknown device 501c
>Flags: bus master, fast devsel, latency 0, IRQ 17
>I/O ports at e800
>Memory at fdfff000 (64-bit, prefetchable)
>Memory at fdfe (64-bit, prefetchable)
>Expansion ROM at feaf [disabled]
>Capabilities: [40] Power Management version 3
>Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+
>   Queue=0/1 Enable-
>Capabilities: [70] Express Endpoint, MSI 01
>Capabilities: [b0] MSI-X: Enable- Mask- TabSize=2
>Capabilities: [d0] Vital Product Data 
>
> > Andy
> >
> > --
> >  A: Because it messes up the order in which people normally read text.
> > Q: Why is it such a bad thing?
> > A: Top-posting.
> > Q: What is the most annoying thing on usenet and in e-mail?
>
> -cpghost.
>
> --
> Cordula's Web. http://www.cordula.ws/
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


LG combo drive and installation: drive not found

2008-10-02 Thread Giuseppe Pagnoni
Dear FreeBSD experts,

I am trying to install FreeBSD 7.0 on a new i386 machine with no OS
installed yet.  I start the install process with the 1st CD of the
distribution, and I go through the partition phase with no problem.
However, when I get to the point where I select the installation media
(CD/DVD) it says that it cannot find the CD/DVD.

I read on the FAQ list on the FreeBSD site that this can happen when
the drive is configured as a slave with no master.  So I opened up the
box, and I saw that the drive has its own ATAPI/IDE cable/slot on the
motherboard and the jumpers on  the drive are set as MASTER.

The drive is a new LG combo drive, I believe GH22LP20 or something close to it.

I also tried to install Ubuntu and it works fine (but I really would
like FreeBSD!).


Any help or suggestion will be highly appreciated,

thanks in advance

  giuseppe

-- 
Dip. Scienze Biomediche
Sezione Fisiologia
Univ. di Modena e Reggio Emilia
Via Campi 287
I-41100 Modena, Italy
Tel: +39-059-205-5742
Fax: +39-059-205-5363
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Freeing an mbuf cluster

2008-10-02 Thread Yony Yossef
Hi All,

I'm trying to manually build an mbuf chain with clusters in various sizes.
I'm doing it using the MGETHDR and MEXTADD macros, it works fine.
Now I'm looking for the simplest way to free an mbuf cluster, since I want
to free the clusters seperately. This function will be given as a parameter
to MEXTADD.

Is there a simple command like 'free(buf)' to free an mbuf cluster?

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


Re: Best way to back up mysql database

2008-10-02 Thread Matthew Seaman

-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Sebastian Tymków wrote:
| Hello,
| 
| You can store whole db files too. It's faster to run database from scratch

| than use mysqldump and mysql "source".

Um... no. In general you cannot do this, and it is exceedingly irresponsible to
suggest such a thing.  The *only* way this would ever be workable is if you shut
down MySQL completely while your backup process was running. For anything other
than a pissant little hobbyist DB that does no real work, that idea is just 
going
to be a non-starter.

If MySQL is running, then there is no guarantee that the contents of any disk
file has been properly synched with the in-memory working copy of the data.
Basically what you'ld be copying off the disk drive will be full of
inconsistencies and hence useless as a backup.  This is why programs like
mysqldump(1) exist.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   Flat 3

~  7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
~  Kent, CT11 9PW, UK
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREDAAYFAkjkhLYACgkQ3jDkPpsZ+VYlrQCgs+tBSJfxa8cKHF+oYsu5Cai2
qZEAoJ6lZupzjapi9ugrE20Jp6Ol1xxj
=PMs9
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


vbox building and freebsd

2008-10-02 Thread Desmond Chapman

I'm posting this to two mailing lists because of the environment.

#  /home/moleque/VirtualBox-2.0.0/./configure
Checking for environment: Determined build machine: freebsd.amd64, target 
machine: freebsd.amd64, OK.
Checking for kBuild: found, OK.
Checking for gcc: found version 4.2.1, OK.
Checking for as86: found version 0.16.17, OK.
Checking for bcc: found version 0.16.17, OK.
Checking for iasl: found version 20070320, OK.
Checking for xslt: found, OK.
Checking for pthread: found, OK.
/libexec/ld-elf.so.1: Shared object "libc.so.6" not found, required by "kmk_sed"
Checking for libxml2: /libexec/ld-elf.so.1: Shared object "libc.so.6" not 
found, required by "kmk_sed"

  xml2 not found at -L/usr/local/lib -lxml2   -lpthread  or xml2 headers not 
found
  Check the file /usr/home/moleque/sdk/bindings/configure.log for detailed 
error information.


===>  Installing for libxml2-2.6.32
===>   libxml2-2.6.32 depends on executable: pkg-config - found
===>   Generating temporary packing list
===>  Checking if textproc/libxml2 already installed
===>   libxml2-2.6.32 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 textproc/libxml2
  without deleting it first, set the variable "FORCE_PKG_REGISTER"
  in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/ports/textproc/libxml2.


There seems to be a conflict here.


I also want to post a patch sent to me for bin86. I don't know the original 
source but would like to see it added. It will help x86 builds on amd64 hosts.  
I was asked to share it.

from:walt ([EMAIL PROTECTED])

"Desmond Chapman wrote:
> Thanks for offering the help. How do I apply the patch that you sent?
 
My pleasure.  The 'patch' program has a zillion confusing options because
it has morphed many times from its original incarnation, but the '-p' flag
is the main one to understand.
 
I didn't make the patch I posted, but this is how I would have done it:
 
#cd /tmp (or wherever you prefer)
#tar -xvzf /path/to/bin86-0.16.17.tar.gz
#cd bin86-0.16.17  (customary to generate patches from the top directory)
#cp ld/x86_aout.h ld/x86_aout.h.orig  (the usual naming, but arbitrary)
#vi ld/x86_aout.h   (make the needed changes and save them)
#diff -u ld/x86_aout.h.orig ld/x86_aout.h > /tmp/mynewpatch
 
Now, look at the beginning of mynewpatch:
 
--- ld/x86_aout.h.orig  2003-01-28 17:17:14.0 -0500
+++ ld/x86_aout.h   2005-05-07 22:40:05.0 -0400
 
That's important because it tells you I made the patch from the top of
the source directory, but that's a tradition that not everyone obeys.
 
Applying a patch is the mirror image of making a patch, so you need to
know where to be in the source directory before you apply it.  Hence,
the -p flag is critical.
 
This is how I would apply this particular patch:
 
#cd /tmp(see the mirror image process already?)
#tar -xvzf /path/to/bin86-0.16.17.tar.gz
#cd bin86-0.16.17
#patch -p0 < /path/to/mynewpatch  (there's that -p flag at last!)
 
That -p0 tells 'patch' that you are now in the same directory where
the patch was first generated.  If you instead chose to be in the
/tmp/bin86-0.16.17/ld directory when applying the patch, you would
use -p1 instead of -p0.
 
That's just a clue. You need to read the patch manpage for the rest!
 
Please do pass this post on to anyone/everyone you think needs help.
That's what opensource is all about.  Let me know if you're still
confused."


On my own behalf, forgive me if I am a bit confusing; but, I am diving head 
first into a development  environment I have little experience with.

How do I solve the xml2 conflict listed above the patch?






 




_
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mysql rc script failure - correction: most installed rc scripts not running manually

2008-10-02 Thread Jonathan McKeown
On Thursday 02 October 2008 01:59:18 Da Rock wrote:
> On Wed, 2008-10-01 at 12:53 +0200, Erik Trulsson wrote:
> > On Wed, Oct 01, 2008 at 08:39:47PM +1000, Da Rock wrote:
> > >
> > > So are you saying I can't start a script manually without enabling it
> > > in rc.conf? I was not under that impression... I thought it could be
> > > started manually for testing before setting it for automatic startup-
> > > based on my reading in the handbook and man pages.
> >
> > Yes, you can.  Use forcestart/forcestop instead of start/stop when
> > running the rc script if you do not have it enabled in rc.conf.  This is
> > documented in rc(8) (and is very easily overlooked if you don't know what
> > you are looking for.)
>
> Well thank you both for that piece of information, I had overlooked
> that. I did end up using it that way, but I was still unaware that it
> was mandatory.

The problem with forcestart is that it ignores any errors that may occur. The 
better option for a manual start is onestart, which simply bypasses the test 
for the option being enabled but still fails on any other error (missing 
dependencies, startup problems etc).

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


Re: Cannot create custom FreeBSD 7.0 install CD for serial console

2008-10-02 Thread Jonathan McKeown
On Wednesday 01 October 2008 22:25:21 Carl wrote:
> Jeremy Chadwick wrote:
> > On Wed, Oct 01, 2008 at 02:41:03AM -0700, Carl wrote:
> >> I've been trying to create a modified FreeBSD 7.0 install CD that will
> >> allow me to do installations entirely via the serial console on a
> >> headless system. Lots of digging on the Internet, reading the handbook,
> >> and I've gotten nowhere fast.
> >
> > Try this:
> >
> > http://jdc.parodius.com/freebsd/pxeboot_serial_install.html
>
> I was already aware of that solution, but it's not for me. There are
> times when I need to do the install and setting up a DHCP server et al
> is not viable. Installing FreeBSD via the network has no benefits for me
> and I will not be trying to install remotely. All I need is to be able
> to do a simple install using the local serial console because a keyboard
> and monitor is not practical in the situation. Can anyone tell me where
> the mistake is in my process?

Look back through the list archives: Martin McCormick and I had a long 
discussion about this about a year ago (I think at least some of it ended up 
on this list).

Here's an extract from one of the messages:

On a system running 6.2-RELEASE, with a 6.2-RELEASE Disc 1 in the CD drive but 
not mounted:

mkdir serialcd

tar xvfC /dev/acd0 serialcd

These two commands created a directory tree in serialcd containing most of the 
contents of the CD. There was a ``tar ignoring out-of-order file'' error, and 
when I mounted the CD and ran

diff -qr  /cdrom serialcd

it reported that RELNOTES.TXT differed - in fact the version in the serialcd 
directory turned out to have zero length. [I suspect you could probably do 
this comparison quicker with mtree, and I never did bother to fix it or find 
out why it was happening]

I edited serialcd/boot/loader.conf to include the line

console="comconsole"

I then ran

mkisofs -J -r -b boot/cdboot -no-emul-boot -o serialcd.iso serialcd

and got an ISO image, serial.iso, which is about 600MB.

The only drawback with this method is that the serial console only cuts in 
just before the boot menu. I suspect that if you wanted to have a serial 
console for every stage of the boot you would need to mess about with the 
ramdisk image on the CD.

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