A general sed question

2009-10-07 Thread David Allen
I keep bumping up against this, so I thought I'd throw this question out
to those who understand sed better than I do.

What I'm trying to do is to clean up the contents of some files
(/sys/i386/conf/GENERIC would be a good example) to get more readable
diffs.  To that end, I'm trying to use sed to

 - delete commented lines
 - remove inline comments
 - remove trailing spaces and/or tabs
 - delete blank lines, and/or lines containing just spaces and/or tabs
 - expand tabs

Thanks!
___
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: sound enablement on an HP CQ60-419WM

2009-10-07 Thread Bernt Hansson

Henry Olyer said the following on 2009-10-07 03:08:

So I want to show a movie;

How do I make sound work?  I'll be using mplayer.


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sound-setup.html
___
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


Howto: ethernet card on dell M6300

2009-10-07 Thread Chris Stankevitz
I was saddened to find that my ethernet card did not work on my FreeBSD 7.2 
machine.  The bge driver in the kernel did not support the broadcom 5756ME.  
Here is how I got it to work:

1. Set my machine up to compile the kernel (see section 8.5 of manual)

2. Edit /usr/src/sys/dev/bge/if_bgereg.h.  Add a definition for 
BCOM_DEVICEID_BCM5756ME with the value 0x1674 after BCOM_DEVICEID_BCM5755M:
#define BCOM_DEVICEID_BCM5755M  0x1673
#define BCOM_DEVICEID_BCM5756ME 0x1674
#define BCOM_DEVICEID_BCM5780   0x166A

3. Edit /usr/src/sys/dev/bge/if_bge.c.  Add a reference to 
BCOM_DEVICEID_BCM5756ME after BCOM_DEVICEID_BCM5755M:
{ BCOM_VENDORID,BCOM_DEVICEID_BCM5755M },
{ BCOM_VENDORID,BCOM_DEVICEID_BCM5756ME },
{ BCOM_VENDORID,BCOM_DEVICEID_BCM5780 },

4. Compile and install the kernel, and reboot

5. Configure the card using sysinstall

Chris


  
___
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


/ almost out of space just after installation

2009-10-07 Thread Chris Stankevitz
Hello,

I just installed FreeBSD. After I installed it, I was surprised to find only 
26M of space on /.  I used the auto-defaults during the Disklabel portion of 
the install.

[cstankev...@crs-m6300 ~]$ df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad4s1a496M430M 26M94%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ad4s1e496M 14K456M 0%/tmp
/dev/ad4s1f113G1.9G102G 2%/usr
/dev/ad4s1d2.9G7.9M2.6G 0%/var

Q1: Is 26M free space on / after installing FreeBSD normal?

Q2: Will I be able to install GNOME, Firefox, download 30 MB of files, and 
place them on my GNOME dekstop?  (I believe the desktop is located at 
/home/cstankevitz/.desktop aka on the root partition where there is only 26M of 
free space)

Q3: Which changes, if any, should I make to my system?

Thank you,

Chris


  
___
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: / almost out of space just after installation

2009-10-07 Thread Olivier Nicole
Hi,

 Q1: Is 26M free space on / after installing FreeBSD normal?

That is not the right question to ask :) The question would be is it
normal that / is using 430M?. It depemds what you have in / file
system. After instal, I have 271M used, but for example, my user home
directory is on a separate file system.

 Q2: Will I be able to install GNOME, Firefox, 

Yes, the installed software goes to /usr

 download 30 MB of
 files, and place them on my GNOME dekstop?  (I believe the desktop
 is located at /home/cstankevitz/.desktop aka on the root partition
 where there is only 26M of free space)

No because you have your home directory in the root file system and
there is only 36 MB left, so you cannot use 30MB.

 Q3: Which changes, if any, should I make to my system?

Reinstall with sensible partitioning; for a desktop machine I'd use:

/2GB
/usr 20~30GB
/var 2GB
/tmp 1GB
/home the rest

On the servers I have, have a maximum of 10GB used on the busiest
machine, including a full buildworld/buildkernel.

Best regards,

Olivier
___
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: / almost out of space just after installation

2009-10-07 Thread Lars Eighner

On Tue, 6 Oct 2009, Chris Stankevitz wrote:


Hello,




I just installed FreeBSD. After I installed it, I was surprised to find
only 26M of space on /.  I used the auto-defaults during the Disklabel
portion of the install.

[cstankev...@crs-m6300 ~]$ df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad4s1a496M430M 26M94%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ad4s1e496M 14K456M 0%/tmp
/dev/ad4s1f113G1.9G102G 2%/usr
/dev/ad4s1d2.9G7.9M2.6G 0%/var

Q1: Is 26M free space on / after installing FreeBSD normal?


Goodness! What version did you install?


Q2: Will I be able to install GNOME, Firefox, download 30 MB of files, and
place them on my GNOME dekstop?  (I believe the desktop is located at
/home/cstankevitz/.desktop aka on the root partition where there is only
26M of free space)


The default installation used to make /home a symbolic link to
/usr/home.


Q3: Which changes, if any, should I make to my system?


Move /home to /usr/home and create a symbolic link /home - /usr/home

That should give you some breathing room in / unless you have the bad habit
of running as root and crud accumulates in /root or you keep several
old kernels.


--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
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: / almost out of space just after installation

2009-10-07 Thread unix.hacker
On Wed, 7 Oct 2009 02:57:27 -0500 (CDT)
Lars Eighner luvbeas...@larseighner.com wrote:
*SNIP*
 That should give you some breathing room in / unless you have the bad
 habit of running as root and crud accumulates in /root or you keep
 several old kernels.


/ and /root should be cleaned as you said, but I don't ever change the
size of the / partitions and I personally think they are perfectly
sized.

I'm thinking the person who asked came from Linux where it's common,
and perfectly fine, I might add, to have just the / and /swap
partitions. This is perfectly fine, but FreeBSD does more work for you
without you having to set up partitions yourself. It keeps busy file
systems from bleeding into the ones where the systems keeps its bins. 

Anyway, I use both Linux and BSD, and I don't understand quite so well
why someone said this person couldn't keep things on their desktop,
when that stuff is all on /usr

You're partitions are fine, and using root for everything and filling
up that file system... heh, you could do worse using root that often.

Using everything as root is a lot like Heroin; You might like it so
much you want to do it all the time because NOTHING is holding you
back... But, you might also ruin your life BECAUSE nothing is holding
you back. Every time you use it (root, Heroin) you're risking your
ass ;)


___
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: A general sed question

2009-10-07 Thread Nerius Landys
Uh, I know I'm stating the obvious, but you might try these 2
techniques to enhance your diff experience:

1. Use diff -w.
2. Do cat filename | sort  filename.sorted for both files you are
diffing, and then compare both sorted files.
___
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: FBSD 7.2 - ports blocked but no firewall

2009-10-07 Thread Oliver Fromme
Gene f...@bomgardner.net wrote:
  On Tue, 6 Oct 2009 11:05:19 -0700, Chris Cowart wrote
   Gene wrote:
I'm running 7.2 GENERIC and installed the unrealirc port. I've started 
it up 
and can connect from localhost just fine. But when attempting to connect 
from 
the outside world (eg. from another box on the lan) I get connection 
refused.

I've tried both with and without ipfilter running (with appropriate 
rule).
Other ports are reachable including a non-standard port used for ssh.

The question: Could there be any reason that port 6667 might be blocked? 
(Unrealircd questions can be taken up elsewhere).
   
   It's possible you've configured Unrealircd to only listen on 
   localhost and not on *.
   
   Look for something like:
   
   | listen *:6697
   | {
   | ...
   | };
   
   And make sure it's * and not 127.0.0.1.
  
  Checked and it's correct.

Please check the output from this command:

sockstat -l | grep :6667

It will tell you if the daemon is listening on localhost
only or on all interfaces.  This will narrow done the
cause of the problem:  If the daemon listens on localhost,
then it's a configuration problem with that daemon.
If it listens on all interfaces (*), then the problem
is somewhere else, e.g. a packet filter (on the server or
client side, or somewhere between), or maybe a typo when
starting the client (wrong port number or address).

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

We will perhaps eventually be writing only small modules which are identi-
fied by name as they are used to build larger ones, so that devices like
indentation, rather than delimiters, might become feasible for expressing
local structure in the source language. -- Donald E. Knuth, 1974
___
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: / almost out of space just after installation

2009-10-07 Thread Jonathan Chen
On Tue, Oct 06, 2009 at 11:28:00PM -0700, Chris Stankevitz wrote:
 Hello,
 
 I just installed FreeBSD. After I installed it, I was surprised to find only 
 26M of space on /.  I used the auto-defaults during the Disklabel portion of 
 the install.
 
 [cstankev...@crs-m6300 ~]$ df -h
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/ad4s1a496M430M 26M94%/
 devfs  1.0K1.0K  0B   100%/dev
 /dev/ad4s1e496M 14K456M 0%/tmp
 /dev/ad4s1f113G1.9G102G 2%/usr
 /dev/ad4s1d2.9G7.9M2.6G 0%/var
 
 Q1: Is 26M free space on / after installing FreeBSD normal?
 

The amount used (ie: 430M) looks about right. On my FreeBSD-7.2-STABLE/amd64,
running a GENERIC kernel with a minimal /etc, my / filesystem is using
443M. However, this has a /boot/kernel and a /boot/kernel.old, both of
which chews up 210M each.

Cheers.
-- 
Jonathan Chen j...@chen.org.nz
--
  If you're right 90% of the time, why quibble about the remaining 3%?
___
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: A general sed question

2009-10-07 Thread Oliver Fromme
David Allen the.real.david.al...@gmail.com wrote:
  I keep bumping up against this, so I thought I'd throw this question out
  to those who understand sed better than I do.
  
  What I'm trying to do is to clean up the contents of some files
  (/sys/i386/conf/GENERIC would be a good example) to get more readable
  diffs.  To that end, I'm trying to use sed to
  
   - delete commented lines
   - remove inline comments
   - remove trailing spaces and/or tabs
   - delete blank lines, and/or lines containing just spaces and/or tabs
   - expand tabs

I recommend to use the -Bb options of diff.  They cause diff
to ignore blank lines and any changes in the amount of white
space (including tabs).  You can also use -w to ignore *all*
white space, but note that foo bar and foobar are then
considered equal, which might not be what you want.

So only the removal of comments remains:

sed 's/#.*//'

That will remove all comments.  Afterwards, commented lines
are empty, so the -B option of diff will ignore them, so you
don't have to remove them explicitly.

When using zsh as your shell, you can use a nice feature
called process substitution, so you don't have to create
temporary files:

diff -Buw (sed 's/#.*//' GENERIC) (sed 's/#.*//' MYKERNEL)

I think bash has a similar feature, but I don't know the
syntax, so please see the manpage if you're a bash user.

If you need to do that oftem, it's worth to create an alias
or shell function.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

People still program in C.  People keep writing shell scripts.  *Most*
people don't realize the shortcomings of the tools they are using because
they a) don't reflect on their workflows and they are b) too lazy to check
out alternatives to realize there is help. -- Simon 'corecode' Schubert
___
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: Howto: ethernet card on dell M6300

2009-10-07 Thread Oliver Fromme
Chris Stankevitz chrisstankev...@yahoo.com wrote:
  I was saddened to find that my ethernet card did not work on
  my FreeBSD 7.2 machine.  The bge driver in the kernel did not
  support the broadcom 5756ME.  Here is how I got it to work:
  
  1. Set my machine up to compile the kernel (see section 8.5
  of manual)
  
  2. Edit /usr/src/sys/dev/bge/if_bgereg.h.  Add a definition
  for BCOM_DEVICEID_BCM5756ME with the value 0x1674 after
  BCOM_DEVICEID_BCM5755M:
  
  #define BCOM_DEVICEID_BCM5755M  0x1673
  #define BCOM_DEVICEID_BCM5756ME 0x1674
  #define BCOM_DEVICEID_BCM5780   0x166A
  
  3. Edit /usr/src/sys/dev/bge/if_bge.c.  Add a reference to
  BCOM_DEVICEID_BCM5756ME after BCOM_DEVICEID_BCM5755M:
  
  { BCOM_VENDORID,BCOM_DEVICEID_BCM5755M },
  { BCOM_VENDORID,BCOM_DEVICEID_BCM5756ME },
  { BCOM_VENDORID,BCOM_DEVICEID_BCM5780 },
  
  4. Compile and install the kernel, and reboot
  
  5. Configure the card using sysinstall

Would you please send a problem report containing
your patches?  You can simply use the send-pr(1) tool,
or use the online web form.

That way your patches won't get lost.  I think that the
developers of the NIC drivers aren't always reading the
questions@ mailing list.

Thank you very much!

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

Share your knowledge.  It is a way to achieve immortality. -- The Dalai Lama
___
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: / almost out of space just after installation

2009-10-07 Thread Oliver Fromme
Chris Stankevitz chrisstankev...@yahoo.com wrote:
  I just installed FreeBSD. After I installed it, I was surprised to
  find only 26M of space on /. I used the auto-defaults during the
  Disklabel portion of the install.
  
  [cstankev...@crs-m6300 ~]$ df -h
  Filesystem SizeUsed   Avail Capacity  Mounted on
  /dev/ad4s1a496M430M 26M94%/
  devfs  1.0K1.0K  0B   100%/dev
  /dev/ad4s1e496M 14K456M 0%/tmp
  /dev/ad4s1f113G1.9G102G 2%/usr
  /dev/ad4s1d2.9G7.9M2.6G 0%/var
  
  Q1: Is 26M free space on / after installing FreeBSD normal?

It depends on the FreeBSD version, and whether you installed
the kernel with debug symbols.  430 MB space used in the
root file system isn't completely uncommon.

Nowadays I recomment to spend 1 GB for the root file system,
especially if you plan to keep more than one kernel.

  Q2: Will I be able to install GNOME, Firefox, download 30 MB of
  files, and place them on my GNOME dekstop?  (I believe the desktop is
  located at /home/cstankevitz/.desktop aka on the root partition where
  there is only 26M of free space)

All third-party software goes to /usr, so there's no problem.

  Q3: Which changes, if any, should I make to my system?

Make sure that /home is a symlink to /usr/home.
You already have /var and /tmp on separate partitions,
which is good.

Personally I would grow the root file system to 1 GB.
It's not strictly necessary, but it's better to have
some more space there, especially during system updates,
e.g. when updating the kernel you want to keep a copy
of the old kernel.

By the way, I often don't create /tmp as a disk partition,
but as a memory disk.  This is unrelated to the size of
the root file system, though.  An entry like this in
/etc/fstab will do it:

md   /tmp   mfs   rw,nosuid,-s500m,async   0   0

Afterwards you can use the disk partition previously used
for /tmp for a different purpose (e.g. for swap, or add
it do the preceding partition which would be /var in your
case, I think.)

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

Blogging:  Never before have so many people
with so little to say said so much to so few.
___
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


dump_snapshot file

2009-10-07 Thread Philip Jocks

Hi,

I had a file /usr/.snap/dump_snapshot being about 15GB in size, which  
I removed because the partition was filling up.
The file's date was always rather current, so I'm wondering, what it  
was for?
I did do a level 0 dump with -0 and -Lau parameters a few weeks ago  
and always do dumps on other boxes, but never saw a file in the .snap  
directory growing. For the other partitions, there are no such files,  
that's why I'm wondering.

Maybe someone can shed some light on this for me.

Thanks!

Philip



___
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: / almost out of space just after installation

2009-10-07 Thread Robert Huff

Jonathan Chen writes:
   I just installed FreeBSD. After I installed it, I was surprised
to find only 26M of space on /.  I used the auto-defaults during
the Disklabel portion of the install. 
   
   [cstankev...@crs-m6300 ~]$ df -h
   Filesystem SizeUsed   Avail Capacity  Mounted on
   /dev/ad4s1a496M430M 26M94%/
   devfs  1.0K1.0K  0B   100%/dev
   /dev/ad4s1e496M 14K456M 0%/tmp
   /dev/ad4s1f113G1.9G102G 2%/usr
   /dev/ad4s1d2.9G7.9M2.6G 0%/var
   
   Q1: Is 26M free space on / after installing FreeBSD normal?
   
  
  The amount used (ie: 430M) looks about right. On my
  FreeBSD-7.2-STABLE/amd64, running a GENERIC kernel with a minimal
  /etc, my / filesystem is using 443M. However, this has a
  /boot/kernel and a /boot/kernel.old, both of which chews up 210M
  each.

Agreed.
Other minor suggestions to the OP: check the contents of /root,
and move anything large that can live elsewhere and create a
symlink.  And somethings can just be deleted: if root uses
preferred web browser two or three times a year, then a large
cache is probably superfluous.
Look for any .core files, which can usually be deleted.

It is my understanding that - providing /tmp is on a separate
partition - / should receive very little traffic, and the size
should stabilize quickly.


Robert Huff

___
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: Updating the ports collection

2009-10-07 Thread Daniel Bye
On Tue, Oct 06, 2009 at 09:07:07PM -0400, Chris Hill wrote:
 On Wed, 7 Oct 2009, Olivier Nicole wrote:
 
 Hi Chris,
 
 The FreeBSD handbook section 4.5.1 describes several methods for
 obtaining the ports collection including CVSup, Portsnap, and sysinstall.
 
 Section 4.5.1 also describes how to update the ports collection, but
 only for the CVSup and Portsnap methods.
 
 Q1: How do I update the ports collection after using sysinstall to
 obtain it?
 
 I cannot speak for postsnap, but for cvsup:
 
 csup works (almost?) the same as cvsup, and is in the base system 
 nowadays. I used to install cvsup, but now I only install fastest_cvsup; 
 it's just a utility to find the fastest server for you at the moment.
 
 Some may correct me, but I use a file that contains:
 
 *default tag=.
 *default host=cvsup2.jp.FreeBSD.org
 *default base=/var/db
 *default prefix=/usr
 *default release=cvs
 *default delete use-rel-suffix
 *default compress
 ports-all
 
 I do the same, and run csup as:
 
 csup -g -h `/usr/local/bin/fastest_cvsup -Q -c us` /etc/supfile.ports

You can set 

SUPHOST= `/usr/local/bin/fastest_cvsup -Q -c us`
SUPFLAGS= -g

in /etc/make.conf and save yourself some typing.

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpgwSQSo6iuQ.pgp
Description: PGP signature


Daily run reports

2009-10-07 Thread Aflatoon Aflatooni
Hi,
I am wondering what process generates the following reports:
security run output
daily run output
monthly run output

In my FreeBSD 6.3 I had these reports emailed to root, but I haven't recieved 
them in my new installation of FreeBSD 7.2.
Can I also get a similar report generated for Tripwire?

Thanks



___
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: Daily run reports

2009-10-07 Thread Glen Barber
Hi,

On Wed, Oct 7, 2009 at 1:05 PM, Aflatoon Aflatooni aaflato...@yahoo.com wrote:
 Hi,
 I am wondering what process generates the following reports:
 security run output
 daily run output
 monthly run output


You should see these lines in /etc/crontab:

# Perform daily/weekly/monthly maintenance.
1   3   *   *   *   rootperiodic daily
15  4   *   *   6   rootperiodic weekly
30  5   1   *   *   rootperiodic monthly

You can set the MAILTO environment variable in /etc/crontab to mail to
an alternate address if needed.


 In my FreeBSD 6.3 I had these reports emailed to root, but I haven't recieved 
 them in my new installation of FreeBSD 7.2.

You should, unless you have a modified /etc/periodic.conf

 Can I also get a similar report generated for Tripwire?


I'm not sure about tripwire, but it should either be handled by
rc.conf or periodic.conf.

-- 
Glen Barber
___
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: Daily run reports

2009-10-07 Thread Ed Jobs
On Wednesday 07 October 2009 16:05, Aflatoon Aflatooni wrote:
 Hi,
 I am wondering what process generates the following reports:
 security run output
 daily run output
 monthly run output
 
 In my FreeBSD 6.3 I had these reports emailed to root, but I haven't
  recieved them in my new installation of FreeBSD 7.2. Can I also get a
  similar report generated for Tripwire?
 
 Thanks
 
i can't login to my fbsd machine to check it out atm, but you could see the 
cron file that resides in /etc.
/etc/crontab or something that is. i'm pretty sure that those are called from 
in there

-- 
Real programmers don't document. If it was hard to write, it should be hard to 
understand.


signature.asc
Description: This is a digitally signed message part.


Re: dump_snapshot file

2009-10-07 Thread Warren Block

On Wed, 7 Oct 2009, Philip Jocks wrote:

I had a file /usr/.snap/dump_snapshot being about 15GB in size, which I 
removed because the partition was filling up.

The file's date was always rather current, so I'm wondering, what it was for?
I did do a level 0 dump with -0 and -Lau parameters a few weeks ago and 
always do dumps on other boxes, but never saw a file in the .snap directory 
growing. For the other partitions, there are no such files, that's why I'm 
wondering.

Maybe someone can shed some light on this for me.


man -P 'less +/-L' dump

explains it a bit.  The snapshot file is supposed to go away after dump 
completes, but in your case dump died or was killed before it unlinked 
the file.


On small filesystems, -L is quick enough to not make a noticeable 
difference.  /usr can be huge, and there's a long pause while it makes 
that snapshot and doesn't seem to be doing anything useful.


-Warren Block * Rapid City, South Dakota USA
___
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: Updating the ports collection

2009-10-07 Thread krad
2009/10/7 Daniel Bye freebsd-questi...@slightlystrange.org

 On Tue, Oct 06, 2009 at 09:07:07PM -0400, Chris Hill wrote:
  On Wed, 7 Oct 2009, Olivier Nicole wrote:
 
  Hi Chris,
  
  The FreeBSD handbook section 4.5.1 describes several methods for
  obtaining the ports collection including CVSup, Portsnap, and
 sysinstall.
  
  Section 4.5.1 also describes how to update the ports collection, but
  only for the CVSup and Portsnap methods.
  
  Q1: How do I update the ports collection after using sysinstall to
  obtain it?
  
  I cannot speak for postsnap, but for cvsup:
 
  csup works (almost?) the same as cvsup, and is in the base system
  nowadays. I used to install cvsup, but now I only install fastest_cvsup;
  it's just a utility to find the fastest server for you at the moment.
 
  Some may correct me, but I use a file that contains:
  
  *default tag=.
  *default host=cvsup2.jp.FreeBSD.org
  *default base=/var/db
  *default prefix=/usr
  *default release=cvs
  *default delete use-rel-suffix
  *default compress
  ports-all
 
  I do the same, and run csup as:
 
  csup -g -h `/usr/local/bin/fastest_cvsup -Q -c us` /etc/supfile.ports

 You can set

 SUPHOST= `/usr/local/bin/fastest_cvsup -Q -c us`
 SUPFLAGS= -g

 in /etc/make.conf and save yourself some typing.

 Dan
 you
 --
 Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \



the above way is good but this is the simplest as it requires no additional
programs or editing

csup -h cvsup.FreeBSD.org  /usr/share/examples/cvsup/ports-supfile


I use the following as its a bit faster

csup -h cvsup.uk.FreeBSD.org  /usr/share/examples/cvsup/ports-supfile

you can obviously insert your own country code
___
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: dump_snapshot file

2009-10-07 Thread Polytropon
On Wed, 7 Oct 2009 09:48:19 +0200, Philip Jocks pjli...@netzkommune.de wrote:
 Hi,
 
 I had a file /usr/.snap/dump_snapshot being about 15GB in size, which  
 I removed because the partition was filling up.
 The file's date was always rather current, so I'm wondering, what it  
 was for?

Maybe this file came from a background fsck? I noticed this on
one of my former systems that had background_fsck_enable=YES
and it ran once, but I changed the setting to =NO. The file
in question was present on the file systems checked.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: / almost out of space just after installation

2009-10-07 Thread krad
2009/10/7 Robert Huff roberth...@rcn.com


 Jonathan Chen writes:
I just installed FreeBSD. After I installed it, I was surprised
 to find only 26M of space on /.  I used the auto-defaults during
 the Disklabel portion of the install.
   
[cstankev...@crs-m6300 ~]$ df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad4s1a496M430M 26M94%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ad4s1e496M 14K456M 0%/tmp
/dev/ad4s1f113G1.9G102G 2%/usr
/dev/ad4s1d2.9G7.9M2.6G 0%/var
   
Q1: Is 26M free space on / after installing FreeBSD normal?
   
 
   The amount used (ie: 430M) looks about right. On my
   FreeBSD-7.2-STABLE/amd64, running a GENERIC kernel with a minimal
   /etc, my / filesystem is using 443M. However, this has a
   /boot/kernel and a /boot/kernel.old, both of which chews up 210M
   each.

 Agreed.
Other minor suggestions to the OP: check the contents of /root,
 and move anything large that can live elsewhere and create a
 symlink.  And somethings can just be deleted: if root uses
 preferred web browser two or three times a year, then a large
 cache is probably superfluous.
Look for any .core files, which can usually be deleted.

It is my understanding that - providing /tmp is on a separate
 partition - / should receive very little traffic, and the size
 should stabilize quickly.


Robert Huff

 ___
 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



if only we had zfs root as standard and none of this would be an issue. 8)
___
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: Daily run reports

2009-10-07 Thread Polytropon
On Wed, 7 Oct 2009 13:09:51 +, Glen Barber glen.j.bar...@gmail.com wrote:
 You should see these lines in /etc/crontab:
 
 # Perform daily/weekly/monthly maintenance.
 1   3   *   *   *   rootperiodic daily
 15  4   *   *   6   rootperiodic weekly
 30  5   1   *   *   rootperiodic monthly
 
 You can set the MAILTO environment variable in /etc/crontab to mail to
 an alternate address if needed.

Another way is to edit /etc/mail/aliases and forward mail
to root to your preferred account, e. g.

root: myuser

Note that recompiling sendmail's files is neccessary, and
sendmail needs to be restarted. It is explained at the top
of Makefile in the /etc/mail directory. It's quite easy. :-)





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


Apache server imap.so ssl_once_only_init error

2009-10-07 Thread David Southwell
Hi

Would anyone be willing to help me out of my misery - I need to solcve this 
one:
Thanks in advance

David


Apache22
server does not start

httpd-error.log reads:

[Wed Oct 07 16:03:17 2009] [warn] RSA server certificate is a CA certificate 
(BasicConstraints: CA == TRUE !?)
[Wed Oct 07 16:03:18 2009] [warn] RSA server certificate is a CA certificate 
(BasicConstraints: CA == TRUE !?)
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol 
ssl_onceonlyinit
___
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: / almost out of space just after installation

2009-10-07 Thread Polytropon
On Wed, 7 Oct 2009 15:39:52 +0100, krad kra...@googlemail.com wrote:
 if only we had zfs root as standard and none of this would be an issue. 8)

You can create one big / partition even on UFS. :-)


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Apache server imap.so ssl_once_only_init error

2009-10-07 Thread Chuck Swiger

Hi--

On Oct 7, 2009, at 8:11 AM, David Southwell wrote:
[Wed Oct 07 16:03:17 2009] [warn] RSA server certificate is a CA  
certificate

(BasicConstraints: CA == TRUE !?)
[Wed Oct 07 16:03:18 2009] [warn] RSA server certificate is a CA  
certificate

(BasicConstraints: CA == TRUE !?)
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined  
symbol

ssl_onceonlyinit


At a guess, you are trying to use self-signed certificates, and you  
generated a CA certificate to sign them, but are trying to use that CA  
cert directly instead of creating a new x.509 keypair, CSR, and  
signing that with your CA cert or have a Verisign, enTrust,  
openca.org, etc.


Regards,
--
-Chuck

___
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: Apache server imap.so ssl_once_only_init error

2009-10-07 Thread David Southwell

 Chuck Swiger wrote:
  Hi--
 
  On Oct 7, 2009, at 8:11 AM, David Southwell wrote:
  [Wed Oct 07 16:03:17 2009] [warn] RSA server certificate is a CA
  certificate
  (BasicConstraints: CA == TRUE !?)
  [Wed Oct 07 16:03:18 2009] [warn] RSA server certificate is a CA
  certificate
  (BasicConstraints: CA == TRUE !?)
  /libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined
  symbol
  ssl_onceonlyinit
 
  At a guess, you are trying to use self-signed certificates, and you
  generated a CA certificate to sign them, but are trying to use that CA
  cert directly instead of creating a new x.509 keypair, CSR, and signing
  that with your CA cert or have a Verisign, enTrust, openca.org, etc.
 
  Regards,
 
 I would guess that the imap.so symbol issue is what is causing Apache to
 die...
 
 The certificate-related messages are warnings and should not make it fatal.
 
 Markiyan.
 

I am pretty sure that is the case. The imap  issue was around before I created 
the certificates. Here is a longer extract from the httpd-error.log

/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol 
ssl_onceonlyinit
[Wed Oct 07 13:58:39 2009] [warn] Init: Session Cache is not configured [hint: 
SSLSessionCache]
[Wed Oct 07 13:58:40 2009] [warn] module php5_module is already loaded, 
skipping
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol 
ssl_onceonlyinit
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol 
ssl_onceonlyinit
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol 
ssl_onceonlyinit
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol 
ssl_onceonlyinit
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol 
ssl_onceonlyinit
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol 
ssl_onceonlyinit
[Wed Oct 07 14:24:01 2009] [warn] Init: Session Cache is not configured [hint: 
SSLSessionCache]
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol 
ssl_onceonlyinit
[Wed Oct 07 14:28:32 2009] [warn] Init: Session Cache is not configured [hint: 
SSLSessionCache]
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol 
ssl_onceonlyinit
Checked
[Wed Oct 07 14:29:12 2009] [warn] Init: Session Cache is not configured [hint: 
SSLSessionCache]
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol 
ssl_onceonlyinit
[Wed Oct 07 15:54:47 2009] [warn] Init: Session Cache is not configured [hint: 
SSLSessionCache]
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol 
ssl_onceonlyinit
[Wed Oct 07 16:03:17 2009] [warn] RSA server certificate is a CA certificate 
(BasicConstraints: CA == TRUE !?)
[Wed Oct 07 16:03:18 2009] [warn] RSA server certificate is a CA certificate 
(BasicConstraints: CA == TRUE !?)
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined symbol 
ssl_onceonlyinit


From this you can see the Session Cache not figured problem went away after I 
created the certs but I am stioll left with the imap.so proble. which seems to 
be the cause of the fatal failure.

Dpoes anyone know how to fix that?

David
___
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: Apache server imap.so ssl_once_only_init error

2009-10-07 Thread Markiyan Kushnir
I would guess that the imap.so symbol issue is what is causing Apache to 
die...


The certificate-related messages are warnings and should not make it fatal.

Markiyan.

Chuck Swiger wrote:

Hi--

On Oct 7, 2009, at 8:11 AM, David Southwell wrote:
[Wed Oct 07 16:03:17 2009] [warn] RSA server certificate is a CA 
certificate

(BasicConstraints: CA == TRUE !?)
[Wed Oct 07 16:03:18 2009] [warn] RSA server certificate is a CA 
certificate

(BasicConstraints: CA == TRUE !?)
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so: Undefined 
symbol

ssl_onceonlyinit


At a guess, you are trying to use self-signed certificates, and you 
generated a CA certificate to sign them, but are trying to use that CA 
cert directly instead of creating a new x.509 keypair, CSR, and signing 
that with your CA cert or have a Verisign, enTrust, openca.org, etc.


Regards,

___
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: Daily run reports

2009-10-07 Thread Warren Block

On Wed, 7 Oct 2009, Polytropon wrote:


On Wed, 7 Oct 2009 13:09:51 +, Glen Barber glen.j.bar...@gmail.com wrote:

You should see these lines in /etc/crontab:

# Perform daily/weekly/monthly maintenance.
1   3   *   *   *   rootperiodic daily
15  4   *   *   6   rootperiodic weekly
30  5   1   *   *   rootperiodic monthly

You can set the MAILTO environment variable in /etc/crontab to mail to
an alternate address if needed.


Another way is to edit /etc/mail/aliases and forward mail
to root to your preferred account, e. g.

root: myuser

Note that recompiling sendmail's files is neccessary,


To be more precise, rebuilding the aliases file.

and sendmail needs to be restarted. It is explained at the top of 
Makefile in the /etc/mail directory. It's quite easy. :-)


But 'newaliases' is easier yet.  Is restarting sendmail after newaliases 
really necessary?  I change aliases so rarely I've never really noticed.


-Warren Block * Rapid City, South Dakota USA
___
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: Apache server imap.so ssl_once_only_init error

2009-10-07 Thread Robert Huff

David Southwell writes:

  /libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so:
  Undefined symbol ssl_onceonlyinit

I look at this and ask (knowing very little about either) is
this a problem with Apache, or a problem with PHP?.


Robert huff

___
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: Apache server imap.so ssl_once_only_init error

2009-10-07 Thread David Southwell
 David Southwell writes:
   /libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so:
   Undefined symbol ssl_onceonlyinit
 
   I look at this and ask (knowing very little about either) is
 this a problem with Apache, or a problem with PHP?.
 
 
   Robert huff
 
I wish I darn well knew chuckles

Right now I am doing a portupgrade -frR mail/php5-imap in the hope that might 
sort it -- but there is no intelligence behind the initiative chuckles

David
___
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: Apache server imap.so ssl_once_only_init error

2009-10-07 Thread Michael Powell
Robert Huff wrote:

 
 David Southwell writes:
 
  /libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so:
  Undefined symbol ssl_onceonlyinit
 
 I look at this and ask (knowing very little about either) is
 this a problem with Apache, or a problem with PHP?.
 
 

Easy enough to see - comment out the imap.so module in 
/usr/local/etc/php/extensions.ini and see if Apache will start. If it does 
the problem is the imap module. A more generic way to drive this wedge is to 
temporarily comment out the LoadModule php5_module line from httpd.conf.

If it starts without this module it isn't Apache. Some PHP modules have 
dependencies in that they need the other modules loaded before they load. 
Try moving the imap.so line in extensions.ini to the bottom of the file so 
all the other crypt modules such as openssl, hash, mcrypt, etc are loaded 
first.

-Mike



___
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: Daily run reports

2009-10-07 Thread Glen Barber
On Wed, Oct 7, 2009 at 4:15 PM, Warren Block wbl...@wonkity.com wrote:
 On Wed, 7 Oct 2009, Polytropon wrote:

 On Wed, 7 Oct 2009 13:09:51 +, Glen Barber glen.j.bar...@gmail.com
 wrote:

 You should see these lines in /etc/crontab:

 # Perform daily/weekly/monthly maintenance.
 1       3       *       *       *       root    periodic daily
 15      4       *       *       6       root    periodic weekly
 30      5       1       *       *       root    periodic monthly

 You can set the MAILTO environment variable in /etc/crontab to mail to
 an alternate address if needed.

 Another way is to edit /etc/mail/aliases and forward mail
 to root to your preferred account, e. g.

        root: myuser

 Note that recompiling sendmail's files is neccessary,

 To be more precise, rebuilding the aliases file.

 and sendmail needs to be restarted. It is explained at the top of Makefile
 in the /etc/mail directory. It's quite easy. :-)

 But 'newaliases' is easier yet.  Is restarting sendmail after newaliases
 really necessary?  I change aliases so rarely I've never really noticed.


No, you do not need to restart sendmail with newaliases(1).

-- 
Glen Barber
___
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: Daily run reports

2009-10-07 Thread Polytropon
On Wed, 7 Oct 2009 16:42:41 +, Glen Barber glen.j.bar...@gmail.com wrote:
 No, you do not need to restart sendmail with newaliases(1).

True. According to man newaliases,

   Newaliases is identical to ``sendmail -bi''.

and per man sendmail,

   -biInitialize the alias database.

which says nothing about sendmail being restarted. Good to know! :-)


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: ion windows manager on FreeBSD

2009-10-07 Thread Carlos A. M. dos Santos
2009/10/6 Renato Botelho rbga...@gmail.com:
 On Fri, Oct 2, 2009 at 10:32 AM, Dmitry Marakasov amd...@amdmi3.ru wrote:
 * Mark Linimon (lini...@lonesome.com) wrote:

 The author orginally contacted us with a legal threat because we were
 not in compliance with the 28-day clause.  A long, acrimonious disucssion
 ensued.  In that discussion, the author was asked if we agree to meet
 that condition going forward, would you guarantee that this would remove
 any further legal threat? and he said yes ...

 for now.

 But that he reserved the right to change his mind later.

 *depending* on what we did or did not do in the future -- not just in
 adhering to the *existing clauses* like the significant clause or
 renamed clause -- both of which he mentioned would be part of any
 lawsuit.

 Legally indefensible?  Of course.  Would that prevent a lawsuit being
 filed?  No.  Anyone can sue anyone for anything.

 Well, if you insist I of course won't commit it. But the whole thing
 disappoints me greately, cause I was pretty sure at least FreeBSD
 developers won't be affected by a mere FUD. Do you honestly think
 the probability of Tuomo suing us is higher of, say, me suing, well,
 us?  And that anything will change by us not providing a port we
 have absolutely totally utterly 100% right to provide?  That is
 just silly.

 The port from now on is available here (removed from people.freebsd.org):
 http://mirror.amdmi3.ru/ports/ion3-20090110.port.tar

 You can start a fork of it, change its name, its license, and keep it as
 a separate project... people will use the same software with another
 name.

You can fork the code, rename it, whathever, but you can NOT change
the license without explicit permission from the original copyright
owner. That would be legally considered theft!

 Everybody will be happy and we won't have a Tuomo's software inside
 ports collection again.

It would be Tuomo's software anyway, regardless what you renamed it
to, and his ownership would still prevail. Feel free to dislike his
behavior but keep compliant to his rights unless you are whiling to
face a lawsuit.

-- 
My preferred quotation of Robert Louis Stevenson is You cannot
make an omelette without breaking eggs. Not because I like the
omelettes, but because I like the sound of eggs being broken.
___
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: Apache server imap.so ssl_once_only_init error

2009-10-07 Thread David Southwell
 Robert Huff wrote:
  David Southwell writes:
   /libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so:
   Undefined symbol ssl_onceonlyinit
 
  I look at this and ask (knowing very little about either) is
  this a problem with Apache, or a problem with PHP?.
 
 Easy enough to see - comment out the imap.so module in
 /usr/local/etc/php/extensions.ini and see if Apache will start. If it does
 the problem is the imap module. A more generic way to drive this wedge is
  to temporarily comment out the LoadModule php5_module line from
  httpd.conf.
 
 If it starts without this module it isn't Apache. Some PHP modules have
 dependencies in that they need the other modules loaded before they load.
 Try moving the imap.so line in extensions.ini to the bottom of the file so
 all the other crypt modules such as openssl, hash, mcrypt, etc are loaded
 first.
 
 -Mike
 
 
 
Mike you are right on the ball.

When I comment out the imap.so line in extensions.ini the server starts up 
normally. So now we have the culprit. That is after doing a portupgrade -frR 
mail/php5-imap.

The question is where do I go from here??

Thank you

David
___
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: windoz, how do i install it last

2009-10-07 Thread Jerry McAllister
On Tue, Oct 06, 2009 at 01:28:31PM +0200, Bertram Scharpf wrote:

 Hi,
 
 Am Dienstag, 06. Okt 2009, 07:05:23 -0400 schrieb Henry Olyer:
  So I have a FreeBSD system.
  Is their a way to install windoz?  Say, XP-pro?  Or whatever...
 
 Replace or dual boot? The standard FreeBSD boot manager offers
 a choice which of the slices 1-4 you want to boot from. Just
 install #...@% into the first slice and FreeBSD into the second.

You weren't listening.
The OP said FreeBSD is already in the first slice and wants to know
if MS-Win can be installed in a later slice - most presumably so
it will not be necessary to reinstall the FreeBSD.

jerry


 
 Bertram
 
 -- 
 Bertram Scharpf
 Stuttgart, Deutschland/Germany
 http://www.bertram-scharpf.de
 ___
 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-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


rsync include and exclude

2009-10-07 Thread Jay Hall

Ladies and Gentlemen,

I am using rsync to backup some information and I am having some  
problem with including and excluding directories.


I want to include everything in the user's mail directory and  
everything in the user's documents directory.  Everything else should  
be excluded.  And, it is possible to have multiple users on a single  
computer.


Following is what I am using for my include/exclude patterns.

+ /Users/*/Library/Mail/
+ /Users/*/Documents/
- /Users/*/Documents/*
- /Users/*/Library/*

This gives me close to the desired result.  However, there are some  
extra files included which I do not need to backup which are stored  
in /Users/username directory.


If I add -/Users/*, no files are backed up.

After reading the man pages and several examples, I thought I had a  
handle on this.  Any suggestions would be greatly appreciated.


Thanks,


Jay


___
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: / almost out of space just after installation

2009-10-07 Thread Chad Perrin
On Tue, Oct 06, 2009 at 11:28:00PM -0700, Chris Stankevitz wrote:
 
 Q2: Will I be able to install GNOME, Firefox, download 30 MB of files,
 and place them on my GNOME dekstop?  (I believe the desktop is located
 at /home/cstankevitz/.desktop aka on the root partition where there is
 only 26M of free space)

Are you sure your home directory is at /home?

What's the result of `ls -l /home`?  If it looks something like this:

lrwxr-xr-x  1 root  wheel  8 Sep  7 09:55 /home - usr/home

. . . everything should be fine.  FreeBSD places the home directory in
/usr by default, so instead of /home it's /usr/home, and creates a
symlink from /home to /usr/home for the sake of convenience.  Are you
sure that isn't what happened?

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpTvTGd7yu0o.pgp
Description: PGP signature


Re: ion windows manager on FreeBSD

2009-10-07 Thread Chad Perrin
On Wed, Oct 07, 2009 at 01:25:35PM -0300, Carlos A. M. dos Santos wrote:
 
 You can fork the code, rename it, whathever, but you can NOT change
 the license without explicit permission from the original copyright
 owner. That would be legally considered theft!

Incorrect.  It would be legally considered copyright infringement.
Copyright law is not property law, and both different laws *and*
different terms apply.  Theft is not a term legally applied to
copyright infringement -- at least, in any jurisdiction of which I'm even
vaguely aware of the state of copyright law.

That would be legally considered copyright infringement!

There.  I fixed it for you.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpZ8WykjV5jQ.pgp
Description: PGP signature


Re: Apache server imap.so ssl_once_only_init error

2009-10-07 Thread Michael Powell
David Southwell wrote:

 Robert Huff wrote:
  David Southwell writes:
   /libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so:
   Undefined symbol ssl_onceonlyinit
 
  I look at this and ask (knowing very little about either) is
  this a problem with Apache, or a problem with PHP?.
 
 Easy enough to see - comment out the imap.so module in
 /usr/local/etc/php/extensions.ini and see if Apache will start. If it
 does the problem is the imap module. A more generic way to drive this
 wedge is
  to temporarily comment out the LoadModule php5_module line from
  httpd.conf.
 
 If it starts without this module it isn't Apache. Some PHP modules have
 dependencies in that they need the other modules loaded before they load.
 Try moving the imap.so line in extensions.ini to the bottom of the file
 so all the other crypt modules such as openssl, hash, mcrypt, etc are
 loaded first.
 
 -Mike
 
 
 
 Mike you are right on the ball.
 
 When I comment out the imap.so line in extensions.ini the server starts up
 normally. So now we have the culprit. That is after doing a portupgrade
 -frR mail/php5-imap.
 
 The question is where do I go from here??

Hrmmm. Probably need to look into more details. I am running Apache-
event-2.2.13 here with PHP5-5.2.11 and extensions-5.2.11, with PHP running 
as FastCGI via the apache module mod_fcgid instead of mod_php. I presume you 
are just doing the normal mod_php method.

Upon thinking about it a little more, I'm guessing that when you tried 
relocating the extension=imap.so to the bottom of extensions.ini it had no 
effect. Sometimes this is an easy and quick answer when the problem is just 
load order. Another to consider is if you really do not require the imap 
module just leave it commented out, although this is not elegant as it does 
not attack the root source of the problem.

What I'm thinking (after looking at the actual error message again) is this 
is a build-time problem and not runtime. I believe that these kinds of 
symbol errors arise mostly from libraries being mismatched at build time.

To elaborate a little, I'm wondering if when you built mod_php at one point 
in time and then built the php5-extensions at a later time if they were not 
slightly different versions. Also, IIRC there was once a problem with the 
imap module in that it could not be used with the recode and yaz modules. I 
have the recode module present so I doubt it is a problem, but do not use 
the yaz module. Might look and see about yaz.

I suspect the core of the problem is that mod_php and the extensions are 
slightly out of sync with one another. A very sloppy thing to do would be to 
just remove all the PHP stuff, including mod_php, update the ports tree 
fresh and reinstall all of it at one time together. This may not be wise on 
a production server however, as this will entail downtime. As I said - 
sloppy, scattergun approach. I have done this a time or two, but don't 
really like doing it. YMMV

If mod_php and the extensions were built at different times, with maybe a 
ports tree update in between, they may need to be all recompiled so they all 
get linked correctly.

-Mike

P.S. - And the biggest assumption of all I'm making is that Apache was built 
with SSL support in the first place. A variable which should be eliminated.


 


___
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: Apache server imap.so ssl_once_only_init error

2009-10-07 Thread Michael Powell
Michael Powell wrote:

 David Southwell wrote:
 
 Robert Huff wrote:
  David Southwell writes:
   /libexec/ld-elf.so.1: /usr/local/lib/php/20060613/imap.so:
   Undefined symbol ssl_onceonlyinit

Oh - forgot - this is what an ldd of my imap.so looks like on 7.2:

testbed# pwd
/usr/local/lib/php/20060613
testbed# ldd /usr/local/lib/php/20060613/imap.so
/usr/local/lib/php/20060613/imap.so:
libssl.so.5 = /usr/lib/libssl.so.5 (0x281a2000)
libcrypto.so.5 = /lib/libcrypto.so.5 (0x2830)
libc-client4.so.9 = /usr/local/lib/libc-client4.so.9 (0x28458000)
libcrypt.so.4 = /lib/libcrypt.so.4 (0x281e3000)
libpam.so.4 = /usr/lib/libpam.so.4 (0x2855)
libc.so.7 = /lib/libc.so.7 (0x28089000)

For comparative purposes.  

-Mike



___
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


Show bandwidth usage by IP address (through pf)

2009-10-07 Thread Maxim Khitrov
Hello all,

I have pf filtering traffic to our network. Is there any easy way to
see the current bandwidth usage sorted by ip? Someone is using up
almost 100% of total bandwidth and parsing pfctl -ss -v isn't
getting me anywhere.

- Max
___
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: Show bandwidth usage by IP address (through pf)

2009-10-07 Thread Doug Poland
On Wed, Oct 07, 2009 at 03:22:33PM -0400, Maxim Khitrov wrote:
 Hello all,
 
 I have pf filtering traffic to our network. Is there any easy way to
 see the current bandwidth usage sorted by ip? Someone is using up
 almost 100% of total bandwidth and parsing pfctl -ss -v isn't
 getting me anywhere.
 
sysutils/pftop is your friend :)
___
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: Postfix doesn't start

2009-10-07 Thread Vinzstyle
Le dimanche 4 octobre 2009 21:33:12 Vinzstyle, vous avez écrit :
 Le dimanche 4 octobre 2009 21:09:05 jgi...@gmail.com, vous avez écrit :
  What are the actual permissions on the lock file, not just the containing
  directory?
 
  Josh
  Sent via BlackBerry from T-Mobile
 
  -Original Message-
  From: Vinzstyle vinzst...@free.fr
  Date: Sun, 4 Oct 2009 20:41:32
  To: freebsd-questions@freebsd.org
  Subject: Postfix doesn't start
 
  Hi,
 
  I installed Postfix with PCRE support from the ports collection, but I
  get this error when I try to start it :
 
  Oct  4 20:22:09 mail postfix/postfix-script[47114]: starting the Postfix
  mail system
  Oct  4 20:22:09 mail postfix/master[47115]: fatal: open lock file
  /var/db/postfix/master.lock: cannot open file: Permission denied
 
  [r...@mail /]# ls -ld /var/db/postfix/
  drwx--  2 postfix  wheel  512 Oct  4 20:16 /var/db/postfix/
 
  The mail_owner directive is set to postfix in main.cf
 
  Is there some things to set up after the make install ? Did I miss
  something ?
 
  I'm running FreeBSD-7.2-RELEASE, and Postfix(-2.5.6,1) is started inside
  a jail.
 
  Thanks for your help :)
  ___
  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

 The file isn't created by make install. If I create it with permissions
 666 and postfix as owner, I get the same error message...
 ___
 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

Hi,

sorry, it was my fault :)

Permissions were 750 on a parent directory...

Thanks for your help anyway :)
___
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: Show bandwidth usage by IP address (through pf)

2009-10-07 Thread Gary Gatten
I use nTop for this, but I'm sure there are other ways.  I'm not that
familiar with pf so can't help much there.

-Original Message-
From: owner-freebsd-questi...@freebsd.org
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Maxim Khitrov
Sent: Wednesday, October 07, 2009 2:23 PM
To: Free BSD Questions list
Subject: Show bandwidth usage by IP address (through pf)

Hello all,

I have pf filtering traffic to our network. Is there any easy way to
see the current bandwidth usage sorted by ip? Someone is using up
almost 100% of total bandwidth and parsing pfctl -ss -v isn't
getting me anywhere.

- Max
___
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





font size=1
div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 
1.0pt 0in'
/div
This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system.
/font

___
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: rsync include and exclude

2009-10-07 Thread krad
2009/10/7 Jay Hall jh...@socket.net

 Ladies and Gentlemen,

 I am using rsync to backup some information and I am having some problem
 with including and excluding directories.

 I want to include everything in the user's mail directory and everything in
 the user's documents directory.  Everything else should be excluded.  And,
 it is possible to have multiple users on a single computer.

 Following is what I am using for my include/exclude patterns.

 + /Users/*/Library/Mail/
 + /Users/*/Documents/
 - /Users/*/Documents/*
 - /Users/*/Library/*

 This gives me close to the desired result.  However, there are some extra
 files included which I do not need to backup which are stored in
 /Users/username directory.

 If I add -/Users/*, no files are backed up.

 After reading the man pages and several examples, I thought I had a handle
 on this.  Any suggestions would be greatly appreciated.

 Thanks,


 Jay


 ___
 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


try adding this line to the top

+ /Users/*

then this to the bottom

- /Users/*/*


I use lists like this at work a lot and you have to be careful. The ordering
of the rules is very important. The common on for people to get wrong is the
mysql rules. We generally dont copy the binary db files as they would never
be consistent, so we dump the db else where and exclude the files. Except we
need to capture the my.cnf file. The following ruleset does it

+ /var/db/mysql
+ /var/db/mysql/my.cnf
- /var/db/mysql/**

If you deviate from this things dont tend to work.
___
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: dump_snapshot file

2009-10-07 Thread Warren Block

On Wed, 7 Oct 2009, Philip Jocks wrote:


Am 07.10.2009 um 15:49 schrieb Warren Block:


On Wed, 7 Oct 2009, Philip Jocks wrote:

I had a file /usr/.snap/dump_snapshot being about 15GB in size, which I 
removed because the partition was filling up.
The file's date was always rather current, so I'm wondering, what it was 
for?
I did do a level 0 dump with -0 and -Lau parameters a few weeks ago and 
always do dumps on other boxes, but never saw a file in the .snap 
directory growing. For the other partitions, there are no such files, 
that's why I'm wondering.

Maybe someone can shed some light on this for me.


man -P 'less +/-L' dump

explains it a bit.  The snapshot file is supposed to go away after dump 
completes, but in your case dump died or was killed before it unlinked the 
file.


Yes, but when there's no currently running dump process, should that file be 
growing or updated?


Not unless something else is creating a snapshot (mksnap_ffs(8)). 
snapinfo -v on that filesystem might help.  Or lsof.


BTW: is everyone else getting messages from the list twice, once with the 
list's signature, once without?


Normal procedure on the FreeBSD mailing lists is to respond to the 
message and CC the list (or vice versa) so replies are visible to 
everyone.  If your mail setup allows it, mail/procmail can weed out 
duplicates and sort mail into folders.


-Warren Block * Rapid City, South Dakota USA
___
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: Daily run reports

2009-10-07 Thread Liontaur
How's about just putting a .forward file in root's home dir? That works well
for me and doesn't require rebuilding this or that.

Mark

On Wed, Oct 7, 2009 at 10:01 AM, Polytropon free...@edvax.de wrote:

 On Wed, 7 Oct 2009 16:42:41 +, Glen Barber glen.j.bar...@gmail.com
 wrote:
  No, you do not need to restart sendmail with newaliases(1).

 True. According to man newaliases,

   Newaliases is identical to ``sendmail -bi''.

 and per man sendmail,

   -biInitialize the alias database.

 which says nothing about sendmail being restarted. Good to know! :-)


 --
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 ___
 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-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


BSD Professional Job Task Analysis Survey

2009-10-07 Thread Mikel King
The BSD News Network reports that volunteer as desperately needed to  
complete the BSDP JTA Survey by the deadline of October 16th. The BSD  
Certification Group has been diligently working toward this goal for  
quite some time now.


http://bsdnews.net/index.php/2009/10/07/bsdcertdeadline-approaching-fast-for-the-bsdp-jta-survey/

I am curious how many people on this list were aware of the survey?

Has anyone else actually completed the survey?

Has anyone seen an announcement about this on the FreeBSD lists in the  
past?


Thanks,
Mikel

___
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: Show bandwidth usage by IP address (through pf)

2009-10-07 Thread Maxim Khitrov
On Wed, Oct 7, 2009 at 3:27 PM, Doug Poland d...@polands.org wrote:
 On Wed, Oct 07, 2009 at 03:22:33PM -0400, Maxim Khitrov wrote:
 Hello all,

 I have pf filtering traffic to our network. Is there any easy way to
 see the current bandwidth usage sorted by ip? Someone is using up
 almost 100% of total bandwidth and parsing pfctl -ss -v isn't
 getting me anywhere.

 sysutils/pftop is your friend :)


Exactly what I needed, thanks!

- Max
___
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: Show bandwidth usage by IP address (through pf)

2009-10-07 Thread Kevin Wilcox
2009/10/7 Maxim Khitrov mkhit...@gmail.com:

 I have pf filtering traffic to our network. Is there any easy way to
 see the current bandwidth usage sorted by ip? Someone is using up
 almost 100% of total bandwidth and parsing pfctl -ss -v isn't
 getting me anywhere.

It's overkill and does a ton more than what you're asking for...but
have you looked at ipaudit? Or, more specifically, ipaudit-web? I
ended up installing apache/gnuplot/etc from ports but installed
ipaudit from source as the version in ports is *incredibly* outdated.

kmw

-- 
Whenever there is in any country, uncultivated lands and unemployed
poor, it is clear that the laws of property have been so far extended
as to violate natural right. The earth is given as a common stock for
man to labour and live on. -- Thomas Jefferson, 1785
___
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: rsync include and exclude

2009-10-07 Thread Jay Hall

Thanks.  That took care of the problem.


Jay
On Oct 7, 2009, at 3:02 PM, krad wrote:




2009/10/7 Jay Hall jh...@socket.net
Ladies and Gentlemen,

I am using rsync to backup some information and I am having some  
problem with including and excluding directories.


I want to include everything in the user's mail directory and  
everything in the user's documents directory.  Everything else  
should be excluded.  And, it is possible to have multiple users on a  
single computer.


Following is what I am using for my include/exclude patterns.

+ /Users/*/Library/Mail/
+ /Users/*/Documents/
- /Users/*/Documents/*
- /Users/*/Library/*

This gives me close to the desired result.  However, there are some  
extra files included which I do not need to backup which are stored  
in /Users/username directory.


If I add -/Users/*, no files are backed up.

After reading the man pages and several examples, I thought I had a  
handle on this.  Any suggestions would be greatly appreciated.


Thanks,


Jay


___
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 



try adding this line to the top

+ /Users/*

then this to the bottom

- /Users/*/*


I use lists like this at work a lot and you have to be careful. The  
ordering of the rules is very important. The common on for people to  
get wrong is the mysql rules.. We generally dont copy the binary db  
files as they would never be consistent, so we dump the db else  
where and exclude the files. Except we need to capture the my.cnf  
file. The following ruleset does it


+ /var/db/mysql
+ /var/db/mysql/my.cnf
- /var/db/mysql/**

If you deviate from this things dont tend to work.


___
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: dump_snapshot file

2009-10-07 Thread Chris Whitehouse

Warren Block wrote:

On Wed, 7 Oct 2009, Philip Jocks wrote:


BTW: is everyone else getting messages from the list twice, once with 
the list's signature, once without?


Normal procedure on the FreeBSD mailing lists is to respond to the 
message and CC the list (or vice versa) so replies are visible to 
everyone.  If your mail setup allows it, mail/procmail can weed out 
duplicates and sort mail into folders.


-Warren Block * Rapid City, South Dakota USA


There is a setting in your mailing list config eg

http://lists.freebsd.org/mailman/options/freebsd-questions/y...@email.address

which I think sets this. It's called Avoid duplicate copies of messages:
When you are listed explicitly in the To: or Cc: headers of a list 
message, you can opt to not receive another copy from the mailing list.

___
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


Daily report cannot be emailed to a jailed mail server

2009-10-07 Thread David N
Hi,

FreeBSD 7.2-R box with 10 jails.

The mail server (actually its a mail filter) is hosted on the same
server inside a jail.

I can't seem to get the main server reports to be sent to the mail
filter inside the jail inside the same box.

so.. r...@localhost tries to send an email to some...@anotherdomain.com.au

The MX entry for anotherdomain.com.au points to the mailfilter on the
server (jailed).


I've changed my /etc/mail/aliases to have
root: some...@anotherdomain.com.au
and ran newaliases.

When i try to send an email i get
in /var/log/messages
sm-mta[94682]: n97LeeOw094682: Losing ./qfn97LeeOw094682: savemail panic
Oct  8 08:40:40 server sm-mta[94682]: n97LeeOw094682: SYSERR(root):
savemail: cannot save rejected email anywhere
Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: Losing
./qfn97LgTYg094713: savemail panic
Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: SYSERR(root):
savemail: cannot save rejected email anywhere
Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: SYSERR(root): MX
list for anotherdomain.com.au. points back to server.net

In /var/log/maillog
n97Ll7VV095129: to=some...@anotherdomain.com.au,
ctladdr=r...@server.net (0/0), delay=00:00:00, xdelay=00:00:00,
mailer=esmtp, pri=30715, relay=anotherdomain.com.au., dsn=5.3.5,
stat=Local configuration error
Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: n97Ll7VV095130:
DSN: Local configuration error

Anyone have any ideas on how to fix this?

Regards
David N
___
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: Daily report cannot be emailed to a jailed mail server

2009-10-07 Thread Steve Bertrand
David N wrote:
 Hi,
 
 FreeBSD 7.2-R box with 10 jails.
 
 The mail server (actually its a mail filter) is hosted on the same
 server inside a jail.
 
 I can't seem to get the main server reports to be sent to the mail
 filter inside the jail inside the same box.
 
 so.. r...@localhost tries to send an email to some...@anotherdomain.com.au
 
 The MX entry for anotherdomain.com.au points to the mailfilter on the
 server (jailed).
 
 
 I've changed my /etc/mail/aliases to have
 root: some...@anotherdomain.com.au
 and ran newaliases.
 
 When i try to send an email i get
 in /var/log/messages
 sm-mta[94682]: n97LeeOw094682: Losing ./qfn97LeeOw094682: savemail panic
 Oct  8 08:40:40 server sm-mta[94682]: n97LeeOw094682: SYSERR(root):
 savemail: cannot save rejected email anywhere
 Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: Losing
 ./qfn97LgTYg094713: savemail panic
 Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: SYSERR(root):
 savemail: cannot save rejected email anywhere
 Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: SYSERR(root): MX
 list for anotherdomain.com.au. points back to server.net
 
 In /var/log/maillog
 n97Ll7VV095129: to=some...@anotherdomain.com.au,
 ctladdr=r...@server.net (0/0), delay=00:00:00, xdelay=00:00:00,
 mailer=esmtp, pri=30715, relay=anotherdomain.com.au., dsn=5.3.5,
 stat=Local configuration error
 Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: n97Ll7VV095130:
 DSN: Local configuration error
 
 Anyone have any ideas on how to fix this?

If you hadn't of sanitized the domain names, it would have been easier
to troubleshoot...

Nonetheless, you can force Sendmail to push email to a different server
directly (overriding the DNS MX entries) with a 'mailertable' file in
/etc/mail. Here's one on a secondary MX:

%cat /etc/mail/mailertable
ibctech.ca  smtp:[smtp.ibctech.ca]
ipv6canada.com  smtp:[smtp.ipv6canada.com]
...

After the file is created, a simple 'make' in /etc/mail will build the
mailertable.db file for you and take effect immediately (much like
'newaliases').

However, it's hard to tell if this recommendation will solve your
problem though. Without knowing the real domain, we can't perform DNS
tests against it to get a better understanding of the situation.

Cheers,

Steve

___
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: BSD Professional Job Task Analysis Survey

2009-10-07 Thread Randy Belk
On Wed, Oct 7, 2009 at 3:52 PM, Mikel King mikel.k...@olivent.com wrote:
 The BSD News Network reports that volunteer as desperately needed to
 complete the BSDP JTA Survey by the deadline of October 16th. The BSD
 Certification Group has been diligently working toward this goal for quite
 some time now.

 http://bsdnews.net/index.php/2009/10/07/bsdcertdeadline-approaching-fast-for-the-bsdp-jta-survey/

 I am curious how many people on this list were aware of the survey?

 Has anyone else actually completed the survey?

 Has anyone seen an announcement about this on the FreeBSD lists in the past?

 Thanks,
 Mikel

 ___
 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


I have completed it.

-- 
- Amiga, The Computer for the creative Mind!
- UNIX is basically a simple operating system, but you have to be a
genius to understand the simplicity.
- People who hate Microsoft Windows use Linux but people who love UNIX use BSD.
___
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: A general sed question

2009-10-07 Thread George Davidovich
On Tue, Oct 06, 2009 at 11:45:36PM -0700, David Allen wrote:
 I keep bumping up against this, so I thought I'd throw this question out
 to those who understand sed better than I do.
 
 What I'm trying to do is to clean up the contents of some files
 (/sys/i386/conf/GENERIC would be a good example) to get more readable
 diffs.  To that end, I'm trying to use sed to

For the following note that what's contained in the square brackets is a
space character followed by a literal TAB character (typically created
by entering ^V followed by TAB).

  - delete commented lines
  - remove inline comments

s/[ ]*#.*//   # takes care of both, but will leave \t\t\t\n

  - remove trailing spaces and/or tabs

s/[ ]*$// # handy, but not needed if using diff -b

  - delete blank lines, and/or lines containing just spaces and/or tabs

/^[ ]*$/d

  - expand tabs

This is overly complex with sed and probably unecessary.  Instead I'd
suggest using your editor (in vim, it's ':set expandtab | retab'), or
for interactive use, relying on expand(1) and using a value for -t that
matches the tab spacing you typically use for your pager and/or editor.
Alternatively, to get better visual alignment when using diff(1), just
use the -t option.

Putting the above together, you get

sed -e 's/[ ]*#.*//' -e 's/[]*$//' -e '/^[  ]*$/d'  

Hardly ideal but it's readable enough and satisfies the 80/20 rule.  If
used as a simple alias, shell function or script as Oliver Fromme
suggested (yes, this works in bash), my suggestion is

diff -ubBt (cleanup /sys/i386/conf/GENERIC) (cleanup /path/to/NEWKERNEL)

-- 
George
___
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


Common practice for generating SSL CSR

2009-10-07 Thread Steve Bertrand
Although not FBSD specific...

I'm looking to garner production-wise operational feedback on the
commands people are using to generate their (Open)SSL cert requests
nowadays...

All feedback appreciated. I'm just curious to know if things have changed.

Steve
___
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: Common practice for generating SSL CSR

2009-10-07 Thread Olivier Nicole
 I'm looking to garner production-wise operational feedback on the
 commands people are using to generate their (Open)SSL cert requests
 nowadays...

I usually follow what is very well explained in modssl FAQ.

Olivier
___
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: Common practice for generating SSL CSR

2009-10-07 Thread Steve Bertrand
Olivier Nicole wrote:
 I'm looking to garner production-wise operational feedback on the
 commands people are using to generate their (Open)SSL cert requests
 nowadays...
 
 I usually follow what is very well explained in modssl FAQ.

Thanks Olivier,

That's what I thought, but just wanted to be sure.

fwiw, TFM:

http://www.modssl.org/docs/2.8/ssl_faq.html#ToC28

Thanks,

Steve
___
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: Daily report cannot be emailed to a jailed mail server

2009-10-07 Thread David N
2009/10/8 Steve Bertrand st...@ibctech.ca:
 David N wrote:
 Hi,

 FreeBSD 7.2-R box with 10 jails.

 The mail server (actually its a mail filter) is hosted on the same
 server inside a jail.

 I can't seem to get the main server reports to be sent to the mail
 filter inside the jail inside the same box.

 so.. r...@localhost tries to send an email to some...@anotherdomain.com.au

 The MX entry for anotherdomain.com.au points to the mailfilter on the
 server (jailed).


 I've changed my /etc/mail/aliases to have
 root: some...@anotherdomain.com.au
 and ran newaliases.

 When i try to send an email i get
 in /var/log/messages
 sm-mta[94682]: n97LeeOw094682: Losing ./qfn97LeeOw094682: savemail panic
 Oct  8 08:40:40 server sm-mta[94682]: n97LeeOw094682: SYSERR(root):
 savemail: cannot save rejected email anywhere
 Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: Losing
 ./qfn97LgTYg094713: savemail panic
 Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: SYSERR(root):
 savemail: cannot save rejected email anywhere
 Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: SYSERR(root): MX
 list for anotherdomain.com.au. points back to server.net

 In /var/log/maillog
 n97Ll7VV095129: to=some...@anotherdomain.com.au,
 ctladdr=r...@server.net (0/0), delay=00:00:00, xdelay=00:00:00,
 mailer=esmtp, pri=30715, relay=anotherdomain.com.au., dsn=5.3.5,
 stat=Local configuration error
 Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: n97Ll7VV095130:
 DSN: Local configuration error

 Anyone have any ideas on how to fix this?

 If you hadn't of sanitized the domain names, it would have been easier
 to troubleshoot...

 Nonetheless, you can force Sendmail to push email to a different server
 directly (overriding the DNS MX entries) with a 'mailertable' file in
 /etc/mail. Here's one on a secondary MX:

 %cat /etc/mail/mailertable
 ibctech.ca      smtp:[smtp.ibctech.ca]
 ipv6canada.com  smtp:[smtp.ipv6canada.com]
 ...

 After the file is created, a simple 'make' in /etc/mail will build the
 mailertable.db file for you and take effect immediately (much like
 'newaliases').

 However, it's hard to tell if this recommendation will solve your
 problem though. Without knowing the real domain, we can't perform DNS
 tests against it to get a better understanding of the situation.

 Cheers,

 Steve




Thank you so much, it worked =)

My MX records are correct, i could get mail from the outside, but just
couldn't get the daily reports to deliver it.
___
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: Daily report cannot be emailed to a jailed mail server

2009-10-07 Thread George Davidovich
On Thu, Oct 08, 2009 at 09:02:50AM +1100, David N wrote:
 FreeBSD 7.2-R box with 10 jails.
 
 The mail server (actually its a mail filter) is hosted on the same
 server inside a jail.
 
 I can't seem to get the main server reports to be sent to the mail
 filter inside the jail inside the same box.
 
 so.. r...@localhost tries to send an email to
 some...@anotherdomain.com.au
 
 The MX entry for anotherdomain.com.au points to the mailfilter on the
 server (jailed).

 I've changed my /etc/mail/aliases to have
 root: some...@anotherdomain.com.au
 and ran newaliases.

It's been already pointed out that you aren't providing much information
to go on, so here's my WAG of what is happening.

Changing the root alias root could work, but consider the case of mail
from the jailhost being rejected by the jailed mailserver.  The bounce
message will be addressed to POSTMASTER on the jailhost, which points to
root on the jailhost, which points back to the jailed mailserver trying
to send the bounce, which points to ...

You can examine the scenario for yourself either by listening to a
married couple on the verge of divorce argue with one another, or more
specifically, by running

  [r...@jailhost] sendmail -bv root
  [r...@jail] sendmail -bv postmas...@jailhost.server.net

 When i try to send an email i get
 in /var/log/messages
 sm-mta[94682]: n97LeeOw094682: Losing ./qfn97LeeOw094682: savemail panic
 Oct  8 08:40:40 server sm-mta[94682]: n97LeeOw094682: SYSERR(root):
 savemail: cannot save rejected email anywhere
 Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: Losing
 ./qfn97LgTYg094713: savemail panic
 Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: SYSERR(root):
 savemail: cannot save rejected email anywhere
 Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: SYSERR(root): MX
 list for anotherdomain.com.au. points back to server.net

The jailed mailserver is rejecting the mail and is then trying to send a
bounce and can't because it's caught in a loop that ends when Sendmail
says Look this isn't an argument ... it's just contradiction! and
bails out.  

Why the jailed mailserver is rejecting the mail is a separate issue. 

 In /var/log/maillog
 n97Ll7VV095129: to=some...@anotherdomain.com.au,
 ctladdr=r...@server.net (0/0), delay=00:00:00, xdelay=00:00:00,
 mailer=esmtp, pri=30715, relay=anotherdomain.com.au., dsn=5.3.5,
 stat=Local configuration error
 Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: n97Ll7VV095130:
 DSN: Local configuration error

That's from the maillog on the jailhost.  More relevant to why the
jailed mailserver has rejected the mail would be the jail's maillog
entries (or whatever logging was done by the filter installed there). 

Either way, for the interim I'd suggest undoing your changes, rebuilding
your aliases and consider implementing an alternate approach.  For
anyone to figure out conclusively what's happening, you'll have to
provide more information.

-- 
George
___
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: Daily report cannot be emailed to a jailed mail server

2009-10-07 Thread Steve Bertrand
David N wrote:
 2009/10/8 Steve Bertrand st...@ibctech.ca:
 David N wrote:

[ big snips ]

 When i try to send an email i get

 Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: SYSERR(root): MX
 list for anotherdomain.com.au. points back to server.net

 Nonetheless, you can force Sendmail to push email to a different server
 directly (overriding the DNS MX entries) with a 'mailertable' file in
 /etc/mail. Here's one on a secondary MX:

 %cat /etc/mail/mailertable
 ibctech.ca  smtp:[smtp.ibctech.ca]
 ipv6canada.com  smtp:[smtp.ipv6canada.com]
 ...

 After the file is created, a simple 'make' in /etc/mail will build the
 mailertable.db file for you and take effect immediately (much like
 'newaliases').

 Thank you so much, it worked =)
 
 My MX records are correct, i could get mail from the outside, but just
 couldn't get the daily reports to deliver it.

I'm glad it worked. Believe me, if that simple change made it work for
you, then it was worth my headache to have spent the time to learn it
for myself ;)

For the last few years, I've only used Sendmail (or sendmail) to act as
a backup MX, or to directly deliver mail from the box I am on...hence,
it's been a while...

There may be other ramifications to using `mailertable' in your
particular environment.

I don't know how your system will react, given a default setup and a
mailertable entry.

It's possible (but untested) that if the server that is specified in the
mailertable is down, your reports might not make it to you ( whether
that's bad or good is up for interpretation... I've always known no news
as good news ;)

Perhaps Giorgos or someone else may be able to provide a better
understanding.

Steve
___
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


When is it worth enabling hyperthreading?

2009-10-07 Thread Pierre-Luc Drouin

Hi,

Could someone explain me in which cases it is useful to enable 
hyperthreading on a machine running FreeBSD 8.0 and in which other cases 
it is not a good idea? Is that possible that hyperthreading is 
disadvantageous unless the number of active (non-sleeping) threads is 
really high?


For example, if I have an i7 CPU with 4 physical cores and that I run 
some multi-threaded code that has only 4 threads, it will run almost 
always (twice) slower with hyperthreading enabled than when I disable it 
in the BIOS. If I understand correctly, hyperthreading has the advantage 
of being able to do CPU context switching faster than the OS, but it 
does this context switching systematically instead of only when 
requested, so it slows things down unless the number of running 
(non-sleeping) threads is greater or equal to let say the number of 
physical threads x 1.5-1.75.


Thanks!
___
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


MySQL + SSL

2009-10-07 Thread Olivier Nicole
Hi,

I have been strugling to find the correct syntax for the mysql(1)
command to connect with SSL.

My server is accepting SSL connections:

  db2root: mysql -u root -p
  Enter password: 
  Welcome to the MySQL monitor.  Commands end with ; or \g.
  Your MySQL connection id is 1
  Server version: 5.4.2-beta FreeBSD port: mysql-server-5.4.2
  
  Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  
  mysql SHOW VARIABLES LIKE '%ssl%';
  +---+---+
  | Variable_name | Value |
  +---+---+
  | have_openssl  | YES   |
  | have_ssl  | YES   |
  | ssl_ca| /usr/local/ssl/ca/ait-itserv.crt  |
  | ssl_capath|   |
  | ssl_cert  | /usr/local/ssl/crt/db2.cs.ait.ac.th.crt   |
  | ssl_cipher| DHE-RSA-AES256-SHA:AES128-SHA |
  | ssl_key   | /database/mysql/database.cs.ait.ac.th.key |
  +---+---+
  7 rows in set (0.00 sec)
  
  mysql quit
  Bye
  db2root:
 
TIA,

Olivier 
___
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