Re: new server hardware recommendations ?

2004-06-20 Thread Skylar Thompson
On Wed, Jun 16, 2004 at 01:28:56AM +0200, Stephan van Beerschoten wrote:
 Hi Folks,
 
 I'm will be retiring my old and trusty rackmount machine soon and will
 be purchasing a new one to replace it. The old one was a home-grown
 combination of hardware, fitting into a 2U chassis.
 
 For its replacement however, I am looking for a more professional
 system, including professional (hardware) support if needed, because I
 will be trying to run some paid services of it.
 Something from a vendor like Dell, IBM or HP/Compaq.
 Something that preferably fits into 1U and can give me some degree of
 hardware fault tolerance like a raid5 built-in on 3 disks.
 I have seen something like this coming from Dell for example (allthough
 I'd really rather use 2x AMD64, which Dell doesn't do ..)
 
 Anyway, who is using FreeBSD in a professional world on hardware like
 this ? Anyone with a recommendation?
 This 'swap' won't happen untill Q4 this year, so it will be running
 5-STABLE then. Please take this new platform into consideration for when
 recommending new hardware.

Although I can highly recommend Dell systems, FreeBSD has an annoying bug
wrt to their 1U system (the Poweredge 1750) where the SCSI bus will hang if
you have more than one device installed at boot time. This apparently
doesn't happen if you have the $400 RAID option card installed; it only
happens when the SCSI bus is a plain SCSI bus.

Other than that, I've been very happy with Poweredges. We also have 2650
running FreeBSD 4.10, and it's been a pleasure to work with. It's blazingly
fast (especially compared to our old dual P-III setup), reliable, and has
FreeBSD support for *everything*. There's a software utility for the PERC
RAID card (aaccli), a kernel support for the remote-access controller, etc.
I'd highly recommend it.

-- 
-- Skylar Thompson ([EMAIL PROTECTED])
-- http://www.cs.earlham.edu/~skylar/


pgp3IUGX3xVRI.pgp
Description: PGP signature


Re: Migrating my mailhub from 4.9 to 5.x

2004-06-20 Thread Skylar Thompson
On Wed, Jun 16, 2004 at 01:43:43PM +0200, Frank BONNET wrote:
 Hello
 
 I am in the process to migrate my mailhub ( ~3000 mailboxes ) from 4.9
 to the next 5.x release to be able to use native nss_ldap and pam_ldap.
 
 I have tested the 5.2.1 version on another smallest machine and most
 of my needings are working.
 
 BUT
 
 I need also to change the webmail I use actually as it seems to be not
 supported anymore , this is IMHO working on the Roxen http server.
 
 I need a webmail that works with uw-imap ( mandatory ) and the maildox
 format as I have to keep a large amount of mailboxes and don't want
 want to use the maildir format for now.
 
 Any recommendations on the webmail I should use ? 
 I have tested some on my spare machine but really don't know how they 
 will work under a production load 
 
 The machine is a HP/Compaq Proliant GL380 with 2 Gb RAM 
 and a lot of disk space.

I'd highly recommend Squirrelmail (http://www.squirrelmail.org). I use it
on a couple servers at work (a campus-wide server, and a server specific to
the CS department), and it works great. It's got a good plugin system, and
is reasonably fast (and with options to make it very fast).

Another one to look at is OpenWebmail (http://openwebmail.org). I haven't
used this in a production environment, so I don't have much practical
knowledge of it.

-- 
-- Skylar Thompson ([EMAIL PROTECTED])
-- http://www.cs.earlham.edu/~skylar/


pgpub1JvftV7J.pgp
Description: PGP signature


Re: Sendmail for Large Sites

2004-06-20 Thread Skylar Thompson
On Fri, Jun 18, 2004 at 01:06:34PM -0400, Jason Stewart wrote:
 On 18/06/04 06:13 -0500, Martin McCormick wrote:
  
  There are other considerations such as the facts that all
  incoming and outgoing messages are checked for malicious attachments.
  ldap is used to drive the setting of customer mail delivery
  preferences and even their user ID choice.
  
 
 Hi Martin,
 
 Sendmail and Postfix can do the virus scanning. You're going to need
 some serious firepower to scan all attachments for 25000 users.

It depends on how much email these users are generating. I'm an admin for a
small CS department at a liberal arts college. We support around 250 users
(math, physics, CS, alums, and professors). On a normal day, we process
between 1000 and 3000 messages. Our email server is a Dell Poweredge 2650
with dual 2.8GHz processors and 1GB of RAM. We run Sendmail with
MailScanner, which in turn invokes its own testing rubrics and disarming
routines along with SpamAssassin and ClamAV. Benchmarking this system
indicated that we could process over 1,000,000 messages a day. And with
MailScanner, incoming mail will queue up if MailScanner can't keep up for a
while, so you never actually send back the temporary failure codes you have
to use with milters. This system is hardly big iron (or any kind of iron,
for that matter), and cost less than $5000. If he supports 25,000 users, he
should be able to scare up at least that much money.

-- 
-- Skylar Thompson ([EMAIL PROTECTED])
-- http://www.cs.earlham.edu/~skylar/


pgpK92bjvrM5N.pgp
Description: PGP signature


The FreeBSD Diary: 2004-05-30 - 2004-06-19

2004-06-20 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to [EMAIL PROTECTED] with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 

These are the articles posted during this period:

15-Jun : IBM ThinkPad T41
 Installing and configuring FreeBSD and XFree86 
 http://freebsddiary.org/ibm-thinkpad-t41.php?2

4-Jun : Stolen laptop - used on MSN?
 Did someone use my laptop on MSN? 
 http://freebsddiary.org/laptop-stolen-msn.php?2

1-Jun : Bacula - Sony SDT 1
 New DAT drive, new tests 
 http://freebsddiary.org/bacula-sony-sdt-1.php?2


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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


read vs. mmap (or io vs. page faults)

2004-06-20 Thread Mikhail Teterin
Hello!

I'm writing a message-digest utility, which operates on file and
can use either stdio:

while (not eof) {
char buffer[BUFSIZE];
size = read( buffer ...);
process(buffer, size);
}

or mmap:

buffer = mmap(... file_size, PROT_READ ...);
process(buffer, file_size);

I expected the second way to be faster, as it is supposed to avoid
one memory copying (no user-space buffer). But in reality, on a
CPU-bound (rather than IO-bound) machine, using mmap() is considerably
slower. Here are the tcsh's time results:

Single Pentium2-400MHz running 4.8-stable:
--
stdio:  56.837u 34.115s 2:06.61 71.8%   66+193k 11253+0io 3pf+0w
mmap:   72.463u 7.534s 2:34.62 51.7%5+186k 105+0io 22328pf+0w

Dual Pentium2 Xeon 450MHz running recent -current:
--
stdio:  36.557u 29.395s 3:09.88 34.7%   10+165k 32646+0io 0pf+0w
mmap:   42.052u 7.545s 2:02.25 40.5%10+169k 16+0io 15232pf+0w

On the IO-bound machine, using mmap is only marginally faster:

Single Pentium4M (Centrino 1GHz) runing recent -current:

stdio:  27.195u 8.280s 1:33.02 38.1%10+169k 11221+0io 1pf+0w
mmap:   26.619u 3.004s 1:23.59 35.4%10+169k 47+0io 19463pf+0w

Notice the last two columns in time's output -- why is page-faulting a
page in -- on-demand -- so much slower then read()-ing it? I even tried
inserting ``madvise(buffer, file_size, MADV_SEQUENTIAL)'' between the
mmap() and the process() -- made difference at all (or made the mmap()
take slightly longer)...

I this how things are supposed to be, or will mmap() become more
efficient eventually? Thanks!

-mi



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


Re: UFS2 and ufs2 documentation ?

2004-06-20 Thread Antoine Jacoutot
On Sunday 20 June 2004 01:29, Joe Schmoe wrote:
 Quick question - when I run `mount` or view /etc/fstab in fbsd 5.x, I just
 see ufs as the filesystem type.  How can I get some kind of output that
 assures me that those volumes are indeed UFS2 volumes ?  How do I verify
 that ? 

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


Re: New user questions :)

2004-06-20 Thread Norberto Meijome
Bill Moran wrote:
Graham Bentley [EMAIL PROTECTED] wrote:
[...]
I also wondered if there is a project based on FreeBSD that
achieves similar goals to SME Server (ie all in one LAN server
with Web config) or similar to Trustix (ie minimal config with
series of scripts to configure server services.

Not that I know of, but it sure would be a nice project, huh?
definitely a nice one.
hmm...what would be the best way to go about it?
 - add an option to sysinstall SME (well, whatever that would be 
named of course)
 - add a port that 'depends' / installs all the other ports needed
- with questions and answer to start setting up your system...or 
some kind of UI for it (ugh)
 - same as with ports, but prec-compiled packages.

hmm...must download SME to test and see how they went about it.
[...]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cannot compile jdk14 for Freebsd 5.2.1 - weired problem occures

2004-06-20 Thread Kris Kennaway
On Sat, Jun 19, 2004 at 05:43:17PM -0700, Lukasz Koszanski wrote:
  make install
 ===  Installing for jdk-1.4.2p6_4
 ===   jdk-1.4.2p6_4 depends on executable: javavm -
 found
 ===   jdk-1.4.2p6_4 depends on file:
 /usr/X11R6/lib/X11/fonts/URW/fonts.dir - found
 This is basically what happens:
 
 Please use `make -DWITH_DEBUG' if you want to install
 libraries and binaries
 with debugging support.
 
 ===   Generating temporary packing list
 ===  Checking if java/jdk14 already installed
 /bin/mkdir -p /usr/local/jdk1.4.2
 cd
 /usr/ports/java/jdk14/work/control/make/../build/bsd-i586/j2sdk-image
  /usr/bin/find .  |  -pdmu -R root:wheel
 /usr/local/jdk1.4.2
 -pdmu: not found
 *** Error code 127

Looks like you have some environment variable set (to a null value)
that is being used by the port.

Kris


pgpaIlsVJfoLH.pgp
Description: PGP signature


Re: UFS2 and ufs2 documentation ?

2004-06-20 Thread Matthew Seaman
On Sat, Jun 19, 2004 at 04:29:05PM -0700, Joe Schmoe wrote:

 Second, where can I find documentation on ufs2 and snapshotting, etc. ?  There is no 
 'ufs2' manpage, and the mksnap_ffs man page is about 20 lines long ... where can I 
 find more documentation ?

Try:

http://www.mckusick.com/FreeBSDbook.html

Unfortunately, that book isn't available quite yet -- publication date
is August 2004, so if you can wait for a month or so you should be gold.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpJjzZp8jCVM.pgp
Description: PGP signature


Re: Miscellaneous Problems

2004-06-20 Thread Phil Schulz

I have been attempting to get my pcmcia wireless card running on my laptop, I 
have identified the driver to install (wi), but am quite clueless on how to 
do so.

 

What exactly are you doing and what problems are you facing?
When you insert the card, you should see some messages on the console. 
Maybe you want to post those messages and possible warnings/error 
messages you're seeing.

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


linux-realplay and esd

2004-06-20 Thread grint
Hello,

I want use linux-realplay with esound, but when i try it i have some error.
I search about it in google, and find that i must have libesd.so.0, but
i have only libesd.so.2. I create symlink to libesd.so.0 from libesd.so.2.
And now when i try use realplay i have coredump realplay.

My system is 5.2.1-p8

I have on more questions: I want convert realplayer audio to mp3 and i'm interesting
how can ido it(i try: esd  esdmon | lame -h -x - test  realplay, but realplay 
doesnt 
work with esd :( )
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cannot compile jdk14 for Freebsd 5.2.1 - weired problem occures

2004-06-20 Thread Matthew Seaman
On Sun, Jun 20, 2004 at 01:25:07AM -0700, Kris Kennaway wrote:
 On Sat, Jun 19, 2004 at 05:43:17PM -0700, Lukasz Koszanski wrote:
   make install
  ===  Installing for jdk-1.4.2p6_4
  ===   jdk-1.4.2p6_4 depends on executable: javavm -
  found
  ===   jdk-1.4.2p6_4 depends on file:
  /usr/X11R6/lib/X11/fonts/URW/fonts.dir - found
  This is basically what happens:
  
  Please use `make -DWITH_DEBUG' if you want to install
  libraries and binaries
  with debugging support.
  
  ===   Generating temporary packing list
  ===  Checking if java/jdk14 already installed
  /bin/mkdir -p /usr/local/jdk1.4.2
  cd
  /usr/ports/java/jdk14/work/control/make/../build/bsd-i586/j2sdk-image
   /usr/bin/find .  |  -pdmu -R root:wheel
  /usr/local/jdk1.4.2
  -pdmu: not found
  *** Error code 127
 
 Looks like you have some environment variable set (to a null value)
 that is being used by the port.

Usually caused by the contents of /usr/ports/Mk being out of synch
with the rest of the ports tree.  The ${CPIO} macro was added a while
back now[1], and people are still being bitten by this.

The OP. needs to do a cvsup preferably of the 'ports-all' collection,
and without any ports related stuff in any refuse file.  Use
/usr/share/examples/cvsup/ports-supfile like so:

# cvsup -g -L 2 -h cvsup.XX.freebsd.org /usr/share/examples/cvsup/ports-supfile

where XX is an appropriate country code.

Cheers,

Matthew

[1] Version 1.475 of bsd.port.mk, committed in January 2004,
unfortunately fairly shortly after 5.2.1-Release.

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpkOBZvGoN16.pgp
Description: PGP signature


Re: Cd burning and what app to use

2004-06-20 Thread Simon Barner
Bruce wrote:
 Hello all,
 
 Currently, I am running Gnome 2.6 and I am just wondering what cd
 burning software is really good from the ports collection? 
 
 I want to burn cd's from iso files or copy music cd's to cd's.
 
 Or make data cd's.

If you want something with gui, have a look at sysutils/xcdroast or
sysutils/k3b. Both need atapicam (if you own an IDE burner), and the
latter one is an KDE application, but it's really sophisticated.

As soon as you have atapicam in your kernel, GNOME's nautilus offers the
burn:/// location: Just drag and drop your stuff there, and click on the
Write to CD button when you're done (needs
sysutils/nautilus-cd-burner which should already be on your system).

HTH,
 Simon


signature.asc
Description: Digital signature


Re: installing gFTP with gtk12 instead of gtk20

2004-06-20 Thread Geert Hendrickx
The Makefile in ports/ftp/gftp has the option WITH_GTK2, which should of
course be unset if you want to compile with gtk12 (that seems to be the
default).  Maybe you have some saved options in /var/db/ports/gftp/ ?
Then remove that file and try again.  

GH

On Sun, Jun 20, 2004 at 12:54:13PM +0200, Marco Beishuizen wrote:
 
 I'm trying to install gFTP from the ports. When I do a make install, it 
 constantly wants to install gtk20 instead of gtk12. Gtk20 isn't installed 
 on my machine due to errors during the build, but gtk12 is installed.
 
 According to the gFTP website it shouldn't be a problem to install gFTP 
 with gtk12, so how do I force the gFTP-port to install it with gtk12 
 instead of gtk20?
 
 PS I'm running FreeBSD-i386 4.10-STABLE.
 
 Thanks in advance,
 Marco
 
 -- 
 The wages of sin are death; but after they're done taking out taxes,
 it's just a tired feeling:
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
Iedereen is van de wereld,
 de wereld is van iedereen. 
(The Scene)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: installing gFTP with gtk12 instead of gtk20

2004-06-20 Thread Marco Beishuizen
On stardate Sun, 20 Jun 2004, the wise Jan Muenther entered:
I'm trying to install gFTP from the ports. When I do a make install, it
constantly wants to install gtk20 instead of gtk12. Gtk20 isn't installed
on my machine due to errors during the build, but gtk12 is installed.
According to the gFTP website it shouldn't be a problem to install gFTP
with gtk12, so how do I force the gFTP-port to install it with gtk12
instead of gtk20?
Interesting, from how I interpret the Makefile, I'd think 1.2 would be the
default... anyway try 'make -DWITH_GTK2=NO' and see if it works...
Unfortunately, it still wants to build and install gtk20, which doesn't 
work.

Marco
--
The income tax has made more liars out of the American people than golf
has.  Even when you make a tax form out on the level, you don't know
when it's through if you are a crook or a martyr.
-- Will Rogers
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


installing gFTP with gtk12 instead of gtk20

2004-06-20 Thread Marco Beishuizen
I'm trying to install gFTP from the ports. When I do a make install, it 
constantly wants to install gtk20 instead of gtk12. Gtk20 isn't installed 
on my machine due to errors during the build, but gtk12 is installed.

According to the gFTP website it shouldn't be a problem to install gFTP 
with gtk12, so how do I force the gFTP-port to install it with gtk12 
instead of gtk20?

PS I'm running FreeBSD-i386 4.10-STABLE.
Thanks in advance,
Marco
--
The wages of sin are death; but after they're done taking out taxes,
it's just a tired feeling:
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: installing gFTP with gtk12 instead of gtk20

2004-06-20 Thread Jan Muenther
 I'm trying to install gFTP from the ports. When I do a make install, it 
 constantly wants to install gtk20 instead of gtk12. Gtk20 isn't installed 
 on my machine due to errors during the build, but gtk12 is installed.
 
 According to the gFTP website it shouldn't be a problem to install gFTP 
 with gtk12, so how do I force the gFTP-port to install it with gtk12 
 instead of gtk20?

Interesting, from how I interpret the Makefile, I'd think 1.2 would be the 
default... anyway try 'make -DWITH_GTK2=NO' and see if it works...


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


Re: installing gFTP with gtk12 instead of gtk20

2004-06-20 Thread Kent Stewart
On Sunday 20 June 2004 03:54 am, Marco Beishuizen wrote:
 I'm trying to install gFTP from the ports. When I do a make install,
 it constantly wants to install gtk20 instead of gtk12. Gtk20 isn't
 installed on my machine due to errors during the build, but gtk12 is
 installed.

 According to the gFTP website it shouldn't be a problem to install
 gFTP with gtk12, so how do I force the gFTP-port to install it with
 gtk12 instead of gtk20?

 PS I'm running FreeBSD-i386 4.10-STABLE.



Look at the Makefile. It defaults to gtk12 unless you have gtk2 defined 
some place such as /etc/make.conf. Kill the define and it should use 
1.2.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD weakness.

2004-06-20 Thread arden
On Sat, 2004-06-19 at 20:33, Tom McLaughlin wrote:
 On Sat, 2004-06-19 at 14:23, Lloyd Hayes wrote:
  I finally decided that I needed to get more information on FreeBSD. I 
  got it up and running, then I did something else and I start getting 
  errors again
  
  So I just ordered 3 books on FreeBSD from Amazon. In most of the reviews 
  posted there about the books, people were complaining about weak 
  documentation, too much information about things that they were not 
  interested in, and errors in the in the books which seems to be the most 
  common complaint. In my very short recent history with FreeBSD, I've 
  formed the opinion that documenting FreeBSD is it's greatest weakness. 
  FreeBSD needs someone who can actually type to write a good book for 
  beginners who have never seen UNIX code. A book is needed with examples 
  that actually WORK! Examples that are explained in plain English. There 
  seems to be very few books on FreeBSD around.
 
 Of the free OSs I think the different BSDs tend to be the better
 documented.  Along with the man pages (don't short them, some can be
 obtuse at times but overall they give me what I need most of the time),
 this has served as my primary source of documentation for FreeBSD:
 
 http://www.freebsd.org/docs.html
 
 Book wise, there are more on Linux.  This is starting to change though
 which is great.  I think what you are looking for isn't necessarilly a
 FreeBSD specific book, though having at least one is great, but a
 general unix primer to help you get more familiar with unix concepts.  I
 remember when I started toying around with linux and stared at the
 command line not knowing what to do.  I had Running Linux back then
 which had a great intro to such things like file permissions,
 users/groups, and navigating around the system.
 
 Since I really can't from looking at my bookshelf, can anyone recommend
 a book with a few good chapters on general unix concepts to get a
 completely green user familiar and comfortable with the way things are
 done?  Comming from $OTHER_OS to unix can be daunting but once you get
 the basics down, you start to complain that $OTHER_OS is too hard to do
 what you want.  :)
 
 Tom
 
  I have decided that it is a very good operating system which I need to 
  learn more about. And yes, I have all of the links that everyone sent 
  me. Thanks for all of the info.

 ive also just started down the bsd route started on linux 2/3 years 
back then m$ was my desktop OS now thats been replaced by mandrake and
bsd is my play OS i have to say its done me no end of good at work now
been sent on aix courses in order to become a member of our risc team :)

on a side not ive still have a small windows partition for running
dvd2one dose any one know an equivalent in the *nix world 

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

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


Re: installing gFTP with gtk12 instead of gtk20

2004-06-20 Thread Marco Beishuizen
On stardate Sun, 20 Jun 2004, the wise Geert Hendrickx entered:
The Makefile in ports/ftp/gftp has the option WITH_GTK2, which should of
course be unset if you want to compile with gtk12 (that seems to be the
default).  Maybe you have some saved options in /var/db/ports/gftp/ ?
Then remove that file and try again.
Yes, that did the trick!
Thanks,
Marco
--
A computer, to print out a fact,
Will divide, multiply, and subtract.
But this output can be
No more than debris,
If the input was short of exact.
-- Gigo
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cd burning and what app to use

2004-06-20 Thread arden
On Sun, 2004-06-20 at 05:23, [EMAIL PROTECTED] wrote:
 On Sat, Jun 19, 2004 at 11:26:13PM -0400, Bruce wrote:
  Hello all,
  
  Currently, I am running Gnome 2.6 and I am just wondering what cd
  burning software is really good from the ports collection? 
  
  I want to burn cd's from iso files or copy music cd's to cd's.
  
  Or make data cd's.

 
 burncd in the base system will do.

k3b is cool if you like graphics 

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


Which PGP version to use question

2004-06-20 Thread Gerard Seibert
I am using PGP version 8.03  http://www.pgp.com/ on my WinXP machines. My
data is uploaded to a keyserver. PGP Corporation does not, as far as I can
determine, market a FreeBSD or Linux version of this software.

My question would be what version of PGP available for FreeBSD would be most
compatible with the version I have on my WinXP machines? Also, I would
need the ability to upload to a keyserver.


Thanks!

Gerard Seibert
[EMAIL PROTECTED]


Where in the nursery rhyme does it say Humpty Dumpty is an egg?

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


Re: Mounting a multicard reader (FBSD)

2004-06-20 Thread Scott Mitchell
On Sun, Jun 20, 2004 at 12:45:57PM +1000, Jason Oakley wrote:
 I set up automount, but that's not working.
 
 usb1: VIA 83C572 USB controller on uhci1
 usb1: USB revision 1.0
 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 
 
 I also get this after a reboot now:
 umass0: vendor 0x55aa 8-in-2, rev 1.10/1.01, addr 3
[...]

That's weird.  I assume from your other message that you did get all of the
slots working by the magic of 'camcontrol rescan', but it all went horribly
wrong when you tweaked usbd.conf or set up the automounter?

Does everything still work if you undo whatever changes you did (keep a
copy of the changed files though), reboot and try to mount the CF card
again?  If it does, could you put your changes back, reboot again and then
post copies of your /var/log/dmesg.boot, /etc/rc.conf, /etc/usbd.conf and
/etc/amd.map files?  Output from 'usbdevs -v' and 'camcontrol devlist'
might be useful too.

Something I should have mentioned before - you probably want to do
'camcontrol eject 0:0:whatever' after unmounting a card, to power down the
slot before pulling it out.  There's a small chance of damaging the card if
you don't do this.

Cheers,

Scott

-- 
===
Scott Mitchell   | PGP Key ID | Eagles may soar, but weasels
Cambridge, England   | 0x54B171B9 |  don't get sucked into jet engines
scott at fishballoon.org | 0xAA775B8B |  -- Anon
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Which PGP version to use question

2004-06-20 Thread Matthew Seaman
On Sun, Jun 20, 2004 at 07:36:17AM -0400, Gerard Seibert wrote:
 I am using PGP version 8.03  http://www.pgp.com/ on my WinXP machines. My
 data is uploaded to a keyserver. PGP Corporation does not, as far as I can
 determine, market a FreeBSD or Linux version of this software.

No -- but they do produce a freeware version you can compile from
source on most Unixoid systems.
 
 My question would be what version of PGP available for FreeBSD would be most
 compatible with the version I have on my WinXP machines? Also, I would
 need the ability to upload to a keyserver.

Most people around here seem to be using gpg(1) -- that's from the
security/gnupg port.  It's a reimplementation of the PGP software
under the terms of the GPL, since NAI and now PGP Corporation seemed
to be heading towards a more restrictive licensing scheme on newer
releases.

As the file formats etc. for PGP are an open standard, you should be
able to use any of the popular Unix implementations more or less
interchangeably

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpLSsd2FMYu5.pgp
Description: PGP signature


Re: installing gFTP with gtk12 instead of gtk20

2004-06-20 Thread Marco Beishuizen
On stardate Sun, 20 Jun 2004, the wise Kent Stewart entered:
On Sunday 20 June 2004 03:54 am, Marco Beishuizen wrote:
I'm trying to install gFTP from the ports. When I do a make install,
it constantly wants to install gtk20 instead of gtk12. Gtk20 isn't
installed on my machine due to errors during the build, but gtk12 is
installed.
According to the gFTP website it shouldn't be a problem to install
gFTP with gtk12, so how do I force the gFTP-port to install it with
gtk12 instead of gtk20?
PS I'm running FreeBSD-i386 4.10-STABLE.

Look at the Makefile. It defaults to gtk12 unless you have gtk2 defined
some place such as /etc/make.conf. Kill the define and it should use
1.2.
The solution was not the makefile but in the file 
/var/db/ports/gftp/options. I deleted it and after that it installed 
correctly.

Thanks,
Marco
--
Real computer scientists only write specs for languages that might run
on future hardware.  Nobody trusts them to write specs for anything homo
sapiens will ever be able to fit on a single planet.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD weakness.

2004-06-20 Thread Don Tyson
[snipped]

  Since I really can't from looking at my bookshelf, can anyone recommend
  a book with a few good chapters on general unix concepts to get a
  completely green user familiar and comfortable with the way things are
  done?  Comming from $OTHER_OS to unix can be daunting but once you get

General UNIX stuff:  Visual Quickstart Guide [to] UNIX by Deborah 
Eric Ray

FreeBSD-specific stuff:  Greg Lehey's Complete FreeBSD

Best all-around mini-nutshell introduction: Anneliese
Anderson's For People New to Both FreeBSD and UNIX, found in the doc
section of the FreeBSD website.

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


Win-modems

2004-06-20 Thread Alex
HI FreeBSD team! What about win modems?? where I can find drivers or
kernel modules. Linux drivers doesn't work correctly.
My modem-Lucent Win Modem (Genius GM56PCI-L), chipset-Lucent1646
Thanks!

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


Re: Win-modems

2004-06-20 Thread Jan Muenther
Ahoi,

 What about win modems?? where I can find drivers or
 kernel modules. Linux drivers doesn't work correctly.
 My modem-Lucent Win Modem (Genius GM56PCI-L), chipset-Lucent1646

try this:

Port:   ltmdm-1.4_5
Path:   /usr/ports/comms/ltmdm
Info:   Driver for the Lucent LT Winmodem chipset

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


Re: USB drive questions

2004-06-20 Thread Mike Jeays
On Sat, 2004-06-19 at 09:13, stan wrote:
 I had a vendor give me a USB memory stick as a promotional giveaway
 yesterday. Kind of amazing theat they have gotten cheap enough for this.
 
 In any case, I pluged it into my laptop with STABLE on it (cvsuped last
 weekend). It recognized the device, and told me it was a generic USB
 storage deviec. 
 
 How can I mount this device? 
 
 Also, when I unplug it I get a panic. I do have, what I think are, the
 correct defines in my kernel config.
 
 What might I be doing wrong?

As root, mkdir /flash
mount -t msdos /dev/da0s1 /flash

Or add the following line to /etc/fstab

/dev/da0s1 /flash  msdos   rw,noauto   0   0

and then simply issue mount /flash


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


Re: blacklist(s)

2004-06-20 Thread David Fleck
On Fri, 14 May 2004, Warren Block wrote:
 On Fri, 14 May 2004, Gary Kline wrote:
  Can anyone point me to the website that told how to set up
  sendmail's FEATURE to use blacklists?  There were at least
  fourr blacklist sites.  I've grep'd thru my ~/Mail directory,
  can't find it?

 There should already be an example in /etc/mail/freebsd.mc (no
 linewrap):

 dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `550 Mail from  ${client_addr}  
 rejected, see http://mail-abuse.org/cgi-bin/lookup?; ${client_addr}')
[...]

Sorry for this monumentally stupid-sounding question, but how do you tell
if the dnsbl feature is *working* or not?  I've got 2 set in my local .mc
files:

FEATURE(dnsbl, `bl.spamcop.net', `550 Mail from  ${client_addr}  rejected, see 
http://spamcop.net/bl.shtml?; ${client_addr}')
FEATURE(dnsbl,`combined.njabl.org',`Message from ${client_addr} rejected - see 
http://njabl.org/lookup?${client_addr}')

(and yes, I did 'make cf install' afterwards), but I don't see any
indication of mail being rejected because of these in my maillog.  I do
see mail being rejected because of settings in /etc/mail/access.db.  Do
these work silently, or are they not working at all?

--
David Fleck
[EMAIL PROTECTED]

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


Re: blacklist(s)

2004-06-20 Thread Matthew Seaman
On Sun, Jun 20, 2004 at 08:24:16AM -0500, David Fleck wrote:
 On Fri, 14 May 2004, Warren Block wrote:
  On Fri, 14 May 2004, Gary Kline wrote:
 Can anyone point me to the website that told how to set up
 sendmail's FEATURE to use blacklists?  There were at least
 fourr blacklist sites.  I've grep'd thru my ~/Mail directory,
 can't find it?
 
  There should already be an example in /etc/mail/freebsd.mc (no
  linewrap):
 
  dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `550 Mail from  ${client_addr} 
   rejected, see http://mail-abuse.org/cgi-bin/lookup?; ${client_addr}')
 [...]
 
 Sorry for this monumentally stupid-sounding question, but how do you tell
 if the dnsbl feature is *working* or not?  I've got 2 set in my local .mc
 files:
 
 FEATURE(dnsbl, `bl.spamcop.net', `550 Mail from  ${client_addr}  rejected, see 
 http://spamcop.net/bl.shtml?; ${client_addr}')
 FEATURE(dnsbl,`combined.njabl.org',`Message from ${client_addr} rejected - see 
 http://njabl.org/lookup?${client_addr}')
 
 (and yes, I did 'make cf install' afterwards), but I don't see any
 indication of mail being rejected because of these in my maillog.  I do
 see mail being rejected because of settings in /etc/mail/access.db.  Do
 these work silently, or are they not working at all?

You'll see messages being rejected in your maillog -- like this:

Jun 20 12:41:17 happy-idiot-talk sm-mta[50011]: i5KBf8LW050011: 
ruleset=check_rcpt, arg1=[EMAIL PROTECTED], relay=c-67-162-153-95.client.comcast.net 
[67.162.153.95], reject=550 5.7.1 [EMAIL PROTECTED]... Mail from 67.162.153.95 
rejected using spamcop.net DNSBL. See 
http://spamcop.net/w3m?action=checkblockip=67.162.153.95

If you aren't seeing any rejects then either you haven't installed the
modified sendmail.cf and restarted sendmail properly:

# cd /etc/mail
# make 
# make install
# make restart

or you simply haven't had any spam from blacklisted addresses.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpAVWAkOTMSt.pgp
Description: PGP signature


Mail problem - famd?

2004-06-20 Thread Gareth Bailey
Hi all,

I've recently converted our company server from 5.2 release
to 4.10 stable. I'm in the process of ironing out last
little issues i'm having. This problem has to do with my
mail setup. I'm running postfix MTA and courier-imap
server.

My maillog file is filled with messages like the following:

Jun 20 15:47:05 server imapd-ssl: Failed to create cache
file: maildirwatch (fre
Jun 20 15:47:05 server imapd-ssl: Error: Input/output error
Jun 20 15:47:05 server imapd-ssl: Check for proper
operation and configuration
Jun 20 15:47:05 server imapd-ssl: of the File Access
Monitor daemon (famd).
Jun 20 15:47:05 server imapd-ssl: Failed to create cache
file: maildirwatch (fre
Jun 20 15:47:05 server imapd-ssl: Error: Input/output error
Jun 20 15:47:05 server imapd-ssl: Check for proper
operation and configuration
Jun 20 15:47:05 server imapd-ssl: of the File Access
Monitor daemon (famd).

I'm not too sure where to start - i suspect that whatever
is trying to create the cache file doesn't have the
neccesary permissions. If so, what is the location of this
cache file?  Otherwise, any other suggestions would be most
welcome.

Thanks,
Gareth
_
For super low premiums ,click here http://www.dialdirect.co.za/quote
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Which PGP version to use question

2004-06-20 Thread Eric Crist
On Sunday 20 June 2004 06:36, Gerard Seibert wrote:
 I am using PGP version 8.03  http://www.pgp.com/ on my WinXP machines. My
 data is uploaded to a keyserver. PGP Corporation does not, as far as I can
 determine, market a FreeBSD or Linux version of this software.

 My question would be what version of PGP available for FreeBSD would be
 most compatible with the version I have on my WinXP machines? Also, I would
 need the ability to upload to a keyserver.

I would use gnupg.  Well, actually, I do.  Everything works great, and I can 
use the same keys on the windows version of pgp too.  You should be able to 
install it from /usr/ports/security/gnupg, type make install clean once 
you're in that director.

HTH
-- 
Eric F Crist

Keep your pecker hard and your powder dry, and the world WILL turn.


pgp42WeRQBzHV.pgp
Description: signature


atapi/cam driver

2004-06-20 Thread Gerard Samuel
Im trying to set it up, and Im not getting any real output from camcontrol 
devlist.  Im following instructions from
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html#ATAPICAM.
dmesg only shows the devices as atapi devices, and not scsi.
Does anyone have an idea where Im going wrong.
Thanks

-- camcontrol devlist --
gladiator# camcontrol devlist -v
scbus-1 on xpt0 bus 0:
 at scbus-1 target -1 lun -1 (xpt0)
--

-- OS version --
gladiator# uname -a
FreeBSD gladiator.trini0.org 5.2.1-RELEASE-p6 FreeBSD 5.2.1-RELEASE-p6 #0: Fri 
May  7 22:43:47 EDT 2004 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GLADIATOR  i386
--

-- dmesg snip --
ad0: 19473MB Maxtor 52049H3 [39566/16/63] at ata0-master UDMA100
acd0: CDROM LTN403 at ata1-master PIO4
acd1: CDRW CW038D ATAPI CD-R/RW at ata1-slave PIO4
--

-- fstab snip --
/dev/cd0/cdrom  cd9660  ro,noauto   0   0
/dev/cd1/cdrom1 cd9660  ro,noauto   0   0
--

-- kernel --
machine i386
cpu I686_CPU
ident   GLADIATOR
maxusers0

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

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

options SCHED_4BSD  #4BSD scheduler
options INET#InterNETworking
options FFS #Berkeley Fast Filesystem
options SOFTUPDATES #Enable FFS soft updates support
options UFS_ACL #Support for access control lists
options UFS_DIRHASH #Improve performance on big 
directories
options NFSCLIENT   #Network Filesystem Client
options CD9660  #ISO 9660 Filesystem
options PROCFS  #Process filesystem (requires 
PSEUDOFS)
options PSEUDOFS#Pseudo-filesystem framework
options COMPAT_43   #Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 #Compatible with FreeBSD4
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time 
extensions

device  isa
device  pci

# Floppy drives
device  fdc

# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
device  atapicd # ATAPI CDROM drives
options ATA_STATIC_ID   #Static device numbering

# atkbdc0 controls both the keyboard and the PS/2 mouse
device  atkbdc  # AT keyboard controller
device  atkbd   # AT keyboard
device  psm # PS/2 mouse

device  vga # VGA video card driver

# syscons is the default console driver, resembling an SCO console
device  sc

device  agp # support several AGP chipsets

# Floating point support - do not disable.
device  npx

# Power management support (see NOTES for more options)
#device apm
# Add suspend/resume support for the i8254.
device  pmtimer

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device  miibus  # MII bus support
device  fxp # Intel EtherExpress PRO/100B (82557, 82558)

# Pseudo devices - the number indicates how many units to allocate.
device  random  # Entropy device
device  loop# Network loopback
device  ether   # Ethernet support
device  pty # Pseudo-ttys (telnet etc)

# USB support
device  uhci# UHCI PCI-USB interface
device  usb # USB Bus (required)
device  ugen# Generic
device umass# Disks/Mass storage - Requires scbus and da

# Yes they are for SCSI but umass needs them
device  scbus   # SCSI bus (required)
device  da  # Direct Access (disks)

# To access IDE devices via scsi system
device atapicam
device cd
device pass

# Audio
device  pcm

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device  bpf # Berkeley packet filter
--
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: read vs. mmap (or io vs. page faults)

2004-06-20 Thread Dan Nelson
In the last episode (Jun 20), Mikhail Teterin said:
 I expected the second way to be faster, as it is supposed to avoid
 one memory copying (no user-space buffer). But in reality, on a
 CPU-bound (rather than IO-bound) machine, using mmap() is
 considerably slower. Here are the tcsh's time results:
 
   Single Pentium2-400MHz running 4.8-stable:
   --
 stdio: 56.837u 34.115s 2:06.61 71.8%   66+193k 11253+0io 3pf+0w
 mmap:  72.463u  7.534s 2:34.62 51.7%   5+186k  105+0io   22328pf+0w
 
   Dual Pentium2 Xeon 450MHz running recent -current:
   --
 stdio: 36.557u 29.395s 3:09.88 34.7%   10+165k 32646+0io 0pf+0w
 mmap:  42.052u  7.545s 2:02.25 40.5%   10+169k 16+0io15232pf+0w
 
 On the IO-bound machine, using mmap is only marginally faster:
 
   Single Pentium4M (Centrino 1GHz) runing recent -current:
   
 stdio: 27.195u 8.280s 1:33.02 38.1%10+169k 11221+0io 1pf+0w
 mmap:  26.619u 3.004s 1:23.59 35.4%10+169k 47+0io19463pf+0w
 
 Notice the last two columns in time's output -- why is page-faulting a
 page in -- on-demand -- so much slower then read()-ing it? I even tried
 inserting ``madvise(buffer, file_size, MADV_SEQUENTIAL)'' between the
 mmap() and the process() -- made difference at all (or made the mmap()
 take slightly longer)...

MADV_SEQUENTIAL just lets the system expire already-read blocks from
its cache faster, so it won't help much here.  read() should cause some
prefetching to occur, but it obviously doesn't work all the time or
else inblock wouldn't have been as high as 11000.  For sequential
access I would have expected read() to have been able to prefetch
almost every block before the userland process needed it.

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


Re: blacklist(s)

2004-06-20 Thread Warren Block
On Sun, 20 Jun 2004, David Fleck wrote:
Sorry for this monumentally stupid-sounding question, but how do you tell
if the dnsbl feature is *working* or not?  I've got 2 set in my local .mc
files:
FEATURE(dnsbl, `bl.spamcop.net', `550 Mail from  ${client_addr}  rejected, see 
http://spamcop.net/bl.shtml?; ${client_addr}')
FEATURE(dnsbl,`combined.njabl.org',`Message from ${client_addr} rejected - see 
http://njabl.org/lookup?${client_addr}')
(and yes, I did 'make cf install' afterwards), but I don't see any
indication of mail being rejected because of these in my maillog.  I do
see mail being rejected because of settings in /etc/mail/access.db.  Do
these work silently, or are they not working at all?
After changing the .mc file, you have to restart sendmail:
# cd /etc/mail
# make all install restart
DSNBL rejects look like the ones caused by entries in access.db, but 
with the message from the FEATURE line.

-Warren Block * Rapid City, South Dakota USA
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Any 4.10 installation on asus pundit ?

2004-06-20 Thread Bernard Dugas
Hi,
Robert Downes a écrit :
Bernard Dugas wrote:
Thanks very much, Robert, it was the udma option : but this is quite 
inefficient if I can't use UDMA with FreeBSD ?
FreeBSD will drop down to PIO mode, probably mode 4.
According to Scott Mueller's book, PIO mode 4 offers up to 16.67 MB/sec, 
whereas UDMA can offer up to 100 or 133 MB/sec. So, yes, less efficient 
(but also a bit quieter in my experience).
And the cpu load should increase, no ?
Have you been able to switch the data cable for a know good cable? That 
solved the problem for me.
I've tried a brand new one, but no difference...
Best regards,
--
 __ Bernard DUGAS 
| |
|  Technoparc Pays de Gex  mailto:[EMAIL PROTECTED] |
|  30 Rue Auguste Piccard   Tel.: +33 615 333 770 |
| FR 01630 St Genis Pouilly Fax : +33 450 205 106 |
|_|
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bittorrent not in ports?

2004-06-20 Thread Joey Mingrone
..or see:  http://www.freebsd.org/cgi/ports.cgi?query=torrentstype=all

There are a few different options for torrent clients.

On June 18, 2004 22:38, Julian M. Mason wrote:
 ...is bittorrent really not in ports?

 my usual
 # cd /usr/ports ; make search name=bittorrent
 and
 # whereis bittorrent

 turned up nothing; nor did a wandering around /usr/ports/net.

 Do I have to actually go and get something myself? gasp


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


Re: Any 4.10 installation on asus pundit ?

2004-06-20 Thread Bernard Dugas
Hi,
Phil Schulz a écrit :
I didn't see the beginning of the thread.
http://lists.freebsd.org/mailman/htdig/freebsd-questions/2004-June/049482.html
 But I had a similar problem on
my desktop machine using (I think) 4.9-Release. It started when I had to 
change the motherboard. The new one came w/ an SiS chipset that wasn't 
supported by FreeBSD. I solved the problem by adding a line to 
/sys/dev/ata/ata-dma.c. It worked for a few weeks w/o any problems until 
I switched to RELENG_5_2 for various other reasons.
You might want to post what chipset your mainboard uses.
http://www.asus.com/prog/spec.asp?m=Punditlangs=01
 - Chipset SIS 651/962
 - Lan Broadcom BCM4401
The freeBSD 4.10 ata0 seems not to work properly with the native udma 6 
of the pundit. Forcing dma disabled in the bios for the disk prevents 
the ad0 : read command timeout ata0 resetting devices blocking.

But no more DMA is not ideal for a server...
I've tried a new ide cable, and a new drive, without effect.
In addition, I can't find the bfe0 network driver for the Broadcom 
BCM4401 in the kernel configuration, but the 4.10 release notes told the 
bfe should be in.

Any hints ?
Thanks a lot, best regards,
--
 __ Bernard DUGAS 
| |
|  Technoparc Pays de Gex  mailto:[EMAIL PROTECTED] |
|  30 Rue Auguste Piccard   Tel.: +33 615 333 770 |
| FR 01630 St Genis Pouilly Fax : +33 450 205 106 |
|_|
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: read vs. mmap (or io vs. page faults)

2004-06-20 Thread Mikhail Teterin
On Sunday 20 June 2004 11:41 am, Dan Nelson wrote:
= In the last episode (Jun 20), Mikhail Teterin said:
=  I expected the second way to be faster, as it is supposed to avoid
=  one memory copying (no user-space buffer). But in reality, on a
=  CPU-bound (rather than IO-bound) machine, using mmap() is
=  considerably slower. Here are the tcsh's time results:

= MADV_SEQUENTIAL just lets the system expire already-read blocks from
= its cache faster, so it won't help much here.

That may be what it _does_, but from the manual page, one gets an
impression, it should tell the VM, that once a page is requested (and
had to be page-faulted in), the one after it will be requested soon and
may as well be prefeteched (and the ones before can be dropped if memory
is in short supply). Anyway, using MADV_SEQUENTIAL is consintently
making mmap behave slightly worse, rather then have no effect.

But let's not get distracted with madvise(). Why is mmap() slower? So
much so, that the machine, which is CPU-bound using read() only uses 90%
of the CPU when using mmap -- while, at the same time -- the disk
bandwidth is also less than that of the read(). It looks to me, like a
lot of thought went into optimizing read(), but much less into mmap,
which is supposed to be faster -- less memory shuffling. Is that true,
is there something inherent in mmap-style of reading, that I don't see?

= read() should cause some prefetching to occur, but it obviously
= doesn't work all the time or else inblock wouldn't have been as high
= as 11000. For sequential access I would have expected read() to have
= been able to prefetch almost every block before the userland process
= needed it.

Thanks!

-mi

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


Re: Any 4.10 installation on asus pundit ?

2004-06-20 Thread Phil Schulz

my desktop machine using (I think) 4.9-Release. It started when I had 
to change the motherboard. The new one came w/ an SiS chipset that 
wasn't supported by FreeBSD. I solved the problem by adding a line to 
/sys/dev/ata/ata-dma.c. It worked for a few weeks w/o any problems 
until I switched to RELENG_5_2 for various other reasons.
You might want to post what chipset your mainboard uses.

http://www.asus.com/prog/spec.asp?m=Punditlangs=01
 - Chipset SIS 651/962
 - Lan Broadcom BCM4401
Try to apply the attached patch to /sys/dev/ata/ata-dma.c
Neither do I have a mainboard w/ the same chipset as yours nor do I have 
any PC running RELENG_4 atm. But I had to apply sth similar to make my 
SiS-746(?)-based mainboard work under RELENG_4. I'm not a developer so I 
don't know if it's a good and clean solution but it worked for me back then.

In addition, I can't find the bfe0 network driver for the Broadcom 
BCM4401 in the kernel configuration, but the 4.10 release notes told 
the bfe should be in.

From bfe(4): The bfe device driver first appeared in FreeBSD 5.1.
--- ata-dma.c.old   Sun Jun 20 19:30:10 2004
+++ ata-dma.c   Sun Jun 20 19:23:41 2004
@@ -669,6 +669,7 @@
ata_find_dev(parent, 0x06401039, 0) ||  /* SiS 640 */
ata_find_dev(parent, 0x06451039, 0) ||  /* SiS 645 */
ata_find_dev(parent, 0x06501039, 0) ||  /* SiS 650 */
+   ata_find_dev(parent, 0x06511039, 0) ||  /* SiS 651 */
ata_find_dev(parent, 0x07301039, 0) ||  /* SiS 730 */
ata_find_dev(parent, 0x07331039, 0) ||  /* SiS 733 */
ata_find_dev(parent, 0x07351039, 0) ||  /* SiS 735 */
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Python application in rc.d.

2004-06-20 Thread Lewis Thompson
Hi,

I'm trying to create a port for a Python application that I want to
start from local/etc/rc.d.  The command is this:

/usr/bin/su freevo -c /usr/local/bin/freevo -fs start  /dev/null 21

  Unfortunately when I boot up I get a message about Python not being
configured/available at this time.  I'm at work at the moment and I
can't get the message but I wanted to ask now in the hopes that somebody
would have come across this before. If not I'll send another mail with
the full message when I can.

  Does anybody know how to fix this?  Thanks,

-lewiz.

-- 
I was so much older then, I'm younger than that now.  --Bob Dylan, 1964.

-| msn:[EMAIL PROTECTED] | jabber:[EMAIL PROTECTED] | url:www.lewiz.org |-


pgp23JOPPnMUQ.pgp
Description: PGP signature


Fresh Installing FreeBSD 5.0 Release

2004-06-20 Thread Douglas Korinke
I was currently getting help from a person for getting my wireless pc card 
working on my laptop when we both came to the conclusion that my kernel 
source had either not been installed, or was hiding very well.  I wasn't able 
to get a hold of the original install cd so I used a 5.0 release from a 
family members collection.

I attempted to remove 4.9 and cleanly install 5.0 onto the laptop but ran 
into some interesting errors and it has put me in quite a bind.

The drive for which I'm wanting to install FreeBSD on has been whipped clean 
but the 5.0 install cd hangs up when loading device drivers for the kernel.

At the moment I'm stuck on what to do myself, if there is a way to get the 
drive formatted so that I can try a clean install of 5.0 that would be great, 
but if not, 4.9 installed very cleanly.

Thanks,
Doug

ICQ : 26096369
AIM : itss0lidstate

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


Re: read vs. mmap (or io vs. page faults)

2004-06-20 Thread Matthew Dillon
:Hello!
:
:I'm writing a message-digest utility, which operates on file and
:can use either stdio:
:
:   while (not eof) {
:   char buffer[BUFSIZE];
:   size = read( buffer ...);
:   process(buffer, size);
:   }
:
:or mmap:
:
:   buffer = mmap(... file_size, PROT_READ ...);
:   process(buffer, file_size);
:
:I expected the second way to be faster, as it is supposed to avoid
:one memory copying (no user-space buffer). But in reality, on a
:CPU-bound (rather than IO-bound) machine, using mmap() is considerably
:slower. Here are the tcsh's time results:

read() is likely going to be faster because it does not involve any
page fault overhead.  The VM system only faults 16 or so pages ahead 
which is only 64KB, so the fault overhead is very high for the data rate.

Why does the extra copy not matter?  Well, it's fairly simple, actually.
It's because your buffer is smaller then the L1 cache, and/or also simply
because the VM fault overhead is higher then it would take to copy
an extra 64KB.

read() loops typically use buffer sizes in the 8K-46K range.  L1 caches
are typically 16K (for celeron class cpus) through 64K, or more for
higher end cpus.  L2 caches are typically 256K-1MB, or more.  The copy
bandwidth from or to the L1 cache is usually around 10x faster then main
memory and the copy bandwidth from or two L2 cache is usually
around 4x faster.  (Note that I'm talking copy bandwidth here, not random
access.  The L1 cache is ~50x faster or more for random access).

So the cost of the extra copy in a read() loop using a reasonable buffer
size (~8K-64K) (L1 or L2 access) is virtually nil compared to the cost
of accessing the kernel's buffer cache (which involves main memory
accesses for files  L2 cache).

:On the IO-bound machine, using mmap is only marginally faster:
:
:   Single Pentium4M (Centrino 1GHz) runing recent -current:
:   
:stdio: 27.195u 8.280s 1:33.02 38.1%10+169k 11221+0io 1pf+0w
:mmap:  26.619u 3.004s 1:23.59 35.4%10+169k 47+0io 19463pf+0w

Yes, because it's I/O bound.  As long as the kernel queues some readahead
to the device it can burn those cpu cycles on whatever it wants without
really effecting the transfer rate.

:I this how things are supposed to be, or will mmap() become more
:efficient eventually? Thanks!
:
:   -mi

It's hard to say.  mmap() could certainly be made more efficient, e.g.
by faulting in more pages at a time to reduce the actual fault rate.
But it's fairly difficult to beat a read copy into a small buffer.

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


MySQL Advice

2004-06-20 Thread Graham Bentley

Hi All

Can any MySQL gurus out there point me in the direction of enlightenment.

Just installed MySQL for a Wiki DB and get the following when trying to add
the root password as instructed by the installer.


freebsd# /usr/local/bin/mysqld_safe 
[1] 684
freebsd# Starting mysqld daemon with databases from /var/db/mysql

freebsd# /usr/local/bin/mysqladmin -u root password mypassword

freebsd# /usr/local/bin/mysqladmin -u root -h freebsd.mydomain.com password
mypassword

/usr/local/bin/mysqladmin: connect to server at 'freebsd.mydomain.com' failed
error: 'Host 'freebsd.mydomain.com' is not allowed to connect to this MySQL
server'

freebsd# /usr/local/bin/mysql --password
Enter password: ***
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 4.1.0-alpha

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql status
--
/usr/local/bin/mysql  Ver 13.5 Distrib 4.1.0-alpha, for portbld-freebsd5.2
(i386)

Connection id:  8
Current database:
Current user:   [EMAIL PROTECTED]
SSL:Not in use
Current pager:  more
Using outfile:  ''
Server version: 4.1.0-alpha
Protocol version:   10
Connection: Localhost via UNIX socket
Client characterset:latin1_swedish_ci
Server characterset:latin1_swedish_ci
UNIX socket:/tmp/mysql.sock
Uptime: 13 min 35 sec

Threads: 1  Questions: 5  Slow queries: 0  Opens: 7  Flush tables: 1  Open
tables: 1  Queries per second avg: 0.006
--

I am wondering if this is anything to do with my network setup as I had
exactly the same thing on a Linux box a few weeks ago and drove myself
mad trying to resolve it. Now its cropped upa gain under 5.2.1 - it cant be a
coincidence . . . can it ?

I have googled about and tried out most of the recommended solutions to no
avail
Started with adding mysqld:127.0.0.1 to hosts which didnt work (I couldnt
tell you 
why I should do this being a noob - just following advice to get me up and
running:)

Thanks in advance for any advice !

Graham

ps I installed this with pkg_add -r mysql-server which seemed to go to the
'latest' directory on the end of a long FreeBSD ftp server dir structure.

I just know I am going to get flamed for this :)


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


Re: Python application in rc.d.

2004-06-20 Thread Chuck Swiger
Lewis Thompson wrote:
I'm trying to create a port for a Python application that I want to
start from local/etc/rc.d.  The command is this:
/usr/bin/su freevo -c /usr/local/bin/freevo -fs start  /dev/null 21
  Unfortunately when I boot up I get a message about Python not being
configured/available at this time.
Does the script set $PATH to include the location where python is?  If you 
don't list /usr/local/bin explicitly, this may be the problem...

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


Re: MySQL Advice

2004-06-20 Thread Gerard Samuel
On Sunday 20 June 2004 02:48 pm, Graham Bentley wrote:
 freebsd# /usr/local/bin/mysqladmin -u root -h freebsd.mydomain.com password
 mypassword

 /usr/local/bin/mysqladmin: connect to server at 'freebsd.mydomain.com'
 failed error: 'Host 'freebsd.mydomain.com' is not allowed to connect to
 this MySQL server'

 freebsd# /usr/local/bin/mysql --password

Im assuming you're talking about the error when trying to connect via 
mysqladmin.
Have you tried taking out the host option like -
 /usr/local/bin/mysqladmin -u root password mypassword

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


Re: Python application in rc.d.

2004-06-20 Thread Lewis Thompson
On Sun, Jun 20, 2004 at 03:01:54PM -0400, Chuck Swiger wrote:
 Lewis Thompson wrote:
 I'm trying to create a port for a Python application that I want to
 start from local/etc/rc.d.  The command is this:
 
 /usr/bin/su freevo -c /usr/local/bin/freevo -fs start  /dev/null 21
 
   Unfortunately when I boot up I get a message about Python not being
 configured/available at this time.
 
 Does the script set $PATH to include the location where python is?  If you 
 don't list /usr/local/bin explicitly, this may be the problem...

No, PATH doesn't get set but if I run it as /usr/local/bin/freevo.sh start
from a login shell (i.e. after the system has booted) it works fine.  I
might be getting confused but I think this indicates the script is good
and it's a start-up problem.  Is this just wrong?

  Thanks for your reply,

-lewiz.

-- 
I was so much older then, I'm younger than that now.  --Bob Dylan, 1964.

-| msn:[EMAIL PROTECTED] | jabber:[EMAIL PROTECTED] | url:www.lewiz.org |-


pgpDawADzThIX.pgp
Description: PGP signature


Re: Win-modems

2004-06-20 Thread Kris Kennaway
On Wed, Jun 20, 2001 at 11:44:22AM +0300, Alex wrote:
 [...]

You're living in the past, man!

Kris


pgpxCFCYafmXX.pgp
Description: PGP signature


Partition sizes for small harddisk

2004-06-20 Thread eyesonly

Hi

I'm trying to install FreeBSD 4.10 on an older computer with a 852 MB hard disk.
According to the handbook, 250 MB should suffice for text mode only.
However, both the User and (retried) Minimal distributions left me with no space 
in /usr
I used the default partitioning (entire disk) and said No to the ports and linux 
compatibility prompts.

Assuming that the defaults are optimized for larger disks, how would I best divide the 
available space?

thanks
Mark

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


Re: Partition sizes for small harddisk

2004-06-20 Thread Jerry McAllister
 
 Hi
 
 I'm trying to install FreeBSD 4.10 on an older computer with a 852 MB hard 
 disk.
 According to the handbook, 250 MB should suffice for text mode only.
 However, both the User and (retried) Minimal distributions left me 
 with no space in /usr
 I used the default partitioning (entire disk) and said No to the ports 
 and linux compatibility prompts.
 
 Assuming that the defaults are optimized for larger disks, how would I 
 best divide the available space?

With that little disk space, I would be inclined to make it all
just one root (/) partition - with a bit of swap.   You might not
even be able to have a swap as big as memory with no more disk than 
that, but try for a swap of memory size or at least 100 MB or so
and the rest in /. 

I think FreeBSD has grown since they made those claims of 250 MB
being enough for a minimum.   You might be able to cram it in, 
but would have little room for doing anything.   

Good luck,

jerry

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


Re: The FreeBSD Diary: 2004-05-30 - 2004-06-19

2004-06-20 Thread Jim Trigg
--On Sunday, June 20, 2004 12:10 AM -0700 Dan Langille [EMAIL PROTECTED] 
wrote:

These are the articles posted during this period:
15-Jun : IBM ThinkPad T41
 Installing and configuring FreeBSD and XFree86
 http://freebsddiary.org/ibm-thinkpad-t41.php?2
'Tain't there, McGee...
Jim Trigg
--
Jim Trigg, Lord High Everything Else  O-  /\
 \ /  ASCII RIBBON CAMPAIGN
Hostmaster, Huie Kin family websiteXHELP CURE HTML MAIL
Verger, All Saints Church - Sharon Chapel / \
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Python application in rc.d.

2004-06-20 Thread Chuck Swiger
Lewis Thompson wrote:
[ ... ]
Does the script set $PATH to include the location where python is?  If you 
don't list /usr/local/bin explicitly, this may be the problem...
No, PATH doesn't get set but if I run it as /usr/local/bin/freevo.sh start
from a login shell (i.e. after the system has booted) it works fine.  I
might be getting confused but I think this indicates the script is good
and it's a start-up problem.  Is this just wrong?
No, you should not assume that running the command from an interactive shell 
is the same environment that a RC startup script or a cron job runs under. 
Adding an echo $PATH somewhere would probably give you more information, but 
without a more specific error message, I'll repeat my guess.

[ Without seeing the exact error message, asking us what's really going on 
involves jedi mind tricks!  :-) ]

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


Re: Partition sizes for small harddisk

2004-06-20 Thread Renato Marques
Hi,
Try this configuration
/ 128MB
swap 32MB
/var 32MB
/tmp 32MB
/usr the rest of the disk...

I think tou will be albe to run the X too



Hi

I'm trying to install FreeBSD 4.10 on an older computer with a 852 MB
hard disk.
According to the handbook, 250 MB should suffice for text mode only.
However, both the User and (retried) Minimal distributions left me
with no space in /usr
I used the default partitioning (entire disk) and said No to the ports
and linux compatibility prompts.

Assuming that the defaults are optimized for larger disks, how would I
best divide the available space?

thanks
Mark

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

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


Re: Python application in rc.d.

2004-06-20 Thread Bill Moran
Lewis Thompson [EMAIL PROTECTED] wrote:
 On Sun, Jun 20, 2004 at 03:01:54PM -0400, Chuck Swiger wrote:
  Lewis Thompson wrote:
  I'm trying to create a port for a Python application that I want to
  start from local/etc/rc.d.  The command is this:
  
  /usr/bin/su freevo -c /usr/local/bin/freevo -fs start  /dev/null 21
  
Unfortunately when I boot up I get a message about Python not being
  configured/available at this time.
  
  Does the script set $PATH to include the location where python is?  If you 
  don't list /usr/local/bin explicitly, this may be the problem...
 
 No, PATH doesn't get set but if I run it as /usr/local/bin/freevo.sh start
 from a login shell (i.e. after the system has booted) it works fine.  I
 might be getting confused but I think this indicates the script is good
 and it's a start-up problem.  Is this just wrong?

I don't have much Python-fu, but is sure sounds like the script is failing
becuase something it's dependent on hasn't started yet.

Check to see what other scripts are in /usr/local/etc/rc.d (I'm guessing that's
how you're firing it up on startup) and see if Python has some sort of startup
script in there.  If so, make sure your script executes afterwards (they're run
alphabetically).

If that doesn't help, you'll probably have to gather more details.  The other
suggestions about PATH and other environment are valid concerns as well.

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


Re: Win-modems

2004-06-20 Thread Chuck Swiger
Kris Kennaway [EMAIL PROTECTED] wrote:
On Wed, Jun 20, 2001 at 11:44:22AM +0300, Alex wrote:
  
[...]
You're living in the past, man!
Heh!  Amusing turn of phrase, this.
--
-Chuck
PS: In case the phrase he used doesn't translate, out of pity for 
interpreting foreign languages, Alex, please reset the date on your computer. 
 Every once in a while, Kris takes the domain name in that email address of 
his a little too literally, resulting in obscure responses.  :-)

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


kdm and startkde

2004-06-20 Thread Brett Wiggins
hello,
  I am having some problems with startkde and kdm. When I run 
startkde i get the following outpit;
  
 xset: unable to open dispaly 
 xsetroot: unable to open display ''
 startkde: starting up...
 ksplash cannot connect to X server
 kdeinit: Aborting. $DISPLAY is not set
 Warning: connect() failed: : no such file or directory
 ksmserver : cannot connect to X server
 startkde: shutting down
 Warning: connect() failed: : no such file or directory
 Error : Can't contact kdeinit!
 startkde: Running shutdown scripts
 startkde: done

When I run startx kde runs fine.
  
   When I edit /etc/ttys to enable a graphical login, kdm runs but 
nothing happens when I log in. The login screen is just reloaded. Any 
help would be great.

Brett 


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


Re: Any 4.10 installation on asus pundit ?

2004-06-20 Thread Bernard Dugas
Phil Schulz a écrit :
http://www.asus.com/prog/spec.asp?m=Punditlangs=01
 - Chipset SIS 651/962
 - Lan Broadcom BCM4401
Try to apply the attached patch to /sys/dev/ata/ata-dma.c
Neither do I have a mainboard w/ the same chipset as yours nor do I have 
any PC running RELENG_4 atm. But I had to apply sth similar to make my 
SiS-746(?)-based mainboard work under RELENG_4. I'm not a developer so I 
don't know if it's a good and clean solution but it worked for me back 
then.
Thanks a lot, the content of this patch seems well targeted.
The problem is I'm not a system developper either, and I only had the 
iso images for installation, so I will have to find a way to apply the 
patch.

In addition, I can't find the bfe0 network driver for the Broadcom 
BCM4401 in the kernel configuration, but the 4.10 release notes told 
the bfe should be in.

 From bfe(4): The bfe device driver first appeared in FreeBSD 5.1.
Yes, but in http://www.freebsd.org/releases/4.10R/errata.html :
(27 May 2004) The bfe(4) driver for Broadcom BCM4401 based Fast 
Ethernet adapters has been added but the release notes did not mention 
that.

I've reported a bug on that problems :
http://www.freebsd.org/cgi/query-pr.cgi?pr=68149
Thanks a lot,
--
 __ Bernard DUGAS 
| |
|  Technoparc Pays de Gex  mailto:[EMAIL PROTECTED] |
|  30 Rue Auguste Piccard   Tel.: +33 615 333 770 |
| FR 01630 St Genis Pouilly Fax : +33 450 205 106 |
|_|
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Partition sizes for small harddisk

2004-06-20 Thread Alex de Kruijff
On Sun, Jun 20, 2004 at 03:41:53PM -0400, Jerry McAllister wrote:
  
  Hi
  
  I'm trying to install FreeBSD 4.10 on an older computer with a 852 MB hard 
  disk.
  According to the handbook, 250 MB should suffice for text mode only.
  However, both the User and (retried) Minimal distributions left me 
  with no space in /usr
  I used the default partitioning (entire disk) and said No to the ports 
  and linux compatibility prompts.
  
  Assuming that the defaults are optimized for larger disks, how would I 
  best divide the available space?
 
 With that little disk space, I would be inclined to make it all
 just one root (/) partition - with a bit of swap.   You might not
 even be able to have a swap as big as memory with no more disk than 
 that, but try for a swap of memory size or at least 100 MB or so
 and the rest in /. 
 
 I think FreeBSD has grown since they made those claims of 250 MB
 being enough for a minimum.   You might be able to cram it in, 
 but would have little room for doing anything.   

That is realy a bad idee.

/ is supposted to be small to limit the change that something
irriversible happens to it during a crash
/tmp can be mounted so that it gets a real power boost

There are many other reason why not to do this. I can't think of them
this quickly.

-- 
Alex

Articles based on solutions that I use:
http://www.kruijff.org/alex/FreeBSD/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How to start httpd and mysql automatic with FreeBSD start?

2004-06-20 Thread Alex
Hello to all,

Plese say me how to correctly start httpd and mysqld with system
sturtup... Where i need register it? (maybe in rc.conf or inet.d ?)
And what i need to write in that file?
Thanks!

-- 
Best regards,
 Alexandr  mailto:[EMAIL PROTECTED]


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


Re: kdm and startkde

2004-06-20 Thread Jorn Argelo
Brett Wiggins wrote:
hello,
 I am having some problems with startkde and kdm. When I run 
startkde i get the following outpit;
 
xset: unable to open dispaly 
xsetroot: unable to open display ''
startkde: starting up...
ksplash cannot connect to X server
kdeinit: Aborting. $DISPLAY is not set
Warning: connect() failed: : no such file or directory
ksmserver : cannot connect to X server
startkde: shutting down
Warning: connect() failed: : no such file or directory
Error : Can't contact kdeinit!
startkde: Running shutdown scripts
startkde: done

When I run startx kde runs fine.
 

I thinks it's because startx launches X before it starts startkde, and 
startkde only attempts to launch KDE, which isn't going to work if there 
is no X server running.

 
  When I edit /etc/ttys to enable a graphical login, kdm runs but 
nothing happens when I log in. The login screen is just reloaded. Any 
help would be great.

 

What about XDM? Is that working? Is your /var/log/XFree86 giving you any 
useful output? (connection refused or something?)

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


Re: How to start httpd and mysql automatic with FreeBSD start?

2004-06-20 Thread Jorn Argelo
Alex wrote:
Hello to all,
Plese say me how to correctly start httpd and mysqld with system
sturtup... Where i need register it? (maybe in rc.conf or inet.d ?)
And what i need to write in that file?
Thanks!
 

If you have an init script installed in /usr/local/etc/rc.d, it should 
be starting automatically. If you builded Apache from MySQL from the 
ports tree, it should have installed an init script already.

You can try using rc.conf as well, but I'm not sure if that'll work or not:
httpd_enable=YES
mysqld_enable=YES
Do note that I've builded MySQL from the ports tree, and I didn't have 
to add these lines to the rc.conf file because there were init scripts 
located at /usr/local/etc/rc.d

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


Re: 5-Current: problems with many ports?

2004-06-20 Thread Alex de Kruijff
On Fri, Jun 18, 2004 at 02:48:56PM +0900, Rob wrote:
 
 Hi,
 
 After I purchased a brandnew harddisk, I decided to also try out 5-current
 as the new OS on this disk.
 
 Installing system went all fine and smooth (5.2.1 install, then cvsupped to
 current), and compiled/installed new world and kernel.
 
 However, since I am now installing many apps from the ports, I encounter
 problem after problem, ports installs ending with errors; such as
 configure runs that fail (e.g. libexif), ld complaining about libXpm.so.4
 related things (teTeX/LyX).
 
 So far I failed to install gimp and teTeX, which would make that PC rather
 useless to me. Time to step back to 4.X?
 
 Are the ports not ready with 5-Current kernel?
 Or am I doing something wrong?

Dear Rob,

The ports collection you fetched is being worked on all the time. This
can mean that some doesn't work from time to time. By the way: running 5
current is very new and thus very risky, are you sure you woudn't rather
follow RELENG_5_2? You may find at sometime that cvsup and a build world
that you system is broken. This can happen in 5-current but is less liky
in releng 5.2.

-- 
Alex

Articles based on solutions that I use:
http://www.kruijff.org/alex/FreeBSD/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Upgrading openssh

2004-06-20 Thread Alex de Kruijff
On Thu, Jun 17, 2004 at 04:52:24PM -0500, Eric Crist wrote:
 On Thursday 17 June 2004 10:41, Nagilum wrote:
  Hi Eric,
 
  The base version of openssh is updated frequently (especially if any
  vulnerabilities are discovered), so why bother with the port?
 
  Kind regards,
  Alex.
 
  Eric Crist wrote:
  After figuring out perl (with the help of Matthew, I was wondering what
   the proper way to install/upgrade openssh.  I assume it's to install from
   ports, and somehow disable the installed, system version.
  
  What's the proper method?
 
 Someone pointed out I was using an outdated version.  I just did a complete 
 system upgrade the other day, so I assumed ports was the only way to go (I 
 mean, look at the perl installation...)

You could also update /usr/src/ and do a make world. You won't get the
most recent version but one that will do nicly and you don't have to
wurry about how to go about.

An outdated version isn't bad per say. For stability a outdated version
is usaly better. For security a recent version is better. All that
matter is that there are no security risk. And as stated by Nagilum,
when there's a security risk then its alway updated and else it may take
some time.

-- 
Alex

Articles based on solutions that I use:
http://www.kruijff.org/alex/FreeBSD/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


wierd router crashes...

2004-06-20 Thread Alison Lloyd
Hiya

I'm trying to get a FreeBSD box set up as a router between my cable
internet connection and my home LAN.  I'm using a Compaq Professional
Workstation 5000 (yes, the Pentium Pro thingy), which I've installed an
extra NIC into.  The output from uname -a is:

FreeBSD gorgonzola 4.9-RELEASE FreeBSD 4.9-RELEASE #1: Thu May 20 23:35:28
BST 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GORGONZOLA i386

I'm using 4.9 because 5.2.1 refuses to find any harddrives (IDE or SCSI),
incidently.  I've recompiled the original kernel to include ipfw support. 
My firewall ruleset is:

add 1 divert 8668 ip from any to any via tl0
add 6 allow ip from any to any
add 11010 allow tcp from any to any established
add 11100 deny log tcp from any to tl0

where tl0 is the external interface and rl0 is the internal one.  I've got
everything up and running, got the external interface registered with my
ISP, and can connect to the internet fine (http, ftp, ports all work). 
I've set the box up to DHCP for its external IP (which it does fine), and
to use 192.168.1.1 for the internal one.

The problems come in when I try to use a machine on the internal LAN - the
router locks solid - no response to anything at all.  It passes a few
packets to start with, but then dies.  After reboot, there are no
suspicious entries in the logs, at least none that I can find.  So long as
I don't do anything on the internal LAN, everything runs perfectly!

I've tried disabling all extraneous things (sendmail, etc.), to no avail. 
I'm not sure what to try next, as I'm fairly new to FreeBSD and firewalls
/ routers in general.

Hlp!
  Alison

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


Re: Any 4.10 installation on asus pundit ?

2004-06-20 Thread Phil Schulz

The problem is I'm not a system developper either, and I only had the 
iso images for installation, so I will have to find a way to apply the 
patch.

You'll need the kernel sources installed. Then apply the patch and then 
re-compile the kernel. Basically you just need to add on line of code in 
the right place. If you have got the sources from CD and not updated 
them you will not need to rebuild  the userland. Check the handbook for 
details (chapter 9).

In addition, I can't find the bfe0 network driver for the Broadcom 
BCM4401 in the kernel configuration, but the 4.10 release notes told 
the bfe should be in.

 From bfe(4): The bfe device driver first appeared in FreeBSD 5.1.

Actually I forgot that 5.1 was released before 4.10 - my mistake. Indeed 
the driver seems to have been ported back to the 4-Stable branch.

Yes, but in http://www.freebsd.org/releases/4.10R/errata.html :
(27 May 2004) The bfe(4) driver for Broadcom BCM4401 based Fast 
Ethernet adapters has been added but the release notes did not mention 
that.

I think you just need to add a line that reads
device   bfe
to your kernel config file and the rebuild the kernel.
Phil.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Firewall rules

2004-06-20 Thread Alex de Kruijff
On Wed, Jun 16, 2004 at 01:32:58AM +0100, Robert Downes wrote:
 JJB wrote:
 
 Fundamentally his keep-state rules work and yours don't.
 
 I have used his script exactly, modifying only for the differences in my 
 ISP's addresses. Everything works as before, and still the check-state 
 rule is showing zero packets and zero bytes, even though keep-state 
 rules have been triggered. Are you sure this is not just a quirk of IPFW?
 
  The use of
 the skipto rule to control what ip address goes into the dynamic
 keep-state table, IE the lan ip or the natd public ip.  The bottom
 line is native ipfw with natd and stateful rules does not work
 together at all, unless you do some gymnastics with skipto rule so
 the dynamic keep-state table always has the private lan ip address
 for matching against.
 
 Yes, this is the mechanism I cannot find a clear explanation for. Can 
 you recommend a link to a page that defines how IPFW stumbles on NAT and 
 keep-state, because I've read and re-read the IPFW man page, and it does 
 me no good whatsoever.

NAT and keep-state doesn't go to getter because NAT changes the ip 
address and this cause ipfw not to recornise the rules. The trick is to 
allow changed traffic afther its bin passed though natd.

# There's no need passing these though natd
20510 check-state
20520 skipto 20600 ip from not 192.168.31.0/24 to any out
20520 skipto 20600 ip from any to not 213.10.151.186 in
# Passing packets that could change though natd
20530 divert 8668 ip from any to any
# Allowing changed traffic.
20550 allow ip from 213.10.151.186 to any out
20550 allow ip from any to not 213.10.151.186 in
# keep-state rules here
...

  Second problem is you are
 allowing every thing out your firewall. This is very bad as it
 allows out any trojons or spy-ware from windows boxs on your lan so
 thet can report their harvested info to the person who planted them.
 Take control of your firewall and only allow out the exact services
 you know you are using.
 
 No arguments there. I'm running ZoneAlarm on all Windows boxes, but it's 
 still better to aim for traffic to be killed on sight by the router.

In this case you should write something lile:
20550 allow ip from 213.10.151.186 80 to any out
20550 allow ip from any 80 to not 213.10.151.186 in

-- 
Alex

Articles based on solutions that I use:
http://www.kruijff.org/alex/FreeBSD/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: wierd router crashes...

2004-06-20 Thread Jorn Argelo
Alison Lloyd wrote:
Hiya
I'm trying to get a FreeBSD box set up as a router between my cable
internet connection and my home LAN.  I'm using a Compaq Professional
Workstation 5000 (yes, the Pentium Pro thingy), which I've installed an
extra NIC into.  The output from uname -a is:
FreeBSD gorgonzola 4.9-RELEASE FreeBSD 4.9-RELEASE #1: Thu May 20 23:35:28
BST 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GORGONZOLA i386
I'm using 4.9 because 5.2.1 refuses to find any harddrives (IDE or SCSI),
incidently.  I've recompiled the original kernel to include ipfw support. 
My firewall ruleset is:

add 1 divert 8668 ip from any to any via tl0
add 6 allow ip from any to any
add 11010 allow tcp from any to any established
add 11100 deny log tcp from any to tl0
where tl0 is the external interface and rl0 is the internal one.  I've got
everything up and running, got the external interface registered with my
ISP, and can connect to the internet fine (http, ftp, ports all work). 
I've set the box up to DHCP for its external IP (which it does fine), and
to use 192.168.1.1 for the internal one.

The problems come in when I try to use a machine on the internal LAN - the
router locks solid - no response to anything at all.  It passes a few
packets to start with, but then dies.  After reboot, there are no
suspicious entries in the logs, at least none that I can find.  So long as
I don't do anything on the internal LAN, everything runs perfectly!
I've tried disabling all extraneous things (sendmail, etc.), to no avail. 
I'm not sure what to try next, as I'm fairly new to FreeBSD and firewalls
/ routers in general.

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

What are you using to let your internal LAN connect to the outside 
world? Are you using a proxy server or natd or something else? If you're 
using natd, do make sure that you're routing it to the right NIC (Your 
external NIC to your ISP should be in the natd_interface section at 
/etc/rc.conf) If that's not the case, I can't really think of something 
else.

You're saying that 5.2.1 is not able to locate your harddrive at all? 
And you just have a simple ATA controller with nothing else? It should 
be working just fine then. Perhaps that your installation media was bad 
or there is a hardware problem with your machine. I never seen 5.2.1 not 
being able to detect a proper working IDE drive.

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


Re: UFS2 and ufs2 documentation ?

2004-06-20 Thread Reed L. O'Brien
Mr. Schmoe
I am sure I sent this but never saw it post to the list; so I try again.
http://sixshooter.v6.thrupoint.net/jeroen/faq.html
cheers,
reed
Joe Schmoe wrote:
Quick question - when I run `mount` or view /etc/fstab in fbsd 5.x, I just see ufs 
as the filesystem type.  How can I get some kind of output that assures me that those volumes 
are indeed UFS2 volumes ?  How do I verify that ?
Second, where can I find documentation on ufs2 and snapshotting, etc. ?  There is no 
'ufs2' manpage, and the mksnap_ffs man page is about 20 lines long ... where can I 
find more documentation ?
thanks.
		
-
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
 

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


Partition sizes for small harddisk

2004-06-20 Thread Robert Huff

[EMAIL PROTECTED] writes:
  I'm trying to install FreeBSD 4.10 on an older computer with a 852
  MB hard disk. 
  According to the handbook, 250 MB should suffice for text mode only.
  However, both the User and (retried) Minimal distributions left
  me with no space in /usr 
  I used the default partitioning (entire disk) and said No to the
  ports and linux compatibility prompts. 

First, a question: what do you want this machine to do?
852 MB should be enough.  Go with a Custom installation, and
you'll need to be utterly ruthless about not installing unneeded
distribution sets.
Once you're up and running: a) compile a custom kernel, and b)
change the settings on newsyslog so you don't keep excess files
laying around.


Robert Huff


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


Re: read vs. mmap (or io vs. page faults)

2004-06-20 Thread Mikhail Teterin
On Sunday 20 June 2004 02:35 pm, you wrote:
=
= :I this how things are supposed to be, or will mmap() become more
= :efficient eventually? Thanks!
= :
= : -mi

= It's hard to say.  mmap() could certainly be made more efficient, e.g.
= by faulting in more pages at a time to reduce the actual fault rate.
= But it's fairly difficult to beat a read copy into a small buffer.

Well, that's the thing -- by mmap-ing the whole file at once (and by
madvise-ing with MADV_SEQUENTIONAL), I thought, I told, the kernel
everything it needed to know to make the best decision. Why can't
page-faulting code do a better job using all this knowledge, than the
poor read, which only knows about the partial read in question?

I find it so disappointing, that it can, probably, be considered a bug.
I'll try this code on Linux and Solaris. If mmap is better there (as it
really ought to be), we have a problem, IMHO. Thanks!

-mi

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


Re: Python application in rc.d.

2004-06-20 Thread Lewis Thompson
On Sun, Jun 20, 2004 at 03:56:43PM -0400, Chuck Swiger wrote:
 Lewis Thompson wrote:
 [ ... ]
 Does the script set $PATH to include the location where python is?  If 
 you don't list /usr/local/bin explicitly, this may be the problem...
 
 No, PATH doesn't get set but if I run it as /usr/local/bin/freevo.sh start
 from a login shell (i.e. after the system has booted) it works fine.  I
 might be getting confused but I think this indicates the script is good
 and it's a start-up problem.  Is this just wrong?
 
 No, you should not assume that running the command from an interactive 
 shell is the same environment that a RC startup script or a cron job runs 
 under.

You were correct!  I've added PATH=${PATH}:%%PREFIX%%/bin to the sample
file (where %%PREIFX%% obviously gets mangled).  It works great now.  I
must admit I can see a situation where somebody might install my port in
a weird PREFIX and then it still won't find python (if it's installed in
the default, /usr/local) -- but I really can't see any way to handle
that nicely.

  Thanks for the help, I'm hopefully going to submit this port soon --
I've only been working on it a few months!

-lewiz.

-- 
I was so much older then, I'm younger than that now.  --Bob Dylan, 1964.

-| msn:[EMAIL PROTECTED] | jabber:[EMAIL PROTECTED] | url:www.lewiz.org |-


pgpGVA7hd3Jlt.pgp
Description: PGP signature


Re: The FreeBSD Diary: 2004-05-30 - 2004-06-19

2004-06-20 Thread Dan Langille
On 20 Jun 2004 at 15:50, Jim Trigg wrote:

 --On Sunday, June 20, 2004 12:10 AM -0700 Dan Langille [EMAIL PROTECTED] 
 wrote:
 
  These are the articles posted during this period:
 
  15-Jun : IBM ThinkPad T41
   Installing and configuring FreeBSD and XFree86
   http://freebsddiary.org/ibm-thinkpad-t41.php?2
 
 'Tain't there, McGee...

And it's just as well too.  That article is not completed.  I've 
repaired the script so that this error does not occur again.

Thanks.
-- 
Dan Langille : http://www.langille.org/

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


natd translating ip and udp packets but not tcp..

2004-06-20 Thread Frederick Polsky
Greetings and salutations;

I am having a puzzling issue with natd under FreeBSD
5.2, in which it will translate icmp and udp packets
just fine, but tcp connections from the inside network
to the outside world cannot be established. I can
lookup hostnames, ping etc. from the internal client
box, but cannot establish a connection to any
tcp-based service.

Consider my configuration, with addresses changed to
implicate the guilty:

Gateway internal interface: xl1
Gateway internal ip: 192.168.0.1/24
Client internal ip: 192.168.0.2

Gateway external interface: xl0
Gateway external ip: 131.107.3.124

Proper kernel options in place.

ipfw configuration (more or less):

050 divert 8668 ip from any to any via xl0
100 allow ip from any to any

natd running properly against xl0

I can provide more detailed information (tcpdumps,
etc) if requested. Thanks.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to start httpd and mysql automatic with FreeBSD start?

2004-06-20 Thread Eric Crist
On Sunday 20 June 2004 05:21, Alex wrote:
 Hello to all,

 Plese say me how to correctly start httpd and mysqld with system
 sturtup... Where i need register it? (maybe in rc.conf or inet.d ?)
 And what i need to write in that file?
 Thanks!

You didn't mention what version of FreeBSD you're using.   That makes a big 
difference.
-- 
Eric F Crist

Keep your pecker hard and your powder dry, and the world WILL turn.


pgprb556Nr5g0.pgp
Description: signature


Re: read vs. mmap (or io vs. page faults)

2004-06-20 Thread Matthew Dillon
Hmm.  Well, you can try calling madvise(... MADV_WILLNEED), that's what
it is for.  

It is usually a bad idea to try to populate the page table with all
resident pages associated with the a memory mapping, because mmap()
is often used to map huge files... hundreds of megabytes or even 
dozens of gigabytes (on 64 bit architectures).  The last thing you want
to do is to populate the page table for the entire file.  It might
work for your particular program, but it is a bad idea for the OS to
assume that for every mmap().

What it comes down to, really, is whether you feel you actually need the
additional performance, because it kinda sounds to me that whatever 
processing you are doing to the data is either going to be I/O bound,
or it isn't going to run long enough for the additional overhead to matter
verses the processing overhead of the program itself.

If you are really worried you could pre-fault the mmap before you do
any processing at all and measure the time it takes to pre-fault the
pages vs the time it takes to process the memory image.  (You pre-fault
simply by accessing one byte of data in each page across the mmap(),
before you begin any processing).

-Matt
Matthew Dillon 
[EMAIL PROTECTED]

:= It's hard to say.  mmap() could certainly be made more efficient, e.g.
:= by faulting in more pages at a time to reduce the actual fault rate.
:= But it's fairly difficult to beat a read copy into a small buffer.
:
:Well, that's the thing -- by mmap-ing the whole file at once (and by
:madvise-ing with MADV_SEQUENTIONAL), I thought, I told, the kernel
:everything it needed to know to make the best decision. Why can't
:page-faulting code do a better job using all this knowledge, than the
:poor read, which only knows about the partial read in question?
:
:I find it so disappointing, that it can, probably, be considered a bug.
:I'll try this code on Linux and Solaris. If mmap is better there (as it
:really ought to be), we have a problem, IMHO. Thanks!
:
:   -mi
:
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: read vs. mmap (or io vs. page faults)

2004-06-20 Thread Julian Elischer


On Sun, 20 Jun 2004, Matthew Dillon wrote:

 Hmm.  Well, you can try calling madvise(... MADV_WILLNEED), that's what
 it is for.  
 
 It is usually a bad idea to try to populate the page table with all
 resident pages associated with the a memory mapping, because mmap()
 is often used to map huge files... hundreds of megabytes or even 
 dozens of gigabytes (on 64 bit architectures).  The last thing you want
 to do is to populate the page table for the entire file.  It might
 work for your particular program, but it is a bad idea for the OS to
 assume that for every mmap().
 
 What it comes down to, really, is whether you feel you actually need the
 additional performance, because it kinda sounds to me that whatever 
 processing you are doing to the data is either going to be I/O bound,
 or it isn't going to run long enough for the additional overhead to matter
 verses the processing overhead of the program itself.
 
 If you are really worried you could pre-fault the mmap before you do
 any processing at all and measure the time it takes to pre-fault the
 pages vs the time it takes to process the memory image.  (You pre-fault
 simply by accessing one byte of data in each page across the mmap(),
 before you begin any processing).

pre-faulting is best done by a worker thread or child process, or it
will just slow you down..


 
   -Matt
   Matthew Dillon 
   [EMAIL PROTECTED]
 
 := It's hard to say.  mmap() could certainly be made more efficient, e.g.
 := by faulting in more pages at a time to reduce the actual fault rate.
 := But it's fairly difficult to beat a read copy into a small buffer.
 :
 :Well, that's the thing -- by mmap-ing the whole file at once (and by
 :madvise-ing with MADV_SEQUENTIONAL), I thought, I told, the kernel
 :everything it needed to know to make the best decision. Why can't
 :page-faulting code do a better job using all this knowledge, than the
 :poor read, which only knows about the partial read in question?
 :
 :I find it so disappointing, that it can, probably, be considered a bug.
 :I'll try this code on Linux and Solaris. If mmap is better there (as it
 :really ought to be), we have a problem, IMHO. Thanks!
 :
 : -mi
 :
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 

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


Re: FreeBSD 5.2.1 OpenLDAP21-server won't start

2004-06-20 Thread Andy Harrison
On Sat, 19 Jun 2004 22:55:27 -0400, David Snyder [EMAIL PROTECTED] wrote:
 
 I installed a minimal FreeBSD 5.2.1
 
 Then installed Openldap21-server from ports with
 # make install clean
 
 Then installed a script
 cp /usr/ports/net/openldap21-server /usr/local/etc/rc.d/slapd.sh
 
 configured slapd.conf  ldap.conf
 
 manually started ldap with /usr/local/libexec/slapd start
 
 and everything worked but the script won't work.
 
 So then i viewed teh script and added the three lines to /etc/rc.d that
 was stated in the script.  I rebooted and still ldap didn't start on
 boot but i can do it manually with /usr/local/libexec/slapd start
 
 Whats the deal?  WHat am I doing wrong?
 
 -Dave
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 

What errors appeared in the logs?

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


SICK SERVER

2004-06-20 Thread RYAN vAN GINNEKEN
I use freebsd 4.8 stable as a server it runs many services or used to, 
Apache, bincimap, postfix, just to name a few.  It seems to run natd and 
route packets ok to the internal network that it is attached too.  
However I does not seem to be functioning properly as  a web server or 
email server.  Mostly what i use this machine for is a backup nameserver 
and email server but none of these services are functioning correctly.   
I can still login using my ssh2 program but cannot figure out what is 
going on please can someone help me troubleshoot this machine. 

My main concern is that my main mail server went down for about 3 days 
so the broken server hopefully picked up the mail but does not seem to 
be able to relay it back to my main server.  I am using postfix 2.0.0.19 
and have my postfix system secured with TLS and SASL.

here is some log from postfix and a postconf -n output
rig_to=root, relay=none, delay=316608, status=deferred (delivery 
temporarily suspended: connect to 
mail1.shoemasters.computerking.ca[68.144.231.38]: Operation timed out)
Jun 20 19:04:13 v21 postfix/qmgr[1092]: 2B41A10390: 
to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=none, 
delay=316598, status=deferred (delivery temporarily suspended: connect 
to mail1.shoemasters.computerking.ca[68.144.231.38]: Operation timed out)
Jun 20 19:04:13 v21 postfix/qmgr[1092]: 2F2E810391: 
to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=none, 
delay=316598, status=deferred (delivery temporarily suspended: connect 
to mail1.shoemasters.computerking.ca[68.144.231.38]: Operation timed out)
Jun 20 19:04:13 v21 postfix/qmgr[1092]: 1F72A10342: 
to=[EMAIL PROTECTED], orig_to=root, relay=none, delay=57410, 
status=deferred (delivery temporarily suspended: connect to 
mail1.shoemasters.computerking.ca[68.144.231.38]: Operation timed out)
Jun 20 19:04:13 v21 postfix/qmgr[1092]: 06F8910346: 
to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=none, 
delay=311601, status=deferred (delivery temporarily suspended: connect 
to mail1.shoemasters.computerking.ca[68.144.231.38]: Operation timed out)
Jun 20 19:04:13 v21 postfix/qmgr[1092]: 0AA07103A2: 
to=[EMAIL PROTECTED], orig_to=root, relay=none, delay=92298, 
status=deferred (delivery temporarily suspended: connect to 
mail1.shoemasters.computerking.ca[68.144.231.38]: Operation timed out)

v21.highcoup.ca  /etc #postconf -n
alias_maps = hash:/etc/mail/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
debug_peer_level = 2
default_privs = nobody
home_mailbox = Maildir/INBOX/
html_directory = no
inet_interfaces = all
local_recipient_maps = $alias_maps unix:passwd.byname
mail_owner = postfix
mail_spool_directory = /var/mail
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname, localhost.$mydomain $mydomain
mydomain = highcoup.ca
myhostname = mail1.highcoup.ca
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = $mydestination, computerking.ca, shoemasters.computerking.ca
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_tls_loglevel = 3
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions = permit_mx_backup,
permit_sasl_authenticated,permit_mynetworks,
reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_mx_backup,   
permit_sasl_authenticated,permit_mynetworks,
reject_unauth_destination
smtpd_tls_CAfile = /usr/local/etc/postfix/smtpd.pem
smtpd_tls_ask_ccert = yes
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /usr/local/etc/postfix/smtpd.pem
smtpd_tls_key_file = /usr/local/etc/postfix/smtpd.pem
smtpd_tls_loglevel = 2
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
soft_bounce = no
tls_random_source = dev:/dev/urandom

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


SICK SERVER

2004-06-20 Thread RYAN vAN GINNEKEN
I use freebsd 4.8 stable as a server it runs many services or used to, 
Apache, bincimap, postfix, just to name a few.  It seems to run natd and 
route packets ok to the internal network that it is attached too.  
However I does not seem to be functioning properly as  a web server or 
email server.  Mostly what i use this machine for is a backup nameserver 
and email server but none of these services are functioning correctly.   
I can still login using my ssh2 program but cannot figure out what is 
going on please can someone help me troubleshoot this machine.
My main concern is that my main mail server went down for about 3 days 
so the broken server hopefully picked up the mail but does not seem to 
be able to relay it back to my main server.  I am using postfix 2.0.0.19 
and have my postfix system secured with TLS and SASL.

here is some log from postfix and a postconf -n output
rig_to=root, relay=none, delay=316608, status=deferred (delivery 
temporarily suspended: connect to 
mail1.shoemasters.computerking.ca[68.144.231.38]: Operation timed out)
Jun 20 19:04:13 v21 postfix/qmgr[1092]: 2B41A10390: 
to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=none, 
delay=316598, status=deferred (delivery temporarily suspended: connect 
to mail1.shoemasters.computerking.ca[68.144.231.38]: Operation timed out)
Jun 20 19:04:13 v21 postfix/qmgr[1092]: 2F2E810391: 
to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=none, 
delay=316598, status=deferred (delivery temporarily suspended: connect 
to mail1.shoemasters.computerking.ca[68.144.231.38]: Operation timed out)
Jun 20 19:04:13 v21 postfix/qmgr[1092]: 1F72A10342: 
to=[EMAIL PROTECTED], orig_to=root, relay=none, delay=57410, 
status=deferred (delivery temporarily suspended: connect to 
mail1.shoemasters.computerking.ca[68.144.231.38]: Operation timed out)
Jun 20 19:04:13 v21 postfix/qmgr[1092]: 06F8910346: 
to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=none, 
delay=311601, status=deferred (delivery temporarily suspended: connect 
to mail1.shoemasters.computerking.ca[68.144.231.38]: Operation timed out)
Jun 20 19:04:13 v21 postfix/qmgr[1092]: 0AA07103A2: 
to=[EMAIL PROTECTED], orig_to=root, relay=none, delay=92298, 
status=deferred (delivery temporarily suspended: connect to 
mail1.shoemasters.computerking.ca[68.144.231.38]: Operation timed out)

v21.highcoup.ca  /etc #postconf -n
alias_maps = hash:/etc/mail/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/etc/postfix
daemon_directory = /usr/local/libexec/postfix
debug_peer_level = 2
default_privs = nobody
home_mailbox = Maildir/INBOX/
html_directory = no
inet_interfaces = all
local_recipient_maps = $alias_maps unix:passwd.byname
mail_owner = postfix
mail_spool_directory = /var/mail
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
mydestination = $myhostname, localhost.$mydomain $mydomain
mydomain = highcoup.ca
myhostname = mail1.highcoup.ca
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = $mydestination, computerking.ca, 
shoemasters.computerking.ca
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_tls_loglevel = 3
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions = permit_mx_backup,
permit_sasl_authenticated,permit_mynetworks,
reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = permit_mx_backup,   
permit_sasl_authenticated,permit_mynetworks,
reject_unauth_destination
smtpd_tls_CAfile = /usr/local/etc/postfix/smtpd.pem
smtpd_tls_ask_ccert = yes
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /usr/local/etc/postfix/smtpd.pem
smtpd_tls_key_file = /usr/local/etc/postfix/smtpd.pem
smtpd_tls_loglevel = 2
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
soft_bounce = no
tls_random_source = dev:/dev/urandom

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


cannot compile 2 ports on FBSD4.8

2004-06-20 Thread tscheng
Hi folks, have a few problems about 2 ports, one is editor/AbiWord2, the
other is security/nss, I compiled them from ports on FBSD4.8 and I got:
--for aibword---
ie_imp_MsWord_97.cpp: In method `int
IE_Imp_MsWord_97::_beginPara(_wvParseStruct *, unsigned int, void *,
int)':
ie_imp_MsWord_97.cpp:2507: `struct _PAP' has no member named `linfo'
ie_imp_MsWord_97.cpp:2511: `struct _PAP' has no member named `linfo'
ie_imp_MsWord_97.cpp:2513: `struct _PAP' has no member named `linfo'
ie_imp_MsWord_97.cpp:2523: `struct _PAP' has no member named `linfo'
ie_imp_MsWord_97.cpp:2524: `struct _PAP' has no member named `linfo'
ie_imp_MsWord_97.cpp:2627: `struct _PAP' has no member named `linfo'
ie_imp_MsWord_97.cpp:2631: `struct _PAP' has no member named `linfo'
ie_imp_MsWord_97.cpp:2637: `struct _PAP' has no member named `linfo'
ie_imp_MsWord_97.cpp:2637: `struct _PAP' has no member named `linfo'
ie_imp_MsWord_97.cpp:2654: `struct _PAP' has no member named `linfo'
ie_imp_MsWord_97.cpp:2684: `struct _PAP' has no member named `linfo'
ie_imp_MsWord_97.cpp: In method `int
IE_Imp_MsWord_97::_beginChar(_wvParseStruct *, unsigned int, void *,
int)':
ie_imp_MsWord_97.cpp:2946: `struct _CHP' has no member named `stylename'
ie_imp_MsWord_97.cpp: In method `void IE_Imp_MsWord_97::_handleNotes(const
_wvParseStruct *)':
ie_imp_MsWord_97.cpp:4609: implicit declaration of function `int
wvGetPLCF(...)'
gmake[4]: *** [ie_imp_MsWord_97.o] Error 1
gmake[4]: Leaving directory
`/usr/ports/editors/AbiWord2/work/abiword-2.0.7/abi/src/wp/impexp/xp'

---nss
../../../../dist/FreeBSD4.8_OPT.OBJ/lib/libnss3.so: undefined reference to
`PR_CallOnceWithArg'
../../../../dist/FreeBSD4.8_OPT.OBJ/lib/libsoftokn3.so: undefined
reference to `PR_GetLibraryFilePathname'
gmake[2]: *** [FreeBSD4.8_OPT.OBJ/atob] Error 1
gmake[2]: Leaving directory
`/usr/ports/security/nss/work/nss-3.9/mozilla/security/nss/cmd/atob'


any idea?

Eureka!

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


Re: Mail Delivery (failure dani... [Authorize]

2004-06-20 Thread Daniel Will-Harris
Hi,

You just sent an email to my [EMAIL PROTECTED] account, which 
is now being managed by my Mailblocks spam-free email service. (If you didnt
recently send a message to me, please see the Note below*.)  

Because this is the first time you have sent to this email account, please 
confirm yourself so you'll be recognized when you send to me in the future.
It's simple. To prove your message comes from a human and not a computer, go to: 
http://app8.mailblocks.com/confirm2.aspx?ck=CmRhbmllbHdpbGwObWFpbGJsb2Nrcy5jb20dZnJlZWJzZC1xdWVzdGlvbnNAZnJlZWJzZC5vcmdtukeHa=1
 

This is the email message you have sent that is in my Pending folder waiting 
for your quick authentication:

Subject: Mail Delivery (failure [EMAIL PROTECTED]) 
Sent: Jun 20, 8:47 PM 

If you have not confirmed within several days, your message will automatically
be deleted. 

*Note: If you did not send the above message to me, and you would like to
report this email as unwanted, please notify Mailblocks by going to:
http://app8.mailblocks.com/didnotsend.aspx?ck=CmRhbmllbHdpbGwObWFpbGJsb2Nrcy5jb20dZnJlZWJzZC1xdWVzdGlvbnNAZnJlZWJzZC5vcmdtukeHa=1
 
We will ensure that you do not receive any further notification regarding the
above message.  Mailblocks investigates all reports made using this link.

-
Email for Humans... Mailblocks
Try Mailblocks web-based personal email -- faster, cleaner interface, more 
storage, bigger attachments, and 100% spam-free.  
http://about.mailblocks.com/?src=emailauthorize  

(c) 2003-2004 Mailblocks Inc.  All rights reserved.

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


Re: Partition sizes for small harddisk

2004-06-20 Thread Jorge Mario G.
--- [EMAIL PROTECTED] escribió:  
 Hi
 
 I'm trying to install FreeBSD 4.10 on an older
 computer with a 852 MB hard disk.
 According to the handbook, 250 MB should suffice for
 text mode only.
 However, both the User and (retried) Minimal
 distributions left me with no space in /usr
 I used the default partitioning (entire disk) and
 said No to the ports and linux compatibility
 prompts.

Hi there
for such small disk I'll go for a / partition only
that way you can avoid complications in the near
future


Jorge

_
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]