Re: Help with setting up a mail server

2010-07-21 Thread Tim Judd
On 7/20/10, Odhiambo Washington odhia...@gmail.com wrote:
 On Tue, Jul 20, 2010 at 11:50 PM, Jerry freebsd.u...@seibercom.net wrote:
 On Tue, 20 Jul 2010 21:03:55 +0300
 Odhiambo Washington odhia...@gmail.com articulated:


 On Tue, Jul 20, 2010 at 4:46 PM, Aryeh M. Friedman
 aryeh.fried...@gmail.com wrote:
  On Tue, 20 Jul 2010 09:33:28 -0400
  Jerry freebsd.u...@seibercom.net wrote:
 
  On Tue, 20 Jul 2010 09:26:44 -0400
  Aryeh M. Friedman aryeh.fried...@gmail.com articulated:
 
   I am a consultant and was retained by my client to setup qmail or
   exim on a VPS running 8.0-STABLE (i386). After setting up the DNS
   (A record and MX record) we have been unable to send or receive
   mail. The client has/had a working script for installing qmail on
   7.1-STABLE but it seems to not work on 8.0-STABLE. They are using
   the same VPS provider who this 7.1-STABLE install script worked
   under. I have tried everything I can think of to make it work
   including asking obvious questions on -questi...@.
  
   I informed the client that the task is likely beyond me capabilities
   but I would help recruit someone who would be able to do it at a
   reasonable fee paid to them (I am acting as a no cost middle man on
   this [I am helping the client for free since I was unable to get it
   done]).
  
   Please send any ideas and/or offers to do the job
 
  I would seriously suggest that you consider installing Postfix. It is
  in the ports tree, is well maintained and works out of the box. The
  Postfix forum will be glad to give you any advice you need for setting
  up and securing your mail server. Qmail is no longer supported by its
  author and can be a nightmare to maintain.
 
 
  We had also tried sendmail and couldn't get that working either so I
  suspect it is a general config issue not a MTA one.  (I have set
  sendmail up about 30 times in the past so I know a little bit about it)

 Exim is a very good choice. Forget the Postfix suggestions. It's
 Sendmail's brother:-)

 At least Postfix is fully RFC compliant, as opposed to Exim.

 SEE: RFC 2034 (SMTP enhanced status codes), RFC 3461-4 (delivery status
 notifications), RFC 1652 (8-bit MIME including 8-7bit conversion)
 among others.

 I doubt anyone makes a choice on an MTA (or any other software) based
 on it's RFC-compliance.
 In my experience, it's normally boils down to:

 1. It has the features that I want
 2. I can swim with it in times of toruble

I for one like to know that it is RFC compliant.  it's a reason RFCs
are made, so there can be standardization...  So yes, I do choose
based on compliance.  (anyone use Firefox over IE at work because
Firefox works better?)

Did you get my email?  no, but i get everyone elses, let's check
the logs and find out why
___
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


Are kernel stress test results displayed online?

2010-07-21 Thread Yuri
Before one of the releases, I remember, kernel stress tests results were 
online.

Now I can't find them.

Are they run? (I guess they must be.)
Particularly would be interesting to see tests for FreeBSD 8.1-RC2, 
FreeBSD 8.0-STABLE and FreeBSD-9.0.

Also does stress test only cover kernel or device drivers as well?

Thanks,
Yuri
___
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: system hangs on; Probing devices, please wait (this can take a while)...

2010-07-21 Thread Thomas Mueller
 Any ideas anyone ? I'm stuck. Cannot install FreeBSD on my computer. Every 
 other
 OS besides FreeBSD boots up and installs. What else can I check?

I offered my admittedly cumbersome force-fitting suggestion.  Maybe start with
a minimal installation, possibly base and etc only, or as little as possible
to get something to start with.  If this can be booted, then continue with
sysinstall from the hard drive with the downloaded FreeBSD sets on CD or an 
msdos/vfat partition.  But then if you can untar the base and etc sets in
accordance with the sysinstall scripts, the same could be done with the
other installation sets.

Possibly, booting a live-file-system FreeBSD CD, you could have the
installation CD image on an msdos/vfat partition, and mdconfig and mount that.
You could bsdlabel, newfs, and hopefully be able to proceed from there.

I wonder if FreeBSD is the only OS with 
Probing devices, please wait (this can take a while)... 

Nothing like this occurs in NetBSD or Linux; I've also installed various 
DOSes (MS-DOS 4.01 and upgrade to 5; DR-DOS 7.03 and FreeDOS; OS/2 1.3
through (Warp) 4) although MS-DOS 4.01 (back in 1990) and OS/2 had their
own problems.


Tom
___
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: new jail utility is available. announcement.

2010-07-21 Thread krad
On 20 July 2010 21:36, Jerry freebsd.u...@seibercom.net wrote:

 On Wed, 21 Jul 2010 03:45:37 +0800
 Aiza aiz...@comclark.com articulated:


  There has been the normal pre RELEASE freeze on since xmas, that is why
  no port activity is occurring right now.
 
http://www.freebsd.org/cgi/query-pr.cgi?pr=148777

 Date:   Tue, 20 Jul 2010 02:47:18 GMT

 It was only just submitted. I would hardly expect it to be committed
 yet.

 By the way, there has been a great deal of port activity since
 Christmas.

 --
 Jerry ✌
 freebsd.u...@seibercom.net

 Disclaimer: off-list followups get on-list replies or get ignored.
 Please do not ignore the Reply-To header.
 __

 For every complex problem, there is a solution that is simple, neat,
 and wrong.

H. L. Mencken
 ___
 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


Anyone tried using it yet? Not much info out there apart from the
announcments it seems. In my quick play with it this morning, it didnt seem
to be binding the ips to the jails. Not sure if you are supposed to have the
ip bound to the box before you use the jail. Would make sense if you did
have to, but it would be nice if the util added it for you or at least
prompted you if it wasnt there.
___
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: new jail utility is available. announcement.

2010-07-21 Thread Vincent Hoffman
On 21/07/2010 10:08, krad wrote:

 Anyone tried using it yet? Not much info out there apart from the
 announcments it seems. In my quick play with it this morning, it didnt seem
 to be binding the ips to the jails. Not sure if you are supposed to have the
 ip bound to the box before you use the jail. Would make sense if you did
 have to, but it would be nice if the util added it for you or at least
 prompted you if it wasnt there.
   
Not yet, when I have a spare box I might, although I quite like using
zfs for jails as you can limit the disk usage dynamically per zfs
filesystem and I didnt see any support there yet, even basic support
like there is with ezjail would be nice.

Vince

 ___
 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


Strange filesystem problems

2010-07-21 Thread Andrea Venturoli

Hello.

I'm experiencing a strange problem on a 7.2p8/i386 box.
This is not critical, since I have a workaround, but it's annoying and 
I'm also curious :-)


Let's say I have directory foo; under foo I have bar which keeps 
thousands of files (in several subdirectories).


I do:

%cd /xyzzy/foo
%pwd
xyzzy/foo
%rm -fR bar
%pwd
pwd: .: Permission denied
%cd ..
%cd foo
%pwd
xyzzy/foo

This is a local UFS filesystem, so it shouldn't be a network problem; no 
error shows up in the logs; in bar I don't have any symlink or special 
node, only plain files and directories.


What should I check?


 bye  Thanks
av.
___
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: new jail utility is available. announcement.

2010-07-21 Thread krad
On 21 July 2010 10:15, Vincent Hoffman vi...@unsane.co.uk wrote:

 On 21/07/2010 10:08, krad wrote:
 
  Anyone tried using it yet? Not much info out there apart from the
  announcments it seems. In my quick play with it this morning, it didnt
 seem
  to be binding the ips to the jails. Not sure if you are supposed to have
 the
  ip bound to the box before you use the jail. Would make sense if you did
  have to, but it would be nice if the util added it for you or at least
  prompted you if it wasnt there.
 
 Not yet, when I have a spare box I might, although I quite like using
 zfs for jails as you can limit the disk usage dynamically per zfs
 filesystem and I didnt see any support there yet, even basic support
 like there is with ezjail would be nice.

 Vince

  ___
  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



i have only done preliminary tinkering and it looks ok so far (i did have to
pre bind the jail ip). Might have to find a box to put freebsd 9 on and see
how it works with the network stack virtualization.
___
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: new jail utility is available. announcement.

2010-07-21 Thread Fbsd8

krad wrote:


Anyone tried using it yet? Not much info out there apart from the
announcments it seems. In my quick play with it this morning, it didnt seem
to be binding the ips to the jails. Not sure if you are supposed to have the
ip bound to the box before you use the jail. Would make sense if you did
have to, but it would be nice if the util added it for you or at least
prompted you if it wasnt there.


Maybe you should try the -n option on the create command or the -c 
option on the config option.

___
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: new jail utility is available. announcement.

2010-07-21 Thread Aiza


i have only done preliminary tinkering and it looks ok so far (i did have to
pre bind the jail ip). Might have to find a box to put freebsd 9 on and see
how it works with the network stack virtualization.


Please explain what you mean by pre-bind the jail ip address. I think 
you skipped over the create command -n option.

___
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: new jail utility is available. announcement.

2010-07-21 Thread Aiza



Not yet, when I have a spare box I might, although I quite like using
zfs for jails as you can limit the disk usage dynamically per zfs
filesystem and I didnt see any support there yet, even basic support
like there is with ezjail would be nice.



Zfs was left out because its over kill. Sparse image jails gives the 
same protection at a 10th of the overhead.

___
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


Unabel to download Java Patch from http://www.eyesbeyond.com/

2010-07-21 Thread Martin Schweizer
Hello 

Since some days I tried to download the latest Java patch from 
http://www.eyesbeyond.com/. But the site is not reachable. I tried it from a 
europe and from 
us server but no luck. Do you have any ideas?

Regards,


-- 

Martin Schweizer
off...@pc-service.ch

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22

___
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: new jail utility is available. announcement.

2010-07-21 Thread krad
On 21 July 2010 10:46, Aiza aiz...@comclark.com wrote:


 i have only done preliminary tinkering and it looks ok so far (i did have
 to
 pre bind the jail ip). Might have to find a box to put freebsd 9 on and
 see
 how it works with the network stack virtualization.


 Please explain what you mean by pre-bind the jail ip address. I think you
 skipped over the create command -n option.


Thanks, doing the following works nicely

qjail create -I -i -s 10m -n age0 test 192.168.210.86

Might be worth updating the create examples as the -n option isnt mentioned
there, and as a result I can see this same issue cropping up a lot in the
future.
___
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: Are kernel stress test results displayed online?

2010-07-21 Thread b. f.
Yuri wrote:
Before one of the releases, I remember, kernel stress tests results were
online.
Now I can't find them.

Are they run? (I guess they must be.)
Particularly would be interesting to see tests for FreeBSD 8.1-RC2,
FreeBSD 8.0-STABLE and FreeBSD-9.0.
Also does stress test only cover kernel or device drivers as well?

I don't know about the tests that are conducted as part of the release
engineering process, but there are links to some tests at:

http://people.freebsd.org/~pho/stress/index.html

I don't know how useful these will be -- as noted on the above page,
the intended audience is kernel developers, many of the tests are
associated with experimental kernel patches, the test results are
rarely exactly reproducible, and the tests only cover certain kernel
subsystems.  The test source code is available, so you could run your
own tests if you wanted.  You could also look at the tests in
/usr/src/tools/regression, or some of the benchmarks and tests in
Ports.

b.
___
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: system hangs on; Probing devices, please wait (this can take a while)...

2010-07-21 Thread Dave
On 20 Jul 2010 at 23:46, Bruce Cran wrote:

 On Tue, 20 Jul 2010 14:59:04 -0700 (PDT)
 Rich rl...@pacbell.net wrote:
 
  Any ideas anyone ? I'm stuck. Cannot install FreeBSD on my computer.
  Every other OS besides FreeBSD boots up and installs. What else can
  I check?
 
 It looks like it's stopping/spinning at the section where it parses
 the slices/partitions. I don't know why it would be getting stuck
 there, though.
 
 -- 
 Bruce Cran
 

Hi, I'm not a developer (of OS's at least) but from that DEBUG: 
list, it almost looks like it thinks it can see just about every 
hardware device it knows about, existing or not, and is trying to 
use them all.

I know someone mentioned memory tests, but I didn't see what results 
they came up with, or how much memory you have.  I do know however 
from my own frustrating experience in the past, that often some 
software will run just fine on bad memory, if the problems don't 
screw up the code or it's workspace.  Where as other software will 
crash badly, making you think the program is bad.   The same is 
sadly true of hard disk errors too!

Did you run a recent memtest86 (self boot CD) and let it do several 
Full passes (can take many many hours per pass if you have lots of 
ram!  And or a not so fast CPU) ?

Just idle musings.

Dave B.

___
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: new jail utility is available. announcement.

2010-07-21 Thread Valentin Bud
On Wed, Jul 21, 2010 at 12:52 PM, Aiza aiz...@comclark.com wrote:


  Not yet, when I have a spare box I might, although I quite like using
 zfs for jails as you can limit the disk usage dynamically per zfs
 filesystem and I didnt see any support there yet, even basic support
 like there is with ezjail would be nice.


 Zfs was left out because its over kill. Sparse image jails gives the same
 protection at a 10th of the overhead.


Hello community,

 ZFS shouldn't be left out. Besides limiting the disk usage dynamically per
zfs FS
you have another big advantage - snapshots. Suppose you want to upgrade
ports
is a jail and something goes kaboom you just revert to the previous working
snapshot.
 I agree you can copy the image back and forth but zfs snapshots are faster
and not
that space consuming.

 The layout that I plan to use is the following:

storage/jails
  |storage/jails/group1
  | |
  |
|storage/jails/group1/jail1
  |
|storage/jails/group1/jail2
  |
  |storage/jails/group2
  | | ...
  |

Group can be any kind of characteristic you want to take into account
regarding
those jails (eg. group1 - mail servers, group2 - web servers, groupX -
companyY, etc.).
You can also go with more levels of depth but for me it's enough.

This way if your server doesn't handle all the jails you have running,
simply
buy new hardware, install FBSD (or just copy the ZFS root container over to
the new
system) and migrate the jails over.

I am waiting for network stack virtualization to come out and dreaming about
live jails
migration in the future of FBSD :).

I would like you to reconsider ZFS support and thanks for qjail :).

a great day,
v
-- 
network warrior
___
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: system hangs on; Probing devices, please wait (this can take a while)...

2010-07-21 Thread Bruce Cran
On Wed, 21 Jul 2010 11:56:50 +0100
Dave d...@g8kbv.demon.co.uk wrote:

 Hi, I'm not a developer (of OS's at least) but from that DEBUG: 
 list, it almost looks like it thinks it can see just about every 
 hardware device it knows about, existing or not, and is trying to 
 use them all.

The debug output is saying that it can't open the vast majority of the
devices it's trying. The device_names array just contains a list of all
devices sysinstall knows about: for USB mass storage devices it tries
to open da0-da15. I guess it's not been updated for devfs where it
should see which device nodes actually exist - or, better, use geom to
enumerate the devices.

-- 
Bruce Cran
___
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: new jail utility is available. announcement.

2010-07-21 Thread Aiza

Valentin Bud wrote:

On Wed, Jul 21, 2010 at 12:52 PM, Aiza aiz...@comclark.com wrote:


 Not yet, when I have a spare box I might, although I quite like using

zfs for jails as you can limit the disk usage dynamically per zfs
filesystem and I didnt see any support there yet, even basic support
like there is with ezjail would be nice.



Zfs was left out because its over kill. Sparse image jails gives the same
protection at a 10th of the overhead.



Hello community,

 ZFS shouldn't be left out. Besides limiting the disk usage dynamically per
zfs FS
you have another big advantage - snapshots. Suppose you want to upgrade
ports
is a jail and something goes kaboom you just revert to the previous working
snapshot.
 I agree you can copy the image back and forth but zfs snapshots are faster
and not
that space consuming.

 The layout that I plan to use is the following:

storage/jails
  |storage/jails/group1
  | |
  |
|storage/jails/group1/jail1
  |
|storage/jails/group1/jail2
  |
  |storage/jails/group2
  | | ...
  |

Group can be any kind of characteristic you want to take into account
regarding
those jails (eg. group1 - mail servers, group2 - web servers, groupX -
companyY, etc.).
You can also go with more levels of depth but for me it's enough.

This way if your server doesn't handle all the jails you have running,
simply
buy new hardware, install FBSD (or just copy the ZFS root container over to
the new
system) and migrate the jails over.

I am waiting for network stack virtualization to come out and dreaming about
live jails
migration in the future of FBSD :).

I would like you to reconsider ZFS support and thanks for qjail :).

a great day,
v


What you are doing behind the jail system back using zfs, qjail does 
with the -z zone option right up front. And the archive and restore of 
qjail jails is less than 3 seconds right now. How much faster does it 
need to be?



___
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: Strange filesystem problems

2010-07-21 Thread A. Wright



On Wed, 21 Jul 2010, Andrea Venturoli wrote:


Let's say I have directory foo; under foo I have bar which keeps
thousands of files (in several subdirectories).

I do:

%cd /xyzzy/foo
%pwd
xyzzy/foo
%rm -fR bar
%pwd
pwd: .: Permission denied


At this point, I would suspect that you may have the UCHG flag
set.  What do:
ls -lod /xyzzy/foo/bar
and
ls -lo /xyzzy/foo/bar
say?

Check the chflags(1) man page for some descriptions and also how
to change/remove the flags if present.


___
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: new jail utility is available. announcement.

2010-07-21 Thread krad
On 21 July 2010 12:37, Aiza aiz...@comclark.com wrote:

 Valentin Bud wrote:

 On Wed, Jul 21, 2010 at 12:52 PM, Aiza aiz...@comclark.com wrote:

   Not yet, when I have a spare box I might, although I quite like using

 zfs for jails as you can limit the disk usage dynamically per zfs
 filesystem and I didnt see any support there yet, even basic support
 like there is with ezjail would be nice.


  Zfs was left out because its over kill. Sparse image jails gives the
 same
 protection at a 10th of the overhead.


  Hello community,

  ZFS shouldn't be left out. Besides limiting the disk usage dynamically
 per
 zfs FS
 you have another big advantage - snapshots. Suppose you want to upgrade
 ports
 is a jail and something goes kaboom you just revert to the previous
 working
 snapshot.
  I agree you can copy the image back and forth but zfs snapshots are
 faster
 and not
 that space consuming.


That all depends on your deltas. We do hot backups (lock, flush, snap,
unlock) of our oracle dbs on solaris with zfs snap shots. The do take up a
lot of room but thats becasue we do a lot of writes gigs a day.




  The layout that I plan to use is the following:

 storage/jails
  |storage/jails/group1
  | |
  |
 |storage/jails/group1/jail1
  |
 |storage/jails/group1/jail2
  |
  |storage/jails/group2
  | | ...
  |

 Group can be any kind of characteristic you want to take into account
 regarding
 those jails (eg. group1 - mail servers, group2 - web servers, groupX -
 companyY, etc.).
 You can also go with more levels of depth but for me it's enough.

 This way if your server doesn't handle all the jails you have running,
 simply
 buy new hardware, install FBSD (or just copy the ZFS root container over
 to
 the new
 system) and migrate the jails over.

 I am waiting for network stack virtualization to come out and dreaming
 about
 live jails
 migration in the future of FBSD :).

 I would like you to reconsider ZFS support and thanks for qjail :).

 a great day,
 v


 What you are doing behind the jail system back using zfs, qjail does with
 the -z zone option right up front. And the archive and restore of qjail
 jails is less than 3 seconds right now. How much faster does it need to be?



 ___
 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


that depends on how much data is in the jail surely.
___
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: Help with setting up a mail server

2010-07-21 Thread Jerry
On Wed, 21 Jul 2010 08:54:44 +0300
Odhiambo Washington odhia...@gmail.com articulated:

 I doubt anyone makes a choice on an MTA (or any other software) based
 on it's RFC-compliance.
 In my experience, it's normally boils down to:
 
 1. It has the features that I want
 2. I can swim with it in times of toruble

Microsoft has been claiming for years that adherence to standards is
not a requirement. While they are certainly entitled to their opinion,
I would definitely disagree. A quick perusal of http://slashdot.org/
would tend to discredit your remark that, doubt anyone makes a choice
on an MTA (or any other software) based on it's RFC-compliance statement.

As always, selection of tools and their suitability to the task is left
up to the end user.

-- 
Jerry ✌
freebsd.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__

One man's constant is another man's variable.

Alan J. Perlis
___
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: getpwent bug?

2010-07-21 Thread Jens Rehsack

On 07/16/10 18:13, Dan Nelson wrote:

Hi Dan,


In the last episode (Jul 16), Jens Rehsack said:

On 07/16/10 15:07, Dan Nelson wrote:

In the last episode (Jul 16), Jens Rehsack said:

Could you please take a look to my other mail (getgrent related) - there
seems another bug ...


Do you have another one-liner that will reproduce it?  A simple
/usr/bin/getent group doesn't return dupes for me.  Oddly enough, the
*grent code doesn't use an internal counter, so the bug you found in
endpwent doesn't exist in endgrent (afaik; the nsswitch code isn't that
easy to read).


Not really a one-liner:
perl -MData::Dumper -e 'setgrent; my %dupchk; while( my ( $name, $grpass,
$gid, $members ) = getgrent() ) { print $name is returned more than once
(No $dupchk{$name} comes here)\n if( $dupchk{$name}++ ); print Dumper( [
$name, $grpass, $gid, $members ] ) };'

setgrent() doesn't work here.


I ran that and got dupes for group entries that exist both in /etc/groups and
my LDAP source, but that's expected.


You can see here
http://www.cpantesters.org/cpan/report/f5100ac6-9418-11df-9ebc-c4a68065c34d
the typical error picture. FreeBSD is the only system, where this error
occurs.

I rate it as a bug - but I will write merge code for the duplicated entries.

Best regards,
Jens
___
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: Strange filesystem problems

2010-07-21 Thread Andrea Venturoli

Il 07/21/10 14:00, A. Wright ha scritto:



On Wed, 21 Jul 2010, Andrea Venturoli wrote:


Let's say I have directory foo; under foo I have bar which keeps
thousands of files (in several subdirectories).

I do:

%cd /xyzzy/foo
%pwd
xyzzy/foo
%rm -fR bar
%pwd
pwd: .: Permission denied


At this point, I would suspect that you may have the UCHG flag
set. What do:
ls -lod /xyzzy/foo/bar
and
ls -lo /xyzzy/foo/bar
say?


Nope.
ls says no flags are there; btw I'm repeatedly creating bar, so I'm 
sure I'm not setting any flags on it or anything therein.

Besides, would'nt that prevent rm from working?

 bye  Thanks
av.
___
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: Are kernel stress test results displayed online?

2010-07-21 Thread Yuri

On 07/21/2010 07:56, Peter Holm wrote:

There's not much to report, but if you have spare time you could run
the test your self. Different HW is always a good test parameter.
   


Does this mean that there were no failures at all for years?

The reason why I asked was because I started getting system freezes on 
8.1-PRERELEASE under heavy use. Before, 8.0-STABLE was very stable under 
the same load. So I remembered about kernel stress tests in case they 
might have higher failure rate after some recent 8.1 changes. But of 
course there are other factors like, possible NVidia driver updates or 
maybe memory getting bad, etc.


Yuri
___
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: WLAN stops working when idle

2010-07-21 Thread Paul B Mahol
On Mon, Jul 19, 2010 at 11:12 PM, Leonardo M. Ramé martinr...@yahoo.com wrote:
 I have noted that my wlan stops responding when the O.S. does not use the 
 network for a while (10 minutes aprox), and I have to do ifconfig wlan0 down 
  ifconfig wlan0 up  dhclient wlan0 to reconnect.

 The network card is the internal Wi-Fi from my Dell Inspiron 1525, and uses 
 ndis to wrap the WinXp driver.

 /etc/rc.conf:
 ...
 wlans_ndis0=wlan0
 ifconfig_wlan0=WPA SYNCDHCP
 wpa_supplicant_enable=YES
 ...

 /etc/wpa_supplicant.conf

 ctrl_interface=/var/run/wpa_supplicant
 ctrl_interface_group=wheel
 ap_scan=1
 network={
        ssid=strada
        key_mgmt=WPA-PSK
        psk=martin13
 }

 uname -a:

 FreeBSD inspiron-1521 8.1-RC2 FreeBSD 8.1-RC2 #0: Tue Jun 29 20:42:40 UTC 
 2010     r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386


 Any hint?

You got any output from wpa_supplicant and console?

You could check this NDISulator code:
http;//gitorious.org/NDISulator

I did some work on new state switching on net80211 layer, so if
connection get lost for any reason it will try to reassociate (code on
HEAD fails badly in this scenario almost always).
I also did support for wep and wpa(2) via bsd driver (you can still
use ndis driver - I'm talking about wpa_supplicant _drivers_) but I
did not tested it much.
You should also run ndis_events(8) so that events from ndis driver are
passed to wpa_supplicant(8).
What version of driver are you using? Newest ones (=5.1 API) I tested
exibit at least one bug in NDISuator which I did not resolved yet.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Bash logging: two questions

2010-07-21 Thread jimbob palmer
Hello,

I would like to run a bash script but to log output and exit codes.
Essentially I would like to run the script with bash -x, but for that
output to the log to go to a file, and the normal output as from
running a normal script to go to the terminal.

That's my first question :)

My second question is about history. Bash has a -h option to remember
the location of commands as they are looked up. Is it possible for
this to be recorded in the history? e.g. if I run ls, it would record
/bin/ls to the bash history file.

Many thanks.

JB
___
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: Are kernel stress test results displayed online?

2010-07-21 Thread Peter Holm
On Wed, Jul 21, 2010 at 01:01:26AM -0700, Yuri wrote:
 Before one of the releases, I remember, kernel stress tests results were 
 online.
 Now I can't find them.
 

I do not update that list any more, because there is no need IMHO.

 Are they run? (I guess they must be.)

Oh, yes. All of the time.

 Particularly would be interesting to see tests for FreeBSD 8.1-RC2, 
 FreeBSD 8.0-STABLE and FreeBSD-9.0.

There's not much to report, but if you have spare time you could run
the test your self. Different HW is always a good test parameter.

 Also does stress test only cover kernel or device drivers as well?
 

The stress2 test primarily targets the kernel.

 Thanks,
 Yuri

-- 
Peter
___
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: Help with setting up a mail server

2010-07-21 Thread Cristiano Deana
On Tue, Jul 20, 2010 at 3:26 PM, Aryeh M. Friedman
aryeh.fried...@gmail.com wrote:

 I am a consultant and was retained by my client to setup qmail or exim
 on a VPS running 8.0-STABLE (i386). After setting up the DNS (A record
 and MX record) we have been unable to send or receive mail.

steps:

a) check if your dns are correct:
# dig yourdomain.com mx
(eg:)
mail.yourdomain.com
# telnet mail.yourdomain.com 25

does it reply or not?

a) reply
 check if your mta is cofigured correctly:
 telnet mail.yourdomain.com 25 # write:
  ehlo gmail.com
  mail from: aryeh.fried...@gmail.com
  rcpt to: example_u...@yourdomain.com
  data
  Subject: Test
  .

 does it reply with a
 2XX code? with a 4XX code? 5XX code?

b) doesn't reply
 does mail.yourdomain.com resolve to your mailserver's IP?
 is your daemon runnig?

p.s
if you give us more REAL information (domain, ip, etc) we can hel you more.



-- 
Cris, member of G.U.F.I
Italian FreeBSD User Group
http://www.gufi.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


Re: system hangs on; Probing devices, please wait (this can take a while)...

2010-07-21 Thread Bruce Cran
On Wed, 21 Jul 2010 09:04:53 +
Thomas Mueller mueller6...@bellsouth.net wrote:

 I wonder if FreeBSD is the only OS with 
 Probing devices, please wait (this can take a while)... 
 
 Nothing like this occurs in NetBSD or Linux; I've also installed
 various DOSes (MS-DOS 4.01 and upgrade to 5; DR-DOS 7.03 and FreeDOS;
 OS/2 1.3 through (Warp) 4) although MS-DOS 4.01 (back in 1990) and
 OS/2 had their own problems.

Only FreeBSD has sysinstall - that message gets displayed when
sysinstall starts as it checks what devices are available for it to
register internally.  It's a message from userspace, not the kernel.
-- 
Bruce Cran
___
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: Unabel to download Java Patch from http://www.eyesbeyond.com/

2010-07-21 Thread Pieter de Goeje
On Wednesday 21 July 2010 10:37:54 Martin Schweizer wrote:
 Since some days I tried to download the latest Java patch from
 http://www.eyesbeyond.com/. But the site is not reachable. I tried it from
 a europe and from us server but no luck. Do you have any ideas?

I can recommend installing openjdk16 instead of jdk16. It is a much more 
recent version of Java.

- Pieter
___
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: system hangs on; Probing devices, please wait (this can take a while)...

2010-07-21 Thread Rich






From: Dave d...@g8kbv.demon.co.uk
To: Bruce Cran br...@cran.org.uk
Cc: freebsd-questions@freebsd.org
Sent: Wed, July 21, 2010 3:56:50 AM
Subject: Re: system hangs on; Probing devices, please wait (this can take a 
while)... 

On 20 Jul 2010 at 23:46, Bruce Cran wrote:

 On Tue, 20 Jul 2010 14:59:04 -0700 (PDT)
 Rich rl...@pacbell.net wrote:
 
  Any ideas anyone ? I'm stuck. Cannot install FreeBSD on my computer.
  Every other OS besides FreeBSD boots up and installs. What else can
  I check?
 
 It looks like it's stopping/spinning at the section where it parses
 the slices/partitions. I don't know why it would be getting stuck
 there, though.
 

Maybe because there might be old RAID metadata from being in one of those 
stupid 
fakeraids.  I had this problem last year and somehow (can't remember) wiped 
the drives and got it working. The system worked for about a year then crashed. 
I thought it a good time to move to 9.0 but now having the same problem again. 
I 
didn't put them back in the fakeraid. From what I understand FreeBSD can't be 
installed on those fakeraids. Maybe it has something to do with that.



 -- 
 Bruce Cran
 

Hi, I'm not a developer (of OS's at least) but from that DEBUG: 
list, it almost looks like it thinks it can see just about every 
hardware device it knows about, existing or not, and is trying to 
use them all.

I know someone mentioned memory tests, but I didn't see what results 
they came up with, or how much memory you have.  I do know however 
from my own frustrating experience in the past, that often some 
software will run just fine on bad memory, if the problems don't 
screw up the code or it's workspace.  Where as other software will 
crash badly, making you think the program is bad.   The same is 
sadly true of hard disk errors too!

Did you run a recent memtest86 (self boot CD) and let it do several 
Full passes (can take many many hours per pass if you have lots of 
ram!  And or a not so fast CPU) ?

Just idle musings.

Dave B.

No I didn't run a mem test since every other OS works perfectly fine. There's 
something in the FreeBSD code that is hanging. When it hangs it says Probing 
devices (this may take a while). What does a while mean? A few seconds? few 
hours? few days? That's a really dumb message IMHO.



___
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


Re: Bash logging: two questions

2010-07-21 Thread Anonymous
jimbob palmer jimbobpal...@gmail.com writes:

 Hello,

 I would like to run a bash script but to log output and exit codes.
 Essentially I would like to run the script with bash -x, but for that
 output to the log to go to a file, and the normal output as from
 running a normal script to go to the terminal.

Dunno about bash but in zsh it's easy

  #! /usr/bin/env zsh
  PS4='+%i:%N:%? '
  exec 2trace.log
  set -x

  # here goes the main script
  foo=5
  bar=$(date)
  echo foo=$foo, $bar
  false
  echo

It should work in sh(1) except you'll not see exit values in prompt.

Seems like bash doesn't have tcsh-like features: `%?' and printexitvalue.
I guess you'll have to write your own wrapper to put `$?' into stderr
after each command.

 My second question is about history. Bash has a -h option to remember
 the location of commands as they are looked up. Is it possible for
 this to be recorded in the history? e.g. if I run ls, it would record
 /bin/ls to the bash history file.

If bash has smth like zshaddhistory() it'd be easy...
___
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: Are kernel stress test results displayed online?

2010-07-21 Thread Peter Holm
On Wed, Jul 21, 2010 at 08:02:21AM -0700, Yuri wrote:
 On 07/21/2010 07:56, Peter Holm wrote:
 There's not much to report, but if you have spare time you could run
 the test your self. Different HW is always a good test parameter.

 
 Does this mean that there were no failures at all for years?
 

No, of cause not. Take a look at
http://people.freebsd.org/~pho/stress/log/ls.html for problems
reported. Most if not all have been analyzed and fixed.

 The reason why I asked was because I started getting system freezes on 
 8.1-PRERELEASE under heavy use. Before, 8.0-STABLE was very stable under 
 the same load. So I remembered about kernel stress tests in case they 
 might have higher failure rate after some recent 8.1 changes. But of 
 course there are other factors like, possible NVidia driver updates or 
 maybe memory getting bad, etc.
 
 Yuri

I urge you to build a debug kernel and report the details of the
problem. If you have a specific test scenario I'd be happy to try and
reproduce it.

-- 
Peter
___
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: Are kernel stress test results displayed online?

2010-07-21 Thread Yuri

On 07/21/2010 09:55, Peter Holm wrote:

I urge you to build a debug kernel and report the details of the
problem. If you have a specific test scenario I'd be happy to try and
reproduce it.
   


I just updated the kernel to RC2, if I get one more freeze I will 
rebuild and run it as debug.


BTW are there instructions how to build debug kernel (8.1) ?
Somehow googling building debug FreeBSD kernel doesn't fetch 
instructions for *debug* kernel, it only fetches instructions for just 
kernel which I do frequently. I know there should be WITNESS and 
DIAGNOSTIC options enabled, also coredumps should be enabled. But are 
there step by step instructions online?


Also when the system freezes will it dump core? Or how do I make it to 
dump core if there is no SEGV?


Yuri
___
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: Help with setting up a mail server

2010-07-21 Thread krad
On 21 July 2010 16:24, Cristiano Deana cristiano.de...@gmail.com wrote:

 On Tue, Jul 20, 2010 at 3:26 PM, Aryeh M. Friedman
 aryeh.fried...@gmail.com wrote:

  I am a consultant and was retained by my client to setup qmail or exim
  on a VPS running 8.0-STABLE (i386). After setting up the DNS (A record
  and MX record) we have been unable to send or receive mail.

 steps:

 a) check if your dns are correct:
 # dig yourdomain.com mx
 (eg:)
 mail.yourdomain.com
 # telnet mail.yourdomain.com 25

 does it reply or not?

 a) reply
  check if your mta is cofigured correctly:
  telnet mail.yourdomain.com 25 # write:
  ehlo gmail.com
  mail from: aryeh.fried...@gmail.com
  rcpt to: example_u...@yourdomain.com
  data
  Subject: Test
  .

  does it reply with a
  2XX code? with a 4XX code? 5XX code?

 b) doesn't reply
  does mail.yourdomain.com resolve to your mailserver's IP?
  is your daemon runnig?

 p.s
 if you give us more REAL information (domain, ip, etc) we can hel you more.



 --
 Cris, member of G.U.F.I
 Italian FreeBSD User Group
 http://www.gufi.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



while we are on the topic of debugging I would recomend exim as an MTA. I
manage a few large enterprise mail systems with 10M + active accounts. A lot
of them are legacy systems that we gained through acquisitions. I generally
have to support them until we can get the accounts migrated onto the main
platform. They are a mixture of exim, postfix, qmail, and sendmail, and
quite often are in a poor state when we first get our hands on them. I have
to say when you are getting mail routing issues exim is by the far the
easiest to debug mainly due to the -bt option. When you combine it with the
debug flag it produced a very detailed output on the mail routing. I have
never found such a feature in all the other MTA's above.

The configs are also very readable unlike sendmail.
___
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: system hangs on; Probing devices, please wait (this can take a while)...

2010-07-21 Thread Randi Harper
On Wed, Jul 21, 2010 at 8:45 AM, Rich rl...@pacbell.net wrote:





 
 From: Dave d...@g8kbv.demon.co.uk
 To: Bruce Cran br...@cran.org.uk
 Cc: freebsd-questions@freebsd.org
 Sent: Wed, July 21, 2010 3:56:50 AM
 Subject: Re: system hangs on; Probing devices, please wait (this can take a
 while)... 

 On 20 Jul 2010 at 23:46, Bruce Cran wrote:

 On Tue, 20 Jul 2010 14:59:04 -0700 (PDT)
 Rich rl...@pacbell.net wrote:

  Any ideas anyone ? I'm stuck. Cannot install FreeBSD on my computer.
  Every other OS besides FreeBSD boots up and installs. What else can
  I check?

 It looks like it's stopping/spinning at the section where it parses
 the slices/partitions. I don't know why it would be getting stuck
 there, though.


 Maybe because there might be old RAID metadata from being in one of those 
 stupid
 fakeraids.  I had this problem last year and somehow (can't remember) wiped
 the drives and got it working. The system worked for about a year then 
 crashed.
 I thought it a good time to move to 9.0 but now having the same problem 
 again. I
 didn't put them back in the fakeraid. From what I understand FreeBSD can't be
 installed on those fakeraids. Maybe it has something to do with that.



 --
 Bruce Cran


 Hi, I'm not a developer (of OS's at least) but from that DEBUG:
 list, it almost looks like it thinks it can see just about every
 hardware device it knows about, existing or not, and is trying to
 use them all.

 I know someone mentioned memory tests, but I didn't see what results
 they came up with, or how much memory you have.  I do know however
 from my own frustrating experience in the past, that often some
 software will run just fine on bad memory, if the problems don't
 screw up the code or it's workspace.  Where as other software will
 crash badly, making you think the program is bad.   The same is
 sadly true of hard disk errors too!

 Did you run a recent memtest86 (self boot CD) and let it do several
 Full passes (can take many many hours per pass if you have lots of
 ram!  And or a not so fast CPU) ?

 Just idle musings.

 Dave B.

 No I didn't run a mem test since every other OS works perfectly fine. There's
 something in the FreeBSD code that is hanging. When it hangs it says Probing
 devices (this may take a while). What does a while mean? A few seconds? few
 hours? few days? That's a really dumb message IMHO.



 ___
 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


It's not a memory problem. I've never seen this before. I'll see if I
can take a look at the code tonight (I'm at work right now) and figure
out why you might be getting this. Clearly doing a minimal install (as
some have suggested) isn't going to work because you don't even get to
the menu. I know *what* the code is doing - and this is actually
something we're getting rid of soon. This was written before devfs was
implemented, so it is going through looking for every possible device.
I'm just not sure what order it does it in off the top of my head, so
I don't know what comes after the scan for SCSI disks, as it's clearly
getting through that part just fine. Hmmm.

-- randi
___
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: Emacs splash screen went to textmode only

2010-07-21 Thread Markus Hoenicka

Quoting Ashish SHUKLA ash...@freebsd.org:

And please also evaluate following functions in Emacs (in X11) and  
paste their

output:



This is the output from 23.2.1, i.e. the one which doesn't show the  
fancy splash screen:


(use-fancy-splash-screens-p)
nil

(display-graphic-p)
t

(display-color-p)
t

(image-type-available-p 'xpm)
t

(image-type-available-p 'xbm)
t


For comparison, this is what 23.1.1. reports:

(use-fancy-splash-screens-p)
t

(display-graphic-p)
t

(display-color-p)
t

(image-type-available-p 'xpm)
t

(image-type-available-p 'xbm)
t

The obvious difference is the value of (use-fancy-splash-screens-p).  
Both Emacsen were started with -q -no-site-file to be on a level ground.


regards,
Markus

--
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38


___
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: getpwent bug?

2010-07-21 Thread Dan Nelson
In the last episode (Jul 21), Jens Rehsack said:
 On 07/16/10 18:13, Dan Nelson wrote:
 
 Hi Dan,
 
  In the last episode (Jul 16), Jens Rehsack said:
  On 07/16/10 15:07, Dan Nelson wrote:
  In the last episode (Jul 16), Jens Rehsack said:
  Could you please take a look to my other mail (getgrent related) - there
  seems another bug ...
 
  Do you have another one-liner that will reproduce it?  A simple
  /usr/bin/getent group doesn't return dupes for me.  Oddly enough, the
  *grent code doesn't use an internal counter, so the bug you found in
  endpwent doesn't exist in endgrent (afaik; the nsswitch code isn't that
  easy to read).
 
  Not really a one-liner:
  perl -MData::Dumper -e 'setgrent; my %dupchk; while( my ( $name,
  $grpass, $gid, $members ) = getgrent() ) { print $name is returned
  more than once (No $dupchk{$name} comes here)\n if( $dupchk{$name}++
  ); print Dumper( [ $name, $grpass, $gid, $members ] ) };'
 
  setgrent() doesn't work here.
 
  I ran that and got dupes for group entries that exist both in /etc/groups 
  and
  my LDAP source, but that's expected.
 
 You can see here
 http://www.cpantesters.org/cpan/report/f5100ac6-9418-11df-9ebc-c4a68065c34d
 the typical error picture. FreeBSD is the only system, where this error
 occurs.

I don't know how to read perl's test output; what part of that report
failed, and how do you know it was due to getgrent returning duplicate
values?

BTW - I ran your one-liner above on a SLES 10.2 Linux box and a Solaris 10u7
box, and got duplicate entries where groups existed in both /etc/groups and
LDAP, just like on FreeBSD.  I think you may be relying on behaviour that
getgrent doesn't guarantee on any OS.

-- 
Dan Nelson
dnel...@allantgroup.com
___
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: Emacs splash screen went to textmode only

2010-07-21 Thread Ashish SHUKLA
Markus Hoenicka writes:
 Quoting Ashish SHUKLA ash...@freebsd.org:

 And please also evaluate following functions in Emacs (in X11) and
 paste their
 output:
 

 This is the output from 23.2.1, i.e. the one which doesn't show the
 fancy splash screen:

 (use-fancy-splash-screens-p)
 nil

#v+
(defun use-fancy-splash-screens-p ()
  Return t if fancy splash screens should be used.
  (when (and (display-graphic-p)
 (or (and (display-color-p)
 (image-type-available-p 'xpm))
 (image-type-available-p 'pbm)))
(let ((frame (fancy-splash-frame)))
  (when frame
(let* ((img (create-image (or fancy-splash-image
  (if (and (display-color-p)
   (image-type-available-p 'xpm))
  splash.xpm splash.pbm
   (image-height (and img (cdr (image-size img nil frame
   ;; We test frame-height so that, if the frame is split
   ;; by displaying a warning, that doesn't cause the normal
   ;; splash screen to be used.
   (frame-height (1- (frame-height frame
  ( frame-height (+ image-height 19)))
#v-

Well I use a tiling WM (Xmonad), and to reproduce your issue, I started 12
instances of 'xterm' and then started an Emacs instance with '-q
-no-site-file' which caused Emacs to start with a smaller window where I got a
non-fancy splash screen.

Try starting your Emacs in full-screen mode .e.g. 'emacs -fs'.


 The obvious difference is the value of (use-fancy-splash-screens-p).
 Both Emacsen were started with -q -no-site-file to be on a level
 ground.

HTH
-- 
Ashish SHUKLA  | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
freebsd.org!ashish | http://people.freebsd.org/~ashish/

“If knowledge can create problems, it is not through ignorance that we
can solve them.” (Isaac Asimov)


pgphENdbhvBHI.pgp
Description: PGP signature


Re: Emacs splash screen went to textmode only

2010-07-21 Thread Markus Hoenicka

Quoting Ashish SHUKLA ash...@freebsd.org:


Well I use a tiling WM (Xmonad), and to reproduce your issue, I started 12
instances of 'xterm' and then started an Emacs instance with '-q
-no-site-file' which caused Emacs to start with a smaller window  
where I got a

non-fancy splash screen.

Try starting your Emacs in full-screen mode .e.g. 'emacs -fs'.



That works indeed. That is, I just have to make sure Emacs starts up  
with a sufficient frame height. emacs -g 80x40 is all it takes.


Thanks a lot for your help!
Markus


--
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38


___
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


Strip high bit from text?

2010-07-21 Thread David Kelly
I regularly get email from a Blackberry user which my ISP then adds
this header, X-MIME-Autoconverted: from quoted-printable to 8bit. So
far so good but the result always contains a number of 0xa0's in places
a plain old space belongs. Mutt/vim renders these as ? making a
complete mess of things.

Already use procmail so adding an automatic filter should not be
difficult if only I can come up with on.

Tried tr \240 ' '  testfile | hd and was not able to change the 0xa0
into anything. Have already spent much more time trying to make tr or
sed do the job than it would have taken to knock something out in C, but
I think there should be something laying around already in the base
system to perform this task.

Suggestions? Repair the email while procmail has it? Reconfigure mutt
and/or vim?

-- 
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.
___
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


Install Apache in qjail?

2010-07-21 Thread Ed Flecko
Hi folks,
I'm using the new qjail, and I've created a new jail named
webserver, but I don't see how you install a package (in this case,
Apache 2.2.15) inside the jail?

I know qjail is pretty new; is the best source of documentation at the
moment the man pages?

Thank you,
Ed
___
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: Strip high bit from text?

2010-07-21 Thread Chuck Swiger
Hi, all--

On Jul 21, 2010, at 3:34 PM, David Kelly wrote:
 I regularly get email from a Blackberry user which my ISP then adds
 this header, X-MIME-Autoconverted: from quoted-printable to 8bit. So
 far so good but the result always contains a number of 0xa0's in places
 a plain old space belongs. Mutt/vim renders these as ? making a
 complete mess of things.

Those are Unicode/UTF-8 non-breaking-space characters, generally coming from 
HTML-formatted email.

 Already use procmail so adding an automatic filter should not be
 difficult if only I can come up with on.
 
 Tried tr \240 ' '  testfile | hd and was not able to change the 0xa0
 into anything. Have already spent much more time trying to make tr or
 sed do the job than it would have taken to knock something out in C, but
 I think there should be something laying around already in the base
 system to perform this task.
 
 Suggestions? Repair the email while procmail has it? Reconfigure mutt and/or 
 vim?

If you've got procmail in the loop already, then calling iconv  as a filter 
like so:

   iconv -f utf-8 -t ascii

...is likely to help.  Another choice would be to switch to using a 
MIME+Unicode/UTF-8 aware mail reader.

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


rmconfig from all ports tree

2010-07-21 Thread claudiu vasadi
hello guys,

is there a way to do make rmconfig for all ports at once ?
___
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: rmconfig from all ports tree

2010-07-21 Thread claudiu vasadi
one solution I just created would be:

for i in `find /usr/ports/ -type directory -print`; do `cd $i  make
rmconfig`;done

but I am wondering if there is a official way. man portsclean did not give
me any options to do it.


Another thing would be to make rmconfig in all dir's that are required to be
installed by a particular meta-port, for instance kde/gnome/xfce.


___
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: Install Apache in qjail?

2010-07-21 Thread Aiza

Ed Flecko wrote:

Hi folks,
I'm using the new qjail, and I've created a new jail named
webserver, but I don't see how you install a package (in this case,
Apache 2.2.15) inside the jail?

I know qjail is pretty new; is the best source of documentation at the
moment the man pages?




Read the qjail man page again and this time, study what its telling 
you. It's all explained in detail. BE SURE YOU UNDERSTAND what the 
create command ip address section is telling you.


The simplest method is
start the jail that you want to install apache in.
Open that jails console.
issue pkg_add -r apache

If this apache jail is going to use the standard port 80 to listen on, 
then the host and any other jails can not use that port number.


For your info. Being in the jails console you config your jail the same 
way you would config your host.




___
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: rmconfig from all ports tree

2010-07-21 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

claudiu vasadi wrote:
 one solution I just created would be:
 
 for i in `find /usr/ports/ -type directory -print`; do `cd $i  make
 rmconfig`;done
 
 but I am wondering if there is a official way. man portsclean did not give
 me any options to do it.
 
 
 Another thing would be to make rmconfig in all dir's that are required to be
 installed by a particular meta-port, for instance kde/gnome/xfce.

Hi Claudiu,

You can use one of these two targets:

rmconfig   - Remove the options config for this port.
rmconfig-recursive - Remove the options config for this port and
 all dependencies.

Or, if you want to use a big hammer and remove all configs for all
ports, use:

find /var/db/ports -type f -name options -print | xargs rm

Hope that helps,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFMR40E0sRouByUApARAiAxAJ4tTVUwd1HdU1ZqZsTZdpmmHfK5swCdG4CL
OG68m0jqHWogajdG0rn/ZSU=
=ns+l
-END PGP SIGNATURE-

___
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: rmconfig from all ports tree

2010-07-21 Thread Benjamin Lee
On 07/21/2010 04:38 PM, claudiu vasadi wrote:
 hello guys,
 
 is there a way to do make rmconfig for all ports at once ?

The fastest way is:

rm -rf /var/db/ports/*

but this breaks the abstraction.  The right thing to do would be to
make rmconfig in each port directory.


-- 
Benjamin Lee
http://www.b1c1l1.com/



signature.asc
Description: OpenPGP digital signature


Re: rmconfig from all ports tree

2010-07-21 Thread claudiu vasadi
Hi Greg,

Thanks for the rmconfig-recursive. I did not know about 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: Strange filesystem problems

2010-07-21 Thread ill...@gmail.com
On 21 July 2010 05:20, Andrea Venturoli m...@netfence.it wrote:
 Hello.

 I'm experiencing a strange problem on a 7.2p8/i386 box.
 This is not critical, since I have a workaround, but it's annoying and I'm
 also curious :-)

 Let's say I have directory foo; under foo I have bar which keeps
 thousands of files (in several subdirectories).

 I do:

 %cd /xyzzy/foo
 %pwd
 xyzzy/foo
 %rm -fR bar
 %pwd
 pwd: .: Permission denied
 %cd ..
 %cd foo
 %pwd
 xyzzy/foo

 This is a local UFS filesystem, so it shouldn't be a network problem; no
 error shows up in the logs; in bar I don't have any symlink or special
 node, only plain files and directories.

 What should I check?


I note that /bin/[t]csh uses the external /bin/pwd
whereas /bin/sh has it as a builtin.  I know (virtu-
ally) nothing about bash nor zsh.

I would, in any case, suspect the shell, and try
at least one other variation.

I can't replicate your behaviour here.

-- 
--
___
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: rmconfig from all ports tree

2010-07-21 Thread claudiu vasadi
in the meantime I wrote the following quick script:



#!/bin/sh


# Create a list of all dir's
find /usr/ports/ -depth 2 -type directory -print  ports_structure

# for each discovered dir, cd into it and do rmconfig
file=ports_structure
while read dr1
do
cd $dr1;make rmconfig
done$file




very simple script if you ask me. tested and working. Any
suggestions/ideas/opinions are welcomed.
___
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: rmconfig from all ports tree

2010-07-21 Thread Chip Camden
Quoth claudiu vasadi on Thursday, 22 July 2010:
 in the meantime I wrote the following quick script:
 
 
 
 #!/bin/sh
 
 
 # Create a list of all dir's
 find /usr/ports/ -depth 2 -type directory -print  ports_structure
 
 # for each discovered dir, cd into it and do rmconfig
 file=ports_structure
 while read dr1
 do
 cd $dr1;make rmconfig
 done$file
 
 
 
 
 very simple script if you ask me. tested and working. Any
 suggestions/ideas/opinions are welcomed.
 ___

Since you asked, you don't really need to go to a file:

find /usr/ports/ -depth 2 -type directory -print | while read dr1
do
cd $dr1;make rmconfig
done

-- 
Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com| http://chipsquips.com


pgpRU5W8vo11k.pgp
Description: PGP signature


Re: new jail utility is available. announcement.

2010-07-21 Thread Adam Vande More
On Wed, Jul 21, 2010 at 4:52 AM, Aiza aiz...@comclark.com wrote:


  Not yet, when I have a spare box I might, although I quite like using
 zfs for jails as you can limit the disk usage dynamically per zfs
 filesystem and I didnt see any support there yet, even basic support
 like there is with ezjail would be nice.


 Zfs was left out because its over kill. Sparse image jails gives the same
 protection at a 10th of the overhead.


You didn't factor in slowness due to having a file-backed filesystem.  While
probably pretty low, it's definitely there and not good in an io heavy
jail.  Also, the host will have to mount a UFS based FS, and cache it so
you're going to have increased memory usage.

Ideal setup for an io intensive jaill(eg database) is to be bound to
compressed ZFS file-system, not a sparse image located on such a setup.

I'm not sure what overhead you're referring too.  If it's hard to tie into
your application, you are probably correct, but from a host perspective you
are increasing overhead.

There are advantages to sparse or raw file as well, it would be nice to have
a choice.

-- 
Adam Vande More
___
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: Install Apache in qjail?

2010-07-21 Thread Ryan Coleman
Wow man, way to be a dick.


On Jul 21, 2010, at 19:10, Aiza aiz...@comclark.com wrote:

 Ed Flecko wrote:
 Hi folks,
 I'm using the new qjail, and I've created a new jail named
 webserver, but I don't see how you install a package (in this case,
 Apache 2.2.15) inside the jail?
 I know qjail is pretty new; is the best source of documentation at the
 moment the man pages?
 
 Read the qjail man page again and this time, study what its telling you. 
 It's all explained in detail. BE SURE YOU UNDERSTAND what the create command 
 ip address section is telling you.
 
 The simplest method is
 start the jail that you want to install apache in.
 Open that jails console.
 issue pkg_add -r apache
 
 If this apache jail is going to use the standard port 80 to listen on, then 
 the host and any other jails can not use that port number.
 
 For your info. Being in the jails console you config your jail the same way 
 you would config your host.
 
 
 
 ___
 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


Re: Install Apache in qjail?

2010-07-21 Thread Peter Boosten
On 22-7-2010 2:10, Aiza wrote:
 
 If this apache jail is going to use the standard port 80 to listen on,
 then the host and any other jails can not use that port number.

Nonsense!

Since the IP address assigned to the jail is the only one the jail is
seeing, Apache will only bind to that IP address. So you can have as
many jails running Apache on port 80 as you like, because they only will
bind to the IP address belonging to the jail.

The only 'challenge' will be configuring Apache on the host itself to
only listen to one IP address, instead of *, which is piece of cake.

Peter

-- 
http://www.boosten.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


remote syslog program specification question

2010-07-21 Thread Dave Berg
Hi,

I've set up remote syslog, and want to have a program specification that will 
send some messages to the remote server.   Right now, I've got the usual 'send 
everything to the loghost' in syslog.conf:

*.*@loghost 


and what I want to do is:

send everything from any facility.level to the loghost EXCEPT things from 
$program that's level .info or lower. (so anything that's from $program.notice 
or higher goes to the log server.

This is probably blindingly obvious, but I'm too sober to figure it out.   

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: remote syslog program specification question

2010-07-21 Thread Olivier Nicole
 send everything from any facility.level to the loghost EXCEPT things from 
 $program that's level .info or lower. (so anything that's from 
 $program.notice 
*.notice @loghost

If your program logs to a give facility, for example your program logs
to local7:

local7.notice @loghost 

anything using the facility local7, with a level equal or greater than
notice, will be sent to the loghost.

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


Eclipse build fails

2010-07-21 Thread Caleb Stein
the last lines of the output can be found here:  
http://pastebin.com/8VAdvEjH


How should I fix this?
___
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: Emacs splash screen went to textmode only

2010-07-21 Thread Ashish SHUKLA
Markus Hoenicka writes:
 Quoting Ashish SHUKLA ash...@freebsd.org:

 Well I use a tiling WM (Xmonad), and to reproduce your issue, I started 12
 instances of 'xterm' and then started an Emacs instance with '-q
 -no-site-file' which caused Emacs to start with a smaller window
 where I got a
 non-fancy splash screen.
 
 Try starting your Emacs in full-screen mode .e.g. 'emacs -fs'.
 

 That works indeed. That is, I just have to make sure Emacs starts up
 with a sufficient frame height. emacs -g 80x40 is all it takes.

 Thanks a lot for your help!
 Markus

You're welcome :)

-- 
Ashish SHUKLA  | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
freebsd.org!ashish | http://people.freebsd.org/~ashish/

“There are 10 types of people in this world, those who understand
binary and those who do not” (anonymous)


pgppLcTlJXVh1.pgp
Description: PGP signature


Is software update in a working state yet?

2010-07-21 Thread Jeff Molofee
I've noticed software update pop up on the screen quite a bit lately.  
Initially it popped up and did nothing.  Now in 8.1-RC2 it pops up and 
shows me that I actually have updates.  When I click update, it seems 
like it's actually attempting to upgrade the listed packages, but the 
entire process always ends with command 'update-packages' is not known.


Do I have something misconfigured or is it still incomplete?

___
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