The FreeBSD Diary: 2007-01-21 - 2007-02-10

2007-02-10 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org 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  
and/or The FreeBSD Diary . 

These are the articles posted during this period:

7-Feb : Converting a system to RAID
 Want RAID?  Here is how to convert an existing system to use RAID 
 http://freebsddiary.org/raid-adding.php?2

23-Jan : Bacula - Transport Layer Security (TLS)
 Encrypt your data during transportation 
 http://freebsddiary.org/bacula-tls.php?2


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

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


Re: strange troubles building 6.2

2007-02-10 Thread Kent Stewart
On Thursday 08 February 2007 17:53, Gary Kline wrote:
>   Folks,
>
>   I finally begged a favor a got two working NIC's in what will be
>   my emergency backup DNS server.  The box is old and slow but the
>   hardware is ++solid.  It was easy getting my 5.3 CD upgraded to
>   5.5, but for unknown reasons,I'm having troubles moving up to
>   6.2-R.  (I upgrades this server [tao] from 5.5 to 6.2-PRE without
>   any problems. )  KERNEL=GENERIC on my backup server and I'm
>   typing

What happened to KERNCONF=GENERIC

>
>
> make buildworld &&
> make buildkernel &&
> make installkernel;
>
>
>   Things hung up after buildworld, during buildkernel.  Thanks
>   to the "&&", the buildworld finished successfully.  I'm all but
>   sure that the cvsup grabbed all 6.2 files.  The troubles have
>   only been happening in the past two or three days.  Has anybody
>   else seen thtis?

With the security  bulletin, I upgraded both 5-stable and 6-stable 
systems.

Kent

>
>   tia,
>
>   gary

-- 
Kent Stewart
Richland, WA

http://www.soyandina.com/ "I am Andean project".
http://users.owt.com/kstewart/index.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Determining daylight savings changes on BSD

2007-02-10 Thread perryh
Does anyone happen to know where to find the updated TZ data
in "old" format?  This is what 6.1 file(1) has to say about
a zoneinfo file imported from one of my really old boxes:

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


Re: backup solution

2007-02-10 Thread perryh
> > Then I will install freebsd on the first disk and will
> > use the two spare IDE-disks on the same cable as a
> > geom-mirror. 
> ...
> Please be aware that the ATA implementation of the VIA EPIA
> chipset isn't the greatest, especially when both are active at
> the same time.  I've seen drive performance drop towards 5MB/s
> for WDC600/WDC800/WDC1200-grade drives which normally run at
> 40MB/s if you do something on the other channel as well.

Dunno about that chipset in particular; some will perform much
better with concurrent operations split across the two channels
than on the same channel.  You might be better off to have root
and one of the mirror disks on ide0 and the other mirror disk
on ide1 with the DVD.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: strange troubles building 6.2

2007-02-10 Thread [EMAIL PROTECTED]

On 08/02/07, Gary Kline <[EMAIL PROTECTED]> wrote:


Things hung up after buildworld, during buildkernel.


Which things?


only been happening in the past two or three days.  Has anybody
else seen thtis?


Assuming you are not using -j, what is the error
from make buildkernel?

Have you:
a) Vetted your kernel config?
b) Checked your /etc/make.conf for naughty flags?
c) Assured yourself that this is not an error related
to bad memory?

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


Re: Mail server recomendations (was: is the list the right place toask?)

2007-02-10 Thread Ted Mittelstaedt

- Original Message - 
From: "John Nielsen" <[EMAIL PROTECTED]>
To: 
Cc: "Ray" <[EMAIL PROTECTED]>
Sent: Friday, February 09, 2007 10:57 PM
Subject: Re: Mail server recomendations (was: is the list the right place
toask?)


> On Saturday 10 February 2007 01:33, Ray wrote:
> > I'm looking for a package (or set of packages) that would provide a mail
> > server with the following capabilities
> >
> > minimally:
> > pop and smtp access that could handle 20 to 100 domains and 200 to 2000
> > mail boxes.(allowing some room for future growth)
>
> SMTP: sendmail is part of the base system and is pretty powerful but has a
> steep learning curve. There are alternatives available in the ports, one
of
> the more popular being postfix. Others such as qmail may also be worth
> researching.
>

I would caution anyone against using the alternatives.  There are a lot of
people
that use them successfully, but sendmail is far more popular in terms of
total
installs - this is no doubt because it is used in the larger mail servers on
the
Internet, and the alternatives are more used on home or small servers.  The
reason you want to use Sendmail is that once you learn how to use it, that
is knowledge that you have a much higher chance of re-using in the future.

>
> I use clamAV on my mailserver, works great and keeps itself up-to-date
> pretty well. Easy integration with sendmail via a milter. For spam you'll
> likely want a combination of techniques. SpamAssassin is a good starting
> point. Also look at the DNS black- or greylisting features of your SMTP
> program (I use a couple realtime DNS blacklists with sendmail).

you can also use greylist-milter with sendmail, it works well.

Ted

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


Re: Can I use an HP printer

2007-02-10 Thread Ted Mittelstaedt
Yes, that is how I do it also - with slightly different options of course.
With those
printers, gimp is your friend.  With the one that the OP has, there's a
specific
driver for it.

Ted

- Original Message - 
From: "Yuri Grebenkin" <[EMAIL PROTECTED]>
To: "Ted Mittelstaedt" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Cc: 
Sent: Saturday, February 10, 2007 5:32 AM
Subject: Re: Can I use an HP printer


> I have an Epson Stylus C43SX and have made it print PostScript
> through the following filter using GIMP Print and Ghostscript:
>
> # /usr/local/libexec/ps2eps.sh
> gs -DSAFER -sDEVICE=ijs -sIjsServer=ijsgimpprint \
>-sDeviceManufacturer=EPSON -sDeviceModel=escp2-c42sx \
>-DIjsUseOutputFD -q -sOutputFile=- -DNOPAUSE -DBATCH - \
>   && exit 0
>
> Also, to turn on extended mode for my local lpt0 I use this:
>
> lptcontrol -e /dev/lpt0
>
> Yuri
>
>
> On Thu, 8 Feb 2007 23:31:31 -0800
> "Ted Mittelstaedt" <[EMAIL PROTECTED]> wrote:
>
> > I myself have an Epson C84 inkjet in my home that has the same issues.
>

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


Re: Low-cost dedicated FreeBSD server or non-jail VPS?

2007-02-10 Thread Ted Mittelstaedt

- Original Message - 
From: "Jay Chandler" <[EMAIL PROTECTED]>
To: "Ted Mittelstaedt" <[EMAIL PROTECTED]>
Cc: "FreeBSD Questions" 
Sent: Friday, February 09, 2007 9:57 AM
Subject: Re: Low-cost dedicated FreeBSD server or non-jail VPS?
>
> Maybe that's an option for you, but I'm looking at spending a minimum of
> another $60 every month to my ISP if I want those services.  I haven't
> been sufficiently impressed to feel that they warrant that extra fee.
>

Maybe they haven't significantly impressed you because you bought the
cheap service?

Hell - $60 compared to a colo feel of $50?  (the cheapest I've seen
someone post here)  In other words, you have a choice between
actually having the physical box right there, vs having it 1000 miles
away, and your in a -learning- situation?  And your going to cut off your
nose to spite your face just because of some issue with your ISP?
What are they currently doing to you to warrant that?

Without knowing your connectivity and how good/reliable/bad it is it's
difficult to make a judgement call.  But, I can say from experience that
there isn't any -TECHNICAL- reason that cheaper DSL or cable
connectivity can't be made as reliable as, say, a T1.

There's not many places in the United
States that you can't find multiple competing broadband providers.  It's
a lot different overseas, but here in the US if you don't like your ISP
there's
usually another one around the corner.

Ted

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


Re: cvsup tag for ports

2007-02-10 Thread Andrew Pantyukhin

On 2/11/07, Michael <[EMAIL PROTECTED]> wrote:

Now getting back to my original question, if you
are running a production server, does it make sense to pull down ports
which are under the -CURRENT tag=. or should anyone who's running a
production server just stick with what's in the current release ports?
Would I benefit more from pulling down the most current ports because it
offers the most up to date packages?

If neither is safer than I think it's probably ok to just continue to
pull down the most current, if that's not true than I should probably
just use the ports which came with the release.  This is what I'd like
people's comments on more than anything else.

Thanks for your feedback I really appreciate it.


There are many different approaches to safety (as in
reliability and security).

There's being absolutely reactive, that is never do
anything until something disastrous happens. Don't
touch your servers until they're full of dirt, cobweb,
trojans, viruses, etc., and actually go down.

There's being absolutely proactive, that is take an
active part in the communities around the software
you use, stay up-to-date on current issues and keep
your boxes fresh with new releases.

Most admins are somewhere in between, you'll have to
choose where to dwell for yourself based on the time
and enthusiasm you have.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: cvsup tag for ports

2007-02-10 Thread Michael

Erik Trulsson wrote:

On Sat, Feb 10, 2007 at 03:41:58PM -0800, Michael wrote:
  

Erik Trulsson wrote:


On Sat, Feb 10, 2007 at 02:06:37PM -0800, Michael wrote:
 
  

Hello everyone,

I'm building a production server and I have what may seem to be a very 
simple question so I hope it only requires a simple answer.


As I've studied the FreeBSD Handbook as well as the man pages for this, 
it's still not clear to me which tag I should use for a production server.


For my sources I always use the security branch for the release we are 
using so that they stay stable and also plug most of the security issues 
as they arise and so the sources tag is always RELENG_6_2.


For the ports, the default tag is always tag=. which I'm not sure is the 
best thing for a production server since that's the tab for -CURRENT.  
On one hand it makes sense to track that branch for ports because that's 
where fixes would go for applications as they find them, but I'm not 
convinced this is the best thing for a production server and wonder if I 
should also use the security branch for the ports.


My first question is, does any real security fixes go into the ports 
when you pull from a security branch?  In other words, do maintainers 
actually submit fixes to that branch for the ports?


I have a similiar question for the docs as well, should we be tracking 
only the security branch when using cvsup for sources, ports and doc's?
   


Neither the ports tree nor the docs tree is branched.  I.e. there is no
security branch for ports.  
On the other hand you are not required to update installed ports/packages

just because you update the ports tree.


 
  
What do you mean they aren't branched?  Of course they are or they 
wouldn't be in cvs and if I changed the tag, it wouldn't do anything 
(they wouldn't change on running cvsup), but they do change (ports get 
deleted/added/edited.), so I'm not following you here.


Can you elaborate on what you mean?



What I mean is that the ports tree only has a single CVS branch, HEAD, which
is what you get with tag=.
There are no other branches. (Unlike the src/ tree which does have several
different branches in addition to HEAD.)
There are tags (like RELEASE_6_2_0 or RELEASE_5_2_1) that identify the ports
tree at some specific point in time.
If you update the ports tree with e.g. tag=RELEASE_6_2_0 you will get the
ports tree in the same state as was shipped with FreeBSD 6.2-RELEASE.
If you use the same tag a couple of months later you will get exactly the
same thing - the ports tree as was shipped with FreeBSD 6.2-RELEASE.

If you want to get updates to the ports tree you will have to use tag=. or
wait until a new release has been made and use the tag corresponding to that
particular release.


  
OK, that makes sense.  Now getting back to my original question, if you 
are running a production server, does it make sense to pull down ports 
which are under the -CURRENT tag=. or should anyone who's running a 
production server just stick with what's in the current release ports?  
Would I benefit more from pulling down the most current ports because it 
offers the most up to date packages? 

If neither is safer than I think it's probably ok to just continue to 
pull down the most current, if that's not true than I should probably 
just use the ports which came with the release.  This is what I'd like 
people's comments on more than anything else.


Thanks for your feedback I really appreciate it.

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


newb questions about RAID, sil3112

2007-02-10 Thread Jason Corkum


I'm running 6.2-RELEASE on an ASUS A7N8X-E Deluxe motherboard. It has the
Silicon Image sil3112 RAID chip on it driving two SATA drives. After much
searching, it seems that it's fake RAID is not supported. No problem,
but dmesg sees it and it's status:

ad4: 305245MB  at ata2-master SATA150
ad6: 305245MB  at ata3-master SATA150
ar0: WARNING - mirror protection lost. RAID1 array in DEGRADED mode
ar0: 305244MB  status: DEGRADED
ar0: disk0 DOWN no device found for this subdisk
ar0: disk1 READY (mirror) using ad6 at ata3-master


So,

- Is this warning just a part of a not-completely supported chip? (ie
only the status of ar0 can be determined?) 


- If yes, then the warning/status msgs should be ignored until a real
mirroring solution is put in place?

- Is there any problem with the basic SATA functionality of the chip? It's
listed as supported in the ata manpage, but Soren Schmidt seems to
dislike it quite a bit.

- And to mirror the two drives then, should I be looking at Gmirror?
Something else?


TIA for all help.


-Jason


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


Re: phpMyAdmin httpd segmentation fault

2007-02-10 Thread Spil Oss

So much for that fix, no luck at all. :'(



On 11/02/07, Spil Oss <[EMAIL PROTECTED]> wrote:

Maybe things will work after all :D


Port count: 16514 http://www.FreshPorts.org/categories.php
 New ports: 5 http://www.FreshPorts.org/ports-new.php?interval=today

www/eaccelerator
 Fix for PHP 5.2.x.

 PR: ports/109012
 Submitted by:   Martin Matuska <[EMAIL PROTECTED]>
 Obtained from:  eaccelerator SVN
 10 Feb 2007 - ale
 http://www.freshports.org/www/eaccelerator/

Kind regards,

Spil

On 11/02/07, Spil Oss <[EMAIL PROTECTED]> wrote:
> Sorry for that
>
> Just tried phpMyAdmin here, and all I get is a blank page :'(
> Apache doesn't segfault though :D (on the bright side)
>
> Cheers,
>
> Spil
>
> On 10/02/07, Terry Todd <[EMAIL PROTECTED]> wrote:
> >
> >
> > Spil,
> >
> > Thanks for the pointers.  I tried reordering extensions.ini and
> > even cutting it down to a minimul set and then down to just session
> > and mysql and it still segfaults apache whenever I try to browse
> > to phpMyAdmin/index.php.
> >
> > On both of these systems that I have built I did build most all of
> > the php extensions figuring I would need them at some time or other
> > later on.  Both systems are very vanilla out of the box 6.2 and
> > ports setups.
> >
> > I do have INET6 compiled in the way it comes out of the box for 6.2
> > and ports.
> >
> > Terry Todd
> >
> >
> > On Sat, Feb 10, 2007 at 08:04:26PM +0100, Spil Oss wrote:
> > > Hi Terry,
> > >
> > > Had a segfaulting apache-2.2.3 w/ php 5.2.0 before after upgrading
> > > 5.1.6_3 to 5.2.0. mail/roundcube would segfault on login.
> > > My problem was that I had NO_INET6 in my kernel, but no WITHOUT_IPV6
> > > for my ports. Solved segfaulting apache and connection-probs in
> > > bitlbee.
> > >
> > > Furthermore, I am told that the order in which the php-extensions load
> > > is essential, see e.g.
> > > http://www.pingle.org/2006/10/18/php-crashes-extensions/,
> > > http://nl2.php.net/manual/en/ref.recode.php (empty),
> > > http://www.php.net/manual/en/ref.mysql.php
> > >
> > > Currently I'm stuck again, with apache 2.2.4, php 5.2.1 and
> > > mail/roundcube webmail after upgrading php from 5.2.0 to 5.2.1 :'(
> > >
> > > Earlier, a debug build of php did not exhibit problems for me (nice if
> > > you wanna nail down the bug). Hope this all brings you any further in
> > > solving your probs
> > >
> > > Kind regards,
> > >
> > > Spil
> > > On 10/02/07, Terry Todd <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > >
> > > > I started from scratch and built a completely new system by installing
> > > > from CD's on a different computer and it does the exact same thing
> > > > in the exact same place.  At this point I'm a little surprised that
> > > > no one else has run across this.
> > > >
> > > > Terry Todd
> > > >
> > > >
> > > > On Tue, Feb 06, 2007 at 08:42:30AM -0600, Terry Todd wrote:
> > > > > On Tue, Feb 06, 2007 at 07:14:02AM +, Matthew Seaman wrote:
> > > > > > Terry Todd wrote:
> > > > > > > On Mon, Feb 05, 2007 at 07:07:25AM -0800, Garrett Cooper wrote:
> > > > > > >> Terry Todd wrote:
> > > > > > >>> On Sun, Feb 04, 2007 at 09:36:58AM +, Matthew Seaman wrote:
> > > > > >  Terry Todd wrote:
> > > > > > > I installed FreeBSD 6.2-RELEASE, php-5.1.6_3, 
php5-extensions-1.0,
> > >
> > > > > > > mysql-5.0.27 and apache_1.3.37_1.
> > > > > > >
> > > > > > > php -i now works Ok after I moved recode.so to the top of the 
list
> > > > > > > of extensions in extensions.ini.  It took a while to figure 
that
> > > > > > > one out.  Before that php -i would seg fault and core dump.  
It
> > > > > > > took some google searching and using gdb on the core file to 
fix
> > > > > > > it.
> > > > > > >
> > > > > > > A test web page for phpinfo works fine too.  Mysql works OK 
from
> > > > > > > the command line.
> > > > > > >
> > > > > > > However I can't get phpMyAdmin to work.  It seg faults in 
reading
> > > > > > > /usr/local/www/phpMyAdmin/libraries/url_generating.lib.php
> > > > > > > There is no core dump produced.
> > > > > >  Hmmm... very strange.  We have just built a RELENG_6_2 server 
with
> > > > > >  apache13-ssl, php5 and phpMyAdmin and no such problems are 
apparent.
> > > > > > 
> > > > > >  Did you modify the CFLAGS or otherwise change the level of
> > > > > >  optimization used by the compiler?
> > > > > > >>> No CFLAGS were changed or anything else.  It's a very standard 
install.
> > > > > > >>>
> > > > > > > I ran ktrace httpd -X
> > > > > > >
> > > > > > > Then when I try to open the phpMyAdmin/index.php page in a 
browser
> > > > > > > httpd seg faults.
> > > > > > >
> > > > > > > Here is the tail of kdump from the ktrace.out from the above 
ktrace.
> > > > > > >
> > > > > > > 
> > > > > > >   1372 httpdCALL  gettimeofday(0xbfbf7158,0)
> > > > > > >   1372 httpdRET   gettimeofday 0
> > > > > > >>

Re: Bad sector on drive ...

2007-02-10 Thread Ted Mittelstaedt

If your going to continue to use the disk at least turn on S.M.A.R.T. in the
BIOS (if it's not
on already) and load one of the S.M.A.R.T.-aware tools in the ports
directories (like smartmontools)
to keep an eye on it.  I still think though that it's just a matter of time
before you have more
problems.  Disks are so cheap I can't understand why anyone would want to
try nursing
one along that's going bad these days.

Ted

- Original Message - 
From: "Marc G. Fournier" <[EMAIL PROTECTED]>
To: "John Nielsen" <[EMAIL PROTECTED]>; 
Cc: "Marc G. Fournier" <[EMAIL PROTECTED]>; "Dan Nelson"
<[EMAIL PROTECTED]>
Sent: Saturday, February 10, 2007 3:17 PM
Subject: Re: Bad sector on drive ...


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> Didn't work, ended up newfs'ng the file system, since the data on the
drive is
> recreatable, and seems to have worked fine ...
>
> the error I was getting was when fsck'ng, so suspect that a file got
written
> over top of the bad sector and was causng the problem ...
>
> - --On Saturday, February 10, 2007 11:05:35 -0500 John Nielsen
> <[EMAIL PROTECTED]> wrote:
>
> > On Saturday 10 February 2007 09:47, Marc G. Fournier wrote:
> >> --On Saturday, February 10, 2007 01:00:21 -0600 Dan Nelson
> >>
> >> <[EMAIL PROTECTED]> wrote:
> >> > In the last episode (Feb 10), Marc G. Fournier said:
> >> >> Short of a reformat, any way of marking the following as bad? :(
> >> >>
> >> >> Feb 10 02:27:20 ganymede kernel: ad4: FAILURE - READ_DMA
> >> >> status=51 error=40 LBA=176887263 Feb
> >> >> 10 02:27:25 ganymede kernel: ad4: TIMEOUT - READ_DMA retrying (1
retry
> >> >>  left) LBA=176887324 Feb 10 02:27:30 ganymede kernel: ad4: TIMEOUT -
> >> >> READ_DMA retrying (0 retries  left) LBA=176887324 Feb 10 02:27:35
> >> >> ganymede kernel: ad4: FAILURE - READ_DMA timed out LBA=176887324
> >> >
> >> > Try writing to the block causing the error, using dd and the seek=
> >> > option; if the write succeeds, you're done (and the drive will have
> >> > either reused the block or reassigned it to a spare). 176887324 If it
> >> > doesn't succeed, copy what you can off the drive and toss it, since
all
> >> > its spares are used up.
> >> >
> >> > I think LBA numbers map directly to seek= values assuming you keep
> >> > bs=512 and access /dev/ad4 .  I'd try reading the bad block with dd
to
> >> > verify it's the right one before doing a write, though.
> >>
> >> 'k, how do you use dd to write to a specific sector?
> >>
> >> dd of=/dev/ad4 seek=176887324 bs=512 if=/dev/null
> >
> > dd of=/dev/ad4 seek=176887324 bs=512 count=1 if=/dev/zero
> >
> > JN
> >
>
>
>
> - 
> Marc G. Fournier   Hub.Org Networking Services
(http://www.hub.org)
> Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
> Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.5 (FreeBSD)
>
> iD8DBQFFzlJ14QvfyHIvDvMRAicNAJ9Fvx3B7p8ibsne3lV+HSd6rnkLEwCgmKBz
> IsS5cm2DUlwcC3fKbnyiT9c=
> =G+Wn
> -END PGP SIGNATURE-
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>

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


Re: Bad sector on drive ...

2007-02-10 Thread Ted Mittelstaedt
no, not even with a reformat.

you MIGHT get something with the manufacturers "re-format" tools but keep in
mind
that the way that these tools work is they simply wipe out the "grown
defects" list in
the disk drive, then re-test all of the defect areas that had been listed in
the grown defect
list, any that test out bad get added back into the list.

IDE/ATA/SATA drives all auto-remap bad sectors on the fly to a set of
"spare" sectors
in a special area of the disk.  What you have going on is a drive with an
increasing number
of bad sectors, to the point that it has used up all of it's spares and the
auto-remap can't
work anymore, so now the drive is starting to report the sectors bad.

What a wise person does in this scenario is go buy a new disk, and "dd" the
contents of the
old disk to the new disk.  What the unwise person does is continue to screw
around with
the old disk, trying various things, until one day the entire works crashes
and cannot be
recovered.

Ted Mittelstaedt

- Original Message - 
From: "Marc G. Fournier" <[EMAIL PROTECTED]>
To: 
Sent: Friday, February 09, 2007 10:45 PM
Subject: Bad sector on drive ...


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> Short of a reformat, any way of marking the following as bad? :(
>
> Feb 10 02:27:20 ganymede kernel: ad4: FAILURE - READ_DMA
> status=51 error=40 LBA=176887263
> Feb 10 02:27:25 ganymede kernel: ad4: TIMEOUT - READ_DMA retrying (1 retry
> left) LBA=176887324
> Feb 10 02:27:30 ganymede kernel: ad4: TIMEOUT - READ_DMA retrying (0
retries
> left) LBA=176887324
> Feb 10 02:27:35 ganymede kernel: ad4: FAILURE - READ_DMA timed out
LBA=176887324
>
>
> - 
> Marc G. Fournier   Hub.Org Networking Services
(http://www.hub.org)
> Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
> Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.5 (FreeBSD)
>
> iD8DBQFFzWoG4QvfyHIvDvMRAmJ6AKDh1PP4WuoW4xh7ZFlZ6lQOHc9uxgCbBsaW
> E00joed8d7Ij7w1P/qZKUqg=
> =lr6d
> -END PGP SIGNATURE-
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>

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


Re: cvsup tag for ports

2007-02-10 Thread Erik Trulsson
On Sat, Feb 10, 2007 at 03:41:58PM -0800, Michael wrote:
> Erik Trulsson wrote:
> >On Sat, Feb 10, 2007 at 02:06:37PM -0800, Michael wrote:
> >  
> >>Hello everyone,
> >>
> >>I'm building a production server and I have what may seem to be a very 
> >>simple question so I hope it only requires a simple answer.
> >>
> >>As I've studied the FreeBSD Handbook as well as the man pages for this, 
> >>it's still not clear to me which tag I should use for a production server.
> >>
> >>For my sources I always use the security branch for the release we are 
> >>using so that they stay stable and also plug most of the security issues 
> >>as they arise and so the sources tag is always RELENG_6_2.
> >>
> >>For the ports, the default tag is always tag=. which I'm not sure is the 
> >>best thing for a production server since that's the tab for -CURRENT.  
> >>On one hand it makes sense to track that branch for ports because that's 
> >>where fixes would go for applications as they find them, but I'm not 
> >>convinced this is the best thing for a production server and wonder if I 
> >>should also use the security branch for the ports.
> >>
> >>My first question is, does any real security fixes go into the ports 
> >>when you pull from a security branch?  In other words, do maintainers 
> >>actually submit fixes to that branch for the ports?
> >>
> >>I have a similiar question for the docs as well, should we be tracking 
> >>only the security branch when using cvsup for sources, ports and doc's?
> >>
> >
> >Neither the ports tree nor the docs tree is branched.  I.e. there is no
> >security branch for ports.  
> >On the other hand you are not required to update installed ports/packages
> >just because you update the ports tree.
> >
> >
> >  
> What do you mean they aren't branched?  Of course they are or they 
> wouldn't be in cvs and if I changed the tag, it wouldn't do anything 
> (they wouldn't change on running cvsup), but they do change (ports get 
> deleted/added/edited.), so I'm not following you here.
> 
> Can you elaborate on what you mean?

What I mean is that the ports tree only has a single CVS branch, HEAD, which
is what you get with tag=.
There are no other branches. (Unlike the src/ tree which does have several
different branches in addition to HEAD.)
There are tags (like RELEASE_6_2_0 or RELEASE_5_2_1) that identify the ports
tree at some specific point in time.
If you update the ports tree with e.g. tag=RELEASE_6_2_0 you will get the
ports tree in the same state as was shipped with FreeBSD 6.2-RELEASE.
If you use the same tag a couple of months later you will get exactly the
same thing - the ports tree as was shipped with FreeBSD 6.2-RELEASE.

If you want to get updates to the ports tree you will have to use tag=. or
wait until a new release has been made and use the tag corresponding to that
particular release.


-- 

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


Re: cvsup tag for ports

2007-02-10 Thread Andrew Pantyukhin

On 2/11/07, Michael <[EMAIL PROTECTED]> wrote:

Erik Trulsson wrote:
> On Sat, Feb 10, 2007 at 02:06:37PM -0800, Michael wrote:
>
>> Hello everyone,
>>
>> I'm building a production server and I have what may seem to be a very
>> simple question so I hope it only requires a simple answer.
>>
>> As I've studied the FreeBSD Handbook as well as the man pages for this,
>> it's still not clear to me which tag I should use for a production server.
>>
>> For my sources I always use the security branch for the release we are
>> using so that they stay stable and also plug most of the security issues
>> as they arise and so the sources tag is always RELENG_6_2.
>>
>> For the ports, the default tag is always tag=. which I'm not sure is the
>> best thing for a production server since that's the tab for -CURRENT.
>> On one hand it makes sense to track that branch for ports because that's
>> where fixes would go for applications as they find them, but I'm not
>> convinced this is the best thing for a production server and wonder if I
>> should also use the security branch for the ports.
>>
>> My first question is, does any real security fixes go into the ports
>> when you pull from a security branch?  In other words, do maintainers
>> actually submit fixes to that branch for the ports?
>>
>> I have a similiar question for the docs as well, should we be tracking
>> only the security branch when using cvsup for sources, ports and doc's?
>>
>
> Neither the ports tree nor the docs tree is branched.  I.e. there is no
> security branch for ports.
> On the other hand you are not required to update installed ports/packages
> just because you update the ports tree.
>
>
>
What do you mean they aren't branched?  Of course they are or they
wouldn't be in cvs and if I changed the tag, it wouldn't do anything
(they wouldn't change on running cvsup), but they do change (ports get
deleted/added/edited.), so I'm not following you here.

Can you elaborate on what you mean?


They are not branched, but just tagged. Tags may slip
a bit while a release is being prepared, but after we
ship it, the doc/ports tags are frozen no matter what
happens in the world of 3d-party software.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: cvsup tag for ports

2007-02-10 Thread Michael

Erik Trulsson wrote:

On Sat, Feb 10, 2007 at 02:06:37PM -0800, Michael wrote:
  

Hello everyone,

I'm building a production server and I have what may seem to be a very 
simple question so I hope it only requires a simple answer.


As I've studied the FreeBSD Handbook as well as the man pages for this, 
it's still not clear to me which tag I should use for a production server.


For my sources I always use the security branch for the release we are 
using so that they stay stable and also plug most of the security issues 
as they arise and so the sources tag is always RELENG_6_2.


For the ports, the default tag is always tag=. which I'm not sure is the 
best thing for a production server since that's the tab for -CURRENT.  
On one hand it makes sense to track that branch for ports because that's 
where fixes would go for applications as they find them, but I'm not 
convinced this is the best thing for a production server and wonder if I 
should also use the security branch for the ports.


My first question is, does any real security fixes go into the ports 
when you pull from a security branch?  In other words, do maintainers 
actually submit fixes to that branch for the ports?


I have a similiar question for the docs as well, should we be tracking 
only the security branch when using cvsup for sources, ports and doc's?



Neither the ports tree nor the docs tree is branched.  I.e. there is no
security branch for ports.  
On the other hand you are not required to update installed ports/packages

just because you update the ports tree.


  
What do you mean they aren't branched?  Of course they are or they 
wouldn't be in cvs and if I changed the tag, it wouldn't do anything 
(they wouldn't change on running cvsup), but they do change (ports get 
deleted/added/edited.), so I'm not following you here.


Can you elaborate on what you mean?

Thanks,

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


Re: Bad sector on drive ...

2007-02-10 Thread Marc G. Fournier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Didn't work, ended up newfs'ng the file system, since the data on the drive is 
recreatable, and seems to have worked fine ...

the error I was getting was when fsck'ng, so suspect that a file got written 
over top of the bad sector and was causng the problem ...

- --On Saturday, February 10, 2007 11:05:35 -0500 John Nielsen 
<[EMAIL PROTECTED]> wrote:

> On Saturday 10 February 2007 09:47, Marc G. Fournier wrote:
>> --On Saturday, February 10, 2007 01:00:21 -0600 Dan Nelson
>>
>> <[EMAIL PROTECTED]> wrote:
>> > In the last episode (Feb 10), Marc G. Fournier said:
>> >> Short of a reformat, any way of marking the following as bad? :(
>> >>
>> >> Feb 10 02:27:20 ganymede kernel: ad4: FAILURE - READ_DMA
>> >> status=51 error=40 LBA=176887263 Feb
>> >> 10 02:27:25 ganymede kernel: ad4: TIMEOUT - READ_DMA retrying (1 retry
>> >>  left) LBA=176887324 Feb 10 02:27:30 ganymede kernel: ad4: TIMEOUT -
>> >> READ_DMA retrying (0 retries  left) LBA=176887324 Feb 10 02:27:35
>> >> ganymede kernel: ad4: FAILURE - READ_DMA timed out LBA=176887324
>> >
>> > Try writing to the block causing the error, using dd and the seek=
>> > option; if the write succeeds, you're done (and the drive will have
>> > either reused the block or reassigned it to a spare). 176887324 If it
>> > doesn't succeed, copy what you can off the drive and toss it, since all
>> > its spares are used up.
>> >
>> > I think LBA numbers map directly to seek= values assuming you keep
>> > bs=512 and access /dev/ad4 .  I'd try reading the bad block with dd to
>> > verify it's the right one before doing a write, though.
>>
>> 'k, how do you use dd to write to a specific sector?
>>
>>  dd of=/dev/ad4 seek=176887324 bs=512 if=/dev/null
>
> dd of=/dev/ad4 seek=176887324 bs=512 count=1 if=/dev/zero
>
> JN
>



- 
Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFzlJ14QvfyHIvDvMRAicNAJ9Fvx3B7p8ibsne3lV+HSd6rnkLEwCgmKBz
IsS5cm2DUlwcC3fKbnyiT9c=
=G+Wn
-END PGP SIGNATURE-

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


Re: cvsup tag for ports

2007-02-10 Thread Erik Trulsson
On Sat, Feb 10, 2007 at 02:06:37PM -0800, Michael wrote:
> Hello everyone,
> 
> I'm building a production server and I have what may seem to be a very 
> simple question so I hope it only requires a simple answer.
> 
> As I've studied the FreeBSD Handbook as well as the man pages for this, 
> it's still not clear to me which tag I should use for a production server.
> 
> For my sources I always use the security branch for the release we are 
> using so that they stay stable and also plug most of the security issues 
> as they arise and so the sources tag is always RELENG_6_2.
> 
> For the ports, the default tag is always tag=. which I'm not sure is the 
> best thing for a production server since that's the tab for -CURRENT.  
> On one hand it makes sense to track that branch for ports because that's 
> where fixes would go for applications as they find them, but I'm not 
> convinced this is the best thing for a production server and wonder if I 
> should also use the security branch for the ports.
> 
> My first question is, does any real security fixes go into the ports 
> when you pull from a security branch?  In other words, do maintainers 
> actually submit fixes to that branch for the ports?
> 
> I have a similiar question for the docs as well, should we be tracking 
> only the security branch when using cvsup for sources, ports and doc's?

Neither the ports tree nor the docs tree is branched.  I.e. there is no
security branch for ports.  
On the other hand you are not required to update installed ports/packages
just because you update the ports tree.


-- 

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


Re: phpMyAdmin httpd segmentation fault

2007-02-10 Thread Terry Todd


Spil,

Thanks for the pointers.  I tried reordering extensions.ini and
even cutting it down to a minimul set and then down to just session
and mysql and it still segfaults apache whenever I try to browse
to phpMyAdmin/index.php.

On both of these systems that I have built I did build most all of
the php extensions figuring I would need them at some time or other
later on.  Both systems are very vanilla out of the box 6.2 and
ports setups.

I do have INET6 compiled in the way it comes out of the box for 6.2
and ports.

Terry Todd


On Sat, Feb 10, 2007 at 08:04:26PM +0100, Spil Oss wrote:
> Hi Terry,
> 
> Had a segfaulting apache-2.2.3 w/ php 5.2.0 before after upgrading
> 5.1.6_3 to 5.2.0. mail/roundcube would segfault on login.
> My problem was that I had NO_INET6 in my kernel, but no WITHOUT_IPV6
> for my ports. Solved segfaulting apache and connection-probs in
> bitlbee.
> 
> Furthermore, I am told that the order in which the php-extensions load
> is essential, see e.g.
> http://www.pingle.org/2006/10/18/php-crashes-extensions/,
> http://nl2.php.net/manual/en/ref.recode.php (empty),
> http://www.php.net/manual/en/ref.mysql.php
> 
> Currently I'm stuck again, with apache 2.2.4, php 5.2.1 and
> mail/roundcube webmail after upgrading php from 5.2.0 to 5.2.1 :'(
> 
> Earlier, a debug build of php did not exhibit problems for me (nice if
> you wanna nail down the bug). Hope this all brings you any further in
> solving your probs
> 
> Kind regards,
> 
> Spil
> On 10/02/07, Terry Todd <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > I started from scratch and built a completely new system by installing
> > from CD's on a different computer and it does the exact same thing
> > in the exact same place.  At this point I'm a little surprised that
> > no one else has run across this.
> >
> > Terry Todd
> >
> >
> > On Tue, Feb 06, 2007 at 08:42:30AM -0600, Terry Todd wrote:
> > > On Tue, Feb 06, 2007 at 07:14:02AM +, Matthew Seaman wrote:
> > > > Terry Todd wrote:
> > > > > On Mon, Feb 05, 2007 at 07:07:25AM -0800, Garrett Cooper wrote:
> > > > >> Terry Todd wrote:
> > > > >>> On Sun, Feb 04, 2007 at 09:36:58AM +, Matthew Seaman wrote:
> > > >  Terry Todd wrote:
> > > > > I installed FreeBSD 6.2-RELEASE, php-5.1.6_3, php5-extensions-1.0,
> 
> > > > > mysql-5.0.27 and apache_1.3.37_1.
> > > > >
> > > > > php -i now works Ok after I moved recode.so to the top of the list
> > > > > of extensions in extensions.ini.  It took a while to figure that
> > > > > one out.  Before that php -i would seg fault and core dump.  It
> > > > > took some google searching and using gdb on the core file to fix
> > > > > it.
> > > > >
> > > > > A test web page for phpinfo works fine too.  Mysql works OK from
> > > > > the command line.
> > > > >
> > > > > However I can't get phpMyAdmin to work.  It seg faults in reading
> > > > > /usr/local/www/phpMyAdmin/libraries/url_generating.lib.php
> > > > > There is no core dump produced.
> > > >  Hmmm... very strange.  We have just built a RELENG_6_2 server with
> > > >  apache13-ssl, php5 and phpMyAdmin and no such problems are 
> > > >  apparent.
> > > > 
> > > >  Did you modify the CFLAGS or otherwise change the level of
> > > >  optimization used by the compiler?
> > > > >>> No CFLAGS were changed or anything else.  It's a very standard 
> > > > >>> install.
> > > > >>>
> > > > > I ran ktrace httpd -X
> > > > >
> > > > > Then when I try to open the phpMyAdmin/index.php page in a browser
> > > > > httpd seg faults.
> > > > >
> > > > > Here is the tail of kdump from the ktrace.out from the above 
> > > > > ktrace.
> > > > >
> > > > > 
> > > > >   1372 httpdCALL  gettimeofday(0xbfbf7158,0)
> > > > >   1372 httpdRET   gettimeofday 0
> > > > >   1372 httpdCALL  lstat(0xbfbf75b0,0xbfbf70f0)
> > > > >   1372 httpdNAMI  "/usr"
> > > > >   1372 httpdRET   lstat 0
> > > > >   1372 httpdCALL  lstat(0xbfbf75b0,0xbfbf70f0)
> > > > >   1372 httpdNAMI  "/usr/local"
> > > > >   1372 httpdRET   lstat 0
> > > > >   1372 httpdCALL  lstat(0xbfbf75b0,0xbfbf70f0)
> > > > >   1372 httpdNAMI  "/usr/local/www"
> > > > >   1372 httpdRET   lstat 0
> > > > >   1372 httpdCALL  lstat(0xbfbf75b0,0xbfbf70f0)
> > > > >   1372 httpdNAMI  "/usr/local/www/phpMyAdmin"
> > > > >   1372 httpdRET   lstat 0
> > > > >   1372 httpdCALL  lstat(0xbfbf75b0,0xbfbf70f0)
> > > > >   1372 httpdNAMI  "/usr/local/www/phpMyAdmin/libraries"
> > > > >   1372 httpdRET   lstat 0
> > > > >   1372 httpdCALL  lstat(0xbfbf75b0,0xbfbf70f0)
> > > > >   1372 httpdNAMI  
> > > > > "/usr/local/www/phpMyAdmin/libraries/url_generating.lib.php"
> > > > >   1372 httpdRET   lstat 0
> > > > >   1372 httpdCALL  open(0x845eda8,0,0x1b6)
> > > > >   1372 httpd  

cvsup tag for ports

2007-02-10 Thread Michael

Hello everyone,

I'm building a production server and I have what may seem to be a very 
simple question so I hope it only requires a simple answer.


As I've studied the FreeBSD Handbook as well as the man pages for this, 
it's still not clear to me which tag I should use for a production server.


For my sources I always use the security branch for the release we are 
using so that they stay stable and also plug most of the security issues 
as they arise and so the sources tag is always RELENG_6_2.


For the ports, the default tag is always tag=. which I'm not sure is the 
best thing for a production server since that's the tab for -CURRENT.  
On one hand it makes sense to track that branch for ports because that's 
where fixes would go for applications as they find them, but I'm not 
convinced this is the best thing for a production server and wonder if I 
should also use the security branch for the ports.


My first question is, does any real security fixes go into the ports 
when you pull from a security branch?  In other words, do maintainers 
actually submit fixes to that branch for the ports?


I have a similiar question for the docs as well, should we be tracking 
only the security branch when using cvsup for sources, ports and doc's?


I'd appreciate any and all feedback on this issue.

Thank you for your replies in advance,

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


Tuning Question

2007-02-10 Thread Cy Schubert
I have a question about tuning FreeBSD systems, specifically in regard to 
memory. At one time on Solaris systems it was recommended to keep scan rate 
below 200 pages per second. (Today it's 300 pages per second, dependent on 
the amount of memory, class of system.) Are there any recommendations or 
rules of thumb a person can use to determine when a memory upgrade is 
required? My machines are only busy during port builds when the scan rate 
can vary greatly and the page out rate could reach as high as two pages per 
second during brief periods. What kind of memory and paging metrics should 
I use on FreeBSD systems?


-- 
Cheers,
Cy Schubert <[EMAIL PROTECTED]>
FreeBSD UNIX:  <[EMAIL PROTECTED]>   Web:  http://www.FreeBSD.org

e**(i*pi)+1=0


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


CD/DVD Catalog

2007-02-10 Thread Rico Secada
Hi

Anyone who can recommend a good CD/DVD catalog program? 

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


Re: backup solution

2007-02-10 Thread Chuck Swiger

Dino Vliet wrote:
[ ... ]

Then I will install freebsd on the first disk and will
use the two spare IDE-disks on the same cable as a
geom-mirror. 


I will use the system then as a central node with
rsync to do daily backups of my main data that is
scattered around on different desktops on my lan.

Does anyone have tips regarding this kind of
installation?


Please be aware that the ATA implementation of the VIA EPIA chipset isn't the 
greatest, especially when both are active at the same time.  I've seen drive 
performance drop towards 5MB/s for WDC600/WDC800/WDC1200-grade drives which 
normally run at 40MB/s if you do something on the other channel as well.



Do I also need a specialised tool like bacula for the
way I want to use it?


If you just want to have a hot-standby for a bunch of files, using rsync is 
fine.  Using fancier backup schemes tends to make sense when using 
external/replaceable media like tapes or I suppose CD-R/DVD-R, rather than 
just with a plain set of disks.


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


Re: backup solution

2007-02-10 Thread Apatewna

O/H Dino Vliet έγραψε:

Hi peeps,

I'm busy preparing my via c3 system to utilize it as a
backup file server.

...snip


I will use the system then as a central node with
rsync to do daily backups of my main data that is
scattered around on different desktops on my lan.



Are those desktops using windows only? If yes then you could enable 
samba on your backup server and map network drives for everyone to use 
as backup.


Don't forget to enable SWAT in /etc/inetd.conf, it will help a lot in 
configuration.


--
RTFM and STFW before anything bad happens
-
Thanasis Rizoulis
Electronic Computing Systems Engineer
Larissa, Greece
Linux User #358384
FreeBSD/PCBSD user
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Portsnap and port versions

2007-02-10 Thread Apatewna

O/H Robert Inder έγραψε:


when it had finished, I cd'd to the directory for "portupgrade", and
typed "make" and "make install".  Everything seemed to go smoothly, and
portupgrade-2.1.3.3_1,2 was duly installed.


During installation of portupgrade there is a choice between "new 2.x 
version of cdb backend"

and "old 1.85 cdb". The "new" is checked by default.

Could it be that you chose the "new backend" instead of the "old"? I 
always choose the old format ONLY.
I run into some similar problems that I haven't found the time to 
resolve yet.


--
RTFM and STFW before anything bad happens
-
Thanasis Rizoulis
Electronic Computing Systems Engineer
Larissa, Greece
Linux User #358384
FreeBSD/PCBSD user
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Slimtype DVDRW SOSW-833S VRS2

2007-02-10 Thread Olivier Regnier

Hello,

I just joined the list so i hope this is the correct list for this type 
of problem. I installed on my laptop Acer Aspire 3000 from a DOS 
partition because i can't use my cdrom. When i boot from cdrom i get a 
various messages that says :


acd0: FAILURE - TEST_UNIT_READY timed out
acd0: FAILURE - PREVENT_ALLOW timed out
acd0: FAILURE - TEST_UNIT_READY timed out
acd0: FAILURE - TEST_UNIT_READY timed out

or :

acd0: WARNING - TEST_UNIT_READY taskqueue timeout - completing request directly
acd0: WARNING - TEST_UNIT_READY freeing taskqueue zombie request
acd0: WARNING - PREVENT_ALLOW taskqueue timeout - completing request directly
acd0: WARNING - PREVENT_ALLOW freeing taskqueue zombie request

For information, my dvd burner is a Slimtype DVDRW SOSW-833S VRS2.

After my installation, i decided to test with atapicam driver my dvd 
burner.


Relevant output of cdrecord -scanbus

scsibus1:
1,0,0 100) 'Slimtype' 'DVDRW SOSW-833S' 'VRS2' Removable CD-ROM

I have an ATAPI CD burner then i used burncd command to burn an ISO 
image onto a CD :

burncd -f /dev/acd0 -e data 6.2-RELEASE-I386-bootonly.iso

and i get an error that says :

next writeable LBA 311
writing from file 6.2-RELEASE-I386-bootonly.iso size 24848 KB

Input/output error

What do you think about my problems ? For the moment, i can't install 
correctly FreeBSD from cdrom, i can't listen to music from cdrom, i 
can't burn cd/dvd.


Thank you.

--
Cheers,
Olivier Regnier

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


Re: export command not found?

2007-02-10 Thread Garrett Cooper

Matthew Seaman wrote:

Roger Olofsson wrote:

Dear Mailing List,

6.2-STABLE FreeBSD just made world.

# export VARIABLE value
export: Command not found.


What happened to export?

Grateful for any answer!


/bin/sh is not bash on FreeBSD.  IF you're using /bin/sh, then you
need to assign and export values as separate operations:

   FOO=bar
   export FOO

Also, root's shell is not /bin/sh or anything of that ilk by default.
It is /bin/csh aka /bin/tcsh, and for that the syntax is:

   setenv FOO bar

Cheers,

Matthew


Sorry, but that's incorrect. One line exports do work in either bash or sh:

[EMAIL PROTECTED] ~]$ export FOO=bar; echo $FOO
bar
[EMAIL PROTECTED] ~]$ sh
$ export FOO=bar; echo $FOO
bar

He's probably using (t)csh.

-Garrett

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


Re: Dual Core Or Dual CPU - What's the real difference in performance?

2007-02-10 Thread Garrett Cooper

Nicole Harrington wrote:

--- Cy Schubert <[EMAIL PROTECTED]> wrote:

In message
<[EMAIL PROTECTED]>,
Nicole Harrington 
wri

tes:

--- Cy Schubert <[EMAIL PROTECTED]> wrote:

In message
<[EMAIL PROTECTED]>, Mike
Meyer writes:

Generally, more processors means things will

go

faster until you run

out of threads. However, if there's some

shared

resource that is the

bottleneck for your load, and the resource

doesn't

support

simultaneous access by all the cores, more

cores

can slow things

down.

Of course, it's not really that simple. Some

shared resources can be

managed so as to make things improve under

most

loads, even if they

don't support simultaneous access.

Generally speaking the performance increase is

not
linear. At some point 
there is no benefit to adding more processors.

In a
former life when I was 
an MVS systems programmer the limit was seven
processors in a System/370. 
Today we can use 16, 32, even 64 processors with

a
standard operating 
system and current hardware, unless one of the
massively parallel 
architectures is used.


To answer the original posters question, there

are
architectural 
differences mentioned here, e.g. shared cache,

I/O
channel, etc., but the 
reason the chip manufacturers make them is that
they're more cost effective 
than two CPUs.


The AMD X2 series of chips (I have one), they're

not
truely a dual 
processor chip. They're analogous to the single
processor System/370 with 
an AP (attached processor) in concept. What this
means is that both 
processors can execute all instructions and are

just
as capable in every 
way except external interrupts, e.g. I/O

interrupts,
are handled by the 
processor 0 as only that processor is "wired" to

be
interrupted in case of 
external interrupt. I can't comment about

Intel's
Dual Core CPUs as I don't 
know their architecture but I'd suspect the same
would be true. Chips in 
which there are two dual core CPUs on the same

die,
I believe one of each 
of the dual core CPUs can handle external

interrupts.

 Wow I love ansking questions without too many
specifics as I learn so much more. With this

however

it really seems to be a love hate relationship

with

dual core.
 
 Based on what you stated above, would that mean

that

when using a dual core system, using polling

interupts

might be better or perhaps monumanally worse?

No. CPU 0 would be interrupted. It would schedule
the interrupt in the 
queue. Either CPU could service the interrupt once

the interrupt was queued.

Some devices need to be polled as they do not
generate interrupts or they 
generate spurious interrupts. Otherwise allowing a
device to interrupt the 
CPU is more efficient as it allows the CPU to do
other work rather than 
spinning its wheels polling. This is the Von Neumann

model.


--
Cheers,
Cy Schubert <[EMAIL PROTECTED]>
FreeBSD UNIX:  <[EMAIL PROTECTED]>   Web: 
http://www.FreeBSD.org


e**(i*pi)+1=0



 Yes, I have heard that, thanks.

  However, how does one know or tell which is the
right mode/model for which devices? I have seen people
on either side (poll vs interupt) claim one is better
or much like an infomercial, just do blah and your
system will be so much faster. Altho of course that
would be the pro polling side, since by default,
interupts are used. Is it all just imperical testing? 
Take this pill and see let me know how you feel?
 
 It seems as though when it's heavy networking, use

polling. Otherwise stick with interupts. I have even
heard when using X network card, use polling. How
would know when one card will do better with polling
while another may not? 



 Thanks for helping me understand the debate better.

  Nicole


Nicole:
	If you're doing something regularly, no matter what the task, polling 
is the better method. Interrupts are for cases when you do something 
occasionally, but not all the time over your clock cycle. It's really 
dependent on the situation and the use of the software, for when 
interrupts are better than polling. Not sure how AMD does it over Intel, 
but different things are done in different ways in either chipmaker 
camp, so interrupts may be better with AMD, than with Intel (I'm just 
thinking pipeline length because Intel's always had long pipelines in 
their processors).
	Anyhow, best of luck deciding with method is better, although depending 
on your situation it probably doesn't matter all that much, esp since 
there are other limiting factors in the system like bus speed, 
harddrives, chipset speed, etc. Just basing the factors off CPUs is a 
bad way to go as it's not a complete analysis.

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


HighPoint 2320 RAID fails to start some channels

2007-02-10 Thread Indigo

Hello Everyone,
 I have just installed FreeBSD 6.2 on two mirrored drives(channels 6&7).  
No problem there. I was about to start setting up the rest of the drives  
into other arrays and I found out that they are unavailable.


Dmesg says:
rr232x: fail to start channel [0,0]
rr232x: fail to start channel [0,1]
rr232x: fail to start channel [0,2]
rr232x: fail to start channel [0,3]

The CLI utility doesn't show any devices other than the two drives in  
mirror.
I have up-to-date BIOS in the card(it didn't detect two of the drives  
before).

Im running GENERIC.

All similar problems I found on the net were left unanswered:
http://lists.freebsd.org/pipermail/freebsd-questions/2006-October/132793.html
http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2006-05/msg00294.html

This is probably the wrong list for this question - sorry.

Any Ideas?
Vasek

full dmsg follows:

Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RELEASE #0: Fri Jan 12 08:43:30 UTC 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP
ACPI APIC Table: 
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Opteron(tm) Processor 144 (1809.28-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x20f71  Stepping = 1
  
Features=0x78bfbff
  Features2=0x1
  AMD Features=0xe2500800
  AMD Features2=0x1
real memory  = 1073676288 (1023 MB)
avail memory = 1023913984 (976 MB)
ioapic0  irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0:  on motherboard
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi0: Power Button (fixed)
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
acpi_bus_number: can't get _ADR
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0:  on acpi0
acpi_button0:  on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
pci0:  at device 0.0 (no driver attached)
isab0:  at device 1.0 on pci0
isa0:  on isab0
pci0:  at device 1.1 (no driver attached)
ohci0:  mem 0xd5003000-0xd5003fff irq 21 at  
device 2.0 on pci0

ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0:  on ohci0
usb0: USB revision 1.0
uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 10 ports with 10 removable, self powered
ehci0:  mem 0xfeb0-0xfeb000ff irq  
22 at device 2.1 on pci0

ehci0: [GIANT-LOCKED]
usb1: EHCI version 1.0
usb1: companion controller, 4 ports each: usb0
usb1:  on ehci0
usb1: USB revision 2.0
uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 10 ports with 10 removable, self powered
atapci0:  port  
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 6.0 on pci0

ata0:  on atapci0
ata1:  on atapci0
atapci1:  port  
0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd800-0xd80f mem  
0xd5002000-0xd5002fff irq 23 at device 7.0 on pci0

ata2:  on atapci1
ata3:  on atapci1
atapci2:  port  
0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xc400-0xc40f mem  
0xd5001000-0xd5001fff irq 21 at device 8.0 on pci0

ata4:  on atapci2
ata5:  on atapci2
pcib1:  at device 9.0 on pci0
pci7:  on pcib1
pci7:  at device 8.0 (no driver attached)
skc0:  port 0xa400-0xa4ff mem  
0xd400-0xd4003fff irq 17 at device 12.0 on pci7

skc0: Marvell Yukon Lite Gigabit Ethernet rev. (0x9)
sk0:  on skc0
sk0: Ethernet address: 00:17:31:84:71:b8
miibus0:  on sk0
e1000phy0:  on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,  
1000baseTX-FDX, auto
nve0:  port 0xb000-0xb007 mem  
0xd500-0xd5000fff irq 22 at device 10.0 on pci0

nve0: Ethernet address 00:17:31:84:7f:64
miibus1:  on nve0
ukphy0:  on miibus1
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,  
1000baseT-FDX, auto

nve0: Ethernet address: 00:17:31:84:7f:64
pcib2:  at device 11.0 on pci0
pci6:  on pcib2
pcib3:  at device 12.0 on pci0
pci5:  on pcib3
pcib4:  at device 13.0 on pci0
pci4:  on pcib4
pcib5:  at device 14.0 on pci0
pci1:  on pcib5
pcib6:  at device 0.0 on pci1
pci2:  on pcib6
pcib7:  at device 0.2 on pci1
pci3:  on pcib7
rr232x0:  port 0x9000-0x90ff mem 0xd100-0xd10f irq 18 at  
device 4.0 on pci3

rr232x: adapter at PCI 3:4:0, IRQ 18
acpi_tz0:  on acpi0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on  
acpi0

sio0: type 16550A
ppc0:  port 0x378-0x37f,0x778-0x77b irq 7 drq 3  
on acpi0

ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0:  on ppc0
plip0:  on ppbus0
lpt0:  on ppbus0
lpt0: Interrupt-driven port
ppi0:  on ppbus0
atkbdc0:  port 0x60,0x64 irq 1 on acpi0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: 

Problem with php5 upgrade (PECL)

2007-02-10 Thread bsd

Hello,

I am trying to install the latest php 5.2.1 and I am facing a problem  
with pecl-filter…


When I try to install php5-extensions I have an error with pecl- 
filter… any Idea how to fix that ??




root:fiesta 20:48 /usr/ports/lang/php5-extensions # make install clean
===>  Vulnerability check disabled, database not found
===>  Found saved configuration for php5-extensions-1.0
===>  Extracting for php5-extensions-1.0
===>  Patching for php5-extensions-1.0
===>   php5-extensions-1.0 depends on file: /usr/local/include/php/ 
main/php.h - found
===>   php5-extensions-1.0 depends on file: /usr/local/lib/php/ 
20060613/calendar.so - found
===>   php5-extensions-1.0 depends on file: /usr/local/lib/php/ 
20060613/ctype.so - found
===>   php5-extensions-1.0 depends on file: /usr/local/lib/php/ 
20060613/dom.so - found
===>   php5-extensions-1.0 depends on file: /usr/local/lib/php/ 
20060613/exif.so - found
===>   php5-extensions-1.0 depends on file: /usr/local/lib/php/ 
20060613/fileinfo.so - found
===>   php5-extensions-1.0 depends on file: /usr/local/lib/php/ 
20060613/filter.so - not found
===>Verifying install for /usr/local/lib/php/20060613/filter.so  
in /usr/ports/security/pecl-filter

===>  Vulnerability check disabled, database not found
===>  Extracting for pecl-filter-0.11.0
=> MD5 Checksum mismatch for PECL/filter-0.11.0.tgz.
=> SHA256 Checksum mismatch for PECL/filter-0.11.0.tgz.
===>  Refetch for 1 more times files: PECL/filter-0.11.0.tgz PECL/ 
filter-0.11.0.tgz

===>  Vulnerability check disabled, database not found
=> filter-0.11.0.tgz doesn't seem to exist in /usr/ports/distfiles/ 
PECL.

=> Attempting to fetch from http://pecl.php.net/get/.
fetch: filter-0.11.0.tgz: local file (36186 bytes) is longer than  
remote file (25946 bytes)
=> Attempting to fetch from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/ 
distfiles/PECL/.
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/PECL/ 
filter-0.11.0.tgz: File unavailable (e.g., file not found, no access)

=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/PECL and try again.
*** Error code 1

Stop in /usr/ports/security/pecl-filter.
*** Error code 1

Stop in /usr/ports/security/pecl-filter.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.




«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§


P "Please consider your environmental responsibility before printing  
this e-mail"



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


Re: Fwd: Re: pppd crashes, was: kde-freebsd

2007-02-10 Thread Joe Vender
On Saturday 10 February 2007 01:59, Michael Nottebrock wrote:
> In case you didn't get cc'd on this, I think this is actually worthwhile
> trying, it might just get rid of the hanging/rebooting.
>
> What Hajime means is the debug.mpsafenet loader tunable.
>
> You can set this by creating the file /boot/loader.conf.local and adding a
> line
>
> debug.mpsafenet=0
>
>
> Cheers,

Well, I've set the tunable as suggested, configured KPPP and am using it now. 
So far, no problem, but I haven't been online for long either, so time will 
tell if thats the problem. I came across this which states that if you are 
using pppd, then you need to set the tunable to 0, if I read it correctly.

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2004-08/2745.html

This all makes me wonder, what is the advantage to having the debug.mpsafenet 
set to 1 as default, anyway, if the computer only has a single processor? 
Shouldn't the installer be smart enough to detect if the computer is single 
or multiprocessor, and set the tunable accordingly, at least until ALL of the 
network features are made MPSAFE so that it is no longer an issue? And, when 
installing FreeBSD 6.2, the kernel that booted from the install CD was 
GENERIC, but after the installation, the bootup showed that the kernel being 
used was SMP. Being that my computer is a single processor, shouldn't it 
default to the GENERIC kernel after installation, unless I request otherwise?

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


Re: phpMyAdmin httpd segmentation fault

2007-02-10 Thread Spil Oss

Hi Terry,

Had a segfaulting apache-2.2.3 w/ php 5.2.0 before after upgrading
5.1.6_3 to 5.2.0. mail/roundcube would segfault on login.
My problem was that I had NO_INET6 in my kernel, but no WITHOUT_IPV6
for my ports. Solved segfaulting apache and connection-probs in
bitlbee.

Furthermore, I am told that the order in which the php-extensions load
is essential, see e.g.
http://www.pingle.org/2006/10/18/php-crashes-extensions/,
http://nl2.php.net/manual/en/ref.recode.php (empty),
http://www.php.net/manual/en/ref.mysql.php

Currently I'm stuck again, with apache 2.2.4, php 5.2.1 and
mail/roundcube webmail after upgrading php from 5.2.0 to 5.2.1 :'(

Earlier, a debug build of php did not exhibit problems for me (nice if
you wanna nail down the bug). Hope this all brings you any further in
solving your probs

Kind regards,

Spil
On 10/02/07, Terry Todd <[EMAIL PROTECTED]> wrote:




I started from scratch and built a completely new system by installing
from CD's on a different computer and it does the exact same thing
in the exact same place.  At this point I'm a little surprised that
no one else has run across this.

Terry Todd


On Tue, Feb 06, 2007 at 08:42:30AM -0600, Terry Todd wrote:
> On Tue, Feb 06, 2007 at 07:14:02AM +, Matthew Seaman wrote:
> > Terry Todd wrote:
> > > On Mon, Feb 05, 2007 at 07:07:25AM -0800, Garrett Cooper wrote:
> > >> Terry Todd wrote:
> > >>> On Sun, Feb 04, 2007 at 09:36:58AM +, Matthew Seaman wrote:
> >  Terry Todd wrote:
> > > I installed FreeBSD 6.2-RELEASE, php-5.1.6_3, php5-extensions-1.0,



> > > mysql-5.0.27 and apache_1.3.37_1.
> > >
> > > php -i now works Ok after I moved recode.so to the top of the list
> > > of extensions in extensions.ini.  It took a while to figure that
> > > one out.  Before that php -i would seg fault and core dump.  It
> > > took some google searching and using gdb on the core file to fix
> > > it.
> > >
> > > A test web page for phpinfo works fine too.  Mysql works OK from
> > > the command line.
> > >
> > > However I can't get phpMyAdmin to work.  It seg faults in reading
> > > /usr/local/www/phpMyAdmin/libraries/url_generating.lib.php
> > > There is no core dump produced.
> >  Hmmm... very strange.  We have just built a RELENG_6_2 server with
> >  apache13-ssl, php5 and phpMyAdmin and no such problems are apparent.
> > 
> >  Did you modify the CFLAGS or otherwise change the level of
> >  optimization used by the compiler?
> > >>> No CFLAGS were changed or anything else.  It's a very standard install.
> > >>>
> > > I ran ktrace httpd -X
> > >
> > > Then when I try to open the phpMyAdmin/index.php page in a browser
> > > httpd seg faults.
> > >
> > > Here is the tail of kdump from the ktrace.out from the above ktrace.
> > >
> > > 
> > >   1372 httpdCALL  gettimeofday(0xbfbf7158,0)
> > >   1372 httpdRET   gettimeofday 0
> > >   1372 httpdCALL  lstat(0xbfbf75b0,0xbfbf70f0)
> > >   1372 httpdNAMI  "/usr"
> > >   1372 httpdRET   lstat 0
> > >   1372 httpdCALL  lstat(0xbfbf75b0,0xbfbf70f0)
> > >   1372 httpdNAMI  "/usr/local"
> > >   1372 httpdRET   lstat 0
> > >   1372 httpdCALL  lstat(0xbfbf75b0,0xbfbf70f0)
> > >   1372 httpdNAMI  "/usr/local/www"
> > >   1372 httpdRET   lstat 0
> > >   1372 httpdCALL  lstat(0xbfbf75b0,0xbfbf70f0)
> > >   1372 httpdNAMI  "/usr/local/www/phpMyAdmin"
> > >   1372 httpdRET   lstat 0
> > >   1372 httpdCALL  lstat(0xbfbf75b0,0xbfbf70f0)
> > >   1372 httpdNAMI  "/usr/local/www/phpMyAdmin/libraries"
> > >   1372 httpdRET   lstat 0
> > >   1372 httpdCALL  lstat(0xbfbf75b0,0xbfbf70f0)
> > >   1372 httpdNAMI  
"/usr/local/www/phpMyAdmin/libraries/url_generating.lib.php"
> > >   1372 httpdRET   lstat 0
> > >   1372 httpdCALL  open(0x845eda8,0,0x1b6)
> > >   1372 httpdNAMI  
"/usr/local/www/phpMyAdmin/libraries/url_generating.lib.php"
> > >   1372 httpdRET   open 4
> > >   1372 httpdCALL  fstat(0x4,0x8102748)
> > >   1372 httpdRET   fstat 0
> > >   1372 httpdCALL  lseek(0x4,0,0,0,0x1)
> > >   1372 httpdRET   lseek 0
> > >   1372 httpdCALL  read(0x4,0x82e3028,0x2000)
> > >   1372 httpdGIO   fd 4 read 4096 bytes
> > >" > > /* $Id: url_generating.lib.php,v 2.12.2.1 2006/09/26 19:23:24 
lem9 Exp $ */
> > > // vim: expandtab sw=4 ts=4 sts=4:
> > >
> > >
> > > /**
> > >  * URL/hidden inputs generating.
> > >  */
> > >
> > >
> > > /**
> > >  * Generates text with hidden inputs.
> > >  *
> > >  * @see PMA_generate_common_url()
> > >  * @param   string   optional database name
> > >  * @param   string   optional tab

Re: A VERY Strange Question.

2007-02-10 Thread Boris Samorodov
On Sat, 10 Feb 2007 21:37:22 +0300 Boris Samorodov wrote:

> As far as I know, there are two types of CALs: per user and per
> device. We use the former: diskless stations are booted and are
 ^^
Sorry, not the "former" but the "latter". ;-)

> connected to the application FreeBSD server via XDMCP, those who need
> (approx. 10 users) use rdesktop to connect to the windows server while
> only one license is used.

WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Please trade links with our web site

2007-02-10 Thread Don Hammond
Hi,

I visited your www.freebsd.org web site.

DonOmite is dedicated to helping other web businesses get on their feet and to 
this aim we look for websites that will help our customers and visitors to 
achieve their goals and dreams. 

Please trade links with our web site. We extend this invitation because we 
really like your web site. 

Our visitors will enjoy your web site, because it matches our Themes. Our goal 
is to create a quality guide to other web sites that have great quality 
content, such as yours.

We only link and conduct business using professional standards, as set forth in 
the book: "Common Sense Web Marketing". To thank you for linking with our web 
site, it would be my pleasure to send you a copy of the book, absolutely free 
(170 pages).

To save you time, we have already listed your web site in our directory. 

The following is a link to the 'Free Stuff' location that includes your web 
site in our Link Directory:
http://www.donomite.com/links/freestuff.html

Titles, descriptions and HTML code to add our link to your web site: 
http://

To edit your listing in our directory:
http://www.donomite.com/links/ThemeIndex.html

Regards
Don Hammond
[EMAIL PROTECTED]
http://www.donomite.com/


..

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


Re: A VERY Strange Question.

2007-02-10 Thread Boris Samorodov
On Fri, 09 Feb 2007 22:23:49 +0200 Apatewna wrote:

> > Question 3:
> >
> > I have never understood MS licensing scheme.
> How true

> > What does this '5 CALs' by default mean? In order for hundreds of 
> domains to
> > be on the (MS) server, doe we need to get hendreds of CALs?

> AFAIK, [5 CAL] means "five client access licenses" and it refers to

As far as I know, there are two types of CALs: per user and per
device. We use the former: diskless stations are booted and are
connected to the application FreeBSD server via XDMCP, those who need
(approx. 10 users) use rdesktop to connect to the windows server while
only one license is used.

> accessing shared resources (folders/printers/active directory
> services). You'll find that windows Xp home allows only five network
> computer to connect to its resources and windows xp pro allows
> ten. This has nothing to do with web serving because simply the
> clients connect and access information anonymously.

WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


backup solution

2007-02-10 Thread Dino Vliet
Hi peeps,

I'm busy preparing my via c3 system to utilize it as a
backup file server.

On the motherboard I have two IDE channels and
currenntly they have installed a IDE hard disk and a
dvd-rom. However, I have bought an extra IDE cable
where I will put two IDE hard disks in a master-slave
or cable select relation and put that on one of the
IDE banks. The other IDE bank I will use to put the
primary disk and the dvd-rom in a master-slave or
cable-select relation.

Then I will install freebsd on the first disk and will
use the two spare IDE-disks on the same cable as a
geom-mirror. 

I will use the system then as a central node with
rsync to do daily backups of my main data that is
scattered around on different desktops on my lan.

Does anyone have tips regarding this kind o
installation?

Do I also need a specialised tool like bacula for the
way I want to use it?

Brgds
Dino


 

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Portsnap and port versions

2007-02-10 Thread Robert Inder

I asked for help because I was getting an out-of-date version of
portupgrade --- 2.1.3 instead of 2.2.2 --- even though I had usedn
portsnap.

> Matthew Seaman writes:
> Subject: Re: Portsnap and port versions

:
:

> To see if your index is out of date, compare the output of:

> cd /usr/ports
> make search name=portindex

> with 

>cd /usr/ports/ports-mgmt/portupgrade
>make -V PKGNAME 

BINGO!!!  I was installing sysutils/portupgrade.  

I knew that portupgrade was in sysutils, so I went straight to it and
used it...

It didn't occur to me that there might be ANOTHER sysutils somewhere
else in the ports tree.

But there was, and the one in ports-mgmt had been updated by
portsnap, so when I installed in THERE...

> Then use portupgrade as usual to upgrade whatever else you want to.
Yup!

>   Cheers,

>   Matthew

Thanks very much indeed!

Robert.

--
Robert InderTel: 0131 229 1052Interactive Information Ltd,
DirectorMobile: 07808 492 2133, Lauriston Gardens,
   Edinburgh   EH3 9HH
Interactions speak louder than words   SCOTLAND UK

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


Re: Question:encryption tool.

2007-02-10 Thread Dak Ghatikachalam

On 2/6/07, David Robillard <[EMAIL PROTECTED]> wrote:


On 2/6/07, Dak Ghatikachalam <[EMAIL PROTECTED]> wrote:
[...snip!...]

> Thanks a lot  , but we are on Oracle9i  database, the Oracle secure
backup
> they are talking would be nice on 10G onwards

Well, not according to the FAQ. Here is what it says:

-- What Oracle database versions does Oracle Secure Backup support?
Oracle Secure Backup installs with a native integration of Oracle
Database's via Oracle Recovery Manager (RMAN), which supports Oracle9i
forward.

So if you're running 9i, you should be alrgiht.



Here is the exception  with Oracle9i  I was not able to encrypt the RMAN
backups, I tried  by best
it does not have an option of encryption

you will see below I have catalog as 10G database , so I registered itself
as target

Recovery Manager: Release 10.2.0.3.0 - Production on Tue Feb 6 18:52:34 2007


Copyright (c) 1982, 2005, Oracle.  All rights reserved.

connected to target database: CAT10GR2 (DBID=845501569)
connected to recovery catalog database

RMAN> show all;

RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; #
default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO
'/u01/app/oracle/product/10.2/dbs/snapcf_cat10gr2.f'; # default

RMAN>

You can see that encryption for db and alogorithm option there but you will
not see in Oracle9i


Recovery Manager: Release 9.2.0.7.0 - 64bit Production

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

connected to target database: RCVCAT (DBID=2859160142)
connected to recovery catalog database

RMAN> show all;

RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; #
default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO
'/u01/app/oracle/product/9.2.0.7/dbs/snapcf_rcvcat.f'; # default

my impression about the FAQ on secure-backup what oracle talks about ,
encryption, archivelog deletion policy is  that in simply focuses on 10g
database and above.


yes i went thru th claims of secure of 9i , but  the command of set
enryption on identified by "password"  or CONFIGURE ENCRYPTION FOR DATABASE
on identified by "password" is the command of 10G not sure if that would
would work on 9i database even we were to use the secure - backup with 9i.


You can get your hands on the FAQ at

http://www.oracle.com/technology/products/secure-backup/pdf/FAQ.pdf

HTH,

David
--
David Robillard
UNIX systems administrator & Oracle DBA
CISSP, RHCE & Sun Certified Security Administrator
Montreal: +1 514 966 0122


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


Re: FreeBSD 6.2 & HAL

2007-02-10 Thread Joe Vender
On Saturday 10 February 2007 04:21, Simon Phoenix wrote:
...
> By default in ports, HAL is off for kdebase.
> I have assume, that precompiled version of KDE on CD use this default
> behavior. But this is my assumption only.
This is the conclusion that I came to, also. I guess one has to build from 
source with --enable-hal or something like that. Thanks.

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


Re: FreeBSD 6.2 & HAL

2007-02-10 Thread Joe Vender
On Saturday 10 February 2007 03:58, Tijl Coosemans wrote:
> On Saturday 10 February 2007 04:13, Joe Vender wrote:
> > Does the KDE version (3.5.4) that is installed from the packages list on
> > the FreeBSD 6.2 installation CD include support for HAL?
>
> No, you need KDE 3.5.5.
OK. That's what I thought. Thanks.

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


krusader gnome?

2007-02-10 Thread eoghan

Hi
Is there anything like krusader for gnome? I know I can install it on  
gnome, but I think it will install lots of kde dependancies that I  
dont need.

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


Re: Bad sector on drive ...

2007-02-10 Thread John Nielsen
On Saturday 10 February 2007 09:47, Marc G. Fournier wrote:
> --On Saturday, February 10, 2007 01:00:21 -0600 Dan Nelson
>
> <[EMAIL PROTECTED]> wrote:
> > In the last episode (Feb 10), Marc G. Fournier said:
> >> Short of a reformat, any way of marking the following as bad? :(
> >>
> >> Feb 10 02:27:20 ganymede kernel: ad4: FAILURE - READ_DMA
> >> status=51 error=40 LBA=176887263 Feb
> >> 10 02:27:25 ganymede kernel: ad4: TIMEOUT - READ_DMA retrying (1 retry
> >>  left) LBA=176887324 Feb 10 02:27:30 ganymede kernel: ad4: TIMEOUT -
> >> READ_DMA retrying (0 retries  left) LBA=176887324 Feb 10 02:27:35
> >> ganymede kernel: ad4: FAILURE - READ_DMA timed out LBA=176887324
> >
> > Try writing to the block causing the error, using dd and the seek=
> > option; if the write succeeds, you're done (and the drive will have
> > either reused the block or reassigned it to a spare). 176887324 If it
> > doesn't succeed, copy what you can off the drive and toss it, since all
> > its spares are used up.
> >
> > I think LBA numbers map directly to seek= values assuming you keep
> > bs=512 and access /dev/ad4 .  I'd try reading the bad block with dd to
> > verify it's the right one before doing a write, though.
>
> 'k, how do you use dd to write to a specific sector?
>
>   dd of=/dev/ad4 seek=176887324 bs=512 if=/dev/null

dd of=/dev/ad4 seek=176887324 bs=512 count=1 if=/dev/zero

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


Re: Big problems with PF on freeBSD 6.2

2007-02-10 Thread Tim T Bos
Hi Erik,

I used a GENERIC kernel as well as a custom kernel.
Both have the same behavior.

I even tried a default install without any extra boot options.

ON FreeBSD 5.5 i didn't have this problem.

I'm going to try to log all actions.

I must do something seriously wrong.

Thanks anyway

Erik Norgaard wrote:
> Tim T Bos wrote:
>> Hi Guys,
>>
>> I have a problem with PF.  Normally when I load pf.ko it uses deny all
>> as default.
>> But if i compile it in the kernel or load it as a module both it
>> won't work.
>> If a have only one rule "block all" or "block all on ext_if" I can still
>> go on the internet and if I portscan my computer i get most ports closed
>> and some by my isp filtered ports (137 139 and some onher MS ports).
>>
>> I tried a clean install of freebsd 6.2 with the latest  stable source
>> ass well.
>
> you mean "as well" :)
>
> Do you use a GENERIC kernel? If you have a custom kernel or try to set
> special options for pf post those options. Also, post any boot options
> that toggle pf behaviour.
>
> The default behaviour of pf is "pass all", I don't remember if there
> is a boot option or similar to change this.
>
> But anyway, I think it is better to go with the default and set your
> desired default action explicitly as the first rule in your rule set.
> Try a GENERIC kernel and see if packets are blocked correctly by a
> "block log all" rule.
>
> In any case, you should add "log" to your rules for debugging, so you
> can see if ruleset is matched and where packets are blocked or passed.
>
> Cheers, Erik
>


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


Re: Complete environment on top of /compat/linux

2007-02-10 Thread Tijl Coosemans
On Saturday 10 February 2007 16:13, Pietro Cerutti wrote:
> On 2/10/07, Matt Kitche Donovan <[EMAIL PROTECTED]> wrote:
> > Pietro Cerutti wrote:
> > > I'm starting off a new job where I'll be forced to work in a GNU/Linux
> > > environment, and I thought that maybe there exists some way to just
> > > chroot in /compat/linux and have a complete GNU/Linux environment at
> > > disposal, without the need for a dual booting setup.
> >
> > yes I chroot into /compat/linux all the time just make sure that you
> > kldload linux first to make sure it's loaded first.
> 
> Yes, thanx. The problem is that just chroot'ing into /compat/linux
> doesn't provides you with a complete linux environment... how does one
> add packages and stuff to achieve a full operating (development)
> environment?

emulators/linux_dist* is what you're looking for I think.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Big problems with PF on freeBSD 6.2

2007-02-10 Thread Erik Norgaard

Tim T Bos wrote:

Hi Guys,

I have a problem with PF.  Normally when I load pf.ko it uses deny all
as default.
But if i compile it in the kernel or load it as a module both it won't work.
If a have only one rule "block all" or "block all on ext_if" I can still
go on the internet and if I portscan my computer i get most ports closed
and some by my isp filtered ports (137 139 and some onher MS ports).

I tried a clean install of freebsd 6.2 with the latest  stable source
ass well.


you mean "as well" :)

Do you use a GENERIC kernel? If you have a custom kernel or try to set 
special options for pf post those options. Also, post any boot options 
that toggle pf behaviour.


The default behaviour of pf is "pass all", I don't remember if there is 
a boot option or similar to change this.


But anyway, I think it is better to go with the default and set your 
desired default action explicitly as the first rule in your rule set. 
Try a GENERIC kernel and see if packets are blocked correctly by a 
"block log all" rule.


In any case, you should add "log" to your rules for debugging, so you 
can see if ruleset is matched and where packets are blocked or passed.


Cheers, Erik

--
Ph: +34.666334818  web: http://www.locolomo.org


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Complete environment on top of /compat/linux

2007-02-10 Thread Pietro Cerutti

On 2/10/07, Matt Kitche Donovan <[EMAIL PROTECTED]> wrote:

Pietro Cerutti wrote:
> Hi list,
> I'm starting off a new job where I'll be forced to work in a GNU/Linux
> environment, and I thought that maybe there exists some way to just
> chroot in /compat/linux and have a complete GNU/Linux environment at
> disposal, without the need for a dual booting setup.
>
> Any experiences or advices on doing such a thing?
>
> Thanx in advance!
>
yes I chroot into /compat/linux all the time just make sure that you
kldload linux first to make sure it's loaded first.


Yes, thanx. The problem is that just chroot'ing into /compat/linux
doesn't provides you with a complete linux environment... how does one
add packages and stuff to achieve a full operating (development)
environment?

Thank you in advance,



--
Pietro Cerutti
ICQ: 117293691
PGP: 0x9571F78E

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mail server recomendations

2007-02-10 Thread Ray


-Original Message-
Thanks for all the suggestions.
Looks like I have a lot of reading ahead  :)
Ray 


> On Saturday 10 February 2007 01:33, Ray wrote:
> > I'm looking for a package (or set of packages) that would provide a
> mail
> > server with the following capabilities
> >
> > minimally:
> > pop and smtp access that could handle 20 to 100 domains and 200 to
> 2000
> > mail boxes.(allowing some room for future growth)
> 
> SMTP: sendmail is part of the base system and is pretty powerful but
> has a 
> steep learning curve. There are alternatives available in the ports,
> one of 
> the more popular being postfix. Others such as qmail may also be worth 
> researching.
> 
> POP, etc.: I highly recommend dovecot. It's efficient, pretty easy to 
> configure, and can handle almost any setup you can imagine. You also
> get 
> IMAP with this, which even if you don't want on its own you will want
> to 
> use with your webmail package.
> 
> > ideally: also provide a web interface for individual users and also
> for
> > administration on a per domain and whole server level.
> > we have several customers that need to be able to administer their
> own
> > domains, (Read this as I don't want ten calls a day saying "I forgot
> my
> > password") but we don't want them touching others accounts.
> 
> Admin: webmin provides a reasonably secure web-based frontend to many 
> different admin. tools and allows you to grant different levels of
> access 
> to each tool to different users. Virtualmin might be an even better
> match 
> for what you're after.
> 
> Webmail: For features, go with Imp and any other parts of the Horde
> suite of 
> applications that interest you. Horde's groupware package is starting
> to 
> get pretty polished, and the individual components (mail, calendar,
> address 
> book, tasks, etc) are all quite mature. Setup and config is a bit on
> the 
> complex side, but there's work going on there and much of the initial 
> config is now web-based.  Other popular and simpler webmail packages 
> include OpenWebMail and SquirrelMail.
> 
> > spam and virus scanning would be a definite plus, but from what I
> have
> > read, these two parts are fairly straight forward.
> > We have recently changed the web server from M$ to FreeBSD and now
> we're
> > trying to change the mail server too.
> > Thanks for any pointers or suggestions.
> 
> I use clamAV on my mailserver, works great and keeps itself up-to-date 
> pretty well. Easy integration with sendmail via a milter. For spam
> you'll 
> likely want a combination of techniques. SpamAssassin is a good
> starting 
> point. Also look at the DNS black- or greylisting features of your SMTP
> program (I use a couple realtime DNS blacklists with sendmail).
> Depending 
> on the types of messages you're hoping to stop/detect, you might also
> want 
> to look at MimeDefang.
> 
> Everything above is in the ports. You have a lot of options so it's
> just a 
> matter of nailing down what you want in terms of features and then 
> selecting the best tool for the task.
> 
> JN
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"


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


Re: Bad sector on drive ...

2007-02-10 Thread Marc G. Fournier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



- --On Saturday, February 10, 2007 01:00:21 -0600 Dan Nelson 
<[EMAIL PROTECTED]> wrote:

> In the last episode (Feb 10), Marc G. Fournier said:
>> Short of a reformat, any way of marking the following as bad? :(
>>
>> Feb 10 02:27:20 ganymede kernel: ad4: FAILURE - READ_DMA
>> status=51 error=40 LBA=176887263 Feb 10
>> 02:27:25 ganymede kernel: ad4: TIMEOUT - READ_DMA retrying (1 retry  left)
>> LBA=176887324 Feb 10 02:27:30 ganymede kernel: ad4: TIMEOUT - READ_DMA
>> retrying (0 retries  left) LBA=176887324 Feb 10 02:27:35 ganymede kernel:
>> ad4: FAILURE - READ_DMA timed out LBA=176887324
>
> Try writing to the block causing the error, using dd and the seek=
> option; if the write succeeds, you're done (and the drive will have
> either reused the block or reassigned it to a spare). 176887324 If it doesn't
> succeed, copy what you can off the drive and toss it, since all its
> spares are used up.
>
> I think LBA numbers map directly to seek= values assuming you keep
> bs=512 and access /dev/ad4 .  I'd try reading the bad block with dd to
> verify it's the right one before doing a write, though.

'k, how do you use dd to write to a specific sector?

dd of=/dev/ad4 seek=176887324 bs=512 if=/dev/null

- 
Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFzdr14QvfyHIvDvMRAtdXAKC4Fjjd7tn8tjtqyQzO10NlYYBXTACgmYaa
bTZ9nTHTrd6HzUJXWm1ND6I=
=YBMq
-END PGP SIGNATURE-

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


Re: Can I use an HP printer

2007-02-10 Thread Yuri Grebenkin
I have an Epson Stylus C43SX and have made it print PostScript
through the following filter using GIMP Print and Ghostscript:

# /usr/local/libexec/ps2eps.sh
gs -DSAFER -sDEVICE=ijs -sIjsServer=ijsgimpprint \
   -sDeviceManufacturer=EPSON -sDeviceModel=escp2-c42sx \
   -DIjsUseOutputFD -q -sOutputFile=- -DNOPAUSE -DBATCH - \
  && exit 0

Also, to turn on extended mode for my local lpt0 I use this:

lptcontrol -e /dev/lpt0

Yuri


On Thu, 8 Feb 2007 23:31:31 -0800
"Ted Mittelstaedt" <[EMAIL PROTECTED]> wrote:

> I myself have an Epson C84 inkjet in my home that has the same issues.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: export command not found?

2007-02-10 Thread Matthew Seaman
Erik Trulsson wrote:
> On Sat, Feb 10, 2007 at 12:35:56PM +, Matthew Seaman wrote:


>> /bin/sh is not bash on FreeBSD.  IF you're using /bin/sh, then you
>> need to assign and export values as separate operations:
>>
>>FOO=bar
>>export FOO
> 
> Not true. FreeBSD's /bin/sh supports the 'export FOO=bar' syntax.
> 

Hmmm... you're right.  Seems it was added about 10 years ago...

Far too newfangled for me.

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: export command not found?

2007-02-10 Thread Erik Trulsson
On Sat, Feb 10, 2007 at 12:35:56PM +, Matthew Seaman wrote:
> Roger Olofsson wrote:
> > Dear Mailing List,
> > 
> > 6.2-STABLE FreeBSD just made world.
> > 
> > # export VARIABLE value
> > export: Command not found.
> > 
> > 
> > What happened to export?
> > 
> > Grateful for any answer!
> 
> /bin/sh is not bash on FreeBSD.  IF you're using /bin/sh, then you
> need to assign and export values as separate operations:
> 
>FOO=bar
>export FOO

Not true. FreeBSD's /bin/sh supports the 'export FOO=bar' syntax.


> 
> Also, root's shell is not /bin/sh or anything of that ilk by default.
> It is /bin/csh aka /bin/tcsh, and for that the syntax is:
> 
>setenv FOO bar
> 
>   Cheers,
> 
>   Matthew
> 
> 
> -- 
> Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
>   Flat 3
> PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
>   Kent, CT11 9PW
> 



-- 

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


Re: export command not found?

2007-02-10 Thread Matthew Seaman
Roger Olofsson wrote:
> Dear Mailing List,
> 
> 6.2-STABLE FreeBSD just made world.
> 
> # export VARIABLE value
> export: Command not found.
> 
> 
> What happened to export?
> 
> Grateful for any answer!

/bin/sh is not bash on FreeBSD.  IF you're using /bin/sh, then you
need to assign and export values as separate operations:

   FOO=bar
   export FOO

Also, root's shell is not /bin/sh or anything of that ilk by default.
It is /bin/csh aka /bin/tcsh, and for that the syntax is:

   setenv FOO bar

Cheers,

Matthew


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



signature.asc
Description: OpenPGP digital signature


Re: export command not found?

2007-02-10 Thread Roger Olofsson

Yes, of course. I am sorry, I will go stand in the corner now. ;^)

Thanks!

Erik Trulsson skrev:

On Sat, Feb 10, 2007 at 01:23:16PM +0100, Roger Olofsson wrote:

Dear Mailing List,

6.2-STABLE FreeBSD just made world.

# export VARIABLE value
export: Command not found.


What happened to export?

Grateful for any answer!


It looks like you are using csh. It has a different syntax
than /bin/sh.  Among other things it does not use the 'export' command.

If you use /bin/sh instead then 'export' should work just fine.


Greetings from Sweden

/Roger






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


Re: export command not found?

2007-02-10 Thread Oliver Koch
Hi,

Roger Olofsson schrieb:

> 6.2-STABLE FreeBSD just made world.
> 
> # export VARIABLE value
> export: Command not found.
> 
> 
> What happened to export?

it depends on the shell you use if the export command exists or not.
What kind of shell do you use?

Kind regards,

Oliver

-- 
Oliver Koch  Phone:  +49-(0)5323-72-2626
Computer Center  Fax:+49-(0)5323-72-3536
Clausthal University of Technology   E-Mail: [EMAIL PROTECTED]
Erzstraße 51 Web:  http://www.rz.tu-clausthal.de
38678 Clausthal-Zellerfeld, Germany



signature.asc
Description: OpenPGP digital signature


Re: Portsnap and port versions

2007-02-10 Thread Matthew Seaman
Robert Inder wrote:

> This morning, I tried "portsnap fetch" and "portsnap upgrade"...
> 
>Looking up portsnap.FreeBSD.org mirrors... 2 mirrors found.
>Fetching snapshot tag from portsnap1.FreeBSD.org... done.
> 
> But although it reported 3 metadata patches and 91 patches, it didn't
> change the "portupgrade" port: it is still 2.1.3.3.

Is your ports INDEX file up to date?  I believe portsnap should provide
you with an updated INDEX automatically, or you can use 'make fetchindex'
to grab something recently built or (blowing my own trumpet here) there's
the ports-mgmt/p5-FreeBSD-Portindex port if you'ld like to build your own.

To see if your index is out of date, compare the output of:

cd /usr/ports
make search name=portindex

with 

   cd /usr/ports/ports-mgmt/portupgrade
   make -V PKGNAME 

The latst version (as of this morning) is portupgrade-2.2.2_4,2

Also note that the bug you encountered with portupgrade saying:
"missing key: categories: Cannot read the portsdb!" was compounded by
moving the portupgrade port from sysutils/portupgrade to
ports-mgmt/portupgrade.  That has caused some confusion to various
tools.  The fix is fairly simple:

# pkgdb -F
# pkg_delete portupgrade-\*
# cd /usr/ports/ports-mgmt/portupgrade
# make install

Then use portupgrade as usual to upgrade whatever else you want to.

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: export command not found?

2007-02-10 Thread Martin Tournoij
On Sat 10 Feb 2007 13:02, Roger Olofsson wrote:
> Dear Mailing List,
> 
> 6.2-STABLE FreeBSD just made world.
> 
> # export VARIABLE value
> export: Command not found.
> 
> 
> What happened to export?
> 
> Grateful for any answer!
> 
> Greetings from Sweden
> 
> /Roger

The default shell on FreeBSD is tcsh, which uses setenv, not export.

You can install bash, ksh, ect. throught the ports collection or as a
package.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: export command not found?

2007-02-10 Thread Erik Trulsson
On Sat, Feb 10, 2007 at 01:23:16PM +0100, Roger Olofsson wrote:
> Dear Mailing List,
> 
> 6.2-STABLE FreeBSD just made world.
> 
> # export VARIABLE value
> export: Command not found.
> 
> 
> What happened to export?
> 
> Grateful for any answer!

It looks like you are using csh. It has a different syntax
than /bin/sh.  Among other things it does not use the 'export' command.

If you use /bin/sh instead then 'export' should work just fine.

> 
> Greetings from Sweden
> 
> /Roger




-- 

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


export command not found?

2007-02-10 Thread Roger Olofsson

Dear Mailing List,

6.2-STABLE FreeBSD just made world.

# export VARIABLE value
export: Command not found.


What happened to export?

Grateful for any answer!

Greetings from Sweden

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


Big problems with PF on freeBSD 6.2

2007-02-10 Thread Tim T Bos
Hi Guys,

I have a problem with PF.  Normally when I load pf.ko it uses deny all
as default.
But if i compile it in the kernel or load it as a module both it won't work.
If a have only one rule "block all" or "block all on ext_if" I can still
go on the internet and if I portscan my computer i get most ports closed
and some by my isp filtered ports (137 139 and some onher MS ports).

I tried a clean install of freebsd 6.2 with the latest  stable source
ass well.

I have this problem since i chanced from ISP.

Can you please help me out because i love to use my BSD box again...


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


Portsnap and port versions

2007-02-10 Thread Robert Inder

I seem to be getting out-of-date versions of ports for reasons that I
don't understand, so I'm not sure what to do about it.

I'm setting up a brand new server to run FreeBSD.  I downloaded the
FreeBSD 6.2 Release CDs, and installed.  Everything seemed to go
smoothly.

CAVEAT: I've been using FreeBSD for several years, but this is the
first time I've installed it myself without expert guidance on hand...

Looking at the manual pages, I decided to use Portsnap.  So I did

   portsnap fetch  
   portsnap extract

I didn't change any configuration settings, but it seemed to work.

when it had finished, I cd'd to the directory for "portupgrade", and
typed "make" and "make install".  Everything seemed to go smoothly, and
portupgrade-2.1.3.3_1,2 was duly installed.

But when I tried to use it, I get messages about the portsDB being
corrupted: 

   bennu# portupgrade -N openoffice.org-2
   [missing key: categories] [Updating the portsdb  in 
/usr/ports ... - 16515 port entries found 
.1000.2000.3000.4000.5000.6000.7000.8000.9000.1.11000.12000.13000.14000.15000.16000.
 . done]
   missing key: categories: Cannot read the portsdb!
   database file error

When I ask Google about this I discover lots of people had this
problem, and there is a posting from about ten
days ago saying that the fix is to use "a more recent portupgrade",
and somebody on the 1st of Feb saying they the problem is cured in
portupgrade-2.2.2_2,2.  

So I've got an obsolete version, even though I installed the port
straight after using portsnap.

This morning, I tried "portsnap fetch" and "portsnap upgrade"...

   Looking up portsnap.FreeBSD.org mirrors... 2 mirrors found.
   Fetching snapshot tag from portsnap1.FreeBSD.org... done.

But although it reported 3 metadata patches and 91 patches, it didn't
change the "portupgrade" port: it is still 2.1.3.3.

What is happening?  

Have I mis-understood ports and/or portsnap?  I THOUGHT that portsnap
would bring my ports tree up to date, so it would contain
(descriptions of) the latest versions of all the ports, so that they
would be fetched and installed by "make".

If that's right, why is portsnap leaving me with 2.1.3.3 ten days
after people were talking about using 2.2.2?  What can I do to get up
to date?

If it's wrong, please enlighten me, and tell me how to go about
getting the latest versions!

Robert.

--
Robert InderTel: 0131 229 1052Interactive Information Ltd,
DirectorMobile: 07808 492 2133, Lauriston Gardens,
   Edinburgh   EH3 9HH
Interactions speak louder than words   SCOTLAND UK

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


The problem of "non-zero start cluster"

2007-02-10 Thread ronggui

Every time I use mkdir to generate a directory in a fat32 file system,
I can not mv it to another directoy. And  I use fsck_msdosfs to check
the device, and report that ".." entry in /directory.name has non-zero
start cluster. If I fix the problem, I can move the directory using
mv. So anyone know why the problem of "non-zero start cluster" keeps
occuring?

Thank you very much.

--
Ronggui Huang
Department of Sociology
Fudan University, Shanghai, China
黄荣贵
复旦大学社会学系
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Full Swap File.

2007-02-10 Thread Matthew Seaman
Grant Peel wrote:
> Hi all,
> 
> Today while I was out, one of our sytems slowed to a crawl.
> 
> /var/log/messages shows the swapfile filled to capacity.
> 
> I will be doubling RAM (to 1 GIG and the swap partition to 2 GIG) in the very 
> new future.
> 
> DOes anyone know if there is a method for tracing what process would have 
> filled the swapfile?

Not after the fact, but while it's all happening you can use 'top -osize'
to see the biggest processes you've got running.

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: Setting up an ftp server for anonymous use, freebsd 6.2

2007-02-10 Thread Pietro Cerutti

On 2/10/07, George Greene <[EMAIL PROTECTED]> wrote:

i would like to use freebsd 6.2 to setup an ftp server that allows
anonymous access and does not allow those anonymous user to see any
other directories other than the pub directory where the files will
reside.


The easiest way to do so is via sysinstall:
- become root
- /usr/sbin/sysinstall
- choose Configure, then Networking, then Anon FTP
- set the options at your will...



thanks,

g.


--
Pietro Cerutti
ICQ: 117293691
PGP: 0x9571F78E

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: browser crash some flash animations

2007-02-10 Thread Tijl Coosemans
On Friday 09 February 2007 18:33, [EMAIL PROTECTED] wrote:
> Before this document, there is a patch for browser crash for flash
> player. 
> 
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html
> 
> -
> If you restart your browser the plugin should now appears in the 
> previously mentioned list. Your browser may also crash when playing
> some Flash animations, in this case a patch can help you:
> 
> # cd /usr/src
> # fetch http://people.FreeBSD.org/~nork/rtld_dlsym_hack.diff
> # patch < rtld_dlsym_hack.diff
> # cd libexec/rtld-elf/
> # make clean
> # make obj
> # make depend
> # make && make install
> 
> Then reboot your machine.
> --
> 
> I think this would be add to documentation because browser crashes
> some web pages.

With the latest version of linuxpluginwrapper that should not be
necessary anymore.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD 6.2 & HAL

2007-02-10 Thread Tijl Coosemans
On Saturday 10 February 2007 04:13, Joe Vender wrote:
> Does the KDE version (3.5.4) that is installed from the packages list on the 
> FreeBSD 6.2 installation CD include support for HAL?

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


Re: FreeBSD 6.2 & HAL

2007-02-10 Thread Simon Phoenix
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Joe Vender said the following on 10.02.2007 05:13:
> Does the KDE version (3.5.4) that is installed from the packages list on the 
> FreeBSD 6.2 installation CD include support for HAL? I installed KDE from the 
> CD set and I've included the options in rc.conf to enable dbus, polkitd and 
> hald and the daemons start during bootup according to the messages, but when 
> I open the Advanced tab under Storage Media in the KDE control center, two of 
> the options are grayed out and not selectable. They are:
> "Enable HAL backend (no support for HAL on this system)"
> "Enable CD polling (no support for CD polling on this system)"
> 
> What must I do to get them enabled?

I have KDE 3.5 with HAL backend support, installed from ports on
6.2-STABLE, but this options are grayed too.
HAL works good.
Maybe this options simply obsoleted.

By default in ports, HAL is off for kdebase.
I have assume, that precompiled version of KDE on CD use this default
behavior. But this is my assumption only.

- --
Best regards,
Simon Phoenix (Phoenix Lab.)
- ---
KeyID: 0x2569D30B
Fingerprint: 78FC 5C40 07CC D331 148E CC79 84B8 D514 2569 D30B
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFzZyehLjVFCVp0wsRCqTOAKD091JczUxGm2s45xxlpr52SjSiUgCglVmF
g4PGYzlYgyyscD5AxF1NUzg=
=anRo
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: skype on freebsd problem

2007-02-10 Thread Simon Phoenix
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

peter said the following on 10.02.2007 09:17:
> Hello, I install skype from port, but skype test call 
> give me "problem with sound device".
> 
> I use freebsd6.2 with kde 3.5.
> 
> Any suggestions?
> 

Try change sound output device address in KDE Control Center.
For example, a have /dev/dsp0.4 in my settings.

- --
Best regards,
Simon Phoenix (Phoenix Lab.)
- ---
KeyID: 0x2569D30B
Fingerprint: 78FC 5C40 07CC D331 148E CC79 84B8 D514 2569 D30B
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFzZiPhLjVFCVp0wsRCsiPAJ9n5pX+Q1MAw3xS92GHlP1ItrTSqQCgoIB1
/BKo4g61JDwN9MAvdmWkKyQ=
=9eX4
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jail and adjkerntz

2007-02-10 Thread Oliver Peter
On Sat, Feb 10, 2007 at 09:21:33AM +0100, Albert Shih wrote:
> Hi all
> 
> I've strange message every 30 min from mail jail (by mail to root) like
> 
>   adjkerntz[21050]: sysctl(put_wallclock): Operation not permitted
>   
> what's that mean ? 

FreeBSD System Manager's Manual   ADJKERNTZ(8)

 adjkerntz -- adjust local time CMOS clock to reflect time zone changes
 and keep current timezone offset for the kernel

You can not do that within a jail.

Just comment out the following line from /etc/crontab:

# Adjust the time zone if the CMOS clock keeps local time, as opposed to
# UTC time.  See adjkerntz(8) for details.
#1,31   0-5 *   *   *   rootadjkerntz -a

-- 
Oliver Peter, email: [EMAIL PROTECTED], ICQ# 113969174
"Worker bees can leave. Even drones can fly away. The Queen is their slave."


pgp90eEduIrA4.pgp
Description: PGP signature


jail and adjkerntz

2007-02-10 Thread Albert Shih
Hi all

I've strange message every 30 min from mail jail (by mail to root) like

adjkerntz[21050]: sysctl(put_wallclock): Operation not permitted
  
what's that mean ? 

Regards.

--
Albert Shih
Observatoire de Paris Meudon
Sam 10 fév 2007 09:20:27 CET
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"