Re: performance impact of large /etc/hosts files

2007-12-12 Thread Erich Dollansky

Hi,

Nikos Vassiliadis wrote:

On Wednesday 12 December 2007 04:06:01 Erich Dollansky wrote:

There's no clean solutions to getting different lookups per-user that


Both ipfw and pf support tables, which is what you


I would like to avoid having a fire wall running on each machine.


Out of curiosity, how big your hosts file is?


It is above 600KB since I included also the information I found on sites 
like this:


http://www.mvps.org/winhelp2002/hosts.htm

Since I joined my private file with this one

http://www.mvps.org/winhelp2002/hosts.txt

it grew to the mentioned 600KB from below 10KB.

If you still see unwanted content, just add a line and it will be gone 
during your next visit.


The beauty is, Internet feels still faster then before.

It has one advantage over all those ad removal tools. It filters what I 
do not like. It has nothing to do with censorship, it just gets rid of 
all the crap hanging around on every corner of a web page trying to sell 
you anti virus software or larger dicks.


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


Re: How to replace two strings in a file in the same time withsed command ?

2007-12-12 Thread Halid Faith
I tried it, but I get an error;

cut: boby, e, 656a, No such file or directory
cut: allen, e, 987c, No such file or directory
...


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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Nikos Vassiliadis
On Wednesday 12 December 2007 10:05:28 Erich Dollansky wrote:
 The beauty is, Internet feels still faster then before.

 It has one advantage over all those ad removal tools. It filters what I
 do not like. It has nothing to do with censorship, it just gets rid of
 all the crap hanging around on every corner of a web page trying to sell
 you anti virus software or larger dicks.

I'll give it a try. It may be helpful for my lossy-56Kbps-modem
internet-experience at home!

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


Re: How to replace two strings in a file in the same time withsed command ?

2007-12-12 Thread Halid Faith
I tried it, but I get an error;

cut: boby, e, 656a, No such file or directory
cut: boby, e, 656a, No such file or directory
cut: allen, e, 987c, No such file or directory
cut: allen, e, 987c, No such file or directory
...

here's my script
for i in `cat file1` ; do
sed -e s/old1/new1 `cut -d, -f 1 ${file1}/g -e s/old2/`cut -d, -f 3
${file1}`/g file2  file3
done

when I run myscript I get an error as above.

-d option of cut command could not run.



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


Re: Connecting networks

2007-12-12 Thread Alaor Barroso de Carvalho Neto
2007/12/12, Ian Smith [EMAIL PROTECTED]:

 Should be 'defaultrouter', but then it's a route to an apparent local
 router, whereas your em0 appears to be your public internet connection?


Yes, it's default router, like I said I was not in my work then I wrote by
myself this lines, like I didn't touch the defaultrouter line since the
install I guess it's correct, my fault. Yes, em0 is my public connection,
but it's not connected to the external network yet, that's why my default
router is 192.168.1.80 (that is my current gateway, connected with the
external world, and who I want to be replaced by this BSD box)

Hopefully you've just mis-remembered that netmask: it's non-contiguous.
 .224 perhaps?


My fault again. I messed up /27 with .224.


I think this is at the core or your issue.  Let's assume that a box on
 xl1, say 192.168.2.100, wants to talk with a box on xl2, say 10.10.0.100

 192.168.2.100 needs either your box (192.168.2.90) as its default route,
 or it needs to have added a specific route for 10.10 via your box.

 Similarly, 10.10.0.100 needs either your box (10.10.0.50) as its default
 route, or it needs to have added a specific route for 192.168.2 via you.

 Unless both of these conditions are true, packets will not get (or get
 back) to where they're supposed to go, even if your box setup is all ok.


The The machines is 192.168.1 aren't using my BSD box like it's default
gateway it, so it may be the problem? But, like I've said, this is the
second time I try to put the things to work, the first time I've set the
192.168.1 machines to use my bsd as default gatway and didn't work also. But
I gonna change it to test again. My machines in 192.168.2 are all using
192.168.2.90 as it gateway already.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RELENG_7 and diablo-jdk

2007-12-12 Thread Daniel Molina Wegener

Hello,

¿Is there any problem if I run diablo-jdk-1.5_07 under RELENG_7?
I mean, ¿is the diablo-jdk binary compatible with RELENG_7?

Thanks in advance...
-- 
 .O. | Daniel Molina Wegener   | C/C++ Developer
 ..O | dmw [at] unete [dot] cl | FOSS Coding Adict
 OOO | FreeBSD  Linux User| Standards Rocks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mounting Western Digital USB drive?

2007-12-12 Thread Alex Zbyslaw

Patrick Baldwin wrote:


Hi, I'm trying to mount a 160 GB Western Digital USB 2.0 drive on a
FreeBSD 6.2 system.  This seemed like it should be relatively simple,
but:

webmail# mount /dev/da0s1 /mnt/usbdrive
mount: /dev/da0s1 on /mnt/usbdrive: incorrect super block

OK, it seemed a good chance the USB drive was formatted with NTFS, so 
I tried:


webmail# mount_ntfs /dev/da0s1 /mnt/usbdrive
mount_ntfs: /dev/da0s1: Invalid argument

Further reading on mount_ntfs suggested that even if I got it to
work, it's not quite what I want:  I want read  write access
with compressed files supported.


If it doesn't mount as NTFS then FAT32 seems like a distinct 
possibility.  Try file -s /dev/da0s1 and see what it says e.g.


$ file -s /dev/ad10s6
/dev/ad10s6: x86 boot sector, code offset 0x58, OEM-ID MSWIN4.1, 
sectors/cluster 32, reserved sectors 34, Media descriptor 0xf8, heads 
255, hidden sectors 63, sectors 42299082 (volumes  32 MB) , FAT (32 
bit), sectors/FAT 10323, reserved3 0x80, serial number 0x43937937, 
label: SAMSUNG


If it is NTFS (or you reformat it to be) then maybe ntfs-3g is what you 
want (should be in ports) but I've never used it.


If all else fails, can you connect to a a Windows machine and see what 
it thinks it is?  I fail to remember how you figure out file system type 
in Windows but right-click-properties on the disk might do it.


--Alex




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


Re: Connecting networks

2007-12-12 Thread Ian Smith
On Wed, 12 Dec 2007, Alaor Barroso de Carvalho Neto wrote:
  2007/12/12, Ian Smith [EMAIL PROTECTED]:
   Should be 'defaultrouter', but then it's a route to an apparent local
   router, whereas your em0 appears to be your public internet connection?

  Yes, it's default router, like I said I was not in my work then I wrote by
  myself this lines, like I didn't touch the defaultrouter line since the
  install I guess it's correct, my fault. Yes, em0 is my public connection,
  but it's not connected to the external network yet, that's why my default
  router is 192.168.1.80 (that is my current gateway, connected with the
  external world, and who I want to be replaced by this BSD box)

Ok.  Will this box be connecting some/all of these subnets to the world?

   I think this is at the core or your issue.  Let's assume that a box on
   xl1, say 192.168.2.100, wants to talk with a box on xl2, say 10.10.0.100
  
   192.168.2.100 needs either your box (192.168.2.90) as its default route,
   or it needs to have added a specific route for 10.10 via your box.
  
   Similarly, 10.10.0.100 needs either your box (10.10.0.50) as its default
   route, or it needs to have added a specific route for 192.168.2 via you.
  
   Unless both of these conditions are true, packets will not get (or get
   back) to where they're supposed to go, even if your box setup is all ok.

  The The machines is 192.168.1 aren't using my BSD box like it's default
  gateway it, so it may be the problem? But, like I've said, this is the
  second time I try to put the things to work, the first time I've set the
  192.168.1 machines to use my bsd as default gatway and didn't work also. But
  I gonna change it to test again. My machines in 192.168.2 are all using
  192.168.2.90 as it gateway already.

Well, as above.  In your scenario all of the boxes in each of your 3
local subnets will have to route packets for the other 2 subnets via
your box's address in that subnet, either as their default route or by
adding specific routes for each of the 'foreign' subnets via your box. 

Tricky unless you have admin control of all boxes' routing, especially
in an 'anything that can happen will happen' environment like a campus,
unless this box is going to be the default route for all subnets anyway?

cheers, Ian

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


mounted cd and tray locking

2007-12-12 Thread Andriy Gapon

I recently noticed that FreeBSD doesn't prevent tray opening (via a
button on CD/DVD drive) even if I mount a CD with ISO 9660 filesystem on
it. This at least happens with ATAPI CD drive (acd driver/device).

Maybe my memory is failing me but I seem to remember times when mounting
a CD locked a tray. Shouldn't this be a more reasonable behavior ?

Also, I think that it would be good if tray got locked on opening a
cd/acd device (e.g. dd if=/dev/acd0).

BTW, my system is 6.2.

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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Alex Zbyslaw

Nikos Vassiliadis wrote:


On Wednesday 12 December 2007 04:06:01 Erich Dollansky wrote:
 


There's no clean solutions to getting different lookups per-user that
I
 


The clen solution is hosts.
   



But hosts is operating system-wide.

Both ipfw and pf support tables, which is what you
want, large sets or unrelated (addresses|networks).
Both of them support UID matching as a target
(caution: this feature is not mpsafe on FreeBSD-6).
 

I don't understand how you think any firewall would do this.  Firewalls 
will block based on IP addresses, whereas what I do (pointing numerous 
ad sites at a local apache vhost) works based on names.  I have no clue 
if the ad sites share IP addresses with anything else, nor do I care; 
nor do I care if some ad site has 50 different IP addresses because I 
never resolve the real IP.


To take a random, made up example:

ads.useful.site = 10.1.1.1
www.useful.site = 10.1.1.1

Using hosts (or DNS) I can make ads.useful.site instead = 192.168.1.1

or

ads.useful.site = 101.1.1 - 10.1.1.255

but I'm going to spend *forever* before I get all those IP addresses 
from a round-robin DNS entry to put into some ipfw table, and if any of 
those addresses also hosts the main site, I end up blocking that too.


I don't see how a firewall is appropriate for this (hosts.allow, 
likewise).  The point of the exercise is to never even contact the ad host.


If I've misunderstood something about your approach, please enlighten me.

--Alex



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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Alex Zbyslaw

Heiko Wundram (Beenic) wrote:


Am Mittwoch, 12. Dezember 2007 13:01:14 schrieb Alex Zbyslaw:
 


snip explanation
I don't see how a firewall is appropriate for this (hosts.allow,
likewise).  The point of the exercise is to never even contact the ad host.
   



Transparent proxy with squid on the firewall? There's even plugins to manage 
exactly this kind of ad-blocking with squid; although I don't currently know 
the extension's name.


This is pretty much going to be your only option to do this in a centralized 
fashion.


 

Squid may well be an alternative solution, but it's not, imho, a 
firewall solution as Nikos was proposing.


I have zero experience of squid beyond reading about it, but it has 
always sounded like a major resource hog.  Perhaps just running one 
plugin to do just this would be OK?


The advantage of /etc/hosts is simplicity.  For a small home network of 
BSD machines it's pretty trivial to propagate updates.  Not even *that* 
hard to copy the file to a couple windows machines.  Beyond that, the 
updates could get pretty tedious.


For a network-wide, multi-OS solution I would still look at DNS just 
because it's more lightweight than squid.  Which is not to say that 
someone else shouldn't reach an alternate conclusion :-)  Always good to 
know what the alternatives are!


Best,

--Alex

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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Heiko Wundram (Beenic)
Am Mittwoch, 12. Dezember 2007 13:01:14 schrieb Alex Zbyslaw:
 snip explanation
 I don't see how a firewall is appropriate for this (hosts.allow,
 likewise).  The point of the exercise is to never even contact the ad host.

Transparent proxy with squid on the firewall? There's even plugins to manage 
exactly this kind of ad-blocking with squid; although I don't currently know 
the extension's name.

This is pretty much going to be your only option to do this in a centralized 
fashion.

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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Alex Zbyslaw

Erich Dollansky wrote:


Alex Zbyslaw wrote:


Erich Dollansky wrote:

Assuming I've understood your initial post correctly, then I do the 
same, redirecting some dozen ad sites to a  local web server.  With a 



this is how I started. Then friends did the same. We exchanged the 
files. We added hosts files from the Internet.


dozen or so aliases I've never noticed any difference in performance, 
but I suspect you have rather more than that :-)  I could never quite be 



I also do not notice a difference. Especially news sites with all the 
ads are even faster as there is no waiting for the ads.


I'm pretty sure you could also do the same with a local DNS server, if 



This is what I am thinking of since some time but I never did.

It would have the additional advantage of faster name resolution.

Having a DNS on every machine seems like a real overkill to me.


Why would you have DNS on every machine?  I don't know what your setup 
is like, but any separate network (like your home, your office) would 
only need one(*) DNS server for the entire network.  Of course, everyone 
then gets their ads blocked, not just you :-)  No way to make it 
per-user that I can think of.  But, you could run 1 DNS and only point 
hosts which wished to participate in the ad blocking at that DNS server 
and let others do their resolution however they normally do it (ISP DNS, 
company DNS).




There's no clean solutions to getting different lookups per-user that I 



The clen solution is hosts.


It's not per-user, which was what you originally asked.



Unclean solutions might include something like making the hosts file 



This is something I would like to avoid.


If you want different name resolution per user, then I see little 
alternative to something like this.  I'm not even sure it's possible, to 
be honest, but then name resolution was never expected to be per user :-(


--Alex

Yes, you should probably have a second, slave DNS if your network is 
more than a couple of  hosts.  Setting up a DNS is not actually that hard.


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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Nikos Vassiliadis
On Wednesday 12 December 2007 14:01:14 Alex Zbyslaw wrote:
 but I'm going to spend *forever* before I get all those IP addresses
 from a round-robin DNS entry to put into some ipfw table,

No, it's going to take something like 5 minutes.
At least for a 1420 lines hosts file.

 and if any of 
 those addresses also hosts the main site, I end up blocking that too.

Yes, but I doubt there is any other service on these web servers.


 I don't see how a firewall is appropriate for this (hosts.allow,
 likewise).  The point of the exercise is to never even contact the ad 
 host.

The point of the exercise is not that apparent to everybody.

 If I've misunderstood something about your approach, please enlighten
 me.

You misunderstood something, just because you and some people do it,
does is it make it the legitimate usage of /etc/hosts?
That's not the apparent usage of /etc/hosts to everyone.

I said I need more info, and I tried to guess what he does.
Please read the whole thread before trying to be that didactic!

Cheers,

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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Heiko Wundram (Beenic)
Am Mittwoch, 12. Dezember 2007 13:38:59 schrieben Sie:
 I want to do precisely the opposite. It should affect only a single
 machine. It would even be better if it would affect only a single
 account on that machine.

Affecting only a single machine/a single account has nothing to do with the 
fact that you manage and implement it centrally; the two concepts are 
orthogonal.

Basically, this should come around to giving squid (from what I'd do in your 
case) different rule sets based on authentication to the proxy and/or 
originating IP in your internal network, which leads to different behaviour 
depending on the accessing person/program.

Basically, why I personally rather like the squid (i.e., proxy-based) approach 
to ad-blocking is the fact that if you try to do this at a lower level than 
the HTTP-level, there's bound to be pages that display wrong/broken, simply 
because not being able to fetch images (because they supposedly come 
from localhost) means that most browsers are not going to display the space 
reserved to it and will mess up the page layout, even when specifying width= 
_and_ height= in an img-tag (when only specifying one of the attributes or 
none, the page layout will be broken anyway). Opera is my favourite candidate 
for messing up page layouts in this case.

On another note, Opera has an (IMHO) huge timeout for failed (i.e., refused, 
not timed out) connections to the target host, and if many images refer to 
localhost through some DNS or hosts magic, this is going to majorly slow down 
page display/buildup on non-css based layouts, which sadly there still are 
enough out there (and for some of which the ad-slots are an integral part of 
the page layout, such as some german news sites).

If you do the blocking at the topmost level (i.e., through squid or some other 
HTTP proxy), the proxy can generate an empty/transparent image with the 
appropriate proportions to fill the now void space, which the extension I 
referenced earlier will do automatically for you. This doesn't stop the 
connection to the ad host from happening (i.e., isn't a traffic saver, but 
who cares about that nowadays I'd say), but it does stop the end-user from 
seeing the ad (and/or its content). It even allows you more fine-grained 
control over which URLs to block, so that you don't have to filter by host 
specifically, but might also filter by directory (which is required at some 
sites, as the ads/unwanted content comes from the same host as the actual 
content you're interested in).

It's a matter of choice how much duress you want the end-user to endure, 
basically, seeing that user-based discrimination on a proxy also requires 
authentication (unless you implement packet redirects on the end-user 
machines to different ports of the firewall depending on the user originating 
the outgoing packet, but this is just as bad to keep synchronized in the 
end). But, anyway, it would be my way to go to achieve what you're trying to 
do efficiently.

Just my 5 (Euro)-cents.

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


Software to manage BIND 9 ?

2007-12-12 Thread Frank Bonnet

Hi

I'm searching for some good software that runs with FreeBSD to manage
a primary DNS server with several domains.

I've looked around, google for it, but was not able to have a precise idea
so if some DNS admins that use one could tell me which are the most populars
and usefuls it would be great :-)

Thanks a lot in advance.
--
Cordialement
Frank Bonnet
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Software to manage BIND 9 ?

2007-12-12 Thread Roberto Pereyra
webmin is a good bind manager.

roberto


-- 
Ing. Roberto Pereyra
ContenidosOnline
http://www.contenidosonline.com.ar

Get secure managed email for your own domain with Hushmail Business -
http://www.hushmail.com/business?l=503a=3211
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mounted cd and tray locking

2007-12-12 Thread Nikos Vassiliadis
On Wednesday 12 December 2007 13:13:48 Andriy Gapon wrote:
 I recently noticed that FreeBSD doesn't prevent tray opening (via a
 button on CD/DVD drive) even if I mount a CD with ISO 9660 filesystem on
 it. This at least happens with ATAPI CD drive (acd driver/device).

 Maybe my memory is failing me but I seem to remember times when mounting
 a CD locked a tray. Shouldn't this be a more reasonable behavior ?

Yes, could file a PR?

I see the mentioned behavior for my recent 6-STABLE.

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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread RW
On Wed, 12 Dec 2007 12:31:08 +
Alex Zbyslaw [EMAIL PROTECTED] wrote:

 I have zero experience of squid beyond reading about it, but it has 
 always sounded like a major resource hog.  

It depends how you use it. I think you can probably get it down to
about 15 MB, if you eliminate memory caching and use a modest disk
cache. Squid needs to store per object metadata in memory, about
10-20MB per GB of disk cache, and that's what leads to very large
memory use.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Alex Zbyslaw

Heiko Wundram (Beenic) wrote:

Basically, why I personally rather like the squid (i.e., proxy-based) approach 
to ad-blocking is the fact that if you try to do this at a lower level than 
the HTTP-level, there's bound to be pages that display wrong/broken, simply 
because not being able to fetch images (because they supposedly come 
from localhost) means that most browsers are not going to display the space 
reserved to it and will mess up the page layout, even when specifying width= 
_and_ height= in an img-tag (when only specifying one of the attributes or 
none, the page layout will be broken anyway). Opera is my favourite candidate 
for messing up page layouts in this case.


On another note, Opera has an (IMHO) huge timeout for failed (i.e., refused, 
not timed out) connections to the target host, and if many images refer to 
localhost through some DNS or hosts magic, this is going to majorly slow down 
page display/buildup on non-css based layouts, which sadly there still are 
enough out there (and for some of which the ad-slots are an integral part of 
the page layout, such as some german news sites).
 

I'm certainly convinced that this is a viable solution to the ad 
problem, but it still seems *to me* far more work than dumping a bunch 
of hostnames in /etc/hosts.  I have, myself, had little or no trouble 
with page layouts messing up, but I maybe haven't used the solution on a 
large enough scale to notice.  But if you really want to configure the 
heck out of ads then squid would seem to have much more flexibility, at 
the cost of greater maintenance.


As for the timeouts issue, you are assuming that the host names are 
redirected to an IP address where nothing is listening.  I redirect to a 
local IP alias and do have an apache server listening which serves up a 
default page with a blue background.  I want to *see* the ad being 
blocked as it gives me a sense of smug satisfaction :-)  I'm sure you 
could do something more sophisticated, but this has worked well enough 
for me with virtually no maintenance.  I certainly get no noticeable 
delays with opera when I use it.


Best,

--Alex

PS The /etc/hosts solution must be described plenty of places that are 
google-able since I found it through none of the resources mentioned in 
this discussion.  I wish I could say I'd thought of it for myself, but 
like so many good ideas I just borrowed it shamelessly from somewhere else.


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


Re: RELENG_7 and diablo-jdk

2007-12-12 Thread Heiko Wundram (Beenic)
Am Mittwoch, 12. Dezember 2007 11:06:13 schrieb Daniel Molina Wegener:
 ¿Is there any problem if I run diablo-jdk-1.5_07 under RELENG_7?
 I mean, ¿is the diablo-jdk binary compatible with RELENG_7?

Yes, there are/were quite some problems (which may not become immediately 
apparent with standard use but will as soon as you use Java software such 
as the sun-wtk). Generally, you'll want to build the sun-jdks on RELENG_7, 
using the diablo-jdk as a bootstapper and removing it after at least one 
other jdk has been installed.

Instructions for downloading the sources and BSD-patches for the sun-jdks are 
in ports (i.e., cd /usr/ports/java/jdk1x; make will tell you what to do).

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


Re: RELENG_7 and diablo-jdk

2007-12-12 Thread Daniel Bye
On Wed, Dec 12, 2007 at 07:06:13AM -0300, Daniel Molina Wegener wrote:
 
 Hello,
 
 ??Is there any problem if I run diablo-jdk-1.5_07 under RELENG_7?
 I mean, ??is the diablo-jdk binary compatible with RELENG_7?

It's working here fine:

---$ uname -a
FreeBSD torus.slightlystrange.org 7.0-BETA4 FreeBSD 7.0-BETA4 #10: Fri Dec  7 
16:06:58 GMT 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/TORUS  i386
---$ java -version
java version 1.5.0
Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b01)
Java HotSpot(TM) Client VM (build diablo-1.5.0_07-b01, mixed mode)

Dan

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


pgpLRFeKu56c4.pgp
Description: PGP signature


Worldwind (Java)

2007-12-12 Thread Andrea Venturoli

Hello.

Anyone tried running the demo from their SDK?

I had no luck with native JDK:


%./run-demo.bash gov.nasa.worldwind.examples.ApplicationTemplate
Running gov.nasa.worldwind.examples.ApplicationTemplate
Exception in thread main java.lang.UnsatisfiedLinkError: 
/usr/local/jdk1.5.0/jre/lib/i386/libjawt.so: Shared object libmawt.so 
not found, required by libjawt.so


Does this mean I have to install anything else?
Is there any hope, since it's using jni?



Next try was linux-sun-jdk: here I was able to go a litte further and 
the app almost work, but obviously very slow and with lots of renger 
glitches and exceptions in the console.


%./run-demo.bash gov.nasa.worldwind.examples.ApplicationTemplate
Running gov.nasa.worldwind.examples.ApplicationTemplate
libGL warning: 3D driver claims to not support visual 0x4c
libGL error: drmGetMagic failed
libGL error: reverting to (slow) indirect rendering
javax.media.opengl.GLException: Error: no OpenGL buffer object appears 
to be bound to target 0x8892




Any hint is appreciated.

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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Alex Zbyslaw

RW wrote:


On Wed, 12 Dec 2007 12:31:08 +
Alex Zbyslaw [EMAIL PROTECTED] wrote:

I have zero experience of squid beyond reading about it, but it has 
always sounded like a major resource hog.  
   



It depends how you use it. I think you can probably get it down to
about 15 MB, if you eliminate memory caching and use a modest disk
cache. Squid needs to store per object metadata in memory, about
10-20MB per GB of disk cache, and that's what leads to very large
memory use.

Thanks for the info.  That doesn't seem too bad in relation to a small 
network, but I can see why a large network might want to dedicate a 
separate host.


--Alex

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


Re: Software to manage BIND 9 ?

2007-12-12 Thread Mark D. Foster
Frank Bonnet wrote:
 I'm searching for some good software that runs with FreeBSD to manage
 a primary DNS server with several domains.
We use Men  Mice at work for the last 2 years to manage our Linux
(BIND9) and MS DNS servers. The product also works with FreeBSD.
See http://www.menandmice.com/solutions/suite/unixbind

-- 
Said one park ranger, 'There is considerable overlap between the 
 intelligence of the smartest bears and the dumbest tourists.'
Mark D. Foster, CISSP [EMAIL PROTECTED]  http://mark.foster.cc/

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


Re: Mounting Western Digital USB drive?

2007-12-12 Thread Patrick Baldwin

Trix Farrar wrote:

On Tue, Dec 11, 2007 at 06:03:03PM -0500, Patrick Baldwin wrote:

Hi, I'm trying to mount a 160 GB Western Digital USB 2.0 drive on a
FreeBSD 6.2 system.  This seemed like it should be relatively simple,
but:

webmail# mount /dev/da0s1 /mnt/usbdrive
mount: /dev/da0s1 on /mnt/usbdrive: incorrect super block



It's probably formatted msdosfs.  Have you tried:

webmail# mount -t msdosfs /dev/da0s1 /mnt/usbdrive



No, I hadn't, but that doesn't seem to work either:

mount -t msdosfs /dev/da0s1 /mnt/usbdrive
mount_msdosfs: /dev/da0s1: Invalid argument

webmail# dmesg
umass0: Western Digital External HDD, rev 2.00/1.04, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: WD 1600BEV External 1.04 Fixed Direct Access SCSI-4 device
da0: 40.000MB/s transfers
da0: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C)
mountmsdosfs(): disk too big, sorry
mountmsdosfs(): disk too big, sorry


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


Re: How do I use my USB microphone and motherboard audio out?

2007-12-12 Thread Watanabe Kazuhiro
Hi.

At Tue, 11 Dec 2007 22:16:58 -0800,
Rudy wrote:
  After reading some more man pages, I am still stumped but can better 
  phrase my question:
   how do I set dsp0.0 as the default OUPUT and dsp1.1 as the default INPUT?
  
  Rudy
  
  here is the output of /dev/sndstat
  FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
  Installed devices:
  pcm0: NVidia MCP51 High Definition Audio Controller at memory 
  0xfe024000 irq 21 kld snd_hda [20071129_0050] [MPSAFE] (1p:1v/1r:1v 
  channels duplex default)
  pcm1: USB Audio at ? kld snd_uaudio [GIANT] (0p:0v/1r:1v channels)
  mode 1:(input) 1ch, 16/16bit, pcm, 8000,11025,22050,44100,48000Hz
 
 Anyone know how do do this, or should I try freebsd-multimedia or something 
 like that?
 
 ... on other OS'es I've seen ways to define a default microphone when a 
 machine has two 
 microphones.  Can't seem to figure that out in BSD (I can assign a default 
 pcm device, but my pcm1 
 doesn't have output...

Audacity will be able to specify a different dsp device for the
recording and playback device via the Audacity Preferences panel
(Edit - Preferences - Audio I/O); e.g. /dev/dsp0 for playback,
and /dev/dsp1 for recording.

Have you tried such configulation?
---
Watanabe Kazuhiro ([EMAIL PROTECTED])
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mounting Western Digital USB drive?

2007-12-12 Thread Drew Tomlinson

On 12/12/2007 7:50 AM Patrick Baldwin said the following:

Trix Farrar wrote:

On Tue, Dec 11, 2007 at 06:03:03PM -0500, Patrick Baldwin wrote:

Hi, I'm trying to mount a 160 GB Western Digital USB 2.0 drive on a
FreeBSD 6.2 system.  This seemed like it should be relatively simple,
but:

webmail# mount /dev/da0s1 /mnt/usbdrive
mount: /dev/da0s1 on /mnt/usbdrive: incorrect super block



It's probably formatted msdosfs.  Have you tried:

webmail# mount -t msdosfs /dev/da0s1 /mnt/usbdrive



No, I hadn't, but that doesn't seem to work either:

mount -t msdosfs /dev/da0s1 /mnt/usbdrive
mount_msdosfs: /dev/da0s1: Invalid argument

webmail# dmesg
umass0: Western Digital External HDD, rev 2.00/1.04, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: WD 1600BEV External 1.04 Fixed Direct Access SCSI-4 device
da0: 40.000MB/s transfers
da0: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C)
mountmsdosfs(): disk too big, sorry
mountmsdosfs(): disk too big, sorry 


Just a guess here but it's likely the drive was formatted as NTFS 
instead of FAT-32 if it's a recent drive.  Try mount_ntfs.


HTH,

Drew

--
Be a Great Magician!
Visit The Alchemist's Warehouse

http://www.alchemistswarehouse.com

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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Warren Block

On Wed, 12 Dec 2007, Erich Dollansky wrote:


If you still see unwanted content, just add a line and it will be gone during 
your next visit.


Like AdBlockPlus, only more work.


The beauty is, Internet feels still faster then before.


Like AdblockPlus.

It has one advantage over all those ad removal tools. It filters what I do 
not like. It has nothing to do with censorship, it just gets rid of all the 
crap hanging around on every corner of a web page trying to sell you anti 
virus software or larger dicks.


Like AdblockPlus.  What is the one advantage?

There are some differences: AdblockPlus removes the ads and lets the 
browser use the space, rather than showing broken pages.  And you can 
customize blocked sites differently for different users.  And you can 
easily disable it.  And it doesn't impact the whole system, just the 
browser.  And you can block on regexes, so you don't need hundreds of 
entries to block the big ad farms.


-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 [EMAIL PROTECTED]


Re: Mounting Western Digital USB drive?

2007-12-12 Thread Patrick Baldwin

Drew Tomlinson wrote:

On 12/12/2007 7:50 AM Patrick Baldwin said the following:

Trix Farrar wrote:

On Tue, Dec 11, 2007 at 06:03:03PM -0500, Patrick Baldwin wrote:

Hi, I'm trying to mount a 160 GB Western Digital USB 2.0 drive on a
FreeBSD 6.2 system.  This seemed like it should be relatively simple,
but:

webmail# mount /dev/da0s1 /mnt/usbdrive
mount: /dev/da0s1 on /mnt/usbdrive: incorrect super block



It's probably formatted msdosfs.  Have you tried:

webmail# mount -t msdosfs /dev/da0s1 /mnt/usbdrive



No, I hadn't, but that doesn't seem to work either:

mount -t msdosfs /dev/da0s1 /mnt/usbdrive
mount_msdosfs: /dev/da0s1: Invalid argument

webmail# dmesg
umass0: Western Digital External HDD, rev 2.00/1.04, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: WD 1600BEV External 1.04 Fixed Direct Access SCSI-4 device
da0: 40.000MB/s transfers
da0: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C)
mountmsdosfs(): disk too big, sorry
mountmsdosfs(): disk too big, sorry 


Just a guess here but it's likely the drive was formatted as NTFS 
instead of FAT-32 if it's a recent drive.  Try mount_ntfs.


HTH,



Tried that, got:

webmail# mount_ntfs /dev/da0s1 /mnt/usbdrive
mount_ntfs: /dev/da0s1: Invalid argument

Which doesn't make any sense to me, as it seems to
be telling me the /dev/da0s1 is an invalid argument.

Just for the hell of it, I tried:
webmail# mount_ntfs /dev/da0 /mnt/usbdrive
mount_ntfs: /dev/da0: Invalid argument

Argh.  Hate it when what I expected to be a simple task
eats this much time.





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


Re: still no luck in coping a 6 G dvd to a 4.7 dvd.

2007-12-12 Thread John Nielsen

Quoting Gary Kline [EMAIL PROTECTED]:

On Tue, Dec 11, 2007 at 11:28:10AM +0100, Michel Talon wrote:

Gary Kline wrote:

 Guys, I've set up a test account which is pure KDE.  Still, using both
 my Pioneer and the Lite-on burners, no luck in burning a DVD that is
 larger than thee default.

How do want this to work? You have to recompress the initial DVD stream,
and for that there is an excellent program to run under your KDE account
(k9copy).



i don't seem too get very far with k9copy. I have two burners,
and can open either device. I had it set to read from cd0 and
wwrite to cd1. The app reports that there is no documentation
available for k9copy.  Is there a front commmand string I can use
here?  Or online docs?


FWIW the most useful howto on DVD backup techniques I've ever seen is here:

http://kavlon.org/index.php/dvdbackup

It says it's for Linux but all of the programs needed are available in 
FreeBSD's ports tree. It's command-line based, but parts of it could be 
scripted, etc.


One additional note on the original ripping phase: I find tccat to be 
more reliable than vobcopy, although with some DVD's it makes sense to 
try both. And vobcopy is better at guessing which title is the feature 
if there is more than one.


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


Re: Mounting Western Digital USB drive?

2007-12-12 Thread Drew Tomlinson

On 12/12/2007 8:20 AM Patrick Baldwin said the following:

Drew Tomlinson wrote:

On 12/12/2007 7:50 AM Patrick Baldwin said the following:

Trix Farrar wrote:

On Tue, Dec 11, 2007 at 06:03:03PM -0500, Patrick Baldwin wrote:

Hi, I'm trying to mount a 160 GB Western Digital USB 2.0 drive on a
FreeBSD 6.2 system.  This seemed like it should be relatively simple,
but:

webmail# mount /dev/da0s1 /mnt/usbdrive
mount: /dev/da0s1 on /mnt/usbdrive: incorrect super block



It's probably formatted msdosfs.  Have you tried:

webmail# mount -t msdosfs /dev/da0s1 /mnt/usbdrive



No, I hadn't, but that doesn't seem to work either:

mount -t msdosfs /dev/da0s1 /mnt/usbdrive
mount_msdosfs: /dev/da0s1: Invalid argument

webmail# dmesg
umass0: Western Digital External HDD, rev 2.00/1.04, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: WD 1600BEV External 1.04 Fixed Direct Access SCSI-4 device
da0: 40.000MB/s transfers
da0: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C)
mountmsdosfs(): disk too big, sorry
mountmsdosfs(): disk too big, sorry 


Just a guess here but it's likely the drive was formatted as NTFS 
instead of FAT-32 if it's a recent drive.  Try mount_ntfs.


HTH,



Tried that, got:

webmail# mount_ntfs /dev/da0s1 /mnt/usbdrive
mount_ntfs: /dev/da0s1: Invalid argument

Which doesn't make any sense to me, as it seems to
be telling me the /dev/da0s1 is an invalid argument.

Just for the hell of it, I tried:
webmail# mount_ntfs /dev/da0 /mnt/usbdrive
mount_ntfs: /dev/da0: Invalid argument

Argh.  Hate it when what I expected to be a simple task
eats this much time.


Another guess.  I wonder if you have to spell out the full slice such as 
/dev/da0s1whatever.  I know slice c is used to represent the entire 
drive but there's something special about it.  Thus verify that mounding 
/dev/da0/s1c will not destroy data before mounting.  Maybe bsdlabel 
would be of help here?  It should show you the slices on the drive and 
then you can try mounting.


Good luck,

Drew


--
Be a Great Magician!
Visit The Alchemist's Warehouse

http://www.alchemistswarehouse.com

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


will freebsd run on apple intel xserve

2007-12-12 Thread Jason Joines
I'm a Linux guy who has inherited some apple xserve boxes. 
Surprisingly I've discovered that I really hate os x.  For the intel 
xserve boxes, Linux isn't an option.  The CPUs are amd64 architecture. 
The EFI capable Linux bootloader, has had beta support for amd64 since 
July.  However, the Linux kernel just got support to boot via EFI and 
amd64 in a release candidate patch this month.  It'll probably be quite 
a while before a distribution has an installer with what I need.


At any rate, I've always wanted to try one of the BSDs.  Will 
FreeBSD install on an apple intel xserve?  If not does anyone know if 
another BSD or some other open source NIX will work?



Jason Joines
=

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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Alex Zbyslaw

Warren Block wrote:


On Wed, 12 Dec 2007, Erich Dollansky wrote:

If you still see unwanted content, just add a line and it will be 
gone during your next visit.


Like AdBlockPlus, only more work.


The beauty is, Internet feels still faster then before.


Like AdblockPlus.

It has one advantage over all those ad removal tools. It filters what 
I do not like. It has nothing to do with censorship, it just gets rid 
of all the crap hanging around on every corner of a web page trying 
to sell you anti virus software or larger dicks.


Like AdblockPlus.  What is the one advantage?

There are some differences: AdblockPlus removes the ads and lets the 
browser use the space, rather than showing broken pages.  And you can 
customize blocked sites differently for different users.  And you can 
easily disable it.  And it doesn't impact the whole system, just the 
browser.  And you can block on regexes, so you don't need hundreds of 
entries to block the big ad farms.


According to it's web pages *Note*: It is recommended to use at least 
Firefox 2.0, Thunderbird 2.0, SeaMonkey 1.1 or Songbird 0.2. Older 
versions receive less testing and support for them is likely to be 
dropped in a few months.


The other schemes mentioned in this thread (hosts, DNS, squid) work with 
any and every web browser.  The OP already said he doesn't use Firefox.  
I myself still use Mozilla, Opera, and (heaven help me) IE, none of 
which are on the list.


As I've already mentioned, I see no broken pages because I don't break 
the layout (usually), and the post about squid talked about clear gifs 
as replacements which again would not break anything.


AdblockPlus is a valid alternative *if you are just a Firefox user*, but 
for everyone else, some other solution is required.


--Alex

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


Re: mounted cd and tray locking

2007-12-12 Thread Andriy Gapon
on 12/12/2007 15:55 Nikos Vassiliadis said the following:
 On Wednesday 12 December 2007 13:13:48 Andriy Gapon wrote:
 I recently noticed that FreeBSD doesn't prevent tray opening (via a
 button on CD/DVD drive) even if I mount a CD with ISO 9660 filesystem on
 it. This at least happens with ATAPI CD drive (acd driver/device).

 Maybe my memory is failing me but I seem to remember times when mounting
 a CD locked a tray. Shouldn't this be a more reasonable behavior ?
 
 Yes, could file a PR?
 
 I see the mentioned behavior for my recent 6-STABLE.

Hmm. Looked at the code and it should be as expected. Played with
various stuff and here's what I think: it seems that having atapicam and
hald and maybe something in KDE that polls for CD change is to blame.
My theory: after I mount some media on acd0, hald wants to taste it
through cd0, on opening cd0 device 'prevent' command is sent, on closing
cd0 'allow' is sent, so in the end drive's tray is in unlocked state.

I don't see any easy resolution for this, but it definitely would be
good to come up with one.

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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Erich Dollansky

Hi,



Warren Block wrote:

On Wed, 12 Dec 2007, Erich Dollansky wrote:


If you still see unwanted content, just add a line and it will be gone 
during your next visit.


Like AdBlockPlus, only more work.


The beauty is, Internet feels still faster then before.


Like AdblockPlus.

It has one advantage over all those ad removal tools. It filters what 
I do not like. It has nothing to do with censorship, it just gets rid 
of all the crap hanging around on every corner of a web page trying to 
sell you anti virus software or larger dicks.


Like AdblockPlus.  What is the one advantage?

There are some differences: AdblockPlus removes the ads and lets the 


but it is limited to these browsers:

Minimal requirements: Firefox 1.5, Thunderbird 1.5, SeaMonkey 1.0, Flock 
0.5, Songbird 0.2.


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


Where is the next uid from adduser pulled from?

2007-12-12 Thread Francisco Reyes
I have scripts to add new users. However, after that any port that installs 
a user creates it with a UID after the ones I made.


For example I want all employees to have uids starting at 5000, but I would 
like too port installed uids to be 2000 and up. After I add some users (ie 
say last user is 5008), the next port that installs a user and doesn't 
specify uid.. then will get 5009.


Tried looking for the adduser program, but could not find adduser.c

Any pointers would be greatly appreciated.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Wacom driver

2007-12-12 Thread Roland Smith
On Tue, Dec 11, 2007 at 11:00:11PM +0100, Nikolaj Thygesen wrote:
 Hi,
 
Having just aquired a usb wacom tablet and discovering the linuxwacom 
 project, I was wondering why only serial tablets are supported on FBSD??

Doesn't it work with uhid(4)?

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


pgprOuCmeozOQ.pgp
Description: PGP signature


make buildworld fails

2007-12-12 Thread Jamie Avery

Hi
I have a custom Kernel Config file in /usr/src/sys/amd64/conf/.  I have 
put KERNCONF=/kernelname/ into /etc/make.conf.  However, when I make 
buildkernel, I get the following error


ERROR: Missing kernel configuration file(s) (/kernelname/).
*** Error code 1

Make.conf appears to be looking for the Kernel config file in the 
/i386/conf/ folder, as when I put a copy of /kernelname  /in the 
/i386/conf directory it starts to run, before failing on various unknown 
parameters that I assume are specific to the amd64 architecture.  Am I 
missing something? Do I need to state my processor architecture 
elsewhere? Or explicitly tell make.conf to look in the amd64 directory 
rather than the i386?


Any help greatly appreciated.

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


Re: Mounting Western Digital USB drive?

2007-12-12 Thread Chris Whitehouse

Patrick Baldwin wrote:

Trix Farrar wrote:

On Tue, Dec 11, 2007 at 06:03:03PM -0500, Patrick Baldwin wrote:

Hi, I'm trying to mount a 160 GB Western Digital USB 2.0 drive on a
FreeBSD 6.2 system.  This seemed like it should be relatively simple,
but:




mountmsdosfs(): disk too big, sorry
mountmsdosfs(): disk too big, sorry


I don't know how it is now but there used to be an upper limit on FAT32 
filesystem size in FreeBSD, 128gb I believe. You could get round it by 
recompiling your kernel with MSDOSFS_LARGE but there were some 
limitations on it's use. I'm sure google would find further info.



Chris



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






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


Re: make buildworld fails

2007-12-12 Thread Philip M. Gollucci
Jamie Avery wrote:
 put KERNCONF=/kernelname/ into /etc/make.conf.  However, when I make
 buildkernel, I get the following error
7.x+ src.conf, below make.conf

grep KERNCONF /etc/make.conf /etc/src.conf
/etc/src.conf:KERNCONF?=  RIDERWAY

NO /s neccessary.



-- 

Philip M. Gollucci ([EMAIL PROTECTED])
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

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


Re: Where is the next uid from adduser pulled from?

2007-12-12 Thread Andrew Pantyukhin
On Wed, Dec 12, 2007 at 12:00:06PM -0500, Francisco Reyes wrote:
 I have scripts to add new users. However, after that any port that installs 
 a user creates it with a UID after the ones I made.
 
 For example I want all employees to have uids starting at 5000, but I would 
 like too port installed uids to be 2000 and up. After I add some users (ie 
 say last user is 5008), the next port that installs a user and doesn't 
 specify uid.. then will get 5009.
 
 Tried looking for the adduser program, but could not find adduser.c

It's pw(8) that selects default uids and it just takes the last
one (numerically) and uses the next one.

Create a placeholder user with uid 5000 and let ports use uids
5000+, but when creating new users, specify uids manually (both
pw and adduser allow that).

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


Re: Where is the next uid from adduser pulled from?

2007-12-12 Thread Philip M. Gollucci
Francisco Reyes wrote:
 I have scripts to add new users. However, after that any port that installs
 a user creates it with a UID after the ones I made.
 
 For example I want all employees to have uids starting at 5000, but I would
 like too port installed uids to be 2000 and up. After I add some users (ie
 say last user is 5008), the next port that installs a user and doesn't
 specify uid.. then will get 5009.
 
 Tried looking for the adduser program, but could not find adduser.c
/usr/src/usr.sbin/pw

Ports call 'pw add user x', and pw add group y'


-- 

Philip M. Gollucci ([EMAIL PROTECTED])
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

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


Software Development

2007-12-12 Thread kevin smith
Dear Manager,  
   
  Hope you are doing great! 
   
  The purpose of this letter is to introduce you to CAT Technology Inc and our 
Offshore Dedicated Staff Development services. We have a plan, to cut your 
company's expenses and make it more profitable. Our prices just can't be 
ignored when you run a business.
   
  Investments for hiring a skilled offshore development team in India are much 
less due to cost of living differences. So, our client gets skilled Programmers 
at very less investment. The client also saves on employment taxes and other 
overheads. Thus start planning for future needs and get rid of the hassle of 
finding and retaining qualified programmers.
   
  CAT Offers:
   
  1.   One Week trail period. For Integrating operating procedures and 
making them understand your larger organizational goals. 
  2.   Our Programmers work 48 Hrs a week.( Monday - Saturday ) 
  3.   Select candidates after interviewing. This will help you to bring 
qualified professional specialists as needed for the job. We have talented 
young professionals with an university education from the best universities, 
proficient in US - English, UK - English, Spanish, and German. 
  4.   Our Programmers work in your time zone. We have people supporting US 
and all other continents. 
  5.   We have a competitive edge as market leaders in India with lower 
cost of operation in sourcing skilled developers and designers. We have a plan, 
to cut your company's expenses and make it more profitable. Our prices just 
can't be ignored when you run a business. 
  6.   We have a dedicated team that specializes in documentation and 
technical writing with experience ranging from 4-10 years. 
  7.   We believe and respect your clients' confidentiality.  We adhere to 
the highest standards of confidentiality and ensure maximum security during 
data transfer, storage and access. 
  8.   CAT Support team is available 24/7.
   
  Out Present Team size in INDIA:
VB.Net/C# Developers: 50 Members
Delphi Programmers: 18  Members
JSP/ Java Programmers: 25 Members
PHP Programmers: 20 Members
  PHP/Perl Programmers: 10 Members
Web developers/Designers: 20  Members
System/Network Administrators (MCSE) (CCNA) (CCNP):15 Members
SQL Server DBA: 15 Members
Oracle DBA : 8 Members
ASP Programmers: 20 Members
  Game Developers: 13 Members
Pocket PC Programmers: 10 Members
  VXML Developers : 10 Members
Visual Fox Pro Programmers: 12 Members
Access Developers: 10 Members
QA testers: 15 Members
SAP Consultants : 15 Members
   
  Visit us at--- www.cattechnologies.com
   
  We are the leading Offshore Development service company in INDIA. We align 
ourselves with our customers as partners to assist them in achieving their 
goals and objectives. We would be delighted to demonstrate our offshore 
Development services to you. Please let me know if you have any software 
Development work to Outsource? 
   
  Dedicated Staff:
When you set up an offshore development center with CAT, you get the following: 
All hardware, software licensing and office infrastructure already in place A 
dedicated team of professionals who will learn your business and become a part 
of your team. Seamless collaboration between offshore office and client project 
staff through live chat / email / voice / video .U.S. based contact point to 
manage all issues throughout the relationship and insure success of all 
projects. All staff assigned to your team will report directly to you or your 
project manager and follow your directives and timelines.
   
  Project Based:
Are you looking for professionals to help you build your projects?  If so, 
consider CAT as your world class partner. We will work closely with you to 
understand your project's requirements, deadlines, technologies and needs to 
determine the best team to make your project a success. Also, you can decide 
whether you plan to manage the project internally and utilize our development 
and testing resources, or prefer to have one of our project managers lead the 
team. 
   
  Maintenance Projects:
Just because your project is complete does not mean you don’t need professional 
technical support for your existing applications.  Our staff are available to 
you on a dedicated basis to review your existing applications and provide you 
the support and technical updates that are needed to maintain the 
competitiveness of your applications. If you are a new customer to CAT, ask us 
about our maintenance plans that enable you to take care of your application 
beyond the major development phase.  Maintenance Services are available to your 
regardless where you had your application developed.
   
  Wide range of .Net Services we provide:
1.  Application Development using .NET
2.  Designing and Programming using .NET
3.  Migration web based and other applications to .NET
4.  Porting of Legacy applications to .NET based applications
5.  Support and Enhancement of existing applications in .NET
6. 

/tmp: filesystem full

2007-12-12 Thread Cesar Amaya

Hello list.

I have a question related to sendmail mail.local and /tmp filesystem. 
The issue came out when I started to receive a lot of messages in 
/var/log/messages about /tmp filesystem is full. This is the log from 
system messages:

# tail /var/log/messages
Dec 12 05:48:41 napstats kernel: pid 7240 (mail.local), uid 0 inumber 11 
on /tmp: filesystem full
Dec 12 05:51:31 napstats kernel: pid 7240 (mail.local), uid 0 inumber 11 
on /tmp: filesystem full
Dec 12 06:18:32 napstats kernel: pid 7303 (mail.local), uid 0 inumber 11 
on /tmp: filesystem full
Dec 12 06:21:23 napstats kernel: pid 7303 (mail.local), uid 0 inumber 11 
on /tmp: filesystem full
Dec 12 06:48:45 napstats kernel: pid 7363 (mail.local), uid 0 inumber 11 
on /tmp: filesystem full
Dec 12 06:51:35 napstats kernel: pid 7363 (mail.local), uid 0 inumber 11 
on /tmp: filesystem full
Dec 12 07:19:00 napstats kernel: pid 7426 (mail.local), uid 0 inumber 11 
on /tmp: filesystem full
Dec 12 07:21:50 napstats kernel: pid 7426 (mail.local), uid 0 inumber 11 
on /tmp: filesystem full


But when I run a df -hi it says 0% of capacity is used on /tmp filesystem.

napstats# df -hi
Filesystem SizeUsed   Avail Capacity iusedifree %iused  
Mounted on

/dev/ad4s1a989M 76M834M 8%1709   1396011%   /
devfs  1.0K1.0K  0B   100%   00  100%   /dev
/dev/ad4s1e 48G229M 44G 1%   10600  65604060%   /home
/dev/ad4s1d989M 24K910M 0%  15   1412950%   /tmp
/dev/ad8s1d226G 85G122G41%  213086 303574081%   /usr
/dev/ad4s1f171G8.4G149G 5%   16560 232057100%   /var

from messagess I guess it has something to do with Sendmail. Sometimes I 
run /top /and sendmail is consuming the  most of the processor time.

napstats# uname -a
FreeBSD napstats.americatelsal.com 6.0-RELEASE FreeBSD 6.0-RELEASE #2: 
Thu Mar 30 18:13:14 CST 2006 
[EMAIL PROTECTED]:/usr/src/sys/amd64/compile/NAPSTATS  amd64


I really want to find out what the problem is.
Please can anyone give me some light here?

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


Re: mounted cd and tray locking

2007-12-12 Thread Andriy Gapon
on 12/12/2007 18:58 Andriy Gapon said the following:
 on 12/12/2007 15:55 Nikos Vassiliadis said the following:
 On Wednesday 12 December 2007 13:13:48 Andriy Gapon wrote:
 I recently noticed that FreeBSD doesn't prevent tray opening (via a
 button on CD/DVD drive) even if I mount a CD with ISO 9660 filesystem on
 it. This at least happens with ATAPI CD drive (acd driver/device).

 Maybe my memory is failing me but I seem to remember times when mounting
 a CD locked a tray. Shouldn't this be a more reasonable behavior ?
 Yes, could file a PR?

 I see the mentioned behavior for my recent 6-STABLE.
 
 Hmm. Looked at the code and it should be as expected. Played with
 various stuff and here's what I think: it seems that having atapicam and
 hald and maybe something in KDE that polls for CD change is to blame.
 My theory: after I mount some media on acd0, hald wants to taste it
 through cd0, on opening cd0 device 'prevent' command is sent, on closing
 cd0 'allow' is sent, so in the end drive's tray is in unlocked state.
 
 I don't see any easy resolution for this, but it definitely would be
 good to come up with one.
 

Investigated more and it seems that hald is a main culprit here. Without
it everything works reasonably well as long as I don't mix acd and cd
accesses.
That is, if I mount through acd, then trough cd, then unmount the cd
mount, then tray gets unlocked. In a perfect world I would like to fix
even this, but in real world this is OK.
But if mount only through one device then tray is locked.

So, hald is doing something wrong here. I am not sure if it is by
design (to make the behavior mswindows-like) or if it is a bug or a
side-effect of something.

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


Re: /tmp: filesystem full

2007-12-12 Thread Paul Schmehl
--On Wednesday, December 12, 2007 11:55:23 -0600 Cesar Amaya 
[EMAIL PROTECTED] wrote:


But when I run a df -hi it says 0% of capacity is used on /tmp filesystem.

napstats# df -hi
Filesystem SizeUsed   Avail Capacity iusedifree %iused
Mounted on
/dev/ad4s1a989M 76M834M 8%1709   1396011%   /
devfs  1.0K1.0K  0B   100%   00  100%   /dev
/dev/ad4s1e 48G229M 44G 1%   10600  65604060%   /home
/dev/ad4s1d989M 24K910M 0%  15   1412950%   /tmp
/dev/ad8s1d226G 85G122G41%  213086 303574081%   /usr
/dev/ad4s1f171G8.4G149G 5%   16560 232057100%   /var

from messagess I guess it has something to do with Sendmail. Sometimes I
run /top /and sendmail is consuming the  most of the processor time.
napstats# uname -a
FreeBSD napstats.americatelsal.com 6.0-RELEASE FreeBSD 6.0-RELEASE #2:
Thu Mar 30 18:13:14 CST 2006
[EMAIL PROTECTED]:/usr/src/sys/amd64/compile/NAPSTATS  amd64

I really want to find out what the problem is.
Please can anyone give me some light here?


What does # du -h /tmp  and # fstat | grep /tmp tell you?

--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Warren Block

On Wed, 12 Dec 2007, Alex Zbyslaw wrote:

Warren Block wrote:



Like AdblockPlus.


According to it's web pages *Note*: It is recommended to use at least 
Firefox 2.0, Thunderbird 2.0, SeaMonkey 1.1 or Songbird 0.2. Older versions 
receive less testing and support for them is likely to be dropped in a few 
months.


The other schemes mentioned in this thread (hosts, DNS, squid) work with any 
and every web browser.  The OP already said he doesn't use Firefox.


Guess I missed that.  Having tried 127.0.0.1 entries in /etc/hosts and 
squid in an company setting, Adblock is so much easier that I don't want 
to think about going back.


It may be possible to use an Adblock subscription to update a squid 
setup.  That would provide the best of both.


-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 [EMAIL PROTECTED]


Re: ls -l takes a forever to finish.

2007-12-12 Thread Mark Evans

this program seems to have the same issues with it.

Thanks
Mark


- Original Message - 
From: cpghost [EMAIL PROTECTED]

To: Bill Moran [EMAIL PROTECTED]
Cc: Wojciech Puchar [EMAIL PROTECTED]; 
[EMAIL PROTECTED]; Mark Evans [EMAIL PROTECTED]

Sent: Thursday, November 29, 2007 8:42 AM
Subject: Re: ls -l takes a forever to finish.



On Thu, 29 Nov 2007 08:42:44 -0500
Bill Moran [EMAIL PROTECTED] wrote:


In response to Wojciech Puchar [EMAIL PROTECTED]:

  ls | wc

 strange. i did

 [EMAIL PROTECTED] ~/b]$ a=0;while [ $a -lt 1 ];do mkdir
 $a;a=$[a+1];done

 completed 25 seconds on 1Ghz CPU

 ls takes 0.1 seconds user time, ls -l takes 0.3 second user time.

 unless you have 486/33 or slower system there is something wrong.

Another possible scenario is that the directory is badly fragmented.
Unless something has changed since I last researched this (which is
possible) FreeBSD doesn't manage directory fragmentation during use.
If you're constantly adding and removing files, it's possible that
the directory entry is such a mess that it takes ls a long time to
process it.


Yes, that's also possible. But sorting is really the culprit here:
it *is* possible to create a directory with filenames in such a way
that it triggers Quicksort's O(N^2) worst case instead of O(N log N).

The following Python (2.5) program calls ls -lf and sorts its output
with Python's own stable sort() routine (which is NOT qsort(3)). On a
directory with 44,000 entries, it runs orders of magnitude faster than
ls -l, even though it has to use the decorate-sort-undecorate idiom
to sort the output according according the filename, and it is
interpreted rather than compiled!

I guess that replacing qsort(3) in
/usr/src/lib/libc/gen/fts.c:fts_sort()
with another sort algorithm which doesn't
expose this anomaly would solve that problem.

- cut here -- cut here 

#!/usr/bin/env python
# sortls.py -- sort output of ls -lf with python's stable sort routine.

import os

def sort_ls_lf(path):
   Sort the output of ls -lf path
   os.chdir(path)
   lines = os.popen(ls -lf, r).readlines()
   dsu = [ (line.split()[-1], line) for line in lines ]
   dsu.sort()
   return ''.join(tupl[1] for tupl in dsu)

if __name__ == '__main__':
   import sys
   if len(sys.argv)  2:
   print sys.stderr, Usage:, sys.argv[0], path
   sys.exit(1)
   path = sys.argv[1]

   try:
   print sort_ls_lf(path)
   except IOError:
   pass   # silently absorb broken pipe and other errors

- cut here -- cut here 

Regards,
-cpghost.

--
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]



--
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.25/744 - Release Date: 4/3/2007 
5:32 AM





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


Re: /tmp: filesystem full

2007-12-12 Thread Robert Huff
Cesar Amaya writes:

  napstats# fstat | grep /tmp
  www  httpd   1739   15 /tmp  4 -rw---   0 rw

Can you afford to shut down the web server (Apache ?)?


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


Suggestions please for what POP or IMAP servers to use

2007-12-12 Thread Andrew Falanga
Hi,

I'm working on setting up a server for both WWW and e-mail.  We're using
apache 2.2 w/PHP support (for phpWebSite) and for e-mail I'd like to stay
with sendmail for the MTA, but I've not used any servers that will allow for
POP and IMAP.  What in the ports would be good suggestions from those here
who've used them?

thanks,
Andy

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /tmp: filesystem full

2007-12-12 Thread Cesar Amaya

Paul Schmehl wrote:
--On Wednesday, December 12, 2007 11:55:23 -0600 Cesar Amaya 
[EMAIL PROTECTED] wrote:


But when I run a df -hi it says 0% of capacity is used on /tmp 
filesystem.


napstats# df -hi
Filesystem SizeUsed   Avail Capacity iusedifree %iused
Mounted on
/dev/ad4s1a989M 76M834M 8%1709   1396011%   /
devfs  1.0K1.0K  0B   100%   00  100%   /dev
/dev/ad4s1e 48G229M 44G 1%   10600  65604060%   
/home

/dev/ad4s1d989M 24K910M 0%  15   1412950%   /tmp
/dev/ad8s1d226G 85G122G41%  213086 303574081%   /usr
/dev/ad4s1f171G8.4G149G 5%   16560 232057100%   /var

from messagess I guess it has something to do with Sendmail. Sometimes I
run /top /and sendmail is consuming the  most of the processor time.
napstats# uname -a
FreeBSD napstats.americatelsal.com 6.0-RELEASE FreeBSD 6.0-RELEASE #2:
Thu Mar 30 18:13:14 CST 2006
[EMAIL PROTECTED]:/usr/src/sys/amd64/compile/NAPSTATS  
amd64


I really want to find out what the problem is.
Please can anyone give me some light here?


What does # du -h /tmp  and # fstat | grep /tmp tell you?


napstats# du -h /tmp
2.0K/tmp/.snap
2.0K/tmp/.X11-unix
2.0K/tmp/.ICE-unix
2.0K/tmp/.font-unix
2.0K/tmp/.XIM-unix
2.0K/tmp/dynamic
24K/tmp

napstats# fstat | grep /tmp
www  httpd   1739   15 /tmp  4 -rw---   0 rw
www  httpd   1739   16 /tmp  6 -rw---   0 rw
www  httpd   1739   20 /tmp  4 -rw---   0  w
www  httpd   1739   21 /tmp  6 -rw---   0  w
www  httpd   1738   15 /tmp  4 -rw---   0 rw
www  httpd   1738   16 /tmp  6 -rw---   0 rw
www  httpd   1738   20 /tmp  4 -rw---   0  w
www  httpd   1738   21 /tmp  6 -rw---   0  w
www  httpd   1737   15 /tmp  4 -rw---   0 rw
www  httpd   1737   16 /tmp  6 -rw---   0 rw
www  httpd   1737   20 /tmp  4 -rw---   0  w
www  httpd   1737   21 /tmp  6 -rw---   0  w
www  httpd   1736   15 /tmp  4 -rw---   0 rw
www  httpd   1736   16 /tmp  6 -rw---   0 rw
www  httpd   1736   20 /tmp  4 -rw---   0  w
www  httpd   1736   21 /tmp  6 -rw---   0  w
www  httpd   1735   15 /tmp  4 -rw---   0 rw
www  httpd   1735   16 /tmp  6 -rw---   0 rw
www  httpd   1735   20 /tmp  4 -rw---   0  w
www  httpd   1735   21 /tmp  6 -rw---   0  w
www  httpd   1733   15 /tmp  4 -rw---   0 rw
www  httpd   1733   16 /tmp  6 -rw---   0 rw
root httpd   1640   15 /tmp  4 -rw---   0 rw
root httpd   1640   16 /tmp  6 -rw---   0 rw

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


Re: Suggestions please for what POP or IMAP servers to use

2007-12-12 Thread Daniel Bye
On Wed, Dec 12, 2007 at 01:31:11PM -0700, Andrew Falanga wrote:
 Hi,
 
 I'm working on setting up a server for both WWW and e-mail.  We're using
 apache 2.2 w/PHP support (for phpWebSite) and for e-mail I'd like to stay
 with sendmail for the MTA, but I've not used any servers that will allow for
 POP and IMAP.  What in the ports would be good suggestions from those here
 who've used them?

dovecot is excellent - easy setup, stable and reliable, provides IMAP
and POP support and works well with e.g. squirrelmail. It's not as full
featured as the Cyrus or courier IMAP servers, but if you don't need
shared mailboxes etc, it's definitely worth a look.

Dan

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


pgpvHk8JxXtmQ.pgp
Description: PGP signature


Re: smart_host on sendmail min config

2007-12-12 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Giorgos Keramidas wrote:
 On 2007-12-11 13:53, Aryeh M. Friedman [EMAIL PROTECTED]
 wrote:
 Giorgos Keramidas wrote:
 You still haven't shown us:

 * How your local rc system starts Sendmail
 Until I can get it right from the command line I am not going to
 include it in my /etc/rc thus currently there is none

 * The active Sendmail processes you have now
 Except for the one I start (with the below command line) before
 sending there is none running.

 Then you need to replicate what `/etc/rc.d/sendmail' does.  You
 have the code to that script, you also have `/etc/defaults/rc.conf'
 as a guide of the defaults supported by FreeBSD.  Happy hacking :)

 I'm not interested in rewriting `/etc/rc.d/sendmail' from scratch,
 so other than a few pointers like the following, I'm out of the
 thread:

 here is the complete transcript of my last attempt to actually
 send something: [...]

 monster-freebsd# sendmail -bd -q1m

 Here you started a sendmail process which listens for connections
 to *all* interfaces.  That's probably ok if you plan to accept
 incoming SMTP connections on _any_ interface, i.e. because you are
 running a Sendmail server accessible from outside.

 On my laptop this would be replaced by:

 /usr/sbin/sendmail -L smtpd -bd -q30m \
 -ODaemonPortOptions=Addr=localhost

 Note the use of the -O flag to make sure Sendmail is only listening
 on the localhost:25 port for mail submission requests.

 Then you have to start a *second* Sendmail instance, to flush the
 local `clientmqueue' and forward the messages you see as `Deferred'
 when you run the `mailq -Ac' command:

 monster-freebsd# mailq -Ac /var/spool/clientmqueue (8 requests) -
 -Q-ID- --Size-- -Q-Time- -
 Sender/Recipient--- lBAEQDUM0772289
 Mon Dec 10 09:26 aryeh (Deferred: Connection refused by
 [127.0.0.1]) [EMAIL PROTECTED]

 Now you have to run a second Sendmail instance, i.e. with:

 /usr/sbin/sendmail -L mailq -Ac -q10m

 NOTE: The `smtpd' and `mailq' arguments to the -L options are not
 the standard names FreeBSD assigns to these processes.  They are
 just the ones I use on my laptop.

 Since you are using a custom, local sendmail startup script, that's
  about the best I can write to get you kickstarted.  For more help
 with the way Sendmail operates, you can always refer to the
 ``Sendmail(TM) Installation and Operation Guide''.  A copy of the
 guide is conveniently installed by the FreeBSD installation process
 at:

 /usr/share/doc/smm/08.sendmailop/*

 Good luck with the startup scripts.  I don't really understand why
 you insist on rewriting something which works(TM), is featureful
 and easy to extend, like the rc.d scripts, but that's besides the
 point :-)

 - Giorgos





Above still does nothing:

monster-freebsd# /usr/sbin/sendmail -L smtpd -bd -q30m
- -ODaemonPortOptions=Addr=localhost -ODaemonPortOptions=Addr=localhost
monster-freebsd# /usr/sbin/sendmail -L mailq -Ac -q10m
monster-freebsd# mailq -v
WARNING: local host name (monster-freebsd) is not qualified; see
cf/README: WHO AM I?
/var/spool/mqueue (2 requests)
- -Q-ID- --Size-- -Priority- ---Q-Time---
- Sender/Recipient
lBCKovjf051782   10  30377 Dec 12 15:50 [EMAIL PROTECTED]
 (Deferred: 421 Connection not accepted at this time)
[EMAIL PROTECTED]
 (Deferred: 421 Connection not accepted at this time)
lBCKovjh0517829  30380 Dec 12 15:50 [EMAIL PROTECTED]
 (Deferred: 421 Connection not accepted at this time)
[EMAIL PROTECTED]
 (Deferred: 421 Connection not accepted at this time)
Total requests: 2
monster-freebsd# tail -f /var/log/maillog
Dec  9 09:15:38  newsyslog[587]: logfile first created
Dec  9 09:15:38  sm-mta[720]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00
Dec  9 09:15:38  sm-msp-queue[724]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00
Dec  9 12:22:28  sm-mta[729]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00
Dec  9 12:22:28  sm-msp-queue[733]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00





-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHYE27zIOMjAek4JIRAvzyAKCkTFuxsbH37S+JZCeG0dSwTFO98ACfWjcd
VVP9Rwa6pJ1oA6rLpBfUIdU=
=uFO1
-END PGP SIGNATURE-

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


Re: RELENG_7 and diablo-jdk

2007-12-12 Thread Tino Engel

Daniel Molina Wegener schrieb:

Hello,

¿Is there any problem if I run diablo-jdk-1.5_07 under RELENG_7?
I mean, ¿is the diablo-jdk binary compatible with RELENG_7?

Thanks in advance...
  

for me, java apps always segfault under releng_7.
They never did under releng_6.
Have not found out yet why..
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /tmp: filesystem full

2007-12-12 Thread Jerry McAllister
On Wed, Dec 12, 2007 at 03:08:50PM -0600, Cesar Amaya wrote:

 Robert Huff wrote:
 Cesar Amaya writes:
 
   
  napstats# fstat | grep /tmp
  www  httpd   1739   15 /tmp  4 -rw---   0 rw
 
 
  Can you afford to shut down the web server (Apache ?)?
 
 
  Robert Huff
 
   
 Nothing is shown if I shut down the web server. But I saw something 
 weird when I run # fstat | grep /tmp, was something like this:
 
 someusermail.local   1739   15 /tmp  4 -rw---   
 73917491734 rw

Looks like something, maybe your mail program has a large file open - 
maybe trying to receive a huge file.   Killing the process could get
that file closed and either it would be gone or would finally show
how much space it is holding.

jerry

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


How to use cut or awk commands into sed command ?

2007-12-12 Thread Halid Faith
I have a file named file1 which contains some values.
I want to replace some strings into it, so I use sed command but I get an error.

sed s#oldstring#`cut -d, -f3 file2`#  file1

sed: 1: s/yenidomain2/f0b2875d- ...: unterminated substitute in regular 
expression

also I get an error with awk command into sed;
sed s#oldstring#`awk -F, '{print$3}' file2`#file1
sed: 1: s#yenidomain2#f0b2875d- ...: unterminated substitute in regular 
expression




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


Re: How to use cut or awk commands into sed command ?

2007-12-12 Thread Tino Engel

Halid Faith schrieb:

I have a file named file1 which contains some values.
I want to replace some strings into it, so I use sed command but I get an error.

sed s#oldstring#`cut -d, -f3 file2`#  file1

sed: 1: s/yenidomain2/f0b2875d- ...: unterminated substitute in regular 
expression

also I get an error with awk command into sed;
sed s#oldstring#`awk -F, '{print$3}' file2`#file1
sed: 1: s#yenidomain2#f0b2875d- ...: unterminated substitute in regular 
expression
  

Sure you know what you are doing?
You are giving probably various linefeeds to your substitution (assuming 
file2 has more than one line).
E.G. 'awk ... file2' produces as many lines as there are in file2. But 
the substitution in sed has to be a string-like expression with no line 
feeds.


There for the unterminated substitution error.

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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread RW
On Wed, 12 Dec 2007 12:05:53 -0700 (MST)
Warren Block [EMAIL PROTECTED] wrote:


 It may be possible to use an Adblock subscription to update a squid 
 setup.  That would provide the best of both.

There's no need to do that, you can use a script like adzapper with
squid. It's in ports (www/adzap), so you can pickup a new default
rule file with port updates. And you can define additional rules and
exceptions. The only thing I had to set was some exceptions for sites,
I don't mind seeing adds for.

There's at least one other add blocking squid redirector in ports.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Promise SuperTrak EX12350 don't get detected under FreeBSD 6.2

2007-12-12 Thread Göran Nilsson
Hi,
I have a problem getting my EX12350 Radicontroller to work under FreeBSD 6.2.
When i start the computer or rund a dmesg i can see that
mass storage raid ..no driver attached
For what i can see this card should be supported under FreeBSD 6.1, but
could it be soo that the support is missing in 6.2? Any tips?
Should i try to go for the 6.3 RC1. I really need this card up and running,
i run it as a RAID 6. I have tried this with just the generic kernel,
So the most should be in there?

Ideas, is most appriciating, coz im kinda stuck.

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


Re: How to use cut or awk commands into sed command ?

2007-12-12 Thread Bill Campbell
On Wed, Dec 12, 2007, Halid Faith wrote:
I have a file named file1 which contains some values.
I want to replace some strings into it, so I use sed command but I get an 
error.

sed s#oldstring#`cut -d, -f3 file2`#  file1

sed: 1: s/yenidomain2/f0b2875d- ...: unterminated substitute in regular 
expression

also I get an error with awk command into sed;
sed s#oldstring#`awk -F, '{print$3}' file2`#file1
sed: 1: s#yenidomain2#f0b2875d- ...: unterminated substitute in regular 
expression

The ``cut -d...` may well be biting you with multiple lines or
extra line feeds.  You might see the problem by prefixing your
command with ``echo'' to see what it's actually doing.

echo sed s#oldstring#`cut -d, -f3 file2`#  file1

I usually do more complex substitutions with short python or perl
scripts as (a) they use a common regular expression syntax, and
(b) I find the code cleaner (at least the python :-)

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

Scientists are explorers. Philosophers are tourists. -- Richard Feynman
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /tmp: filesystem full

2007-12-12 Thread Cesar Amaya

Robert Huff wrote:

Cesar Amaya writes:

  

 napstats# fstat | grep /tmp
 www  httpd   1739   15 /tmp  4 -rw---   0 rw



Can you afford to shut down the web server (Apache ?)?


Robert Huff

  
Nothing is shown if I shut down the web server. But I saw something 
weird when I run # fstat | grep /tmp, was something like this:


someusermail.local   1739   15 /tmp  4 -rw---   
73917491734 rw


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


Re: /tmp: filesystem full

2007-12-12 Thread Paul Schmehl
--On Wednesday, December 12, 2007 16:13:42 -0500 Jerry McAllister 
[EMAIL PROTECTED] wrote:



On Wed, Dec 12, 2007 at 03:08:50PM -0600, Cesar Amaya wrote:


Robert Huff wrote:
 Cesar Amaya writes:


 napstats# fstat | grep /tmp
 www  httpd   1739   15 /tmp  4 -rw---   0 rw


Can you afford to shut down the web server (Apache ?)?


Robert Huff


Nothing is shown if I shut down the web server. But I saw something
weird when I run # fstat | grep /tmp, was something like this:

someusermail.local   1739   15 /tmp  4 -rw---
73917491734 rw


Looks like something, maybe your mail program has a large file open -
maybe trying to receive a huge file.   Killing the process could get
that file closed and either it would be gone or would finally show
how much space it is holding.

Yep.  Trying to stuff a 73GB file into a 1GB filesystem isn't going to work 
very well.  At this point I think your only option is to restart the 
mailserver.  Hopefully that will release the file from memory.  Then you 
can delete whatever pieces of it are left in /tmp.


I'd also look at your maillog to see what the filename and type of that 
message was (huge zip attachment?) and suggest to your user that he get the 
file some other way.


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

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


Realtek ALC262 and Via ENVY24 sound cards for rel. 6.2

2007-12-12 Thread Lee Shackelford

Good afternoon, FreeBSD enthusiasts.  For FreeBSD release 6.2, does anyone
know if there is any simpler way of using sound cards containing either a
Realtek ALC262 chip or a Via ENVY24 chip than installing the Linux
emulator, and then using the alsa a.p.i.?  Many thanks.  Yours truly, L e e
_ S h a c k e l f o r d @ d o t . c a . g o v

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


Re: /tmp: filesystem full

2007-12-12 Thread Cesar Amaya


Looks like something, maybe your mail program has a large file open - 
maybe trying to receive a huge file.   Killing the process could get

that file closed and either it would be gone or would finally show
how much space it is holding.

jerry

  


I even restarted the server but the problem is still there.
this is what I got every amount of time (not always).

root mail.local  89873 /tmp  4 -rw---  616886272 rw

I don´t understand why mail.local is gathering a file that big


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


Re: /tmp: filesystem full

2007-12-12 Thread Paul Schmehl
--On Wednesday, December 12, 2007 16:11:24 -0600 Cesar Amaya 
[EMAIL PROTECTED] wrote:





Looks like something, maybe your mail program has a large file open -
maybe trying to receive a huge file.   Killing the process could get
that file closed and either it would be gone or would finally show
how much space it is holding.

jerry




I even restarted the server but the problem is still there.
this is what I got every amount of time (not always).

root mail.local  89873 /tmp  4 -rw---  616886272 rw

I don´t understand why mail.local is gathering a file that big




Yikes!  Looks like whatever that message is is being retried by the sending 
MTA.  Perhaps you could try deleting the message from the queue.  (I assume 
it will sit in there until delivery is successful.)


I think, if you shut the mail server down and then restart it later, you're 
going to continue to have this problem.  You may have to figure out where 
the message is coming from and try to stop it at the other end.  Possibly 
you could configure your server to reject messages larger than a certain 
size, then restart it and let it reject it rather than trying to receive 
it.  I know you can do that with Postfix.  Don't know about other MTAs.


One thing I would do is stop the mail server, wait a minute or two, and 
then check /tmp.  This would positively confirm that the problem is coming 
from the mail server *if* the problem goes away when the server is stopped.


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

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


Re: /tmp: filesystem full

2007-12-12 Thread Jerry McAllister
On Wed, Dec 12, 2007 at 04:11:24PM -0600, Cesar Amaya wrote:

 
 Looks like something, maybe your mail program has a large file open - 
 maybe trying to receive a huge file.   Killing the process could get
 that file closed and either it would be gone or would finally show
 how much space it is holding.
 
 jerry
 
   
 
 I even restarted the server but the problem is still there.
 this is what I got every amount of time (not always).
 
 root mail.local  89873 /tmp  4 -rw---  616886272 rw
 
 I don´t understand why mail.local is gathering a file that big

Apparently someone out there keeps trying to resend that awful
huge mail file, so whenever you restart, it gets stuck in that
same condition.  If you can track down the source of the file,
either nuke it or block it.

jerry

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


Re: /tmp: filesystem full

2007-12-12 Thread Cesar Amaya




Apparently someone out there keeps trying to resend that awful
huge mail file, so whenever you restart, it gets stuck in that
same condition.  If you can track down the source of the file,
either nuke it or block it.

jerry

  

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



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

  

I´m gonna do so.

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


Re: Promise SuperTrak EX12350 don't get detected under FreeBSD 6.2

2007-12-12 Thread Erik Trulsson
On Wed, Dec 12, 2007 at 09:35:09PM +0100, Göran Nilsson wrote:
 Hi,
 I have a problem getting my EX12350 Radicontroller to work under FreeBSD 6.2.
 When i start the computer or rund a dmesg i can see that
 mass storage raid ..no driver attached
 For what i can see this card should be supported under FreeBSD 6.1, but
 could it be soo that the support is missing in 6.2? Any tips?
 Should i try to go for the 6.3 RC1. I really need this card up and running,
 i run it as a RAID 6. I have tried this with just the generic kernel,
 So the most should be in there?
 
 Ideas, is most appriciating, coz im kinda stuck.
 


What makes you think this card is supported by FreeBSD 6.1?

As far as I can tell there is no driver for that card included with any
FreeBSD release.  If it was supported the driver would have been included in
GENERIC kernel, and if was supported in 6.1 it would have been in 6.2 also.


It is quite possible however that Promise provides their own FreeBSD driver
for that card.  If that is the case you should ask Promise which version(s)
of FreeBSD the driver supports and how to install it - or read their
documentation where such information can likely be found.




-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


(no subject)

2007-12-12 Thread Bin Cheng
Hello,

System can't boot from 7.0-BETA4-i386-bootonly cd-rom. I downloaded
7.0-BETA4-i386-bootonly, 7.0- BETA4-i386-disc1 and 7.0-BETA4-i386-disc2
first then burn it on the cd-rom. Any idea? Please let me know.

 

Thank you,

Bin Cheng

Test Development Engineer

IronPort, A Cisco Business Unit

950 Elm Avenue

San Bruno, CA 94066

Direct:  650.243.5852

Cell: 650.676.0249

[EMAIL PROTECTED]

 

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


Re: /tmp: filesystem full

2007-12-12 Thread Jerry McAllister
On Wed, Dec 12, 2007 at 05:56:23PM -0600, Cesar Amaya wrote:

 
 
 Apparently someone out there keeps trying to resend that awful
 huge mail file, so whenever you restart, it gets stuck in that
 same condition.  If you can track down the source of the file,
 either nuke it or block it.
 
 jerry
 
   
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
   
 I´m gonna do so.
 
 Thank you very much you all guys!!!

One thing you can do is to look in /var/spool/mqueue and see if
there are any really large files in there.   If there are, that
is the one that is messing you up.Delete both the date file
and the queue header file.

jerry


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


Re: /tmp: filesystem full

2007-12-12 Thread Steve Bertrand
 Apparently someone out there keeps trying to resend that awful
 huge mail file, so whenever you restart, it gets stuck in that
 same condition.  If you can track down the source of the file,
 either nuke it or block it.

In addition to finding the actual cause of the problem, you may want to
consider symlinking /tmp under a larger partition until the problem is
resolved.

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


Re: /tmp: filesystem full

2007-12-12 Thread Chuck Swiger

On Dec 12, 2007, at 2:19 PM, Jerry McAllister wrote:

[EMAIL PROTECTED] wrote:

I even restarted the server but the problem is still there.
this is what I got every amount of time (not always).

root mail.local  89873 /tmp  4 -rw---   
616886272 rw


I don´t understand why mail.local is gathering a file that big


Apparently someone out there keeps trying to resend that awful
huge mail file, so whenever you restart, it gets stuck in that
same condition.  If you can track down the source of the file,
either nuke it or block it.


You should add something like this to your sendmail.mc config:

  define(`confMAX_MESSAGE_SIZE', `2100')dnl

...which will set a maximum message size that your SMTP server is  
willing to accept.  The recommended max size in the RFCs was something  
like 10 MB, but season to taste.


--
-Chuck

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


Re: Realtek ALC262 and Via ENVY24 sound cards for rel. 6.2

2007-12-12 Thread Predrag Punosevac

Lee Shackelford wrote:

Good afternoon, FreeBSD enthusiasts.  For FreeBSD release 6.2, does anyone
know if there is any simpler way of using sound cards containing either a
Realtek ALC262 chip or a Via ENVY24 chip than installing the Linux
emulator, and then using the alsa a.p.i.?  Many thanks.  Yours truly, L e e
_ S h a c k e l f o r d @ d o t . c a . g o v

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
  
Did you try to compile Open Sound System from ports? I have some Realtek 
crap and it worked only with OSS. I think that many more devices are 
supported in 7.0 so you might want to upgrade the system. Check the 
hardware notes.
For the list of supported devices by OSS you can check Open Sound 
System web-site.
They also have a binary package that you can install with pkg_add 
utility. Package is sometimes updated before the port!

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


Re: How to use cut or awk commands into sed command ?

2007-12-12 Thread Giorgos Keramidas
On 2007-12-12 23:19, Halid Faith [EMAIL PROTECTED] wrote:
 I have a file named file1 which contains some values.
 I want to replace some strings into it, so I use sed command but I get an 
 error.

 sed s#oldstring#`cut -d, -f3 file2`#  file1
 sed: 1: s/yenidomain2/f0b2875d- ...: unterminated substitute in regular 
 expression

That's not enough information to help you in a meaningful manner.

* What does `file2' have to do with the replacement strings, and why do
  you use it?

* What are the contents of both files?

* What do you want to replace, and what should it be replaced with?

 also I get an error with awk command into sed;
 sed s#oldstring#`awk -F, '{print$3}' file2`#file1
 sed: 1: s#yenidomain2#f0b2875d- ...: unterminated substitute in regular 
 expression

That's not very different from the cut-based command.

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


Re: is there a port to 'copy' audio from one soundcard to another in realtime?

2007-12-12 Thread Lowell Gilbert
Steve Franks [EMAIL PROTECTED] writes:

 Say I have multiple usb audio devices, and I want to make a simple
 'mixer' - anyone know how to do that?

You could try just using cat(1) to copy between the devices...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


(postfix) SPAM filter?

2007-12-12 Thread Sten Daniel Soersdal
We have a need for a relatively painless anti-spam solution that would 
reduce the amount of incoming spam (via postfix mail router). The 
problem is that i have little knowledge on what this actually means. 
Googling reveals a whole universe of interesting ways but what should 
i pursue?

The things that are important to me is:

* Once it is setup then it would require no additional maintenance.
* Potential spam messages are marked with a special header that can be 
filtered on user discretion on their local mail client software.


Neither performance, scalability, license nor cost is of much importance 
to me at this point.


Any hints?


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


Re: Mounting Western Digital USB drive?

2007-12-12 Thread Yi Wang
Try mount_ntfs /dev/da0 /mnt

some usb disk doesn't have s1 postfix.

On 12/12/07, Patrick Baldwin [EMAIL PROTECTED] wrote:
 Hi, I'm trying to mount a 160 GB Western Digital USB 2.0 drive on a
 FreeBSD 6.2 system.  This seemed like it should be relatively simple,
 but:

 webmail# mount /dev/da0s1 /mnt/usbdrive
 mount: /dev/da0s1 on /mnt/usbdrive: incorrect super block

 OK, it seemed a good chance the USB drive was formatted with NTFS, so I
 tried:

 webmail# mount_ntfs /dev/da0s1 /mnt/usbdrive
 mount_ntfs: /dev/da0s1: Invalid argument

 Further reading on mount_ntfs suggested that even if I got it to
 work, it's not quite what I want:  I want read  write access
 with compressed files supported.

 dmesg:
 umass0: Western Digital External HDD, rev 2.00/1.04, addr 2
 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: WD 1600BEV External 1.04 Fixed Direct Access SCSI-4 device
 da0: 40.000MB/s transfers
 da0: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C)

   usbdevs -v
 Controller /dev/usb0:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x), rev 1.00
   port 1 powered
   port 2 powered
 Controller /dev/usb1:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x),
 Intel(0x), rev 1.00
   port 1 powered
   port 2 powered
 Controller /dev/usb2:
 addr 1: high speed, self powered, config 1, EHCI root hub(0x),
 Intel(0x), rev 1.00
   port 1 addr 2: high speed, self powered, config 1, External
 HDD(0x0702), Western Digital(0x1058), rev 1.04
   port 2 powered
   port 3 powered
   port 4 powered

 Any help appreciated.






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



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


Re: (postfix) SPAM filter?

2007-12-12 Thread Beech Rintoul
On Wednesday 12 December 2007, Sten Daniel Soersdal said:
 We have a need for a relatively painless anti-spam solution that
 would reduce the amount of incoming spam (via postfix mail router).
 The problem is that i have little knowledge on what this actually
 means. Googling reveals a whole universe of interesting ways but
 what should i pursue?
 The things that are important to me is:

 * Once it is setup then it would require no additional maintenance.
 * Potential spam messages are marked with a special header that can
 be filtered on user discretion on their local mail client software.

 Neither performance, scalability, license nor cost is of much
 importance to me at this point.

 Any hints?

SpamAssassin (in the ports tree). It's relatively easy to set up and 
can be used server wide or on an individual basis. Individuals can 
also override site-wide settings. Links to setting up with postfix 
can be found on the postfix site.

Beech

-- 
---
Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | FreeBSD Since 4.x
\ / - NO HTML/RTF in e-mail   | http://www.freebsd.org
 X  - NO Word docs in e-mail | Latest Release:
/ \  - http://www.FreeBSD.org/releases/6.2R/announce.html
---



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


Re: (postfix) SPAM filter?

2007-12-12 Thread Steve Bertrand
Sten Daniel Soersdal wrote:
 We have a need for a relatively painless anti-spam solution that would
 reduce the amount of incoming spam (via postfix mail router). The
 problem is that i have little knowledge on what this actually means.
 Googling reveals a whole universe of interesting ways but what should
 i pursue?
 The things that are important to me is:
 
 * Once it is setup then it would require no additional maintenance.
 * Potential spam messages are marked with a special header that can be
 filtered on user discretion on their local mail client software.
 
 Neither performance, scalability, license nor cost is of much importance
 to me at this point.
 
 Any hints?

No additional maintenance (less user add/delete)?:

http://www.postini.com

Unfortunately, it's been years since I've used their services so I can't
remember if they have the ability to mark and pass.

It's a hands-off solution that works.

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


Re: (postfix) SPAM filter?

2007-12-12 Thread Steve Bertrand
 * Once it is setup then it would require no additional maintenance.
 * Potential spam messages are marked with a special header that can
 be filtered on user discretion on their local mail client software.

 Neither performance, scalability, license nor cost is of much
 importance to me at this point.

 Any hints?
 
 SpamAssassin (in the ports tree). It's relatively easy to set up and 
 can be used server wide or on an individual basis. Individuals can 
 also override site-wide settings. Links to setting up with postfix 
 can be found on the postfix site.

I was going to recommend that, but from my experience, there is no real
*easy* way to allow users directly to modify their own settings. I am
probably wrong though.

Another solution (which is also not a do-it-yourself), is
http://barracuda.com.

We switched from Postini to an internal Barracuda cluster and have never
looked back.

I might add that I personally run an ancient version of SpamAssassin on
my personal box which still works, and I have an upgraded box coming
down the pipe. I have no experience with having inexperienced users
manage their own account with it though.

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


Re: (postfix) SPAM filter?

2007-12-12 Thread Beech Rintoul
On Wednesday 12 December 2007, Sten Daniel Soersdal said:
 We have a need for a relatively painless anti-spam solution that
 would reduce the amount of incoming spam (via postfix mail router).
 The problem is that i have little knowledge on what this actually
 means. Googling reveals a whole universe of interesting ways but
 what should i pursue?
 The things that are important to me is:

 * Once it is setup then it would require no additional maintenance.
 * Potential spam messages are marked with a special header that can
 be filtered on user discretion on their local mail client software.

I should also mention that SpamAssassin has exactly such an option and 
doesn't require any hands on except for an occasional update once set 
up.


 Neither performance, scalability, license nor cost is of much
 importance to me at this point.

 Any hints?

Beech

-- 
---
Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | FreeBSD Since 4.x
\ / - NO HTML/RTF in e-mail   | http://www.freebsd.org
 X  - NO Word docs in e-mail | Latest Release:
/ \  - http://www.FreeBSD.org/releases/6.2R/announce.html
---



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


Re: (postfix) SPAM filter?

2007-12-12 Thread Chuck Swiger

On Dec 12, 2007, at 5:12 PM, Sten Daniel Soersdal wrote:
We have a need for a relatively painless anti-spam solution that  
would reduce the amount of incoming spam (via postfix mail router).  
The problem is that i have little knowledge on what this actually  
means. Googling reveals a whole universe of interesting ways but  
what should i pursue?

The things that are important to me is:

* Once it is setup then it would require no additional maintenance.
* Potential spam messages are marked with a special header that can  
be filtered on user discretion on their local mail client software.


Install the following:

/usr/ports/mail/postfix-policyd-weight
/usr/ports/mail/postgrey
/usr/ports/mail/p5-Mail-SpamAssassin
/usr/ports/security/amavisd-new
/usr/ports/security/clamav

policyd + postgrey provide rather good, very lightweight initial  
filtering of email without taking up a lot of memory or resources, and  
remove a lot of workload, so that the Amavisd+ClamAV+SA combination  
only has to do virus-scanning and SpamAssassin's expensive Bayesian  
word-mangling on emails which seem to be legit.


Regards,
--
-Chuck

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


Re: results of ports re-engineering survey

2007-12-12 Thread Chuck Robey

Aryeh M. Friedman wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

*PLEASE ONLY REPLY TO ME OR [EMAIL PROTECTED]


Omigod!!

For Gods sake, could you PLEASE not have folks reply to the list!  We 
have been sufficiently bombarded with this already.  If you must have 
the replies public, then send them to freebsd-chat, but plesae stop 
polluting the list (as you are clearly asking people to do above).




A few disclaimers:

Neither I or anyone else is asking for FreeBSD to incorparate any
modifications to the current base system and/or ports collection.   If
and when any code is developed from this process it will be committed
using normal commit and review processes.

The following summary of results is based on my eyeballing of
answers and should not be interpreted as being any sort of
mathematically and/or scientifically valid in any manner.

Number of responses: roughly 30

Summary of results:

1. Most respondents stated that both the underlaying OS and the ports
collection are equally important.   When a preference was shown it was
for the underlaying OS in most cases.

2. On average people tend to interact with the port system once or
twice a week

3. The single best aspect of the ports system according to respondents
is dependency tracking when installing new ports

4. The single worst aspect of the ports system according to
respondents is dependency tracking when updating or deleting existing
ports

5. Most respondents would not change there answers tothe survey if
they where new to FreeBSD

6. Almost all respondents would use a new system if it fixed their
personal worst aspect of the current system

7. About 50% of respondents would use a new system if it broke the
best aspect of the ports system but fixed the worst aspect

8. Length of FreeBSD usage: rough avr. of 8 years with roughly 3 year
std. dev.

9. Prefered install method: ports

10. Usage roughly evenly spread among desktop, development and servers

11. Subsystem ratings (rough avr's):

UI: 6
Constancy: 9
Dependancy tracking: 7
Record keeping: 9
Granularity: 9

12. Most users are either sysadmins and/or developers

Orginial Survey:

As has been hashed out in -ports@ over the last few days there is at
least a need to examine weither or not the current ports system should
remain as is or potentially be re-engineered in the future (estimates
if and when needed vary from ASAP to 10-15 years).   I have
volunteered to undertake a feasibility/pilot project to examine what
changes (if any) are needed in the system (for the purposes of this
thread I will not venture any of my own suggestions).   I have the
following broad questions for people:

1. What is more important to your personal use of FreeBSD (the ports
system, the underlaying OS, some other aspect)?

2. How frequently do you interact with the ports systems and what is
the most common interaction you have with it?

3. What is the single best aspect of the current system?

4. What is the single worst aspect of the current system?

5. If you where a new FreeBSD user how would your answers above
change?   If you where brand new to UNIX how whould they change?

6. Assuming that there was no additional work on your behalf would you
use a new system if it corrected your answer to number 4?

7. Same as question 6 but for your answer on question 3?

8. How long have you used FreeBSD and/or UNIX in general?

9.  That is your primary use(s) for your FreeBSD machine(s) (name upto 3)?

10. Assuming there is no functional difference what is your preferred
installation method for 3rd party software?

11. On a scale from 1 to 10 (10 being the best) please rate the
importance of the following aspects of the ports system?

  a. User Interface
  b. Consistency of behaviors and interactions
  c. Accuracy in dependant port installations
  d. Internal record keeping
  e. Granularity's of the port management system

12. Please rate your personal technical skill level?
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHX3MyzIOMjAek4JIRAqqjAJ9YlNJW9Uqa21yK+sm1IST+KmO7QACfeum+
9rhuEkdKX6BKkFZr6WGmbDU=
=jhg0
-END PGP SIGNATURE-

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


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


Re: System wont boot from cdrom (was: (no subject))

2007-12-12 Thread Jeremy Gransden
On Dec 12, 2007 7:13 PM, Bin Cheng [EMAIL PROTECTED] wrote:

 Hello,

 System can't boot from 7.0-BETA4-i386-bootonly cd-rom. I downloaded
 7.0-BETA4-i386-bootonly, 7.0- BETA4-i386-disc1 and 7.0-BETA4-i386-disc2
 first then burn it on the cd-rom. Any idea? Please let me know.



Hi,

We are going to need much more information then that. How did you burn the
cd's? (the files you downloaded are cd images that need to be burned as
such). What type of hardware? Is the bios set to boot from cd? Do you have
problems booting from other bootable cd's? Please be a little more
descriptive when asking questions, and you may get more answers.


Also,
Please use a more descriptive subject line. Many who read this list will
discard any email without a subject.

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


Re: (postfix) SPAM filter?

2007-12-12 Thread Duane Hill
On Wed, 12 Dec 2007 20:55:45 -0500
Steve Bertrand [EMAIL PROTECTED] wrote:

 I was going to recommend that, but from my experience, there is no
 real *easy* way to allow users directly to modify their own settings.
 I am probably wrong though.

Postfix is running here on a FreeBSD server as a boarder filter server.
All bayes and per-user SpamAssassin settings are stored within a MySQL
database on our SQL server.

The web mail interface is SquirrelMail installed on a different FreeBSD
server and has the sasql plugin interfaced to the MySQL server so the
customers have control over what they want to set their spam score,
whitelist, blacklist, whether they want bayes filtering, whether they
want bayes autolearn and so forth.

It has been pretty low maintenance. I am in the process of evaluating
the possibility of using amavis-new.

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


ntpd configuration file changes

2007-12-12 Thread jekillen

Hello:
Q: When making changes to ntp.conf it is necessary to restart the 
server?

(I suspect yes)
Q: How is that done?
(I suspect ntpd reload or restart per rc script.. along the lines of 
apachectl restart

or postfix reload??? Kill -HUP pid ??? )
I am looking at FreeBSD handbook and ntp documentation and have not
found the answers.
thank you in advance for info
Jeff K

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


Re: (postfix) SPAM filter?

2007-12-12 Thread Pollywog
On Thursday 13 December 2007 03:35:00 Duane Hill wrote:


 It has been pretty low maintenance. I am in the process of evaluating
 the possibility of using amavis-new.

I used amavis-new on a Linux system and lost the ability to have per-user 
settings.  I had to go with a systemwide setting and I don't know if amavis 
allows per-user configuration.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: (postfix) SPAM filter?

2007-12-12 Thread Steve Bertrand
Duane Hill wrote:
 On Wed, 12 Dec 2007 20:55:45 -0500
 Steve Bertrand [EMAIL PROTECTED] wrote:
 
 I was going to recommend that, but from my experience, there is no
 real *easy* way to allow users directly to modify their own settings.
 I am probably wrong though.
 
 Postfix is running here on a FreeBSD server as a boarder filter server.
 All bayes and per-user SpamAssassin settings are stored within a MySQL
 database on our SQL server.
 
 The web mail interface is SquirrelMail installed on a different FreeBSD
 server and has the sasql plugin interfaced to the MySQL server so the
 customers have control over what they want to set their spam score,
 whitelist, blacklist, whether they want bayes filtering, whether they
 want bayes autolearn and so forth.
 
 It has been pretty low maintenance. I am in the process of evaluating
 the possibility of using amavis-new.

For myself, I've run a very similar environment with a lot of custom
hacked software to integrate it all. The reason I haven't upgraded yet
is because I've hacked so much of squirrelmail and other aspects of the
setup since 2004 that there will be no way for me to carry things over
(easily;)

Depending on what way one looks at it, It may be good or bad that I
don't really have time to follow what is happening with SPAM prevention
in regards to Open Source anymore.

I agree that SA/ClamAV/maildrop is an excellent setup, particularly
running atop of Qmail with VPOPMail etc.

I also have used Sendmail with milters and procmail to do the same
thing...extensively.

Realistically, it comes down to what the OP wants. I am but one operator
in a 'small' ISP. I also manage it's support department. The truth is
that once the OP stated that budget wasn't an issue, and he wanted
essentially a turnkey solution, the easiest and most cost-effective
method that I have learned is outsource it.

If you can afford the bandwidth to filter in house, then you can also
afford to have a 24*7*1hr support contract with a vendor so your support
staff can do some of your work for you (or play games).

If you can't afford bandwidth inbound, but still want your help-desk
staff and yourself available, outsource to someone or some entity who
specializes on only email security so they can filter before the mail
touches your network.

Otherwise, install/maintain yourself. Understand I am not trying to
negate the use/feasibility of any software. I am running with the fact
that cost for the OP is no issue. If that is truly the case, then why do
it yourself when you can pay someone else who knows better to do it for
you? The cost savings on headaches and lost time on downed equipment
alone are more than worth it.

...I'm being too business-minded, and too obtuse. Back to figuring out
why DBD::mysql won't compile on my legacy FreeBSD box I go...

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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Gary Kline
On Wed, Dec 12, 2007 at 09:10:15PM +, RW wrote:
 On Wed, 12 Dec 2007 12:05:53 -0700 (MST)
 Warren Block [EMAIL PROTECTED] wrote:
 
 
  It may be possible to use an Adblock subscription to update a squid 
  setup.  That would provide the best of both.
 
 There's no need to do that, you can use a script like adzapper with
 squid. It's in ports (www/adzap), so you can pickup a new default
 rule file with port updates. And you can define additional rules and
 exceptions. The only thing I had to set was some exceptions for sites,
 I don't mind seeing adds for.
 
 There's at least one other add blocking squid redirector in ports.



well, thi sounded great until I read squid.  Isn't that
something to do with FBSD and Windows?  If not, how hard is squid
to install; what does it do?

 ___

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

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

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


Re: (postfix) SPAM filter?

2007-12-12 Thread Kurt Buff
On 12/12/07, Sten Daniel Soersdal [EMAIL PROTECTED] wrote:
 We have a need for a relatively painless anti-spam solution that would
 reduce the amount of incoming spam (via postfix mail router). The
 problem is that i have little knowledge on what this actually means.
 Googling reveals a whole universe of interesting ways but what should
 i pursue?
 The things that are important to me is:

 * Once it is setup then it would require no additional maintenance.
 * Potential spam messages are marked with a special header that can be
 filtered on user discretion on their local mail client software.

 Neither performance, scalability, license nor cost is of much importance
 to me at this point.

 Any hints?

Yes, one recommendation for sure. Give up on your first goal. It'll
never happen, because fighting spam is an arms race, with new tactics
needing to be adopted.

As for the second goal, spamassassin along with one of several
packages will do well for you - I use Maia Mailguard, but I've heard
good things about MailZu with Amavisd-new as well.

Others will talk about other packages. It's worth taking a look at
each of them to figure out what works for you.

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


Re: (postfix) SPAM filter?

2007-12-12 Thread Steve Bertrand
 * Once it is setup then it would require no additional maintenance.
 * Potential spam messages are marked with a special header that can be
 filtered on user discretion on their local mail client software.

 Yes, one recommendation for sure. Give up on your first goal. It'll
 never happen, because fighting spam is an arms race, with new tactics
 needing to be adopted.

Amen (or Ahem, or what BSDie would say). There will *ALWAYS* be
maintenance. If you are not developing new regexs and/or solutions to
fight the daily produced techniques that make up SPAM, then you are
implementing them.

If there is anyone who disagrees, then you likely have not dealt with
SPAM in an organization larger than a few thousand dispersed and
non-educated users.

If you have such, and you have no maintenance, then I beg your pardon.

 Others will talk about other packages. It's worth taking a look at
 each of them to figure out what works for you.

...agreed. It's also worth taking a look at ALL options, not just
'packages' to figure out what works for you.

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


Re: ntpd configuration file changes

2007-12-12 Thread N.J. Thomas
* jekillen [EMAIL PROTECTED] [2007-12-12 20:42:47-0800]:
 Q: When making changes to ntp.conf it is necessary to restart the
 server?

According to the ntpd docs, yes. The ntpd configuration docs say this:

Ordinarily, ntpd reads the ntp.conf configuration file at startup
time in order to determine the synchronization sources and operating
modes.

 Q: How is that done?

On FreeBSD, it is typically done via /etc/rc.d/ntpd restart.

 (I suspect ntpd reload or restart per rc script.. along the lines of
 apachectl restart or postfix reload??? Kill -HUP pid ??? ) I am
 looking at FreeBSD handbook and ntp documentation and have not found
 the answers.

See the Using rc under FreeBSD section of the Handbook:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcd.html

It is based on Luke Mewburn's excellent NetBSD rc.d system. See the
document, The Design and Implementation of the NetBSD rc.d system
(PDF) here, it is an excellent read:

http://www.mewburn.net/luke/bibliography.html

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: (postfix) SPAM filter?

2007-12-12 Thread Rudy

Steve Bertrand wrote:

* Once it is setup then it would require no additional maintenance.
* Potential spam messages are marked with a special header that can be
filtered on user discretion on their local mail client software.



Yes, one recommendation for sure. Give up on your first goal. It'll
never happen, because fighting spam is an arms race, with new tactics
needing to be adopted.


Amen (or Ahem, or what BSDie would say). There will *ALWAYS* be
maintenance. If you are not developing new regexs and/or solutions to
fight the daily produced techniques that make up SPAM, then you are
implementing them.


I have found spam assassin with nightly updates of the helpful (there are other people developing 
new regexs daily).


48 5 * * * /usr/local/bin/sa-update  --channel updates.spamassassin.org  
/usr/local/etc/rc.d/sa-spamd restart


There are other channels you can subscribe to.

Another super helpful bocker is to block all inbound connections from IPs without reverse DNS. 
Don't forget to virus check your email while you are at it -- there are several packages (clamav is 
one).  And finally, a couple of RBLs added into the mix are helpful.


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


Re: performance impact of large /etc/hosts files

2007-12-12 Thread Heiko Wundram (Beenic)
Am Donnerstag, 13. Dezember 2007 06:52:41 schrieb Gary Kline:
   well, thi sounded great until I read squid.  Isn't that
   something to do with FBSD and Windows?  If not, how hard is squid
   to install; what does it do?

You're probably thinking of samba, which is an implementation of the SMB 
protocol (server-side) for *nix-systems. The operating system using SMB as 
client is most probably Windows in case you set up a samba server.

squid is an HTTP-proxy. Something completely different. And setting it up (at 
least with a default configuration, which you'll have to adapt) is simply 
installing the port and starting it.

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


Re: mounted cd and tray locking

2007-12-12 Thread Nikos Vassiliadis
On Wednesday 12 December 2007 18:58:44 Andriy Gapon wrote:
 Hmm. Looked at the code and it should be as expected. Played with
 various stuff and here's what I think: it seems that having atapicam and
 hald and maybe something in KDE that polls for CD change is to blame.

I have no atapicam in my kernel. Nor hald running.
I reproduced it like this:
mount /cdrom
cdcontrol eject
press the eject key and the tray will open.

Nikos

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


Re: How to use cut or awk commands into sed command ?

2007-12-12 Thread Halid Faith
Let me try to explain
I have a file called A which contains variable values as below;
file1, abc12
foot1, cba11
boby, def123
...

Also I have another file called B which contains partly valuable values as
following;
### file of A begin
Server valuable1
Client valuable2
 the file end

I have to assign the first column valuables in A to valuable1 in B and
assign second column valuable1 in A to valuable2 in B.
Finally I should see as following in a file called C
Server file1
Client abc12

Server foot1
Client cba11

Server boby
Client def123

How can I do that ? Could you give me a script ?

Also does it possible to define two or more variable in for loop as below
 for  i in `cat file1` a  in `cat file2` ;
do
sed -e s/oldstring1/$i/ -e s/oldstring2/$a/
done

Thanks

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


Re: RELENG_7 and diablo-jdk

2007-12-12 Thread Heiko Wundram (Beenic)
Am Mittwoch, 12. Dezember 2007 22:15:00 schrieb Tino Engel:
 for me, java apps always segfault under releng_7.
 They never did under releng_6.
 Have not found out yet why..

The JDK's hotspot compiler digs pretty deep into the system to compile Java 
code to machine code and run that dynamically. Because of the new operating 
system version (and changes it introduced), this simply doesn't work properly 
anymore without a recompile of the JDK for the current system (I haven't dug 
deeper into the actual cause of the brokenness yet, but the probable cause 
I could think of is some changes in the kernel system call interface between 
RELENG_6 and _7, which the JDK uses without going through libc as a wrapper 
shin which would hide the changes).

The workaround is simply to install one of the Sun JDKs from sources directly, 
using the Diablo JDK only to get a working XSLT-processor (which comes 
bundled with any JDK and doesn't cause the Diablo JDK to segfault when run), 
which is required in the bootstrapping process of the compilation of a JDK. 
After building and installing one of the Sun JDKs, you're free to remove the 
Diablo JDK; the functionality of the two is equal (AFAICT).

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


Re: (postfix) SPAM filter?

2007-12-12 Thread Heiko Wundram (Beenic)
Am Donnerstag, 13. Dezember 2007 03:12:53 schrieb Chuck Swiger:
 Install the following:

 /usr/ports/mail/postfix-policyd-weight
 /usr/ports/mail/postgrey

Just as an added suggestion: these two (very!) lightweight packages suffice to 
keep SPAM out of our company pretty much completely. Both are best used to 
reject mails before they even have to be delivered (in Postfix, this is a 
sender or recipient restriction, see the websites of the two projects for 
more details on how to set them up), so as a added bonus, people don't have 
to scroll through endless lists of mails marked as ***SPAM***.

I've had a setup with amavisd-new, spamassassin and clamav on another mail 
server (basically the same thing Chuck described), but for our current usage, 
these two are efficient enough not to warrant the upgrade to more powerful 
hardware (which would be required to run SpamAssassin properly).

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