RE: RAID5 degraded - system hangs

2007-03-06 Thread Michel, Dietmar
The Promise Tx4310 has to be a HW raid controller - hopefully ;-))
But to get full access you have to have drivers to support this hardware.
 
In the ata man pages the controller (chip is PDC40719) is mentioned to be 
supported.
But not in the RAID5 mode - that´s my mistake.
 
I just was realy irritated for after buliding up and even after rebooting 
without errors the device ar0 named itself RAID5 ...
 
Maybe I used parts of new code which isn´t finished at all 
 
Thanxs 
 
  Dietmar
 



From: Nikos Vassiliadis [mailto:[EMAIL PROTECTED]
Sent: Tue 3/6/2007 8:48 AM
To: freebsd-questions@freebsd.org
Cc: Michel, Dietmar
Subject: Re: RAID5 degraded - system hangs



On Monday 05 March 2007 17:22, Michel, Dietmar wrote:
[snip]
 Now I made an upgrade using 4 SATA II disks connected to a promise TX4310 
 Raid controller.

This must be a software RAID controller. It uses
software in your OS to do the several RAID levels.
The controller simply acts as a RAID controller
and then passes the real job to the OS.


 Defining a RAID5 a bios level, starting the server and building up the Raid 
 at OS level:
 And now I have a functional Raid named ar0.

No you probably don't have a functional RAID5 setup.
Please read the ataraid manual page. It says that
RAID5 is not supported.

[snip]
 Any hints?

You can use other RAID levels that are supported
for your controller. You can also use gmirror or
graid3.

HTH, Nikos



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


Re: MySQL Startup Script

2007-03-06 Thread Dan Nelson
In the last episode (Mar 06), Greg 'groggy' Lehey said:
 [Moving to -questions; this isn't really a ports issue]
 
 On Monday,  5 March 2007 at 23:28:53 -0800, Drew Jenkins wrote:
  I built MySQL 5.1 from port on FBSD 6.2. But it doesn't start up on
  boot. There's a mysql-server script in /usr/local/etc/rc.d/ but if
  I try and fire that up from the command line it doesn't start. What
  do I need to do?
 
 You could start by saying how you invoked the script and what happened
 when you tried.  You should see:
 
   # /usr/local/etc/rc.d/mysql-server start
   Starting mysql.

Also make sure you have 

mysql_enable=YES

in your rc.conf file, since it's an rc.subr-style startup script.  See
the mysql-server script itself for more options.

-- 
Dan Nelson
[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: RAID5 degraded - system hangs

2007-03-06 Thread Nikos Vassiliadis
On Tuesday 06 March 2007 10:16, Michel, Dietmar wrote:
 The Promise Tx4310 has to be a HW raid controller - hopefully ;-))

Sorry, but it seems that's not the case...

Supporting RAID levels 0, 1, 5 and 10, the FastTrak TX4310
incorporates Promise's innovative new software RAID 5
solution ...

from here:
http://www.promise.com/company/press/press_news1_eng.asp?press_id=130
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apache2.2.4 - ssl module error

2007-03-06 Thread Vizion


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Vizion
 Sent: Monday, March 05, 2007 9:52 AM
 To: freebsd-questions@freebsd.org
 Subject: apache2.2.4 - ssl module error
 
 Gi
 
 Extract from error.log 
 
 httpd: Syntax error on line 85 after upgrade 
  
 /usr/local/etc/apache22/httpd.conf: Cannot 
 load /usr/local/libexec/apache22/mod_ssl.so into server: /usr
 /local/libexec/apache22/mod_ssl.so: Undefined symbol 
 ap_get_server_banner
 Does anyone know how to fix this?
 
 Thanks in advance
 
 David
 
The problem was resolved by deinstall  clean plus a removal of the ports from 
the ports tree then a cvsup and a new build from scratch.

It works fine now - so it appears the error occured during the upgrade as the 
older version was working fine before the upgrade.


David


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


Portupgrade moved: use --origin to upgrade it?

2007-03-06 Thread Jonathan McKeown
I remember seeing some weeks ago that people had run into difficulties when 
portupgrade moved from sysutils into ports-mgmt, and one recommendation was 
to deinstall portupgrade and then

cd /usr/ports/ports-mgmt/portupgrade
make install

Possibly silly question: will I be able to avoid problems while still using 
portupgrade by simply setting the origin, ie

portupgrade -NR --origin ports-mgmt/portupgrade portupgrade

?

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


Re: MySQL Startup Script

2007-03-06 Thread Gerard Seibert
On Tue, 6 Mar 2007 18:24:39 +1030
Greg 'groggy' Lehey [EMAIL PROTECTED] wrote:

 On Monday,  5 March 2007 at 23:28:53 -0800, Drew Jenkins wrote:
  I built MySQL 5.1 from port on FBSD 6.2. But it doesn't start up on
  boot. There's a mysql-server script in /usr/local/etc/rc.d/ but if I
  try and fire that up from the command line it doesn't start. What do
  I need to do?  
 
 You could start by saying how you invoked the script and what happened
 when you tried.  You should see:
 
   # /usr/local/etc/rc.d/mysql-server start
   Starting mysql.

Have you bothered to place the proper directive in the '/etc/rc,conf'
file; i.e., 

MYSQL_ENABLE=yes

Otherwise, if you want to start it from the command line sans that
statement, you will have to use:

/usr/local/etc/rc.d/mysql-server force

Check out the mysql script in /usr/local/etc/rc.d for further details.


-- 
Gerard

My mother loved children -- she would
have given anything if I had been one.

Groucho Marx


signature.asc
Description: PGP signature


RE: RAID5 degraded - system hangs

2007-03-06 Thread Michel, Dietmar
You are right again ...
I just have a short discussion about the controller with promise support:
It is a software Raid Controller and WebPAM (The Promise Raid software) is the 
interface for building/resync etc.
This interface has some advanced feature but at least you can use a Linux 
SW-Raid ... (the xor calculation for RAID5 is done by the server anyway).

Over all with the technical background I have to redesign my personal goals.

  Dietmar

-Original Message-
From: Nikos Vassiliadis [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 6. März 2007 10:06
To: freebsd-questions@freebsd.org
Cc: Michel, Dietmar
Subject: Re: RAID5 degraded - system hangs

On Tuesday 06 March 2007 10:16, Michel, Dietmar wrote:
 The Promise Tx4310 has to be a HW raid controller - hopefully ;-))

Sorry, but it seems that's not the case...

Supporting RAID levels 0, 1, 5 and 10, the FastTrak TX4310
incorporates Promise's innovative new software RAID 5
solution ...

from here:
http://www.promise.com/company/press/press_news1_eng.asp?press_id=130

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


gjournal and zfs, questions

2007-03-06 Thread Daniel Eriksson

Is gjournal and/or zfs stable enough for production-like usage yet? I've
got a 3.5TB filesystem that I'd rather not have to fsck in case of a
crash or power outage.

I can live with running CURRENT on this box as long as I know the
filesystem is stable. (I'd rather run RELENG_6, but zfs is only for
current afaik.)

When will gjournal and zfs be committed to the CVS tree? Will either of
them be merged to STABLE?

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


ftp set up

2007-03-06 Thread Vizion
Hi

I wonder if someone could point me to a reliable detailed resource for 
configuring an ftp server on freebsd 6.1 for both incoming and outgoing files 
(including anonymous ftp).

I do not want anonymous uploaders to view existing file names in ftp/incoming 
or be able to download from incoming. I want the server as secure as is 
reasonably practicable. The notes in the freebsd handbook are not really 
comprehensive enough for me. 

Thanks in advance

david


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


Re: ftp set up

2007-03-06 Thread Gerard Seibert
On Tue, 6 Mar 2007 4:48:25 -0800
Vizion [EMAIL PROTECTED] wrote:

 I wonder if someone could point me to a reliable detailed resource
 for configuring an ftp server on freebsd 6.1 for both incoming and
 outgoing files (including anonymous ftp).
 
 I do not want anonymous uploaders to view existing file names in
 ftp/incoming or be able to download from incoming. I want the server
 as secure as is reasonably practicable. The notes in the freebsd
 handbook are not really comprehensive enough for me.

You might want to read up on some of the FTP servers that are available
in the ports system. Find one that meets your needs and then if you are
still having problems or questions, either check on the FTP server's
mailing list, if one is available, or post your question here.

-- 
Gerard

Friends, n:
People who borrow your books and set wet glasses on them.

People who know you well, but like you anyway.


signature.asc
Description: PGP signature


Re: ftp set up

2007-03-06 Thread Bill Moran

Please wrap your lines around 72 characters.

In response to Vizion [EMAIL PROTECTED]:
 
 I wonder if someone could point me to a reliable detailed resource for
 configuring an ftp server on freebsd 6.1 for both incoming and outgoing
 files (including anonymous ftp).
 
 I do not want anonymous uploaders to view existing file names in
 ftp/incoming or be able to download from incoming. I want the server as
 secure as is reasonably practicable. The notes in the freebsd handbook are
 not really comprehensive enough for me. 

Please don't do this.  Please don't even try.

Never try to use the word secure in the same sentence as ftp.  They don't
fit in the same sentence.

Set up ssh, then have Windows users use WinSCP.

Let me tell a little story.  A few years back I was asked to set up secure
ftp for a client.  I argued, but he insisted, and the customer is always
right, so I set it up for him.

The plan, to keep it secure, was to enable the FTP server when it was needed,
and disable it when the transfer was complete.

Well, one day he forgot to turn it off.  A few weeks later he went to enable
it for another transfer and noticed a bunch of files on the server he didn't
recognize.

Someone had guessed the password and was using his FTP server to transfer files
of a most unsavory nature.

After we destroyed the files, changed the passwords, etc -- he decided to keep
using the FTP (in spite of the incident).  The only problem, he argued, was
that we'd forgot to turn it off.

But the crook now had our address.  The next time he enabled that server, it
wasn't more than a few hours before the crook was using it to move around
his files again.  The guy must have set up some monitoring to alert him when
the FTP site came up, then he either had a sniffer to get the password or
he was able to brute-force it really fast.

I tell that story when people tell me that the data their transferring isn't
sensitive, and therefore using FTP isn't a security risk.  It still is.  The
only time it's OK to use FTP is when it's download only and the files are
publicly available.  Any other time, FTP is a liability.

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


upgrade, portupgrade or not ?

2007-03-06 Thread jbousseau
Hi everyone,

I actually got a FreeBSD 5.4 for Mail server ( postfix+imp+horde) , and
DNS server with bind.
I really hesitate to upgrade my ports and my BSD because the
configuration of IMP+horde+php is a real mess. 
What are your advices about it ?

Pls notice i'm not a Bsd specialist. Thanx


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


Re: awk question

2007-03-06 Thread Derek Ragona

You can loop through them using a shell script:
for i in `ls -lt | awk '{if ($8 == 2006) print $9}'`;do rm $i;done

-Derek


At 06:35 PM 3/5/2007, Gary Kline wrote:


Guys,

Having found $9 , how do I /bin/rm it (using system()--yes??)
in an awk one-liner?

I'm trying to remove from packages from long ago and find and
print them with

ls -lt | awk '{if ($8 == 2006) print $9}';

but what I want to remove the file pointed at by $9.  I've tried
FILE=ARGV[9]; and using FILE within my system() call, but no-joy.
What's the magic here?

thanks in advance,

gary



--
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

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

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


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

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


Re: Portupgrade moved: use --origin to upgrade it?

2007-03-06 Thread Kevin Kinsey

Jonathan McKeown wrote:
I remember seeing some weeks ago that people had run into difficulties when 
portupgrade moved from sysutils into ports-mgmt, and one recommendation was 
to deinstall portupgrade and then


cd /usr/ports/ports-mgmt/portupgrade
make install

Possibly silly question: will I be able to avoid problems while still using 
portupgrade by simply setting the origin, ie


portupgrade -NR --origin ports-mgmt/portupgrade portupgrade

?

Jonathan


I'm fairly certain that /usr/ports/UPGRADING said what to do.

Kevin Kinsey

--
Is death legally binding?

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


Re: gjournal and zfs, questions

2007-03-06 Thread Ivan Voras
Daniel Eriksson wrote:

 When will gjournal and zfs be committed to the CVS tree? Will either of
 them be merged to STABLE?

GJournal aready is:
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/geom/journal/g_journal.c?rev=1.9content-type=text/x-cvsweb-markup

It's unlikely they will be merged to 6-STABLE because they introduce
lots of changes.



signature.asc
Description: OpenPGP digital signature


apache problem

2007-03-06 Thread eoghan
Hi
I am running apache 2.2.4 on FreeBSD 6.1. This is a recent upgrade from ports 
(in the past few days or so). Since then I cant browse to localhost. Just get 
an unable to connect message. The server seems to start with:
$sudo apachectl start
If I try it again I see its already running.
My error log shows:
[Mon Mar 05 11:20:00 2007] [notice] Apache/2.2.4 (FreeBSD)
mod_ssl/2.2.4 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.1 with Suhosin-Patch
configured -- resuming normal operations
[Mon Mar 05 11:20:22 2007] [notice] caught SIGTERM, shutting down

I have tried the apache list but no real answers, and apache was working fine 
for me before I upgraded. Has anyone else noticed this since an upgrade to the 
2.2.4 version from ports?

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


Re: Laptop lid switch and ACPI

2007-03-06 Thread Norberto Meijome
On Mon, 5 Mar 2007 16:28:06 -0500
frzburn [EMAIL PROTECTED] wrote:

 I need a hint on how to get my screen turn off (backlight too) on my Dell
 Laptop.
 I have an Inspiron 6400 (e1505), and FreeBSD 6 - amd64.

Hi there,
I am not sure how to switch off the screen on the dell (independent of
ACPI)... in all laptops I've seen, it's fully controlled by the hardware
(bios?). 
Have you got acpi working ? 

If you *do* have ACPI working, and you want to see whether it is firing acpi at
all when you close the lid, you can restart devd in debugging mode:

/etc/rc.d/devd stop
devd -dD

and then try your ACPI events.

Also, you should be able to tell your ACPI module to let you handle the events
manually. For example, with the acpi_ibm.ko, the knob 

dev.acpi_ibm.0.events = 1

tells acpi to pass all acpi messages to devd for handling. Search the logs (in
mobile@ , i believe) - i've posted my config for some sample actions on
different ACPI events.

BTW, you may be able to switch off the display using a user mode application
that is related to your video card. For example, if you have a Radeon card, the
radeontool allows you to switch off the panel and external monitor outputs
(although the ext monitor gets switched on when you switch to X's VT)

HIH,
Beto
_
{Beto|Norberto|Numard} Meijome

Against logic there is no armor like ignorance.
  Laurence J. Peter

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Portupgrade moved: use --origin to upgrade it?

2007-03-06 Thread Jonathan McKeown
On Tuesday 06 March 2007 15:32, Kevin Kinsey wrote:
 Jonathan McKeown wrote:

  [can I upgrade portupgrade by]
  portupgrade -NR --origin ports-mgmt/portupgrade portupgrade
  ?

 I'm fairly certain that /usr/ports/UPGRADING said what to do.

I checked UPDATING before I posted: it doesn't, just notes the change 
(20070205).

I've (now) got a spare box I can try it on without turning a drama into a 
crisis if things go wrong.

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


network card setup?

2007-03-06 Thread elaya raj
Hi,
i new to freebsd i want to configure my network card. But i dont know how to 
configure it. after configure the nic card i want to configur ftp also.. so plz 
guid me how to configure the nic card and ftp...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gjournal and zfs, questions

2007-03-06 Thread Vince
Ivan Voras wrote:
 Daniel Eriksson wrote:
 
 When will gjournal and zfs be committed to the CVS tree? Will either of
 them be merged to STABLE?
 
 GJournal aready is:
 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/geom/journal/g_journal.c?rev=1.9content-type=text/x-cvsweb-markup
 
 It's unlikely they will be merged to 6-STABLE because they introduce
 lots of changes.
 
That said there are patches for -STABLE although they are a little stale
now, as changes have been made to stable, however last time i tried only
cosmetic changes were needed (the patches wouldnt apply cleanly because
the file(s) had changed but applying the rejected patches by hand worked
fine, just look for rejects and see why its been rejected. Usually its
because a line has been added to the file or removed and so the line
number in the patch is wrong.)
See Pawels patches at
http://people.freebsd.org/~pjd/patches/
in particular
http://people.freebsd.org/~pjd/patches/gjournal6_20061024.patch
however also search the freebsd-geom and freebsd-current mailing lists
for how to apply them and build with gjournal support (for a start
Before applying the patch, create the following directories in your
source directory:

sbin/geom/class/journal
sys/geom/journal
sys/modules/geom/geom_journal )

That said I've a 6.2-RELEASE box thats got /var and /usr journaled and
its been running happily for a month and a half. Give a scary sounding
message in dmesg about
GEOM_JOURNAL: Cannot suspend file system /usr (error=35).
but this post
http://lists.freebsd.org/pipermail/freebsd-hackers/2006-August/017894.html
indicates its harmless and i havent seen any problems.

zfs looks cool and i'm intending to try it once I get a spare machine to
run -CURRENT on so i can apply the latest patchset


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


Point of interest: PAIR networks finally moving to 6.2

2007-03-06 Thread Bill Moran

They held on to FreeBSD 4 for a long time ...
http://www.pair.com/support/notices/62-upgrade.html

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


Re: awk question

2007-03-06 Thread Scott Oertel

Gary Kline wrote:

Guys,

Having found $9 , how do I /bin/rm it (using system()--yes??)
in an awk one-liner?

I'm trying to remove from packages from long ago and find and
print them with

ls -lt | awk '{if ($8 == 2006) print $9}';

but what I want to remove the file pointed at by $9.  I've tried
FILE=ARGV[9]; and using FILE within my system() call, but no-joy.
What's the magic here?

thanks in advance,

gary



  


Another way is:

ls -lt | awk '{if ($8 == 2006) print rm -rf $9}' | sh

but I agree, using pkg_delete would be safer:

ls -lt | awk '{if ($8 == 2006) print pkg_delete $9}' | sh

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


started getting repeated bge0: PHY read timed out messages

2007-03-06 Thread Chad Leigh -- Shire.Net LLC

Hi

After running fine for a while, my new server running 6.2-RELEASE  
with latest security patches as of last Thursday or Friday started  
giving the message


bge0: PHY read timed out

and I found the following in the system log

Mar  6 02:59:33 server kernel: bge0: link state changed to DOWN
Mar  6 02:59:36 server kernel: bge0: link state changed to UP
Mar  6 03:00:27 server kernel: bge0: link state changed to DOWN
Mar  6 03:00:29 server kernel: bge0: link state changed to UP
Mar  6 05:09:27 server kernel: bge0: PHY read timed out
Mar  6 05:09:27 server last message repeated 3 times
Mar  6 05:09:27 server kernel: bge0: link state changed to DOWN
Mar  6 05:09:29 server kernel: bge0: PHY read timed out
Mar  6 05:09:50 server last message repeated 79 times
Mar  6 05:09:50 server kernel: bge0: watchdog timeout -- resetting
Mar  6 05:09:50 server kernel: bge0: PHY read timed out
Mar  6 05:09:50 server last message repeated 4 times
Mar  6 05:09:50 server kernel: bge0: RX CPU self-diagnostics failed!
Mar  6 05:09:50 server kernel: bge0: flow-through queue init failed
Mar  6 05:09:50 server kernel: bge0: initialization failure
Mar  6 05:09:52 server kernel: bge0: PHY read timed out
Mar  6 05:10:23 server last message repeated 140 times
Mar  6 05:12:24 server last message repeated 616 times
Mar  6 05:22:26 server last message repeated 2580 times
Mar  6 05:32:28 server last message repeated 2460 times
Mar  6 05:42:30 server last message repeated 2540 times
Mar  6 05:52:32 server last message repeated 2572 times
Mar  6 06:02:33 server last message repeated 2652 times
Mar  6 06:12:34 server last message repeated 2532 times
Mar  6 06:22:35 server last message repeated 2516 times
Mar  6 06:32:37 server last message repeated 2452 times
Mar  6 06:42:38 server last message repeated 2520 times
Mar  6 06:52:39 server last message repeated 2544 times
Mar  6 07:02:39 server last message repeated 2919 times
Mar  6 07:12:41 server last message repeated 2521 times
Mar  6 07:22:43 server last message repeated 2524 times
Mar  6 07:32:44 server last message repeated 2440 times
Mar  6 07:42:45 server last message repeated 2524 times
Mar  6 07:52:48 server last message repeated 2528 times
Mar  6 08:02:50 server last message repeated 2656 times
Mar  6 08:12:51 server last message repeated 2552 times
Mar  6 08:22:53 server last message repeated 2528 times
Mar  6 08:32:55 server last message repeated 2436 times
Mar  6 08:42:57 server last message repeated 2536 times
Mar  6 08:52:58 server last message repeated 2544 times
Mar  6 08:58:55 server last message repeated 1631 times

This appears to be a HW problem at first look.  But when the server  
boots, it works fine for a while (hours, days??)


Here is the id in the boot message

Mar  6 09:01:21 server kernel: bge0: Broadcom BCM5705 A3, ASIC rev.  
0x3003 mem 0xfeab-0xfeab irq 16 at device 14.0 on pci1

Mar  6 09:01:21 server kernel: miibus0: MII bus on bge0
Mar  6 09:01:21 server kernel: brgphy0: BCM5705 10/100/1000baseTX  
PHY on miibus0
Mar  6 09:01:21 server kernel: brgphy0:  10baseT, 10baseT-FDX,  
100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto

Mar  6 09:01:21 server kernel: bge0: Ethernet address: 00:e0:81:61:e9:a0

Is this some sort of SW driver issue or is it a HW issue at first  
glance?  I remember kind of reading about some BGE issues a while back.


Thanks
Chad

---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



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


Re: network card setup?

2007-03-06 Thread Mike Jeays
On Tue, 2007-03-06 at 18:49 +0530, elaya raj wrote:
 Hi,
 i new to freebsd i want to configure my network card. But i dont know how to 
 configure it. after configure the nic card i want to configur ftp also.. so 
 plz guid me how to configure the nic card and ftp...
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

Lots of information in the FreeBSD Handbook.


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-communication.html

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


Re: network card setup?

2007-03-06 Thread Oliver Koch
Hi,

elaya raj wrote:

 i new to freebsd i want to configure my network card. But i dont know how to 
 configure it. after configure the nic card i want to configur ftp also.. so 
 plz guid me how to configure the nic card and ftp...

I think the FreeBSD handbook should help you to do that:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html

Kind regards,

Oliver

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



signature.asc
Description: OpenPGP digital signature


Re: apache problem

2007-03-06 Thread Vizion

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of eoghan
 Sent: Tuesday, March 06, 2007 5:50 AM
 To: freebsd
 Subject: apache problem
 
 Hi
 I am running apache 2.2.4 on FreeBSD 6.1. This is a recent 
 upgrade from ports (in the past few days or so). Since then I 
 cant browse to localhost. Just get an unable to connect 
 message. The server seems to start with:
 $sudo apachectl start
 If I try it again I see its already running.
 My error log shows:
 [Mon Mar 05 11:20:00 2007] [notice] Apache/2.2.4 (FreeBSD)
 mod_ssl/2.2.4 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.1 with Suhosin-Patch
 configured -- resuming normal operations
 [Mon Mar 05 11:20:22 2007] [notice] caught SIGTERM, shutting down
 
 I have tried the apache list but no real answers, and apache 
 was working fine for me before I upgraded. Has anyone else 
 noticed this since an upgrade to the 2.2.4 version from ports?
 
 Thanks
 Eoghan

I had the same problem. Here is how I fixed it:
#apachectl stop
# cd /usr/ports/www/apache22
#make clean
# make deinstall
# rm ./*
Then do a cvsup ports all
now once more
#cd /usr/ports/www/apache22
# make (it will use your stored config)
#make install
#make clean
#apachectl start


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


Re: apache problem

2007-03-06 Thread eoghan
On Tue, 6 Mar 2007 8:25:09 -0800
Vizion [EMAIL PROTECTED] wrote:

  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of eoghan
  Sent: Tuesday, March 06, 2007 5:50 AM
  To: freebsd
  Subject: apache problem
  
  Hi
  I am running apache 2.2.4 on FreeBSD 6.1. This is a recent 
  upgrade from ports (in the past few days or so). Since then I 
  cant browse to localhost. Just get an unable to connect 
  message. The server seems to start with:
  $sudo apachectl start
  If I try it again I see its already running.
  My error log shows:
  [Mon Mar 05 11:20:00 2007] [notice] Apache/2.2.4 (FreeBSD)
  mod_ssl/2.2.4 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.1 with Suhosin-Patch
  configured -- resuming normal operations
  [Mon Mar 05 11:20:22 2007] [notice] caught SIGTERM, shutting down
  
  I have tried the apache list but no real answers, and apache 
  was working fine for me before I upgraded. Has anyone else 
  noticed this since an upgrade to the 2.2.4 version from ports?
  
  Thanks
  Eoghan
 
 I had the same problem. Here is how I fixed it:
 #apachectl stop
 # cd /usr/ports/www/apache22
 #make clean
 # make deinstall
 # rm ./*
 Then do a cvsup ports all
 now once more
 #cd /usr/ports/www/apache22
 # make (it will use your stored config)
 #make install
 #make clean
 #apachectl start

Hi
Gret, thanks for that, I will give this a go.
Regards
Eoghan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: apache problem

2007-03-06 Thread Vizion
 

 -Original Message-
 From: eoghan [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 06, 2007 8:28 AM
 To: Vizion
 Cc: freebsd-questions@freebsd.org; [EMAIL PROTECTED]
 Subject: Re: apache problem
 
 On Tue, 6 Mar 2007 8:25:09 -0800
 Vizion [EMAIL PROTECTED] wrote:
 
   -Original Message-
   From: [EMAIL PROTECTED] 
   [mailto:[EMAIL PROTECTED] On Behalf Of eoghan
   Sent: Tuesday, March 06, 2007 5:50 AM
   To: freebsd
   Subject: apache problem
   
   Hi
   I am running apache 2.2.4 on FreeBSD 6.1. This is a recent 
   upgrade from ports (in the past few days or so). Since then I 
   cant browse to localhost. Just get an unable to connect 
   message. The server seems to start with:
   $sudo apachectl start
   If I try it again I see its already running.
   My error log shows:
   [Mon Mar 05 11:20:00 2007] [notice] Apache/2.2.4 (FreeBSD)
   mod_ssl/2.2.4 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.1 with Suhosin-Patch
   configured -- resuming normal operations
   [Mon Mar 05 11:20:22 2007] [notice] caught SIGTERM, shutting down
   
   I have tried the apache list but no real answers, and apache 
   was working fine for me before I upgraded. Has anyone else 
   noticed this since an upgrade to the 2.2.4 version from ports?
   
   Thanks
   Eoghan
  
  I had the same problem. Here is how I fixed it:
  #apachectl stop
  # cd /usr/ports/www/apache22
  #make clean
  # make deinstall
  # rm ./*
  Then do a cvsup ports all
  now once more
  #cd /usr/ports/www/apache22
  # make (it will use your stored config)
  #make install
  #make clean
  #apachectl start
 
 Hi
 Gret, thanks for that, I will give this a go.
 Regards
 Eoghan
 
all the best
please let me know if it works 4U
-- I have made a posting on [EMAIL PROTECTED] -- so the maintainer knows 
aboutthe problem. If this also works for you it should not be too difficult for 
someone to fix the port.
David

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


using sysinstall upgrade as a repair solution

2007-03-06 Thread Joshua Kordani

Hello all!
I was running 5.1 release till pretty much last week when I believe the
machine experienced an unplanned powercycle.  since then i get an error
about libedit.so.4 being missing, and being required by sh, please input
path to sh or hit enter.  ok, so i know about /rescue/sh, and the fixit
option on sysinstall, but i don't know if libraries are anywhere to be found
on the live cd fixit toolkit (i doubt it, i looked in all the places that
made sense to me).  So i figure I might as well reinstall the OS, as that is
why i made separate partitions for user data and system files (so i think,
this is my first unix based system built by me) to apparently facilitate os
reinstallation.  So here is my understanding of how a reinsall is supposed
to go, with the aim of preserving my user stuff.
I set the system up with a 150 meg partition (more than reccomended in the
handbook at the time, and still to my knowledge) on which I put a, a b swap
part, 256 meg d /tmp, 256 meg e /var, and 200odd gig  f /usr. the system was
oringinally intended to be an anonymous ftp repository for me and my
friends, but due to school req's i had to change it to the sftp
backengine(?) of sshd, and it was in /usr/share/public that i put pretty
much everything.  when my friends added tons of crap I eventually added
another 160 gig drive, put a swap part on that too for kicks, and moved the
/home dir to it too. as of last week i only have 10 gigs remaining on that
drive, and oddly enough i am at 106% capcity for the 250 gig drive according
to df, go figure.  So now I figure id open up sysinstall off a cd and use
the upgrade feature first, for either 5.1 or 6.2.  I set / to mount to a,
/tmp to d, /var to e. and i leave f alone, since i dont want that modified
at all.  well, eventually the tool tells me that the filesystem is full and
quits.  Then I try doing a custom install and choose only the required base
files, or a minimal install, and the same thing happens.  Then I figured
that in the worst case i could choose to mount /usr on the 2nd harddrive on
the partition where there are 10 gigs free in the fdisk-like utility step
that the upgrade feature brings one too, and then i get kernel panics.  So i
figure im not doing something right, or im not understanding something, but
it was my intent to separate the / from /usr(or wherever id put stuff) in
order to make the upgrading(or repairing) of the os easier.
If this topic has already been discussed on the list then please tell me so
I can go look in this lists archives wherever they may be stored.
I am also not adverse to reading and note that I've looked through the
handbooks for 5.1 and 6.2 as well as their install.txts. 5.5 disks are
burning now, and im going to give those a try and see what happens.  Thanks!
Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ftp set up

2007-03-06 Thread Vizion
 

 -Original Message-
 From: Bill Moran [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 06, 2007 5:24 AM
 To: Vizion
 Cc: freebsd-questions@freebsd.org
 Subject: Re: ftp set up
 
 
 Please wrap your lines around 72 characters.
 
 In response to Vizion [EMAIL PROTECTED]:
  
  I wonder if someone could point me to a reliable detailed 
 resource for
  configuring an ftp server on freebsd 6.1 for both incoming 
 and outgoing
  files (including anonymous ftp).
  
  I do not want anonymous uploaders to view existing file names in
  ftp/incoming or be able to download from incoming. I want 
 the server as
  secure as is reasonably practicable. The notes in the 
 freebsd handbook are
  not really comprehensive enough for me. 
 
 Please don't do this.  Please don't even try.
 
 -- 
Got yr point -- my guess is you did not use a process to shift files out of the 
the upload directory as soon as they arrived. That way they can be monitored 
and never downloaded. 
I think it is up to each administrator to solve the problems. If you happen to 
have an answer to my original question -- a reliable source of info about ftp 
configuration it would be useful. It is a long time since I ran an ftp server 
and I am rusty.
 
I ran a large number of ftp servers for a long time and suffered many hacking 
attempts but none succeeded on my watch. I agree it is not easy - but necessary
david


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


Re: awk question

2007-03-06 Thread Gary Kline
On Tue, Mar 06, 2007 at 07:27:56AM -0600, Derek Ragona wrote:
 You can loop through them using a shell script:
 for i in `ls -lt | awk '{if ($8 == 2006) print $9}'`;do rm $i;done


This is the safest way to rm or rm -i each file ($i); the 
ls -ls | [awkstuff] spits out the entire list in one chunk.
But since packages from 2006 were OLD, I just /bin/rm'd them
wholesale.  Thanks,

gary

 
 -Derek
 
 
 At 06:35 PM 3/5/2007, Gary Kline wrote:
 
 Guys,
 
 Having found $9 , how do I /bin/rm it (using system()--yes??)
 in an awk one-liner?
 
 I'm trying to remove from packages from long ago and find and
 print them with
 
 ls -lt | awk '{if ($8 == 2006) print $9}';
 
 but what I want to remove the file pointed at by $9.  I've tried
 FILE=ARGV[9]; and using FILE within my system() call, but no-joy.
 What's the magic here?
 
 thanks in advance,
 
 gary
 
 
 
 --
   Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 --
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 MailScanner thanks transtec Computers for their support.
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 MailScanner thanks transtec Computers for their support.
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

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


Re: Portupgrade moved: use --origin to upgrade it?

2007-03-06 Thread Kevin Kinsey

Jonathan McKeown wrote:

On Tuesday 06 March 2007 15:32, Kevin Kinsey wrote:

Jonathan McKeown wrote:


[can I upgrade portupgrade by]
portupgrade -NR --origin ports-mgmt/portupgrade portupgrade
?

I'm fairly certain that /usr/ports/UPGRADING said what to do.


I checked UPDATING before I posted: it doesn't, just notes the change 
(20070205).


I've (now) got a spare box I can try it on without turning a drama into a 
crisis if things go wrong.




I apologize --- I guess I was remembering 20070102 instead, which was 
probably the (sigh) last time I rebuilt portupgrade.


KDK
--
Beware of Programmers who carry screwdrivers.
-- Leonard Brandwein

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


Re: started getting repeated bge0: PHY read timed out messages

2007-03-06 Thread tequnix

 
 After running fine for a while, my new server running 6.2-RELEASE  
 with latest security patches as of last Thursday or Friday started  
 giving the message
 
 bge0: PHY read timed out
 
 and I found the following in the system log
 
 Mar  6 02:59:33 server kernel: bge0: link state changed to DOWN
 Mar  6 02:59:36 server kernel: bge0: link state changed to UP
 Mar  6 03:00:27 server kernel: bge0: link state changed to DOWN
 Mar  6 03:00:29 server kernel: bge0: link state changed to UP
 Mar  6 05:09:27 server kernel: bge0: PHY read timed out
 Mar  6 05:09:27 server last message repeated 3 times
 Mar  6 05:09:27 server kernel: bge0: link state changed to DOWN
 Mar  6 05:09:29 server kernel: bge0: PHY read timed out
 Mar  6 05:09:50 server last message repeated 79 times
 Mar  6 05:09:50 server kernel: bge0: watchdog timeout -- resetting
 Mar  6 05:09:50 server kernel: bge0: PHY read timed out
 Mar  6 05:09:50 server last message repeated 4 times
 Mar  6 05:09:50 server kernel: bge0: RX CPU self-diagnostics failed!
 Mar  6 05:09:50 server kernel: bge0: flow-through queue init failed
 Mar  6 05:09:50 server kernel: bge0: initialization failure
 Mar  6 05:09:52 server kernel: bge0: PHY read timed out
 Mar  6 05:10:23 server last message repeated 140 times
 Mar  6 05:12:24 server last message repeated 616 times
 Mar  6 05:22:26 server last message repeated 2580 times
 Mar  6 05:32:28 server last message repeated 2460 times
 Mar  6 05:42:30 server last message repeated 2540 times
 Mar  6 05:52:32 server last message repeated 2572 times
 Mar  6 06:02:33 server last message repeated 2652 times
 Mar  6 06:12:34 server last message repeated 2532 times
 Mar  6 06:22:35 server last message repeated 2516 times
 Mar  6 06:32:37 server last message repeated 2452 times
 Mar  6 06:42:38 server last message repeated 2520 times
 Mar  6 06:52:39 server last message repeated 2544 times
 Mar  6 07:02:39 server last message repeated 2919 times
 Mar  6 07:12:41 server last message repeated 2521 times
 Mar  6 07:22:43 server last message repeated 2524 times
 Mar  6 07:32:44 server last message repeated 2440 times
 Mar  6 07:42:45 server last message repeated 2524 times
 Mar  6 07:52:48 server last message repeated 2528 times
 Mar  6 08:02:50 server last message repeated 2656 times
 Mar  6 08:12:51 server last message repeated 2552 times
 Mar  6 08:22:53 server last message repeated 2528 times
 Mar  6 08:32:55 server last message repeated 2436 times
 Mar  6 08:42:57 server last message repeated 2536 times
 Mar  6 08:52:58 server last message repeated 2544 times
 Mar  6 08:58:55 server last message repeated 1631 times
 
 This appears to be a HW problem at first look.  But when the server  
 boots, it works fine for a while (hours, days??)
 
 Here is the id in the boot message
 
 Mar  6 09:01:21 server kernel: bge0: Broadcom BCM5705 A3, ASIC rev.  
 0x3003 mem 0xfeab-0xfeab irq 16 at device 14.0 on pci1
 Mar  6 09:01:21 server kernel: miibus0: MII bus on bge0
 Mar  6 09:01:21 server kernel: brgphy0: BCM5705 10/100/1000baseTX  
 PHY on miibus0
 Mar  6 09:01:21 server kernel: brgphy0:  10baseT, 10baseT-FDX,  
 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
 Mar  6 09:01:21 server kernel: bge0: Ethernet address: 00:e0:81:61:e9:a0
 
 Is this some sort of SW driver issue or is it a HW issue at first  
 glance?  I remember kind of reading about some BGE issues a while back.
 
 Thanks
 Chad

sorry, no solution here, just a `me too`:

FreeBSD 6.2-RELEASE #0 i386
(in my case, it started right after upgrading from 6.1-RELEASE to
6.2-RELEASE)

[..]
Mar  4 20:01:39 lyekka kernel: sk0: link state changed to DOWN
Mar  4 20:01:45 lyekka kernel: sk0: link state changed to UP
Mar  4 20:02:18 lyekka kernel: sk0: link state changed to DOWN
Mar  4 20:02:20 lyekka kernel: sk0: link state changed to UP
Mar  4 20:02:35 lyekka kernel: sk0: link state changed to DOWN
Mar  4 20:02:39 lyekka kernel: sk0: link state changed to UP
Mar  4 21:50:35 lyekka kernel: sk0: link state changed to DOWN
Mar  4 21:50:38 lyekka kernel: sk0: link state changed to UP
Mar  4 21:50:52 lyekka kernel: sk0: link state changed to DOWN
Mar  4 21:50:54 lyekka kernel: sk0: link state changed to UP
Mar  5 00:45:00 lyekka kernel: sk0: link state changed to DOWN
Mar  5 05:28:56 lyekka kernel: sk0: phy write timeout
[..]

card is:
[..]
skc0: Linksys EG1032 Gigabit Ethernet port 0xa800-0xa8ff mem
0xef004000-0xef007fff irq 12 at device 7.0 on pci0
skc0: SK-9521 10/100/1000Base-T Adapter rev. (0x1)
sk0: Marvell Semiconductor, Inc. Yukon on skc0
[..]

after some time (it differs, normally after a few days) it is not
possible to send/receive data via this interface.
`ifconfig sk0 down ; ifconfig sk0 up` helps

i notice this UP/DOWN flap when i start/shutdown another machine with
direct connection to that one (nve card on the other side, connected
with kat7 crossover patch cable)

if replaced the (sk) nic, no difference, so i guess this is not a
hardware problem ?


Kerberos authenticatino and ldap authorization

2007-03-06 Thread RJ45


Hello,
I would liek to use FreeBSD as a login ox using krb5 authentication
and ldap authorization.
The KDC kerberos server is another machine as well hte LDAP server,
this freebsd box is a kerberos and ldap client.

Anyone could give me some good hint on hoe to configure hte FreeBSD box in 
this way ?

I tryed to search for infoes but could only get partial informations.

for example I would like to installa MIT krb5 implementation from ports 
instead of using heidmal default this because the kerberos server

on my network is a MIT server and I can't use kadmin on FreeBSD
to administrer the kerberos server remotely using heidmal implementation.
Anyone has experience of MIT krb5 implementation on FreeBSD ?

as well hoe to enable LDAP authorization for logins on FreeBSD ?

thanks

Rick

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


RE: gjournal and zfs, questions

2007-03-06 Thread Daniel Eriksson
Ivan Voras wrote:

 GJournal aready is:
 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/geom/journal/g_j
 ournal.c?rev=1.9content-type=text/x-cvsweb-markup

Thank you for the info!

zfs looks more interesting, but having gjournal in the tree makes it
more convenient.

Any guess on when zfs will hit the regular CVS tree?

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


Re: started getting repeated bge0: PHY read timed out messages

2007-03-06 Thread Chad Leigh -- Shire.Net LLC


On Mar 6, 2007, at 9:20 AM, Chad Leigh -- Shire.Net LLC wrote:


Hi

After running fine for a while, my new server running 6.2-RELEASE  
with latest security patches as of last Thursday or Friday started  
giving the message


Probably should have said  i386 version

# uname -a
FreeBSD server.shire.net 6.2-RELEASE-p2 FreeBSD 6.2-RELEASE-p2 #1:  
Sat Mar  3 13:11:00 UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/ 
src/sys/server  i386

#

Tyan S2850 single opteron 2gb ecc

new install from ISO then cvsup'ed to latest

Chad



bge0: PHY read timed out

and I found the following in the system log

Mar  6 02:59:33 server kernel: bge0: link state changed to DOWN
Mar  6 02:59:36 server kernel: bge0: link state changed to UP
Mar  6 03:00:27 server kernel: bge0: link state changed to DOWN
Mar  6 03:00:29 server kernel: bge0: link state changed to UP
Mar  6 05:09:27 server kernel: bge0: PHY read timed out
Mar  6 05:09:27 server last message repeated 3 times
Mar  6 05:09:27 server kernel: bge0: link state changed to DOWN
Mar  6 05:09:29 server kernel: bge0: PHY read timed out
Mar  6 05:09:50 server last message repeated 79 times
Mar  6 05:09:50 server kernel: bge0: watchdog timeout -- resetting
Mar  6 05:09:50 server kernel: bge0: PHY read timed out
Mar  6 05:09:50 server last message repeated 4 times
Mar  6 05:09:50 server kernel: bge0: RX CPU self-diagnostics failed!
Mar  6 05:09:50 server kernel: bge0: flow-through queue init failed
Mar  6 05:09:50 server kernel: bge0: initialization failure
Mar  6 05:09:52 server kernel: bge0: PHY read timed out
Mar  6 05:10:23 server last message repeated 140 times
Mar  6 05:12:24 server last message repeated 616 times
Mar  6 05:22:26 server last message repeated 2580 times
Mar  6 05:32:28 server last message repeated 2460 times
Mar  6 05:42:30 server last message repeated 2540 times
Mar  6 05:52:32 server last message repeated 2572 times
Mar  6 06:02:33 server last message repeated 2652 times
Mar  6 06:12:34 server last message repeated 2532 times
Mar  6 06:22:35 server last message repeated 2516 times
Mar  6 06:32:37 server last message repeated 2452 times
Mar  6 06:42:38 server last message repeated 2520 times
Mar  6 06:52:39 server last message repeated 2544 times
Mar  6 07:02:39 server last message repeated 2919 times
Mar  6 07:12:41 server last message repeated 2521 times
Mar  6 07:22:43 server last message repeated 2524 times
Mar  6 07:32:44 server last message repeated 2440 times
Mar  6 07:42:45 server last message repeated 2524 times
Mar  6 07:52:48 server last message repeated 2528 times
Mar  6 08:02:50 server last message repeated 2656 times
Mar  6 08:12:51 server last message repeated 2552 times
Mar  6 08:22:53 server last message repeated 2528 times
Mar  6 08:32:55 server last message repeated 2436 times
Mar  6 08:42:57 server last message repeated 2536 times
Mar  6 08:52:58 server last message repeated 2544 times
Mar  6 08:58:55 server last message repeated 1631 times

This appears to be a HW problem at first look.  But when the server  
boots, it works fine for a while (hours, days??)


Here is the id in the boot message

Mar  6 09:01:21 server kernel: bge0: Broadcom BCM5705 A3, ASIC  
rev. 0x3003 mem 0xfeab-0xfeab irq 16 at device 14.0 on pci1

Mar  6 09:01:21 server kernel: miibus0: MII bus on bge0
Mar  6 09:01:21 server kernel: brgphy0: BCM5705 10/100/1000baseTX  
PHY on miibus0
Mar  6 09:01:21 server kernel: brgphy0:  10baseT, 10baseT-FDX,  
100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
Mar  6 09:01:21 server kernel: bge0: Ethernet address:  
00:e0:81:61:e9:a0


Is this some sort of SW driver issue or is it a HW issue at first  
glance?  I remember kind of reading about some BGE issues a while  
back.


Thanks
Chad

---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



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


---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



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


Re: gjournal and zfs, questions

2007-03-06 Thread Ivan Voras
Daniel Eriksson wrote:
 Ivan Voras wrote:
 
 GJournal aready is:
 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/geom/journal/g_j
 ournal.c?rev=1.9content-type=text/x-cvsweb-markup
 
 Thank you for the info!
 
 zfs looks more interesting, but having gjournal in the tree makes it
 more convenient.
 
 Any guess on when zfs will hit the regular CVS tree?

I don't know for sure, but I think the intention is for it to be ready
for 7.0.  Judging from the recent announcement message, it looks like
most problems are solved so it might be soon.



signature.asc
Description: OpenPGP digital signature


Re: ftp set up

2007-03-06 Thread Bill Moran
In response to Vizion [EMAIL PROTECTED]:
 
  -Original Message-
  From: Bill Moran [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, March 06, 2007 5:24 AM
  To: Vizion
  Cc: freebsd-questions@freebsd.org
  Subject: Re: ftp set up
  
  
  Please wrap your lines around 72 characters.
  
  In response to Vizion [EMAIL PROTECTED]:
   
   I wonder if someone could point me to a reliable detailed 
  resource for
   configuring an ftp server on freebsd 6.1 for both incoming 
  and outgoing
   files (including anonymous ftp).
   
   I do not want anonymous uploaders to view existing file names in
   ftp/incoming or be able to download from incoming. I want 
  the server as
   secure as is reasonably practicable. The notes in the 
  freebsd handbook are
   not really comprehensive enough for me. 
  
  Please don't do this.  Please don't even try.
  
  -- 
 Got yr point -- my guess is you did not use a process to shift files out
 of the the upload directory as soon as they arrived. That way they can be
 monitored and never downloaded.

You're still sending out _very_ long lines.

... and no, I didn't use a process to prevent files from being subsequently
downloaded, it would have defeated the purpose of file transfer.

 I think it is up to each administrator to solve the problems. If you
 happen to have an answer to my original question -- a reliable source of
 info about ftp configuration it would be useful. It is a long time since I
 ran an ftp server and I am rusty.

Sorry, I don't.  I haven't set up an FTP server in a long time.  scp has
replaced ftp -- which was my point.

I've done my due-diligence in warning of the dangers ...

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


login.conf questions

2007-03-06 Thread Reuben A. Popp
Hello everyone,

I have set up a few parameters in a few classes in login.conf and reran 
cap_mkdb /etc/login.conf, but some things don't seem to work.

For example, I have the default class configured with idletime=20, but I have 
users able to login and stay in the system for much longer than the defined 
limit.  Usually, it's students here who were working on a project in vi and 
then closed their putty session or something.  

Am I doing something incorrectly or is there other parameters I need to 
specify?

Thanks in advance (again)
Reuben A. Popp


-- 
Reuben A. Popp
Systems Administrator
Information Technology Department
East Central College
1+ 636 583 5195 x2480


pgpHkIqWraA0B.pgp
Description: PGP signature


Re: using sysinstall upgrade as a repair solution

2007-03-06 Thread Kevin Kinsey

Disclaimer:  IANAE.

Joshua Kordani wrote:

Hello all!
I was running 5.1 release till pretty much last week when I believe the
machine experienced an unplanned powercycle.  since then i get an error
about libedit.so.4 being missing, and being required by sh, please input
path to sh or hit enter.  ok, so i know about /rescue/sh, and the fixit
option on sysinstall, but i don't know if libraries are anywhere to be 
found on the live cd fixit toolkit (i doubt it, i looked in all the places that
made sense to me).  


It should live in /lib.  Did you look there?  It might get by (barely) 
with libedit.so.3 or libedit.so5, also, if they are there.


Of course, the executables in /rescue are statically linked, so you

 So i figure I might as well reinstall the OS, as

that is why i made separate partitions for user data and system files (so i 
think,
this is my first unix based system built by me) to apparently facilitate os
reinstallation.  


It's traditional in BSD unix to have separate partitions; the logic is 
lost to me (being shrouded in the mists of time), but it's proved sane 
here a few times.  For example, when one partition gets full, there's 
still some room to move stuff and salvage things without a reinstall ;-)



So here is my understanding of how a reinsall is supposed
to go, with the aim of preserving my user stuff.
I set the system up with a 150 meg partition (more than reccomended in the
handbook at the time, and still to my knowledge) on which I put a, a b swap
part, 256 meg d /tmp, 256 meg e /var, and 200odd gig  f /usr. the system 
was

oringinally intended to be an anonymous ftp repository for me and my
friends, but due to school req's i had to change it to the sftp
backengine(?) of sshd, and it was in /usr/share/public that i put pretty
much everything.  when my friends added tons of crap I eventually added
another 160 gig drive, put a swap part on that too for kicks, and moved the
/home dir to it too. as of last week i only have 10 gigs remaining on that
drive, and oddly enough i am at 106% capcity for the 250 gig drive 
according
to df, go figure.  


Not hard to figure.  The disk is full, including the space reserved for 
accidental overflow.  Take some stuff off --- log files, disk hogging 
sound or video files, etc.


Incidentally, 150MB doesn't seem very large for a root partition IMHO. 
I've not read the handbook recently, but I generally use a gig for /.


Had a situation similar to what you describe recently with a system that 
had been running Desktop BSD.  The default setup there is apparently 
128M or so for / with a separate /tmp of approximately equal size. 
Figuring that /rescue would save me in the event of problems, I moved 
/stand to another partition (one that had *space* though, mind you) and 
linked it to /.  Then my upgrade succeeded, although I was using the 
standard cvsup/make buildworld cycle.



So now I figure id open up sysinstall off a cd and use
the upgrade feature first, for either 5.1 or 6.2.  I set / to mount to a,
/tmp to d, /var to e. and i leave f alone, since i dont want that modified
at all.  well, eventually the tool tells me that the filesystem is full and
quits.  Then I try doing a custom install and choose only the required base
files, or a minimal install, and the same thing happens.  Then I figured
that in the worst case i could choose to mount /usr on the 2nd harddrive on
the partition where there are 10 gigs free in the fdisk-like utility step
that the upgrade feature brings one too, and then i get kernel panics.  


Any indication as to why?  I'd assume that it wasn't finding things as 
it expected, filesystem wise.  Of course, a lot has changed since 5.1, 
so it could be anything.  Most recent panic I've seen that bears any 
resemblance was on a 5.3 system with a devfs statement in /etc/rc.conf 
that was no longer valid, so when it was upgraded to 6.2 (quite a bit 
more recent), devfs panicked on boot.  Removing the config statement 
from said file fixed that.  YMMV, of course.



So i figure im not doing something right, or im not understanding something, but
it was my intent to separate the / from /usr(or wherever id put stuff) in
order to make the upgrading(or repairing) of the os easier.
If this topic has already been discussed on the list then please tell me so
I can go look in this lists archives wherever they may be stored.
I am also not adverse to reading and note that I've looked through the
handbooks for 5.1 and 6.2 as well as their install.txts. 5.5 disks are
burning now, and im going to give those a try and see what happens.  
Thanks!

Josh


You need space on the disk.  Read up on find and du and see what's 
taking the space.  Then use rm and get rid of it.  After that you should 
be able to do an upgrade.  Although if you do like to read docs, I'd 
recommend the standard procedure instead of the sysinstall binary 
upgrade; however, that could be just a user pref, I guess.


KDK
--
Envy, n:
Wishing you'd been born 

Re: ftp set up

2007-03-06 Thread Vizion
In response to Vizion [EMAIL PROTECTED]:
 
  -Original Message-
  From: Bill Moran [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, March 06, 2007 5:24 AM
  To: Vizion
  Cc: freebsd-questions@freebsd.org
  Subject: Re: ftp set up
  
  
  Please wrap your lines around 72 characters.
  
  In response to Vizion [EMAIL PROTECTED]:
   
   I wonder if someone could point me to a reliable detailed 
  resource for
   configuring an ftp server on freebsd 6.1 for both incoming 
  and outgoing
   files (including anonymous ftp).
   
   I do not want anonymous uploaders to view existing file names in
   ftp/incoming or be able to download from incoming. I want 
  the server as
   secure as is reasonably practicable. The notes in the 
  freebsd handbook are
   not really comprehensive enough for me. 
  
  Please don't do this.  Please don't even try.
  
  -- 
 Got yr point -- my guess is you did not use a process to shift files out
 of the the upload directory as soon as they arrived. That way they can be
 monitored and never downloaded.

You're still sending out _very_ long lines.
BTW my standard line length is 80 chars..
I have reduced them for you.
Dont you have a wrap option on your mail reader to set the lines to your 
desired width


... and no, I didn't use a process to prevent files from being subsequently
downloaded, it would have defeated the purpose of file transfer.
Here we differ .. if you did not do that you asked for trouble!!


David

 I think it is up to each administrator to solve the problems. If you
 happen to have an answer to my original question -- a reliable source of
 info about ftp configuration it would be useful. It is a long time since I
 ran an ftp server and I am rusty.

Sorry, I don't.  I haven't set up an FTP server in a long time.  scp has
replaced ftp -- which was my point.

I've done my due-diligence in warning of the dangers ...

Uploading to an ftp server has to be treated as a
process by which the sender offers files to the administrator
who may or may not choose to transfer them to the
download directory. 
IF you let an end user determine what may be made available
and subsequently have trouble well do not blame
ftp blame the administrator!!
IMHO To do otherwise is not exercising due diligence!!

On web sites I follow the same principle -- users cannot add links 
-- only offer them.. same principle!

david
-- 
Bill Moran
http://www.potentialtech.com

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


Re: login.conf questions

2007-03-06 Thread Hugo Silva

Hellom

Reuben A. Popp wrote:

Hello everyone,

I have set up a few parameters in a few classes in login.conf and reran 
cap_mkdb /etc/login.conf, but some things don't seem to work.


For example, I have the default class configured with idletime=20, but I have 
users able to login and stay in the system for much longer than the defined 
limit.  Usually, it's students here who were working on a project in vi and 
then closed their putty session or something.  
  

You can fix that problem by using
ClientAliveInterval 60
ClientAliveCountMax 2

on /etc/ssh/sshd_config

This means clients will be disconnected after 2 tries, spaced by 60 
seconds each.


Am I doing something incorrectly or is there other parameters I need to 
specify?


  
I have tested this and many other login.conf options, such as idletime 
and maximum session times, it seems that these values do nothing, and as 
far back as I can remember (4.4-RELEASE), they never did. Either I've 
been doing something wrong all this time, or they really don't work :)


A more direct answer to your problem (depending on what you're trying to 
solve, if it's just hung users on the 'w' output, the above suggestion 
will fix that) might be sysutils/idled, which is a daemon that does just 
what you want.

Thanks in advance (again)
Reuben A. Popp


  

Regards,

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


RE: Kerberos authenticatino and ldap authorization

2007-03-06 Thread Michael K. Smith - Adhost


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:owner-freebsd-
 [EMAIL PROTECTED] On Behalf Of RJ45
 Sent: Tuesday, March 06, 2007 9:08 AM
 To: freebsd-questions@freebsd.org
 Subject: Kerberos authenticatino and ldap authorization
 
 
 Hello,
 I would liek to use FreeBSD as a login ox using krb5 authentication
 and ldap authorization.
 The KDC kerberos server is another machine as well hte LDAP server,
 this freebsd box is a kerberos and ldap client.
 
 Anyone could give me some good hint on hoe to configure hte FreeBSD
box
 in
 this way ?
 I tryed to search for infoes but could only get partial informations.
 
 for example I would like to installa MIT krb5 implementation from
ports
 instead of using heidmal default this because the kerberos server
 on my network is a MIT server and I can't use kadmin on FreeBSD
 to administrer the kerberos server remotely using heidmal
 implementation.
 Anyone has experience of MIT krb5 implementation on FreeBSD ?
 
 as well hoe to enable LDAP authorization for logins on FreeBSD ?
 
 thanks
 
 Rick


Hello Rick:

Check out
http://joseph.randomnetworks.com/archives/2004/06/21/active-directory-wi
th-nss_ldap-and-pam_ldap/.  It doesn't address your question regarding
MIT Kerberos specifically, but it does give a good overview of using
LDAP for authentication.  Granted, you won't be using it to access an
Active Directory, but the other configuration parameters will apply
(nsswitch.conf, ldap.conf, PAM modules, etc.).

Regards,

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


Re: INTERFACING WITH NTFS

2007-03-06 Thread Parker Brown
Thanks, Jerry.  I've got plenty of disk space and this is probably what I'll 
end up doing.  At the moment I'm following up on fusefs-ntfs port, and 
hoping that will work first.


Parker

- Original Message - 
From: Jerry McAllister [EMAIL PROTECTED]

To: Parker Brown [EMAIL PROTECTED]
Cc: FreeBSD [EMAIL PROTECTED]
Sent: Monday, March 05, 2007 1:07 PM
Subject: Re: INTERFACING WITH NTFS



On Mon, Mar 05, 2007 at 01:04:06PM -0800, Parker Brown wrote:



Using the FreeBSD booter to manage both Windoz XP and FreeBSD 6.1 on the
same SCSI drive.  Under FreeBSD I've got XP mounted, and I've been able 
to
examine the XP directories, but when I try to copy data or the contents 
of

directories from FreeBSD to XP (usingcp -R  ), nothing copies, and I
get error messages that say the TARGET files don't exist.

Is FreeBSD not capable of copying into NTFS?  Has anyone else had the 
same

problem?


This was just discussed on the list late last week.
Yes, FreeBSD can read, but (for the most part) does not write
to NTFS at this point in time.   There are a couple of ports that
claim to write to NTFS.  I haven't tried them.

When I dual boot with MS-NTFS, I actually squeeze the NTFS slice down
just a little further and make a couple or so GB slice in FAT32 that
I can read and write from both FreeBSD and Microsloth.   That means I
am using up 3 rather than 2 slices when dual booting that combination;
NTFS, FAT32, FreeBSD.

I don't know if work is being done to make standard FreeBSD write NTFS.
Search the recent questions archive for the recent exchanges.

jerry




Parker Brown

___
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: using sysinstall upgrade as a repair solution

2007-03-06 Thread Jerry McAllister
On Tue, Mar 06, 2007 at 11:58:24AM -0600, Kevin Kinsey wrote:

 Disclaimer:  IANAE.
 
 Joshua Kordani wrote:
 Hello all!

 ..libedit.so stuff deleted..
 
  So i figure I might as well reinstall the OS, as
 that is why i made separate partitions for user data and system files (so 
 i think,
 this is my first unix based system built by me) to apparently facilitate os
 reinstallation.  
 
 It's traditional in BSD unix to have separate partitions; the logic is 
 lost to me (being shrouded in the mists of time), but it's proved sane 
 here a few times.  For example, when one partition gets full, there's 
 still some room to move stuff and salvage things without a reinstall ;-)

The long ago origins of making things in many partitions was when
disks were much much smaller.  So were backup media.   It was common
to have each piece on a separate disk.   Then disks got big enough
to put more than one part on and so on.

Now, there are a couple of good reasons to still divide a disk in to
partitions.  One is mentioned, sort of, above.  You want to isolate
areas that may grow unexpectedly from critical disk space.  So, /var
which contains logs and database stuff and spools gets its own partition
to keep it from over-filling root.   /tmp and user home directory space
are also such disk areas whose growth might not be predictable.

Another reason is for convenience with backups.   You may want to
reduce the size of partitions that are being backed up, either to
fit media or to be more convenient.  If only stuff in the partition
with users' home directories changes, then you only have to make
regular backups of that.  The other parts you only backup when you
make a new install or whatever.  Some things like /tmp you don't bother
to ever back up.It also can be less to have to restore if one 
partition goes belly up, though that is less true nowdays when the users' 
space (not necessarily /usr - that is an old convention.  Now it is 
common to use /home for users' home directories, since /usr really contains 
installed software) may be by far the largest space on a system, depending 
on how the system is used.  

Another reason to break things up is to have to load the least amount
possible when there are problems.   You have to have / to boot in to
single user mode to work on things.  But you don't have to have the
rest of the stuff.   The smaller you make root the less likely some
disk problem will show up in the root partition, making it more likely
you can get at least some of the system up to work on the problem.

The fourth reason to have separate partitions is to make it easier
to isolate things.   You may want to make a certain amount of space
available for users to write in, but want to keep them out of other
space.   There are various ways to do it.   Having things grouped
conveniently in some defined area makes it a little easier.

 
 So here is my understanding of how a reinsall is supposed
 to go, with the aim of preserving my user stuff.
 I set the system up with a 150 meg partition (more than reccomended in the
 handbook at the time, and still to my knowledge) on which I put a, a b swap
 part, 256 meg d /tmp, 256 meg e /var, and 200odd gig  f /usr. the system 
 was
 oringinally intended to be an anonymous ftp repository for me and my
 friends, but due to school req's i had to change it to the sftp
 backengine(?) of sshd, and it was in /usr/share/public that i put pretty
 much everything.  when my friends added tons of crap I eventually added
 another 160 gig drive, put a swap part on that too for kicks, and moved the
 /home dir to it too. as of last week i only have 10 gigs remaining on that
 drive, and oddly enough i am at 106% capcity for the 250 gig drive 
 according
 to df, go figure.  
 
 Not hard to figure.  The disk is full, including the space reserved for 
 accidental overflow.  Take some stuff off --- log files, disk hogging 
 sound or video files, etc.
 
 Incidentally, 150MB doesn't seem very large for a root partition IMHO. 
 I've not read the handbook recently, but I generally use a gig for /.

If you divide out /var and /usr and /tmp and /home, then 150 MB is
plenty for root.   I am currently using about 120 MB on this machine
which is due a good cleanup.  

Use du(1) to track down where disk is being used unexpectedly.
CD to a directory and do  du -sk *   and look at the list.
Go in to whichever directory that shows up in the list as surprisingly
large and do another du, etc, etc until you isolate where the junk
is.   rm the stuff and find out how it is getting there and 
close that hole off.   You can use other flags such as -h or -m on
the du command.  I like the -k because it makes a consistent display
down the list that makes it easy to visually scan and see differences
in those cases where I don't care so much about the actual size as
about seeing those that stick out.

Note, by the way, that upgrading can use up a chunk of space on
a temporary basis.   

jerry 

 ..other stuff 

upgraded 6.2 and mysql lost all privileges

2007-03-06 Thread Noah

Hi there,

I just upgraded to 6.2 and now I do not see my mysql privileges.  is 
there an easy way to get them back in place.  I thought they would 
magically appear in the /var/db/mysql directory and stuff.


Is there an easy way to recover these accounts or do I need to readd 
them manually??



Cheers,

Noah

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


Re: Kerberos authenticatino and ldap authorization

2007-03-06 Thread Tillman Hodgson
On Tue, Mar 06, 2007 at 10:07:57AM -0700, RJ45 wrote:
 for example I would like to installa MIT krb5 implementation from ports 
 instead of using heidmal default this because the kerberos server
 on my network is a MIT server and I can't use kadmin on FreeBSD
 to administrer the kerberos server remotely using heidmal implementation.
 Anyone has experience of MIT krb5 implementation on FreeBSD ?

The handbook has a chapter on setting up Kerberos, albeit focused on Heimdal.
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kerberos5.html

In section 14.8.6 it notes that the kadmin protocol differs between
Kerberos implementations -- you have to use the MIT kadmin to administer
a remote MIT KDC.

Other than the kadmin bits (which are fairly different between the two
but isn't used by end-users anyway), it's pretty much transparent to a
Kerberos-enabled workstation which implementation it's using. I
typically install both (to different paths to avoid file conflicts)
because I like using the newest Heimdal rather than the one in base and
also because the included client applications differ. For example, MIT
has Kerberos rsh whereas the base Heimdal doesn't for some of the
platforms that I use.

If you run into any specific issues when setting it up, please post back
to the list and cc me and I'll give you a hand.

-T


-- 
I once bought a cellphone that had a little sticker on the box that said
 'DO NOT EAT PACKAGING MATERIAL'. There went another freebie snack at the
  office.
- A.S.R. quote (Andreas Buzh Skau)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: upgraded 6.2 and mysql lost all privileges

2007-03-06 Thread Björn König

Noah schrieb:

Hi there,

I just upgraded to 6.2 and now I do not see my mysql privileges.  is 
there an easy way to get them back in place.  I thought they would 
magically appear in the /var/db/mysql directory and stuff.


Is there an easy way to recover these accounts or do I need to readd 
them manually??


What privileges do you mean? Privileges for accessing the database or 
/var/db/mysql? What do you expect? What happens? More input (and output) 
please.


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


Setting Env

2007-03-06 Thread Drew Jenkins
20Hi;
For some reason, I need to run this:

setenv LD_LIBRARY_PATH /usr/local/lib/mysql/

to get my Zope instances up and running. I'm trying to figure out how to 
automate that. I wrote a little script:

#!/bin/csh
setenv LD_LIBRARY_PATH /usr/local/lib/mysql/

and put it here:

/usr/local/etc/rc.d/mysql_setenv
chmod +x /usr/local/etc/rc.d/mysql_setenv

I can run that little script with no errors. However, it *doesn't* set the 
environment!

# echo $shell
# csh

What gives?
TIA,
Drew




 

Looking for earth-friendly autos? 
Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting Env

2007-03-06 Thread Bill Campbell
On Tue, Mar 06, 2007, Drew Jenkins wrote:
20Hi;
For some reason, I need to run this:

setenv LD_LIBRARY_PATH /usr/local/lib/mysql/

You can probably get around this by adding /usr/local/lib/mysql
to the end of /etc/ld.so.conf then running ldconfig.

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

Instead of giving money to found colleges to promote learning, why don't
they pass a constitutional amendment prohibiting anybody from learning
anything?  If it works as good as the Prohibition one did, why, in five
years we would have the smartest race of people on earth.
-- The Best of Will Rogers
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting Env

2007-03-06 Thread Jerry McAllister
On Tue, Mar 06, 2007 at 11:21:19AM -0800, Drew Jenkins wrote:

 20Hi;
 For some reason, I need to run this:
 
 setenv LD_LIBRARY_PATH /usr/local/lib/mysql/
 
 to get my Zope instances up and running. I'm trying to figure out how to 
 automate that. I wrote a little script:
 
 #!/bin/csh
 setenv LD_LIBRARY_PATH /usr/local/lib/mysql/
 
 and put it here:
 
 /usr/local/etc/rc.d/mysql_setenv
 chmod +x /usr/local/etc/rc.d/mysql_setenv
 
 I can run that little script with no errors. However, it *doesn't* set 
 the environment!
 
 # echo $shell
 # csh
 
 What gives?

I think does the setenv for the shell started for that script only.
Once the script is finished, that goes away.   You either need to 
put it in the script where you want to use the value or in your .cshrc 
file so it is in your main environment.

jerry

 TIA,
 Drew
 
 
 
 
  
 
 Looking for earth-friendly autos? 
 Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.
 http://autos.yahoo.com/green_center/
 ___
 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: using sysinstall upgrade as a repair solution

2007-03-06 Thread Kevin Kinsey

Jerry McAllister wrote:


The long ago origins of making things in many partitions was when
disks were much much smaller.  So were backup media.   It was common
to have each piece on a separate disk.   Then disks got big enough
to put more than one part on and so on.

Now, there are a couple of good reasons to still divide a disk in to
partitions.  One is mentioned, sort of, above.  You want to isolate
areas that may grow unexpectedly from critical disk space.  So, /var
which contains logs and database stuff and spools gets its own partition
to keep it from over-filling root.   /tmp and user home directory space
are also such disk areas whose growth might not be predictable.

Another reason is for convenience with backups.   You may want to
reduce the size of partitions that are being backed up, either to
fit media or to be more convenient.  If only stuff in the partition
with users' home directories changes, then you only have to make
regular backups of that.  The other parts you only backup when you
make a new install or whatever.  Some things like /tmp you don't bother
to ever back up.It also can be less to have to restore if one 
partition goes belly up, though that is less true nowdays when the users' 
space (not necessarily /usr - that is an old convention.  Now it is 
common to use /home for users' home directories, since /usr really contains 
installed software) may be by far the largest space on a system, depending 
on how the system is used.  


Another reason to break things up is to have to load the least amount
possible when there are problems.   You have to have / to boot in to
single user mode to work on things.  But you don't have to have the
rest of the stuff.   The smaller you make root the less likely some
disk problem will show up in the root partition, making it more likely
you can get at least some of the system up to work on the problem.

The fourth reason to have separate partitions is to make it easier
to isolate things.   You may want to make a certain amount of space
available for users to write in, but want to keep them out of other
space.   There are various ways to do it.   Having things grouped
conveniently in some defined area makes it a little easier.



What Jerry said ;-).  Thanks for expressing what I couldn't OTTOMH.

Incidentally, 150MB doesn't seem very large for a root partition IMHO. 
I've not read the handbook recently, but I generally use a gig for /.


If you divide out /var and /usr and /tmp and /home, then 150 MB is
plenty for root.   I am currently using about 120 MB on this machine
which is due a good cleanup.  


I only partition /, /var/, and /usr/, so /tmp stays in the root slice; I 
make mention of this fact (150M being small) because of the 
previously-mentioned case in which installworld puked because / was full 
(this *was* with a separate /tmp) and there was nothing really there 
except default stuff (had been a DesktopBSD system, maybe someone with 
more experience there could comment).  The box was going from 5.3 under 
an (older) DesktopBSD test install to FBSD 6.2; I worked 'round the 
issue by moving /stand, but ended up re-installing 6.2 from CD to give a 
slightly more junior guy more experience with sysinstall (AAMOF I've 
made him do it on two boxen today, heh heh heh)


Kevin Kinsey
--
Life is what happens to you while you're busy making other plans.
-- John Lennon, Beautiful Boy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: started getting repeated bge0: PHY read timed out messages

2007-03-06 Thread Chad Leigh -- Shire.Net LLC


On Mar 6, 2007, at 9:20 AM, Chad Leigh -- Shire.Net LLC wrote:


Hi

After running fine for a while, my new server running 6.2-RELEASE  
with latest security patches as of last Thursday or Friday started  
giving the message


bge0: PHY read timed out

and I found the following in the system log


ok, it started happening again after about 1.5 hours after the last  
reboot.  bge0 started going down and up a few times over about an  
hour, and then the read timedout messages started up again.  Previous  
to the very first time that this started, the server had run for  
about 4 days since it was newly installed.


Mar  6 09:09:23 server su: chad to root on /dev/ttyp0
Mar  6 10:26:29 server kernel: bge0: link state changed to DOWN
Mar  6 10:26:31 server kernel: bge0: link state changed to UP
Mar  6 10:42:33 server kernel: bge0: link state changed to DOWN
Mar  6 10:42:35 server kernel: bge0: link state changed to UP
Mar  6 11:31:19 server kernel: bge0: PHY read timed out
Mar  6 11:31:19 server last message repeated 3 times
Mar  6 11:31:19 server kernel: bge0: link state changed to DOWN
Mar  6 11:31:21 server kernel: bge0: PHY read timed out
Mar  6 11:31:52 server last message repeated 116 times
Mar  6 11:33:53 server last message repeated 488 times
Mar  6 11:43:54 server last message repeated 2356 times
Mar  6 11:53:56 server last message repeated 2372 times
Mar  6 12:03:57 server last message repeated 2368 times
Mar  6 12:09:53 server last message repeated 1399 times
Mar  6 12:09:53 server kernel: bge0: watchdog timeout -- resetting
Mar  6 12:09:53 server kernel: bge0: PHY read timed out
Mar  6 12:09:53 server last message repeated 4 times
Mar  6 12:09:53 server kernel: bge0: RX CPU self-diagnostics failed!
Mar  6 12:09:53 server kernel: bge0: flow-through queue init failed
Mar  6 12:09:53 server kernel: bge0: initialization failure
Mar  6 12:09:54 server kernel: bge0: PHY read timed out
Mar  6 12:10:25 server last message repeated 152 times
Mar  6 12:12:27 server last message repeated 616 times
Mar  6 12:22:29 server last message repeated 2540 times
Mar  6 12:32:30 server last message repeated 2452 times
Mar  6 12:42:31 server last message repeated 2524 times
Mar  6 12:46:27 server last message repeated 1127 times
Mar  6 12:46:27 server login: ROOT LOGIN (root) ON ttyv0
Mar  6 12:46:29 server kernel: bge0: PHY read timed out
Mar  6 12:46:41 server last message repeated 107 times
Mar  6 12:46:40 server reboot: rebooted by root

here is an ifconfig

bge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING
inet 166.70.252.128 netmask 0xff00 broadcast 166.70.252.255
inet 166.70.252.120 netmask 0x broadcast 166.70.252.120
inet 166.70.252.199 netmask 0x broadcast 166.70.252.199
ether 00:e0:81:61:e9:a0
media: Ethernet autoselect (1000baseTX full-duplex)
status: active

and uname

# uname -a
FreeBSD server.shire.net 6.2-RELEASE-p2 FreeBSD 6.2-RELEASE-p2 #1:  
Sat Mar  3 13:11:00 UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/ 
src/sys/server  i386

#

It is a TYAN S2850 single opteron system with 2.4ghz single core  
opteron.


Its dmesg ID is seen below in the quoted section.

I had another machine with this same MB that ran for a long time fine  
until I upgraded it to 6.0 or 6.1 last Fall and then I started to  
have the same problem (a post about it is in the archives).  I  
assumed it was a HW issue and turned off the port in the BIOS and  
used the other port until I took the machine offline as the customer  
using it no longer needed it.


Now this machine is having the same symptoms and I remember reading  
in the lists something about PHY and bge and some driver problems a  
while back but cannot fnd it now in the archives.


Could this be a SW problem or is it a HW issue?  Could it be related  
to the port it is connected to or the cable or something?  The other  
machine that had this problem was on a different switch brand.


Thanks
Chad




This appears to be a HW problem at first look.  But when the server  
boots, it works fine for a while (hours, days??)


Here is the id in the boot message

Mar  6 09:01:21 server kernel: bge0: Broadcom BCM5705 A3, ASIC  
rev. 0x3003 mem 0xfeab-0xfeab irq 16 at device 14.0 on pci1

Mar  6 09:01:21 server kernel: miibus0: MII bus on bge0
Mar  6 09:01:21 server kernel: brgphy0: BCM5705 10/100/1000baseTX  
PHY on miibus0
Mar  6 09:01:21 server kernel: brgphy0:  10baseT, 10baseT-FDX,  
100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
Mar  6 09:01:21 server kernel: bge0: Ethernet address:  
00:e0:81:61:e9:a0


Is this some sort of SW driver issue or is it a HW issue at first  
glance?  I remember kind of reading about some BGE issues a while  
back.


Thanks
Chad



---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



___

Re: upgraded 6.2 and mysql lost all privileges

2007-03-06 Thread Noah
the user accounts are gone.  where does that information reside?  I dont 
know how else to say or ask that question.


Cheers,

Noah


Björn König wrote:

Noah schrieb:

Hi there,

I just upgraded to 6.2 and now I do not see my mysql privileges.  is 
there an easy way to get them back in place.  I thought they would 
magically appear in the /var/db/mysql directory and stuff.


Is there an easy way to recover these accounts or do I need to readd 
them manually??


What privileges do you mean? Privileges for accessing the database or 
/var/db/mysql? What do you expect? What happens? More input (and output) 
please.


Björn


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


Re: using sysinstall upgrade as a repair solution

2007-03-06 Thread Jerry McAllister

 The fourth reason to have separate partitions is to make it easier
 to isolate things.   You may want to make a certain amount of space
 available for users to write in, but want to keep them out of other
 space.   There are various ways to do it.   Having things grouped
 conveniently in some defined area makes it a little easier.
 
 
 What Jerry said ;-).  Thanks for expressing what I couldn't OTTOMH.
 
 Incidentally, 150MB doesn't seem very large for a root partition IMHO. 
 I've not read the handbook recently, but I generally use a gig for /.
 
 If you divide out /var and /usr and /tmp and /home, then 150 MB is
 plenty for root.   I am currently using about 120 MB on this machine
 which is due a good cleanup.  
 
 I only partition /, /var/, and /usr/, so /tmp stays in the root slice; I 
 make mention of this fact (150M being small) because of the 
 previously-mentioned case in which installworld puked because / was full 
 (this *was* with a separate /tmp) and there was nothing really there 
 except default stuff (had been a DesktopBSD system, maybe someone with 
 more experience there could comment).  The box was going from 5.3 under 
 an (older) DesktopBSD test install to FBSD 6.2; I worked 'round the 
 issue by moving /stand, but ended up re-installing 6.2 from CD to give a 
 slightly more junior guy more experience with sysinstall (AAMOF I've 
 made him do it on two boxen today, heh heh heh)

Hmmm.   /tmp is definitely one thing I would take out of /
and put in its own partition - or at least in some other big
scratch space.   It can easily get filled with stuff which then
goes away.  But if it overfills /, it can bring the system to
its knees.  If it overfills its own system, it can make things
slow to a standstill, but usually you can still get in with root
and nuke enough to continue and at least shut things down gracefully.

jerry

 
 Kevin Kinsey
 -- 
 Life is what happens to you while you're busy making other plans.
   -- John Lennon, Beautiful Boy
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: upgraded 6.2 and mysql lost all privileges

2007-03-06 Thread Vince Hoffman
user accounts are held in /etc/passwd

the default UIDs created by ports are listed in
/usr/ports/UIDs
including mysql
mysql:*:88:88:MySQL Daemon:/var/db/mysql:/sbin/nologin
you can either re-add it using pw or just paste the line in using vipw

Vince

Noah wrote:
 the user accounts are gone.  where does that information reside?  I dont
 know how else to say or ask that question.
 
 Cheers,
 
 Noah
 
 
 Björn König wrote:
 Noah schrieb:
 Hi there,

 I just upgraded to 6.2 and now I do not see my mysql privileges.  is
 there an easy way to get them back in place.  I thought they would
 magically appear in the /var/db/mysql directory and stuff.

 Is there an easy way to recover these accounts or do I need to readd
 them manually??

 What privileges do you mean? Privileges for accessing the database or
 /var/db/mysql? What do you expect? What happens? More input (and
 output) please.

 Björn
 
 ___
 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: Setting Env

2007-03-06 Thread Drew Jenkins
Bill Campbell wrote:

 that I should edit said line into /etc/ld.so.conf 

Unfortunately there is no such file on my system.

- Original Message 
From: Jerry McAllister [EMAIL PROTECTED]
To: Drew Jenkins [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Tuesday, March 6, 2007 3:33:01 PM
Subject: Re: Setting Env

I think does the setenv for the shell started for that script only.
Once the script is finished, that goes away.   You either need to 
put it in the script where you want to use the value or in your .cshrc 
file so it is in your main environment.

I tried adding its bash variant to /usr/local/etc/rc.d/mysql-server but that 
didn't work. As far as adding it to my shell, that won't run the script when 
the server reboots, only when I log in, right? That's not an option. 

Any other ideas?
TIA,
Drew
jerry

 TIA,
 Drew
 
 
 
 
  
 
 Looking for earth-friendly autos? 
 Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.
 http://autos.yahoo.com/green_center/
 ___
 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]







 

Don't get soaked.  Take a quick peek at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: upgraded 6.2 and mysql lost all privileges

2007-03-06 Thread Noah

thanks Vince,

yeah - I have about 15 other user accounts specific to my mysql 
installation that were not in the /etc/passwd file.  where were those 
stored?


Cheers,

Noah


Vince Hoffman wrote:

user accounts are held in /etc/passwd

the default UIDs created by ports are listed in
/usr/ports/UIDs
including mysql
mysql:*:88:88:MySQL Daemon:/var/db/mysql:/sbin/nologin
you can either re-add it using pw or just paste the line in using vipw

Vince

Noah wrote:

the user accounts are gone.  where does that information reside?  I dont
know how else to say or ask that question.

Cheers,

Noah


Björn König wrote:

Noah schrieb:

Hi there,

I just upgraded to 6.2 and now I do not see my mysql privileges.  is
there an easy way to get them back in place.  I thought they would
magically appear in the /var/db/mysql directory and stuff.

Is there an easy way to recover these accounts or do I need to readd
them manually??

What privileges do you mean? Privileges for accessing the database or
/var/db/mysql? What do you expect? What happens? More input (and
output) please.

Björn

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


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


Re: apache problem

2007-03-06 Thread eoghan

On 3/6/07, Vizion [EMAIL PROTECTED] wrote:



 -Original Message-
 From: eoghan [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 06, 2007 8:28 AM
 To: Vizion
 Cc: freebsd-questions@freebsd.org; [EMAIL PROTECTED]
 Subject: Re: apache problem

 On Tue, 6 Mar 2007 8:25:09 -0800
 Vizion [EMAIL PROTECTED] wrote:

   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of eoghan
   Sent: Tuesday, March 06, 2007 5:50 AM
   To: freebsd
   Subject: apache problem
  
   Hi
   I am running apache 2.2.4 on FreeBSD 6.1. This is a recent
   upgrade from ports (in the past few days or so). Since then I
   cant browse to localhost. Just get an unable to connect
   message. The server seems to start with:
   $sudo apachectl start
   If I try it again I see its already running.
   My error log shows:
   [Mon Mar 05 11:20:00 2007] [notice] Apache/2.2.4 (FreeBSD)
   mod_ssl/2.2.4 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.1 with Suhosin-Patch
   configured -- resuming normal operations
   [Mon Mar 05 11:20:22 2007] [notice] caught SIGTERM, shutting down
  
   I have tried the apache list but no real answers, and apache
   was working fine for me before I upgraded. Has anyone else
   noticed this since an upgrade to the 2.2.4 version from ports?
  
   Thanks
   Eoghan
 
  I had the same problem. Here is how I fixed it:
  #apachectl stop
  # cd /usr/ports/www/apache22
  #make clean
  # make deinstall
  # rm ./*
  Then do a cvsup ports all
  now once more
  #cd /usr/ports/www/apache22
  # make (it will use your stored config)
  #make install
  #make clean
  #apachectl start

 Hi
 Gret, thanks for that, I will give this a go.
 Regards
 Eoghan

all the best
please let me know if it works 4U
-- I have made a posting on [EMAIL PROTECTED] -- so the maintainer knows 
aboutthe problem. If this also works for you it should not be too difficult for 
someone to fix the port.
David


Hi
I have tried this and i still cant get it working. Also tried syntax
check and its checks out OK, as someone else suggested to do... any
further suggestions?
Thanks
Eoghan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: upgraded 6.2 and mysql lost all privileges

2007-03-06 Thread Dan Nelson
In the last episode (Mar 06), Noah said:
 yeah - I have about 15 other user accounts specific to my mysql
 installation that were not in the /etc/passwd file.  where were those
 stored?

If you're just talking about mysql users, those are in
/var/db/mysql/mysql/user.* .  An OS upgrade shouldn't have touched
them at all.  Unless you reformatted /var or something :)

-- 
Dan Nelson
[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: MySQL Startup Script

2007-03-06 Thread Drew Jenkins
- Original Message 
From: Jeremy Chadwick [EMAIL PROTECTED]
To: Drew Jenkins [EMAIL PROTECTED]
Cc: freebsd-ports@freebsd.org
Sent: Tuesday, March 6, 2007 5:33:11 PM
Subject: Re: MySQL Startup Script

This isn't a good idea.  ldconfig is supposed to take care of this for you.
Can you provide the output from ldconfig -r?

# ldconfig -r
/var/run/ld-elf.so.hints:
search directories: 
/lib:/usr/lib:/usr/lib/compat:/usr/X11R6/lib:/usr/local/lib
0:-lcrypt.3 = /lib/libcrypt.so.3
1:-lkvm.3 = /lib/libkvm.so.3
2:-lm.4 = /lib/libm.so.4
3:-lmd.3 = /lib/libmd.so.3
4:-lncurses.6 = /lib/libncurses.so.6
5:-lsbuf.3 = /lib/libsbuf.so.3
6:-lutil.5 = /lib/libutil.so.5
7:-lalias.5 = /lib/libalias.so.5
8:-latm.3 = /lib/libatm.so.3
9:-lbegemot.2 = /lib/libbegemot.so.2
10:-lbsnmp.3 = /lib/libbsnmp.so.3
11:-lc.6 = /lib/libc.so.6
12:-lcam.3 = /lib/libcam.so.3
13:-ldevstat.5 = /lib/libdevstat.so.5
14:-ledit.5 = /lib/libedit.so.5
15:-lbsdxml.2 = /lib/libbsdxml.so.2
16:-lgeom.3 = /lib/libgeom.so.3
17:-lgpib.1 = /lib/libgpib.so.1
18:-lipsec.2 = /lib/libipsec.so.2
19:-lipx.3 = /lib/libipx.so.3
20:-lufs.3 = /lib/libufs.so.3
21:-lkiconv.2 = /lib/libkiconv.so.2
22:-lpcap.4 = /lib/libpcap.so.4
23:-lpthread.2 = /lib/libpthread.so.2
24:-lz.3 = /lib/libz.so.3
25:-lreadline.6 = /lib/libreadline.so.6
26:-lcrypto.4 = /lib/libcrypto.so.4
27:-lbsm.1 = /usr/lib/libbsm.so.1
28:-lcom_err.3 = /usr/lib/libcom_err.so.3
29:-lnetgraph.2 = /usr/lib/libnetgraph.so.2
30:-lradius.2 = /usr/lib/libradius.so.2
31:-lrpcsvc.3 = /usr/lib/librpcsvc.so.3
32:-ltacplus.2 = /usr/lib/libtacplus.so.2
33:-lypclnt.2 = /usr/lib/libypclnt.so.2
34:-larchive.2 = /usr/lib/libarchive.so.2
35:-lbluetooth.2 = /usr/lib/libbluetooth.so.2
36:-lbz2.2 = /usr/lib/libbz2.so.2
37:-lc_r.6 = /usr/lib/libc_r.so.6
38:-lcalendar.3 = /usr/lib/libcalendar.so.3
39:-ldevinfo.3 = /usr/lib/libdevinfo.so.3
40:-lfetch.4 = /usr/lib/libfetch.so.4
41:-lform.3 = /usr/lib/libform.so.3
42:-lftpio.6 = /usr/lib/libftpio.so.6
43:-lmagic.2 = /usr/lib/libmagic.so.2
44:-lmemstat.1 = /usr/lib/libmemstat.so.1
45:-lmenu.3 = /usr/lib/libmenu.so.3
46:-lmilter.3 = /usr/lib/libmilter.so.3
47:-lmp.5 = /usr/lib/libmp.so.5
48:-lncp.2 = /usr/lib/libncp.so.2
49:-lngatm.2 = /usr/lib/libngatm.so.2
50:-lopie.4 = /usr/lib/libopie.so.4
51:-lpam.3 = /usr/lib/libpam.so.3
52:-lpanel.3 = /usr/lib/libpanel.so.3
53:-lpmc.3 = /usr/lib/libpmc.so.3
54:-lsdp.2 = /usr/lib/libsdp.so.2
55:-lsmb.2 = /usr/lib/libsmb.so.2
56:-lthr.2 = /usr/lib/libthr.so.2
57:-lthread_db.2 = /usr/lib/libthread_db.so.2
58:-lugidfw.2 = /usr/lib/libugidfw.so.2
59:-lusbhid.2 = /usr/lib/libusbhid.so.2
60:-lvgl.4 = /usr/lib/libvgl.so.4
61:-lwrap.4 = /usr/lib/libwrap.so.4
62:-llwres.10 = /usr/lib/liblwres.so.10
63:-ldialog.5 = /usr/lib/libdialog.so.5
64:-lgnuregex.3 = /usr/lib/libgnuregex.so.3
65:-lhistory.6 = /usr/lib/libhistory.so.6
66:-lstdc++.5 = /usr/lib/libstdc++.so.5
67:-lobjc.2 = /usr/lib/libobjc.so.2
68:-lg2c.2 = /usr/lib/libg2c.so.2
69:-lasn1.8 = /usr/lib/libasn1.so.8
70:-lgssapi.8 = /usr/lib/libgssapi.so.8
71:-lhdb.8 = /usr/lib/libhdb.so.8
72:-lkadm5clnt.8 = /usr/lib/libkadm5clnt.so.8
73:-lkadm5srv.8 = /usr/lib/libkadm5srv.so.8
74:-lkafs5.8 = /usr/lib/libkafs5.so.8
75:-lkrb5.8 = /usr/lib/libkrb5.so.8
76:-lroken.8 = /usr/lib/libroken.so.8
77:-lssl.4 = /usr/lib/libssl.so.4
78:-lssh.3 = /usr/lib/libssh.so.3
79:-lfontconfig.1 = /usr/X11R6/lib/libfontconfig.so.1
80:-lXau.0 = /usr/X11R6/lib/libXau.so.0
81:-lXdmcp.0 = /usr/X11R6/lib/libXdmcp.so.0
82:-lX11.6 = /usr/X11R6/lib/libX11.so.6
83:-loldX.6 = /usr/X11R6/lib/liboldX.so.6
84:-lICE.6 = /usr/X11R6/lib/libICE.so.6
85:-lSM.6 = /usr/X11R6/lib/libSM.so.6
86:-lXext.6 = /usr/X11R6/lib/libXext.so.6
87:-lXt.6 = /usr/X11R6/lib/libXt.so.6
88:-lXss.1 = /usr/X11R6/lib/libXss.so.1
89:-lXxf86misc.1 = /usr/X11R6/lib/libXxf86misc.so.1
90:-lXxf86vm.1 = /usr/X11R6/lib/libXxf86vm.so.1
91:-lXxf86dga.1 = /usr/X11R6/lib/libXxf86dga.so.1
92:-lXmu.6 = /usr/X11R6/lib/libXmu.so.6
93:-lXmuu.1 = /usr/X11R6/lib/libXmuu.so.1
94:-lXpm.4 = /usr/X11R6/lib/libXpm.so.4
95:-lXp.6 = /usr/X11R6/lib/libXp.so.6
96:-lXaw.6 = /usr/X11R6/lib/libXaw.so.6
97:-lXaw.7 = /usr/X11R6/lib/libXaw.so.7
98:-lXaw.8 = /usr/X11R6/lib/libXaw.so.8
99:-lXi.6 = 

Re: upgraded 6.2 and mysql lost all privileges

2007-03-06 Thread Noah

binary install.  okay I backed up teh dir

let me look for them now

cheers,

Noah


Dan Nelson wrote:

In the last episode (Mar 06), Noah said:

yeah - I have about 15 other user accounts specific to my mysql
installation that were not in the /etc/passwd file.  where were those
stored?


If you're just talking about mysql users, those are in
/var/db/mysql/mysql/user.* .  An OS upgrade shouldn't have touched
them at all.  Unless you reformatted /var or something :)


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


Re: Serial Port Problems (Solved)

2007-03-06 Thread Dan D Niles
On Thu, 2007-03-01 at 15:27 -0600, Dan D Niles wrote:
 If I disconnect and come back later
 (sometimes), or if I hit return without entering a login name (always)
 it starts spitting out junk like:
 
 nooo~:Woo{;6(|uww~now~nou})|t}}t9- 

I found a solution, although I'm not sure why it works.

When you just hit enter getty goes back to the beginning of its loop.
This also happens if you enter a name starting with - or consisting of
just spaces.  These also causes the output to become garbled. 

At the beginning of the loop it calls setttymode(0).  If I insert a
sleep(1) before this call, everything works correctly.  If I insert the
sleep after that, the output still gets garbled.

Like I said, I don't know why it works, but it does.

I don't think a short delay is unreasonable after entering invalid or no
information.  I am going to submit a PR with a patch.

Dan



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


Re: upgraded 6.2 and mysql lost all privileges

2007-03-06 Thread Noah

Dan,

okay you got me on the right track.
I can see mysql files in that directory.  but mysql is not aware of the 
users in the user files


is there something that I need to tell to mysql to use those files to 
reincorporate the mysql related users?



# ls -l /var/db/mysql/mysql
total 648
-rw-rw  1 mysql  mysql   0 Mar  6 06:49 columns_priv.MYD
-rw-rw  1 mysql  mysql1024 Mar  6 06:49 columns_priv.MYI
-rw-rw  1 mysql  mysql8820 Mar  6 06:49 columns_priv.frm
-rw-rw  1 mysql  mysql 876 Mar  6 06:49 db.MYD
-rw-rw  1 mysql  mysql4096 Mar  6 06:49 db.MYI
-rw-rw  1 mysql  mysql9494 Mar  6 06:49 db.frm
-rw-rw  1 mysql  mysql   0 Mar  6 06:49 func.MYD
-rw-rw  1 mysql  mysql1024 Mar  6 06:49 func.MYI
-rw-rw  1 mysql  mysql8665 Mar  6 06:49 func.frm
-rw-rw  1 mysql  mysql   20916 Mar  6 06:49 help_category.MYD
-rw-rw  1 mysql  mysql3072 Mar  6 06:49 help_category.MYI
-rw-rw  1 mysql  mysql8700 Mar  6 06:49 help_category.frm
-rw-rw  1 mysql  mysql   75254 Mar  6 06:49 help_keyword.MYD
-rw-rw  1 mysql  mysql   15360 Mar  6 06:49 help_keyword.MYI
-rw-rw  1 mysql  mysql8612 Mar  6 06:49 help_keyword.frm
-rw-rw  1 mysql  mysql6624 Mar  6 06:49 help_relation.MYD
-rw-rw  1 mysql  mysql   13312 Mar  6 06:49 help_relation.MYI
-rw-rw  1 mysql  mysql8630 Mar  6 06:49 help_relation.frm
-rw-rw  1 mysql  mysql  269424 Mar  6 06:49 help_topic.MYD
-rw-rw  1 mysql  mysql   17408 Mar  6 06:49 help_topic.MYI
-rw-rw  1 mysql  mysql8770 Mar  6 06:49 help_topic.frm
-rw-rw  1 mysql  mysql   0 Mar  6 06:49 host.MYD
-rw-rw  1 mysql  mysql1024 Mar  6 06:49 host.MYI
-rw-rw  1 mysql  mysql9416 Mar  6 06:49 host.frm
-rw-rw  1 mysql  mysql   0 Mar  6 06:49 proc.MYD
-rw-rw  1 mysql  mysql1024 Mar  6 06:49 proc.MYI
-rw-rw  1 mysql  mysql9691 Mar  6 06:49 proc.frm
-rw-rw  1 mysql  mysql   0 Mar  6 06:49 procs_priv.MYD
-rw-rw  1 mysql  mysql1024 Mar  6 06:49 procs_priv.MYI
-rw-rw  1 mysql  mysql8875 Mar  6 06:49 procs_priv.frm
-rw-rw  1 mysql  mysql   0 Mar  6 06:49 tables_priv.MYD
-rw-rw  1 mysql  mysql1024 Mar  6 06:49 tables_priv.MYI
-rw-rw  1 mysql  mysql8947 Mar  6 06:49 tables_priv.frm
-rw-rw  1 mysql  mysql   0 Mar  6 06:49 time_zone.MYD
-rw-rw  1 mysql  mysql1024 Mar  6 06:49 time_zone.MYI
-rw-rw  1 mysql  mysql8636 Mar  6 06:49 time_zone.frm
-rw-rw  1 mysql  mysql   0 Mar  6 06:49 time_zone_leap_second.MYD
-rw-rw  1 mysql  mysql1024 Mar  6 06:49 time_zone_leap_second.MYI
-rw-rw  1 mysql  mysql8624 Mar  6 06:49 time_zone_leap_second.frm
-rw-rw  1 mysql  mysql   0 Mar  6 06:49 time_zone_name.MYD
-rw-rw  1 mysql  mysql1024 Mar  6 06:49 time_zone_name.MYI
-rw-rw  1 mysql  mysql8606 Mar  6 06:49 time_zone_name.frm
-rw-rw  1 mysql  mysql   0 Mar  6 06:49 time_zone_transition.MYD
-rw-rw  1 mysql  mysql1024 Mar  6 06:49 time_zone_transition.MYI
-rw-rw  1 mysql  mysql8686 Mar  6 06:49 time_zone_transition.frm
-rw-rw  1 mysql  mysql   0 Mar  6 06:49 
time_zone_transition_type.MYD
-rw-rw  1 mysql  mysql1024 Mar  6 06:49 
time_zone_transition_type.MYI
-rw-rw  1 mysql  mysql8748 Mar  6 06:49 
time_zone_transition_type.frm

-rw-rw  1 mysql  mysql 208 Mar  6 06:49 user.MYD
-rw-rw  1 mysql  mysql2048 Mar  6 06:49 user.MYI
-rw-rw  1 mysql  mysql   10330 Mar  6 06:49 user.frm






Dan Nelson wrote:

In the last episode (Mar 06), Noah said:

yeah - I have about 15 other user accounts specific to my mysql
installation that were not in the /etc/passwd file.  where were those
stored?


If you're just talking about mysql users, those are in
/var/db/mysql/mysql/user.* .  An OS upgrade shouldn't have touched
them at all.  Unless you reformatted /var or something :)


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


Re: upgraded 6.2 and mysql lost all privileges

2007-03-06 Thread Steve Bertrand

In the last episode (Mar 06), Noah said:

yeah - I have about 15 other user accounts specific to my mysql
installation that were not in the /etc/passwd file.  where were those
stored?


If you're just talking about mysql users, those are in
/var/db/mysql/mysql/user.* .  An OS upgrade shouldn't have touched
them at all.  Unless you reformatted /var or something :)


It may be possible that mergemaster was used incorrectly.

If so, there should be a copy of the updated /etc/master.passwd file in:

# /var/tmp/temproot/etc

You can compare that against the new file in /etc. If they are the same, 
mergemaster hosed the original. I don't know if mergemaster makes a 
backup of the original, but it may be easier to pull master.passwd from 
a backup (you did backup /etc right?) and try re-merging if there were 
any differences.


Then again, I may be totally wrong with this assessment.

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


Re: upgraded 6.2 and mysql lost all privileges

2007-03-06 Thread Noah
I dont think that is the issue.  the problem is with the mysql virtual 
users


they do not appear in the /etc/passwd or /etc/master.passwd files.

so that is the wrong direction.
cheers,
Noah


Steve Bertrand wrote:

In the last episode (Mar 06), Noah said:

yeah - I have about 15 other user accounts specific to my mysql
installation that were not in the /etc/passwd file.  where were those
stored?


If you're just talking about mysql users, those are in
/var/db/mysql/mysql/user.* .  An OS upgrade shouldn't have touched
them at all.  Unless you reformatted /var or something :)


It may be possible that mergemaster was used incorrectly.

If so, there should be a copy of the updated /etc/master.passwd file in:

# /var/tmp/temproot/etc

You can compare that against the new file in /etc. If they are the same, 
mergemaster hosed the original. I don't know if mergemaster makes a 
backup of the original, but it may be easier to pull master.passwd from 
a backup (you did backup /etc right?) and try re-merging if there were 
any differences.


Then again, I may be totally wrong with this assessment.

Steve
___
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: upgraded 6.2 and mysql lost all privileges

2007-03-06 Thread Dan Nelson
In the last episode (Mar 06), Noah said:
 okay you got me on the right track.
 I can see mysql files in that directory.  but mysql is not aware of the 
 users in the user files
 
 is there something that I need to tell to mysql to use those files to 
 reincorporate the mysql related users?
 
 # ls -l /var/db/mysql/mysql
 total 648
 -rw-rw  1 mysql  mysql 208 Mar  6 06:49 user.MYD
 -rw-rw  1 mysql  mysql2048 Mar  6 06:49 user.MYI
 -rw-rw  1 mysql  mysql   10330 Mar  6 06:49 user.frm

If you can log into mysql, does select * from user print anything?  A
208-byte MYD file is only large enough for about four user records.  If
you had 15 in there before, they're gone.  You'll probably want to
restore your entire /var/db/mysql/mysql/ directory from a backup, then
run mysql_fix_privilege_tables to bring the tables up to whatever
version of mysql you're now running.

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


isc-dhcpd logging breaks when syslog-ng HUP'd

2007-03-06 Thread Christopher Cowart
Hello,

I have 2 servers running isc-dhcp3-server and syslog-ng. I have
configured dhcpd to run in a chroot. The following (reproducible)
sequence of events cause dhcpd logging to break:
 1) Start syslog-ng
 2) Start isc-dhcpd (At this point, logging is working fine)
 3) `pkill -HUP syslog-ng` (This happens on the hour whenever logfiles
need rotating, but can also be effected manually)
 4) dhcpd logging is now broken
 5) Restart isc-dhcpd (logging works again)

My theory is that when isc-dhcpd starts, it gets an fd to the syslog
socket. When syslog-ng receives a HUP, that socket is reopened and
isc-dhcpd's fd is now broken.

Relevant options from rc.conf:
| syslogd_enable=NO
| newsyslog_enable=NO
| syslog_ng_enable=YES
| dhcpd_enable=YES
| dhcpd_flags=-q
| dhcpd_conf=/usr/local/etc/dhcpd.conf
| dhcpd_includedir=/usr/local/etc/dhcpd.d
| dhcpd_withumask=022
| dhcpd_chuser_enable=YES
| dhcpd_withuser=dhcpd
| dhcpd_withgroup=dhcpd
| dhcpd_devfs_enable=YES
| dhcpd_rootdir=/var/jails/dhcpd
| dhcpd_chroot_enable=YES
| dhcpd_ifaces=bge0

My workaround:
For the hosts in question, I've added to the logrotate postrotate
script: `/usr/local/etc/rc.d/isc-dhcpd restart  /dev/null`
This workaround makes me a little uncomfortable, because these instances
of dhcpd are critical for thousands of end users.

Is this a bug? Is there a better workaround? Logging from all other
applications on the system is unaffected by the HUP to syslog-ng,
including two jailed instances of bind9 (syslog-ng on the host opens up
the socket /var/run/log inside those jails). 

Any insight would be greatly appreciated.

Thanks,

-- 
Chris Cowart
Lead Systems Administrator
Network Infrastructure, RSSP-IT
UC Berkeley


signature.asc
Description: Digital signature


Re: Setting Env

2007-03-06 Thread Jerry McAllister
On Tue, Mar 06, 2007 at 01:11:37PM -0800, Drew Jenkins wrote:

 Bill Campbell wrote:
 
  that I should edit said line into /etc/ld.so.conf 
 
 Unfortunately there is no such file on my system.
 
 - Original Message 
 From: Jerry McAllister [EMAIL PROTECTED]
 To: Drew Jenkins [EMAIL PROTECTED]
 Cc: freebsd-questions@freebsd.org
 Sent: Tuesday, March 6, 2007 3:33:01 PM
 Subject: Re: Setting Env
 
 I think does the setenv for the shell started for that script only.
 Once the script is finished, that goes away.   You either need to 
 put it in the script where you want to use the value or in your .cshrc 
 file so it is in your main environment.
 
 I tried adding its bash variant to /usr/local/etc/rc.d/mysql-server but 
 that didn't work. As far as adding it to my shell, that won't run the 
 script when the server reboots, only when I log in, right? That's not 
 an option. 

I don't know for sure what you mean That's not an option.   Is this
running from cron or at system bootup or something so there is no login
involved?

In those cases, it is well documented that your scripts have to be
completely responsible for their environments and paths, etc.  So,
set everything within the scipt.   Or, if it is something systemwide,
then put setting the variable it in /etc/rc.conf or /etc/rc.conf.local if
you let your system have one.

jerry

 
 Any other ideas?
 TIA,
 Drew
 jerry
 
  TIA,
  Drew
  
  
  
  
   
  
  Looking for earth-friendly autos? 
  Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.
  http://autos.yahoo.com/green_center/
  ___
  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]
 
 
 
 
 
 
 
  
 
 Don't get soaked.  Take a quick peek at the forecast
 with the Yahoo! Search weather shortcut.
 http://tools.search.yahoo.com/shortcuts/#loc_weather
 ___
 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: Setting Env

2007-03-06 Thread Don Hinton
Hi Drew:

On Tuesday 06 March 2007 15:11, Drew Jenkins wrote:
 Bill Campbell wrote:

  that I should edit said line into /etc/ld.so.conf 

 Unfortunately there is no such file on my system.

# ldconfig -aout -f /etc/ld.so.conf /usr/local/lib/mysql/

will create it for you.  man ldconfig for more info...

hth...
don


 - Original Message 
 From: Jerry McAllister [EMAIL PROTECTED]
 To: Drew Jenkins [EMAIL PROTECTED]
 Cc: freebsd-questions@freebsd.org
 Sent: Tuesday, March 6, 2007 3:33:01 PM
 Subject: Re: Setting Env

 I think does the setenv for the shell started for that script only.
 Once the script is finished, that goes away.   You either need to
 put it in the script where you want to use the value or in your .cshrc
 file so it is in your main environment.

 I tried adding its bash variant to /usr/local/etc/rc.d/mysql-server but
 that didn't work. As far as adding it to my shell, that won't run the
 script when the server reboots, only when I log in, right? That's not an
 option.

 Any other ideas?
 TIA,
 Drew
 jerry

  TIA,
  Drew
 
 
 
 
 
  _
 ___ Looking for earth-friendly autos?
  Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.
  http://autos.yahoo.com/green_center/
  ___
  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]








 ___
_ Don't get soaked.  Take a quick peek at the forecast
 with the Yahoo! Search weather shortcut.
 http://tools.search.yahoo.com/shortcuts/#loc_weather
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

-- 
Don Hinton don.hinton at vanderbilt.edu or hintonda at gmail.com
Institute for Software Integrated Systems (ISIS), Vanderbilt University
tel: 615.480.5667 or 615.870.9728


pgpGMBsLbjnlO.pgp
Description: PGP signature


Re: Laptop lid switch and ACPI

2007-03-06 Thread frzburn

Well, I thought about it, and you're right... What I really need is to be
able to do something upon an acpi event, like running a script when I close
my lid...

But I didn't find these info anywhere =(
Please help me! =)

acpi is working, it has control on my fan and monitors my CPU temperature.
I tried devd -dD, and it reacts when I close my lid, but I don't know how to
use this output...

Thanks!

frzburn



On 3/6/07, Norberto Meijome [EMAIL PROTECTED] wrote:


On Mon, 5 Mar 2007 16:28:06 -0500
frzburn [EMAIL PROTECTED] wrote:

 I need a hint on how to get my screen turn off (backlight too) on my
Dell
 Laptop.
 I have an Inspiron 6400 (e1505), and FreeBSD 6 - amd64.

Hi there,
I am not sure how to switch off the screen on the dell (independent of
ACPI)... in all laptops I've seen, it's fully controlled by the hardware
(bios?).
Have you got acpi working ?

If you *do* have ACPI working, and you want to see whether it is firing
acpi at
all when you close the lid, you can restart devd in debugging mode:

/etc/rc.d/devd stop
devd -dD

and then try your ACPI events.

Also, you should be able to tell your ACPI module to let you handle the
events
manually. For example, with the acpi_ibm.ko, the knob

dev.acpi_ibm.0.events = 1

tells acpi to pass all acpi messages to devd for handling. Search the logs
(in
mobile@ , i believe) - i've posted my config for some sample actions on
different ACPI events.

BTW, you may be able to switch off the display using a user mode
application
that is related to your video card. For example, if you have a Radeon
card, the
radeontool allows you to switch off the panel and external monitor outputs
(although the ext monitor gets switched on when you switch to X's VT)

HIH,
Beto
_
{Beto|Norberto|Numard} Meijome

Against logic there is no armor like ignorance.
  Laurence J. Peter

I speak for myself, not my employer. Contents may be hot. Slippery when
wet.
Reading disclaimers makes you go blind. Writing them is worse. You have
been
Warned.


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


Re: apache problem

2007-03-06 Thread eoghan

On 3/6/07, Mike Galvez [EMAIL PROTECTED] wrote:


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eoghan
Sent: Tuesday, March 06, 2007 5:50 AM
To: freebsd
Subject: apache problem
   
Hi
I am running apache 2.2.4 on FreeBSD 6.1. This is a recent
upgrade from ports (in the past few days or so). Since then I
cant browse to localhost. Just get an unable to connect
message. The server seems to start with:
$sudo apachectl start
If I try it again I see its already running.
My error log shows:
[Mon Mar 05 11:20:00 2007] [notice] Apache/2.2.4 (FreeBSD)
mod_ssl/2.2.4 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.1 with Suhosin-Patch
configured -- resuming normal operations
[Mon Mar 05 11:20:22 2007] [notice] caught SIGTERM, shutting down
   
I have tried the apache list but no real answers, and apache
was working fine for me before I upgraded. Has anyone else
noticed this since an upgrade to the 2.2.4 version from ports?
   
Thanks
Eoghan
  
   I had the same problem. Here is how I fixed it:
   #apachectl stop
   # cd /usr/ports/www/apache22
   #make clean
   # make deinstall
   # rm ./*
   Then do a cvsup ports all
   now once more
   #cd /usr/ports/www/apache22
   # make (it will use your stored config)
   #make install
   #make clean
   #apachectl start
 
  Hi
  Gret, thanks for that, I will give this a go.
  Regards
  Eoghan
 
 all the best
 please let me know if it works 4U
 -- I have made a posting on [EMAIL PROTECTED] -- so the maintainer knows
 aboutthe problem. If this also works for you it should not be too
 difficult for someone to fix the port.
 David

 Hi
 I have tried this and i still cant get it working. Also tried syntax
 check and its checks out OK, as someone else suggested to do... any
 further suggestions?
 Thanks
 Eoghan
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
Hi,

I was rebuilding one of my servers yesterday. I was having trouble getting ldap
support to build, but I was also seeing the same issue you describe. The
configtest reported no errors and Apache appeared to start and I could see it in
the process list, but could not contact the server. Out of frustration i bounced
the box and when it came back up Apache started as expected (minus ldap of
course).


--
Michael Galvez http://www.people.virginia.edu/~mrg8n
Information Technology Specialist University of Virginia


Hi
By bounced the box, do  you mean restarted it?
Thanks
Eoghan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Laptop lid switch and ACPI

2007-03-06 Thread Kevin Downey

On 3/6/07, frzburn [EMAIL PROTECTED] wrote:

Well, I thought about it, and you're right... What I really need is to be
able to do something upon an acpi event, like running a script when I close
my lid...

But I didn't find these info anywhere =(
Please help me! =)

acpi is working, it has control on my fan and monitors my CPU temperature.
I tried devd -dD, and it reacts when I close my lid, but I don't know how to
use this output...

Thanks!

frzburn



On 3/6/07, Norberto Meijome [EMAIL PROTECTED] wrote:

 On Mon, 5 Mar 2007 16:28:06 -0500
 frzburn [EMAIL PROTECTED] wrote:

  I need a hint on how to get my screen turn off (backlight too) on my
 Dell
  Laptop.
  I have an Inspiron 6400 (e1505), and FreeBSD 6 - amd64.

 Hi there,
 I am not sure how to switch off the screen on the dell (independent of
 ACPI)... in all laptops I've seen, it's fully controlled by the hardware
 (bios?).
 Have you got acpi working ?

 If you *do* have ACPI working, and you want to see whether it is firing
 acpi at
 all when you close the lid, you can restart devd in debugging mode:

 /etc/rc.d/devd stop
 devd -dD

 and then try your ACPI events.

 Also, you should be able to tell your ACPI module to let you handle the
 events
 manually. For example, with the acpi_ibm.ko, the knob

 dev.acpi_ibm.0.events = 1

 tells acpi to pass all acpi messages to devd for handling. Search the logs
 (in
 mobile@ , i believe) - i've posted my config for some sample actions on
 different ACPI events.

 BTW, you may be able to switch off the display using a user mode
 application
 that is related to your video card. For example, if you have a Radeon
 card, the
 radeontool allows you to switch off the panel and external monitor outputs
 (although the ext monitor gets switched on when you switch to X's VT)

 HIH,
 Beto
 _
 {Beto|Norberto|Numard} Meijome

 Against logic there is no armor like ignorance.
   Laurence J. Peter

I have a Inspiron 8200, and I have the following in /etc/devd.conf to
turn off the screen when the lid is closed:

notify 10 {
  match system  ACPI;
  match subsystem   Lid;
  match notify  0x00;
  action /usr/local/bin/xset -display :0 dpms force off  /tmp/xset.log;
};




--
The biggest problem with communication is the illusion that it has occurred.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ftp set up

2007-03-06 Thread Paulette McGee

--- Bill Moran [EMAIL PROTECTED] wrote:

 
 Please wrap your lines around 72 characters.
 
 In response to Vizion [EMAIL PROTECTED]:
  
  I wonder if someone could point me to a reliable
 detailed resource for
  configuring an ftp server on freebsd 6.1 for both
 incoming and outgoing
  files (including anonymous ftp).
  
  I do not want anonymous uploaders to view existing
 file names in
  ftp/incoming or be able to download from incoming.
 I want the server as
  secure as is reasonably practicable. The notes in
 the freebsd handbook are
  not really comprehensive enough for me. 
 
 Please don't do this.  Please don't even try.
 
 Never try to use the word secure in the same
 sentence as ftp.  They don't
 fit in the same sentence.
 
 Set up ssh, then have Windows users use WinSCP.
 
 Let me tell a little story.  A few years back I was
 asked to set up secure
 ftp for a client.  I argued, but he insisted, and
 the customer is always
 right, so I set it up for him.
 
 The plan, to keep it secure, was to enable the FTP
 server when it was needed,
 and disable it when the transfer was complete.
 
 Well, one day he forgot to turn it off.  A few weeks
 later he went to enable
 it for another transfer and noticed a bunch of files
 on the server he didn't
 recognize.
 
 Someone had guessed the password and was using his
 FTP server to transfer files
 of a most unsavory nature.
 
 After we destroyed the files, changed the passwords,
 etc -- he decided to keep
 using the FTP (in spite of the incident).  The only
 problem, he argued, was
 that we'd forgot to turn it off.
 
 But the crook now had our address.  The next time he
 enabled that server, it
 wasn't more than a few hours before the crook was
 using it to move around
 his files again.  The guy must have set up some
 monitoring to alert him when
 the FTP site came up, then he either had a sniffer
 to get the password or
 he was able to brute-force it really fast.
 
 I tell that story when people tell me that the data
 their transferring isn't
 sensitive, and therefore using FTP isn't a security
 risk.  It still is.  The
 only time it's OK to use FTP is when it's download
 only and the files are
 publicly available.  Any other time, FTP is a
 liability.
 
 -- 
 Bill Moran
 http://www.potentialtech.com
 ___
 freebsd-questions@freebsd.org mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
Just an informational bit for the windows users that
will transfer files:

WinSCP
http://winscp.net/eng/index.php

Filezilla 
http://filezilla.sourceforge.net/

Portable FileZilla
http://portableapps.com/

PS: The portable version of FileZilla doesn't require
an install on Windows.

 


 

TV dinner still cooling? 
Check out Tonight's Picks on Yahoo! TV.
http://tv.yahoo.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Laptop lid switch and ACPI

2007-03-06 Thread Norberto Meijome
On Tue, 6 Mar 2007 17:57:31 -0500
frzburn [EMAIL PROTECTED] wrote:
 But I didn't find these info anywhere =(
 Please help me! =)

Kevin's email may have the answer for you.

 
 acpi is working, it has control on my fan and monitors my CPU temperature.
 I tried devd -dD, and it reacts when I close my lid, but I don't know how to
 use this output...

http://lists.freebsd.org/pipermail/freebsd-mobile/2006-August/008948.html

and
http://lists.freebsd.org/pipermail/freebsd-mobile/2006-August/008959.html

They refer specifically to the config for a Thinkpad Z60m - i'm sure you can
extrapolate from there:)
_
{Beto|Norberto|Numard} Meijome

So limp of brain that for them to conceive an idea is to risk a haemorrhage.
So limp of body that their purple dresses appear no more a dixative of housing
nerves and sinews than when they hang suspended from their hooks Mervin Peake,
Gormenghast, chap. 2, on the Earl's twin sisters

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Laptop lid switch and ACPI

2007-03-06 Thread frzburn

THAT is exactly what I needed!

A lot of thanks to both of you! =D

frzburn


On 3/6/07, Kevin Downey [EMAIL PROTECTED] wrote:


On 3/6/07, frzburn [EMAIL PROTECTED] wrote:
 Well, I thought about it, and you're right... What I really need is to
be
 able to do something upon an acpi event, like running a script when I
close
 my lid...

 But I didn't find these info anywhere =(
 Please help me! =)

 acpi is working, it has control on my fan and monitors my CPU
temperature.
 I tried devd -dD, and it reacts when I close my lid, but I don't know
how to
 use this output...

 Thanks!

 frzburn



 On 3/6/07, Norberto Meijome [EMAIL PROTECTED] wrote:
 
  On Mon, 5 Mar 2007 16:28:06 -0500
  frzburn [EMAIL PROTECTED] wrote:
 
   I need a hint on how to get my screen turn off (backlight too) on my
  Dell
   Laptop.
   I have an Inspiron 6400 (e1505), and FreeBSD 6 - amd64.
 
  Hi there,
  I am not sure how to switch off the screen on the dell (independent of
  ACPI)... in all laptops I've seen, it's fully controlled by the
hardware
  (bios?).
  Have you got acpi working ?
 
  If you *do* have ACPI working, and you want to see whether it is
firing
  acpi at
  all when you close the lid, you can restart devd in debugging mode:
 
  /etc/rc.d/devd stop
  devd -dD
 
  and then try your ACPI events.
 
  Also, you should be able to tell your ACPI module to let you handle
the
  events
  manually. For example, with the acpi_ibm.ko, the knob
 
  dev.acpi_ibm.0.events = 1
 
  tells acpi to pass all acpi messages to devd for handling. Search the
logs
  (in
  mobile@ , i believe) - i've posted my config for some sample actions
on
  different ACPI events.
 
  BTW, you may be able to switch off the display using a user mode
  application
  that is related to your video card. For example, if you have a Radeon
  card, the
  radeontool allows you to switch off the panel and external monitor
outputs
  (although the ext monitor gets switched on when you switch to X's VT)
 
  HIH,
  Beto
  _
  {Beto|Norberto|Numard} Meijome
 
  Against logic there is no armor like ignorance.
Laurence J. Peter
I have a Inspiron 8200, and I have the following in /etc/devd.conf to
turn off the screen when the lid is closed:

notify 10 {
   match system  ACPI;
   match subsystem   Lid;
   match notify  0x00;
   action /usr/local/bin/xset -display :0 dpms force off 
/tmp/xset.log;
};




--
The biggest problem with communication is the illusion that it has
occurred.


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


Re: Setting Env

2007-03-06 Thread Drew Jenkins
Don Hinton wrote:

# ldconfig -aout -f /etc/ld.so.conf /usr/local/lib/mysql/

will create it for you.  man ldconfig for more info...

Well, that created a binary, but when I rebooted...nothing. Same problem :(

- Original Message 
From: Jerry McAllister [EMAIL PROTECTED]
To: Drew Jenkins [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Tuesday, March 6, 2007 6:31:34 PM
Subject: Re: Setting Env

I don't know for sure what you mean That's not an option.   Is this
running from cron or at system bootup or something so there is no login
involved?

Correct

In those cases, it is well documented that your scripts have to be
completely responsible for their environments and paths, etc.  So,
set everything within the scipt.   Or, if it is something systemwide,
then put setting the variable it in /etc/rc.conf or /etc/rc.conf.local if
you let your system have one.

Exactly. But how? I could write a script like I did before:

#!/bin/csh
setenv LD_LIBRARY_PATH /usr/local/lib/mysql/

(chmod +x) but that didn't execute, dunno why. But then how do I call that 
script? What shell does /etc/rc.conf use?
TIA,
Drew






 

We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


kplayer patch snafu...

2007-03-06 Thread Gary Kline

Here's what happened with the path applied to kplayer.
Feedback welcome because I'd like to have a new, improved mplayer
working!!


kplayer-0.6.1.tar.bz2 100% of 4113 kB   13 kBps
00m00s
===  Extracting for kplayer-0.6.1
= MD5 Checksum OK for kplayer-0.6.1.tar.bz2.
= SHA256 Checksum OK for kplayer-0.6.1.tar.bz2.
===  Patching for kplayer-0.6.1
===  Applying FreeBSD patches for kplayer-0.6.1
1 out of 1 hunks failed--saving rejects to
kplayer/kplayerproperties.h.rej
= Patch patch-kplayerproperties.h failed to apply cleanly.
*** Error code 1

Stop in /usr/ports/multimedia/kplayer.


-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

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


Re: Setting Env

2007-03-06 Thread Jerry McAllister
On Tue, Mar 06, 2007 at 03:37:23PM -0800, Drew Jenkins wrote:

 Don Hinton wrote:
 
 # ldconfig -aout -f /etc/ld.so.conf /usr/local/lib/mysql/
 
 will create it for you.  man ldconfig for more info...
 
 Well, that created a binary, but when I rebooted...nothing. Same problem :(
 
 - Original Message 
 From: Jerry McAllister [EMAIL PROTECTED]
 To: Drew Jenkins [EMAIL PROTECTED]
 Cc: freebsd-questions@freebsd.org
 Sent: Tuesday, March 6, 2007 6:31:34 PM
 Subject: Re: Setting Env
 
 I don't know for sure what you mean That's not an option.   Is this
 running from cron or at system bootup or something so there is no login
 involved?
 
 Correct
 
 In those cases, it is well documented that your scripts have to be
 completely responsible for their environments and paths, etc.  So,
 set everything within the scipt.   Or, if it is something systemwide,
 then put setting the variable it in /etc/rc.conf or /etc/rc.conf.local if
 you let your system have one.
 
 Exactly. But how? I could write a script like I did before:

Well, either put setting the environment variable in rc.conf - then it
will be readable by everyone or put it is the script that needs
the variable to be set.

 
 #!/bin/csh
 setenv LD_LIBRARY_PATH /usr/local/lib/mysql/
 
 (chmod +x) but that didn't execute, dunno why. But then how do I call 
 that script? What shell does /etc/rc.conf use?

What failed in the script?  are those two lines the only ones
that were in the script?   If so, the script does nothing.
It sets the variable only for things from within the script.
The script is a shell.  I suppose you could source it, but that
stil takes a command.   If you want the environment variable to
be set for something that is taking place in the script, then
that variable must either be set in a durable way in the parent
environment or be set right there in the script that is using it.
The rc.conf method will make it available from the parent.
That is the whole point of rc.conf.

jerry


 TIA,
 Drew
 
 
 
 
 
 
  
 
 We won't tell. Get more on shows you hate to love 
 (and love to hate): Yahoo! TV's Guilty Pleasures list.
 http://tv.yahoo.com/collections/265 
 ___
 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: Laptop lid switch and ACPI

2007-03-06 Thread frzburn

OK, so I'm half the way to what I want =/
All these things with acpi work well, but as I got a NVidia card _and_
FreeBSD in amd64, I can't install the NVidia drivers... So I can turn my
screen blank with dpms, but the backlight stays on =(  and this dpms stuff
doesn't work in command-line...

Do you know if there's some way to control the video card/turn the backlight
off without NVidia's drivers? And if I can get this to work in command-line?

I remember that with Gentoo all that stuff worked, even in command-line. But
of course, I had NVidia drivers...


frzburn



On 3/6/07, frzburn [EMAIL PROTECTED] wrote:


THAT is exactly what I needed!

A lot of thanks to both of you! =D

frzburn


On 3/6/07, Kevin Downey  [EMAIL PROTECTED] wrote:

 On 3/6/07, frzburn  [EMAIL PROTECTED] wrote:
  Well, I thought about it, and you're right... What I really need is to
 be
  able to do something upon an acpi event, like running a script when I
 close
  my lid...
 
  But I didn't find these info anywhere =(
  Please help me! =)
 
  acpi is working, it has control on my fan and monitors my CPU
 temperature.
  I tried devd -dD, and it reacts when I close my lid, but I don't know
 how to
  use this output...
 
  Thanks!
 
  frzburn
 
 
 
  On 3/6/07, Norberto Meijome [EMAIL PROTECTED] wrote:
  
   On Mon, 5 Mar 2007 16:28:06 -0500
   frzburn [EMAIL PROTECTED] wrote:
  
I need a hint on how to get my screen turn off (backlight too) on
 my
   Dell
Laptop.
I have an Inspiron 6400 (e1505), and FreeBSD 6 - amd64.
  
   Hi there,
   I am not sure how to switch off the screen on the dell (independent
 of
   ACPI)... in all laptops I've seen, it's fully controlled by the
 hardware
   (bios?).
   Have you got acpi working ?
  
   If you *do* have ACPI working, and you want to see whether it is
 firing
   acpi at
   all when you close the lid, you can restart devd in debugging mode:
  
   /etc/rc.d/devd stop
   devd -dD
  
   and then try your ACPI events.
  
   Also, you should be able to tell your ACPI module to let you handle
 the
   events
   manually. For example, with the acpi_ibm.ko, the knob
  
   dev.acpi_ibm.0.events = 1
  
   tells acpi to pass all acpi messages to devd for handling. Search
 the logs
   (in
   mobile@ , i believe) - i've posted my config for some sample actions
 on
   different ACPI events.
  
   BTW, you may be able to switch off the display using a user mode
   application
   that is related to your video card. For example, if you have a
 Radeon
   card, the
   radeontool allows you to switch off the panel and external monitor
 outputs
   (although the ext monitor gets switched on when you switch to X's
 VT)
  
   HIH,
   Beto
   _
   {Beto|Norberto|Numard} Meijome
  
   Against logic there is no armor like ignorance.
 Laurence J. Peter
 I have a Inspiron 8200, and I have the following in /etc/devd.conf to
 turn off the screen when the lid is closed:

 notify 10 {
match system  ACPI;
match subsystem   Lid;
match notify  0x00;
action /usr/local/bin/xset -display :0 dpms force off 
 /tmp/xset.log;
 };




 --
 The biggest problem with communication is the illusion that it has
 occurred.




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


Re: Firefox only runs as root--help!

2007-03-06 Thread DAK GHATIKACHALAM

On 3/2/07, Dr. Jennifer Nussbaum [EMAIL PROTECTED] wrote:


This is a resend of something i sent to the freebsd-gnome list a few days
ago, but there wer no answers and i think its a real problem, so i hope
no one minds.

I have a new install of FreeBSD 6.2, and installed Gnome 2.16 and other
things, including Firefox 2.0, from Ports.

Firefox only runs as root. Every time. I Googled and saw that in an early
version there was a problem that it had to be run the _first_ time as root
but after that it was OK, but thats not the problem here--it ONLY runs as
root all the time. If I type firefox on the command line it
just immediately returns to the command line, no error messages
of any sort, nothing in /var/log/messages.



I had the same issue when I first made firefox,
probability is the your $HOME/.mozilla directory is owned by root with only
or no read permissions to other users.

firefox read. creates all of its data in that directory by default, so you
may want to login as root
and do

find / -name .mozilla -type d  -exec ls -ld {} \;

That will show all the directories  that are .mozilla once you figured
which your $HOME's .mozilla

you can issue chown user:group .mozilla directory and then  your firefox may
start normally

Best regards
DAK




When run as root it seems to be fine. The binary has execute

permissions for everyone.

What do i need to be doing?

Thanks!

Jen


-
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and
hotel bargains.
___
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: started getting repeated bge0: PHY read timed out messages

2007-03-06 Thread Michael K. Smith - Adhost
Hello:

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:owner-freebsd-
 [EMAIL PROTECTED] On Behalf Of Chad Leigh -- Shire.Net LLC
 Sent: Tuesday, March 06, 2007 12:05 PM
 To: User Questions
 Subject: Re: started getting repeated bge0: PHY read timed out
 messages
 
 
 On Mar 6, 2007, at 9:20 AM, Chad Leigh -- Shire.Net LLC wrote:
 
  Hi
 
  After running fine for a while, my new server running 6.2-RELEASE
  with latest security patches as of last Thursday or Friday started
  giving the message
 
  bge0: PHY read timed out
 
  and I found the following in the system log
 
 ok, it started happening again after about 1.5 hours after the last
 reboot.  bge0 started going down and up a few times over about an
 hour, and then the read timedout messages started up again.  Previous
 to the very first time that this started, the server had run for
 about 4 days since it was newly installed.
 
 Mar  6 09:09:23 server su: chad to root on /dev/ttyp0
 Mar  6 10:26:29 server kernel: bge0: link state changed to DOWN
 Mar  6 10:26:31 server kernel: bge0: link state changed to UP
 Mar  6 10:42:33 server kernel: bge0: link state changed to DOWN
 Mar  6 10:42:35 server kernel: bge0: link state changed to UP
 Mar  6 11:31:19 server kernel: bge0: PHY read timed out
 Mar  6 11:31:19 server last message repeated 3 times
 Mar  6 11:31:19 server kernel: bge0: link state changed to DOWN
 Mar  6 11:31:21 server kernel: bge0: PHY read timed out
 Mar  6 11:31:52 server last message repeated 116 times
 Mar  6 11:33:53 server last message repeated 488 times
 Mar  6 11:43:54 server last message repeated 2356 times
 Mar  6 11:53:56 server last message repeated 2372 times
 Mar  6 12:03:57 server last message repeated 2368 times
 Mar  6 12:09:53 server last message repeated 1399 times
 Mar  6 12:09:53 server kernel: bge0: watchdog timeout -- resetting
 Mar  6 12:09:53 server kernel: bge0: PHY read timed out
 Mar  6 12:09:53 server last message repeated 4 times
 Mar  6 12:09:53 server kernel: bge0: RX CPU self-diagnostics failed!
 Mar  6 12:09:53 server kernel: bge0: flow-through queue init failed
 Mar  6 12:09:53 server kernel: bge0: initialization failure
 Mar  6 12:09:54 server kernel: bge0: PHY read timed out
 Mar  6 12:10:25 server last message repeated 152 times
 Mar  6 12:12:27 server last message repeated 616 times
 Mar  6 12:22:29 server last message repeated 2540 times
 Mar  6 12:32:30 server last message repeated 2452 times
 Mar  6 12:42:31 server last message repeated 2524 times
 Mar  6 12:46:27 server last message repeated 1127 times
 Mar  6 12:46:27 server login: ROOT LOGIN (root) ON ttyv0
 Mar  6 12:46:29 server kernel: bge0: PHY read timed out
 Mar  6 12:46:41 server last message repeated 107 times
 Mar  6 12:46:40 server reboot: rebooted by root
 
 here is an ifconfig
 
 bge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
  options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING
  inet 166.70.252.128 netmask 0xff00 broadcast
 166.70.252.255
  inet 166.70.252.120 netmask 0x broadcast
 166.70.252.120
  inet 166.70.252.199 netmask 0x broadcast
 166.70.252.199
  ether 00:e0:81:61:e9:a0
  media: Ethernet autoselect (1000baseTX full-duplex)
  status: active
 
 and uname
 
 # uname -a
 FreeBSD server.shire.net 6.2-RELEASE-p2 FreeBSD 6.2-RELEASE-p2 #1:
 Sat Mar  3 13:11:00 UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/
 src/sys/server  i386
 #
 
 It is a TYAN S2850 single opteron system with 2.4ghz single core
 opteron.
 
 Its dmesg ID is seen below in the quoted section.
 
 I had another machine with this same MB that ran for a long time fine
 until I upgraded it to 6.0 or 6.1 last Fall and then I started to
 have the same problem (a post about it is in the archives).  I
 assumed it was a HW issue and turned off the port in the BIOS and
 used the other port until I took the machine offline as the customer
 using it no longer needed it.
 
 Now this machine is having the same symptoms and I remember reading
 in the lists something about PHY and bge and some driver problems a
 while back but cannot fnd it now in the archives.
 
 Could this be a SW problem or is it a HW issue?  Could it be related
 to the port it is connected to or the cable or something?  The other
 machine that had this problem was on a different switch brand.
 
 Thanks
 Chad
 
 
 
  This appears to be a HW problem at first look.  But when the server
  boots, it works fine for a while (hours, days??)
 
  Here is the id in the boot message
 
  Mar  6 09:01:21 server kernel: bge0: Broadcom BCM5705 A3, ASIC
  rev. 0x3003 mem 0xfeab-0xfeab irq 16 at device 14.0 on pci1
  Mar  6 09:01:21 server kernel: miibus0: MII bus on bge0
  Mar  6 09:01:21 server kernel: brgphy0: BCM5705 10/100/1000baseTX
  PHY on miibus0
  Mar  6 09:01:21 server kernel: brgphy0:  10baseT, 10baseT-FDX,
  100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
  Mar  6 09:01:21 server kernel: bge0: 

Re: Setting Env

2007-03-06 Thread Drew Jenkins
- Original Message 
From: Jerry McAllister [EMAIL PROTECTED]
To: Drew Jenkins [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Tuesday, March 6, 2007 7:46:26 PM
Subject: Re: Setting Env

If you want the environment variable to
be set for something that is taking place in the script, then
that variable must either be set in a durable way in the parent
environment or be set right there in the script that is using it.
The rc.conf method will make it available from the parent.
That is the whole point of rc.conf.

Right. I figured that much. So, what do I actually put in that file? I tried 
these two options:

setenv LD_LIBRARY_PATH /usr/local/lib/mysql/

export LD_LIBRARY_PATH=/usr/local/lib/mysql/


It didn't like either, presumably because it's not calling a bash or c-shell. 
So, what should I put in /etc/rc.conf that will achieve my objective?
TIA,
Drew






 

Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


DHCP Server V3.0.5 No BPF under chroot. Works normally otherwise.

2007-03-06 Thread Martin McCormick
I found some cook-book instructions for running dhcpd in
a chroot environment.  The article is 4 years old and appears to
be set up for FreeBSD5x, but it isn't far off for FreeBSD6.2
which is what I need dhcpd to run on.

Dhcpd runs fine when started normally as in
/usr/local/sbin/dhcpd.  I haven't yet gotten it to launch as the
chroot'ed version.  When one starts it, here is what happens:

   chroot /usr/local/chroot/dhcpd /usr/local/sbin/dhcpd

Internet Systems Consortium DHCP Server V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
WARNING: Host declarations are global.  They are not limited to the scope you 
declared them in.
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
No bpf devices.   Please read the README section for your operating system.

If I do a ls, everything looks identical:

cd /usr/local/chroot/dhcpd/dev
ls -l bpf*
crw---  1 root  wheel0,  96 Mar  6 11:44 bpf0
crw---  1 root  wheel1,  97 Mar  6 11:44 bpf1

cd /dev
ls -l bpf*
crw---  1 root  wheel0,  96 Mar  5 21:00 bpf0
crw---  1 root  wheel0,  97 Mar  5 21:00 bpf1

The part of the script that makes those devices is as follows:

BPF=`ls -l /dev/bpf0 | awk '{ print $6; }' | sed -e 's/,//g'`
export BPF
BPF1=`ls -l /dev/bpf1 | awk '{ print $6; }' | sed -e 's/,//g'`
export BPF1
cd /usr/local/chroot/dhcpd/dev
mknod bpf0 c 0 $BPF
mknod bpf1 c 1 $BPF1
chmod 0600 bpf*

I will post the script when it works since it appears to
be about 90% good.  It needs a little touch-up to make it work
for FreeBSD6.

My guess is that there is something else I need in the
chroot environment since the bpf appears to work normally when
dhcpd is run from root in the traditional way.

My thanks and a lot of credit to the person who
originally wrote this script which can be found at

   Linkname: Screaming Electron Forums - How to chroot your existing
  isc-dhcpd server on freebsd

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Network Operations Group
URL:
  http://screamingelectron.org/forum/archive/index.php/t-837.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kplayer patch snafu...

2007-03-06 Thread Gary Kline
On Tue, Mar 06, 2007 at 03:45:16PM -0800, Gary Kline wrote:
 
   Here's what happened with the path applied to kplayer.
   Feedback welcome because I'd like to have a new, improved mplayer
   working!!
 
 
 kplayer-0.6.1.tar.bz2 100% of 4113 kB   13 kBps
 00m00s
 ===  Extracting for kplayer-0.6.1
 = MD5 Checksum OK for kplayer-0.6.1.tar.bz2.
 = SHA256 Checksum OK for kplayer-0.6.1.tar.bz2.
 ===  Patching for kplayer-0.6.1
 ===  Applying FreeBSD patches for kplayer-0.6.1
 1 out of 1 hunks failed--saving rejects to
 kplayer/kplayerproperties.h.rej
 = Patch patch-kplayerproperties.h failed to apply cleanly.
 *** Error code 1
 
 Stop in /usr/ports/multimedia/kplayer.
 


Well, I loooked at the code and figured it out.  The original
header is a very great deal different from the patch.  There are
new function named and more.  --No, I didn't check the other
patches. 

-g

 
 -- 
   Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

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


Re: DHCP Server V3.0.5 No BPF under chroot. Works normally otherwise.

2007-03-06 Thread Kelly D. Grills
On Tue, Mar 06, 2007 at 07:03:35PM -0600, Martin McCormick wrote:
 
   I found some cook-book instructions for running dhcpd in
 a chroot environment.  The article is 4 years old and appears to
 be set up for FreeBSD5x, but it isn't far off for FreeBSD6.2
 which is what I need dhcpd to run on.
 

I run isc-dhcp3-server-3.0.5 from ports, started from /etc/rc.conf with the
following options:

dhcpd_enable=YES  # dhcpd enabled?
dhcpd_flags=-q# command option(s)
dhcpd_conf=/usr/local/etc/dhcpd.conf  # configuration file
dhcpd_ifaces= # ethernet interface(s)
dhcpd_withumask=022   # file creation mask

dhcpd_chuser_enable=YES   # runs w/o privileges?
dhcpd_withuser=dhcpd  # user name to run as
dhcpd_withgroup=dhcpd # group name to run as
dhcpd_chroot_enable=YES   # runs chrooted?
dhcpd_devfs_enable=YES# use devfs if available?
dhcpd_rootdir=/var/db/dhcpd   # directory to run in
dhcpd_includedir= # directory with config-

Here's the full pkg-message:

[EMAIL PROTECTED]/usr/ports/net/isc-dhcp3-server $ make display-message

  To setup dhcpd, you may have to copy /usr/local/etc/dhcpd.conf.sample
  to /usr/local/etc/dhcpd.conf for editing.

  This port installs dhcp daemon, but don't invokes dhcpd by default. If
  you want to invoke dhcpd at startup, put these lines into /etc/rc.conf.

dhcpd_enable=YES  # dhcpd enabled?
dhcpd_flags=-q# command option(s)
dhcpd_conf=/usr/local/etc/dhcpd.conf  # configuration file
dhcpd_ifaces= # ethernet interface(s)
dhcpd_withumask=022   # file creation mask

  If compiled with paranoia support (the default), the following lines
  are also supported:

dhcpd_chuser_enable=YES   # runs w/o privileges?
dhcpd_withuser=dhcpd  # user name to run as
dhcpd_withgroup=dhcpd # group name to run as
dhcpd_chroot_enable=YES   # runs chrooted?
dhcpd_devfs_enable=YES  # use devfs if available?
dhcpd_makedev_enable=YES# use MAKEDEV instead?
dhcpd_rootdir=/var/db/dhcpd   # directory to run in
dhcpd_includedir=some_dir   # directory with config-
  files to include
dhcpd_flags=-early_chroot # needs full root

  WARNING: -early_chroot requires a jail(8) like environment to work.

  WARNING: dhcpd_devfs_enable and dhcpd_makedev_enable are mutually
   exclusive
   dhcpd_makedev_enable make NO sense on FreeBSD 5.x and up!

  If compiled with jail support (the default), the following lines are
  also supported (-early_chroot and dhcpd_chroot_enable=YES are implied):

dhcpd_jail_enable=YES # runs imprisoned?
dhcpd_hostname=hostname # jail hostname
dhcpd_ipaddress=ip address  # jail ip address

  WARNING: dhcpd_rootdir needs to point to a full jail(8) environment.

  WARNING: never edit the chrooted or jailed dhcpd.conf file but
  /usr/local/etc/dhcpd.conf instead which is always copied where
  needed upon startup.

  WARNING: /usr/local/etc/rc.isc-dhcpd.conf is obsolete.  rc.conf like
  variables are still read there but should be moved /etc/rc.conf or
  /etc/rc.conf.d/dhcpd instead.  Also, the dhcpd_options variable must
  be renamed dhcpd_flags if any.


-- 
Kelly D. Grills
[EMAIL PROTECTED]



pgpuJ4kh8oKPm.pgp
Description: PGP signature


lsmod

2007-03-06 Thread Johannes Ambrose
Hi,

I'm trying to install an application (vmware tools) and I get as far as:

 

Setup is unable to find the lsmod program on your machine. Please make
sure 

it is installed. Do you want to specify the location of this program by
hand?

 

It seems there is no lsmod, modprobe, or any other related tools. How
can I install these? 

 

Regards,

Johannes

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


Re: upgrade, portupgrade or not ?

2007-03-06 Thread P.U.Kruppa

On Tue, 6 Mar 2007, jbousseau wrote:


Hi everyone,

I actually got a FreeBSD 5.4 for Mail server ( postfix+imp+horde) , and
DNS server with bind.
I really hesitate to upgrade my ports and my BSD because the
configuration of IMP+horde+php is a real mess.
  ^ 

What are your advices about it ?

Pls notice i'm not a Bsd specialist. Thanx

 
Under these special circumstances:
Don't mess around with your running system.
Do a completely fresh install on an extra machine
and exchange the old one, when the new is up and
running.

Regards,

Uli.




Peter Ulrich Kruppa
Wuppertal
Germany

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


Re: started getting repeated bge0: PHY read timed out messages

2007-03-06 Thread Chad Leigh -- Shire.Net LLC


On Mar 6, 2007, at 5:08 PM, Michael K. Smith - Adhost wrote:



Have you looked at the output of 'netstat -i' to see if there are
interface errors?  Also, have you looked at the switch-side interface
for errors, buffer problems, etc. (if that's possible)?  Finally, have
you swapped ports/cables on the switch?

Regards,

Mike



Hi Mike

Right now it seems to be behaving.  netstat -i shows no issues and  I  
have not had the problem recur again once I forced it from auto  
negotiation which ended up at 1000tx full duplex to now be 100tx at  
full duplex.  I don't know if it is related to the problem or not or  
is a coincidence that once I did that the problem has not arisen.  It  
happened about 3 times today before forcing the connection to be 100tx.


If it starts to happen again I will try and log in to the console and  
do the netstat -i then...


In the morning I will break out my powerbook and get the switch port  
assignments off a chart I have there so I can log in to the switch  
and check the port for errors.


I have not swapped ports/cables on the switch this time around but  
have had the exact same symptoms on a server with the same HW that  
was using different cables and a different switch...  I may swap  
cables but the machine is downtown and I am not so unless I cannot  
make progress I want to avoid going downtown :-)


I may swap the mainboard if it happens again to see if it is HW.   I  
have one or two spare mainboards of the same sort.


Thanks!
Chad


---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



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


Re: Setting Env

2007-03-06 Thread Garrett Cooper

Drew Jenkins wrote:

- Original Message 
From: Jerry McAllister [EMAIL PROTECTED]
To: Drew Jenkins [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Tuesday, March 6, 2007 7:46:26 PM
Subject: Re: Setting Env


If you want the environment variable to
be set for something that is taking place in the script, then
that variable must either be set in a durable way in the parent
environment or be set right there in the script that is using it.
The rc.conf method will make it available from the parent.
That is the whole point of rc.conf.


Right. I figured that much. So, what do I actually put in that file? I tried 
these two options:

setenv LD_LIBRARY_PATH /usr/local/lib/mysql/

export LD_LIBRARY_PATH=/usr/local/lib/mysql/


It didn't like either, presumably because it's not calling a bash or c-shell. 
So, what should I put in /etc/rc.conf that will achieve my objective?
TIA,
Drew


LD_LIBRARY_PATH=/usr/local/lib/mysql/ not work for you?

Why not source environment variables from an outside script / rc-file? 
It's better / smarter in the long run, IMHO.

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


Re: lsmod

2007-03-06 Thread Paulette McGee

--- Johannes Ambrose [EMAIL PROTECTED] wrote:

 Hi,
 
 I'm trying to install an application (vmware tools)
 and I get as far as:
 
  
 
 Setup is unable to find the lsmod program on your
 machine. Please make
 sure 
 
 it is installed. Do you want to specify the location
 of this program by
 hand?
 
  
 
 It seems there is no lsmod, modprobe, or any other
 related tools. How
 can I install these? 
 
  
 
 Regards,
 
 Johannes
 
 ___
 freebsd-questions@freebsd.org mailing list

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

Hello Johannes,
There is no lsmod, modprobe et al; however there are
similar tools like: kldstat, kldload, etc.  Here is
some additional information that might prove useful.

http://www.onlamp.com/pub/a/bsd/2005/01/13/FreeBSD_Basics.html

Regards,
Paulette McGee




 

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


reprocess mails in sendmail

2007-03-06 Thread kk kumar

Hi all,

Do you need to include specific commands to periodically process the queue
with sendmail?  With sendmail I would explicitly (via cron) rerun queue
processing every 30 minutes or so. Is there any better method to do this in
sendmail itself. The reason for this question is that some of the mails
which needs to be delivered to another mail server was not reachable and
this mail was not processed for 4 days. but when i manually flush the queue
i am able to send the mail to the RCPT mail server. Any fields i need to
change in Sendmail for solving this problem.

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