Re: ipdivert.ko

2011-04-05 Thread Ian Smith
In freebsd-questions Digest, Vol 357, Issue 3, Message: 8
On Tue, 5 Apr 2011 00:58:50 +0930 Sebastian Ramadan s...@geekycode.net wrote:

  I wish to cause ipdivert.ko to load at boot time. Currently, ipfw.ko loads
  correctly at boot time with ipfw_load=YES in /boot/loader.conf, but
  ipdivert.ko does not load at boot time with ipdivert_load=YES. I'm able to
  load it using kldload, though. dmesg doesn't seem to be giving any clues as
  to why ipdivert won't load... What am I doing wrong?
  
  Regards, Sebastian Ramadan.
  My uname -a, /boot/loader.conf, kldstat and a successful load of ipdivert
  using kldload after boot time:
  domU-12-31-39-02-15-3A# uname -a
  FreeBSD domU-12-31-39-02-15-3A 8.2-RELEASE FreeBSD 8.2-RELEASE #13: Mon Feb
  21 20:13:46 UTC 2011
  r...@chch.daemonology.net:/usr/obj/i386/usr/src/sys/XEN
  i386
  domU-12-31-39-02-15-3A# cat /boot/loader.conf
  ipfw_load=YES
  ipdivert_load=YES
  domU-12-31-39-02-15-3A# kldstat
  Id Refs AddressSize Name
   18 0xc000 4000 kernel
   21 0xc2bb3000 1ext2fs.ko
   31 0xc2d1f000 11000ipfw.ko
   41 0xc2d3 d000 libalias.ko

Hmm, I'm a bit curious as to why libalias.ko was loaded.  You don't 
have 'firewall_nat_enable=YES' in rc.conf, do you?

Anyway, loader.conf isn't the way to go for loading ipfw or ipdivert 
(presumably for use by natd?) these days.

Instead you want these in /etc/rc.conf:

ipfw_enable=YES
natd_enable=YES

plus any required ipfw_ and natd_ variables (see /etc/defaults/rc.conf)

Then /etc/rc.d/ipfw will load ipfw.ko, and if natd_enable is set, will 
invoke /etc/rc.d/natd, which loads ipdivert.ko at the right time.

  domU-12-31-39-02-15-3A# uname -a
  FreeBSD domU-12-31-39-02-15-3A 8.2-RELEASE FreeBSD 8.2-RELEASE #13: Mon Feb
  21 20:13:46 UTC 2011
  r...@chch.daemonology.net:/usr/obj/i386/usr/src/sys/XEN
  i386
  domU-12-31-39-02-15-3A# kldload ipdivert
  domU-12-31-39-02-15-3A# kldstat
  Id Refs AddressSize Name
   1   10 0xc000 4000 kernel
   21 0xc2bb3000 1ext2fs.ko
   32 0xc2d1f000 11000ipfw.ko
   41 0xc2d3 d000 libalias.ko
   51 0xc3cc7000 4000 ipdivert.ko
  
  My dmesg:
  domU-12-31-39-02-15-3A# dmesg
  Copyright (c) 1992-2011 The FreeBSD Project.
  Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
  The Regents of the University of California. All rights reserved.
  FreeBSD is a registered trademark of The FreeBSD Foundation.
  FreeBSD 8.2-RELEASE #13: Mon Feb 21 20:13:46 UTC 2011
  r...@chch.daemonology.net:/usr/obj/i386/usr/src/sys/XEN i386

[..]

  start_init: trying /sbin/init
  ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based
  forwarding disabled, default to deny, logging disabled
  ipfw0: bpf attached

There are a number of outstanding PRs regarding module loading by natd 
and (if used) firewall_nat, and the use of these by /etc/rc.firewall.  

If enabling natd in rc.conf instead doesn't fix your issue, write to me 
privately and I'll put you onto some patches - but unless you're also 
(or instead) using kernel NAT (ipfirewall_nat - which needs to load 
libalias.ko) then the above settings should do you.

cheers, Ian
___
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: remaining goal.. .

2011-04-05 Thread Arthur Chance

On 04/05/11 00:39, Gary Kline wrote:

On Mon, Apr 04, 2011 at 03:39:19PM -0700, David Brodbeck wrote:

On Sat, Apr 2, 2011 at 4:56 PM, Gary Klinekl...@thought.org  wrote:

simply that i'm looking for somebody  who know how to transfer pfsense
from a standalone system to this kit.


I would suggest using Diagnostics/Backup/restore on the current system
to save a copy of the configuration in a .xml file.


Done.  in fact i have two copies.


Then install pfSense on the new machine by whatever means are
available -- I think the current two options are bootable CD-R and
bootable USB stick, but there may be others for embedded systems  --
I'm not familiar with those.



That is axactly my problem.  This is a tiny 4watt kit type
deal, all solid state with with memory that requires some
special kind of burner.  [I have the latest pfSense tarball
and my .xml restore/update file.  ... so, software side, i'm
all set.]


I use pfSense, but my system (based on an Alix 2D3 board) has a compact 
flash drive, so I simply dd the disk image onto the CF card on my normal 
FBSD box, and plug it into the Alix, which is the usual way of deploying 
embedded pfSense. What hardware are you using? Does it have any CF or SD 
card capability, or maybe a USB port?


___
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


dhcpd in vmware

2011-04-05 Thread xinyou yan
the dhcpd can't start in vmware :

Here is my /usr/local/etc/hpcdd.conf

option domain-name ikfb.org;
option domain-name-servers 192.168.4.100;
option subnet-mask 255.255.255.0;
default-lease-time 3600;
max-lease-time 86400;
ddns-update-style none;

subnet 192.168.0.0 netmask 255.255.255.0 {
  range 192.168.4.129 192.168.4.254;
  option routers 192.168.4.1;
}

host ikfb3.org{
   hardware ethernet 00:0C:29:1B:E2:82;
   fixed-address 192.168.4.128;
}




ifkb3.org  ikfb4.org   in  one vmware team .
They both connect to lan1 in the team.

when i use  /usr/local/etc/isc-dhcpd start

it shows :
   Please do not under any circumstances send requests for
   failed to start dhcpd


How can i offer the dhcp to the ikfb3.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


Re: dhcpd in vmware

2011-04-05 Thread Kevin Wilcox
On Tue, Apr 5, 2011 at 08:29, xinyou yan yxy@gmail.com wrote:

 the dhcpd can't start in vmware :

 Here is my /usr/local/etc/hpcdd.conf

Is the file named hpcdd.conf or is that a typo?

 subnet 192.168.0.0 netmask 255.255.255.0 {
 range 192.168.4.129 192.168.4.254;
 option routers 192.168.4.1;
 }

That *should* throw an error due to the netmask. If you're just using
the 192.168.4.129 - 254 addresses I would change it to

subnet 192.168.4.0 netmask 255.255.255.0

Otherwise the netmask of 255.255.255.0 will lead dhcpd to think it
should be offering for 192.168.0.1 - 192.168.0.254.

 when i use  /usr/local/etc/isc-dhcpd start

 it shows :
   Please do not under any circumstances send requests for
   failed to start dhcpd

Does it give any other errors?

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


Place to install library of shell functions

2011-04-05 Thread Michael Grünewald

Dear FreeBSD users,


today I come to you with what seems to be somehow pedantic question:  
where is the best place to install libraries of shell functions.


I read hier(4) carefully and it seems the correct place for this would 
be somewhere under `/usr/local/share':


share/architecture-independent files


On the base systems, many macros (make templates and groff macros) are 
actually installed under /usr/share.  However, the only library of shell 
functions I am aware of is `/etc/rc.subr', that landed on this funny 
location, probably to be pretty sure that this library is on the same 
filesystem as the scripts under /etc/rc.d.


Several of the ports install shell scripts under `/usr/local/lib' that 
hier(4) devotes to  ``shared and archive ar(1)-type libraries''.  These 
shell scripts are:


 find /usr/local/lib -name '*.sh'
/usr/local/lib/tk8.5/tkConfig.sh
/usr/local/lib/seamonkey/run-mozilla.sh
/usr/local/lib/libxul/run-mozilla.sh
/usr/local/lib/rpm/convertrpmrc.sh
/usr/local/lib/rpm/find-lang.sh
/usr/local/lib/rpm/getpo.sh
/usr/local/lib/rpm/u_pkg.sh
/usr/local/lib/rpm/vpkg-provides.sh
/usr/local/lib/rpm/vpkg-provides2.sh
/usr/local/lib/firefox/run-mozilla.sh
/usr/local/lib/tcl8.5/tclConfig.sh
/usr/local/lib/thunderbird/run-mozilla.sh
/usr/local/lib/llvm-gcc-2.8/gcc/x86_64-portbld-freebsd8.2/4.2.1/install-tools/fixinc.sh

Two files (the `/usr/local/lib/tcl8.5/tclConfig.sh' one and the 
`s/tcl/tk/g' one) are actually shell script libraries (defining a bunch 
of variables), and all the others are ancillary scripts, that would 
maybe better fit in `/usr/local/libexec'.


So, practical experience does not really second my a priori that these 
files sould go under the `share' hierarchy and I would like to have your 
opinion on this question.

--
Best Regards,
Michael
___
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: Place to install library of shell functions

2011-04-05 Thread Jerry McAllister
On Tue, Apr 05, 2011 at 05:23:47PM +0200, Michael Grünewald wrote:

 Dear FreeBSD users,
 
 
 today I come to you with what seems to be somehow pedantic question:  
 where is the best place to install libraries of shell functions.
 
 I read hier(4) carefully and it seems the correct place for this would 
 be somewhere under `/usr/local/share':
 
 share/architecture-independent files

I would go with /usr/local/lib.

jerry


 
 On the base systems, many macros (make templates and groff macros) are 
 actually installed under /usr/share.  However, the only library of shell 
 functions I am aware of is `/etc/rc.subr', that landed on this funny 
 location, probably to be pretty sure that this library is on the same 
 filesystem as the scripts under /etc/rc.d.
 
 Several of the ports install shell scripts under `/usr/local/lib' that 
 hier(4) devotes to  ``shared and archive ar(1)-type libraries''.  These 
 shell scripts are:
 
  find /usr/local/lib -name '*.sh'
 /usr/local/lib/tk8.5/tkConfig.sh
 /usr/local/lib/seamonkey/run-mozilla.sh
 /usr/local/lib/libxul/run-mozilla.sh
 /usr/local/lib/rpm/convertrpmrc.sh
 /usr/local/lib/rpm/find-lang.sh
 /usr/local/lib/rpm/getpo.sh
 /usr/local/lib/rpm/u_pkg.sh
 /usr/local/lib/rpm/vpkg-provides.sh
 /usr/local/lib/rpm/vpkg-provides2.sh
 /usr/local/lib/firefox/run-mozilla.sh
 /usr/local/lib/tcl8.5/tclConfig.sh
 /usr/local/lib/thunderbird/run-mozilla.sh
 /usr/local/lib/llvm-gcc-2.8/gcc/x86_64-portbld-freebsd8.2/4.2.1/install-tools/fixinc.sh
 
 Two files (the `/usr/local/lib/tcl8.5/tclConfig.sh' one and the 
 `s/tcl/tk/g' one) are actually shell script libraries (defining a bunch 
 of variables), and all the others are ancillary scripts, that would 
 maybe better fit in `/usr/local/libexec'.
 
 So, practical experience does not really second my a priori that these 
 files sould go under the `share' hierarchy and I would like to have your 
 opinion on this question.
 -- 
 Best Regards,
 Michael
 ___
 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


Re: Place to install library of shell functions

2011-04-05 Thread Polytropon
On Tue, 05 Apr 2011 17:23:47 +0200, Michael Grünewald 
michaelgrunew...@yahoo.fr wrote:
 Dear FreeBSD users,
 
 
 today I come to you with what seems to be somehow pedantic question:  
 where is the best place to install libraries of shell functions.

Depends. Are you interested in shell functions you install
from a port / package, or your own shell functions?



 I read hier(4) carefully and it seems the correct place for this would 
 be somewhere under `/usr/local/share':
 
  share/architecture-independent files

This structure usually serves the purpose of /usr/share,
but for software installed by ports or packages, as the
/usr/local/ subtree duplicates the system's structures
in many cases.



 On the base systems, many macros (make templates and groff macros) are 
 actually installed under /usr/share.  However, the only library of shell 
 functions I am aware of is `/etc/rc.subr', that landed on this funny 
 location, probably to be pretty sure that this library is on the same 
 filesystem as the scripts under /etc/rc.d.

I guess that's the intention behind this decision. You'll
see that many things on FreeBSD are determined by a well-
intended thought, rather than an arbitrary Oh, why don't
we just put it ... *throw a dice* ... here?



 Several of the ports install shell scripts under `/usr/local/lib' that 
 hier(4) devotes to  ``shared and archive ar(1)-type libraries''.  These 
 shell scripts are:
 
   find /usr/local/lib -name '*.sh'
 /usr/local/lib/tk8.5/tkConfig.sh
 /usr/local/lib/seamonkey/run-mozilla.sh
 /usr/local/lib/libxul/run-mozilla.sh
 /usr/local/lib/rpm/convertrpmrc.sh
 /usr/local/lib/rpm/find-lang.sh
 /usr/local/lib/rpm/getpo.sh
 /usr/local/lib/rpm/u_pkg.sh
 /usr/local/lib/rpm/vpkg-provides.sh
 /usr/local/lib/rpm/vpkg-provides2.sh
 /usr/local/lib/firefox/run-mozilla.sh
 /usr/local/lib/tcl8.5/tclConfig.sh
 /usr/local/lib/thunderbird/run-mozilla.sh
 /usr/local/lib/llvm-gcc-2.8/gcc/x86_64-portbld-freebsd8.2/4.2.1/install-tools/fixinc.sh
 
 Two files (the `/usr/local/lib/tcl8.5/tclConfig.sh' one and the 
 `s/tcl/tk/g' one) are actually shell script libraries (defining a bunch 
 of variables), and all the others are ancillary scripts, that would 
 maybe better fit in `/usr/local/libexec'.

It depends on where the respective port maintainer want to
have them.



 So, practical experience does not really second my a priori that these 
 files sould go under the `share' hierarchy and I would like to have your 
 opinion on this question.

Many software is ported from Linux, so their structures,
or sometimes the lack of, is applied.

For example, I put _my_ stuff that is NOT managed by ports and
definitely does NOT belong to the system into an /opt subtree,
a Solaris-ism I'm abusing: /opt/bin is in $PATH, so anything
system-wide executable is located there, and /opt/share
does contain non-executable shell scripts (e. g. those with
helper functionalities) or files with settings (that are
sourced by something else) - things that usually are not
called directly.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Place to install library of shell functions

2011-04-05 Thread Dan Nelson
In the last episode (Apr 05), Michael Grünewald said:
 today I come to you with what seems to be somehow pedantic question: where
 is the best place to install libraries of shell functions.
 
 I read hier(4) carefully and it seems the correct place for this would 
 be somewhere under `/usr/local/share':
 
  share/architecture-independent files
 
 On the base systems, many macros (make templates and groff macros) are
 actually installed under /usr/share.  However, the only library of shell
 functions I am aware of is `/etc/rc.subr', that landed on this funny
 location, probably to be pretty sure that this library is on the same
 filesystem as the scripts under /etc/rc.d.

 Several of the ports install shell scripts under `/usr/local/lib' that
 hier(4) devotes to ``shared and archive ar(1)-type libraries''.  These
 shell scripts are:

The zsh port installs all its helper scripts and functions into
/usr/local/share/zsh , and the portupgrade and portmaster ports insert their
zsh autocompletion functions into /usr/local/share/zsh/site-functions. 
Seems to work great.  Ports that install scripts into /usr/local/lib
probably either don't have separate script and lib install paths in their
makefile (tcl probably), or their scripts aren't meant to be called directly
(firefox).

-- 
Dan Nelson
dnel...@allantgroup.com
___
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: Place to install library of shell functions

2011-04-05 Thread mikel king

On Apr 5, 2011, at 11:23 AM, Michael Grünewald wrote:

 Dear FreeBSD users,
 
 
 today I come to you with what seems to be somehow pedantic question:  where 
 is the best place to install libraries of shell functions.
 
 I read hier(4) carefully and it seems the correct place for this would be 
 somewhere under `/usr/local/share':
 
share/architecture-independent files
 
 
 On the base systems, many macros (make templates and groff macros) are 
 actually installed under /usr/share.  However, the only library of shell 
 functions I am aware of is `/etc/rc.subr', that landed on this funny 
 location, probably to be pretty sure that this library is on the same 
 filesystem as the scripts under /etc/rc.d.
 
 Several of the ports install shell scripts under `/usr/local/lib' that 
 hier(4) devotes to  ``shared and archive ar(1)-type libraries''.  These shell 
 scripts are:
 
  find /usr/local/lib -name '*.sh'
 /usr/local/lib/tk8.5/tkConfig.sh
 /usr/local/lib/seamonkey/run-mozilla.sh
 /usr/local/lib/libxul/run-mozilla.sh
 /usr/local/lib/rpm/convertrpmrc.sh
 /usr/local/lib/rpm/find-lang.sh
 /usr/local/lib/rpm/getpo.sh
 /usr/local/lib/rpm/u_pkg.sh
 /usr/local/lib/rpm/vpkg-provides.sh
 /usr/local/lib/rpm/vpkg-provides2.sh
 /usr/local/lib/firefox/run-mozilla.sh
 /usr/local/lib/tcl8.5/tclConfig.sh
 /usr/local/lib/thunderbird/run-mozilla.sh
 /usr/local/lib/llvm-gcc-2.8/gcc/x86_64-portbld-freebsd8.2/4.2.1/install-tools/fixinc.sh
 
 Two files (the `/usr/local/lib/tcl8.5/tclConfig.sh' one and the `s/tcl/tk/g' 
 one) are actually shell script libraries (defining a bunch of variables), and 
 all the others are ancillary scripts, that would maybe better fit in 
 `/usr/local/libexec'.
 
 So, practical experience does not really second my a priori that these files 
 sould go under the `share' hierarchy and I would like to have your opinion on 
 this question.
 -- 
 Best Regards,
 Michael

For the bash library (http://jafdip.com/?p=537) we choose /usr/local/lib. This 
just seems to be the most logical place for this sort of thing.

Regards,
Mikel King
BSD News Network
http://bsdnews.net
skype: mikel.king
http://twitter.com/mikelking



___
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 pam_abl package

2011-04-05 Thread Phusion
I'm having a problem with the pam_abl package. I've already emailed
the programs author, but didn't get a reply back. I'm having trouble
setting up a rule to exclude to users. One user is the root user while
the other is a local account. I've tried multiple things, but they
don't seem to work. The rules seem to only not include the root user.

This does exclude the root user, but not the localacct user.

#debug
user_db=/var/db/pam_abl/users.db
user_rule=!root|!localacct:5/60d

This next one doesn't seem to work either.

#debug
user_db=/var/db/pam_abl/users.db
user_rule=!root:5/60d !localacct:5/60d

Please advise.

Phusion
___
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: Place to install library of shell functions

2011-04-05 Thread Jerry
On Tue, 5 Apr 2011 12:09:40 -0400
mikel king mikel.k...@olivent.com articulated:

 For the bash library (http://jafdip.com/?p=537) we
 choose /usr/local/lib. This just seems to be the most logical place
 for this sort of thing.

Interestingly enough, WOT gives that URL a poor rating.

http://www.mywot.com/en/scorecard/jafdip.com

-- 
Jerry ✌
freebsd.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__

___
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: remaining goal.. .

2011-04-05 Thread Gary Kline
On Tue, Apr 05, 2011 at 11:42:33AM +0100, Arthur Chance wrote:
 On 04/05/11 00:39, Gary Kline wrote:
 On Mon, Apr 04, 2011 at 03:39:19PM -0700, David Brodbeck wrote:
 On Sat, Apr 2, 2011 at 4:56 PM, Gary Klinekl...@thought.org  wrote:
 simply that i'm looking for somebody  who know how to transfer 
  pfsense
 from a standalone system to this kit.
 
 I would suggest using Diagnostics/Backup/restore on the current system
 to save a copy of the configuration in a .xml file.
 
  Done.  in fact i have two copies.
 
 Then install pfSense on the new machine by whatever means are
 available -- I think the current two options are bootable CD-R and
 bootable USB stick, but there may be others for embedded systems  --
 I'm not familiar with those.
 
 
  That is axactly my problem.  This is a tiny 4watt kit type
  deal, all solid state with with memory that requires some
  special kind of burner.  [I have the latest pfSense tarball
  and my .xml restore/update file.  ... so, software side, i'm
  all set.]
 
 I use pfSense, but my system (based on an Alix 2D3 board) has a
 compact flash drive, so I simply dd the disk image onto the CF card
 on my normal FBSD box, and plug it into the Alix, which is the usual
 way of deploying embedded pfSense. What hardware are you using? Does
 it have any CF or SD card capability, or maybe a USB port?


It is a Alix 601 board with 1G of CF flash.  But according to my
hardware friend, it will take a CF burner of some kind.  I'm
sure the kit has the right ports and I have the right sized
pfSense image  for me , it's messing with plugging things
together and figuring out which cables go where.  That's where
i'm in the dark. ...be nice if i could do without theis
burner... 
 

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 7.98a release of Jottings: http://jottings.thought.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


Re: Place to install library of shell functions

2011-04-05 Thread Chris Rees
2011/4/5 Jerry McAllister jerr...@msu.edu:
 On Tue, Apr 05, 2011 at 05:23:47PM +0200, Michael Grünewald wrote:

 Dear FreeBSD users,


 today I come to you with what seems to be somehow pedantic question:
 where is the best place to install libraries of shell functions.

 I read hier(4) carefully and it seems the correct place for this would
 be somewhere under `/usr/local/share':

                 share/    architecture-independent files

 I would go with /usr/local/lib.


I'd rather agree with the OP; shell functions are arch-independent,
and are DATADIR suited IMO.

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


Fuse 2.7.4?

2011-04-05 Thread Joe Auty
Hello,

What is the status of the fusefs-libs port? I'd like to try the newer
s3fs builds with FUSE, but they require 2.8.4 or higher. I was unable to
get FUSE 2.8.5 to build with the current patches included in the port.
Are these patches still necessary?


-- 
Joe Auty, NetMusician
NetMusician helps musicians, bands and artists create beautiful,
professional, custom designed, career-essential websites that are easy
to maintain and to integrate with popular social networks.
www.netmusician.org http://www.netmusician.org
j...@netmusician.org mailto:j...@netmusician.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


RaLink RT2760 + RT2720

2011-04-05 Thread Dan Gavin

Hello,

I have purchased this wireless card:

http://www.monoprice.com/products/product.asp?c_id=105cp_id=10501cs_id=1050103p_id=5338seq=1format=3#specification

It seems that it is not being detected by 8.2-RELEASE.

I have tried the RT2870 and RT2860 drivers with the card from:

http://repo.or.cz/w/ralink_drivers.git

This has resulted in little success.  Here is a snippet of  pciconf -lvcb:

none2@pci0:3:1:0:   class=0x028000 card=0x30621814 chip=0x30621814 
rev=0x00 hdr=0x00

vendor = 'Ralink Technology, Corp.'
class  = network
bar   [10] = type Memory, range 32, base 0xe200, size 65536, 
enabled

cap 01[40] = powerspec 3  supports D0 D3  current D0

If anyone could be of assistance it would be greatly appreciated.  My 
ultimate goal is to use this as an AP.


Thanks,

Dan
___
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 pam_abl package

2011-04-05 Thread Dimitri Yioulos
On Tuesday 05 April 2011 12:22:54 pm Phusion 
wrote:
 I'm having a problem with the pam_abl package.
 I've already emailed the programs author, but
 didn't get a reply back. I'm having trouble
 setting up a rule to exclude to users. One user
 is the root user while the other is a local
 account. I've tried multiple things, but they
 don't seem to work. The rules seem to only not
 include the root user.

 This does exclude the root user, but not the
 localacct user.

 #debug
 user_db=/var/db/pam_abl/users.db
 user_rule=!root|!localacct:5/60d

 This next one doesn't seem to work either.

 #debug
 user_db=/var/db/pam_abl/users.db
 user_rule=!root:5/60d !localacct:5/60d

 Please advise.

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


You might want to try the following (from the 
pam_abl documentation):


Multiple rules can be provided separated by spaces 
like this

*:10/1h root:5/1h,10/1d

in which case all rules that match a particular 
user and service will be checked. The user or 
host will be blocked if any of the rule triggers 
matches. The sense of the user matching can be 
inverted by placing a '!' in front of the rule so 
that

!root:20/1d

is a rule which would match for all users apart 
from root. It is important to treat root as a 
special case in the user_rule otherwise excessive 
attempts to authenticate as root will result in 
the root account being locked out even for valid 
holders of root credentials.


HTH.

Dimitri

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

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


Mentioning of geom in the handbook's RAID chapter.

2011-04-05 Thread Leon Meßner
Hi,

I recently searched google for FreeBSD software raid because i wanted
to compare the advice google gives me for creating a software raid in
linux and freebsd. First hit here was the link to the handbook page
(18.4). This page still is only talking about ccd and vinum. I know
there is a whole chapter about geom but why is there no mentioning about
that in the Storage.RAID part of the Handbook ?

Sincerly,
Leon
___
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: Mentioning of geom in the handbook's RAID chapter.

2011-04-05 Thread Michael Powell
Leon Meßner wrote:

 Hi,
 
 I recently searched google for FreeBSD software raid because i wanted
 to compare the advice google gives me for creating a software raid in
 linux and freebsd. First hit here was the link to the handbook page
 (18.4). This page still is only talking about ccd and vinum. I know
 there is a whole chapter about geom but why is there no mentioning about
 that in the Storage.RAID part of the Handbook ?
 

This is mostly pure conjecture on my part, but I think it is most likely a 
separation between old and new. The Handbook is maintained and 
contributed to in an ad-hoc manner over long periods of time by  ever 
changing volunteers and I think there is a conservative approach to 
reorganizing or changing something someone else had contributed previously.  
The volunteer who wrote the GEOM chapter simply may not wish to alter what 
someone else contributed.

Although not perfect, I still think the Handbook is one of the best examples 
of documentation around.

-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: remaining goal.. .

2011-04-05 Thread Daniel Staal

--As of April 5, 2011 11:05:19 AM -0700, Gary Kline is alleged to have said:


It is a Alix 601 board with 1G of CF flash.  But according to my
hardware friend, it will take a CF burner of some kind.


--As for the rest, it is mine.

I'm going to assume you mean the Alix 6e1, which is the closest I can find 
in their numbering system.


It's got a standard CF adaptor.  (*All* the Alix's do.)  If there's a card 
in it, pull it off and insert into any CF reader, and it should work fine. 
(USB-based ones typically sell for $20, including SD, XD, MMC, Memorystick, 
and probably a few others as well.  Check Best Buy, or your local computer 
hardware store, or possibly a camera store.)  Then follow Arthur's advice. 
The CF card may be a little awkward to pull off.


If the card that's in there is some special card that needs some exotic 
burner...  When you are at the computer store spend another $5 or so and 
get yourself a new card.


Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---
___
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


f77 in FreeBSD 8.2

2011-04-05 Thread Eduardo Viruena Silva

Hello, FreeBSD gurus,

I have noticed that the Fortran Compiler f77 that used to be
in freebsd sources is not longer there in version 8.2-stable,
now it's in the obsolete software list.

Nevertheless, it has some directories in the sources:

/usr/src/gnu/usr.bin/cc/f77
/usr/src/gnu/usr.bin/cc/f77/Makefile
/usr/src/gnu/usr.bin/cc/f771
/usr/src/gnu/usr.bin/cc/f771/Makefile
/usr/src/gnu/usr.bin/cc/f77doc
/usr/src/gnu/usr.bin/cc/f77doc/Makefile


How can I install that compiler?

The one in the ports does not work as fine as the the one in
the sources.


Thanks in advace,

 Eduardo.

PS. Please answer to my e-mail address, I'm not subscribed to
the list.


___
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: f77 in FreeBSD 8.2

2011-04-05 Thread Mehmet Erol Sanliturk
On Tue, Apr 5, 2011 at 7:46 PM, Eduardo Viruena Silva 
eduardo.viru...@esfm.ipn.mx wrote:


 Hello, FreeBSD gurus,

 I have noticed that the Fortran Compiler f77 that used to be
 in freebsd sources is not longer there in version 8.2-stable,
 now it's in the obsolete software list.

 Nevertheless, it has some directories in the sources:

 /usr/src/gnu/usr.bin/cc/f77
 /usr/src/gnu/usr.bin/cc/f77/Makefile
 /usr/src/gnu/usr.bin/cc/f771
 /usr/src/gnu/usr.bin/cc/f771/Makefile
 /usr/src/gnu/usr.bin/cc/f77doc
 /usr/src/gnu/usr.bin/cc/f77doc/Makefile


 How can I install that compiler?

 The one in the ports does not work as fine as the the one in
 the sources.


 Thanks in advace,

 Eduardo.

 PS. Please answer to my e-mail address, I'm not subscribed to
 the list.




My answer is NOT related directly to your question , please forgive me .


I am using G95 ( from www.g95.org which is in the packages of FreeBSD ) in
Windows and Linux , and I like it very much because it generates very good
code , especially if the stack traces are enabled in command line , on run
time errors it is giving nearly exact source line of the error point with a
list of called subroutines chain  . Since the G95 is generated from the same
sources for the FreeBSD , I think there is no difference between platform
related compilers .

Another point is ( if your source files have .FOR extension , it is using
Fortran 77 , if it is .F90 , it is using the Fortran 95 ( be careful about
cases of letters ) . For such points , please read its manual . If any
Fortran 77 source file has .F90 extension , it will produce a lot of errors
because Fortran 77 is fixed line format based , Fortran 90 or 95 is free
line format based .

Thank you very much .


Mehmet Erol Sanliturk
___
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: f77 in FreeBSD 8.2

2011-04-05 Thread Eduardo Viruena Silva
On Tue, April 5, 2011 7:44 pm, Mehmet Erol Sanliturk wrote:
 On Tue, Apr 5, 2011 at 7:46 PM, Eduardo Viruena Silva 
 eduardo.viru...@esfm.ipn.mx wrote:


 Hello, FreeBSD gurus,

 I have noticed that the Fortran Compiler f77 that used to be
 in freebsd sources is not longer there in version 8.2-stable,
 now it's in the obsolete software list.

 Nevertheless, it has some directories in the sources:

 /usr/src/gnu/usr.bin/cc/f77
 /usr/src/gnu/usr.bin/cc/f77/Makefile
 /usr/src/gnu/usr.bin/cc/f771
 /usr/src/gnu/usr.bin/cc/f771/Makefile
 /usr/src/gnu/usr.bin/cc/f77doc
 /usr/src/gnu/usr.bin/cc/f77doc/Makefile


 How can I install that compiler?

 The one in the ports does not work as fine as the the one in
 the sources.


 Thanks in advace,

 Eduardo.

 PS. Please answer to my e-mail address, I'm not subscribed to
 the list.




 My answer is NOT related directly to your question , please forgive me .


 I am using G95 ( from www.g95.org which is in the packages of FreeBSD ) in
 Windows and Linux , and I like it very much because it generates very good
 code , especially if the stack traces are enabled in command line , on run
 time errors it is giving nearly exact source line of the error point with
 a
 list of called subroutines chain  . Since the G95 is generated from the
 same
 sources for the FreeBSD , I think there is no difference between platform
 related compilers .

 Another point is ( if your source files have .FOR extension , it is using
 Fortran 77 , if it is .F90 , it is using the Fortran 95 ( be careful about
 cases of letters ) . For such points , please read its manual . If any
 Fortran 77 source file has .F90 extension , it will produce a lot of
 errors
 because Fortran 77 is fixed line format based , Fortran 90 or 95 is free
 line format based .

 Thank you very much .


 Mehmet Erol Sanliturk


Thanks Mehmet.

I'd better start promoting the use of g95.

Some people in the list say that f77 users must move on in their lives
and leave f77 behind.




Something curious is happening, g95 does not seem to find its library
libg95.

I have to write explicitly:

g95 foo.for -o foo  -L/usr/local/lib

to compile the program foo.

/etc/rc.d/ldconfig restart does not fix the problem.
Any ideas?


Thanks for answering,

 Eduardo.

___
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: remaining goal.. .

2011-04-05 Thread Gary Kline
On Tue, Apr 05, 2011 at 07:21:13PM -0400, Daniel Staal wrote:
 --As of April 5, 2011 11:05:19 AM -0700, Gary Kline is alleged to have said:
 
  It is a Alix 601 board with 1G of CF flash.  But according to my
  hardware friend, it will take a CF burner of some kind.
 
 --As for the rest, it is mine.
 
 I'm going to assume you mean the Alix 6e1, which is the closest I
 can find in their numbering system.


6E1, yes.  Sorry; it was last December.  My friend was going to drop
by , but cancelled and was back in school before he remembered.

 
 It's got a standard CF adaptor.  (*All* the Alix's do.)  If there's
 a card in it, pull it off and insert into any CF reader, and it
 should work fine. (USB-based ones typically sell for $20, including
 SD, XD, MMC, Memorystick, and probably a few others as well.  Check
 Best Buy, or your local computer hardware store, or possibly a
 camera store.)  Then follow Arthur's advice. The CF card may be a
 little awkward to pull off.
 
 If the card that's in there is some special card that needs some
 exotic burner...  When you are at the computer store spend another
 $5 or so and get yourself a new card.
 


I asked the pfSense forum if I had enough memory and they said
yes.  Wghat I've got should be fine assuming that everything is
put together correctly.  My physical disabilities limit what i
can do myself--that's the catch; it is why I have to ask favors.

I'll save your mail just in case my friend gets off-track for
some reason.  Shouldn't.  It is how he is putting himself thru
college this time.  ---What I want is to be drawing as few watts
as _possible_.  Especially since I have two tower cases going
24*7.  Plus the firewall Beast.  :: be nice to get down to some
min footprint and get that much further into the green-zone!

-g


 Daniel T. Staal
 
 ---
 This email copyright the author.  Unless otherwise noted, you
 are expressly allowed to retransmit, quote, or otherwise use
 the contents for non-commercial purposes.  This copyright will
 expire 5 years after the author's death, or in 30 years,
 whichever is longer, unless such a period is in excess of
 local copyright law.
 ---

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 7.98a release of Jottings: http://jottings.thought.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


Thunderbird segfaults if UID 0

2011-04-05 Thread Kevin Kinsey
Hello,

I've had trouble since upgrading mail/thunderbird from 2.X
to 3.1.9 --- as a non-root user, it segfaults.

As root, I have no issues.

I've tried:

1. Googling
2. mv .mozilla .mozilla-old  thunderbird
3.  sudo chmod 777 /dev/null  thunderbird
(and similar stuff with /dev/fd/* and
the symlinks stdin, stdout and stderr.

I'm kind of stumped at this point.  Here's the
last part of a ktrace:

 54137 sh   RET   read 872/0x368
 54137 sh   CALL  stat(0x283034d0,0xbfbfe638)
 54137 sh   NAMI  /usr/local/lib/thunderbird/run-mozilla.sh
 54137 sh   STRU  struct stat {dev=87, ino=6053072, mode=-rwxrwxrwx 
, nlink=1, uid=0, gid=0, rdev=24241760, atime=1302052597, 
stime=1301719584, ctime=1302044479, birthtime=1301719584, size=10461, 
blksize=4096, blocks=24, flags=0x0 }
 54137 sh   RET   stat 0
 54137 sh   CALL  eaccess(0x283034d0,X_OK)
 54137 sh   NAMI  /usr/local/lib/thunderbird/run-mozilla.sh
 54137 sh   RET   eaccess 0
 54137 sh   CALL  geteuid
 54137 sh   RET   geteuid 1001/0x3e9
 54137 sh   CALL  fork
 54137 sh   RET   fork 54141/0xd37d
 54137 sh   CALL  getpgrp
 54137 sh   RET   getpgrp 54137/0xd379
 54137 sh   CALL  wait4(0x,0xbfbfe778,WUNTRACED,0)
 54137 sh   RET   wait4 54141/0xd37d
 54137 sh   CALL  exit(0x8b)
  

Anyone got a clue what I've done?

Thanks,

Kevin Kinsey
___
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: f77 in FreeBSD 8.2

2011-04-05 Thread Mehmet Erol Sanliturk
On Tue, Apr 5, 2011 at 9:20 PM, Eduardo Viruena Silva 
eduardo.viru...@esfm.ipn.mx wrote:

 On Tue, April 5, 2011 7:44 pm, Mehmet Erol Sanliturk wrote:
  On Tue, Apr 5, 2011 at 7:46 PM, Eduardo Viruena Silva 
  eduardo.viru...@esfm.ipn.mx wrote:
 
 
  Hello, FreeBSD gurus,
 
  I have noticed that the Fortran Compiler f77 that used to be
  in freebsd sources is not longer there in version 8.2-stable,
  now it's in the obsolete software list.
 
  Nevertheless, it has some directories in the sources:
 
  /usr/src/gnu/usr.bin/cc/f77
  /usr/src/gnu/usr.bin/cc/f77/Makefile
  /usr/src/gnu/usr.bin/cc/f771
  /usr/src/gnu/usr.bin/cc/f771/Makefile
  /usr/src/gnu/usr.bin/cc/f77doc
  /usr/src/gnu/usr.bin/cc/f77doc/Makefile
 
 
  How can I install that compiler?
 
  The one in the ports does not work as fine as the the one in
  the sources.
 
 
  Thanks in advace,
 
  Eduardo.
 
  PS. Please answer to my e-mail address, I'm not subscribed to
  the list.
 
 
 
 
  My answer is NOT related directly to your question , please forgive me .
 
 
  I am using G95 ( from www.g95.org which is in the packages of FreeBSD )
 in
  Windows and Linux , and I like it very much because it generates very
 good
  code , especially if the stack traces are enabled in command line , on
 run
  time errors it is giving nearly exact source line of the error point with
  a
  list of called subroutines chain  . Since the G95 is generated from the
  same
  sources for the FreeBSD , I think there is no difference between platform
  related compilers .
 
  Another point is ( if your source files have .FOR extension , it is using
  Fortran 77 , if it is .F90 , it is using the Fortran 95 ( be careful
 about
  cases of letters ) . For such points , please read its manual . If any
  Fortran 77 source file has .F90 extension , it will produce a lot of
  errors
  because Fortran 77 is fixed line format based , Fortran 90 or 95 is free
  line format based .
 
  Thank you very much .
 
 
  Mehmet Erol Sanliturk
 

 Thanks Mehmet.

 I'd better start promoting the use of g95.

 Some people in the list say that f77 users must move on in their lives
 and leave f77 behind.


 

 Something curious is happening, g95 does not seem to find its library
 libg95.

 I have to write explicitly:

g95 foo.for -o foo  -L/usr/local/lib

 to compile the program foo.

 /etc/rc.d/ldconfig restart does not fix the problem.
 Any ideas?


 Thanks for answering,

 Eduardo.




The command line is important for g95 . Therefore , please write a complete
command line for compilation . Since these are multi-platform software AND
different platforms are NOT equivalent in their directory structure , I
think , these facts are not very important points .


My approach is to use a batch file in Windows and a shell script in Linux to
compile programs  :

For example : g95-cte.sh ( cte : compile to executable , there is another
cts : compile to syntax  )


g95 -ftrace=full -o $1 $1.FOR


( -ftrace=full means , generate code to produce call chain trace on run-time
error . )
To compile  a program , use it as follows ( use your extension as it is :
.for or .FOR , FreeBSD is case-sensitive ) :


g95-cte.sh hello


Move g95-cte.sh after making it executable into a directory which it is in
the $PATH , then it will be possible to use g95-cte.sh from any directory .

For specially required directories , add their names into its command line
with suitable prefixes .


In the following page ,
http://www.g95.org/downloads.shtml


there are binaries for FreeBSD . Since they are specific to platforms , they
MAY NOT require specification of libraries , but , again , these are NOT
important , specify them in shell script command line only one time ,
then use it continuously .

Thank you very much .


Mehmet Erol Sanliturk
___
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


how to tune the system for the heavy traffic?

2011-04-05 Thread 李森
hi all:
 my freebsd is  7.3-RELEASE FreeBSD.
 i fount it lose packages slightly,

ping test:
23 packets transmitted, 22 packets received, 4.3% packet loss
round-trip min/avg/max/stddev = 0.073/0.521/1.952/0.521 ms

  netstat 1:

   there is a lot of input error in netstat 1 result:

% netstat 1
input(Total)   output
   packets  errs  bytespackets  errs  bytes colls
 27839  33361807953  31722 06226471 0
 29596  21221903013  34289 06729220 0
 24747  22511600582  17843 03094079 0
 15358 01004995  15942 03810051 0
  4743 0 337459  11260 02147868 0
  9534 0 629656   3890 0 411055 0
 15024 01019820  22629 09454034 0
 25099   1911654160  22364 05319211 0
 13175   358 874315  18197 06062716 0
 25506  17851651455  33867 0   10503736 0
 33319  30292137120  31391 06423544 0
 29830   5971915300  33235 06198883 0


My question is how to tune the system for the heave traffic?
___
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