Re: FreeBSD Linux distro

2008-02-22 Thread Jonathan McKeown
On Thursday 21 February 2008 23:03, D G Teed wrote:

 For example, no where in this have I heard a peep about backup
 software. Anyone serious about IT is serious about backup. Yet there
 is no support for EMC (Legato) Networker in FreeBSD, and this is why
 our organization is migrating away from this FreeBSD.

Petty quibble: I suspect that you mean ``there is no support for FreeBSD in
EMC Networker'' rather than the other way round. Picking a backup solution
that can't back up some of your servers, and opting to fix the problem by
getting rid of the servers, seems to me to be doing things the wrong way
round - irrespective of which OS you're forcing yourself to get rid of.

Of course, EMC Networker may be so much better than any other backup
solution as to justify the work involved in moving working services
to a different platform - I don't know Networker so I can't really
comment, although I agree with most of what you said about making
sure you pick a platform which supports what you're trying to do.
I say most because my own feeling as a sysadmin is that you must
have a very good reason to run more than the bare minimum range
of operating systems you can - which is an argument for moving
away from some platforms if you're already running several. I
am in the process of moving from multiple platforms, ranging
from Windows NT4, through e-smith (server-in-a-box based on
Red Hat), Debian, and FreeBSD, from 4.8 up to date. We are
aiming to end up with a bunch of FreeBSD boxes, all using
a standard build from a central buildserver, plus one or
two boxes running Windows Server 2003 supporting users,
who are all running Windows desktops and applications,
including apps which run on the server, with clients
connecting over the network. It's taken a while but
every time we get rid of an old box my workload in
supporting the rest of the system drops a little.
Note: I'm not saying everyone should standardise
on FreeBSD - that's just what I'm most familiar
with at the moment, and when I started to move
things round we had more FreeBSD servers than
anything else, so it made sense to pick that
and bring the rest into line, where we were
able to, especially because the other OSes
were mainly running on hardware which was
due for replacement soon anyway, so that
the migration could be seen as being in
the ordinary course of maintenance and
not extra load on busy systems staff.

(Sorry: when I realised I'd started
my reply with a few lines which by
accident were tapering off at the
ends I couldn't resist trying to
see how long I could keep it up.
It's foolish, I know, but it is
a fun exercise in picking your
words carefully and yet still
trying to make sense. If you
aren't reading with a fixed
width font, you may not be
getting the effect of the
layout anyway: so if you
can't see it, I'm sorry
for taking up yet more
of your time, just to
play about with line
lengths and make up
pretty patterns in
your mail reader.
I'll stop now or
at least once I
can taper down
to the length
of the given
name I sign
off with).

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


Re: FreeBSD Linux distro

2008-02-22 Thread Oliver Herold
Yes! This is the best answer to this question so far. Just UNIX nothing more :-)


--Oliver

Wojciech Puchar [EMAIL PROTECTED] wrote:
 
 by not being linux at all.
 
 FreeBSD is more a server than a desktop system. Ubuntu particularly is
 FreeBSD isn't both desktop or server system. it is just unix - it depends 
 from the user how it's being used.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
Every four seconds a woman has a baby.  Our problem is to find this
woman and stop her.


pgpp7yyxmniKF.pgp
Description: PGP signature


Re: DJ500 dead after = 16 years.

2008-02-22 Thread Predrag Punosevac

Ted Mittelstaedt wrote:
  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Predrag
Punosevac
Sent: Wednesday, February 20, 2008 12:25 PM
To: David Kelly
Cc: Gary Kline; FreeBSD Mailing List
Subject: Re: DJ500 dead after = 16 years.


David Kelly wrote:


On Wed, Feb 20, 2008 at 12:02:25AM -0800, Gary Kline wrote:

  

Nutshell, I'd like anyone's ideas/experiences with some of these
new HP/ or whateverbrand printers. I wouldn't *mind* if I
could scan in text from a techy paper into HTML or PDF or text.
But mostly, like 99.44%  plain black text.  My old deskjet used
gs as a filter to print PostScript.  Do we have any such plugin
support, or are printers still roll-your-own?  [FWIW, I can't
seem to get CUPS working...  altho it maay be my misssing
/dev/lpt0.]


  

Why don't you check http://www.linux-foundation.org/en/OpenPrinting for
the most comprehensive information available.

Just couple a comments. I would keep native LPD spooling system instead
installing CUPS unless you need to use something
like HPLIP drivers.



You do not need CUPS for the hplip drivers, you can use lpd if you
want.

To be perfectly clear on this, all that CUPS is, is 4 things:

Spool manager - LPD does this

Speaks IPP protocol - LPD also does this except it speaks LPR protocol

Easy user interface for the options needed by some of the more complex
filters. - lpd does NOT do this BUT, you can do it by writing
your own filter script and coding the options you want into it.
Note that most options are set once and forget, so CUPS really
doesen't add much here.  CUPS uses Postscript PPD files to automagically
generate the webpage the user fills out to select these options.

web-interface for job mangement - well who needs this for a
personal printer attached to a workstation?

The reason CUPS is used so much is that it dummifies the
chain of hooking together programs into a black box.  So,
people who don't understand what is going on can setup a
printer by clicking buttons.  That is fine if your printer
model is supported.  But if it doesen't work or if the model
is a new one that the cups people haven't quite yet got around
to testing with, or nobody has written a .PPD file for it,
you have to understand what is going on then.

I've posted the following before, but here's the instructions
I use for setting up my C84 without CUPS, so you can see
how this kind of thing works.  They are just a bit old but
still work if you change the version #s.  The setup uses the IJS output
from Ghostscript and feeds it into gimpprint.  The HPLIP
scheme works exactly the same way except that instead of
gimpprint, you use the hpijs driver along with the required
options:

1) setup print queue

Add the following to the end of /etc/printcap:

lp-epson|Epson C84 Color printer:\
:sh:\

:lp=/dev/lpt0:sd=/var/spool/output/lp-epson:lf=/var/log/lpd-errs:mx=0:\
:of=/usr/local/bin/epsonfilter:rw:
lp-epson-raw|Epson C84 Color Printer - raw for Windows systems:\
:sh:\

:lp=/dev/lpt0:sd=/var/spool/output/lp-epson-raw:lf=/var/log/lpd-errs:\
:mx#0:rw:

Create the print queues:

cd /var/spool/output

mkdir lp-epson
mkdir lp-epson-raw

Add in access for the local systems

cat /etc/hosts.lpd
# $FreeBSD: src/etc/hosts.lpd,v 1.4 1999/08/27 23:23:42 peter Exp $
#
# See lpd(8)
#machine.domain
tedwin2k.freebsd-corp-net-guide.com
192.168.1.60
tedsdesk.ipinc.net
ip-port-rtr1.ipinc.net
sunrise.ipinc.net
nat-rtr#

Run some test prints through the queues:

cd /etc
ls -l | lpr -P lp-text

Send a test print page from the Windows 2K workstation
via lpr to the print queue on the BSD box

(do a chmod 664 on the lock file in the lp-epson-raw queue, since network
LPR doesen't set the mask up properly per submitted bug)

2) Install the tools to image a printjob for the Epson, as follows:

cd /usr/ports/print/gimp-print
make WITHOUT_CUPS=yes
cd work/gimp-print-4.2.7/src/escputil
./escputil -i -u -r /dev/lpt0 (checks ink levels)
./escputil -n -u -r /dev/lpt0 (prints nozzle alignment)
(try some other commands to see if the level of support is better)
cd ../../../../
make WITHOUT_CUPS=yes install
cd ../ghostscript-gnu
make install
Deselect all the printers, leave in stp and ijs driver, as well
as all the X-windows drivers and the jpg and other image drivers.

test the ghostscript install:

cd /root
man -t which  which.ps
gs -dBATCH -sDEVICE=jpeg -sOutputFile=test.jpg which.ps
open test.jpg in a browser and see if the page is there

Now test gimpprint and ghostscript:

first manually with the command,

gs -sDEVICE=ijs -sIjsServer=/usr/local/bin/ijsgimpprint -sDeviceManufacturer
=EPSON  -sDeviceModel=escp2-c84 -sIjsParams=Quality=720x360sw,InkType=CMYK
,MediaType=Plain -dIjsUseOutputFD -dNOPAUSE -dBATCH -sOutputFile=test.out
/usr/local/share/ghostscript/7.07/examples/colorcir.ps

lpr -P lp-epson-raw test.out

Create the file 

Re: DJ500 dead after = 16 years.

2008-02-22 Thread Predrag Punosevac

Ted Mittelstaedt wrote:
  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Predrag
Punosevac
Sent: Wednesday, February 20, 2008 10:36 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: DJ500 dead after = 16 years.


Predrag Punosevac wrote:


[EMAIL PROTECTED] wrote:
  

 Guys, I need some input about what kind of _new_ printer to buy
 for my desktops.  I'd like to hang the printer off my FBSD box;
 my Ubuntu platform is probably too far away. At least 3 meters.

  

A few months ago I got a Samsung ML-2571N for well under $100 at
Fry's.  It is small, light, fast; has a built-in 10/100 network
port, handles PostScript, and speaks native lpr 

What is lpr? Usually printers speak Post Script or PCL printer command 
language in which case you need a driver.

LPD, LPRng, and CUPS are different spooling systems.
Did you attach the printer to a computer or is acting as a free 
standing printer server.


  
There is a lpr driver by Brother for Linux. Brother and Canon have 
binary blob drivers. Did you use that driver may be?
Does anyone know if those binary blobs can be useful for anything on 
FreeBSD. They appear to be wrappers for standard

Ghost Script drivers.



They aren't wrappers.  The binary drivers generally take the
intermediate output from the Ghostscript ijs driver and convert
it into whatever the printer understands.  If the binary driver
is statically built then it likely can be run by the linuxulator
under FreeBSD.

Most of the time the binary drivers are wrapped in an install script
that sets all this up.

  
I will actually try to do that as soon as I get my hands on one of those 
Brother printers and see if I can get it to work on FreeBSD and OpenBSD. 
Of course,  I will definitely try to set up my wife's

Photosmart C5250 with only using LPD:-)

Thanks one more time Tad!

Predrag




Ted
___
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]


[OT] PC starter

2008-02-22 Thread Olivier Nicole
Automatically turn on your PC.

It's a common problem, when using desktop hardware to run a server:
after a power failure, the machine needs human action to
restart. High-end desktops and server hardware often have a BIOS
setting to automatically start when power comes back. Using a low-end,
older PC hardware to run some low demanding services is very tempting,
but what to do when the UPS runs out of battery, or when there are no
UPS at all (for security reason, like a system that controls a door,
it may be prefered to avoid using a UPS).

The rest at http://www.cs.ait.ac.th/laboratory/door/pcstarter.shtml

Bests,

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


RE: DJ500 dead after = 16 years.

2008-02-22 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Predrag
 Punosevac
 Sent: Wednesday, February 20, 2008 10:36 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: DJ500 dead after = 16 years.
 
 
 Predrag Punosevac wrote:
  [EMAIL PROTECTED] wrote:
   Guys, I need some input about what kind of _new_ printer to buy
   for my desktops.  I'd like to hang the printer off my FBSD box;
   my Ubuntu platform is probably too far away. At least 3 meters.
  
 
  A few months ago I got a Samsung ML-2571N for well under $100 at
  Fry's.  It is small, light, fast; has a built-in 10/100 network
  port, handles PostScript, and speaks native lpr 
  What is lpr? Usually printers speak Post Script or PCL printer command 
  language in which case you need a driver.
  LPD, LPRng, and CUPS are different spooling systems.
  Did you attach the printer to a computer or is acting as a free 
  standing printer server.
 
 There is a lpr driver by Brother for Linux. Brother and Canon have 
 binary blob drivers. Did you use that driver may be?
 Does anyone know if those binary blobs can be useful for anything on 
 FreeBSD. They appear to be wrappers for standard
 Ghost Script drivers.

They aren't wrappers.  The binary drivers generally take the
intermediate output from the Ghostscript ijs driver and convert
it into whatever the printer understands.  If the binary driver
is statically built then it likely can be run by the linuxulator
under FreeBSD.

Most of the time the binary drivers are wrapped in an install script
that sets all this up.

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


Re: FreeBSD Linux distro

2008-02-22 Thread Da Rock

On Thu, 2008-02-21 at 23:56 -0800, [EMAIL PROTECTED] wrote:
   You need something that costs too much, breaks down a lot,
   and never uses standard parts if they can help it.
 
  Mercedes? :)
 
 Fits the first, dunno about the third.  Certainly not the second --
 Benz are some of the best-engineered and built cars in existence.
 
 Maybe BMW, aka Bunch-a Money Wasted or Bite My Wallet.
 

I wouldn't insult a quality car like that. Ive heard nothing but good
stories about them and it's something I'd buy myself. Very safe to
drive...

Ok. How about the new VW beetle? I've heard they're crap- not as good as
the original, expensive, poorly designed, break down a lot, and driven
by little teeny boppers with money to waste buying just for the frilly
stuff. Does that fit the bill?

We'll take a vote- all in favor say aye... :P

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


RE: DJ500 dead after = 16 years.

2008-02-22 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Gary Kline
 Sent: Thursday, February 21, 2008 11:18 AM
 To: FreeBSD Mailing List
 Subject: Re: DJ500 dead after = 16 years.


 On Wednesday 20 February 2008 21:07:40 [EMAIL PROTECTED] wrote:
Guys, I need some input about what kind of _new_ printer to buy
for my desktops.  I'd like to hang the printer off my FBSD box;
my Ubuntu platform is probably too far away. At least 3 meters.
 
  A few months ago I got a Samsung ML-2571N for well under $100 at
  Fry's.  It is small, light, fast; has a built-in 10/100 network
  port, handles PostScript, and speaks native lpr (so you don't
  need to bother with CUPS).
 
  I am still on the original 1000-page starter cartridge.  Replacements
  are rated 3000 sheets; I haven't priced them.
 
  That's black only.  The cheapest color-capable networked PostScript
  printer I've found so far is the Xerox 6130N, for which I've been
  quoted $375 including $380 worth of cartridges (C, M, Y, K @ $95 each)
  -- Xerox seems to have some promotional pricing this month.  IIRC the
  color cartridges are rated 1900 sheets and the black 2500.  This one
  is also supposed to handle lpr natively.  While I haven't got one (yet),
  I figure it is almost guaranteed to be good -- Xerox do not make junk.


 Great; another printer heard about.SO far the Brother at =
 $200 with 7000
 pages at a $30 cartridge sounds better.I've done mostly the
 academic,
 plain bw over the years.   Hm, well, then I have had some papers
 returned
 with feedback marked in blue in OOo.

 There is a fancy Brother color printer [on sale] at Costco for
 like $700. (!)
 After my heart was shocked back to life, I double-checked.   I
 can't imagine
 what it does for 700 clams, but don't have room for it here anyway.

 Can you use any paper with the laser printers, or does it have to meet a
 certain spec?

Yes it has to meet a certain spec

However, that spec is so widely known and has been so widely
known for something like the last 15 years that any paper you
buy today will meet it.You literally now would have to
special-order copy paper that -wouldn't- meet spec in a laser
printer.

You probably wouldn't do well with something like newsprint
in a laser printer, for example.

Also, these days you can get transparencies that won't melt in
a laser printer.  Of course, it's a little too late for that
as overhead projectors have mostly vanished.

Ted

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


SMP interrupt problem

2008-02-22 Thread Rob

Hi,

I have a system with two dual core CPUS. I have installed 6.3 release and have 
the SMP kernel running.


FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:45:45 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2799.22-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf29  Stepping = 9

Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0x4400CNXT-ID,xTPR
  Logical CPUs per core: 2
real memory  = 1073676288 (1023 MB)
avail memory = 1037307904 (989 MB)
ACPI APIC Table: A M I  OEMAPIC 
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  6
 cpu3 (AP): APIC ID:  7
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 Version 2.0 irqs 0-23 on motherboard
ioapic1 Version 2.0 irqs 24-47 on motherboard
ioapic2 Version 2.0 irqs 48-71 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
hptrr: HPT RocketRAID controller driver v1.1 (Jan 16 2008 04:43:12)
acpi0: A M I OEMRSDT on motherboard
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x408-0x40b on acpi0
cpu0: ACPI CPU on acpi0
acpi_throttle0: ACPI CPU Throttling on cpu0
cpu1: ACPI CPU on acpi0
cpu2: ACPI CPU on acpi0
cpu3: ACPI CPU on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge at device 2.0 on pci0
pci2: ACPI PCI bus on pcib1
pcib2: ACPI PCI-PCI bridge at device 29.0 on pci2
pci4: ACPI PCI bus on pcib2
..
..
..
Timecounters tick every 1.000 msec
hptrr: no controller detected.
ad0: 76319MB WDC WD800JB-00FSA0 77.07W77 at ata0-master UDMA100
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!

Once it is running it seems to just be busy doing interrupts.

When idle top -C -S shows:

last pid:   811;  load averages:  1.00,  0.67,  0.31up 0+00:04:24  07:32:53
65 processes:  6 running, 43 sleeping, 16 waiting
CPU states:  0.0% user,  0.0% nice,  0.0% system, 43.6% interrupt, 56.4% idle
Mem: 7376K Active, 4768K Inact, 18M Wired, 8336K Buf, 963M Free
Swap: 1024M Total, 1024M Free

  PID USERNAME  THR PRI NICE   SIZERES STATE  C   TIMECPU COMMAND
   13 root1 171   52 0K 8K RUN0   3:43 99.02% idle: cpu0
   23 root1 -52 -171 0K 8K CPU2   2   2:51 85.11% irq9: acpi0
   11 root1 171   52 0K 8K RUN2   0:55 12.89% idle: cpu2
   37 root1 171   52 0K 8K pgzero 0   0:00  0.00% pagezero
   15 root1 -32 -151 0K 8K WAIT   0   0:00  0.00% swi4: clock s
0 root1  960 0K 0K WAIT   1   0:00  0.00% swapper
4 root1  -80 0K 8K -  0   0:00  0.00% g_down
3 root1  -80 0K 8K -  0   0:00  0.00% g_up

If anyone has an idea what the problem is I would be grateful for any advice.

Regards,

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


Re: HP LaserJet not uploading firmware permission denied ulpt0

2008-02-22 Thread Charlie
On February 21, 2008 09:08:58 pm you wrote:
 On 2/21/08, Paul Belair [EMAIL PROTECTED] wrote:
  I'm using 6.3 FreeBSD
 
  Is there a fix that works.
 
  I have a hp laserjet 1000 printer.

 You've got to be logged in as the 'root' user, (or a user who has
 write-access to /dev/ulpt0, which by default is only 'root').

 1. Ensure you are the root user. You can check this by executing the
 command: id 2. If you are the root user and it still does not work, what is
 the output of the command: ls -l /dev/ulpt0
 3. What is the exact command you're executing to upload the firmware
 and what is the exact error it reports?

 -Modulok-
Thanks in advance, since you replied I did a fresh install and use kde.  I'm 
awaiting instructions for this machine.
crw-r--r--  1 root  operator0, 129 Feb 22 06:22 /dev/ulpt0



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


Re: setting X11BASE

2008-02-22 Thread Mel
On Friday 22 February 2008 08:07:29 [EMAIL PROTECTED] wrote:
 After updating with portsnap, I am getting an insufficiently-helpful
 error message:

 On FreeBSD before 6.2 ports system unfortunately can not set
 default X11BASE by itself so please help it a bit by setting
 X11BASE=${LOCALBASE} in make.conf.  On the other hand, if
 you do wish to use non-default X11BASE, please set variable
 USE_NONDEFAULT_X11BASE.

 * Am I correct in *guessing* that make.conf refers to
   /etc/make.conf?

Yes.

 * What is the value of LOCALBASE?  I'm not finding any
   definition, or other reference, in /etc/make.conf.

Just set it to ${LOCALBASE} verbatim. Not what you think is the value of the 
variable LOCALBASE but the word ${LOCALBASE}.

 * How do I figure out whether I should set USE_NONDEFAULT_X11BASE?

You don't have to.

 * Why does it even need this?  The port I am trying to install
   ATM (portmaster, to get a handle on the dependency maze) has
   nothing to do with X11.

Because portmaster checks the status of your ports installation for sanity.

 In case it matters, I have not upgraded to the modular Xorg, and
 would prefer not to go through all that.  It ain't broke ...

True, but your portstree is now 'broken', because support for how it used to 
work is being phased out, like the whole X11BASE thing. I think if you 
upgrade anything that depends on xorg, you'll find dependencies being pulled 
in that are part of the modular xorg, unless you really know what you're 
doing.

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


Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Mel
On Friday 22 February 2008 04:26:12 Forrest Aldrich wrote:
 Mel wrote:
 Your extensions.ini has duplicate and non-existing modules. Start here:
 
 mv /usr/local/etc/php/extensions.ini /usr/local/etc/php/extensions.ini.bkp
 sort -u /usr/local/etc/php/extensions.ini.bkp |while read MOD; do
   if test -f /usr/local/lib/php/20060613/${MOD##extension=}; then
  echo $MOD
   fi
 done /usr/local/etc/extensions.ini
 php -v

 I've done this and still have a problem with PHP5 dumping core:

 [EMAIL PROTECTED] /usr/ports/lang/php5]# php -v

 PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 21 2008 21:51:01)
 Copyright (c) 1997-2007 The PHP Group
 Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by
 eAccelerator
with Suhosin v0.9.18, Copyright (c) 2002-2006, by Hardened-PHP Project
 Segmentation fault: 11 (core dumped)

 I tried compiling this without eAccelerator, got the same problem.  I'm now
 trying it without the Suhosin enhancements to see if that's the problem -
 sent a copy of this to the PHP5 port maintainer.

Sorry, the internet is global and my pumpkin time was up.

Suhosin isn't the problem.
What the above did is make sure you have no non-existing modules loading and 
no modules twice. But the sort order was alphabetic and that's why it still 
dumps core.
Some modules depend on eachother and one needs to be loaded before the other 
or it goes to hell. Nothing else you can do then figure out the correct 
order. Experience teaches spl, session and mysqli are common culprits.

spl before sqlite before pdo_sqlite before session before mysqli before 
xmlreader

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


SMP interrupt problem

2008-02-22 Thread Scott Bennett
 On Fri, 22 Feb 2008 11:38:42 + Rob [EMAIL PROTECTED] wrote:
I have a system with two dual core CPUS. I have installed 6.3 release and have 
the SMP kernel running.

FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:45:45 UTC 2008
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2799.22-MHz 686-class CPU)
   Origin = GenuineIntel  Id = 0xf29  Stepping = 9
 
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
   Features2=0x4400CNXT-ID,xTPR
   Logical CPUs per core: 2

 Actually, the above says you have two *single-core* CPUs with
hyperthreading enabled.

real memory  = 1073676288 (1023 MB)
avail memory = 1037307904 (989 MB)
ACPI APIC Table: A M I  OEMAPIC 
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
  cpu2 (AP): APIC ID:  6
  cpu3 (AP): APIC ID:  7
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 Version 2.0 irqs 0-23 on motherboard
ioapic1 Version 2.0 irqs 24-47 on motherboard
ioapic2 Version 2.0 irqs 48-71 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
hptrr: HPT RocketRAID controller driver v1.1 (Jan 16 2008 04:43:12)
acpi0: A M I OEMRSDT on motherboard
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x408-0x40b on acpi0
cpu0: ACPI CPU on acpi0
acpi_throttle0: ACPI CPU Throttling on cpu0
cpu1: ACPI CPU on acpi0
cpu2: ACPI CPU on acpi0
cpu3: ACPI CPU on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge at device 2.0 on pci0
pci2: ACPI PCI bus on pcib1
pcib2: ACPI PCI-PCI bridge at device 29.0 on pci2
pci4: ACPI PCI bus on pcib2
..
..
..
Timecounters tick every 1.000 msec
hptrr: no controller detected.
ad0: 76319MB WDC WD800JB-00FSA0 77.07W77 at ata0-master UDMA100
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!

Once it is running it seems to just be busy doing interrupts.

When idle top -C -S shows:

last pid:   811;  load averages:  1.00,  0.67,  0.31up 0+00:04:24  07:32:53
65 processes:  6 running, 43 sleeping, 16 waiting
CPU states:  0.0% user,  0.0% nice,  0.0% system, 43.6% interrupt, 56.4% idle
Mem: 7376K Active, 4768K Inact, 18M Wired, 8336K Buf, 963M Free
Swap: 1024M Total, 1024M Free

   PID USERNAME  THR PRI NICE   SIZERES STATE  C   TIMECPU COMMAND
13 root1 171   52 0K 8K RUN0   3:43 99.02% idle: cpu0
23 root1 -52 -171 0K 8K CPU2   2   2:51 85.11% irq9: acpi0

 Have you looked to see which device(s) you have at IRQ 9?  Is there some
problem with the device(s)?

11 root1 171   52 0K 8K RUN2   0:55 12.89% idle: cpu2
37 root1 171   52 0K 8K pgzero 0   0:00  0.00% pagezero
15 root1 -32 -151 0K 8K WAIT   0   0:00  0.00% swi4: clock 
 s
 0 root1  960 0K 0K WAIT   1   0:00  0.00% swapper
 4 root1  -80 0K 8K -  0   0:00  0.00% g_down
 3 root1  -80 0K 8K -  0   0:00  0.00% g_up

If anyone has an idea what the problem is I would be grateful for any advice.

 You deleted part of the startup messages, so we can't see what you have
at IRQ 9.  Go back and look at either dmesg(1) output or /var/log/messages
to find out what device(s) interrupt(s) at IRQ 9.  Then check for anything
weird about the device activity.


  Scott Bennett, Comm. ASMELG, CFIAG
**
* Internet:   bennett at cs.niu.edu  *
**
* A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army.   *
*-- Gov. John Hancock, New York Journal, 28 January 1790 *
**
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Multiple versions of PHP

2008-02-22 Thread Mel
On Friday 22 February 2008 04:25:17 patrick wrote:
 I've got a new problem...

Nope, you've got a shoot yourself in the foot problem.

 While I was able to install PHP 5 into a separate location than PHP 4
 (both from ports),

See?
There's a reason ports use CONFLICTS: the ports are conflicting. I don't know 
why people advise using prefixes on conflicting ports - it's not a good 
thing. Actually, it's a bad thing. A really bad thing.

This is what jails are for.

If the maintainer of the php ports would support having both 4 and 5 
installed, he could do it by renaming the CLI binary to php4 and php5 
respectively and in the process break many other ports depending on the fact 
that the cli is called 'php' and more importantly that the pecl-* ports 
depend on phpize giving them the right information. In short: you'll create a 
mess.

Here's what you do:
* Add an IP alias to your network card
* Find some free space on the disk
* read the instructions in jail(8)
* and install php5 (or php4) in the jail.

Now you'll have cleanly seperated php installations and no more prefixing, 
worries about dependencies etc etc. Costs: 400-500M extra diskspace and an 
alias IP, 2-3 hours of work including the build of dependencies. Gains: too 
many to mention.

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


Re: ionCube PHP Encoder / Loader on FreeBSD 6 / 7

2008-02-22 Thread Doug Poland

patrick wrote:

On Thu, Feb 21, 2008 at 8:57 AM, Doug Poland [EMAIL PROTECTED] wrote:

Hello,

 I'm having problems getting ionCube's PHP loader working on either
 6.3-RELEASE or 7.0-RC2 (both i386).  I've followed the install
 instructions, edited php.ini, installed compat5x and compat6x libraries,
 but just cannot get the loader to work.  Both boxes are running PHP 5.2.5.

 Have googled and read the ioncube forums.  I must be missing something
 obvious.

 Thanks in advance...


 Hi Doug,

 You may get more help if you provide some more details like log
 messages or specifics about what is not working.

 Patrick

Hi Patrick,

Thank you for the response.  My error was in the details, as you 
suggested.  I was using this statement for the loader:


zend_extension_ts = 
/usr/local/www/OllaCart/includes/ioncube/ioncube_loader_fre_5.2_ts.so


On my boxes, PHP was built without thread support, so I should have said 
this:


zend_extension = 
/usr/local/www/OllaCart/includes/ioncube/ioncube_loader_fre_5.2.so


Note the (_ts).  Now everything is working great.  Attention to detail...

--
Regards,
Doug

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


Re: FreeBSD Linux distro

2008-02-22 Thread Chess Griffin

Da Rock wrote:

On Thu, 2008-02-21 at 23:56 -0800, [EMAIL PROTECTED] wrote:

You need something that costs too much, breaks down a lot,
and never uses standard parts if they can help it.

Mercedes? :)

Fits the first, dunno about the third.  Certainly not the second --
Benz are some of the best-engineered and built cars in existence.

Maybe BMW, aka Bunch-a Money Wasted or Bite My Wallet.



I wouldn't insult a quality car like that. Ive heard nothing but good
stories about them and it's something I'd buy myself. Very safe to
drive...

Ok. How about the new VW beetle? I've heard they're crap- not as good as
the original, expensive, poorly designed, break down a lot, and driven
by little teeny boppers with money to waste buying just for the frilly
stuff. Does that fit the bill?

We'll take a vote- all in favor say aye... :P




Might I suggest a 1983 Renault Alliance?  The first car I ever owned and 
it was ... what's the word I'm looking for ... ah yes: horrible!  i 
would have traded it for a VW Beetle any day.  :-)


--
Chess Griffin
GPG Key:  0x0C7558C3
http://www.chessgriffin.com



signature.asc
Description: OpenPGP digital signature


Re: setting X11BASE

2008-02-22 Thread Paul Schmehl

--On Thursday, February 21, 2008 23:07:29 -0800 [EMAIL PROTECTED] wrote:


After updating with portsnap, I am getting an insufficiently-helpful
error message:

On FreeBSD before 6.2 ports system unfortunately can not set
default X11BASE by itself so please help it a bit by setting
X11BASE=${LOCALBASE} in make.conf.  On the other hand, if
you do wish to use non-default X11BASE, please set variable
USE_NONDEFAULT_X11BASE.

* Am I correct in *guessing* that make.conf refers to
  /etc/make.conf?



Yes.


* What is the value of LOCALBASE?  I'm not finding any
  definition, or other reference, in /etc/make.conf.



LOCALBASE is /usr/local unless you've changed it (but then you would already 
know what it was if you had.)  You can find its value in /usr/ports/Mk/


grep LOCALBASE?= /usr/ports/Mk/*
/usr/ports/Mk/bsd.port.mk:LOCALBASE?=   /usr/local


* How do I figure out whether I should set USE_NONDEFAULT_X11BASE?


See below.



* Why does it even need this?  The port I am trying to install
  ATM (portmaster, to get a handle on the dependency maze) has
  nothing to do with X11.



It needs it because there are ports in the x11/xorg system that are 
dependencies for ports that have nothing to do with a GUI.  Libraries are 
frequently used to incorporate certain functionalities without having to 
reinvent an already well vetted wheel.



In case it matters, I have not upgraded to the modular Xorg, and
would prefer not to go through all that.  It ain't broke ...


You're going to regret that decision more and more over time.  In fact, if you 
want to stay with the old system, you're probably going to need to put 
USE_NONDEFAULT_X11BASE?=/usr/X11R6 in your make.conf file to keep your ports 
from breaking in interesting ways.


All the ports are now being built with the assumption that X11BASE==LOCALBASE. 
Read /usr/ports/UPDATING carefully before proceeding.


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

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


Re: FreeBSD Linux distro

2008-02-22 Thread Chris Whitehouse

[EMAIL PROTECTED] wrote:

Wojciech Puchar wrote:

use as a desktop system.  Contrary to that impression, I'm sending this

what is desktop system and server system?

AFAIK it just depends of software installed, and it can be both..
___



FreeBSD as a desktop compared to other OS's? I think there are
technical, community and attitude differences which prevent FreeBSD from
competing as a desktop.


There is at least very strong consensus in the OpenBSD community and much
less in FreeBSD community that the systems are developed by developers for
the developer and alike on the base of the
technical merit not cheap tricks. I am as a non-developer just getting a
free ride. FreeBSD is a free system and doesn't have customers to please.
It is developed by the people in their spare time to the best possible for
their needs. (They are not necessary the same as yours and mine)


Those Desktop users that you want to attract would not benefit from FreeBSD
nor FreeBSD community would benefit from them.


I wasn't trying to attract users or change anything, just point out that 
in the context of FreeBSD the difference is not just the different 
software. It's the difference between what interests the FreeBSD 
developers and what the average computer user expects. The OP should be 
aware of this aspect of FreeBSD. Someone else suggested that 
'workstation' would be a better word than 'desktop' for FreeBSD.






Support for USB devices seems better in Linux too. The number of times
people would come in and say why don't you use Linux and I would say
FreeBSD is better and they would say well plug this USB ethernet adapter
in and see if it works then, and it wouldn't.


If you knew how to alter permissions and do auto-mount you would see too.


No this is driver support. But yes if it was usb pen drive then 
devfs.rules, automounter, idesk etc does it.






If you want to do video editing on FreeBSD you can't use the main free
software application, Cinelerra. It's not ported to FreeBSD and from
what I've read it won't be - something to do with ALSA drivers I
believe.


Please, do not even go there.
ALSA vs OSS story is one of the darkest chapters in the Linux development.
Read this before  we go any further

http://4front-tech.com/hannublog/?p=5



Also multimedia functionality generally is far more developed
on Mac and windows.


yes. So what? OS X is life style operating system. My friends in Apple are
making living by pleasing their customers.


That is exactly it - it seems FreeBSD people are not generally 
interested in multimedia, whereas many 'general public' are. Which is 
not a complaint, just to let the OP know what to expect from a FreeBSD 
desktop.





I would be really interested to know how the FreeBSD
kernel compares to the Linux realtime kernel. Are there any recent
benchmarks? Something like Kris Kennaway's fantastic mySQL benchmarks
presentation?



What is your point? Your desktop computer is faster than mine? That is
irrelevant for the discussion about FreeBSD on the desktop.


Realtime refers to the ability of the computer to present an audio 
stream and a video stream synchronised in real time and apparently 
depends on how the kernel does processing, not just how fast your or my 
computer works. It's very relevant to people who want to work with music 
or video.



By the way, I proudly say as mostly OpenBSD user that OpenBSD scales the
worst out of all *nix operating systems.


:)






I'm sure none of these things are impossible, simply I get the
impression they are not very interesting to the people who decide the
direction of FreeBSD.

There are other differences which I think come down to the overall size
of the development community. I'm sure FreeBSD has all the components to
allow a nice icon and directory window appear automagically on the
desktop when you plug your removeable drive or camera in.


It does on mine. You have to know how to configure the damn thing.


Yeah. I personally can't be bothered but many people would be completely 
lost if it didn't. And the size of the development community in Linux 
and probably Microsoft and Apple allows that and all the other 
configuration to be done for you.






I guess there
must be some sort of similarity between the number of people doing
Debian development and the number of people doing FreeBSD development.
The difference with Linux is that there are hundreds of other dev
communities taking Debian or whatever as a starting point and
configuring it for different out-of-the-box use. Hence ubuntu and all
the others.


Hence the PC-BSD, DekstopBSD, TrueBSD, RuFreeSBIE, MidnightBSD and all the
others. There are in total over 40 distros based on FreeBSD. At least 10
of them that I know of have as a stated goal to be customized easy to use
FreeBSD installation on the Desktop.





There are comparatively very few desktop development
projects that take FreeBSD as a starting point.



With all due 

sbc: isa plug-n-play

2008-02-22 Thread Andriy Gapon

I have an older hardware system with a newer OS on it :-)
It's i386 7.0-RC1 on 440BX / Pentium III.
I have the following soundcard in ISA slot on the system:
sbc0: Creative SB AWE64 Gold at port
0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 pnpid CTL00b2 on isa0
sbc0: [GIANT-LOCKED]
sbc0: [ITHREAD]
pcm0: SB16 DSP 4.16 on sbc0

I believe that the soundcard supports ISA Plug-n-Play.

Everything works great. But recently I had an itch to go trough BIOS
settings. I spotted one named Plug-n-Play OS and it was set to
disabled. I thought what the heck FreeBSD is a Plug-n-Play OS for a
long time, so flipped it to enabled.
After that no joy, the soundcard stopped to work. It was detected as
before, there is no difference in dmesg whatsoever, but it did not
generate any interrupts (verified with vmstat -i). And any playback
attempt resulted in zero sound and the following message on console:
pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead

So I disabled the option again and everything is fine.
Practical conclusion: don't do it.
Question of curiosity: what is it that BIOS can do with this card that
our driver can not ?

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


Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich



Mel wrote:

On Friday 22 February 2008 04:26:12 Forrest Aldrich wrote:
  

Mel wrote:


Your extensions.ini has duplicate and non-existing modules. Start here:

mv /usr/local/etc/php/extensions.ini /usr/local/etc/php/extensions.ini.bkp
sort -u /usr/local/etc/php/extensions.ini.bkp |while read MOD; do
 if test -f /usr/local/lib/php/20060613/${MOD##extension=}; then
echo $MOD
 fi
done /usr/local/etc/extensions.ini
php -v
  

I've done this and still have a problem with PHP5 dumping core:

[EMAIL PROTECTED] /usr/ports/lang/php5]# php -v

PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 21 2008 21:51:01)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
   with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by
eAccelerator
   with Suhosin v0.9.18, Copyright (c) 2002-2006, by Hardened-PHP Project
Segmentation fault: 11 (core dumped)

I tried compiling this without eAccelerator, got the same problem.  I'm now
trying it without the Suhosin enhancements to see if that's the problem -
sent a copy of this to the PHP5 port maintainer.



Sorry, the internet is global and my pumpkin time was up.

Suhosin isn't the problem.
What the above did is make sure you have no non-existing modules loading and 
no modules twice. But the sort order was alphabetic and that's why it still 
dumps core.
Some modules depend on eachother and one needs to be loaded before the other 
or it goes to hell. Nothing else you can do then figure out the correct 
order. Experience teaches spl, session and mysqli are common culprits.


spl before sqlite before pdo_sqlite before session before mysqli before 
xmlreader


*usually* works.
  

I tried this and still having core dumps.

This seems like an odd problem that the PHP folk might need to solve 
somehow.


There must be a way to use the php.core file to determine what's causing 
it to crash... not something I've had much experience with.  If I can 
determine where it's crashing, then I can have a better sense of what 
needs to be re-ordered.


I noticed over time as I upgraded php modules that it did put in 
duplicate entries... seems like a bug.



Thanks for your help, I appreciate it ;-)


Forrest

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


Re: FreeBSD Linux distro

2008-02-22 Thread Jerry McAllister
On Fri, Feb 22, 2008 at 02:46:39PM +1000, Da Rock wrote:

 
 On Thu, 2008-02-21 at 20:23 -0800, [EMAIL PROTECTED] wrote:
   When defining the differences to my clients as to windows,
   Linux, and FreeBSD I use a 60's model VW beetle for windows ...
  
  Sheesh!  What did VW do to you to deserve an insult like that?
  
  I still see the occasional beetle on the roads.  I doubt that would
  be the case if they had to be rebooted a couple of times a day.
 
 Do you have a better suggestion? I'd be happy to use it ;) Maybe a
 Sigma?
 

How about that Trabant (I don't know the seplling) that was made in
some eastern bloc country before the wall went down?You were
lucky to get from the house to the store in one of those, especially
if there was a stop along the way that would require restarting the
dead engine because they would not idle.

jerry

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


Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Mel
On Friday 22 February 2008 17:33:12 Forrest Aldrich wrote:
 Mel wrote:
  On Friday 22 February 2008 04:26:12 Forrest Aldrich wrote:
  Mel wrote:
  Your extensions.ini has duplicate and non-existing modules. Start here:
 
  mv /usr/local/etc/php/extensions.ini
  /usr/local/etc/php/extensions.ini.bkp sort -u
  /usr/local/etc/php/extensions.ini.bkp |while read MOD; do if test -f
  /usr/local/lib/php/20060613/${MOD##extension=}; then echo $MOD
   fi
  done /usr/local/etc/extensions.ini
  php -v
 
  I've done this and still have a problem with PHP5 dumping core:
 
  [EMAIL PROTECTED] /usr/ports/lang/php5]# php -v
 
  PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 21 2008 21:51:01)
  Copyright (c) 1997-2007 The PHP Group
  Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
 with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by
  eAccelerator
 with Suhosin v0.9.18, Copyright (c) 2002-2006, by Hardened-PHP
  Project Segmentation fault: 11 (core dumped)
 
  I tried compiling this without eAccelerator, got the same problem.  I'm
  now trying it without the Suhosin enhancements to see if that's the
  problem - sent a copy of this to the PHP5 port maintainer.
 
  Sorry, the internet is global and my pumpkin time was up.
 
  Suhosin isn't the problem.
  What the above did is make sure you have no non-existing modules loading
  and no modules twice. But the sort order was alphabetic and that's why it
  still dumps core.
  Some modules depend on eachother and one needs to be loaded before the
  other or it goes to hell. Nothing else you can do then figure out the
  correct order. Experience teaches spl, session and mysqli are common
  culprits.
 
  spl before sqlite before pdo_sqlite before session before mysqli before
  xmlreader
 
  *usually* works.

 I tried this and still having core dumps.

 This seems like an odd problem that the PHP folk might need to solve
 somehow.

 There must be a way to use the php.core file to determine what's causing
 it to crash... not something I've had much experience with.  If I can
 determine where it's crashing, then I can have a better sense of what
 needs to be re-ordered.

You can, if you see this:
(gdb) bt
#0  0x28e4fe5c in ?? ()
#1  0x2855bb83 in pthread_mutex_destroy () from /lib/libc.so.6
 #2  0x285e74fd in __tcf_1 () from /usr/local/lib/libaspell.so.16
#3  0x2855a97a in __cxa_finalize () from /lib/libc.so.6
 #4  0x285e6e4a in __do_global_dtors_aux () 
from /usr/local/lib/libaspell.so.16
#5  0x2867a204 in _fini () from /usr/local/lib/libaspell.so.16

In this case, it was the pspell module. __do_global_dtors_aux is usually the 
problem - destroying the globals it created.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Linux distro

2008-02-22 Thread Jerry McAllister
On Fri, Feb 22, 2008 at 11:15:00AM +0200, Jonathan McKeown wrote:

 On Thursday 21 February 2008 23:03, D G Teed wrote:
 
  For example, no where in this have I heard a peep about backup
  software. Anyone serious about IT is serious about backup. Yet there
  is no support for EMC (Legato) Networker in FreeBSD, and this is why
  our organization is migrating away from this FreeBSD.
 
 Petty quibble: I suspect that you mean ``there is no support for FreeBSD in
 EMC Networker'' rather than the other way round. Picking a backup solution
 that can't back up some of your servers, and opting to fix the problem by
 getting rid of the servers, seems to me to be doing things the wrong way
 round - irrespective of which OS you're forcing yourself to get rid of.
 
 Of course, EMC Networker may be so much better than any other backup
 solution as to justify the work involved in moving working services
 to a different platform - I don't know Networker so I can't really
 comment, although I agree with most of what you said about making
 sure you pick a platform which supports what you're trying to do.
 I say most because my own feeling as a sysadmin is that you must
 have a very good reason to run more than the bare minimum range
 of operating systems you can - which is an argument for moving
 away from some platforms if you're already running several. I
 am in the process of moving from multiple platforms, ranging
 from Windows NT4, through e-smith (server-in-a-box based on
 Red Hat), Debian, and FreeBSD, from 4.8 up to date. We are
 aiming to end up with a bunch of FreeBSD boxes, all using
 a standard build from a central buildserver, plus one or
 two boxes running Windows Server 2003 supporting users,
 who are all running Windows desktops and applications,
 including apps which run on the server, with clients
 connecting over the network. It's taken a while but
 every time we get rid of an old box my workload in
 supporting the rest of the system drops a little.
 Note: I'm not saying everyone should standardise
 on FreeBSD - that's just what I'm most familiar
 with at the moment, and when I started to move
 things round we had more FreeBSD servers than
 anything else, so it made sense to pick that
 and bring the rest into line, where we were
 able to, especially because the other OSes
 were mainly running on hardware which was
 due for replacement soon anyway, so that
 the migration could be seen as being in
 the ordinary course of maintenance and
 not extra load on busy systems staff.
 
 (Sorry: when I realised I'd started
 my reply with a few lines which by
 accident were tapering off at the
 ends I couldn't resist trying to
 see how long I could keep it up.
 It's foolish, I know, but it is
 a fun exercise in picking your
 words carefully and yet still
 trying to make sense. If you
 aren't reading with a fixed
 width font, you may not be
 getting the effect of the
 layout anyway: so if you
 can't see it, I'm sorry
 for taking up yet more
 of your time, just to
 play about with line
 lengths and make up
 pretty patterns in
 your mail reader.
 I'll stop now or
 at least once I
 can taper down
 to the length
 of the given
 name I sign
 off with).
 
 Jonathan
 (Whew!)

I'm impressed.

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


Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich



Mel wrote:


You can, if you see this:
(gdb) bt
#0  0x28e4fe5c in ?? ()
#1  0x2855bb83 in pthread_mutex_destroy () from /lib/libc.so.6
 #2  0x285e74fd in __tcf_1 () from /usr/local/lib/libaspell.so.16
#3  0x2855a97a in __cxa_finalize () from /lib/libc.so.6
 #4  0x285e6e4a in __do_global_dtors_aux () 
from /usr/local/lib/libaspell.so.16

#5  0x2867a204 in _fini () from /usr/local/lib/libaspell.so.16

In this case, it was the pspell module. __do_global_dtors_aux is usually the 
problem - destroying the globals it created.
  


Seems I cannot use GDB on this due to :

This GDB was configured as 
i386-marcel-freebsd.../usr/local/etc/php/php.core: not in executable 
format: File format not recognized


I tried doing a strings -a to peek around, but it doesn't tell you much.


Thanks...

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


Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich
Sorry Mel, I should have looked at the manpage before replying.  Here is 
the output I got:


# gdb /usr/local/bin/php php.core  
GNU gdb 6.1.1 [FreeBSD]

Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.

Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-marcel-freebsd...(no debugging symbols 
found)...

Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.3...(no debugging symbols 
found)...done.

Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libm.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols 
found)...done.

Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /lib/libz.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging 
symbols found)...done.

Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/lib/php/20060613/eaccelerator.so...(no 
debugging symbols found)...done.

Loaded symbols for /usr/local/lib/php/20060613/eaccelerator.so
Reading symbols from /usr/local/lib/php/20060613/bz2.so...(no debugging 
symbols found)...done.

Loaded symbols for /usr/local/lib/php/20060613/bz2.so
Reading symbols from /usr/lib/libbz2.so.2...(no debugging symbols 
found)...done.

Loaded symbols for /usr/lib/libbz2.so.2
Reading symbols from /usr/local/lib/php/20060613/calendar.so...(no 
debugging symbols found)...done.

Loaded symbols for /usr/local/lib/php/20060613/calendar.so
Reading symbols from /usr/local/lib/php/20060613/pcre.so...(no debugging 
symbols found)...done.

Loaded symbols for /usr/local/lib/php/20060613/pcre.so
Reading symbols from /usr/local/lib/php/20060613/ctype.so...(no 
debugging symbols found)...done.

Loaded symbols for /usr/local/lib/php/20060613/ctype.so
Reading symbols from /usr/local/lib/php/20060613/spl.so...(no debugging 
symbols found)...done.

Loaded symbols for /usr/local/lib/php/20060613/spl.so
Reading symbols from /usr/local/lib/php/20060613/curl.so...(no debugging 
symbols found)...done.

Loaded symbols for /usr/local/lib/php/20060613/curl.so
Reading symbols from /usr/local/lib/libcurl.so.4...(no debugging symbols 
found)...done.

Loaded symbols for /usr/local/lib/libcurl.so.4
Reading symbols from /usr/lib/libssl.so.4...(no debugging symbols 
found)...done.

Loaded symbols for /usr/lib/libssl.so.4
Reading symbols from /lib/libcrypto.so.4...(no debugging symbols 
found)...done.

Loaded symbols for /lib/libcrypto.so.4
Reading symbols from /usr/local/lib/php/20060613/dom.so...(no debugging 
symbols found)...done.

Loaded symbols for /usr/local/lib/php/20060613/dom.so
Reading symbols from /usr/local/lib/php/20060613/exif.so...(no debugging 
symbols found)...done.

Loaded symbols for /usr/local/lib/php/20060613/exif.so
Reading symbols from /usr/local/lib/php/20060613/filter.so...(no 
debugging symbols found)...done.

Loaded symbols for /usr/local/lib/php/20060613/filter.so
Reading symbols from /usr/local/lib/libpcre.so.0...(no debugging symbols 
found)...done.

Loaded symbols for /usr/local/lib/libpcre.so.0
Reading symbols from /usr/local/lib/php/20060613/ftp.so...(no debugging 
symbols found)...done.

Loaded symbols for /usr/local/lib/php/20060613/ftp.so
Reading symbols from /usr/local/lib/php/20060613/gd.so...(no debugging 
symbols found)...done.

Loaded symbols for /usr/local/lib/php/20060613/gd.so
Reading symbols from /usr/local/lib/libt1.so.5...(no debugging symbols 
found)...done.

Loaded symbols for /usr/local/lib/libt1.so.5
Reading symbols from /usr/local/lib/libfreetype.so.9...(no debugging 
symbols found)...done.

Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /usr/local/lib/libX11.so.6...(no debugging symbols 
found)...done.

Loaded symbols for /usr/local/lib/libX11.so.6
Reading symbols from /usr/local/lib/libXpm.so.4...(no debugging symbols 
found)...done.

Loaded symbols for /usr/local/lib/libXpm.so.4
Reading symbols from /usr/local/lib/libpng.so.5...(no debugging symbols 
found)...done.

Loaded symbols for /usr/local/lib/libpng.so.5
Reading symbols from /usr/local/lib/libjpeg.so.9...(no debugging symbols 
found)...done.

Loaded symbols for /usr/local/lib/libjpeg.so.9
Reading symbols from /usr/local/lib/libXau.so.6...(no debugging symbols 
found)...done.

Loaded symbols for /usr/local/lib/libXau.so.6
Reading symbols from /usr/local/lib/libXdmcp.so.6...(no debugging 
symbols found)...done.

Loaded symbols for /usr/local/lib/libXdmcp.so.6
Reading symbols from 

The Complete FreeBSD: errata and addenda

2008-02-22 Thread Greg Lehey
The trouble with books is that you can't update them the way you can a web page
or any other online documentation.  The result is that most leading edge
computer books are out of date almost before they are printed.  Unfortunately,
The Complete FreeBSD, published by O'Reilly, is no exception.  Inevitably, a
number of bugs and changes have surfaced.

The Complete FreeBSD has been through a total of five editions, including its
predecessor Installing and Running FreeBSD.  Two of these have been reprinted
with corrections.  I maintain a series of errata pages.  Start at
http://www.lemis.com/errata-4.html to find out how to get the errata
information.

Note also that the book has now been released for free download in PDF
form.  Instead of downloading the changed pages, you may prefer to
download the entire book.  See http://www.lemis.com/grog/Documentation/CFBSD/ 
for more information.

Have you found a problem with the book, or maybe something confusing?
Please let me know: I'm no longer constantly updating it, but I may be
able to help

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


How to get best results from FreeBSD-questions

2008-02-22 Thread Greg Lehey

How to get the best results from FreeBSD questions.
===

Last update $Date: 2005/08/10 02:21:44 $

This is a regular posting to the FreeBSD questions mailing list.  If
you got it in answer to a message you sent, it means that the sender
thinks that at least one of the following things was wrong with your
message:

- You left out a subject line, or the subject line was not appropriate.
- You formatted it in such a way that it was difficult to read.
- You asked more than one unrelated question in one message.
- You sent out a message with an incorrect date, time or time zone.
- You sent out the same message more than once.
- You sent an 'unsubscribe' message to FreeBSD-questions.

If you have done any of these things, there is a good chance that you
will get more than one copy of this message from different people.
Read on, and your next message will be more successful.

This document is also available on the web at
http://www.lemis.com/questions.html.

=

Contents:

I:Introduction
II:   How to unsubscribe from FreeBSD-questions
III:  Should I ask -questions or -hackers?
IV:   How to submit a question to FreeBSD-questions
V:How to answer a question to FreeBSD-questions

I: Introduction
===

This is a regular posting aimed to help both those seeking advice from
FreeBSD-questions (the newcomers), and also those who answer the
questions (the hackers).

   Note that the term hacker has nothing to do with breaking
   into other people's computers.  The correct term for the latter
   activity is cracker, but the popular press hasn't found out
   yet.  The FreeBSD hackers disapprove strongly of cracking
   security, and have nothing to do with it.

In the past, there has been some friction which stems from the
different viewpoints of the two groups.  The newcomers accused the
hackers of being arrogant, stuck-up, and unhelpful, while the hackers
accused the newcomers of being stupid, unable to read plain English,
and expecting everything to be handed to them on a silver platter.  Of
course, there's an element of truth in both these claims, but for the
most part these viewpoints come from a sense of frustration.

In this document, I'd like to do something to relieve this frustration
and help everybody get better results from FreeBSD-questions.  In the
following section, I recommend how to submit a question; after that,
we'll look at how to answer one.

II:  How to unsubscribe from FreeBSD-questions
==

When you subscribed to FreeBSD-questions, you got a welcome message
from [EMAIL PROTECTED]  In this message, amongst
other things, it told you how to unsubscribe.  Here's a typical
message:

  Welcome to the freebsd-questions@freebsd.org mailing list!

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED]
  
(obviously, substitute your mail address for [EMAIL PROTECTED]).  You can
also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]
  
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including
changing the password, itself) or to unsubscribe.
  
Normally, Mailman will remind you of your freebsd.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

  Here's the general information for the list you've
  subscribed to, in case you don't already have it:

  FREEBSD-QUESTIONS   User questions
  This is the mailing list for questions about FreeBSD.  You should not
  send how to questions to the technical lists unless you consider the
  question to be pretty technical.

Normally, unsubscribing is even simpler than the message suggests: you
don't need to specify your mail ID unless it is different from the one
which you specified when you subscribed.

If Majordomo replies and tells you (incorrectly) that you're not on
the list, this may mean one of two things:

  1.  You have changed your mail ID since you subscribed.  That's where
  keeping the original message from majordomo comes in handy.  For
  example, the sample message above shows my mail ID as
  [EMAIL PROTECTED]  Since then, I have changed it to
  [EMAIL PROTECTED]  If I were to try to remove [EMAIL PROTECTED] from
  the list, it would fail: I would have to specify the name with
  which I joined.

  2.  You're subscribed to a mailing list which is subscribed to
  

Re: automatic fsck on gmirror failure

2008-02-22 Thread Wojciech Puchar


$ grep -i fsck /etc/defaults/rc.conf
fsck_y_enable=NO  # Set to YES to do fsck -y if the initial preen
fails.

gmirror(8) / geom(8) should automatically remove (degrade) components
with bad I/O operations after a certain threshold, but I'm pretty sure
it doesn't.


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


Re: automatic fsck on gmirror failure

2008-02-22 Thread Brian A. Seklecki

On Sun, 2008-02-03 at 23:39 +0100, Wojciech Puchar wrote:
 it failed while rebuilding with badly written data on the disk that was 
 used, while other rebuild.
 
 now it can't read it.
 
 if you are sure that it doesn't pass through fsck before second reboot, do 
 the following.
 
 1) turn off gmirror
 
 2) clear gmirror header on both providers
 
 3) run fsck the other drive (not ad6, but the other used on mirror).
 

Also don't forget about:

$ grep -i fsck /etc/defaults/rc.conf 
fsck_y_enable=NO  # Set to YES to do fsck -y if the initial preen
fails.

gmirror(8) / geom(8) should automatically remove (degrade) components
with bad I/O operations after a certain threshold, but I'm pretty sure
it doesn't.

~BAS


 4) pray
 
 5) after fsck will end it successfully (it should), create gmirror with 
 the disk you checked
 
 gmirror label options gmirror-name /dev/thedisk
 
 6) reboot and start the system. should go well.


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


Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Mel
On Friday 22 February 2008 17:55:38 Forrest Aldrich wrote:
 Sorry Mel, I should have looked at the manpage before replying.  Here is
 the output I got:


 Loaded symbols for /usr/local/lib/php/20060613/eaccelerator.so
 Reading symbols from /usr/local/lib/php/20060613/bz2.so...(no debugging
 symbols found)...done.

 #0  0x28f027c3 in ?? ()
 #1  0x285418fe in _UTF8_init () from /lib/libc.so.6
 #2  0x285c6060 in _thread_autoinit_dummy_decl_stub () from /lib/libc.so.6
===  #3  0x in ?? ()
===  #4  0x28253d91 in free () from /libexec/ld-elf.so.1
 #5  0x0814ee1a in zend_hash_apply_deleter ()
 #6  0x0814ee91 in zend_hash_graceful_reverse_destroy ()
 #7  0x081442d0 in zend_shutdown ()
 #8  0x08104d70 in php_module_shutdown ()
 #9  0x081c8e4c in main ()

Could you disable the accelerator? Can't say I've seen this one before. Just 
add a semi colon ';' in front of the module, leave the order in tact. If it 
still dumps core, then the imap one.

You might have to recompile php and all the modules with debugging support to 
find out what's being free'd there.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: automatic fsck on gmirror failure

2008-02-22 Thread Wojciech Puchar

gmirror(8) / geom(8) should automatically remove (degrade) components
with bad I/O operations after a certain threshold, but I'm pretty sure
it doesn't.

but i'm absolutely sure it does because it did several times for me
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich



Mel wrote:

[ .. ]
Could you disable the accelerator? Can't say I've seen this one before. Just 
add a semi colon ';' in front of the module, leave the order in tact. If it 
still dumps core, then the imap one.


You might have to recompile php and all the modules with debugging support to 
find out what's being free'd there.
  
Interesting, the extension=eaccelerator.so line went missing in 
/usr/local/etc/php/extensions.ini, so I added it.  NOW all I get is this:


# php -v
PHP Fatal error:  [eAccelerator] eAccelerator 0.9.5.2 can not be loaded 
twice in Unknown on line 0


but it's not listed twice there.  I'll keep looking around do you 
know where it might be reloading this?



Thanks,

Forrest

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


Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich


Mel,

I found the duplicate entry, which was in /usr/local/etc/php.ini:

; Zend Extensions
zend_extension=/usr/local/lib/php/20060613/eaccelerator.so
eaccelerator.shm_size=16
eaccelerator.cache_dir=/var/eaccelerator
eaccelerator.enable=1
eaccelerator.optimizer=1
eaccelerator.check_mtime=1
eaccelerator.debug=0
eaccelerator.filter=
eaccelerator.shm_max=0
eaccelerator.shm_ttl=0
eaccelerator.shm_prune_period=0
eaccelerator.shm_only=0
eaccelerator.compress=1
eaccelerator.compress_level=9

I commented out the zend_extension, leaving it in 
/usr/local/etc/php/extensions.ini.


I'll try commenting out imap next.

Still getting:

# php -v
PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 21 2008 22:45:11)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
   with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by 
eAccelerator

Segmentation fault: 11 (core dumped)



Thanks.

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


Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich

I took a shortcut and decided to comment out all extensions but these:

extension=mysql.so
extension=mysqli.so
extension=eaccelerator.so

Now I run php -v and get this:

# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20060613/mysqli.so' - 
/usr/local/lib/php/20060613/mysqli.so: Undefined symbol 
spl_ce_RuntimeException in Unknown on line 0
/libexec/ld-elf.so.1: /usr/local/lib/php/20060613/eaccelerator.so: 
Undefined symbol php_session_register_module


The mysqli.so is there:

-r--r--r--  1 root  wheel  116892 Feb 21 23:45 
/usr/local/lib/php/20060613/mysqli.so


Could be I need to enable another extension to satisfy the last issue 
with the variable, though I wonder if this is a hint at what might be 
wrong...



Thanks.





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


Re: automatic fsck on gmirror failure

2008-02-22 Thread Brian A. Seklecki




On Fri, 22 Feb 2008, Wojciech Puchar wrote:



$ grep -i fsck /etc/defaults/rc.conf
fsck_y_enable=NO  # Set to YES to do fsck -y if the initial preen
fails.

gmirror(8) / geom(8) should automatically remove (degrade) components
with bad I/O operations after a certain threshold, but I'm pretty sure
it doesn't.


yes it does



Maybe my experiences didn't his the threshold.  I'm checking the code now. 
The threshold is likely compile-time adjusable.


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


RE: Computers that us FreeBSD. HELP!!!!

2008-02-22 Thread Ryan Jenkins
Hello,

Thanks for all of the Help!!! 


Ryan Jenkins
  
  P.O. Box 21138
  P:  406 896-9900
  F:  406 896-0045
  C:  406 208-8193
  Email:
[EMAIL PROTECTED]
 
Confidentiality Statement:
This e-mail contains confidential information which also may be privileged.
Unless you are the addressee (or authorized to receive for the addressee),
you may not copy, use, disclose, or distribute the e-mail message or any
information contained in the message.  If you have received this e-mail
message in error, please advise the sender by replying to this message or by
telephone and then promptly delete it.

-Original Message-
From: Jerry McAllister [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 21, 2008 5:51 PM
To: Ryan Jenkins
Cc: 'Jerry McAllister'; 'Erich Dollansky'; freebsd-questions@freebsd.org
Subject: Re: Computers that us FreeBSD. HELP

On Thu, Feb 21, 2008 at 03:42:52PM -0700, Ryan Jenkins wrote:

 Jerry, or Erich,
 
 I am wondering how I could Download the FreeBSD OS to a disk, so I 
 could try and install it on the computers I am trying to get to work?  
 Could you give me some pointers on the process?

This is well documented in the FreeBSD Handbook which you can see online by
going to the FreeBSD web site.

It you are going to install from CD, then you can download the ISO[s]
using anonymous  ftp  from   ftp.freebsd.org

You will need to fish around (cd) in their directories a bit to find the
ISOs, but what you want is disc1 for version 6.3.
Download it to a machine with a CD burner.   Then burn the image
as it is.  Don't try to convert it to an ISO.  It is already an ISO.

If you do not have network access, then you will need to download the first
two CD ISOs and use them.

Plug in the CD and boot it and the adventure begins.

If you must boot from floppies, then download the two floppy images and
write them to formatted floppies as per the handbook instructions.

Boot them and go from there.  You will need network access.


jerry


 
 Ryan Jenkins
   
   P.O. Box 21138
   P:  406 896-9900
   F:  406 896-0045
   C:  406 208-8193
   Email:
 [EMAIL PROTECTED]
  
 Confidentiality Statement:
 This e-mail contains confidential information which also may be
privileged.
 Unless you are the addressee (or authorized to receive for the 
 addressee), you may not copy, use, disclose, or distribute the e-mail 
 message or any information contained in the message.  If you have 
 received this e-mail message in error, please advise the sender by 
 replying to this message or by telephone and then promptly delete it.
 
 -Original Message-
 From: Jerry McAllister [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 18, 2008 5:59 PM
 To: Erich Dollansky
 Cc: [EMAIL PROTECTED]; freebsd-questions@freebsd.org
 Subject: Re: Computers that us FreeBSD. HELP
 
 On Tue, Feb 19, 2008 at 08:48:28AM +0800, Erich Dollansky wrote:
 
  Hi,
  
  Acer, Dell, Fujitsu, HP, IBM, Lenovo, Toshiba plus all the PC built 
  around standard components will do.
  
  If you would be a bit more specific about price, speed and function 
  of the machine, we could help you better.
 
 Yes.  Any servers from those vendors will work.
 Plus, there are a couple of companies that claim to produce systems 
 expecially for running FreeBSD servers.
 
   Some are:   http://www.freedomtc.com/
   http://www.ixsystems.com/
   http://www.ironsystems.com/index.asp
 
 They don't limit themselves to FreeBSD, but they claim support for it.
 
 jerry
 
 
  
  You might will have problems getting certain machines without 
  operating system.
  
  Erich
  
  Ryan Jenkins wrote:
  Hello,
   
  I currently have a Computer System that is based off the FreeBSD 
  Operating System and I am trying to find a new supplier of hardware.
  Right now I am having a hard time finding a Computer Manufacture 
  that can make a system that uses FreeBSD.  I currently have found a 
  product from MPC or Micron/Gateway that creates systems with no 
  Operating System, but my programmers are having a hard time with 
  getting the software loaded on the system.  Can you please help me 
  find a supplier that builds Desktop or All-in-One computers that 
  will
 operate FreeBSD.
   
   
  
Ryan Jenkins

 

Re: automatic fsck on gmirror failure

2008-02-22 Thread Brian A. Seklecki

On Fri, 22 Feb 2008, Wojciech Puchar wrote:


gmirror(8) / geom(8) should automatically remove (degrade) components
with bad I/O operations after a certain threshold, but I'm pretty sure
it doesn't.


but i'm absolutely sure it does because it did several times for me



Finally I had some time to research.  939 of geom_mirror -- 
kern.geom.mirror.disconnect_on_failure -- It's a newer 6.x thing 
apparently:


Behavior is not tunable.  It happens on a single failure.  I ask about 
tunable behavior because some cheap IDE (Maxtor) disks can fail, then 
recover.


6.3/amd64:

  [EMAIL PROTECTED] /usr/src-RELENG_6_3]# sysctl -a|grep -i kern.geom.mirror
  kern.geom.mirror.sync_requests: 2
  kern.geom.mirror.disconnect_on_failure: 1
  kern.geom.mirror.idletime: 5
  kern.geom.mirror.timeout: 4
  kern.geom.mirror.debug: 0


But:

 FreeBSD wingspan 5.5-RELEASE-p10 FreeBSD 5.5-RELEASE-p10 #0: Fri Jan 12

 [EMAIL PROTECTED]:/home/seklecki$ sysctl -a|grep -i kern.geom.mirror

 kern.geom.mirror.debug: 0
 kern.geom.mirror.timeout: 0
 kern.geom.mirror.idletime: 5
 kern.geom.mirror.reqs_per_sync: 5
 kern.geom.mirror.syncs_per_sec: 1000


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


Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Forrest Aldrich wrote:
 I took a shortcut and decided to comment out all extensions but these:
 
 extension=mysql.so
 extension=mysqli.so
 extension=eaccelerator.so
 
 Now I run php -v and get this:
 
 # php -v
 PHP Warning:  PHP Startup: Unable to load dynamic library
 '/usr/local/lib/php/20060613/mysqli.so' -
 /usr/local/lib/php/20060613/mysqli.so: Undefined symbol
 spl_ce_RuntimeException in Unknown on line 0
 /libexec/ld-elf.so.1: /usr/local/lib/php/20060613/eaccelerator.so:
 Undefined symbol php_session_register_module
 
 The mysqli.so is there:
 
 -r--r--r--  1 root  wheel  116892 Feb 21 23:45
 /usr/local/lib/php/20060613/mysqli.so
 
 Could be I need to enable another extension to satisfy the last issue
 with the variable, though I wonder if this is a hint at what might be
 wrong...

Hmmm...

I've been thinking about methods to make sure the load order of PHP
modules avoids this sort of problem.  Can you try the following and
see if it helps?

   # cp /usr/local/etc/php/extensions.ini{,.bak}
   # cd /usr/local/lib/php/20060613
   # lorder *.so | tsort | tail -r | sed -e 's/^/extension=/'  
/usr/local/etc/php/extensions.ini

Oh, and yes, you do need the php5-spl module to be installed.

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
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHvw+n8Mjk52CukIwRCEbjAJ9EUwIAJ9m9Y8riNvZd/EHIBbt+0wCfat7r
/CMlt9c6goJwWKUwIspr1pE=
=Oke5
-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: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Mel
On Friday 22 February 2008 18:36:59 Forrest Aldrich wrote:
 I took a shortcut and decided to comment out all extensions but these:

 extension=mysql.so
 extension=mysqli.so
 extension=eaccelerator.so

 Now I run php -v and get this:

 # php -v
 PHP Warning:  PHP Startup: Unable to load dynamic library
 '/usr/local/lib/php/20060613/mysqli.so' -
 /usr/local/lib/php/20060613/mysqli.so: Undefined symbol
 spl_ce_RuntimeException in Unknown on line 0
   ^^^
Mysqli needs spl. It uses it's exception code among others.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich

Mel wrote:

On Friday 22 February 2008 18:36:59 Forrest Aldrich wrote:
  

I took a shortcut and decided to comment out all extensions but these:

extension=mysql.so
extension=mysqli.so
extension=eaccelerator.so

Now I run php -v and get this:

# php -v
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/mysqli.so' -
/usr/local/lib/php/20060613/mysqli.so: Undefined symbol
spl_ce_RuntimeException in Unknown on line 0


   ^^^
Mysqli needs spl. It uses it's exception code among others.
  


I'm going to remove all of the PHP5 code and extensions and start all 
over again and see what happens



Thanks.

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


Re: Mounting FS read-only for specific user (or root)

2008-02-22 Thread Andrew Bradford

Mel wrote:

On Thursday 21 February 2008 20:32:37 Andrew Bradford wrote:
  

Erik Norgaard escribió:


I assume the reasoning for this is you want to preserve permissions
and attributes on your backup, so you can't solve this simply by
setting permissions appropriately.
  

Yes, exactly.  Users need to be able to see their own backups, and
nobody else's.



Isn't this what acl's are for? See setfacl(8). I haven't looked into it in 
great detail but seems to me that if you make a subdir owned by the user for 
each backup root for that user and set the acl to only be accessible by user, 
it should work.


  
After playing around with this for a bit, I took Erik's suggestion of 
mounting the backup directory rw in a root-specific area.  I didn't 
think it would work, but my understanding of the permission structure in 
UNIX is flawed, and it does work :)


The setup, for those interested, is as follows:

disk2 mounted read-write in /root/.backup
/root/.backup mounted using nullfs read-only in /backups

drwx-- root wheel /root
drwxr-xr-x root wheel /root/.backup
drwxr-xr-x root wheel /backups


This way, the permissions on /root prevents normal users from writing to 
the backup mount underneath it, even though they may own files and have 
write permissions on those files.


The permissions of the mount point allow users to view the contents and 
restore files, but not write to it because the nullfs mount (/backups) 
is read-only.  General users are unable to write to the read-write mount 
point (/root/.backup) because the permission of the parent directory 
(/root) is 700.


This allows the backup process to write to the backup filesystem, yet 
still prevents normal users from writing to it.


I think this setup could be improved as I'm simply relying on file 
permissions to keep the backup filesystem read-only for normal users.  
The problem is not having the ability to mount a filesystem read-write 
for a specific user -- regardless of the permissions of files on that 
filesystem.


Thanks Erik and Mel for the help with this!

Andrew

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


Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich

Mel,

I recompiled php5 with debugging enabled; but it seems the FreeBSD 
php5-extensions build ignores this flag and compiles the extensions 
as-is.  No option in their makefile.


Anyway, here's the output... I don't think it really says much than before.

Thanks,

Forrest


# php -v
PHP Warning:  PHP Startup: pdf: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: session: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: bz2: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: calendar: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: ctype: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: curl: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: pcre: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: SimpleXML: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: SPL: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: dom: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: exif: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: filter: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: ftp: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: gd: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: gettext: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: gmp: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: hash: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: iconv: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: imap: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHPcompiled with module API=20060613, debug=1, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning:  PHP Startup: json: Unable to initialize module

tape splitter

2008-02-22 Thread Wojciech Puchar

anybody know program to split data (from stdin) on tapes like that

something|splittotapes /dev/sa0

and then

concattapes /dev/sa0 |something


i know dump do this, but i need other thing to be written to more than 1 
tape.


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


Re: 6.3-STABLE Apache 2.0 uses high CPU when restarted....

2008-02-22 Thread Forrest Aldrich

Mel, etc.,

I downgraded my system back to MySQL-4.1 (where I had updated to 
MySQL-5.1) and this has solved the problem.


Lesson:  don't upgrade your FreeBSD-6.3/Apache-2.0 system to MySQL-5.x 
without making sure it works first ;-)  Of course, there was no way I 
could have predicted this problem. I suspect it would work fine on 
Linux, however.


I didn't really solve the problem specifically - in terms of the 
error, but this worked.



Thanks for your help.


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


RE: Computers that us FreeBSD. HELP!!!!

2008-02-22 Thread Ryan Jenkins
Jerry or Erich,

Do you know if FreeBSD will support the following Chipset and Soft Bridge
Controller?

Chipset: Intel Q965
Soft Bridge Controller: Intel ICH8DO


 


Ryan Jenkins
  
  P.O. Box 21138
  P:  406 896-9900
  F:  406 896-0045
  C:  406 208-8193
  Email:
[EMAIL PROTECTED]
 
Confidentiality Statement:
This e-mail contains confidential information which also may be privileged.
Unless you are the addressee (or authorized to receive for the addressee),
you may not copy, use, disclose, or distribute the e-mail message or any
information contained in the message.  If you have received this e-mail
message in error, please advise the sender by replying to this message or by
telephone and then promptly delete it.

-Original Message-
From: Jerry McAllister [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 21, 2008 5:51 PM
To: Ryan Jenkins
Cc: 'Jerry McAllister'; 'Erich Dollansky'; freebsd-questions@freebsd.org
Subject: Re: Computers that us FreeBSD. HELP

On Thu, Feb 21, 2008 at 03:42:52PM -0700, Ryan Jenkins wrote:

 Jerry, or Erich,
 
 I am wondering how I could Download the FreeBSD OS to a disk, so I 
 could try and install it on the computers I am trying to get to work?  
 Could you give me some pointers on the process?

This is well documented in the FreeBSD Handbook which you can see online by
going to the FreeBSD web site.

It you are going to install from CD, then you can download the ISO[s]
using anonymous  ftp  from   ftp.freebsd.org

You will need to fish around (cd) in their directories a bit to find the
ISOs, but what you want is disc1 for version 6.3.
Download it to a machine with a CD burner.   Then burn the image
as it is.  Don't try to convert it to an ISO.  It is already an ISO.

If you do not have network access, then you will need to download the first
two CD ISOs and use them.

Plug in the CD and boot it and the adventure begins.

If you must boot from floppies, then download the two floppy images and
write them to formatted floppies as per the handbook instructions.

Boot them and go from there.  You will need network access.


jerry


 
 Ryan Jenkins
   
   P.O. Box 21138
   P:  406 896-9900
   F:  406 896-0045
   C:  406 208-8193
   Email:
 [EMAIL PROTECTED]
  
 Confidentiality Statement:
 This e-mail contains confidential information which also may be
privileged.
 Unless you are the addressee (or authorized to receive for the 
 addressee), you may not copy, use, disclose, or distribute the e-mail 
 message or any information contained in the message.  If you have 
 received this e-mail message in error, please advise the sender by 
 replying to this message or by telephone and then promptly delete it.
 
 -Original Message-
 From: Jerry McAllister [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 18, 2008 5:59 PM
 To: Erich Dollansky
 Cc: [EMAIL PROTECTED]; freebsd-questions@freebsd.org
 Subject: Re: Computers that us FreeBSD. HELP
 
 On Tue, Feb 19, 2008 at 08:48:28AM +0800, Erich Dollansky wrote:
 
  Hi,
  
  Acer, Dell, Fujitsu, HP, IBM, Lenovo, Toshiba plus all the PC built 
  around standard components will do.
  
  If you would be a bit more specific about price, speed and function 
  of the machine, we could help you better.
 
 Yes.  Any servers from those vendors will work.
 Plus, there are a couple of companies that claim to produce systems 
 expecially for running FreeBSD servers.
 
   Some are:   http://www.freedomtc.com/
   http://www.ixsystems.com/
   http://www.ironsystems.com/index.asp
 
 They don't limit themselves to FreeBSD, but they claim support for it.
 
 jerry
 
 
  
  You might will have problems getting certain machines without 
  operating system.
  
  Erich
  
  Ryan Jenkins wrote:
  Hello,
   
  I currently have a Computer System that is based off the FreeBSD 
  Operating System and I am trying to find a new supplier of hardware.
  Right now I am having a hard time finding a Computer Manufacture 
  that can make a system that uses FreeBSD.  I currently have found a 
  product from MPC or Micron/Gateway that creates systems with no 
  Operating System, but my programmers are having a hard time with 
  getting the software loaded on the system.  Can you please help me 
  find a supplier that builds Desktop or All-in-One computers that 
  will
 operate FreeBSD.
   
   
  
 

Re: tape splitter

2008-02-22 Thread Derek Ragona

At 01:23 PM 2/22/2008, Wojciech Puchar wrote:

anybody know program to split data (from stdin) on tapes like that

something|splittotapes /dev/sa0

and then

concattapes /dev/sa0 |something


i know dump do this, but i need other thing to be written to more than 1 tape.


Well sonny in the old days we would create a volume with tar or cpio, then 
uuencode it, then run it through split.  You could then move the split 
pieces onto removable media and reassemble it on another system.


To put split piece back together you just cat them:
cat split2 split2  total.uu
then uudecode it to restore the original file.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


FreeBSD diskless workstation and over the network installation via PXE

2008-02-22 Thread vincenzo romero
Hello,

Am new to FreeBSD and relatively new to linux;  I have a CentOS 5.1
PXE/tftpd/dhcpd server; I'd like it to be the build/PXE server where a
bunch of 1U clients could PXE boot and run:

1.  diskless over NFS-Root

In googling, seems like there is a clone script that preps and lets
you generate a root file system structure and let your clients boot
off the network.

I checked the Free BSD Handbook (Chapter 29) where extensive
documentation on setup is outlined, but it assumes that the
PXE/TFTP/NFS/DHCPd servers are FreeBSD;  mine is a CentOS; just want
to support diskless PXE boot for my clients.

Section 29.7.2.9.2 9Usning a Non-FreeBSD server - just indicates that
do a tar/cpio of root; but ensure that special files in /dev are taken
care of ...

my question -

- does anyone have this type of scenario setup?  if so, can you please
share with me your insights/cheat-sheet-how to?
- i'd be interested in understanding the setup of how you handled
copying the /dev files into your exported ROOT directorty ...

Are there any other recommendations ?

thanks in advance!

-- 
best,

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


StorEdge L8+FreeBSD 6.2

2008-02-22 Thread Cesar Vega Calderon
Hi everybody,

I need to configure a Sun Storedge L8 tape library in a box running FreeBSD
6.2, could you please point me to some links or how-to's to be able to
start?

Please answer directly to my e-mail address because I'm not (yet) subscribed
to this list.

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


Re: tape splitter

2008-02-22 Thread Peter Giessel
On Friday, February 22, 2008, at 02:07PM, Derek Ragona [EMAIL PROTECTED] 
wrote:
At 01:23 PM 2/22/2008, Wojciech Puchar wrote:
anybody know program to split data (from stdin) on tapes like that

something|splittotapes /dev/sa0

and then

concattapes /dev/sa0 |something


i know dump do this, but i need other thing to be written to more than 1 tape.

Well sonny in the old days we would create a volume with tar or cpio, then 
uuencode it, then run it through split. 

I believe gtar
( /usr/ports/archivers/gtar   if I recall correctly)
can do this directly.

See the manual for more details:

http://www.gnu.org/software/tar/manual/tar.html#SEC153
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Compiling SoGo on FreeBSD

2008-02-22 Thread Forrest Aldrich
Has anyone had luck compiling the SoGo calendaring server on 
FreeBSD-6.3?  I've found it quite involved and difficult, especially 
with the GNUstep dependencies.  
http://www.inverse.ca/english/contributions/sogo.html.


Thanks in advance.


_F

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


Re: FreeBSD Linux distro

2008-02-22 Thread D G Teed
On 2/22/08, Jonathan McKeown [EMAIL PROTECTED] wrote:
 Petty quibble: I suspect that you mean ``there is no support for FreeBSD in
  EMC Networker'' rather than the other way round. Picking a backup solution
  that can't back up some of your servers, and opting to fix the problem by
  getting rid of the servers, seems to me to be doing things the wrong way
  round - irrespective of which OS you're forcing yourself to get rid of.

Well, we are not going to ditch the Windows Servers, nor run 2 backup solutions,
so FreeBSD must go.  We do have the client that someone made for Legato
6.0 some time ago and we are using that.  A bug report appeared that the
default configure for the client was insecure.  It wasn't fixed after a year
and the FBSD resolution was to drop the client from FBSD packages.

Legato didn't make that FBSD legato 6.0 client package.  Someone
clever from within the FreeBSD developers made it based on
how the package for Linux worked.  From the pattern that
followed, it seems that developer or contributor didn't
maintain it afterward. So from our perspective,
FreeBSD dropped something we have relied
on to make FreeBSD doable in our server
room.  I know, there are always people
who will say: you can't complain, you
go fix it, but I'm sorry I'm not able
to spend the time on it. After all,
not everyone who flies is a
pilot, and no one builds a
plane only for pilots.

I don't hate BSD -
at home I run a
sparcstation
with NetBSD.

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


usb4bsd vs. stock ucom/umodem drivers and pantech px-500

2008-02-22 Thread Josh Paetzel
So in 6.3-RELEASE-p1 both amd64 and i386 I am getting 25K/sec off my sprint 
EVDO pcmcia card.  This is an order of magnitude drop vs. 6.2-R and 7.0-RC1  
7.0 had a habit of panicing after a few minutes of heavy transfer, so I ended 
up downgrading to 6.3-R.

In a search for a solution I gave usb4bsd a try and am back to normal speeds 
(250K/sec)

I'm not sure there is a question here, more just something for other people to 
google.

-- 
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5A8C 11B4 26F9 01F1 27AF AECB


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


Re: DJ500 dead after = 16 years.

2008-02-22 Thread Predrag Punosevac

Predrag Punosevac wrote:

Ted Mittelstaedt wrote:
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Predrag
Punosevac
Sent: Wednesday, February 20, 2008 10:36 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: DJ500 dead after = 16 years.


Predrag Punosevac wrote:
   

[EMAIL PROTECTED] wrote:
 

 Guys, I need some input about what kind of _new_ printer to buy
 for my desktops.  I'd like to hang the printer off my FBSD box;
 my Ubuntu platform is probably too far away. At least 3 meters.
  

A few months ago I got a Samsung ML-2571N for well under $100 at
Fry's.  It is small, light, fast; has a built-in 10/100 network
port, handles PostScript, and speaks native lpr 
What is lpr? Usually printers speak Post Script or PCL printer 
command language in which case you need a driver.

LPD, LPRng, and CUPS are different spooling systems.
Did you attach the printer to a computer or is acting as a free 
standing printer server.


  
There is a lpr driver by Brother for Linux. Brother and Canon have 
binary blob drivers. Did you use that driver may be?
Does anyone know if those binary blobs can be useful for anything on 
FreeBSD. They appear to be wrappers for standard

Ghost Script drivers.



They aren't wrappers.  The binary drivers generally take the
intermediate output from the Ghostscript ijs driver and convert
it into whatever the printer understands.  If the binary driver
is statically built then it likely can be run by the linuxulator
under FreeBSD.

Most of the time the binary drivers are wrapped in an install script
that sets all this up.

  
I will actually try to do that as soon as I get my hands on one of 
those Brother printers and see if I can get it to work on FreeBSD and 
OpenBSD. Of course,  I will definitely try to set up my wife's

Photosmart C5250 with only using LPD:-)

Thanks one more time Tad!

Predrag




Ted,

Would you be so kind to comment on something. According to HPLIP 
web-site in order to unlock the FULL functionality of

all-in-one device one has to use CUPS?

quote:

*Question: How are HPLIP and HPIJS related?*

Answer: HPIJS is a subcomponent of HPLIP. HPIJS provides basic printing 
support for non-postscript printers. HPIJS can operate in any spooler 
environment (including no spooler). HPIJS provides no I/O. HPLIP 
provides I/O for bi-directional communication, scanning, photo card 
access, and toolbox functionality. HPLIP requires the CUPS spooler.


end of quote.

Call me stupid but I do not understand the above. I have used probably 
as you and many other people HPIJS with LPD.
HPIJS are included in HPLIP so I would guess that I could use even the 
same printcap file with HPLIP and it should work.


If I want to unlock scanning I need the hpaio backhands for SANE and 
they are included in HPLIP. Now why the hack
do we need the CUPS. Is it possible that idiotic HP-toolbox talks only 
IPP so that one can not actually get the status of the

toner, paper, and other advanced functions unless use CUPS?

I really apologize for bothering you but I really want to understand how 
HPLIP works.


Best,
Predrag




Ted
___
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: tape splitter

2008-02-22 Thread Wojciech Puchar
uuencode it, then run it through split.  You could then move the split pieces 
onto removable media and reassemble it on another system.


To put split piece back together you just cat them:
cat split2 split2  total.uu
then uudecode it to restore the original file.


i know this but it makes temporary files i would like to avoid.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


CRASH:sleeping thread owns a non-sleepable lock

2008-02-22 Thread Wojciech Puchar
i'm running my program (bash script to be exact), that does process URL 
list by fetching each one with curl and then process etc..


to make it faster i run 30-40 of them in parallel to maximize speed, as 
often there are network stalls and doing many transfers in parallel speed 
it up. all is run with nice -n 20 to not interfere too much with other 
tasks.


it runs on Core2Duo SMP system with 6.2p11/amd64

the script takes some CPU time so system it's quite loaded.

when i first start it it takes about 25% user time and 20% system time.

after half a day doing exactly the same thing, network having same load, 
after processing few millions URL, system time jumps to over 50%, idle 
gets close to zero, system load goes up.


that's strange but it goes on, after about next half a day system crashes 
with sleeping thread owns a non-sleepable lock.


no core dump, after panic kernel hangs.


is there a fix for that? unix is for running multiple parallel tasks, so 
it should not cause crashes!


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