Translation from English to Dutch bug

2007-01-07 Thread Tjong-A-Hung
http://www.freebsd.org/doc/nl/books/handbook/desktop-browsers.html Section 6.2.4

differs from http://www.freebsd.org/doc/en/books/handbook/desktop-browsers.html 
Section 6.2.4

Fix:
Change 

# ln -s /usr/X11R6/lib/linux-flashplugin7/libflashplayer.so \
  /usr/X11R6/lib/browser_plugins/
# ln -s /usr/X11R6/lib/linux-flashplugin7/flashplayer.xpt \
  /usr/X11R6/lib/browser_plugins/

INTO

# ln -s /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so \
  /usr/local/lib/browser_plugins/
# ln -s /usr/local/lib/npapi/linux-flashplugin/flashplayer.xpt \
  /usr/local/lib/browser_plugins/

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


Scilab error to get help

2007-01-07 Thread cblasius
Hello!

I obtain the following error wen I type in Scilab 4-1:

-->help printf
 !--error 999 
TCL_EvalFile, at line 3 of 
file /usr/local/lib/scilab/tcl/sciGUI/sciEditVar.tcl
at line   9 of function sciGUI_init called by :  
line14 of function sciGUIhelp called by :  
line23 of function run_help called by :  
line20 of function browsehelp called by :  
line25 of function help called by :  
help printf

How to repair this? Thanks in advance.
I work on 6.2-PRERELEASE.
Best regards
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


FreeBSD chroot problem...Please help!!!

2007-01-07 Thread VeeJay

Hello there

I was wondering if someone having great knowledge of FreeBSD chroot system
could give me some help. I trying to run MySQL and Apache under a chroot
envoirnment. But I am getting these errors. Could you please help me to
solve these problems. I have googled a lot but did't find any solution.
Please help!


1. When running MySQL 5.0 in a chroot envoirnment, I get following error:

# chrootuid /chroot/mysql mysql /usr/local/mysql/libexec/mysqld &
[1] 599
# /usr/local/mysql/libexec/mysqld: Can't create/write to file
'/var/tmp/ibPM3e0d' (Errcode: 13)
070107 10:43:49  InnoDB: Error: unable to create temporary file; errno: 13
070107 10:43:49 [Note] /usr/local/mysql/libexec/mysqld: ready for
connections.
Version: '5.0.27'  socket: '/tmp/mysql.sock'  port: 0  FreeBSD port:
mysql-server-5.0.27



2. When running Apache in chroot envoirnment, I get following error:

# chroot /chroot/httpd /usr/local/apache/bin/httpd
fopen: Operation not supported
httpd: could not open document config file /dev/null
I will really appreciate your kind help!

--
Thanks!

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


rc.conf Where to put DNS Servers addresses

2007-01-07 Thread VeeJay

Hello friends

During installation, we provide DNS server address, Defaultrouter
address, machin's IP address and Netmask address.

I can find and change the IP, Netmask and Defaultrouter addresses in
/etc/rc.conf. But where to find & change DNS1 & DNS2 servers IP's?

In which file and what location, I can find the DNS Server IP address I gave
during installation?

Thanks for the help!

--
Thanks!

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


FreeRadius 1.1.3 segmentation problem in Freebsd

2007-01-07 Thread Tek Bahadur Limbu
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Dear All,

Just today, I have installed FreeRadius 1.1.3 from FreeBSD 6.0 (i386)
ports. I am posting this question in FreeBSD mailing list. I am finding
it hard to run FreeRadius on my FreeBSD 6.0 machine.

Could the following segmentation fault be a FreeBSD issue?


I am following this material from:
http://www.onlamp.com/pub/a/onlamp/excerpt/radius_5/index1.html


However when I try to start it using: radiusd -X, I get the following
errors:

Starting - reading configuration files ...
reread_config:  reading radiusd.conf
Config:   including file: /usr/local/etc/raddb/proxy.conf
Config:   including file: /usr/local/etc/raddb/clients.conf
Config:   including file: /usr/local/etc/raddb/snmp.conf
Config:   including file: /usr/local/etc/raddb/eap.conf
Config:   including file: /usr/local/etc/raddb/sql.conf
 main: prefix = "/usr/local"
 main: localstatedir = "/var"
 main: logdir = "/var/log"
 main: libdir = "/usr/local/lib"
 main: radacctdir = "/var/log/radacct"
 main: hostname_lookups = no
 main: snmp = no
 main: max_request_time = 30
 main: cleanup_delay = 5
 main: max_requests = 1024
 main: delete_blocked_requests = 0
 main: port = 0
 main: allow_core_dumps = no
 main: log_stripped_names = no
 main: log_file = "/var/log/radius.log"
 main: log_auth = no
 main: log_auth_badpass = no
 main: log_auth_goodpass = no
 main: pidfile = "/var/run/radiusd/radiusd.pid"
 main: user = "(null)"
 main: group = "(null)"
 main: usercollide = no
 main: lower_user = "no"
 main: lower_pass = "no"
 main: nospace_user = "no"
 main: nospace_pass = "no"
 main: checkrad = "/usr/local/sbin/checkrad"
 main: proxy_requests = no
 proxy: retry_delay = 5
 proxy: retry_count = 3
 proxy: synchronous = no
 proxy: default_fallback = yes
 proxy: dead_time = 120
 proxy: post_proxy_authorize = no
 proxy: wake_all_if_all_dead = no
 security: max_attributes = 200
 security: reject_delay = 1
 security: status_server = no
 main: debug_level = 0
read_config_files:  reading dictionary
read_config_files:  reading naslist
Using deprecated naslist file.  Support for this will go away soon.
read_config_files:  reading clients
Using deprecated clients file.  Support for this will go away soon.
read_config_files:  reading realms
radiusd:  entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded exec
 exec: wait = yes
 exec: program = "(null)"
 exec: input_pairs = "request"
 exec: output_pairs = "(null)"
 exec: packet_type = "(null)"
rlm_exec: Wait=yes but no output defined. Did you mean output=none?
Module: Instantiated exec (exec)
Module: Loaded expr
Module: Instantiated expr (expr)
Module: Loaded PAP
 pap: encryption_scheme = "crypt"
Module: Instantiated pap (pap)
Module: Loaded CHAP
Module: Instantiated chap (chap)
Module: Loaded MS-CHAP
 mschap: use_mppe = yes
 mschap: require_encryption = no
 mschap: require_strong = no
 mschap: with_ntdomain_hack = no
 mschap: passwd = "(null)"
 mschap: ntlm_auth = "(null)"
Module: Instantiated mschap (mschap)
Module: Loaded System
 unix: cache = no
 unix: passwd = "/etc/passwd"
 unix: shadow = "/etc/shadow"
 unix: group = "/etc/group"
 unix: radwtmp = "/var/log/radwtmp"
 unix: usegroup = no
 unix: cache_reload = 600
Module: Instantiated unix (unix)
Segmentation fault: 11 (core dumped)


Can somebody shed some light on this issue?






- -- 


With best regards and good wishes,

Yours sincerely,

Tek Bahadur Limbu

(TAG/TDG Group)
Jwl Systems Department

Worldlink Communications Pvt. Ltd.

Jawalakhel, Nepal
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (FreeBSD)

iD8DBQFFoN1/VrOl+eVhOvYRAmqgAJ9ImJea2un1Slul85B/0bdV9+wqtQCfWl+P
buHIiLYbd92ivdiRpRplN3M=
=8FJW
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rc.conf Where to put DNS Servers addresses

2007-01-07 Thread N.J. Mann
On Sunday,  7 January, 2007 at 13:05:04 +0100, VeeJay wrote:
> 
> During installation, we provide DNS server address, Defaultrouter
> address, machin's IP address and Netmask address.
> 
> I can find and change the IP, Netmask and Defaultrouter addresses in
> /etc/rc.conf. But where to find & change DNS1 & DNS2 servers IP's?
> 
> In which file and what location, I can find the DNS Server IP address I gave
> during installation?

/etc/resolv.conf


Cheers,
   Nick.
-- 
Please do not CC me on replies, I read the list and don't need the dupes.

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


Scilab error to get help

2007-01-07 Thread cblasius
Hello!

I obtain the following error wen I type in Scilab 4-1:

-->help printf
 !--error 999 
TCL_EvalFile, at line 3 of 
file /usr/local/lib/scilab/tcl/sciGUI/sciEditVar.tcl
at line   9 of function sciGUI_init called by :  
line14 of function sciGUIhelp called by :  
line23 of function run_help called by :  
line20 of function browsehelp called by :  
line25 of function help called by :  
help printf

How to repair this? Thanks in advance.
I work on 6.2-PRERELEASE.
Best regards
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD chroot problem...Please help!!!

2007-01-07 Thread Riemer Palstra
On Sun, Jan 07, 2007 at 12:50:34PM +0100, VeeJay wrote:
> I trying to run MySQL and Apache under a chroot envoirnment. But I am
> getting these errors.

[ ... ]

> # /usr/local/mysql/libexec/mysqld: Can't create/write to file
> '/var/tmp/ibPM3e0d' (Errcode: 13)

[ ... ]

> fopen: Operation not supported
> httpd: could not open document config file /dev/null

Are these files/directories/device nodes present in their respective
chroot environment?

-- 
Riemer PalstraAmsterdam, The Netherlands
[EMAIL PROTECTED]http://www.palstra.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rc.conf Where to put DNS Servers addresses

2007-01-07 Thread Nguyen Tam Chinh

Hello,

You can change these parameters in /etc/resolv.conf. The man page
resolver(5) would help you with the syntax.

On 1/7/07, VeeJay <[EMAIL PROTECTED]> wrote:

Hello friends

During installation, we provide DNS server address, Defaultrouter
address, machin's IP address and Netmask address.

I can find and change the IP, Netmask and Defaultrouter addresses in
/etc/rc.conf. But where to find & change DNS1 & DNS2 servers IP's?

In which file and what location, I can find the DNS Server IP address I gave
during installation?

Thanks for the help!

--
Thanks!

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




--
With best regards,| The Power to Serve
Nguyen Tam Chinh  |  http://www.FreeBSD.org
Loc: sp.cs.msu.su
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: rc.conf Where to put DNS Servers addresses

2007-01-07 Thread Daniel Molina Wegener
On Sunday 07 January 2007 09:05, VeeJay wrote:
> Hello friends

  Hello

> During installation, we provide DNS server address,
> Defaultrouter address, machin's IP address and Netmask
> address.
>
> I can find and change the IP, Netmask and Defaultrouter
> addresses in /etc/rc.conf. But where to find & change DNS1 &
> DNS2 servers IP's?
>
> In which file and what location, I can find the DNS Server IP
> address I gave during installation?

  Try looking at /etc/resolv.conf and resolver(5) manual page.
>
> Thanks for the help!

Best regards,
-- 
 . 0 . | Daniel Molina Wegener
 . . 0 | dmw at unete dot cl
 0 0 0 | FreeBSD User
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeRadius 1.1.3 segmentation problem in Freebsd

2007-01-07 Thread Bill Moran
Tek Bahadur Limbu <[EMAIL PROTECTED]> wrote:
> 
> Dear All,
> 
> Just today, I have installed FreeRadius 1.1.3 from FreeBSD 6.0 (i386)
> ports. I am posting this question in FreeBSD mailing list. I am finding
> it hard to run FreeRadius on my FreeBSD 6.0 machine.
> 
> Could the following segmentation fault be a FreeBSD issue?
> 
> 
> I am following this material from:
> http://www.onlamp.com/pub/a/onlamp/excerpt/radius_5/index1.html

Try installing from the port instead.

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


Re: rc.conf Where to put DNS Servers addresses

2007-01-07 Thread Riemer Palstra
On Sun, Jan 07, 2007 at 01:05:04PM +0100, VeeJay wrote:
> In which file and what location, I can find the DNS Server IP address
> I gave during installation?

/etc/resolv.conf, like on most Unix-like systems.

You might want to try reading the Handbook though,

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

-- 
Riemer PalstraAmsterdam, The Netherlands
[EMAIL PROTECTED]http://www.palstra.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Nightmares installing kde-3.5.5

2007-01-07 Thread Martin Schweizer
Hello Odhiambo

I had some similar issues while I'm installed 3.5.4. I the first removed all 
packages by pkg_delete kde* (realy all!). Afterwoods I started the 
installation again with make reinstall (or make install). Hope this helps.


Am Mon, Jan 01, 2007 at 02:17:27PM +0300 Odhiambo Washington schrieb:
> Bon Anee!
> 
> I have been trying to install kde-3.5.5 onto my box for 4 days now 
> without success. I have even wiped out 3.5.3 (which is what I was 
> running before) but still 3.5.5 wouldn't install. The problem is 
> somewhere around kdelibs3 and cups but I cannot figure out how to go 
> around it.
> I'd appreciate some help on what I need to do. I'd like to start the new 
> year with brand new kde!
> 
> Here is where it fails:
> 
> 
> gmake[4]: Leaving directory 
> `/usr/ports/x11/kdelibs3/work/kdelibs-3.5.5/kdeprint/cups/cupsdconf2'
> gmake[4]: Entering directory 
> `/usr/ports/x11/kdelibs3/work/kdelibs-3.5.5/kdeprint/cups'
> if /bin/sh /usr/local/bin/libtool --silent --tag=CXX --mode=compile c++ 
> -DHAVE_CONFIG_H -I. -I. -I../.. -I../../dcop -I../../kdecore -I../../kio/
> kssl -I../../kjs -I../.. -I../../kio -I../../kfile -I../../kdeprint 
> -I../../kdeprint/management -I../../kdecore/network -I../../dcop -I../../libl
> tdl -I../../kdefx -I../../kdecore -I../../kdecore -I../../kdecore/network 
> -I../../kdeui -I../../kio -I../../kio/kio -I../../kio/kfile -I../..  -I
> /usr/X11R6/include -I/usr/local/include -I/usr/local/include 
> -D_KDEPRINT_COMPILE -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT   
> -I/usr/local/inclu
> de -I/usr/local/include  -I/usr/X11R6/include -D_GETOPT_H -D_THREAD_SAFE   
> -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O
> 2 -O2 -fno-strict-aliasing -pipe -Wno-non-virtual-dtor -fno-exceptions 
> -fno-check-new -fno-common  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_N
> O_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT ipprequest.lo -MD -MP -MF 
> ".deps/ipprequest.Tpo" -c -o ipprequest.lo ipprequest.cpp; \
> then mv -f ".deps/ipprequest.Tpo" ".deps/ipprequest.Plo"; else rm -f 
> ".deps/ipprequest.Tpo"; exit 1; fi
> ipprequest.cpp: In static member function `static QString 
> IppRequest::assembleURI(const QString&, int, const QString&)':
> ipprequest.cpp:573: error: incomplete type `KURL' used in nested name 
> specifier
> ipprequest.cpp:577: error: incomplete type `KURL' used in nested name 
> specifier
> gmake[4]: *** [ipprequest.lo] Error 1
> gmake[4]: Leaving directory 
> `/usr/ports/x11/kdelibs3/work/kdelibs-3.5.5/kdeprint/cups'
> gmake[3]: *** [all-recursive] Error 1
> gmake[3]: Leaving directory 
> `/usr/ports/x11/kdelibs3/work/kdelibs-3.5.5/kdeprint/cups'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory 
> `/usr/ports/x11/kdelibs3/work/kdelibs-3.5.5/kdeprint'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/ports/x11/kdelibs3/work/kdelibs-3.5.5'
> gmake: *** [all] Error 2
> *** Error code 2
> 
> Stop in /usr/ports/x11/kdelibs3.
> *** Error code 1
> 
> Stop in /usr/ports/x11/kdebase3.
> *** Error code 1
> 
> 
> 
> 
> 
> 
> 
> -Wash
> 
> 
> DISCLAIMER: See http://www.wananchi.com/bms/terms.php
> 
> --
> +==+
> |\  _,,,---,,_ | Odhiambo Washington<[EMAIL PROTECTED]>
> Zzz /,`.-'`'-.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
>|,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
>   '---''(_/--'  `-'\_) | GSM: +254 722 743223   +254 733 744121
> +==+
> 
>   No violence, gentlemen -- no violence, I beg of you! Consider
> the furniture!
>   -- Sherlock Holmes
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 

Regards
Gruss
Mit freundlichen GrĂ¼ssen

Martin Schweizer
<[EMAIL PROTECTED]>

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;



pgpQ7Cs6c48HJ.pgp
Description: PGP signature


change port dependent...

2007-01-07 Thread Tsu-Fan Cheng

hi,
 how can i change port dependent "again" ? i first make a change by doing
pkgdb -F and switched to another dependent, but now i want to change it
back, but since it's already been corrected, pkgdb -F didn't ask any
question, thanks!!

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


Re: change port dependent...

2007-01-07 Thread Bill Moran
"Tsu-Fan Cheng" <[EMAIL PROTECTED]> wrote:
>
> hi,
>   how can i change port dependent "again" ? i first make a change by doing
> pkgdb -F and switched to another dependent, but now i want to change it
> back, but since it's already been corrected, pkgdb -F didn't ask any
> question, thanks!!

I recommend using portupgrade with the -o option.  See the man page for
details.

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


The FreeBSD Diary: 2006-12-17 - 2007-01-06

2007-01-07 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives  
and/or The FreeBSD Diary . 


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

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


/dev/null in a chroot

2007-01-07 Thread Michael Grant

I chrooted apache to /www.

In order to run a java program from a web page, java needs a /dev/null
inside the chroot.

I don't want to create another whole /dev/ dir with all the disk raw
devices there to be read for anyone who cracks root.  I just want a
/www/dev/null file.

I tried creating a node with mknod exactly like the node in /dev but
it doesn't work in freebsd 6.  /dev/ is special now and you can't just
create nodes anywhere like the old days.

Is there a way to create a /www/dev/null which acts just like /dev/null?

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


Re: /dev/null in a chroot

2007-01-07 Thread Bill Moran
"Michael Grant" <[EMAIL PROTECTED]> wrote:
>
> I chrooted apache to /www.
> 
> In order to run a java program from a web page, java needs a /dev/null
> inside the chroot.
> 
> I don't want to create another whole /dev/ dir with all the disk raw
> devices there to be read for anyone who cracks root.  I just want a
> /www/dev/null file.
> 
> I tried creating a node with mknod exactly like the node in /dev but
> it doesn't work in freebsd 6.  /dev/ is special now and you can't just
> create nodes anywhere like the old days.
> 
> Is there a way to create a /www/dev/null which acts just like /dev/null?

devfs does this now.  You can mount a second devfs under /www/dev/, or
anywhere else for that matter.

Controlling which device nodes show up is done by devfs rulsets.  See
the man page for devfs for details.

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


/dev/null in a chroot

2007-01-07 Thread Michael Grant

I chrooted apache to /www.

In order to run a java program from a web page, java needs a /dev/null
inside the chroot.

I don't want to create another whole /dev/ dir with all the disk raw
devices there to be read for anyone who cracks root.  I just want a
/www/dev/null file.

I tried creating a node with mknod exactly like the node in /dev but
it doesn't work in freebsd 6.  /dev/ is special now and you can't just
create nodes anywhere like the old days.

Is there a way to create a /www/dev/null which acts just like /dev/null?

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


Contributing to FreeBSD documentation (was: Re: no ath0 on new system with good card)

2007-01-07 Thread Giorgos Keramidas
On 2007-01-07 08:54, Steve Franks <[EMAIL PROTECTED]> wrote:
> Apologies on not hitting the list.  Alyays forget to reply-all.

No problem.  I just didn't copy the list because I wasn't sure I should.

> So, I figured I'd try to fix the safe-mode end of things on my own,
> and I found a post several years old (looked like it even could have
> been yours) about safemode, which doesn't show up anywhere on the
> freebsd site.  So I did what it said and grep'd boot/beastie.4th for
> safemode, which came up with this suprisingly total solution:
>
> add apic.0.disabled="1" to boot/device.hints.  Not only does my system
> come up in regular boot mode, but, as you suspected, the pccard works
> too, so all appears well.

Excellent news!   Thanks for sharing the answer :)

> So my final question, what in all the land is an "apic",

"Advanced Programmable Interrupt Controller".  This is the part of your
system which assigns priorities to interrupt lines of a device.  The
full details are probably too technical for some percentage of our user
base, but more details can be found at the following pages:

  http://en.wikipedia.org/wiki/Advanced_Programmable_Interrupt_Controller
  http://en.wikipedia.org/wiki/Programmable_Interrupt_Controller
  http://en.wikipedia.org/wiki/Intel_8259
  http://en.wikipedia.org/wiki/Intel_APIC_Architecture

> and why isn't apic or safemode mentioned in the handbook, manpages, or
> even on the freebsd site?

IIRC it is mentioned in the Developer's Handbook, but you are right that
it should be in the main Handbook too.

> Further, I'd like to write a handbook page on "freebsd and laptops",
> because we're on my third one here now, and I'm starting to get the
> drift of what could usefully be added to the handbook, namely a
> thourough discussion of booting and device.hints.

That would be great!  If you can help writing such a section for the
Handbook, a lot of users will be highly indebted to you, for sure :)

> I presume someone 'peer-reviews' handbook submissions for correctness
> and format?  I recall reading somewhere about contributing, but I get
> the impression you are involved enough to tell me whether it's a bad
> idea or not.

Yes, you are right.  We have peer reviews.  A lot of the documentation
changes are filtered through the freebsd-doc mailing list, where
documentation people hang out.  Patches are mailed back and forth;
edited; fixed for technical accuracy, syntax and grammar correctness;
adapted to our writing style; expanded as necessary; and eventually
committed to our documentation source code.

You can definitely contribute as much as you feel, whenever you feel you
have the time, and in any way you consider appropriate.  We have a short
article which describes how you can contribute to the FreeBSD Project,
in general:

  http://www.freebsd.org/doc/en_US.ISO8859-1/articles/contributing/

Most of it applies directly to documentation too.  Please skim through
this article; it should be a good start.

About your last question now...

Yes, it's a good idea.  Not just a good idea, though.  It's an
*excellent* idea.

One of the "chicken and egg" problems documentation writing usually has
to face is that:

  * New users don't know enough about the system, so they frequently
pose good questions.  These questions would result in higher quality
documentation if properly channeled through experienced
documentation writers, but you have to convince the new users that
they can actually *help* by not knowing it all.

  * Once new users step over the thin line between being newcomers to
the system and being experienced in some area, we have lost all the
"insight" they can provide about how a new user thinks.

As a result, it's easier to write documentation if we are targetting a
very experienced, very technical audience.  But, IMHO, the contributions
of new users -- in the form of "interesting" questions" -- are at least
as valuable, if not more :)

Regards,
Giorgos

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


Nvidia Problems

2007-01-07 Thread Derrick Edwards
Hi,
I cant seem to get my new nvidia card to dispaly the correct resolution. 
Looking at /var/log/Xorg.0.log I see these entries. My max resolution 
is "1600x1050" but it is not letting me use it. 

(WW) NVIDIA(0): No valid modes for "1600x1050"; removing.
(WW) NVIDIA(0): No valid modes for "1280x1024"; removing.
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0): "1024x768"
(II) NVIDIA(0): "800x600"
(II) NVIDIA(0): "640x480"
(II) NVIDIA(0): Virtual screen size determined to be 1024 x 768

I configured Xorg using nvidia-settings.

Section "ServerLayout"
Identifier "Layout0"
Screen  0  "Screen0" 0 0
InputDevice"Keyboard0" "CoreKeyboard"
InputDevice"Mouse0" "CorePointer"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath"/usr/X11R6/lib/X11/fonts/misc/:unscaled"
FontPath"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath"/usr/X11R6/lib/X11/fonts/misc/"
FontPath"/usr/X11R6/lib/X11/fonts/Type1/"
FontPath"/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath"/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath"/usr/X11R6/lib/X11/fonts/cyrillic/"
FontPath"/usr/X11R6/lib/X11/fonts/TTF/"
EndSection

Section "Module"
Load   "dbe"
Load   "extmod"
Load   "type1"
Load   "freetype"
Load   "glx"
EndSection

Section "InputDevice"

# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

# generated from default
Identifier "Keyboard0"
Driver "keyboard"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName  "Unknown"
HorizSync   30.0 - 110.0
VertRefresh 50.0 - 150.0
Option "DPMS"
EndSection

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor"Monitor0"
DefaultDepth24
SubSection "Display"
Depth   24
Modes  "1600x1050" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

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


Re: Nvidia Problems

2007-01-07 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Derrick Edwards wrote:
>   Hi,
> I cant seem to get my new nvidia card to dispaly the correct resolution. 
> Looking at /var/log/Xorg.0.log I see these entries. My max resolution 
> is "1600x1050" but it is not letting me use it. 
> 
> (WW) NVIDIA(0): No valid modes for "1600x1050"; removing.
> (WW) NVIDIA(0): No valid modes for "1280x1024"; removing.
> (II) NVIDIA(0): Validated modes:
> (II) NVIDIA(0): "1024x768"
> (II) NVIDIA(0): "800x600"
> (II) NVIDIA(0): "640x480"
> (II) NVIDIA(0): Virtual screen size determined to be 1024 x 768
> 
> I configured Xorg using nvidia-settings.
> 
> Section "ServerLayout"
> Identifier "Layout0"
> Screen  0  "Screen0" 0 0
> InputDevice"Keyboard0" "CoreKeyboard"
> InputDevice"Mouse0" "CorePointer"
> EndSection
> 
> Section "Files"
> RgbPath "/usr/X11R6/lib/X11/rgb"
> FontPath"/usr/X11R6/lib/X11/fonts/misc/:unscaled"
> FontPath"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
> FontPath"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
> FontPath"/usr/X11R6/lib/X11/fonts/misc/"
> FontPath"/usr/X11R6/lib/X11/fonts/Type1/"
> FontPath"/usr/X11R6/lib/X11/fonts/100dpi/"
> FontPath"/usr/X11R6/lib/X11/fonts/75dpi/"
> FontPath"/usr/X11R6/lib/X11/fonts/cyrillic/"
> FontPath"/usr/X11R6/lib/X11/fonts/TTF/"
> EndSection
> 
> Section "Module"
> Load   "dbe"
> Load   "extmod"
> Load   "type1"
> Load   "freetype"
> Load   "glx"
> EndSection
> 
> Section "InputDevice"
> 
> # generated from default
> Identifier "Mouse0"
> Driver "mouse"
> Option "Protocol" "auto"
> Option "Device" "/dev/sysmouse"
> Option "Emulate3Buttons" "no"
> Option "ZAxisMapping" "4 5"
> EndSection
> 
> Section "InputDevice"
> 
> # generated from default
> Identifier "Keyboard0"
> Driver "keyboard"
> EndSection
> 
> Section "Monitor"
> Identifier "Monitor0"
> VendorName "Unknown"
> ModelName  "Unknown"
> HorizSync   30.0 - 110.0
> VertRefresh 50.0 - 150.0
> Option "DPMS"
> EndSection
> 
> Section "Device"
> Identifier "Device0"
> Driver "nvidia"
> VendorName "NVIDIA Corporation"
> EndSection
> 
> Section "Screen"
> Identifier "Screen0"
> Device "Device0"
> Monitor"Monitor0"
> DefaultDepth24
> SubSection "Display"
> Depth   24
> Modes  "1600x1050" "1280x1024" "1024x768" "800x600" "640x480"
> EndSubSection
> EndSection
> 
> Please help
> Thanks Derrick

Monitor horizontal and vertical sync set correctly?

That seems the only viable explanation other than your card doesn't
support that resolution.

- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.1 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

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


Re: no ath0 on new system with good card

2007-01-07 Thread Steve Franks

Apologies on not hitting the list.  Alyays forget to reply-all.

So, I figured I'd try to fix the safe-mode end of things on my own, and I
found a post several years old (looked like it even could have been yours)
about safemode, which doesn't show up anywhere on the freebsd site.  So I
did what it said and grep'd boot/beastie.4th for safemode, which came up
with this suprisingly total solution:

add apic.0.disabled="1" to boot/device.hints.  Not only does my system come
up in regular boot mode, but, as you suspected, the pccard works too, so all
appears well.

I'm sorry for the confusion - origonally, I was running i386/6.1 on the
system which booted normially if the serial ports (sio) were disabled.
Halfway thru the conversation, I realized I could upgrade to amd64/6.1,
which would only boot safemode, even with sio disabled.

So my final question, what in all the land is an "apic", and why isn't apic
or safemode mentioned in the handbook, manpages, or even on the freebsd
site?  Further, I'd like to write a handbook page on "freebsd and laptops",
because we're on my third one here now, and I'm starting to get the drift of
what could usefully be added to the handbook, namely a thourough discussion
of booting and device.hints.  I presume someone 'peer-reviews' handbook
submissions for correctness and format?  I recall reading somewhere about
contributing, but I get the impression you are involved enough to tell me
whether it's a bad idea or not.

Thanks again,
Steve

On 1/6/07, Giorgos Keramidas <[EMAIL PROTECTED]> wrote:


Please don't top post :(

It would also be nice if you copied the mailing list to any
replies, but I don't know if I should copy this reply to the list
too, so I am sending it privately.

On 2007-01-06 19:49, Steve Franks <[EMAIL PROTECTED]> wrote:
>On 1/6/07, Giorgos Keramidas <[EMAIL PROTECTED]> wrote:
>>On 2007-01-06 10:08, Steve Franks <[EMAIL PROTECTED]> wrote:
>>> I have an ath0 card working fine in one system.  I put it in
>>> the other, kldload if_ath, but no ath0.  kldload appears
>>> sucessful, because if you try it again, if says file already
>>> present.  I notice my pcmcia appears to show up sucesfully
>>> when I boot, but I get no output on tty0 when I plug in the
>>> ath card, like you do on the other system.
>>
>> Are the two systems the same FreeBSD version?  If not, can you
>> show us dmesg output from the two systems, and then "pciconf
>> -lv" output after the card has been plugged in?
>
> dmesg gives the following interesting info:
>
> cbb0: 
> pccard0: <16 bit...>... on cbb
> cbb: Unable to map IRQ...
> device_attatch: cbb0 attatch returned 12
>
> nothing seems amiss in pciconf -lv (no net on that system - broadcom :(
,
> although I don't see entries I'd expect for the cbb0...
>
> Note, I neglected to mention I the computer won't start unless
> it's in safe mode, otherwise, it freezes after the line
> "module_register_init: MOD_LOAD (amr_linux, 0x806205d0,
> 0) error 6".  The line before that is "Timecounters tick every
> 1.000 msec", and the line after (in safe-mode) is "ad0:
> 57231MB"

The amr(4) driver is the driver for MegaRAID SCSI/ATA/SATA RAID
controllers.  Can you try disabling this controller and see if
the kernel boots normally in normal mode?

I still don't know about thee following:

- Are the two computers the same?  (The one where the
  PC-CARD works, and the one where it doesn't)

- What FreeBSD version is this?

In "safe mode" ACPI is disabled, and this may be why your cbb0
PCI-CardBus bridge fails to work properly.





--
Steve Franks, KE7BTE
Staff Engineer
La Palma Devices, LLC
http://www.lapalmadevices.com
(520) 312-0089
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: freebsd ban

2007-01-07 Thread petko

yeah, old /etc/hosts file (nice heritage)

thanks for help

p.

Kevin Kinsey wrote:

petko wrote:
I am sure, that there is no connectivity issue. Why I have ban? The 
devil have to serve... :(


# tcptraceroute www.freebsd.org
Selected device fxp0, address 194.160.208.44, port 54794 for outgoing 
packets
Tracing the path to www.freebsd.org (216.136.204.117) on TCP port 80, 
30 hops max


Stale DNS?  Here, ATM, www.freebsd.org is at 69.147.83.33..

KDK

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


Tuning PostgreSQL for bulk imports

2007-01-07 Thread Kirk Strauser
I have an hourly job that converts our legacy Foxpro database into
PostgreSQL tables so that our web applications, etc. can run reports off
the data in a reasonable amount of time.  Believe it or not, this has been
running perfectly in production for over a year.  The only problem I'd
still like to solve is that loading the data pegs the filesystem at 100%
for many minutes at a time.

The biggest table we have holds about 800MB of data in about 8 million
rows.  My program loads the Foxpro table files and generates another file
that looks like the following, which then gets piped into the psql command:

---
begin;
drop table ln;
create table ln (invid integer, ln integer, charge text, servcode varchar(10), 
odn varchar(1), itemcode varchar(6), qty1 varchar(10), uom1 varchar(2), qty2 
varchar(10), uom2 varchar(2), aw integer, bw integer, rate text, perc integer, 
miles integer, loc1qual varchar(3), loc1id integer, loc2qual varchar(3), loc2id 
integer);
\copy ln from stdin
1078987 1   518.73  LHS N   LHS  0  
 0  785   785   66.0800100 0   PW  
-1049   DA  16736
...
[snip 8 million lines]
...
\.
create index ln_invid on ln(invid);
create index ln_uom1 on ln(uom1);
commit;
---

The /usr/local/pgsql/data filesystem is on two SCSI 320 drives via a
geom_stripe with a 128KB stripe size.  The drives are of unequal size.
I've had a new set of four matched drives on order from our purchasing
department for about size months now - yes, Mike, I'm looking at you -
but I'm doing the best I can with what I have.  The filesystem itself
has soft updates enabled but was otherwise newfs'ed with the defaults.

So, given that I'd like to throw more hardware at the problem but can't yet,
is there anything I could do to make these imports go faster, short of
running it async (which is far more dangerous than we're willing to risk)?
-- 
Kirk Strauser


pgpCTnmKI9Qrq.pgp
Description: PGP signature


Re: Nvidia Problems

2007-01-07 Thread Derrick Edwards
On Sunday 07 January 2007 12:34, Garrett Cooper wrote:
> Derrick Edwards wrote:
> > Hi,
> > I cant seem to get my new nvidia card to dispaly the correct resolution.
> > Looking at /var/log/Xorg.0.log I see these entries. My max resolution
> > is "1600x1050" but it is not letting me use it.
> >
> > (WW) NVIDIA(0): No valid modes for "1600x1050"; removing.
> > (WW) NVIDIA(0): No valid modes for "1280x1024"; removing.
> > (II) NVIDIA(0): Validated modes:
> > (II) NVIDIA(0): "1024x768"
> > (II) NVIDIA(0): "800x600"
> > (II) NVIDIA(0): "640x480"
> > (II) NVIDIA(0): Virtual screen size determined to be 1024 x 768
> >
> > I configured Xorg using nvidia-settings.
> >
> > Section "ServerLayout"
> > Identifier "Layout0"
> > Screen  0  "Screen0" 0 0
> > InputDevice"Keyboard0" "CoreKeyboard"
> > InputDevice"Mouse0" "CorePointer"
> > EndSection
> >
> > Section "Files"
> > RgbPath "/usr/X11R6/lib/X11/rgb"
> > FontPath"/usr/X11R6/lib/X11/fonts/misc/:unscaled"
> > FontPath"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
> > FontPath"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
> > FontPath"/usr/X11R6/lib/X11/fonts/misc/"
> > FontPath"/usr/X11R6/lib/X11/fonts/Type1/"
> > FontPath"/usr/X11R6/lib/X11/fonts/100dpi/"
> > FontPath"/usr/X11R6/lib/X11/fonts/75dpi/"
> > FontPath"/usr/X11R6/lib/X11/fonts/cyrillic/"
> > FontPath"/usr/X11R6/lib/X11/fonts/TTF/"
> > EndSection
> >
> > Section "Module"
> > Load   "dbe"
> > Load   "extmod"
> > Load   "type1"
> > Load   "freetype"
> > Load   "glx"
> > EndSection
> >
> > Section "InputDevice"
> >
> > # generated from default
> > Identifier "Mouse0"
> > Driver "mouse"
> > Option "Protocol" "auto"
> > Option "Device" "/dev/sysmouse"
> > Option "Emulate3Buttons" "no"
> > Option "ZAxisMapping" "4 5"
> > EndSection
> >
> > Section "InputDevice"
> >
> > # generated from default
> > Identifier "Keyboard0"
> > Driver "keyboard"
> > EndSection
> >
> > Section "Monitor"
> > Identifier "Monitor0"
> > VendorName "Unknown"
> > ModelName  "Unknown"
> > HorizSync   30.0 - 110.0
> > VertRefresh 50.0 - 150.0
> > Option "DPMS"
> > EndSection
> >
> > Section "Device"
> > Identifier "Device0"
> > Driver "nvidia"
> > VendorName "NVIDIA Corporation"
> > EndSection
> >
> > Section "Screen"
> > Identifier "Screen0"
> > Device "Device0"
> > Monitor"Monitor0"
> > DefaultDepth24
> > SubSection "Display"
> > Depth   24
> > Modes  "1600x1050" "1280x1024" "1024x768" "800x600" "640x480"
> > EndSubSection
> > EndSection
> >
> > Please help
> > Thanks Derrick
>
> Monitor horizontal and vertical sync set correctly?
>
> That seems the only viable explanation other than your card doesn't
> support that resolution.
>
> -Garrett
> _
Thanks for the reply. My card supports up to 1600x1200 and the freqs 
are 
correct.

> _ 
> 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]"


Can't install tcl84

2007-01-07 Thread Abdullah Al-Marrie

Hello,

This is my server uname -a

FreeBSD sms.wearab.net 6.1-STABLE FreeBSD 6.1-STABLE #0: Wed Jun 28
19:25:02 UTC 2006

I can't install tcl84 from the ports I don't know why, has anyone
faced this problem too?

pkg.test
:   Total   139 Passed  138 Skipped 1   Failed  0
pkgMkIndex.test
platform.test
proc-old.test
proc.test
pwd.test
reg.test
regexp.test
regexpComp.test
registry.test
rename.test
resource.test
result.test
safe.test
scan.test
security.test
set-old.test
set.test
socket.test

 socket-2.10 close on accept, accepted socket lives FAILED
 Contents of test case:

   set done 0
   set timer [after 2 "set done timed_out"]
   set ss [socket -server accept 0]
   proc accept {s a p} {
   global ss
   close $ss
   fileevent $s readable "readit $s"
   fconfigure $s -trans lf
   }
   proc readit {s} {
   global done
   gets $s
   close $s
   set done 1
   }
   set cs [socket [info hostname] [lindex [fconfigure $ss -sockname] 2]]
   puts $cs hello
   close $cs
   vwait done
   after cancel $timer
   set done

 Test generated error; Return code was: 1
 Return code should have been one of: 0 2
 errorInfo: couldn't open socket: connection refused
   while executing
"socket [info hostname] [lindex [fconfigure $ss -sockname] 2]"
   invoked from within
"set cs [socket [info hostname] [lindex [fconfigure $ss -sockname] 2]]"
   ("uplevel" body line 17)
   invoked from within
"uplevel 1 $script"
 errorCode: POSIX ECONNREFUSED {connection refused}
 socket-2.10 FAILED


 socket-5.1 byte order problems, socket numbers, htons FAILED
 Contents of test case:

   set x {couldn't open socket: not owner}
   if {![catch {socket -server dodo 0x1} msg]} {
   set x {htons problem, should be disallowed, are you running as SU?}
   close $msg
   }
   set x

 Result was:
htons problem, should be disallowed, are you running as SU?
 Result should have been (exact matching):
couldn't open socket: not owner
 socket-5.1 FAILED


 socket-5.3 byte order problems, socket numbers, htons FAILED
 Contents of test case:

   set x {couldn't open socket: not owner}
   if {![catch {socket -server dodo 21} msg]} {
   set x {htons problem, should be disallowed, are you running as SU?}
   close $msg
   }
   set x

 Result was:
htons problem, should be disallowed, are you running as SU?
 Result should have been (exact matching):
couldn't open socket: not owner
 socket-5.3 FAILED


 socket-7.4 testing socket specific options FAILED
 Contents of test case:

   set s [socket -server accept 0]
   proc accept {s a p} {
   global x
   set x [fconfigure $s -sockname]
   close $s
   }
   set listen [lindex [fconfigure $s -sockname] 2]
   set s1 [socket [info hostname] $listen]
   set timer [after 1 "set x timed_out"]
   vwait x
   after cancel $timer
   close $s
   close $s1
   set l ""
   lappend l [expr {[lindex $x 2] == $listen}] [llength $x]

 Test generated error; Return code was: 1
 Return code should have been one of: 0 2
 errorInfo: couldn't open socket: connection refused
   while executing
"socket [info hostname] $listen"
   invoked from within
"set s1 [socket [info hostname] $listen]"
   ("uplevel" body line 9)
   invoked from within
"uplevel 1 $script"
 errorCode: POSIX ECONNREFUSED {connection refused}
 socket-7.4 FAILED

--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Tuning PostgreSQL for bulk imports

2007-01-07 Thread Ivan Voras
Kirk Strauser wrote:
> I have an hourly job that converts our legacy Foxpro database into
> PostgreSQL tables so that our web applications, etc. can run reports off
> the data in a reasonable amount of time.  Believe it or not, this has been
> running perfectly in production for over a year.  The only problem I'd
> still like to solve is that loading the data pegs the filesystem at 100%
> for many minutes at a time.

There's a dedicated mailing list for PostgreSQL performance:
pgsql-performance/at/postgresql.org, which can give you really good
advice, but here's some tips:

- have you tuned pgsql away from the (very conservative) defaults?
increased shared_buffers, effective_cache_size, temp_buffers and work_mem?
- What might help you is to keep the WAL (write-ahead-log, i.e. journal)
files on a completely separate (and fast) drive from the rest of the
database, to allow parallelism and speed. For best results, format it
with 32k blocks/8k fragments.
- If you don't specifically need the atomicity of transactions, you
might divide your import into many small transactions, for example one
for every 100,000 rows instead of doing 8 million at once.

If you want to be somewhat adventurous (but still within data safety
limits), you can try fiddling with increasing wal_buffers, commit_delay
and checkpoint_timeout.

Also, what version of PostgreSQL are you using? As a general rule, the
newer the version, the faster it is. This is especially true if you're
using 7.x - go to 8.1.5 immediately (but don't use 8.2 until 8.2.1 gets
out).



signature.asc
Description: OpenPGP digital signature


Re: Nvidia Problems

2007-01-07 Thread bnawrock
I know of a few EDID issues with the current nvidia driver. are you 
using freebsd-7-CURRENT?


Try adding Option "UseEDID" "FALSE" to the Screen section in your X 
configuration file. Hopefully future NVIDIA X driver versions should do 
a better job of detecting invalid EDIDs. Let me know if that solves the 
issues.


-nawcom



On Sunday 07 January 2007 12:34, Garrett Cooper wrote:

> Derrick Edwards wrote:

> >   Hi,
> > I cant seem to get my new nvidia card to dispaly the correct resolution.
> > Looking at /var/log/Xorg.0.log I see these entries. My max resolution
> > is "1600x1050" but it is not letting me use it.
> >
> > (WW) NVIDIA(0): No valid modes for "1600x1050"; removing.
> > (WW) NVIDIA(0): No valid modes for "1280x1024"; removing.
> > (II) NVIDIA(0): Validated modes:
> > (II) NVIDIA(0): "1024x768"
> > (II) NVIDIA(0): "800x600"
> > (II) NVIDIA(0): "640x480"
> > (II) NVIDIA(0): Virtual screen size determined to be 1024 x 768
> >
> > I configured Xorg using nvidia-settings.
> >
> > Section "ServerLayout"
> > Identifier "Layout0"
> > Screen  0  "Screen0" 0 0
> > InputDevice"Keyboard0" "CoreKeyboard"
> > InputDevice"Mouse0" "CorePointer"
> > EndSection
> >
> > Section "Files"
> > RgbPath "/usr/X11R6/lib/X11/rgb"
> > FontPath"/usr/X11R6/lib/X11/fonts/misc/:unscaled"
> > FontPath"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
> > FontPath"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
> > FontPath"/usr/X11R6/lib/X11/fonts/misc/"
> > FontPath"/usr/X11R6/lib/X11/fonts/Type1/"
> > FontPath"/usr/X11R6/lib/X11/fonts/100dpi/"
> > FontPath"/usr/X11R6/lib/X11/fonts/75dpi/"
> > FontPath"/usr/X11R6/lib/X11/fonts/cyrillic/"
> > FontPath"/usr/X11R6/lib/X11/fonts/TTF/"
> > EndSection
> >
> > Section "Module"
> > Load   "dbe"
> > Load   "extmod"
> > Load   "type1"
> > Load   "freetype"
> > Load   "glx"
> > EndSection
> >
> > Section "InputDevice"
> >
> > # generated from default
> > Identifier "Mouse0"
> > Driver "mouse"
> > Option "Protocol" "auto"
> > Option "Device" "/dev/sysmouse"
> > Option "Emulate3Buttons" "no"
> > Option "ZAxisMapping" "4 5"
> > EndSection
> >
> > Section "InputDevice"
> >
> > # generated from default
> > Identifier "Keyboard0"
> > Driver "keyboard"
> > EndSection
> >
> > Section "Monitor"
> > Identifier "Monitor0"
> > VendorName "Unknown"
> > ModelName  "Unknown"
> > HorizSync   30.0 - 110.0
> > VertRefresh 50.0 - 150.0
> > Option "DPMS"
> > EndSection
> >
> > Section "Device"
> > Identifier "Device0"
> > Driver "nvidia"
> > VendorName "NVIDIA Corporation"
> > EndSection
> >
> > Section "Screen"
> > Identifier "Screen0"
> > Device "Device0"
> > Monitor"Monitor0"
> > DefaultDepth24
> > SubSection "Display"
> > Depth   24
> > Modes  "1600x1050" "1280x1024" "1024x768" "800x600" 
"640x480"

> > EndSubSection
> > EndSection
> >
> > Please help
> > Thanks Derrick

>
> Monitor horizontal and vertical sync set correctly?
>
> That seems the only viable explanation other than your card doesn't
> support that resolution.
>
> -Garrett
> _
	Thanks for the reply. My card supports up to 1600x1200 and the freqs 
are correct.



> _ > 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]"


(no subject)

2007-01-07 Thread bnawrock
I know of a few EDID issues with the current nvidia driver. are you 
using freebsd-7-CURRENT?


Try adding Option "UseEDID" "FALSE" to the Screen section in your X 
configuration file. Hopefully future NVIDIA X driver versions should do 
a better job of detecting invalid EDIDs. Let me know if that solves the 
issues.


-nawcom



On Sunday 07 January 2007 12:34, Garrett Cooper wrote:

> Derrick Edwards wrote:

> >   Hi,
> > I cant seem to get my new nvidia card to dispaly the correct resolution.
> > Looking at /var/log/Xorg.0.log I see these entries. My max resolution
> > is "1600x1050" but it is not letting me use it.
> >
> > (WW) NVIDIA(0): No valid modes for "1600x1050"; removing.
> > (WW) NVIDIA(0): No valid modes for "1280x1024"; removing.
> > (II) NVIDIA(0): Validated modes:
> > (II) NVIDIA(0): "1024x768"
> > (II) NVIDIA(0): "800x600"
> > (II) NVIDIA(0): "640x480"
> > (II) NVIDIA(0): Virtual screen size determined to be 1024 x 768
> >
> > I configured Xorg using nvidia-settings.
> >
> > Section "ServerLayout"
> > Identifier "Layout0"
> > Screen  0  "Screen0" 0 0
> > InputDevice"Keyboard0" "CoreKeyboard"
> > InputDevice"Mouse0" "CorePointer"
> > EndSection
> >
> > Section "Files"
> > RgbPath "/usr/X11R6/lib/X11/rgb"
> > FontPath"/usr/X11R6/lib/X11/fonts/misc/:unscaled"
> > FontPath"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
> > FontPath"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
> > FontPath"/usr/X11R6/lib/X11/fonts/misc/"
> > FontPath"/usr/X11R6/lib/X11/fonts/Type1/"
> > FontPath"/usr/X11R6/lib/X11/fonts/100dpi/"
> > FontPath"/usr/X11R6/lib/X11/fonts/75dpi/"
> > FontPath"/usr/X11R6/lib/X11/fonts/cyrillic/"
> > FontPath"/usr/X11R6/lib/X11/fonts/TTF/"
> > EndSection
> >
> > Section "Module"
> > Load   "dbe"
> > Load   "extmod"
> > Load   "type1"
> > Load   "freetype"
> > Load   "glx"
> > EndSection
> >
> > Section "InputDevice"
> >
> > # generated from default
> > Identifier "Mouse0"
> > Driver "mouse"
> > Option "Protocol" "auto"
> > Option "Device" "/dev/sysmouse"
> > Option "Emulate3Buttons" "no"
> > Option "ZAxisMapping" "4 5"
> > EndSection
> >
> > Section "InputDevice"
> >
> > # generated from default
> > Identifier "Keyboard0"
> > Driver "keyboard"
> > EndSection
> >
> > Section "Monitor"
> > Identifier "Monitor0"
> > VendorName "Unknown"
> > ModelName  "Unknown"
> > HorizSync   30.0 - 110.0
> > VertRefresh 50.0 - 150.0
> > Option "DPMS"
> > EndSection
> >
> > Section "Device"
> > Identifier "Device0"
> > Driver "nvidia"
> > VendorName "NVIDIA Corporation"
> > EndSection
> >
> > Section "Screen"
> > Identifier "Screen0"
> > Device "Device0"
> > Monitor"Monitor0"
> > DefaultDepth24
> > SubSection "Display"
> > Depth   24
> > Modes  "1600x1050" "1280x1024" "1024x768" "800x600" 
"640x480"

> > EndSubSection
> > EndSection
> >
> > Please help
> > Thanks Derrick

>
> Monitor horizontal and vertical sync set correctly?
>
> That seems the only viable explanation other than your card doesn't
> support that resolution.
>
> -Garrett
> _
	Thanks for the reply. My card supports up to 1600x1200 and the freqs 
are correct.



> _ > 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]"


Why is sysinstall considered end-of-life?

2007-01-07 Thread Mark Lu

I've read up a few things stating that sysinstall is at its
end-of-life and there are plans to replace it. I'm wondering about the
reasons or rationale behind this. Even today, sysinstall seems to work
extremely well as an easy-to-use, simple, and stable tool for the
installation of FreeBSD. None of the features seem limiting or
outdated to me. So, why is there a move to find a replacement or
something? Software shouldn't be replaced for the sole reason of being
old if it works, right?

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


Re: Which version of BIND to use on FreeBSD 6.1?

2007-01-07 Thread patrick

I think I'll rephrase my question. What real advantage is there for me
running BIND 9 over BIND 8? Version 9 seems to require a lot more
memory and is still giving me this really annoying problem of using
all my CPU time when it hits the max_cache_size. I'm not using DNSSEC
or IPV6...

Patrick

On 1/3/07, patrick <[EMAIL PROTECTED]> wrote:

I'm trying to figure out which is the best version of BIND to use on
FreeBSD 6.1? I've always stuck with FreeBSD's base version, and since
upgrading from FreeBSD 4.x to 6.1, that meant moving from BIND 8.3.x
to 9.3.2. I've encountered numerous problems since moving to 9.3.2
which primarily revolve around exponential increases in memory and CPU
usage.

On our BIND 8.3.x setup, we have 750 master domains. Memory usage is
just shy of 70MBs. On our new server with BIND 9.3.2, we have
currently 140 master domains, and memory usage continually grows until
FreeBSD cuts it off. I have discovered the "max-cache-size" option
which allows me set an upper limit, but when the named process hits
that limit, it starts eating up all available CPU cycles. I've seen
some similar reports from other users, but haven't found any real
solutions.

While browsing the ports tree, I found I have my pick of BIND 8.3.x,
8.4.x, and a ports version of 9.3.x (not sure exactly how this differs
from base -- more current?). Our needs are fairly basic -- we have a
few DNS servers, and each are masters and slaves, helping one another
out. We're not using DNSSEC or anything. I'm wondering what other
people are generally using, and which version works best for them?

Thanks,

Patrick


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


Why is sysinstall considered end-of-life?

2007-01-07 Thread Robert Huff

Mark Lu writes:

>  So, why is there a move to find a replacement or something?
>  Software shouldn't be replaced for the sole reason of being old
>  if it works, right?

As I understand the discussion: among others, because there are
features people want to add that don't fit in the current model.
(Personally, I think there are also points where the correct user
behavior is not intuitively obvious.)


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


Re: Tuning PostgreSQL for bulk imports

2007-01-07 Thread Kirk Strauser
On Sunday 07 January 2007 15:15, Ivan Voras wrote:

> There's a dedicated mailing list for PostgreSQL performance:
> pgsql-performance/at/postgresql.org, which can give you really good
> advice, but here's some tips:

I've read, read, and re-read the general tuning tips, and done as much as 
seemed reasonable.  I was sort of hoping for a FreeBSD-specific 
magic "go-fast switch".

> - What might help you is to keep the WAL (write-ahead-log, i.e. journal)
> files on a completely separate (and fast) drive from the rest of the
> database, to allow parallelism and speed. For best results, format it
> with 32k blocks/8k fragments.

Thanks for the idea.  Assuming I actually get my wish of a matched set of 4 
high speed drives, would I be better off setting one aside for the journal, 
or striping them all together so everything benefits?

> - If you don't specifically need the atomicity of transactions, you
> might divide your import into many small transactions, for example one
> for every 100,000 rows instead of doing 8 million at once.

Would that actually make a difference in total elapsed time spent importing?

> Also, what version of PostgreSQL are you using? As a general rule, the
> newer the version, the faster it is. This is especially true if you're
> using 7.x - go to 8.1.5 immediately (but don't use 8.2 until 8.2.1 gets
> out).

We're already running 8.2 because it fixed some problems we were having with 
8.1.5.  Other than the excessively long import times, it's absolutely 
screaming and we couldn't be more pleased.
-- 
Kirk Strauser


pgpn3EQQ5Wa0A.pgp
Description: PGP signature


Re: obtaining kernel.debug

2007-01-07 Thread Karol Kwiatkowski
christopher floess wrote:
> On 1/7/07, Karol Kwiatkowski <[EMAIL PROTECTED]> wrote:
>>
>> christopher floess wrote:
>> > I've obtained a vmcore file, and now I just need kernel.debug.
>> >
>> > Is there a way to get this file using the new make procedure for
>> kernels?
>> > Can I just use the 'kernel' file, or is there a difference between
>> 'kernel'
>> > and 'kernel.debug'? Thanks for any help ~ Chris
>>
>> I'm also new to this so take it with a grain of salt.
>>
>> You'll need kernel with debug symbols (kernel.debug). Add this line to
>> your kernel config (it is included in 6.2 GENERIC):
>>
>> makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols
>>
>> The 'new make procedure' will produce both kernel and kernel.debug files
>> in obj/usr/src/sys/YOUR_KERNEL_NAME
> 
> 
> Sounds good, Karol. Will my current core file work with the recompiled
> kernel? Or will I have to generate a new one?

I've got no idea, cc'ing @freebsd-questions, someone here may have one.

Cheers,

Karol

-- 
Karol Kwiatkowski  
OpenPGP: http://www.orchid.homeunix.org/carlos/gpg/0x06E09309.asc



signature.asc
Description: OpenPGP digital signature


Re: Tuning PostgreSQL for bulk imports

2007-01-07 Thread Ivan Voras
Kirk Strauser wrote:
> On Sunday 07 January 2007 15:15, Ivan Voras wrote:

>> - What might help you is to keep the WAL (write-ahead-log, i.e. journal)
>> files on a completely separate (and fast) drive from the rest of the
>> database, to allow parallelism and speed. For best results, format it
>> with 32k blocks/8k fragments.
> 
> Thanks for the idea.  Assuming I actually get my wish of a matched set of 4 
> high speed drives, would I be better off setting one aside for the journal, 
> or striping them all together so everything benefits?

Everything is first written to the WAL, and then copied to the "normal"
database. So, speed is important, but maybe striping all 4 drives would
be an overkill, though. The logs are written sequentially so seek times
are not that important. What are your current IO rates? Since you have
only two drives you might be restricted by available disk bandwidth...

>> - If you don't specifically need the atomicity of transactions, you
>> might divide your import into many small transactions, for example one
>> for every 100,000 rows instead of doing 8 million at once.
> 
> Would that actually make a difference in total elapsed time spent importing?

It will certainly lower the final "commit" time and avoid copying large
chunks between the WAL and the database, but I don't have my own
measurements.

Do you have a SMP machine? If so, you can try importing NCPU of the big
transactions in parallel. This could help you almost linearly, if your
disks allow it. (see
http://www.postgresql.org/docs/8.1/interactive/runtime-config-wal.html :
you can increase commit_delay and decrease commit_siblings to achieve
sort of localized-async operation across several (parallel) transactions)

I've just remembered - do you run VACUUM ANALYZE after your big imports?
You should (to get performance on SELECTs afterwards, but it won't help
the imports themselves).

>> Also, what version of PostgreSQL are you using? As a general rule, the
>> newer the version, the faster it is. This is especially true if you're
>> using 7.x - go to 8.1.5 immediately (but don't use 8.2 until 8.2.1 gets
>> out).
> 
> We're already running 8.2 because it fixed some problems we were having with 
> 8.1.5.  Other than the excessively long import times, it's absolutely 
> screaming and we couldn't be more pleased.

Ok. Be careful not to use SELECT ... LIMIT ALL ;)



signature.asc
Description: OpenPGP digital signature


RE: Advice on which FreeBSD firewall package to choose.

2007-01-07 Thread Brett Davidson
Thanks to everyone who responded.

It looks like pfsense will do the job nicely.

Cheers,
Brett.
 

-Original Message-
From: Eric [mailto:[EMAIL PROTECTED] 
Sent: Friday, 5 January 2007 10:52 a.m.
To: Brett Davidson
Cc: [EMAIL PROTECTED]
Subject: Re: Advice on which FreeBSD firewall package to choose.

Brett Davidson wrote:
> Before I start, I'm familiar with IPTables from Linux but am wanting 
> to use FreeBSD as a firewalling router after seeing it in action on a 
> heavily-loaded webserver. I like the efficiency of the TCP stack.
>
> Upon reading the handbook I found that I can have my choice of three 
> firewalls; pf, iptables and ipfw.
>
> What would be the most useful (and easiest) package to use given the 
> following scenario:
>
> A FreeBSD router comprising of four physical interfaces -
>   Eth0 is the outside 10Mbyte/s cable connection to the Internet.
>   Eth1 is a 100Mbit DMZ housing a webserver.
>   Eth2 is a 100Mb DMZ housing a 802.11g Wireless Access Router. 
>   (My normal preference is to isolate Wireless LANs from physical 
> LANS).
>   Eth3 is the inside LAN. 
>
> Software-based VPN connections out from both the Inside LAN and 
> Wireless DMZ are required. (Allowing VPN tunnels through the firewall;

> not tunnels terminated at the firewall).
>
> Against prudence, they wish to allow torrent connections to the inside

> lan and ICQ connections to both the Inside LAN and the Wireless DMZ. 
> The torrent and ICQ connections will need to be bandwidth-managed so 
> that is a major consideration for the choice of which firewall to use.

> Is there an equivalent to HTB on FreeBSD?
>
> I look forward to your answers...
>
> Regards,
> Brett.
>   
i believe pf is the most modern and cleanest/easiest syntax to use. it
is actively developed and lots of people use it. You can set up priority
on bandwidth in pf as well, so it should meet all your requirements
nicely.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Why is sysinstall considered end-of-life?

2007-01-07 Thread Ivan Voras
Mark Lu wrote:
> I've read up a few things stating that sysinstall is at its
> end-of-life and there are plans to replace it. I'm wondering about the
> reasons or rationale behind this. Even today, sysinstall seems to work
> extremely well as an easy-to-use, simple, and stable tool for the
> installation of FreeBSD. None of the features seem limiting or
> outdated to me. So, why is there a move to find a replacement or
> something? Software shouldn't be replaced for the sole reason of being
> old if it works, right?

Two reasons AFAIK:

1. it simply doesn't even know how deal with the more modern features
like GEOM & RAID, more advanced authentication mechanisms (nsswitch),
and devices like sound cards (there are many more in this list...)
2. it's way past what's currently considered "user friendly"




signature.asc
Description: OpenPGP digital signature


Re: /dev/null in a chroot

2007-01-07 Thread Marc G. Fournier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


#!/bin/sh
/sbin/devfs -m $1 rule apply hide
/sbin/devfs -m $1 rule apply path null unhide

where $1 == the dev directory you mount within the chroot environment ...

- --On Sunday, January 07, 2007 16:53:27 +0100 Michael Grant <[EMAIL 
PROTECTED]> 
wrote:

> I chrooted apache to /www.
>
> In order to run a java program from a web page, java needs a /dev/null
> inside the chroot.
>
> I don't want to create another whole /dev/ dir with all the disk raw
> devices there to be read for anyone who cracks root.  I just want a
> /www/dev/null file.
>
> I tried creating a node with mknod exactly like the node in /dev but
> it doesn't work in freebsd 6.  /dev/ is special now and you can't just
> create nodes anywhere like the old days.
>
> Is there a way to create a /www/dev/null which acts just like /dev/null?
>
> Michael Grant
>



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

iD8DBQFFoYpc4QvfyHIvDvMRAsKNAKCBQL1HfW0XiDQlWTQ7SMYxBOD7rwCeMPYk
sZ45tw01yqCImIhanmHTtEQ=
=YMRb
-END PGP SIGNATURE-

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


Re: Why is sysinstall considered end-of-life?

2007-01-07 Thread Tore Lund
Robert Huff wrote:
> (Personally, I think there are also points where the correct user
> behavior is not intuitively obvious.)

An understatement.  There are situations where sysinstall is positively
quixotic.  I don't mind the simple character-based interface.  But I do
find it worrying that I sometimes cannot know what sysinstall will do
next.  In any case, this is bad publicity for FreeBSD since sysinstall
is the first bit of FreeBSD they encounter.

Time and again we hear rumors about a new installation program.  Is it
actually nearing completion?  Keep in mind that many of us do not even
consider getting involved as long as we believe a better program is
under way.
-- 
Tore


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


Re: Why is sysinstall considered end-of-life?

2007-01-07 Thread bobmc
Ivan Voras wrote:
> Mark Lu wrote:
>   
>> I've read up a few things stating that sysinstall is at its
>> end-of-life and there are plans to replace it. I'm wondering about the
>> reasons or rationale behind this. Even today, sysinstall seems to work
>> extremely well as an easy-to-use, simple, and stable tool for the
>> installation of FreeBSD. None of the features seem limiting or
>> outdated to me. So, why is there a move to find a replacement or
>> something? Software shouldn't be replaced for the sole reason of being
>> old if it works, right
>> Two reasons AFAIK:
>>
>> 
---
A previous reply said:

As I understand the discussion: among others, because there are
features people want to add that don't fit in the current model.
(Personally, I think there are also points where the correct user
behavior is not intuitively obvious.)   ---Robert Huff

--
Then Ivan said
>> 1. it simply doesn't even know how deal with the more modern features
>> like GEOM & RAID, more advanced authentication mechanisms (nsswitch),
>> and devices like sound cards (there are many more in this list...)
>> 2. it's way past what's currently considered "user friendly"  
>>
>>
>> 

The "end-of-life" phrase appears in one of the article pages and even in the
sysinstall man-page.  Perhaps someone started a rumour which became
gospel to someone else.

This page -> http://www.freebsd.org/releases/6.1R/todo.html mentions a
desired improvement (not replacement!) for sysinstall. Since replacement is
not imminent, perhaps issue tracking should be used to encourage and
manage modest improvements that would enhance it's appeal.

It is said to be a monolithic program.. perhaps it is trying to do too much.

-Bob-

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


Re: Tuning PostgreSQL for bulk imports

2007-01-07 Thread Norberto Meijome
On Sun, 7 Jan 2007 16:18:06 -0600
Kirk Strauser <[EMAIL PROTECTED]> wrote:

> > There's a dedicated mailing list for PostgreSQL performance:
> > pgsql-performance/at/postgresql.org, which can give you really good
> > advice, but here's some tips:  
> 
> I've read, read, and re-read the general tuning tips, and done as much as 
> seemed reasonable.  I was sort of hoping for a FreeBSD-specific 
> magic "go-fast switch".

Hi Kirk,
I haven't touched PGSQL for a little while...but I remember some comments
in the pgsql lists about disabling ACID features / WAL while big imports are
happening - I could be wrong and this only apply to generating indexes ? Of
course this is a no goer if you still need to you use your DB server for other
tasks during the import.

Something also to consider is , do you *have* to import all that data every
time? ie., can you create data partitions, assign a new table to each
day ,create the appropriate rules, and then only dump from FoxPro the last
day's info? It may not be possible, but it helped me loads when I had to import
60 mill new rows/day. Indexing becomes somewhat easier too (as you should only
have to regenerate index for the new partition)

if cpu is hitting to hard, you can always run nice pgsql while importing this -
it will still take 100% cpu, but yield as soon as something else needs to do
some work . Of course, this wont help if you are IO bound (i think? ). *are*
you CPU bound ? 

Let us know what solution you come up with, and good luck :)

_
{Beto|Norberto|Numard} Meijome

"The music business is a cruel and shallow money trench, a long plastic hallway
where thieves and pimps run free, and good men die like dogs. There's also a
negative side." Hunter S. Thompson

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: Connecting to a USB serial port

2007-01-07 Thread Mike Tancsa
On Sat, 06 Jan 2007 12:25:25 -0500, in sentex.lists.freebsd.questions
you wrote:

>I have a Keyspan USB serial port on my FreeBSD 6.1 box and trying to 
>connect from a Linux box to the machine. I'm using minicom and not sure 
>of the settings that should be used. I see the following in dmesg...
>That seems to do the trick with my other BSD servers that have regular 
>serial ports, but minicom doesn't want to find it using 9600 8N1 settings.

Hi,
Not sure if the keyspan is suported or not.  But if it is
recognized, it should show up via 
usbdevs 

e.g.
% usbdevs 
addr 1: OHCI root hub, ATI
addr 1: OHCI root hub, ATI
 addr 2: USB FAST SERIAL ADAPTER, FTDI
addr 1: EHCI root hub, ATI


Take a look at the man pages for ucom and the various drivers that
support it.  

---Mike

Mike Tancsa, Sentex communications http://www.sentex.net
Providing Internet Access since 1994
[EMAIL PROTECTED], (http://www.tancsa.com)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


apache2.2 php5.1 mysql5

2007-01-07 Thread tethys ocean

Hi

I have FreeBSD 6.1 installed Apache 2.2 Mysql5  and also PHP5.1 but PHP5
doesnt work  Are there anybody works together it?


I did it such kinds of setting.

apache22_enable="YES"
mysql_enable="YES"

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


zcom xi325hp+ 300mw

2007-01-07 Thread manfred hawranke
Hi together,
I found this message and I need help for this card to with all docs and 
firmware updates!!
Thanks
Manfred Hawranke


"
Re: Teletronics wlan 200mW card supported under 5.x?

Nikolas Britton
Mon, 16 Oct 2006 13:36:46 -0700

On 10/16/06, Gordon Pedersen <[EMAIL PROTECTED]> wrote:

Has anyone got the Teletronics XI-325HP 200mW PRISM 2.5-based PCMCIA card
to work under freebsd 5.4, which I currently run?  or 6.x?

The Teletronics XI-325HP 200mW PRISM 2.5-based PCMCIA card is
high on my list of possible cards with external antenna jacks to buy.

Older reports say they had to flash firmware back to 1.5.6 on
the card to get it working under Freebsd 4.x.  Current firmware
as sold now appears to be 1.8.4 or higher.  Seems like a big
jump backwards to take.


Thats a rebranded zcom card, should have RP-MMCX antenna connector. It
depend what you want to do with the card?, IIRC secondary firmware
1.8.4 / primary 1.1.1 doesn't support hostap mode... IIRC you'll have
to reflash it with secondary 1.7.4 ~ 1.4.9 (I forget which is best) to
get hostap mode working. I have all the firmware, utilites, and docs
if you need them. Secondary firmware 1.7.4 and up supports WPA and
1.3.7 and up supports Prism 3 chipsets. I forget which firmwares
supports 802.11d but I know 1.8.4 does. I think I have the secondary
firmware changelog up to 1.4.9, primary firmware changelog up to 1.1.0
and a 2003 version of the driver programmers manual."
_
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=0066

___
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 php5.1 mysql5

2007-01-07 Thread Jonathan Horne
On Sunday 07 January 2007 19:24, tethys ocean wrote:
> Hi
>
> I have FreeBSD 6.1 installed Apache 2.2 Mysql5  and also PHP5.1 but PHP5
> doesnt work  Are there anybody works together it?
>
>
> I did it such kinds of setting.
>
> apache22_enable="YES"
> mysql_enable="YES"
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps

did you add to DirectoryIndex

index.php ?

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


Re: Tuning PostgreSQL for bulk imports

2007-01-07 Thread Kirk Strauser
On Sunday 07 January 2007 17:15, Ivan Voras wrote:

> What are your current IO rates? Since you have only two drives you might be
> restricted by available disk bandwidth... 

So says gstat.  According to top, the import only takes about 40% of one CPU, 
but both of the drives are saturated.

I'm contemplating mounting that filesystem async and letting PostgreSQL decide 
when to sync it.  Although I'm sort of allergic to the idea, this seems like 
it might be relatively safe since no other process touches that data.  Any 
thoughts?

The biggest benefit I'm getting from SMP right now is that I can run the 
Foxpro->PostgreSQL conversion on one processor while postmaster grinds away 
on the other.

> I've just remembered - do you run VACUUM ANALYZE after your big imports?
> You should (to get performance on SELECTs afterwards, but it won't help
> the imports themselves).

Actually, I've been letting the vacuum daemon make that decision for the last 
few months with no perceptible ill effects.

> Ok. Be careful not to use SELECT ... LIMIT ALL ;)

LOL!  Duly noted.
-- 
Kirk Strauser


pgpBuzSmV7V14.pgp
Description: PGP signature


Re: Tuning PostgreSQL for bulk imports

2007-01-07 Thread Kirk Strauser
On Sunday 07 January 2007 19:22, Norberto Meijome wrote:

> I could be wrong and this only apply to generating indexes?

That's what we're doing now.  By dropping the table and recreating it, all the 
index maintenance gets deferred until one batch at the end (which is vastly 
faster in practice).  We also wrap the whole thing in a transaction so that 
select queries still have access to the old data until the instant the commit 
is finished, assuming that the import doesn't fail for some reason and get 
rolled back.

> Something also to consider is , do you *have* to import all that data every
> time? ie., can you create data partitions, assign a new table to each
> day ,create the appropriate rules, and then only dump from FoxPro the last
> day's info?

I wish.  First, we run the import hourly (more or less).  I save the output of 
the last hour's Foxpro->PostgreSQL conversion, and run a hand-written 
optimized diff against it.  If nothing has changed, that table gets skipped.  
If a reasonably small percentage of rows have changed (which is almost always 
the case), then I re-write it as a serious of deletes followed by a bulk 
import.  Basically, I patch the table.  It's nice to see a twenty million row 
table update reduced to a patch file 100 lines long.  Oh, for the record, my 
diff algorithm is written in Python and is still IO limited, even when 
several copies are running in parallel.

> if cpu is hitting to hard, you can always run nice pgsql while importing
> this - it will still take 100% cpu, but yield as soon as something else
> needs to do some work . Of course, this wont help if you are IO bound (i
> think? ). *are* you CPU bound ?

{Un,}fortunately, no.  The CPUs are still idle enough to get a lot of other 
processing done without slowing the import process.

> Let us know what solution you come up with, and good luck :)

Will do, and thanks!
-- 
Kirk Strauser


pgpkGwbXhcq1H.pgp
Description: PGP signature


System hang on laptop suspend/resume

2007-01-07 Thread Stephen Casner

I was running FreeBSD 4.8 on my Sony PCG-505TR laptop for about three
years until I recently upgraded to 6.1 with a clean install on a new
disk drive.  One aspect of FreeBSD that I really liked was that
suspend-to-memory and resume worked perfectly and quickly every time,
whereas when I had previously tried this with Windows it usually
failed.  I did not even need to run apmd or configure any suspend or
resume scripts other than the normal configuration in pccard.conf for
the an0 802.11 network card.

Sadly, with FreeBSD 6.1, the result is often a system hang requiring a
power cycle to recover.  I have found that I can avoid the hang if I
do two things before suspend:

  - switch the display from X to the console vty (which I have
automated using vidcontrol as suggested in the laptop article)

  - manually unplug the 802.11 network card and wait for dhclient to
exit before suspending, and leave the card unplugged until after
resuming

My question is this:  How can I programmatically power down or detach
the network card?  "ifconfig an0 down" is not sufficient.  I'm worried
about wearing out my PC Card slot by frequently unplugging the card.
On 4.8, I used "pccardc power 0 0" to power down the card, but on 6.1
it results in the error message:

pccardc: /dev/card0: No such file or directory

In the mail archive, I saw that pccardc is not supported in NEWCARD,
but the binary and man page are still included in the 6.1 release.

Or is there something else I should be doing instead?

Here are additional details --

- This laptop BIOS supports APM but not ACPI.
- I am running apmd and have it configured to invoke rc.suspend and
  rc.resume, which in turn run vidcontrol.
- I have two network cards: an0 and ath0.  For an0, the hang occurs
  on resume about half the time.  With ath0, it aways hangs.
- The hang is indicated by a timeout on ad0 (see below).  At that
  point, I can switch vtys among 1-8, but going to vty9 (X server)
  will hang.  Ctrl-Alt-Delete does nothing.  Return just echoes
  return, no login prompt (will echo more than once).
- Pulling Aironet card and replugging results in:
  Interrupt storm detected on "irq9:"; throttling interrrupt source

Messages on the console vty (manually copied):

Dec  2 00:57:56 kao root: Received USERSUSPENDREQ
Dec  2 00:57:56 kao apm: suspend
an0: detached
Dec  2 14:32:20 kao root: Received NORMRESUME
Dec  2 14:32:20 kao apm: resumed from suspend
Dec  2 14:32:20 kao dhclient[3365]: send_packet: Device not configured
an0:  at port 0x100-0x13f irq 9 
function 0 config 5 on pccard0
an0: got RSSI <-> dBM map
an0: supported rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
an0: Ethernet address: 00:40:96:32:05:b7
an0: [GIANT-LOCKED]
ad0: TIMEOUT - READ_DMA retrying (1 retry left) LBA=68041200

Messages from /var/log/messages:

Dec  2 00:57:56 kao apmd[412]: apmevent 000a index 7
Dec  2 00:57:56 kao root: Received USERSUSPENDREQ
Dec  2 00:57:56 kao apm: suspend
Dec  2 14:32:20 kao kernel: an0: detached
Dec  2 14:32:20 kao kernel: wakeup from sleeping state (slept 13:34:17)
Dec  2 14:32:19 kao apmd[412]: apmevent 0003 index 8
Dec  2 14:32:20 kao root: Received NORMRESUME
Dec  2 14:32:20 kao apm: resumed from suspend
Dec  2 14:32:20 kao dhclient[3365]: send_packet: Device not configured
Dec  2 14:54:13 kao syslogd: kernel boot file is /boot/kernel/kernel

Note that some log messages are written after resuming and before the
hang, so ad0 is working up to the point where it gets the timeout.

-- Steve
___
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 php5.1 mysql5

2007-01-07 Thread Russell E. Meek

Quoting Jonathan Horne <[EMAIL PROTECTED]>:


On Sunday 07 January 2007 19:24, tethys ocean wrote:

Hi

I have FreeBSD 6.1 installed Apache 2.2 Mysql5  and also PHP5.1 but PHP5
doesnt work  Are there anybody works together it?


I did it such kinds of setting.

apache22_enable="YES"
mysql_enable="YES"

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


did you add to DirectoryIndex

index.php ?

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



If you built php5 from ports did you remember to select the Apache  
option to include the apache module?


/usr/ports/lang/php5
make config
Apache - Build Apache module





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


USB drive is a CDROM drive and is not writable

2007-01-07 Thread Michael M. Press

I have a 2 gigabyte USB memory stick from made by PNY. When I plug it in, I
get the following:

umass0: vendor 0x0930 USB Flash Memory, rev 2.00/2.00, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: < USB Flash Memory 6.50> Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 1901MB (3894975 512 byte sectors: 255H 63S/T 242C)
cd1 at umass-sim0 bus 0 target 0 lun 1
cd1: < USB Flash Memory 6.50> Removable CD-ROM SCSI-0 device
cd1: 40.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present

I want to be able to mount the device read-write, so I use the
following command:

mount -t cd9660 -o rw /dev/cd1 /media/flashdrv

The command runs without spitting any errors at me, but it does a read-only
mount. I can see files on the drive, but (of course) I can't change them. Does
my problem have anything to do with the device being detected as a CD-ROM
drive? If that is what's wrong I don't really know where to start
looking to fix it.
Any ideas?

-- I have 'device pass' in my kernel
-- I am using 6.2 prerelease
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Connecting to a USB serial port

2007-01-07 Thread perryh
> I have a Keyspan USB serial port on my FreeBSD 6.1 box and trying
> to connect from a Linux box to the machine. I'm using minicom and
> not sure of the settings that should be used. I see the following
> in dmesg...
>
> sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4
> flags 0x10 on acpi0
> sio0: type 16550A
>
> Is this the USB serial port? There is no other serial port avaialble
> on the server, but could be something in the board, not sure.

I doubt it.  That looks like a normal board-resident serial port,
esp. with the "on acpi0" notation (which suggests that it is part
of an ACPI-controlled device, and ACPI is ordinarily aware of only
motherboard devices).  It's likely part of the "super-io" chip,
and it may possibly be connected to a 10-pin Berg header on the
motherboard (or it may not be connected to the outside world at
all).  The motherboard manual, if available, might provide a clue.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: USB drive is a CDROM drive and is not writable

2007-01-07 Thread Dan Nelson
In the last episode (Jan 07), Michael M. Press said:
> I have a 2 gigabyte USB memory stick from made by PNY. When I plug it
> in, I get the following:
> 
> umass0: vendor 0x0930 USB Flash Memory, rev 2.00/2.00, addr 2
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0: < USB Flash Memory 6.50> Removable Direct Access SCSI-0 device
> da0: 40.000MB/s transfers
> da0: 1901MB (3894975 512 byte sectors: 255H 63S/T 242C)
> cd1 at umass-sim0 bus 0 target 0 lun 1
> cd1: < USB Flash Memory 6.50> Removable CD-ROM SCSI-0 device
> cd1: 40.000MB/s transfers
> cd1: Attempt to query device size failed: NOT READY, Medium not present
> 
> I want to be able to mount the device read-write, so I use the
> following command:
> 
> mount -t cd9660 -o rw /dev/cd1 /media/flashdrv
> 
> The command runs without spitting any errors at me, but it does a
> read-only mount. I can see files on the drive, but (of course) I
> can't change them.  Does my problem have anything to do with the
> device being detected as a CD-ROM drive? If that is what's wrong I
> don't really know where to start looking to fix it. Any ideas?

Very interesting!  cd1 and da0 look like the same device, with cd1 just
on LUN 1.  I bet if you were to examine /dev/da0 you'd see the real
writable FAT filesystem there.  I wonder if it is doing fat->cd9660
filesystem emulation on the fly?

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


Vivitar USB camera support

2007-01-07 Thread perryh
Does anyone happen to know where I would find a how-to for downloading
and displaying images from a Vivitar ViviCam 3825?  I see several
digital-camera utilities of one sort or another in the ports, but
none whose index entry mentions Vivitar.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Linux Kernel Drivers in Under FreeBSD

2007-01-07 Thread Chris Maness
Is it possible to get Linux kernel drivers working under FreeBSD?  If 
so, how?  (Specifically Garmin_USB)


--
Chris Maness
(909) 223-9179
http://www.chrismaness.com

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


Re: Tuning PostgreSQL for bulk imports

2007-01-07 Thread Abdullah Al-Marrie

Kirk Strauser wrote:

I have an hourly job that converts our legacy Foxpro database into
PostgreSQL tables so that our web applications, etc. can run reports off
the data in a reasonable amount of time.  Believe it or not, this has been
running perfectly in production for over a year.  The only problem I'd
still like to solve is that loading the data pegs the filesystem at 100%
for many minutes at a time.


Why did you choose PostgreSQL over MySQL 5.0.x?

Is the latest PostgreSQL release performance much better than MySQL
5.0.x in RELENG_6 with SMP and 2 GB of ram now?


--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: stopping my server from spamming

2007-01-07 Thread Peter Nyamukusa
On Saturday 06 January 2007 22:02, David Banning wrote:
> I have been blacklisted for spamming and I am attempting to ascertain the
> source.
>
> I have a few networked windows boxes which route through a FBSD
> server. I also have around ten off-site users who send mail via my port
> 26 - using smtp password authentication. How do I determine which
> email going through the server is spam, and therefore identify the
> source?
Hi what MTA are you using and are you running any mailscanning software ie 
MailScanner/Clamav/Spamd etc
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

-- 
Peter Nyamukusa
Systems Administrator
Africa Online Zimbabwe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"