Re: ssh to root

2010-01-20 Thread Ruben de Groot
On Wed, Jan 20, 2010 at 11:09:14PM -0500, Steve Bertrand typed:
> Aryeh M. Friedman wrote:
> > I need to set up a machine so that I can type "ssh [host]" as root from
> > some other host and I get a prompt with super user privs... I already
> > have set this up for u...@host for root and ssh host for normal users...
> > but root still asks for a password after I set the authorized_keys file
> > in ~root/.ssh.. I have looked at ssh_config(5) but can't tell what
> > option (if any) does this... if anyone is coruious the final goal here
> > is to set up a sysutils/fusefs-ssh for this host (already installed and
> > working for normal users but want to make it so it is done as root)
> 
> Don't do it.
> 
> *never* permit root-level access directly to *any* of your equipment.

This is not very helpfull.
In a private LAN these security mantras become a lot less obvious. You defend
the LAN, not necessarily the individual systems.

To Aryen: you might want to set PermitRootLogin to 'without-password' in 
/etc/ssh/sshd_config. That way, password authentications for root are still
disabled and only users from machines with the correct private keys are allowed.

Ruben

> You want to provide as many levels of escalation to root level as you
> can, no matter what protocol you are using.
> 
> Auth in as a normal user (as you stated is already working), and then
> use sudo(8) to escalate yourself.
> 
> If you can already "ssh [host]" as a normal user, then you already have
> the concept of keys.
> 
> You can automate the escalation after you've authenticated, and then do
> what you want to do.
> 
> Seriously...
> 
> ...don't do it.
> 
> Steve
> 
> ps.
> 
> # pkg_add -r sudo
> # rehash
> # man sudo
> 
> Then, when/if you have problems with specific functions that need root
> privileges, ask those questions here instead.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


very low upload speed to any FTP daemons

2010-01-20 Thread Denis Chumachenko
I've tried pure-ftpd and vsftpd and got very low upload speed (~200kb/s) 
per a connection. but when I download on the server using wget speed is 
2Mb/s


on the ftpclient from which I do upload if to increase the param I/O 
buffer size till 1Mb upload speed increases to ~2Mb/s


when I use these ftp demons on the Linux server there is no such kind of 
problem and I do not need to correct I/O buffer size it seems it is 
identified automatically on Linux.


how should I set up FreeBSD to increase default I/O buffer or identify 
it automatically for ftp incoming connections.


please advise if you are able.


thanks a lot!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: High availability SQL server setup

2010-01-20 Thread Ruben de Groot

Here's an article about multi-master replication on MySQL:

http://onlamp.com/onlamp/2006/04/20/advanced-mysql-replication.html

It's not rocket science ;)

Ruben

On Wed, Jan 20, 2010 at 08:06:15PM -0500, Steve Bertrand typed:
> Hi all,
> 
> For some time, I've been considering consolidating all/most of our SQL
> databases (all MySQL) onto a single dedicated cluster setup.
> 
> I'm looking for feedback on the best way to do this.
> 
> All of the options I've considered so far have both their drawbacks and
> benefits. From what I can tell, there's no one single way to be able to
> have everything that I want.
> 
> Off the bat, I haven't found a way to create a cluster that can have
> more than one host in the cluster writable.
> 
> My objective would be to start with two very high end boxes. One would
> sit in my primary location, the other a few blocks away over a gi fibre
> link.
> 
> I would want the remote box to pick up immediately if the master server
> fails. I figure I could achieve this using network trickery for IP
> failover, CARP or the like and span a couple of vlans across the fibre.
> 
> I would want each SQL server connected to separate edge routers to
> ensure both server and network resilience. Each box has two GigE NICs,
> so off the bat, I'd have each box doing VRRP to two separate edge gear
> at each location.
> 
> My concern is, is that I can't envision how both boxes could possibly
> stay in a continuous state that would allow such fail-over, and
> fail-back. (fail-back is less of a concern...if it comes to it, I'd
> rebuild by hand if necessary).
> 
> I've considered ZFS replication, but there could be several minutes
> worth of snapshot missing if the primary fails.
> 
> I already have MySQL replication in many spots, but that's only one
> write master and read-only slaves.
> 
> Can you provide any details or new ideas that I'm missing in order to
> have the holy grail of SQL redundancy?
> 
> Cheers,
> 
> Steve
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


VirtualBox - does it work for FreeBSD?

2010-01-20 Thread Glyn Millington

Good Morning :-)

A quick question for anyone running VirtualBox on a FreeBSD _host_
machine, with Linux or Windows as a _guest_ OS.  


Does it work? 


That is, do the guest additions work fully for those guests, or are
there limitations such those I experience currently when running
FreeBSD 8 as the guest?  (eg no access to USB, no fullscreen mode).
Any major problems with a FreeBSDS host and Windows/Linux guest?

atb


Glyn


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


Re: NIS oops

2010-01-20 Thread Aryeh M. Friedman

Olivier Nicole wrote:

is there any way to use an other machine on the net to kick start it



Unless you have an account on that master server that is not depending
on NIS, I see no way.

Bests,

Olivier

  
and thats the one error I made in setting it up likely... (I saw that 
note after rebooting in the handbook)

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


Re: NIS oops

2010-01-20 Thread Olivier Nicole
> is there any way to use an other machine on the net to kick start it

Unless you have an account on that master server that is not depending
on NIS, I see no way.

Bests,

Olivier
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


NIS oops

2010-01-20 Thread Aryeh M. Friedman
I set up and tested NIS on our new master server then rebooted and it 
failed to come up... it is not possible for me to get physical access 
(or anyone else for that matter) until tommorow afternoon... is there 
any way to use an other machine on the net to kick start it (NFS mount 
attempts to it also hang)

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


Fwd: DSN (was: Re: Receive email from Exchange 2003)

2010-01-20 Thread Tim Judd
Truong Thu Bac,


The DNS/MX to foster.com.vn is possibly misconfigured too, it's
blocking mail from gmail.

-- Forwarded message --
From: Mail Delivery Subsystem 
Date: Thu, 21 Jan 2010 05:22:38 +
Subject: Delivery Status Notification (Failure)
To: taj...@gmail.com

Delivery to the following recipient failed permanently:

 v...@foster.com.vn

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the
recipient domain. We recommend contacting the other email provider for
further information about the cause of this error. The error that the
other server returned was: 550 550 Blocked (state 14).

- Original message -

MIME-Version: 1.0
Received: by 10.115.134.18 with SMTP id l18mr680973wan.128.1264051354525; Wed,
20 Jan 2010 21:22:34 -0800 (PST)
In-Reply-To: <00bf01ca9a45$51a26aa0$f4e73f...@com.vn>
References: <00bf01ca9a45$51a26aa0$f4e73f...@com.vn>
Date: Wed, 20 Jan 2010 22:22:34 -0700
Message-ID: 
Subject: Re: Receive email from Exchange 2003
From: Tim Judd 
To: Truong Thu Bac 
Cc: freebsd-questions@freebsd.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 1/20/10, Truong Thu Bac  wrote:
> Dear Mr/Ms,
>
>
>
> I want to build a Internal Email System between a PC with FreeBSD OS and
> Exchange 2003 (Email Server)
>
>
>
> Current, I got  a Proxy Server (IP:10.20.1.10) within FreeBSD OS. I
> installed Sendemail Software and Qpopper Software.
>
> I tried to send and receive emai, this blow is result:
>
>
>
> Send Email:  From 10.20.1.10  to Email Exchange 2003 System
> à YES
>
> From 10.20.1.10 to 10.20.1.10 à YES
>
> Receive Email:   From Email Exchange 2003 System to 10.20.1.10
> à NO
>
>  From 10.20.1.10 to 10.20.1.10  à YES
>
> Could you please kindly give a Solution for this ?
>
> If you have any question, please contact with me.
>
>
>
> Thank you very much .
>
>
>
> Regards,
>
> VBAC




It's probably due to how Exchange or the Internet at large has MX
records in DNS setup.  Check that.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Receive email from Exchange 2003

2010-01-20 Thread Tim Judd
On 1/20/10, Truong Thu Bac  wrote:
> Dear Mr/Ms,
>
>
>
> I want to build a Internal Email System between a PC with FreeBSD OS and
> Exchange 2003 (Email Server)
>
>
>
> Current, I got  a Proxy Server (IP:10.20.1.10) within FreeBSD OS. I
> installed Sendemail Software and Qpopper Software.
>
> I tried to send and receive emai, this blow is result:
>
>
>
> Send Email:  From 10.20.1.10  to Email Exchange 2003 System
> à YES
>
> From 10.20.1.10 to 10.20.1.10 à YES
>
> Receive Email:   From Email Exchange 2003 System to 10.20.1.10
> à NO
>
>  From 10.20.1.10 to 10.20.1.10  à YES
>
> Could you please kindly give a Solution for this ?
>
> If you have any question, please contact with me.
>
>
>
> Thank you very much .
>
>
>
> Regards,
>
> VBAC




It's probably due to how Exchange or the Internet at large has MX
records in DNS setup.  Check that.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: simulating dnsdomain

2010-01-20 Thread Paul Schmehl
--On January 21, 2010 12:10:20 AM -0500 "Aryeh M. Friedman" 
 wrote:



I have an application that needs to reliably get the fully qualified dns
name for the localhost (3rd party app so I don't want to change it
unless I have to) currrently it calls dnsdomainname which is in
linux is an alias for hostname --fqdn but FreeBSD does not have that
option set... how can I simulate this?


ln -s /bin/hostname /bin/dnsdomainname

Paul Schmehl, If it isn't already
obvious, my opinions are my own
and not those of my employer.
**
WARNING: Check the headers before replying

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


simulating dnsdomain

2010-01-20 Thread Aryeh M. Friedman

I have an application that needs to reliably get the fully qualified dns
name for the localhost (3rd party app so I don't want to change it
unless I have to) currrently it calls dnsdomainname which is in
linux is an alias for hostname --fqdn but FreeBSD does not have that
option set... how can I simulate this?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Receive email from Exchange 2003

2010-01-20 Thread Truong Thu Bac
Dear Mr/Ms,

 

I want to build a Internal Email System between a PC with FreeBSD OS and
Exchange 2003 (Email Server)

 

Current, I got  a Proxy Server (IP:10.20.1.10) within FreeBSD OS. I
installed Sendemail Software and Qpopper Software.

I tried to send and receive emai, this blow is result:

 

Send Email:  From 10.20.1.10  to Email Exchange 2003 System
à YES

From 10.20.1.10 to 10.20.1.10 à YES

Receive Email:   From Email Exchange 2003 System to 10.20.1.10
à NO

 From 10.20.1.10 to 10.20.1.10  à YES

Could you please kindly give a Solution for this ?

If you have any question, please contact with me.

 

Thank you very much .

 

Regards,

VBAC

 

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


ssh to root

2010-01-20 Thread Aryeh M. Friedman
I need to set up a machine so that I can type "ssh [host]" as root from 
some other host and I get a prompt with super user privs... I already 
have set this up for u...@host for root and ssh host for normal users... 
but root still asks for a password after I set the authorized_keys file 
in ~root/.ssh.. I have looked at ssh_config(5) but can't tell what 
option (if any) does this... if anyone is coruious the final goal here is to set up a sysutils/fusefs-ssh for this host (already installed and working for normal users but want to make it so it is done as root)


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


Re: ssh to root

2010-01-20 Thread Steve Bertrand
Aryeh M. Friedman wrote:
> I need to set up a machine so that I can type "ssh [host]" as root from
> some other host and I get a prompt with super user privs... I already
> have set this up for u...@host for root and ssh host for normal users...
> but root still asks for a password after I set the authorized_keys file
> in ~root/.ssh.. I have looked at ssh_config(5) but can't tell what
> option (if any) does this... if anyone is coruious the final goal here
> is to set up a sysutils/fusefs-ssh for this host (already installed and
> working for normal users but want to make it so it is done as root)

Don't do it.

*never* permit root-level access directly to *any* of your equipment.

You want to provide as many levels of escalation to root level as you
can, no matter what protocol you are using.

Auth in as a normal user (as you stated is already working), and then
use sudo(8) to escalate yourself.

If you can already "ssh [host]" as a normal user, then you already have
the concept of keys.

You can automate the escalation after you've authenticated, and then do
what you want to do.

Seriously...

...don't do it.

Steve

ps.

# pkg_add -r sudo
# rehash
# man sudo

Then, when/if you have problems with specific functions that need root
privileges, ask those questions here instead.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ssh to root

2010-01-20 Thread Glen Barber
Hi,

Aryeh M. Friedman wrote: 
> I need to set up a machine so that I can type "ssh [host]" as root from 
> some other host and I get a prompt with super user privs... I already 
> have set this up for u...@host for root and ssh host for normal users... 
> but root still asks for a password after I set the authorized_keys file 
> in ~root/.ssh.. I have looked at ssh_config(5) but can't tell what 
> option (if any) does this

PermitRootLogin is set to 'no' by default in /etc/ssh/sshd_config.  It
isn't advisable disabling this extra layer of security.

Regards,

-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: ssh to root

2010-01-20 Thread Aryeh M. Friedman
I need to set up a machine so that I can type "ssh [host]" as root from 
some other host and I get a prompt with super user privs... I already 
have set this up for u...@host for root and ssh host for normal users... 
but root still asks for a password after I set the authorized_keys file 
in ~root/.ssh.. I have looked at ssh_config(5) but can't tell what 
option (if any) does this... if anyone is coruious the final goal here 
is to set up a sysutils/fusefs-ssh for this host (already installed and 
working for normal users but want to make it so it is done as root)


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


Re: Trouble getting a core dump from clamd

2010-01-20 Thread Doug Poland

On 2010-01-20 17:11, Boris Samorodov wrote:

On Wed, 20 Jan 2010 15:24:51 -0600 Doug Poland wrote:


% sysctl -a | grep core
kern.corefile: /var/coredumps/%U/%N.core


As CORE(5) says %U is a UID...


% touch /var/coredumps/file
% ll !$
ll /var/coredumps/file
-rw-r--r--  1 doug  wheel  0 Jan 20 15:13 /var/coredumps/file


... so you should have a directory /var/coredumps/  owned by
(well, at least have permissions to write by) this UID.


That was it, thanks for the keen vision!

--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


High availability SQL server setup

2010-01-20 Thread Steve Bertrand
Hi all,

For some time, I've been considering consolidating all/most of our SQL
databases (all MySQL) onto a single dedicated cluster setup.

I'm looking for feedback on the best way to do this.

All of the options I've considered so far have both their drawbacks and
benefits. From what I can tell, there's no one single way to be able to
have everything that I want.

Off the bat, I haven't found a way to create a cluster that can have
more than one host in the cluster writable.

My objective would be to start with two very high end boxes. One would
sit in my primary location, the other a few blocks away over a gi fibre
link.

I would want the remote box to pick up immediately if the master server
fails. I figure I could achieve this using network trickery for IP
failover, CARP or the like and span a couple of vlans across the fibre.

I would want each SQL server connected to separate edge routers to
ensure both server and network resilience. Each box has two GigE NICs,
so off the bat, I'd have each box doing VRRP to two separate edge gear
at each location.

My concern is, is that I can't envision how both boxes could possibly
stay in a continuous state that would allow such fail-over, and
fail-back. (fail-back is less of a concern...if it comes to it, I'd
rebuild by hand if necessary).

I've considered ZFS replication, but there could be several minutes
worth of snapshot missing if the primary fails.

I already have MySQL replication in many spots, but that's only one
write master and read-only slaves.

Can you provide any details or new ideas that I'm missing in order to
have the holy grail of SQL redundancy?

Cheers,

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Trouble getting a core dump from clamd

2010-01-20 Thread Boris Samorodov
On Wed, 20 Jan 2010 15:24:51 -0600 Doug Poland wrote:

> % sysctl -a | grep core
> kern.corefile: /var/coredumps/%U/%N.core

As CORE(5) says %U is a UID...

> % touch /var/coredumps/file
> % ll !$
> ll /var/coredumps/file
> -rw-r--r--  1 doug  wheel  0 Jan 20 15:13 /var/coredumps/file

... so you should have a directory /var/coredumps/ owned by
(well, at least have permissions to write by) this UID.

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


Re: Trouble getting a core dump from clamd

2010-01-20 Thread Chuck Swiger
Hi--

On Jan 20, 2010, at 1:24 PM, Doug Poland wrote:
> % sysctl -a | grep core
> kern.corefile: /var/coredumps/%U/%N.core

Does /var/coredumps/doug and/or /var/coredumps/clamav exist and have 
appropriate permissions (or be 1777 like /tmp to avoid a problem with that)...?

-- 
-Chuck

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


Re: Trouble getting a core dump from clamd

2010-01-20 Thread Doug Poland

On Wed, January 20, 2010 15:05, Chuck Swiger wrote:
> Hi--
>
> On Jan 20, 2010, at 12:46 PM, Doug Poland wrote:
>> Thanks for the suggestion and the pointer to man 5 core.  I
>> implemented your suggestions but still get no core dump.  Very
>> strange...
>
> Check your default resource limits (shell startup files &
> /etc/login.conf) and see whether coredumpsize is set to 0, maybe?
>
Nope, nothin'

% set | grep core | egrep -v grep
% env | grep core | egrep -v grep

% grep core /etc/login.c* | egrep -v #
/etc/login.conf::coredumpsize=unlimited:\


> If you build and run:
>
> % cat crash.c
> #include 
>
> main()
> {
> char *bad = NULL;
> bad[0] = '1';
> }
> % cc -o crash crash.c
> % ./crash
> [1]16550 segmentation fault (core dumped)  ./crash
> % ls /cores
> crash.16550.core
>
> ...do you get this trivial program to dump core?
>
No, not on the system in question.  Just tried it on a plain-vanilla
8.0-RELEASE box I just built and I do get the the core dump there.

% echo $SHELL
/bin/tcsh


% uname -a
FreeBSD hostname.domain.com 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3 #0:
Sat Sep 12 11:15:05 CDT 2009
r...@hostname.domain.com:/usr/obj/usr/src/sys/GENERIC-SERVER  i386


% cat /sys/i386/conf/GENERIC-SERVER
ident   GENERIC-SERVER
include GENERIC
options INCLUDE_CONFIG_FILE # Include this file in kernel
options QUOTA


% sysctl -a | grep core
kern.corefile: /var/coredumps/%U/%N.core
kern.nodump_coredump: 0
kern.coredump: 1
kern.sugid_coredump: 1
debug.elf32_legacy_coredump: 1


% touch /var/coredumps/file
% ll !$
ll /var/coredumps/file
-rw-r--r--  1 doug  wheel  0 Jan 20 15:13 /var/coredumps/file




-- 
Regards,
Doug

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


Re: Trouble getting a core dump from clamd

2010-01-20 Thread Chuck Swiger
Hi--

On Jan 20, 2010, at 12:46 PM, Doug Poland wrote:
> Thanks for the suggestion and the pointer to man 5 core.  I
> implemented your suggestions but still get no core dump.  Very
> strange...

Check your default resource limits (shell startup files & /etc/login.conf) and 
see whether coredumpsize is set to 0, maybe?  If you build and run:

% cat crash.c
#include 

main()
{
char *bad = NULL;
bad[0] = '1';
}
% cc -o crash crash.c
% ./crash
[1]16550 segmentation fault (core dumped)  ./crash
% ls /cores
crash.16550.core

...do you get this trivial program to dump core?

Regards,
-- 
-Chuck

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


Re: Trouble getting a core dump from clamd

2010-01-20 Thread Doug Poland

On Tue, January 19, 2010 12:35, Chuck Swiger wrote:
> Hi--
>
> On Jan 19, 2010, at 10:04 AM, Doug Poland wrote:
>> No joy.
>>
>> # sysctl kern.corefile=/var/crash/clamd.core
>> # /usr/local/etc/rc.d/clamav-clamd start
>>  Starting clamav_clamd.
>>  Segmentation fault
>> # ll /var/crash
>>  total 2
>>  -rw-r--r--  1 root  wheel  5 Apr 10  2005 minfree
>
> Please see "man 5 core"; in particular, clamd changes userid:
>
> By default, a process that changes user or group credentials
> whether real or effective will not create a corefile.  This behaviour
> can be changed to generate a core dump by setting the sysctl(8)
> variable
>  kern.sugid_coredump to 1.
>
> ...so you will need to toggle that sysctl also.  I'd suggest doing
> something more like:
>
> mkdir /cores
> chmod 1777 /cores
> sysctl kern.sugid_coredump=1
> sysctl kern.corefile=/cores/%N.%P.core
>
> ...but adjust the path to be under /var or /usr if free diskspace
> makes doing so necessary.
>
Thanks for the suggestion and the pointer to man 5 core.  I
implemented your suggestions but still get no core dump.  Very
strange...



-- 
Regards,
Doug

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


Re: dovecot/jail question

2010-01-20 Thread Michael Grimm
Sam Fourman Jr.  wrote:
> On Tue, Jan 19, 2010 at 4:18 PM, Jim  wrote:

>> First, Thanks all for the help with my previous "sendmail" question.
>> I rebuilt the jail without postfix and that at least seems happy.
>
> So does this mean that you can NOT run postfix in a FreeBSD 8 Jail?
>
> I didn't know this, I just assumed postfix in a Jail would work. if
> possible could someone confirm this?

I can confirm that Postfix, Dovecot, and Squirrelmail do run in jails,
and I do assume that almost every mailing system will do as well.

Regards,
Michael
-- 
to let
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Please help me

2010-01-20 Thread Jonathan Chen
On Wed, Jan 20, 2010 at 01:10:48PM +0630, komyo gyi wrote:
> hi,
> 
> >  yesterday i have modify squid.conf file.i have use vi editior.but i
> > cannot delete in text message. following error ^? appear.How to do it?.
> > please help me.

Looks like you're hitting the Delete key. That's not a valid vi
command. You need to be in command mode and hit the 'x' key.
-- 
Jonathan Chen 
--
The human mind ordinarily operates at only ten percent of its capacity
 -- the rest is overhead for the operating system.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Missing all ttyv* device nodes after upgrade 7.0 -> 7.2

2010-01-20 Thread pp
Morgan Wesström wrote:
> Michael Powell wrote:
>>> agp0:  on hostb0
>>> agp0: allocating GATT for aperture of size 128M
>>> vgapci0:  mem
>>> 0xf800-0xf8ff,0xe000-0xefff,0xf900-0xf9ff irq 3
>>> at device 0.0 on pci1
>> This is an odd IRQ for a video card to come up on, as this is usually 
>> reserved for one of the COMM ports. Maybe an IRQ conflict here.
> 
> I noticed that too :-)
> 
>> Below is a snippet from mine. You didn't remove device vga from the kernel 
>> by any chance? Switching back to GENERIC for a test is probably a good idea 
>> as it may remove a variable from the problem.
> 
> No, all of syscons dependencies (according to the man page) are still there.
> 
>> Funny thing is it worked in 7.0 previously? At first glance this smells like 
>> BIOS PnP probing problems, but I think if it were it would have showed 
>> itself before. Try GENERIC and see what happens. If it goes away you know 
>> where to look. 
> 

Turned out the graphics adapter had died when he got to the computer.
Case closed and kudos to FreeBSD for still running all other services
without complaining. :-)
/Morgan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: freebsd 8.0 slow boot

2010-01-20 Thread Amitabh Kant
On Wed, Jan 20, 2010 at 10:00 PM, Omer Faruk Sen  wrote:

> Hi,
>
> After boot loader multi choice menu FreeBSD 8.0 waits about 2 ~
> minutes to boot just showing
>
> |
>
> sign. As far as I know FreeBSD 8.0 uses a new TTY subsystem
>
> OLD one:
>
>  w
>  6:28PM  up 5 days,  4:09, 2 users, load averages: 0.00, 0.00, 0.00
> USER TTY  FROM  LOGIN@  IDLE WHAT
> root p0
>
>
> NEW one (with 8.0)
>
> w
> 12:26AM  up 11 mins, 2 users, load averages: 0.00, 0.02, 0.02
> USER TTY  FROM  LOGIN@  IDLE WHAT
> root pts/1
>
>
> I think this is related with that. Is there any option to use old TTY
> subsystem on 8.0 or how can I speed up that boot wait process.
>
> Regards.
>

I am having the same problem with a dual processor Intel board. Would be
interested if any setting can speed up the boot process.

Amitabh Kant
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


freebsd 8.0 slow boot

2010-01-20 Thread Omer Faruk Sen
Hi,

After boot loader multi choice menu FreeBSD 8.0 waits about 2 ~
minutes to boot just showing

|

sign. As far as I know FreeBSD 8.0 uses a new TTY subsystem

OLD one:

 w
 6:28PM  up 5 days,  4:09, 2 users, load averages: 0.00, 0.00, 0.00
USER TTY  FROM  LOGIN@  IDLE WHAT
root p0


NEW one (with 8.0)

w
12:26AM  up 11 mins, 2 users, load averages: 0.00, 0.02, 0.02
USER TTY  FROM  LOGIN@  IDLE WHAT
root pts/1


I think this is related with that. Is there any option to use old TTY
subsystem on 8.0 or how can I speed up that boot wait process.

Regards.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: [audio] Why pcm audio signal can't be read back through pcm channel?

2010-01-20 Thread WATANABE Kazuhiro
Hi.

How about "mixer =rec vol" or "mixer =rec pcm" ?

At Fri, 15 Jan 2010 11:40:10 -0800,
Yuri wrote:
> I noticed that I can't record sound that comes from pcm channel. For 
> example audacity only records my voice coming from mic, but doesn't 
> record other person's voice that skype sends into pcm channel.
> This used to work before. I look at mixer -- all channels are open.
> 
> Why pcm doesn't get sent back? Is there something wrong with mixer?
> 
> snd_es137x.ko is used:
> pcm0:  port 0xec00-0xec3f irq 17 at device 1.0 on pci8
> pcm0: es1370_wrcodec: timed out
> pcm0: es1370_wrcodec: timed out
> pcm0: es1370_wrcodec: timed out
> pcm0: [ITHREAD]
> pcm0: 
> 
> Yuri
---
WATANABE Kazuhiro (cqg00...@nifty.ne.jp)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Missing all ttyv* device nodes after upgrade 7.0 -> 7.2

2010-01-20 Thread Morgan Wesström

Michael Powell wrote:
>> agp0:  on hostb0
>> agp0: allocating GATT for aperture of size 128M
>> vgapci0:  mem
>> 0xf800-0xf8ff,0xe000-0xefff,0xf900-0xf9ff irq 3
>> at device 0.0 on pci1
> 
> This is an odd IRQ for a video card to come up on, as this is usually 
> reserved for one of the COMM ports. Maybe an IRQ conflict here.

I noticed that too :-)

> Below is a snippet from mine. You didn't remove device vga from the kernel 
> by any chance? Switching back to GENERIC for a test is probably a good idea 
> as it may remove a variable from the problem.

No, all of syscons dependencies (according to the man page) are still there.

> Funny thing is it worked in 7.0 previously? At first glance this smells like 
> BIOS PnP probing problems, but I think if it were it would have showed 
> itself before. Try GENERIC and see what happens. If it goes away you know 
> where to look. 

It appears this computer has an i865G chipset (built-in graphics) as
well as an extra nvidia card. The output from devinfo shows that agp is
attaching to hostb0 instead of vgapci0 so I will ask the person to
remove the nvidia card and only run from the built-in graphics. PnP most
likely seems to be the culprit here for sure. Thanks again for your input.

pcib0
  pci0
hostb0
  agp0
pcib1
  pci1
vgapci0


/Morgan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Restarting after Make Install....

2010-01-20 Thread Roger
On Wed, Jan 20, 2010 at 6:44 AM, Jerry  wrote:
> On Tue, 19 Jan 2010 20:13:33 -0500
> Roger Roger  articulated:
>
>> I'm not a FreeBSD expert so I cannot speak about what is considered
>> "best pratices" but I never restart my server after doing a port
>> install/reinstall/upgrade/removal. I guess the only time you will need
>> to do that is when your port may be a kernel module that cannot be
>> unloaded/reloaded without causing major problems.
>
> I only do a ports update when there are a significance number of
> programs that I have installed that have updates available. If the
> major players like OpenLDAP, MySQL, Postfix, Apache, etc are all to be
> updated at one time, I usually choose to reboot after the process has
> completed. It is not that I feel it is absolutely necessary; but rather
> that I want to insure that they will in fact all start up correctly,
> and in some cases, like Postfix, in the correct order. I have on rare
> occasions found discrepancies on how the system starts and performs
> after a major update. At worst, you lose only a minute or so of up time,
> assuming your machine is not a mission critical one. At best, you
> might discover a problem that might have gone unknown for an extended
> period of time. I think that the old English saying: "six of one, a
> half dozen of the other" is appropriate to the situation.
>
> Just my 2¢.
>
> --
> Jerry
> ges...@yahoo.com
>
> |===
> |===
> |===
> |===
> |
>
> You are only young once, but you can stay immature indefinitely.
>

Thank you for sharing your procedure. I do not have enough time with
FreeBSD but it helps to read about different things other people are
doing.
I really admire and appreciate the quality of this mailing list.

-r
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: SunFire X2100 fails

2010-01-20 Thread Michael Powell
Julian Fagir wrote:

> Hello,
> 
> I recently got a SunFire X2100 to play with (first version, not M2).
> Linux (Debian) and 7.2-RELEASE works without problems, just installs
> straight-away and runs fine (currently 31 days uptime).
> But 8.0-RELEASE does not work, neither when being upgraded nor when
> installing from CD or memstick.
> 
> The problem is: The kernel does not recognize the slices and partitions.
> When installing it, the installer shows me a single slice on each of the
> two hard disks though there are more. It also shows a warning about a
> GPT-label, no matter whether there is a GPT or MBR on it.
> After reslicing and -partitioning them, the installer fails when creating
> a filesystem on them, saying the devices (in this case the partitions) are
> not configured.
[snip]

This sounds very familiar to something I just went through. A drive went up 
in smoke and the spare I pulled from the shelf had 6.2 on it. The 8 Release 
install would fail, something to do with either the partition table and/or 
labels from the earlier being invisible to the new and thus could not be 
written to.

Boot a LiveFS CD, then at a root prompt do: 

sysctl kern.geom.debugflags=16  and:

dd if=/dev/zero of=/dev/adx oseek=1 bs=512 count=1 

where x equals your drive number. Probably should only do this before a 
fresh install and NOT on a system with data you want to keep.

The exact error I received whilst trying to install 8 in sysinstall was 
this:

"Unable to find device node for /dev/ad4s1b in /dev! The creation of 
filesystems will be aborted." Then pressing "OK" brings this: "Couldn't make 
filesystems properly. Aborting."

-Mike



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


Re: Missing all ttyv* device nodes after upgrade 7.0 -> 7.2

2010-01-20 Thread Michael Powell
Morgan Wesström wrote:

>>> These dmesg lines are from another 7.2 machine and I am missing them
>>> from the output of this newly upgraded machine:
>>>
>>> sc0:  at flags 0x100 on isa0
>>> sc0: VGA <16 virtual consoles, flags=0x300>
>>> vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on
>>> isa0
[snip]
> 
> 
> Thanks for your answer Mike. The system is actually an old Celeron on an
> Intel i865 based mainboard so the hardware should be pretty well
> supported I guess and after all - it did work with 7.0. The machine is
> only used as a router so the lack of virtual terminals aren't critical
> but I still would like to solve it. I will have the owner look for a
> more recent BIOS and then I'll reinstall the GENERIC kernel before
> filing a bug report. Here's a more verbose dmesg snippet that might give
> someone a clue:

I have an Asus P5P800SE i865 motherboard here with a Pentium D 940 on it. It 
is currently running 8-Release and does not exhibit this problem. Right now 
there is still an AGP video card in it.
 
> agp0:  on hostb0
> agp0: allocating GATT for aperture of size 128M
> vgapci0:  mem
> 0xf800-0xf8ff,0xe000-0xefff,0xf900-0xf9ff irq 3
> at device 0.0 on pci1

This is an odd IRQ for a video card to come up on, as this is usually 
reserved for one of the COMM ports. Maybe an IRQ conflict here.

> isab0:  at device 31.0 on pci0
> isa0:  on isab0
> sc: sc0 already exists; skipping it
> vga: vga0 already exists; skipping it
> isa_probe_children: disabling PnP devices
> isa_probe_children: probing non-PnP devices
> pmtimer0 on isa0
> sc0: no video adapter found.
> sc0:  failed to probe on isa0
> vga0:  failed to probe on isa0
> atkbdc0:  at port 0x60,0x64 on isa0
> vt0: not probed (disabled)
> isa_probe_children: probing PnP devices

Below is a snippet from mine. You didn't remove device vga from the kernel 
by any chance? Switching back to GENERIC for a test is probably a good idea 
as it may remove a variable from the problem.

sc0:  at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
atkbdc0:  at port 0x60,0x64 on isa0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]

The BIOS selection for PnP OS support should be "Off". Irregardless, this 
looks like botched PnP probing by the BIOS. Only idea comes to mind right 
away is if you are using a PCI video card instead of AGP there is a BIOS 
selection which chooses which is initialized first. There is usually also 
one somewhere about whether to assign an IRQ to the video card. IRQ 3 just 
looks wrong. Check the mobo manual for slot sharing. A lot of motherboards 
will do something like share IRQs between the AGP slot and the first PCI 
slot (and/or others as well), with the sharing usually involving the AGP, 
the PCI slot, and USB controller(s). There is usually a chart in the manual 
which shows what is shared and where. I have such a chart in mine. 
 
> What is that vt0 (disabled)? Is that related? pciconf reports this:
> 
> pc...@pci0:0:1:0: class=0x060400 card=0x chip=0x25718086
> rev=0x02 hdr=0x01
> vendor = 'Intel Corporation'
> device = '82865G/PE/P, 82848P PCI-to-AGP Bridge'
> class  = bridge
> subclass   = PCI-PCI
> is...@pci0:0:31:0:class=0x060100 card=0x chip=0x24d08086
> rev=0x02 hdr=0x00
> vendor = 'Intel Corporation'
> device = '82801EB/ER (ICH5/ICH5R) LPC Interface Bridge'
> class  = bridge
> subclass   = PCI-ISA
> vgap...@pci0:1:0:0:   class=0x03 card=0x2034107d chip=0x022010de
> rev=0xa1 hdr=0x00
> vendor = 'Nvidia Corp'
> class  = display
> subclass   = VGA

This is mine (with AGP video card):

vgap...@pci0:1:0:0: class=0x03 card=0x chip=0x00f110de 
rev=0xa2 hdr=0x00
vendor = 'Nvidia Corp'
device = 'GeForce 6600 GT AGP (NV43+BR02)'
class  = display
subclass   = VGA

Notice in yours above the 'device' line is missing,
 
> Googling on this turns up a lot of older posts with references to PnP
> incompatibilities and ATA but I can't find any info that helps me with
> syscons.

Funny thing is it worked in 7.0 previously? At first glance this smells like 
BIOS PnP probing problems, but I think if it were it would have showed 
itself before. Try GENERIC and see what happens. If it goes away you know 
where to look. 

-Mike


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


SunFire X2100 fails

2010-01-20 Thread Julian Fagir
Hello,

I recently got a SunFire X2100 to play with (first version, not M2).
Linux (Debian) and 7.2-RELEASE works without problems, just installs
straight-away and runs fine (currently 31 days uptime).
But 8.0-RELEASE does not work, neither when being upgraded nor when
installing from CD or memstick.

The problem is: The kernel does not recognize the slices and partitions.
When installing it, the installer shows me a single slice on each of the two
hard disks though there are more. It also shows a warning about a GPT-label,
no matter whether there is a GPT or MBR on it.
After reslicing and -partitioning them, the installer fails when creating a
filesystem on them, saying the devices (in this case the partitions) are not
configured.

Looking at the disk with Linux shows me that the partitions and slices were
created properly at this point.

When upgrading from 7.2 to 8.0, I'll be dropped to the "mount-shell" when
restarting after doing the freebsd-update of the kernel.
The possible mount-options the kernel recognizes are two labels
(mbr/hdds, I think), the disks themselves and one slice on each disk, no
partitions nor the other slices. Nothing capable of booting is found on the
disks/slices anyway when I try to boot from them.

As I currently have 7.2 on it, I can only show you the information I'll get
from that one.

# lspci
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
HyperTransport Technology Configuration 00:18.1 Host bridge: Advanced Micro
Devices [AMD] K8 [Athlon64/Opteron] Address Map 00:18.2 Host bridge: Advanced
Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller 00:18.3 Host
bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous
Control 01:05.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev
27) 04:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5721
Gigabit Ethernet PCI Express (rev 11) 05:00.0 Ethernet controller: Intel
Corporation 82571EB Gigabit Ethernet Controller (rev 06) 05:00.1 Ethernet
controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)



Regards, Julian Fagir
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Please help me

2010-01-20 Thread komyo gyi
hi,

>  yesterday i have modify squid.conf file.i have use vi editior.but i
> cannot delete in text message. following error ^? appear.How to do it?.
> please help me.
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: 8.0-RELEASE / gpart / GPT / marking a partition as "active"

2010-01-20 Thread Robert Noland
On Tue, 2010-01-19 at 19:11 +0200, Dan Naumov wrote:
> It seems that quite a few BIOSes have serious issues booting off disks
> using GPT partitioning when no partition present is marked as
> "active". See http://www.freebsd.org/cgi/query-pr.cgi?pr=115406&cat=bin
> for a prime example.
> 
> In 8.0-RELEASE, using gpart, setting a slice as "active" in MBR
> partitioning mode is trivial, ie:
> 
> gpart set -a active -i 1 DISKNAME
> 
> However, trying to do the same thing with GPT partitioning yields no results:
> 
> gpart set -a active -i 1 DISKNAME
> gpart: attrib 'active': Device not configured
> 
> As a result of this issue, I can configure and make a succesfull
> install using GPT in 8.0, but I cannot boot off it using my Intel
> D945GCLF2 board.

I have the same board... 

> I have found this discussion from about a month ago:
> http://www.mail-archive.com/freebsd-sta...@freebsd.org/msg106918.html
> where Robert mentions that "gpart set -a active -i 1" is no longer
> needed in 8-STABLE, because the pmbr will be marked as active during
> the installation of the bootcode. Is there anything I can do to
> archieve the same result in 8.0-RELEASE or is installing from a
> snapshop of 8-STABLE my only option?

Prior to fixing gpart to take care of this, I used fdisk to set the
active partition.  gpart knows the disk is GPT and GPT doesn't have an
"active" parameter, so the above command doesn't (perhaps never) worked.

Basically, an "fdisk -a /dev/devX" is what you want...

robert.

> Thanks.
> 
> - Sincerely,
> Dan Naumov
-- 
Robert Noland 
FreeBSD

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


Re: Restarting after Make Install....

2010-01-20 Thread Jerry
On Tue, 19 Jan 2010 20:13:33 -0500
Roger Roger  articulated:

> I'm not a FreeBSD expert so I cannot speak about what is considered
> "best pratices" but I never restart my server after doing a port
> install/reinstall/upgrade/removal. I guess the only time you will need
> to do that is when your port may be a kernel module that cannot be
> unloaded/reloaded without causing major problems.

I only do a ports update when there are a significance number of
programs that I have installed that have updates available. If the
major players like OpenLDAP, MySQL, Postfix, Apache, etc are all to be
updated at one time, I usually choose to reboot after the process has
completed. It is not that I feel it is absolutely necessary; but rather
that I want to insure that they will in fact all start up correctly,
and in some cases, like Postfix, in the correct order. I have on rare
occasions found discrepancies on how the system starts and performs
after a major update. At worst, you lose only a minute or so of up time,
assuming your machine is not a mission critical one. At best, you
might discover a problem that might have gone unknown for an extended
period of time. I think that the old English saying: "six of one, a
half dozen of the other" is appropriate to the situation.

Just my 2¢.

-- 
Jerry
ges...@yahoo.com

|===
|===
|===
|===
|

You are only young once, but you can stay immature indefinitely.

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


Re: Help with core dump

2010-01-20 Thread Matias

El 20/01/10 10:18, Matias escribió:

Hi,

I've installed from ports net-im/mu-conference, but whenever I try to
start it I get a core dump.

Running it through gdb I get the following:


]# gdb /usr/local/bin/mu-conference
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging
symbols found)...
(gdb) run -c /usr/local/etc/muc.xml
Starting program: /usr/local/bin/mu-conference -c /usr/local/etc/muc.xml
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...[New LWP 100228]
(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...[New Thread 8015021c0 (LWP 100228)]
Jabber Component Runtime -- 0.2.4
(c) 2003-2004 Paul Curtis


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8015021c0 (LWP 100228)]
0x000800eaa386 in strlen () from /lib/libc.so.7
(gdb)



# uname -a
FreeBSD it05.ex.local 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21
15:02:08 UTC 2009
r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64




# cat /usr/local/etc/muc.xml



conference.localhost 
conference.localhost 
localhost 
7009 
Vonyunya 

/var/spool/jabberd/conference.localhost 
 
/var/run/jabberd/mu-conference.pid 

 

155 


 


Public Chatrooms
This service is for public chatrooms.
http://foo.bar/

40 
/var/spool/jabberd/conference.localhost/logs/ 
 
../style.css 


has become available
has left
is now known as



ad...@localhost


 
 
 

















Any idea what can be wrong?


Thanks!


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




I've finally solved it by enabling linux compatibility kernel module.



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


Help with core dump

2010-01-20 Thread Matias

Hi,

I've installed from ports net-im/mu-conference, but whenever I try to 
start it I get a core dump.


Running it through gdb I get the following:


]# gdb /usr/local/bin/mu-conference
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.

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

(gdb) run -c /usr/local/etc/muc.xml
Starting program: /usr/local/bin/mu-conference -c /usr/local/etc/muc.xml
(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...[New LWP 100228]
(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...[New Thread 8015021c0 (LWP 100228)]

Jabber Component Runtime -- 0.2.4
(c) 2003-2004 Paul Curtis


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8015021c0 (LWP 100228)]
0x000800eaa386 in strlen () from /lib/libc.so.7
(gdb)



# uname -a
FreeBSD it05.ex.local 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 
15:02:08 UTC 2009 
r...@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64





# cat /usr/local/etc/muc.xml

  

  conference.localhost 
  conference.localhost 

  localhost 
  7009  

  Vonyunya 

  /var/spool/jabberd/conference.localhost 
   
  /var/run/jabberd/mu-conference.pid 


   

  155 



   

  
  
Public Chatrooms
This service is for public chatrooms.
http://foo.bar/
  
  40 
  /var/spool/jabberd/conference.localhost/logs/ 

   
  ../style.css 
  

  
has become available
has left
is now known as
  
  
  
ad...@localhost
  
  
   
   
   

  
  

  














Any idea what can be wrong?


Thanks!


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


Re: Missing all ttyv* device nodes after upgrade 7.0 -> 7.2

2010-01-20 Thread Morgan Wesström
>> These dmesg lines are from another 7.2 machine and I am missing them
>> from the output of this newly upgraded machine:
>>
>> sc0:  at flags 0x100 on isa0
>> sc0: VGA <16 virtual consoles, flags=0x300>
>> vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
>>
>> Both devices are in the kernel. What could prevent them from binding?
> 
> Is it maybe a newer system that has keyboard and mouse set to USB as a 
> default which needs disabling in BIOS? I know a machine I just built I set 
> the keyboard to "Legacy" to use the PS/2 port while the mouse stayed USB.
> 
> -Mike
> 


Thanks for your answer Mike. The system is actually an old Celeron on an
Intel i865 based mainboard so the hardware should be pretty well
supported I guess and after all - it did work with 7.0. The machine is
only used as a router so the lack of virtual terminals aren't critical
but I still would like to solve it. I will have the owner look for a
more recent BIOS and then I'll reinstall the GENERIC kernel before
filing a bug report. Here's a more verbose dmesg snippet that might give
someone a clue:

agp0:  on hostb0
agp0: allocating GATT for aperture of size 128M
vgapci0:  mem
0xf800-0xf8ff,0xe000-0xefff,0xf900-0xf9ff irq 3
at device 0.0 on pci1
isab0:  at device 31.0 on pci0
isa0:  on isab0
sc: sc0 already exists; skipping it
vga: vga0 already exists; skipping it
isa_probe_children: disabling PnP devices
isa_probe_children: probing non-PnP devices
pmtimer0 on isa0
sc0: no video adapter found.
sc0:  failed to probe on isa0
vga0:  failed to probe on isa0
atkbdc0:  at port 0x60,0x64 on isa0
vt0: not probed (disabled)
isa_probe_children: probing PnP devices

What is that vt0 (disabled)? Is that related? pciconf reports this:

pc...@pci0:0:1:0:   class=0x060400 card=0x chip=0x25718086
rev=0x02 hdr=0x01
vendor = 'Intel Corporation'
device = '82865G/PE/P, 82848P PCI-to-AGP Bridge'
class  = bridge
subclass   = PCI-PCI
is...@pci0:0:31:0:  class=0x060100 card=0x chip=0x24d08086
rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '82801EB/ER (ICH5/ICH5R) LPC Interface Bridge'
class  = bridge
subclass   = PCI-ISA
vgap...@pci0:1:0:0: class=0x03 card=0x2034107d chip=0x022010de
rev=0xa1 hdr=0x00
vendor = 'Nvidia Corp'
class  = display
subclass   = VGA

Googling on this turns up a lot of older posts with references to PnP
incompatibilities and ATA but I can't find any info that helps me with
syscons.

Regards
Morgan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


pidgin 2.6.5 login QQ failed

2010-01-20 Thread wsk

hi,
   upgrade all software after upgrade to 8.0. and now found that
pidgin login qq failed. any ideas?

TIA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"