Re: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Adam Vande More

Faizan ul haq Muhammad wrote:
Hi, 


I am not sure but as per some internet guide, I have configured the bridge on 
Freebsd(7) Machine with two LAN cards on it

 

I have compiled my KERNEL with (device if_bridge) 

 


and then added code to rc.conf

 
cloned_interfaces=bridge0

ifconfig_bridge0=addm sk0 addm sk1 up
ifconfig_sk0=up
ifconfig_sk1=up  I connected two linux PCs with these two interfaces (sk0 and 
sk1) and tried to ping between them but didnt get any success.configuration seems to be 
ok, but still no traffice is being passed. Can any one give any sugestion ?  Regards!

 
  

What does ifconfig show?
___
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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Olivier Nicole
Hi,

 I connected two linux PCs with these two interfaces (sk0 and sk1)
 and tried to ping between them but didnt get any
 success.configuration seems to be ok, but still no traffice is being
 passed. Can any one give any sugestion ?

Stupid question, but if you connect the 2 Linux boxes directly
(without the FreeBSD bridge in between) can they ping eachother?

Are you using properly crossed cables?

On the FreeBSD box, you can tcpdump(8) and see the packets moving:
tcpdump -i sk0 and tcpdump -i sk1 and you will see the pick request
and ping echo packets.

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


Re: Kernel Compile issue

2009-03-02 Thread Paige Thompson
Also I wanted to note how I got to this problem:

[root@ /usr/src]# make buildkernel config=GENERIC 2 error.log

[root@ /usr/src]# uname -a
FreeBSD  7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC
2008 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
[root@ /usr/src]#

I also wanted to mention that I tried this with the LINT configuration and
had the same result.


On Mon, Mar 2, 2009 at 12:21 AM, Paige Thompson erra...@devel.ws wrote:

 [root@ /usr/src]# head error.log
 /usr/src/sys/i386/i386/genassym.c:35:23: error: sys/cdefs.h: No such file
 or directory
 /usr/src/sys/i386/i386/genassym.c:36: error: expected declaration
 specifiers or '...' before string constant
 /usr/src/sys/i386/i386/genassym.c:36: warning: data definition has no type
 or storage class
 /usr/src/sys/i386/i386/genassym.c:36: warning: type defaults to 'int' in
 declaration of '__FBSDID'
 /usr/src/sys/i386/i386/genassym.c:36: warning: function declaration isn't a
 prototype
 /usr/src/sys/i386/i386/genassym.c:42:23: error: sys/param.h: No such file
 or directory
 /usr/src/sys/i386/i386/genassym.c:43:23: error: sys/systm.h: No such file
 or directory
 /usr/src/sys/i386/i386/genassym.c:44:23: error: sys/assym.h: No such file
 or directory
 /usr/src/sys/i386/i386/genassym.c:45:21: error: sys/bio.h: No such file or
 directory
 /usr/src/sys/i386/i386/genassym.c:46:21: error: sys/buf.h: No such file or
 directory
 [root@ /usr/src]#


 [root@ /usr/src]# cat sys/i386/i386/genassym.c | grep cdefs.h
 #include sys/cdefs.h

 [root@ /usr/src]# ls -lah /usr/include/sys/cdefs.h
 -r--r--r--  1 root  wheel18K Feb 24  2008 /usr/include/sys/cdefs.h
 [root@ /usr/src]#

 wat wat wat Not sure what I'm missing here o.O



___
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: Ports on Macbook

2009-03-02 Thread FBSD UG


On 28 feb 2009, at 17:26, Bernt Hansson wrote:


Sean Cavanaugh said the following on 2009-02-28 16:25:

-
From: Bernt Hansson be...@bah.homeip.net
Sent: Saturday, February 28, 2009 9:32 AM
To: FBSD UG free...@rgbaz.eu
Cc: freebsd-questions questi...@freebsd.org
Subject: Re: Ports on Macbook

FBSD UG said the following on 2009-02-28 10:50:


On 27 feb 2009, at 13:39, Sergio de Almeida Lenzi wrote:


Em Sex, 2009-02-27 às 14:45 +0300, z...@zaa.pp.ru escreveu:

On Fri, Feb 27, 2009 at 03:04:09PM +0530, Nataraj S Narayan  
wrote:

Hi

I hear that Mac OS X and later ones are based on FreeBSD. My  
wife is

planning to get a Macbook , which I don't quite approve. Mainly
because we need to pay for any upgrade or new add ons.



Hello...


I use a free version of the Leopard based on darwin (freebsd6)  
named

hackintosh  it is the google,
it is free, and just works...

You can even buy a standard notebook, and install.  I will  
transform

the notebook in an
apple leopard 10.


Tha's, ehm, quite illegal to say the least...


Of course it isn't illegal. You can run any system you like on  
your own hardware.
unless you actually READ the licensing on OSX that says It can only  
be installed on apple brand hardware


It doesn't really matter much what they say in their eula. If i  
bought a copy then i can do/install whatever I want since there  
isn't any agreement between apple and me. For the agreement to be  
binding I must sign a contract with apple.




You're not buying the software, you buy a license to use it on one  
Apple computer.


___
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


Kernel Compile issue

2009-03-02 Thread Paige Thompson
[root@ /usr/src]# head error.log
/usr/src/sys/i386/i386/genassym.c:35:23: error: sys/cdefs.h: No such file or
directory
/usr/src/sys/i386/i386/genassym.c:36: error: expected declaration specifiers
or '...' before string constant
/usr/src/sys/i386/i386/genassym.c:36: warning: data definition has no type
or storage class
/usr/src/sys/i386/i386/genassym.c:36: warning: type defaults to 'int' in
declaration of '__FBSDID'
/usr/src/sys/i386/i386/genassym.c:36: warning: function declaration isn't a
prototype
/usr/src/sys/i386/i386/genassym.c:42:23: error: sys/param.h: No such file or
directory
/usr/src/sys/i386/i386/genassym.c:43:23: error: sys/systm.h: No such file or
directory
/usr/src/sys/i386/i386/genassym.c:44:23: error: sys/assym.h: No such file or
directory
/usr/src/sys/i386/i386/genassym.c:45:21: error: sys/bio.h: No such file or
directory
/usr/src/sys/i386/i386/genassym.c:46:21: error: sys/buf.h: No such file or
directory
[root@ /usr/src]#


[root@ /usr/src]# cat sys/i386/i386/genassym.c | grep cdefs.h
#include sys/cdefs.h

[root@ /usr/src]# ls -lah /usr/include/sys/cdefs.h
-r--r--r--  1 root  wheel18K Feb 24  2008 /usr/include/sys/cdefs.h
[root@ /usr/src]#

wat wat wat Not sure what I'm missing here o.O
___
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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Faizan ul haq Muhammad



 


 Date: Mon, 2 Mar 2009 15:28:10 +0700
 From: o...@cs.ait.ac.th
 To: faiz...@hotmail.com
 CC: fbsd.questi...@rachie.is-a-geek.net; freebsd-questions@freebsd.org; 
 fb...@a1poweruser.com
 Subject: Re: Bridging-(How to test and verify that bridging is enabled)
 
 Hi,
 
  I connected two linux PCs with these two interfaces (sk0 and sk1)
  and tried to ping between them but didnt get any
  success.configuration seems to be ok, but still no traffice is being
  passed. Can any one give any sugestion ?
 
 Stupid question

Yess it is

, but if you connect the 2 Linux boxes directly
 (without the FreeBSD bridge in between) can they ping eachother?

Yes they can
 
 Are you using properly crossed cables?

Isnt it enough check for the  that two linux can ping each other..
 
 On the FreeBSD box, you can tcpdump(8) and see the packets moving:
 tcpdump -i sk0 and tcpdump -i sk1 and you will see the pick request
 and ping echo packets.
 

it says arp: who has 192.168.0.4 tell 192.168.0.5
 Olivier


_
Hotmail® is up to 70% faster. Now good news travels really fast. 
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009___
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: Kernel Compile issue

2009-03-02 Thread Michael Powell
Paige Thompson wrote:

 Also I wanted to note how I got to this problem:
 
 [root@ /usr/src]# make buildkernel config=GENERIC 2 error.log
 
[snip]

cd /usr/obj and rm -rf usr before trying again. Then cd /usr/src and do:

make buildkernel KERNCONF=nameofsomeconffile  another example:

make buildkernel KERNCONF=GENERIC

If you have an unadulterated GENERIC conf file present and you just issue 
make buildkernel by itself it will select GENERIC as default. Try correct 
procedure first, and hope there is no problem. 

-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


OT: what is the X11 equiv of /dev/null

2009-03-02 Thread Aryeh M. Friedman
I often want to run applications from my PC (actually the dual boot 
partition on my desktop 7.1) on one of the X11 capable 7.1 machine at 
work (identical configs except for dual booting) and want to be able to 
open applications (like deluge) on the work machine that require a X11 
server... I was thinking is there someway to direct a X11 app to target 
the X11 equiv of /dev/null ?

___
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: Kernel Compile issue

2009-03-02 Thread Paige Thompson
Mike,

I think you misread what I sent, however I noticed that you used
'KERNELCONF' instead of 'config' (as I noted) but I still get the same
error. I want to say the issue must have something to do with the fact that
there's no environment variables that specify the include directories. FWIW
here's what I have in my env:

[root@ /usr/src]# env
TERM=xterm
SHELL=/usr/local/bin/bash
SSH_CLIENT=192.168.23.1 2436 22
SSH_TTY=/dev/ttyp0
USER=erratic
ENV=/home/erratic/.shrc
PAGER=more
FTP_PASSIVE_MODE=YES
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/erratic/bin
MAIL=/var/mail/erratic
BLOCKSIZE=K
PWD=/usr/src
EDITOR=vi
SHLVL=1
HOME=/root
LOGNAME=erratic
SSH_CONNECTION=192.168.23.1 2436 192.168.23.249 22
_=/usr/bin/env
OLDPWD=/usr/obj
[root@ /usr/src]#


On Mon, Mar 2, 2009 at 1:14 AM, Michael Powell nightre...@verizon.netwrote:

 Paige Thompson wrote:

  Also I wanted to note how I got to this problem:
 
  [root@ /usr/src]# make buildkernel config=GENERIC 2 error.log
 
 [snip]

 cd /usr/obj and rm -rf usr before trying again. Then cd /usr/src and do:

 make buildkernel KERNCONF=nameofsomeconffile  another example:

 make buildkernel KERNCONF=GENERIC

 If you have an unadulterated GENERIC conf file present and you just issue
 make buildkernel by itself it will select GENERIC as default. Try correct
 procedure first, and hope there is no problem.

 -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

___
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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Olivier Nicole
Hi,

  Are you using properly crossed cables?
 Isnt it enough check for the  that two linux can ping each other..
 
Yes and no. You must used crossed Ethernet cable between your FreeBSD
bridge and each of your Linux boxes.

As someone suggested, what is ifconfig saying on the FreeBSD box? You
should see that both sk0 and sk1 have a status: active. Else it means
you have a cable problem.

An example of ifconfig for a bridge (FreeBSD 4.xx):

fxp0: flags=89c3UP,BROADCAST,RUNNING,NOARP,PROMISC,SIMPLEX,MULTICAST mtu 1500
ether 00:07:e9:xx:xx:xx
media: Ethernet autoselect (100baseTX full-duplex)
status: active
fxp1: flags=89c3UP,BROADCAST,RUNNING,NOARP,PROMISC,SIMPLEX,MULTICAST mtu 1500
ether 00:07:e9:yy:yy:yy
media: Ethernet autoselect (100baseTX full-duplex)
status: active

Once you make sure that both interfaces on your FreeBSD box are up and
running, you can procced to the next step:

  On the FreeBSD box=2C you can tcpdump(8) and see the packets moving:
  tcpdump -i sk0 and tcpdump -i sk1 and you will see the pick request
  and ping echo packets.
 it says arp: who has 192.168.0.4 tell 192.168.0.5

You'd need to give more information about your connection; something
like:

Linux 192.168.0.4 --- sk0 FreeBSD sk1 --- Linux 192.168.0.5

And you should also specify if ou where tcpdump'ing on interface sk0
or sk1. Once your bridge is working, you will get the same thing for
tcpdump on both interfaces.

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


Re: Kernel Compile issue

2009-03-02 Thread Polytropon
On Mon, 2 Mar 2009 01:28:59 -0800, Paige Thompson erra...@devel.ws wrote:
 Mike,
 
 I think you misread what I sent, however I noticed that you used
 'KERNELCONF' instead of 'config' (as I noted) but I still get the same
 error.

Correct is KERNCONF=name of config file as parameter for buildkernel
and installkernel targets.

Allthough the old way using config kernel  make depend  make
is still supported. Don't miss the make depend.



 I want to say the issue must have something to do with the fact that
 there's no environment variables that specify the include directories.

As far as I know, there are system defaults that apply.

When building from updated sources, the files within the source tree
are used (in /usr/src).

There's nothing that should be in the env output.

I'd suggest to follow the already given advice to work exactly
by manual, at least for the first time. Have a look at the
comments /usr/src/Makefile, they're explaining the most obvious
mistakes one could make.



-- 
Polytropon
From 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: Ports on Macbook

2009-03-02 Thread FBSD UG


On 1 mrt 2009, at 07:37, Charles Oppermann wrote:

That depends on where you are domiciled. Under certain scenarios,  
simply
open the box, or installing the software constitutes acceptance of  
the

EULA.


Yes I'm aware of that, but that kind of agreement isn't valid in  
Sweden.


That would be tantamount to allowing software piracy in Sweden.  The  
Mac OS X

license agreements are contained in a PDF file here:

http://images.apple.com/legal/sla/docs/macosx105.pdf

There is a Swedish language agreement for sales in Sweden.  Using on- 
line
translation tools, it appears to be similar to what's already been  
stated;
use of the software consistutes acceptance of the agreement.  If you  
do not
agree, you are requested to return the software.  Presumably, the  
retail
materials contain this agreement, and I'm sure there is digital copy  
that is

presented and must be agreed to before use.

I'm sure that Apple has very good lawyers who drafted the license  
agreements
and are aware of Swedish law.  While what you are doing may or may  
not be in
violation of any licenses, your position that clicking yes or no is  
not a

handshake or oral agreement acording to Swedish law seems dubious and
ill-advised.

Consider what you're suggesting:  If EULA's and license agreements  
simply

weren't valid in Sweden, then what would prevent massive piracy from
occuring?  I would assume that if license agreements in Sweden weren't
enforcable, someone would be setting up their own software copying  
business.


...and if that happened, I would expect software companies to change  
their

license agreements in order to prevent it.


If you are under 18 you can't make any
legally binding agreements without your legal guardians permission.


That might be true, but at least in the United States, parents or  
guardians

are usually held responsible.
___


it's probably why this is happening in Sweden:
http://www.ukfast.co.uk/internet-news/pirate-bay-court-case-starts.html
___
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: Kernel Compile issue

2009-03-02 Thread Paige Thompson
On Mon, Mar 2, 2009 at 2:43 AM, Paige Thompson erra...@devel.ws wrote:
 You're right, my source tree is incomplete:

 # pwd
 /usr/src/sys
 # cd sys
 sys: No such file or directory.
 #

 Thank you that helps a lot actually, it probably has something to do
 with the source archives that I downloaded not being extracted
 properly. I'm not a big fan of sysinstall, I prefer to work without
 it. You know the whole thing seems like its setup to try and force me
 to use sysinstall. Even the ftp client gives me a lot of flack about
 how I use mget (IE: mget ssys.* not being a valid way to just fetch
 all of the files) so of course i'm left to go through and fetch each
 of them individually :((

 and for whatever reason, Im not having any luck with ncftp which I'm
 sure I could figure it out but I really don't think that I should have
 to install an additional FTP client just so I can fetch the kernel
 source ._. it kind of negates the whole minimalist aspect of having
 multiple archive files in the first place.

 Am I right?




 On Mon, Mar 2, 2009 at 2:24 AM, Polytropon free...@edvax.de wrote:
 On Mon, 2 Mar 2009 01:59:43 -0800, Paige Thompson erra...@devel.ws wrote:
 I have followed the manual, line for line or I wouldn't have gotten
 this far. I'm sorry but

 # cat /cdrom/src/ssys.[a-d]* | tar -xzvf -
 # cat /cdrom/src/sbase.[a-d]* | tar -xzvf -

 isn't typical archiving practice by today's standards (geez was it
 ever?)

 I'd thought that you've simply used sysinstall to install the
 distribution src-all, would be much easier. :-)

 Maybe you can try this again, but prior to this try, be sure to
 eliminate everything that might be interfering:

        # rm -r /usr/src
        # rm -r /usr/obj



 As per your suggestion to check in the Makefile, I have found nothing
 that really eludes me as to why file cdefs.h actually does
 exist in /usr/include/sys yet the compiler does not see it probably
 because the compiler is not being given the correct include path or an
 include path at all for that matter.

 As I mentioned, I think the compile process first generates a
 subtree in /usr/obk according to /usr/src and uses this for the
 compile process. I'm not sure if the system files will then be
 looked at...


 Reiteration:

 make buildkernel KERNCONF=GENERIC fails due to the following:

 # head error.log
 /usr/src/sys/i386/i386/genassym.c:35:23: error: sys/cdefs.h: No such
 file or directory

 when viewing the code /usr/src/sys/i386/i386/genassym.c on line 35 I find:

 #include sys/cdefs.h

 (please note the following carefully)
 Note that sys/cdefs.h is enclosed in  as opposed to  quotations.
 In C this indicates that the header should be included from an include
 path that's passed as an argument to the compiler-- *how ever and
 where ever that is done is what I would like to know.*

 Exactly. While ... refers to $CWD, ... refers to the -I parameter
 of cc. This parameter is set by Makefile.

 Be sure that your sources are complete.



 Now furthermore, /usr/local/include has *nothing* and I'm almost
 willing to bet you anything that if I copied * from /usr/include to
 /usr/local/include that would fix the issue except I don't think
 that's how this was intended to work.

 No. /usr/local does ONLY contain things that do not belong to the
 operating system, such as things installed by ports or packages.

 We're talking about the operating system (and its kernel) itself,
 so we're completely outside of /usr/local.

 In such a situation, cdefs.h can be found in different places:

        % locate cdefs.h
        /usr/include/sys/cdefs.h
        /usr/obj/usr/src/tmp/usr/include/sys/cdefs.h
        /usr/src/sys/sys/cdefs.h
        /usr/src/usr.sbin/lpr/common_source/lp.cdefs.h

 The first one is the system one's. The second one belongs to the
 compiling process, generated by the sources. The third and forth
 one ARE the sources for this.



 Based on what I have read here:

 http://www.nabble.com/What-is-CPP%27s-real-default-include-path--td17057087.html
 (and from that please note:)

    GCC looks in several different places for headers.  On a normal Unix
    system, if you do not instruct it otherwise, it will look for headers
    requested with `#include FILE' in:
 
       /usr/local/include

 I came across this thread by googling: FreeBSD Include Path

 As I said, that is a Linux-ism. :-)

 For inclusion, first come the system's directories /usr/include, then
 the local additions /usr/local/include. The last ones are not of
 any value regarding the kernel and system compilation process.



 To be sure, ABSOLUTELY sure, use sysinstall to get the sources from
 the CD, deleting any previous existence of them. Then,

        # cd /usr/src
        # make buildkernel KERNCONF=GENERIC

 By the way, omitting KERNCONF loads GENERIC automatically.

 I think - and that's a quite wild guess - your problem is caused by
 incomplete sources.

 A final question: Are you using the sources from the CD as is
 (which release?) or 

Re: Kernel Compile issue

2009-03-02 Thread Paige Thompson
On Mon, Mar 2, 2009 at 2:44 AM, Paige Thompson erra...@devel.ws wrote:
 PS: it seems just straight up mget * works x.x
 k! satisfactory enough...


 On Mon, Mar 2, 2009 at 2:43 AM, Paige Thompson erra...@devel.ws wrote:
 You're right, my source tree is incomplete:

 # pwd
 /usr/src/sys
 # cd sys
 sys: No such file or directory.
 #

 Thank you that helps a lot actually, it probably has something to do
 with the source archives that I downloaded not being extracted
 properly. I'm not a big fan of sysinstall, I prefer to work without
 it. You know the whole thing seems like its setup to try and force me
 to use sysinstall. Even the ftp client gives me a lot of flack about
 how I use mget (IE: mget ssys.* not being a valid way to just fetch
 all of the files) so of course i'm left to go through and fetch each
 of them individually :((

 and for whatever reason, Im not having any luck with ncftp which I'm
 sure I could figure it out but I really don't think that I should have
 to install an additional FTP client just so I can fetch the kernel
 source ._. it kind of negates the whole minimalist aspect of having
 multiple archive files in the first place.

 Am I right?




 On Mon, Mar 2, 2009 at 2:24 AM, Polytropon free...@edvax.de wrote:
 On Mon, 2 Mar 2009 01:59:43 -0800, Paige Thompson erra...@devel.ws wrote:
 I have followed the manual, line for line or I wouldn't have gotten
 this far. I'm sorry but

 # cat /cdrom/src/ssys.[a-d]* | tar -xzvf -
 # cat /cdrom/src/sbase.[a-d]* | tar -xzvf -

 isn't typical archiving practice by today's standards (geez was it
 ever?)

 I'd thought that you've simply used sysinstall to install the
 distribution src-all, would be much easier. :-)

 Maybe you can try this again, but prior to this try, be sure to
 eliminate everything that might be interfering:

        # rm -r /usr/src
        # rm -r /usr/obj



 As per your suggestion to check in the Makefile, I have found nothing
 that really eludes me as to why file cdefs.h actually does
 exist in /usr/include/sys yet the compiler does not see it probably
 because the compiler is not being given the correct include path or an
 include path at all for that matter.

 As I mentioned, I think the compile process first generates a
 subtree in /usr/obk according to /usr/src and uses this for the
 compile process. I'm not sure if the system files will then be
 looked at...


 Reiteration:

 make buildkernel KERNCONF=GENERIC fails due to the following:

 # head error.log
 /usr/src/sys/i386/i386/genassym.c:35:23: error: sys/cdefs.h: No such
 file or directory

 when viewing the code /usr/src/sys/i386/i386/genassym.c on line 35 I find:

 #include sys/cdefs.h

 (please note the following carefully)
 Note that sys/cdefs.h is enclosed in  as opposed to  quotations.
 In C this indicates that the header should be included from an include
 path that's passed as an argument to the compiler-- *how ever and
 where ever that is done is what I would like to know.*

 Exactly. While ... refers to $CWD, ... refers to the -I parameter
 of cc. This parameter is set by Makefile.

 Be sure that your sources are complete.



 Now furthermore, /usr/local/include has *nothing* and I'm almost
 willing to bet you anything that if I copied * from /usr/include to
 /usr/local/include that would fix the issue except I don't think
 that's how this was intended to work.

 No. /usr/local does ONLY contain things that do not belong to the
 operating system, such as things installed by ports or packages.

 We're talking about the operating system (and its kernel) itself,
 so we're completely outside of /usr/local.

 In such a situation, cdefs.h can be found in different places:

        % locate cdefs.h
        /usr/include/sys/cdefs.h
        /usr/obj/usr/src/tmp/usr/include/sys/cdefs.h
        /usr/src/sys/sys/cdefs.h
        /usr/src/usr.sbin/lpr/common_source/lp.cdefs.h

 The first one is the system one's. The second one belongs to the
 compiling process, generated by the sources. The third and forth
 one ARE the sources for this.



 Based on what I have read here:

 http://www.nabble.com/What-is-CPP%27s-real-default-include-path--td17057087.html
 (and from that please note:)

    GCC looks in several different places for headers.  On a normal Unix
    system, if you do not instruct it otherwise, it will look for headers
    requested with `#include FILE' in:
 
       /usr/local/include

 I came across this thread by googling: FreeBSD Include Path

 As I said, that is a Linux-ism. :-)

 For inclusion, first come the system's directories /usr/include, then
 the local additions /usr/local/include. The last ones are not of
 any value regarding the kernel and system compilation process.



 To be sure, ABSOLUTELY sure, use sysinstall to get the sources from
 the CD, deleting any previous existence of them. Then,

        # cd /usr/src
        # make buildkernel KERNCONF=GENERIC

 By the way, omitting KERNCONF loads GENERIC automatically.

 I think - and that's a 

Re: Kernel Compile issue

2009-03-02 Thread Polytropon
On Mon, 2 Mar 2009 02:43:01 -0800, Paige Thompson erra...@devel.ws wrote:
 You're right, my source tree is incomplete:
 
 # pwd
 /usr/src/sys
 # cd sys
 sys: No such file or directory.
 #

I had a similar problem some years ago and couldn't find out what
the reason was - the magic of this mailing list didn't open up to
me that time yet. :-)



 Thank you that helps a lot actually, it probably has something to do
 with the source archives that I downloaded not being extracted
 properly.

This should be followed by an error message, either by ftp for
an incomplete archive or by tar for a defective (and also incomplete)
one.



 I'm not a big fan of sysinstall, I prefer to work without
 it.

From my experience, it's quite handy at install time. This usually
is the time when I get the sources from the CD. After that, I don't
use sysinstall anymore. FreeBSD brings excellent tools for the
system administration as well as for installing software. When
sources and ports tree are in place, I usually update them using
cvsup (old fashioned, I know). Then everything should be up to
date, ready for a make run in /usr/src.



 You know the whole thing seems like its setup to try and force me
 to use sysinstall.

In any case, you should get proper results without using sysinstall.
All the tools are there.



 Even the ftp client gives me a lot of flack about
 how I use mget (IE: mget ssys.* not being a valid way to just fetch
 all of the files) so of course i'm left to go through and fetch each
 of them individually :((
+
On Mon, 2 Mar 2009 02:44:27 -0800, Paige Thompson erra...@devel.ws wrote:
 PS: it seems just straight up mget * works x.x
 k! satisfactory enough...

Don't forget to unset prompt. :-)

But as I said, I prefer getting the sources from the CD (is much
faster).



 and for whatever reason, Im not having any luck with ncftp which I'm
 sure I could figure it out but I really don't think that I should have
 to install an additional FTP client just so I can fetch the kernel
 source ._. 

It's FreeBSD, you don't have to do such stupid things. :-) You
even don't need to install cvsup in order to update the sources,
FreeBSD brings its own csup today.



 it kind of negates the whole minimalist aspect of having
 multiple archive files in the first place.
 
 Am I right?

I'm not sure why the archive is split into multiple volumes...
maybe historical reasons?




-- 
Polytropon
From 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


FreeBSD and Xen in paravirtualized mode

2009-03-02 Thread Redd Vinylene
Why doesn't FreeBSD support Xen in paravirtualized mode? Imagine the
increase in ISPs being able to offer FreeBSD to its customers.

I just got my heart broken today:
http://forum.slicehost.com/comments.php?DiscussionID=3191/

-- 
http://www.myspace.com/soultanisyourfriend
___
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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Faizan ul haq Muhammad




 


 Date: Mon, 2 Mar 2009 16:35:33 +0700
 From: o...@cs.ait.ac.th
 To: faiz...@hotmail.com
 CC: fbsd.questi...@rachie.is-a-geek.net; freebsd-questions@freebsd.org; 
 fb...@a1poweruser.com
 Subject: Re: Bridging-(How to test and verify that bridging is enabled)
 
 Hi,
 
   Are you using properly crossed cables?
  Isnt it enough check for the that two linux can ping each other..
 
 Yes and no. You must used crossed Ethernet cable between your FreeBSD
 bridge and each of your Linux boxes.
Frankly i am not sure about the cables type but they works PC to PC 
connectivity. 
 As someone suggested, what is ifconfig saying on the FreeBSD box? You
 should see that both sk0 and sk1 have a status: active. Else it means
 you have a cable problem.

sk0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 
1500

options=bRXCSUM, TXCSUM, VLAN_MTU
 ether 00:0a:5e:1a:69:25
 media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, flag2)
 status: active

 

 

sk1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 
1500

options=bRXCSUM, TXCSUM, VLAN_MTU
 ether 00:0a:5e:1a:67:ee
 media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, flag2)
 status: active

 

here is the ifconfig output for the bridge interface:

bridge0: flags=8943UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500

options=bRXCSUM, TXCSUM, VLAN_MTU
 ether 0a:54:d7:7e:aa:66

inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255

id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15

maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200

root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0



 
 An example of ifconfig for a bridge (FreeBSD 4.xx):
 
 fxp0: flags=89c3UP,BROADCAST,RUNNING,NOARP,PROMISC,SIMPLEX,MULTICAST mtu 
 1500
 ether 00:07:e9:xx:xx:xx
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 fxp1: flags=89c3UP,BROADCAST,RUNNING,NOARP,PROMISC,SIMPLEX,MULTICAST mtu 
 1500
 ether 00:07:e9:yy:yy:yy
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 
 Once you make sure that both interfaces on your FreeBSD box are up and
 running, you can procced to the next step:
 
   On the FreeBSD box=2C you can tcpdump(8) and see the packets moving:
   tcpdump -i sk0 and tcpdump -i sk1 and you will see the pick request
   and ping echo packets.
  it says arp: who has 192.168.0.4 tell 192.168.0.5
 
 You'd need to give more information about your connection; something
 like:
 
 Linux 192.168.0.4 --- sk0 FreeBSD sk1 --- Linux 192.168.0.5
 
 And you should also specify if ou where tcpdump'ing on interface sk0
 or sk1. Once your bridge is working, you will get the same thing for
 tcpdump on both interfaces.
ok here is the detail:

 

 Linux 192.168.0.5 --- sk0 FreeBSD sk1 --- Linux 192.168.0.4

ping from 192.168.0.5 to 192.168.0.4

tcpdump (on freeBSD) tcpdump -i sk0  RESULT arp: who has 192.168.0.4 tell 
192.168.0.5


ping from 192.168.0.4 to 192.168.0.5

tcpdump (on freeBSD) tcpdump -i sk1  RESULT arp: who has 192.168.0.5 tell 
192.168.0.4

tcpdump -i bridge0 gives nothing...
 Olivier


_
Windows Live™ Groups: Create an online spot for your favorite groups to meet.
http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009___
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: Ports on Macbook

2009-03-02 Thread Julian Wissmann

Oh, that didn't go to the list, did it.
I should actually read where I send stuff to, well, anyway.

Suse was bought by Novell a while back as you probably know, but as  
far as I know the Suse team still is located in Nuernberg over here in  
Germany.

They're programmers/geeks whichever you prefer to call it, not lawyers.
So chances are they didn't know about this either when they started  
out, but considering that Yast was closed source for a while they  
probably found out soon.



Am 02.03.2009 um 09:28 schrieb Bernt Hansson:


Julian Wissmann skrev:

An EULA actually in nearly all European Countries and probably most
other countries in the World is not binding.


That's my point. An EULA is just, that. An EULA.


Even in the US it is not
quite clear if an EULA is a valid license agreement.


Can't comment on that.


Also EULAs and
many Licenses actually only apply to US Law, so basically they're not
worth anything anywhere else.


Yes. US law apply to us only.


You couldn't enforce a GPL in Germany or
some other european countries for example, because it is built atop
another legal system with different ideas of how things work.


Interesting! Suse comes to mind, but is suse linux still based in  
germany?



Same
thing applies to EULAs. I read a very interesting article on German  
iX

magazine recently wich was covering this. Don't have access to it
right now though cause I'm on a trip home, so I can't really say much
more about it, but if you want specific details I can post them in a
bout a week.


Take your time. This kind of discussion's come and go.





Am 28.02.2009 um 22:29 schrieb Bernt Hansson:


Chris Rees skrev:

2009/2/28 Bernt Hansson be...@bah.homeip.net:

Lord Blackadder skrev:

Bernt Hansson wrote:

Sean Cavanaugh skrev:

I'm sorry to disappoint you, Bernt, but under Swedish law any
kind of
agreement is legally binding. Even just a handshake.

Yes. But clicking yes or no is not a handshake or oral agreement
acording to Swedish law.



Again, back it up? You're just expecting us to believe your
interpretation of the law.

Who's interpretation are you in comfort with? Your own? Sombody
else, a
lawyer? A pornstar?
___
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







--
Varning! E-post till och från Sverige, eller som passerar servrar i
Sverige, avlyssnas av Försvarets Radioanstalt, FRA.

WARNING! E-mail to and from Sweden, or via servers in Sweden, is
monitored by the National Defence Radio Establishment.


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


Re: FreeBSD and Xen in paravirtualized mode

2009-03-02 Thread Ivan Voras
Redd Vinylene wrote:
 Why doesn't FreeBSD support Xen in paravirtualized mode? Imagine the
 increase in ISPs being able to offer FreeBSD to its customers.
 
 I just got my heart broken today:
 http://forum.slicehost.com/comments.php?DiscussionID=3191/

Perhaps you could help fund the development of FreeBSD support for Xen?

AFAIK lack of funding is what's keeping the development slow, though it
does go on: http://wiki.freebsd.org/FreeBSD/Xen




signature.asc
Description: OpenPGP digital signature


Re: FreeBSD and Xen in paravirtualized mode

2009-03-02 Thread Outback Dingo
see http://www.rootbsd.net   slicehost is uhmmm well i wount comment.

On Mon, Mar 2, 2009 at 7:52 PM, Ivan Voras ivo...@freebsd.org wrote:

 Redd Vinylene wrote:
  Why doesn't FreeBSD support Xen in paravirtualized mode? Imagine the
  increase in ISPs being able to offer FreeBSD to its customers.
 
  I just got my heart broken today:
  http://forum.slicehost.com/comments.php?DiscussionID=3191/

 Perhaps you could help fund the development of FreeBSD support for Xen?

 AFAIK lack of funding is what's keeping the development slow, though it
 does go on: http://wiki.freebsd.org/FreeBSD/Xen



___
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: ata-raid.c patch for ICH7 RAID1

2009-03-02 Thread Omer Faruk Sen
I can't actually apply this patch to FreeBSD 6.3-RELEASE. It seems
ataraid is something not to be used in FreeBSD so I have started to
use gmirror instead. Only downside of it is there are 2 disks shown in
boot loader not one so if F1 (first disk goes) goes you have to
manually select other disk just for one time.

On Sun, Mar 1, 2009 at 8:59 PM, Tamouh Hakmi ha...@rogers.com wrote:
 Hi,

 Has anyone had experience applying this patch to their FreeBSD 6.x setup?

 http://www.nabble.com/Vital-Patches-for-ataraid-with-Intel-Matrix-RAID-(ICH7)-td16179257.html

 I've couple of machines using ICH8/ICH9 which seem to exhibit the same 
 problems and would be interested in applying the patch. But want to avoid any 
 complications that may result from it.

 Any feedback is appreciated, do you know if FBSD 6.4 has the patch already 
 implemented?

 Thanks,

 Tamouh Hakmi


 ___
 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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Adam Vande More

Faizan ul haq Muhammad wrote:



 



  

Date: Mon, 2 Mar 2009 16:35:33 +0700
From: o...@cs.ait.ac.th
To: faiz...@hotmail.com
CC: fbsd.questi...@rachie.is-a-geek.net; freebsd-questions@freebsd.org; 
fb...@a1poweruser.com
Subject: Re: Bridging-(How to test and verify that bridging is enabled)

Hi,



Are you using properly crossed cables?


Isnt it enough check for the that two linux can ping each other..
  

Yes and no. You must used crossed Ethernet cable between your FreeBSD
bridge and each of your Linux boxes.

Frankly i am not sure about the cables type but they works PC to PC connectivity. 
  

As someone suggested, what is ifconfig saying on the FreeBSD box? You
should see that both sk0 and sk1 have a status: active. Else it means
you have a cable problem.



sk0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 
1500

options=bRXCSUM, TXCSUM, VLAN_MTU
 ether 00:0a:5e:1a:69:25
 media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, flag2)
 status: active

 

 


sk1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 
1500

options=bRXCSUM, TXCSUM, VLAN_MTU
 ether 00:0a:5e:1a:67:ee
 media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, flag2)
 status: active

 


here is the ifconfig output for the bridge interface:

bridge0: flags=8943UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500

options=bRXCSUM, TXCSUM, VLAN_MTU
 ether 0a:54:d7:7e:aa:66

inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255

id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15

maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200

root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
  

I think ifconfig bridge0 should list member interfaces.  Did you add them?
___
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: SpamAssassin/Perl eating enormous amounts of memory?

2009-03-02 Thread Mikhail Goriachev
Andrew Moran wrote:

[...]

 Has anyone heard of this?   Or any pointers on what I can do to figure  
 out what is causing it?
 
 Your advice is much appreciated.

As an alternative:

You could try mail/mimedefang. It calls spamassassin to evaluate an
e-mail but without having it running all the time. This can solve your
problem of running out of memory.

For instance, sendmail could be the first line of defence with its own
rules (rDNS, noMX, RBLs and what not). Then mimedefang with a set of
rules to further reject dodgy e-mails (helo/ehlo, spoofings, SPF and so
on). After that, spamassassin comes into play (controlled by
mimedefang), but only at the end as a last line of defence. By the time
it gets to the end, a lion's share has already been rejected and that
means less work for spamassassin.


I hope this helps.


Regards,
Mikhail.
___
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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Faizan ul haq Muhammad





 Date: Mon, 2 Mar 2009 07:48:40 -0600
 From: amvandem...@gmail.com
 CC: freebsd-questions@freebsd.org
 Subject: Re: Bridging-(How to test and verify that bridging is enabled)
 
 Faizan ul haq Muhammad wrote:
 
 
   
 
 

  Date: Mon, 2 Mar 2009 16:35:33 +0700
  From: o...@cs.ait.ac.th
  To: faiz...@hotmail.com
  CC: fbsd.questi...@rachie.is-a-geek.net; freebsd-questions@freebsd.org; 
  fb...@a1poweruser.com
  Subject: Re: Bridging-(How to test and verify that bridging is enabled)
 
  Hi,
 
  
  Are you using properly crossed cables?
  
  Isnt it enough check for the that two linux can ping each other..

  Yes and no. You must used crossed Ethernet cable between your FreeBSD
  bridge and each of your Linux boxes.
  
  Frankly i am not sure about the cables type but they works PC to PC 
  connectivity. 

  As someone suggested, what is ifconfig saying on the FreeBSD box? You
  should see that both sk0 and sk1 have a status: active. Else it means
  you have a cable problem.
  
 
  sk0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 
  mtu 1500
 
  options=bRXCSUM, TXCSUM, VLAN_MTU
   ether 00:0a:5e:1a:69:25
   media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, flag2)
   status: active
 
   
 
   
 
  sk1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 
  mtu 1500
 
  options=bRXCSUM, TXCSUM, VLAN_MTU
   ether 00:0a:5e:1a:67:ee
   media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, flag2)
   status: active
 
   
 
  here is the ifconfig output for the bridge interface:
 
  bridge0: flags=8943UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 
  1500
 
  options=bRXCSUM, TXCSUM, VLAN_MTU
   ether 0a:54:d7:7e:aa:66
 
  inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
 
  id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15
 
  maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
 
  root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0

 I think ifconfig bridge0 should list member interfaces.  Did you add them?

ifconfig bridge0 addm sk0 addm sk1 up
ifconfig sk0 up
ifconfig sk1 up

this configuration exists in rc.conf


 ___
 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

_
Windows Live™: Life without walls.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009___
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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Adam Vande More

Faizan ul haq Muhammad wrote:





 Date: Mon, 2 Mar 2009 07:48:40 -0600
 From: amvandem...@gmail.com
 CC: freebsd-questions@freebsd.org
 Subject: Re: Bridging-(How to test and verify that bridging is enabled)

 Faizan ul haq Muhammad wrote:
 
 
 
 
 
 
  Date: Mon, 2 Mar 2009 16:35:33 +0700
  From: o...@cs.ait.ac.th
  To: faiz...@hotmail.com
  CC: fbsd.questi...@rachie.is-a-geek.net; 
freebsd-questions@freebsd.org; fb...@a1poweruser.com
  Subject: Re: Bridging-(How to test and verify that bridging is 
enabled)

 
  Hi,
 
 
  Are you using properly crossed cables?
 
  Isnt it enough check for the that two linux can ping each other..
 
  Yes and no. You must used crossed Ethernet cable between your FreeBSD
  bridge and each of your Linux boxes.
 
  Frankly i am not sure about the cables type but they works PC to 
PC connectivity.

 
  As someone suggested, what is ifconfig saying on the FreeBSD box? You
  should see that both sk0 and sk1 have a status: active. Else it means
  you have a cable problem.
 
 
  sk0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST 
metric 0 mtu 1500

 
  options=bRXCSUM, TXCSUM, VLAN_MTU
  ether 00:0a:5e:1a:69:25
  media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, 
flag2)

  status: active
 
 
 
 
 
  sk1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST 
metric 0 mtu 1500

 
  options=bRXCSUM, TXCSUM, VLAN_MTU
  ether 00:0a:5e:1a:67:ee
  media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, 
flag2)

  status: active
 
 
 
  here is the ifconfig output for the bridge interface:
 
  bridge0: flags=8943UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 
0 mtu 1500

 
  options=bRXCSUM, TXCSUM, VLAN_MTU
  ether 0a:54:d7:7e:aa:66
 
  inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
 
  id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15
 
  maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
 
  root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
 
 I think ifconfig bridge0 should list member interfaces. Did you add 
them?


ifconfig bridge0 addm sk0 addm sk1 up
ifconfig sk0 up
ifconfig sk1 up

this configuration exists in rc.conf

  

if ifconfig doesn't print out something like this:

bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 
1500

   ether 4a:be:26:65:75:06
   id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
   maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
   root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
   member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
   ifmaxaddr 0 port 1 priority 128 path cost 200

   member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
   ifmaxaddr 0 port 2 priority 128 path cost 20

Then you need to add the member interfaces.
___
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


read BSD format disk from Mac OSX

2009-03-02 Thread Tsu-Fan Cheng
Hi all,
I format a ext disk (UFS) and transfer some files into it, hand it
over to my friend who has a macbook. He complained the macbook can't
read it. I don't have a mac on hand, I wonder if there is any utility
that will help a mac to read a BSD, thanks!!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Faizan ul haq Muhammad





 Date: Mon, 2 Mar 2009 08:05:09 -0600
 From: amvandem...@gmail.com
 CC: freebsd-questions@freebsd.org
 Subject: Re: Bridging-(How to test and verify that bridging is enabled)
 
 Faizan ul haq Muhammad wrote:
 
 
 
 
   Date: Mon, 2 Mar 2009 07:48:40 -0600
   From: amvandem...@gmail.com
   CC: freebsd-questions@freebsd.org
   Subject: Re: Bridging-(How to test and verify that bridging is enabled)
  
   Faizan ul haq Muhammad wrote:
   
   
   
   
   
   
Date: Mon, 2 Mar 2009 16:35:33 +0700
From: o...@cs.ait.ac.th
To: faiz...@hotmail.com
CC: fbsd.questi...@rachie.is-a-geek.net; 
  freebsd-questions@freebsd.org; fb...@a1poweruser.com
Subject: Re: Bridging-(How to test and verify that bridging is 
  enabled)
   
Hi,
   
   
Are you using properly crossed cables?
   
Isnt it enough check for the that two linux can ping each other..
   
Yes and no. You must used crossed Ethernet cable between your FreeBSD
bridge and each of your Linux boxes.
   
Frankly i am not sure about the cables type but they works PC to 
  PC connectivity.
   
As someone suggested, what is ifconfig saying on the FreeBSD box? You
should see that both sk0 and sk1 have a status: active. Else it means
you have a cable problem.
   
   
sk0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST 
  metric 0 mtu 1500
   
options=bRXCSUM, TXCSUM, VLAN_MTU
ether 00:0a:5e:1a:69:25
media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, 
  flag2)
status: active
   
   
   
   
   
sk1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST 
  metric 0 mtu 1500
   
options=bRXCSUM, TXCSUM, VLAN_MTU
ether 00:0a:5e:1a:67:ee
media: Ethernet autoselect (1000baseTX full-duplex, flag0, flag1, 
  flag2)
status: active
   
   
   
here is the ifconfig output for the bridge interface:
   
bridge0: flags=8943UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 
  0 mtu 1500
   
options=bRXCSUM, TXCSUM, VLAN_MTU
ether 0a:54:d7:7e:aa:66
   
inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
   
id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15
   
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
   
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
   
   I think ifconfig bridge0 should list member interfaces. Did you add 
  them?
 
  ifconfig bridge0 addm sk0 addm sk1 up
  ifconfig sk0 up
  ifconfig sk1 up
 
  this configuration exists in rc.conf
 

 if ifconfig doesn't print out something like this:
 
 bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 
 1500
 ether 4a:be:26:65:75:06
 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
 maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
 member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 1 priority 128 path cost 200
 member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 2 priority 128 path cost 20
 
 Then you need to add the member interfaces.

i noted that, following information is missing
 member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 1 priority 128 path cost 200
 member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 2 priority 128 path cost 20

Now i need to know how to add the interfaces..?
Any command do u knw and can help me..?

Regards!!!


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

_
Windows Live™: Life without walls.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009___
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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Adam Vande More

Faizan ul haq Muhammad wrote:





 Date: Mon, 2 Mar 2009 08:05:09 -0600
 From: amvandem...@gmail.com
 CC: freebsd-questions@freebsd.org
 Subject: Re: Bridging-(How to test and verify that bridging is enabled)

 Faizan ul haq Muhammad wrote:
 
 
 
 
   Date: Mon, 2 Mar 2009 07:48:40 -0600
   From: amvandem...@gmail.com
   CC: freebsd-questions@freebsd.org
   Subject: Re: Bridging-(How to test and verify that bridging is 
enabled)

  
   Faizan ul haq Muhammad wrote:
   
   
   
   
   
   
Date: Mon, 2 Mar 2009 16:35:33 +0700
From: o...@cs.ait.ac.th
To: faiz...@hotmail.com
CC: fbsd.questi...@rachie.is-a-geek.net;
  freebsd-questions@freebsd.org; fb...@a1poweruser.com
Subject: Re: Bridging-(How to test and verify that bridging is
  enabled)
   
Hi,
   
   
Are you using properly crossed cables?
   
Isnt it enough check for the that two linux can ping each 
other..

   
Yes and no. You must used crossed Ethernet cable between your 
FreeBSD

bridge and each of your Linux boxes.
   
Frankly i am not sure about the cables type but they works PC to
  PC connectivity.
   
As someone suggested, what is ifconfig saying on the FreeBSD 
box? You
should see that both sk0 and sk1 have a status: active. Else 
it means

you have a cable problem.
   
   
sk0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST
  metric 0 mtu 1500
   
options=bRXCSUM, TXCSUM, VLAN_MTU
ether 00:0a:5e:1a:69:25
media: Ethernet autoselect (1000baseTX full-duplex, flag0, 
flag1,

  flag2)
status: active
   
   
   
   
   
sk1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST
  metric 0 mtu 1500
   
options=bRXCSUM, TXCSUM, VLAN_MTU
ether 00:0a:5e:1a:67:ee
media: Ethernet autoselect (1000baseTX full-duplex, flag0, 
flag1,

  flag2)
status: active
   
   
   
here is the ifconfig output for the bridge interface:
   
bridge0: flags=8943UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST 
metric

  0 mtu 1500
   
options=bRXCSUM, TXCSUM, VLAN_MTU
ether 0a:54:d7:7e:aa:66
   
inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
   
id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15
   
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
   
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
   
   I think ifconfig bridge0 should list member interfaces. Did you add
  them?
 
  ifconfig bridge0 addm sk0 addm sk1 up
  ifconfig sk0 up
  ifconfig sk1 up
 
  this configuration exists in rc.conf
 
 
 if ifconfig doesn't print out something like this:

 bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 
mtu

 1500
 ether 4a:be:26:65:75:06
 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
 maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
 member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 1 priority 128 path cost 200
 member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 2 priority 128 path cost 20

 Then you need to add the member interfaces.

i noted that, following information is missing
 member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 1 priority 128 path cost 200
 member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
 ifmaxaddr 0 port 2 priority 128 path cost 20

Now i need to know how to add the interfaces..?
Any command do u knw and can help me..?

Regards!!!

http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009

ifconfig bridge0 addm sk0 addm sk1 up
ifconfig sk0 up
ifconfig sk1 up

___
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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Faizan ul haq Muhammad







 Date: Mon, 2 Mar 2009 08:28:01 -0600
 From: amvandem...@gmail.com
 CC: freebsd-questions@freebsd.org
 Subject: Re: Bridging-(How to test and verify that bridging is enabled)
 
 Faizan ul haq Muhammad wrote:
 
 
 
 
   Date: Mon, 2 Mar 2009 08:05:09 -0600
   From: amvandem...@gmail.com
   CC: freebsd-questions@freebsd.org
   Subject: Re: Bridging-(How to test and verify that bridging is enabled)
  
   Faizan ul haq Muhammad wrote:
   
   
   
   
 Date: Mon, 2 Mar 2009 07:48:40 -0600
 From: amvandem...@gmail.com
 CC: freebsd-questions@freebsd.org
 Subject: Re: Bridging-(How to test and verify that bridging is 
  enabled)

 Faizan ul haq Muhammad wrote:
 
 
 
 
 
 
  Date: Mon, 2 Mar 2009 16:35:33 +0700
  From: o...@cs.ait.ac.th
  To: faiz...@hotmail.com
  CC: fbsd.questi...@rachie.is-a-geek.net;
freebsd-questions@freebsd.org; fb...@a1poweruser.com
  Subject: Re: Bridging-(How to test and verify that bridging is
enabled)
 
  Hi,
 
 
  Are you using properly crossed cables?
 
  Isnt it enough check for the that two linux can ping each 
  other..
 
  Yes and no. You must used crossed Ethernet cable between your 
  FreeBSD
  bridge and each of your Linux boxes.
 
  Frankly i am not sure about the cables type but they works PC to
PC connectivity.
 
  As someone suggested, what is ifconfig saying on the FreeBSD 
  box? You
  should see that both sk0 and sk1 have a status: active. Else 
  it means
  you have a cable problem.
 
 
  sk0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST
metric 0 mtu 1500
 
  options=bRXCSUM, TXCSUM, VLAN_MTU
  ether 00:0a:5e:1a:69:25
  media: Ethernet autoselect (1000baseTX full-duplex, flag0, 
  flag1,
flag2)
  status: active
 
 
 
 
 
  sk1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST
metric 0 mtu 1500
 
  options=bRXCSUM, TXCSUM, VLAN_MTU
  ether 00:0a:5e:1a:67:ee
  media: Ethernet autoselect (1000baseTX full-duplex, flag0, 
  flag1,
flag2)
  status: active
 
 
 
  here is the ifconfig output for the bridge interface:
 
  bridge0: flags=8943UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST 
  metric
0 mtu 1500
 
  options=bRXCSUM, TXCSUM, VLAN_MTU
  ether 0a:54:d7:7e:aa:66
 
  inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
 
  id 00:00:00:00:00:00 priortiy 32768 hellotime 2 fwddelay 15
 
  maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
 
  root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
 
 I think ifconfig bridge0 should list member interfaces. Did you add
them?
   
ifconfig bridge0 addm sk0 addm sk1 up
ifconfig sk0 up
ifconfig sk1 up
   
this configuration exists in rc.conf
   
   
   if ifconfig doesn't print out something like this:
  
   bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 
  mtu
   1500
   ether 4a:be:26:65:75:06
   id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
   maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
   root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
   member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
   ifmaxaddr 0 port 1 priority 128 path cost 200
   member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
   ifmaxaddr 0 port 2 priority 128 path cost 20
  
   Then you need to add the member interfaces.
 
  i noted that, following information is missing
   member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
   ifmaxaddr 0 port 1 priority 128 path cost 200
   member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
   ifmaxaddr 0 port 2 priority 128 path cost 20
 
  Now i need to know how to add the interfaces..?
  Any command do u knw and can help me..?
 
  Regards!!!
 
  http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009
 ifconfig bridge0 addm sk0 addm sk1 up
 ifconfig sk0 up
 ifconfig sk1 up

Thanks a lot dear..
it worked. but i m still confused that i have the alternative configuration in 
rc.conf as per guideline here on this page:
http://www.freebsd.org/doc/en/books/handbook/network-bridging.html
it should have worked, but it did not. and here with these commands, it is 
working.. I am able to get reply to ping

Thanks a lot
/Faizan
 
 ___
 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

_
Windows Live™ Contacts: Organize your contact list. 
http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009___

Re: read BSD format disk from Mac OSX

2009-03-02 Thread David Kelly
On Mon, Mar 02, 2009 at 09:16:02AM -0500, Tsu-Fan Cheng wrote:
 Hi all,
 I format a ext disk (UFS) and transfer some files into it, hand it
 over to my friend who has a macbook. He complained the macbook can't
 read it. I don't have a mac on hand, I wonder if there is any utility
 that will help a mac to read a BSD, thanks!!

The easiest way to do what you are attempting is to format the disk FAT.
Then to preserve file attributes write your files in a tar archive.

MacOS X knows UFS but might not know how to decipher a FreeBSD disk
label. I haven't honestly tried. What I did do once was move a couple of
drives previously used as a vinum striped RAID to MacOS X. Was
frustrated that the MacOS Drive Utility would not allow me to create
another striped volume on those drives. What I found out was that the
drives had a Microsoft compatible disk label written by FreeBSD which
MacOS was happily honoring. Would happily put an HFS+ partition on the
drives. But MacOS X RAID had to be established at a lower level using a
Macintosh disk label.

-- 
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.
___
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


port / portupgrade hangs

2009-03-02 Thread Pieter Donche

Sometimes (not often) when installing ports from the ports collection or
upgrading ports (via portupgrade -R) when fetching some needed tar.gz 
file, the fetch hangs, just like now:


= rdiff-backup-1.2.6.tar.gz doesn't seem to exist in 
/usr/ports/distfiles/.
= Attempting to fetch from 
http://download.savannah.gnu.org/releases/rdiff-backup/.
fetch: 
http://download.savannah.gnu.org/releases/rdiff-backup/rdiff-backup-1.2.6.tar.gz: 
Moved Temporarily
= Attempting to fetch from 
http://ftp.cc.uoc.gr/mirrors/nongnu.org/rdiff-backup/.

rdiff-backup-1.2.6.tar.gz  43% of  191 kB  107 kBps

This is now immobile for over an hour ...

Up to now when such a hang occured, I just waited and waited and 
eventually it would continue and finish the job.


But, is there a safe way to do a retry?
I dare not just do a Ctrl-C and issue
# portupgrade -R rdiff-backup
again, since I have no no clue what could go wrong if one does that ...

Or is it save to do Ctrl-C and try again?
___
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 repeat playing mp3 with mpg123

2009-03-02 Thread lacalling
Since mpg123 does not support repeat model, i tried to write a script to
play mp3 repeatedly.

I tried bash like this
  for((;;))
  do
   mpg123 [mp3] 
 done
but it keeps running new mpg123 in background .

but mpg123 [mp3]  in foreground cant be terminated by control C

Could anyone provide more ideas.
thank you.
___
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: port / portupgrade hangs

2009-03-02 Thread Kent Stewart
On Monday 02 March 2009 06:54:21 am Pieter Donche wrote:
 Sometimes (not often) when installing ports from the ports collection or
 upgrading ports (via portupgrade -R) when fetching some needed tar.gz
 file, the fetch hangs, just like now:

 = rdiff-backup-1.2.6.tar.gz doesn't seem to exist in
 /usr/ports/distfiles/.
 = Attempting to fetch from
 http://download.savannah.gnu.org/releases/rdiff-backup/.
 fetch:
 http://download.savannah.gnu.org/releases/rdiff-backup/rdiff-backup-1.2.6.t
ar.gz: Moved Temporarily
 = Attempting to fetch from
 http://ftp.cc.uoc.gr/mirrors/nongnu.org/rdiff-backup/.
 rdiff-backup-1.2.6.tar.gz  43% of  191 kB  107 kBps

 This is now immobile for over an hour ...

 Up to now when such a hang occured, I just waited and waited and
 eventually it would continue and finish the job.

 But, is there a safe way to do a retry?
 I dare not just do a Ctrl-C and issue
 # portupgrade -R rdiff-backup
 again, since I have no no clue what could go wrong if one does that ...

 Or is it save to do Ctrl-C and try again?

It should be safe to do the Ctrl-c. You are doing a fetch. What can go wrong? 
If you only have a partial distfile, and portupgrade can't handle that, at 
the worst, you cd /usr/ports/distfiles, remove the partial file, and try 
again. Things only get messy if you kill a job during an install. Since 
nothing has been added to the port database, you can probably just install it 
again.

I did a portupgrade -FN rdiff-backup-1.2.6,1 and was able to download the 
distfile. I only saw 18KBps, which I assume means there are a other people 
doing a fetch from that site.

Kent
-- 
kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html

___
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: rc.conf and starting scripts

2009-03-02 Thread Jerry McAllister
On Sun, Mar 01, 2009 at 07:14:17PM -0800, gahn wrote:

 
 Hi all:
 
 I have some starting scripts under some other directories other 
 than /etc/rc.d. How could I utilize the rc.conf file to start them 
 when the system boots up?
 
 The default location for rc.conf is /etc/rc.d only and the 
 knob local_startup=/usr/local/etc/rc.d doesn't seem to be working 
 for me for some reasons

The way the question is put implies some possible misunderstanding
about how rc.conf works.   /etc/rc.conf itself is not executed.  It
is read up by the various scripts in etc/rc.d and /usr/local/etc/rc.d
to get values for constants that are defined there.   Some of those
constants are things like  linux_enable=YES or lpd_enable=YES 
or  hostname=fred.cheeze.org  and many other possible things.   
the /etc/rc.conf files does nothing active.  It just sets there like
a bunch of passive data waiting to be looked at.

The rc system goes through the rc.d directories and, according to its
rules checks the script files in those directories and executes those 
scripts that merit execution in an order determined by its protocol.  
It used to be strictly alphabetical, but is more sophisticated now.  
See  man rc  and  man rcorder.

The scripts read up /etc/rc.conf and check for constants that interest
them, such as one to enable or run something.   If the file name 
ends in 'd', the convention is that it is a daemon.   But other 
things could be run to check stuff or set up some files, or whatever.
Besides telling a script to run or exit without doing anything, the 
constants also set conditions for things, such as that hostname setting.

But, it is up to the scripts - most or all in one of the rc.d directories -
to do anything about what is in /etc/rc.conf.  Just putting something in
the rc.conf file does nothing.   One or more of the scripts are what looks 
for the stuff you put in rc.conf and does/do all the work.

The scripts in the rc.d directories have to have execute permission.
There is a protocol set up for them to determine at which point in
the boot process they run (most can also be run manually after the
system is up, though doing them out of order can produce unpleasant
results in some cases). 

So, put your script in /usr/local/etc/rc.d.   Include the appropriate
protocol in the script (see man rc.d, man rc.conf and other related
man pages) and make sure it reads /etc/rc.conf if it needs constants
set or needs to decide whether or not to start something.

jerry


   
 ___
 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: Bridging-(How to test and verify that bridging is enabled)

2009-03-02 Thread Adam Vande More

Faizan ul haq Muhammad wrote:


 
  i noted that, following information is missing
  member: sk0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
  ifmaxaddr 0 port 1 priority 128 path cost 200
  member: sk1 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
  ifmaxaddr 0 port 2 priority 128 path cost 20
 
  Now i need to know how to add the interfaces..?
  Any command do u knw and can help me..?
 
  Regards!!!
 
  
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_032009

 ifconfig bridge0 addm sk0 addm sk1 up
 ifconfig sk0 up
 ifconfig sk1 up

Thanks a lot dear..
it worked. but i m still confused that i have the alternative 
configuration in rc.conf as per guideline here on this page:

http://www.freebsd.org/doc/en/books/handbook/network-bridging.html
it should have worked, but it did not. and here with these commands, 
it is working.. I am able to get reply to ping



Make sure you got the full config in there adjusted to your settings:

cloned_interfaces=bridge0
ifconfig_bridge0=addm fxp0 addm fxp1 up
ifconfig_fxp0=up
ifconfig_fxp1=up

And that you've rebooted.  Assuming you've done those steps correctly, 
it should work.  Generally issue's like that are rooted in typo's and 
misconfigurations.  As your typo count gets incremented,  you will learn 
humility.  ;)  Least that's how it was for me.  Another good rule of 
thumb is if you're following the handbook and it's still doesn't work 
then you're not following the handbook.


Glad it works for you.
___
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: How to repeat playing mp3 with mpg123

2009-03-02 Thread Wojciech Puchar

I tried bash like this
 for((;;))
 do
  mpg123 [mp3] 
done
but it keeps running new mpg123 in background .


while true;do mpg123 filename;done
___
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: Regarding DVD/CD request

2009-03-02 Thread Chris Rees
2009/3/2 RAMASUBRAMANIAN VENKITESWARAN ramanvenkatam...@gmail.com:
 SIr,
     Thank You very much


Ah, meant to ask you. Do you want the 32-bit version or the 64-bit? If
you want to use accelerated graphics, Java, or flash you're better off
with the 32-bit version. If you're happy with the 32-bit version
(should be fine for anything really) I'll send you
FreeBSD-7.1-RELEASE.

Chris

-- 
R $h !  $- ! $+  $@ $2  @ $1 .UUCP.  (sendmail.cf)
___
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


bsd.rd for FreeBSD install

2009-03-02 Thread new_guy

Hi,

We normally use OpenBSD, but would like to try FreeBSD on a test system.
Usually, when updating from one OpenBSD release to another, we do so by
downloading the latest bsd.rd and booting from that to complete the install.
Our machines have no optical drives. Does FreeBSD have a similar method to
installation? 

Thanks!
-- 
View this message in context: 
http://www.nabble.com/bsd.rd-for-FreeBSD-install-tp22292723p22292723.html
Sent from the freebsd-questions mailing list archive at Nabble.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: OT: what is the X11 equiv of /dev/null

2009-03-02 Thread Modulok
 I was thinking is there someway to direct a X11 app to target the X11 equiv 
 of /dev/null ?

...what? What problem are you trying to solve, exactly?
-Modulok-

On 3/2/09, Aryeh M. Friedman aryeh.fried...@gmail.com wrote:
 I often want to run applications from my PC (actually the dual boot
 partition on my desktop 7.1) on one of the X11 capable 7.1 machine at
 work (identical configs except for dual booting) and want to be able to
 open applications (like deluge) on the work machine that require a X11
 server... I was thinking is there someway to direct a X11 app to target
 the X11 equiv of /dev/null ?
 ___
 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: bsd.rd for FreeBSD install

2009-03-02 Thread Ricardo Jesus

new_guy wrote:

Hi,

We normally use OpenBSD, but would like to try FreeBSD on a test system.
Usually, when updating from one OpenBSD release to another, we do so by
downloading the latest bsd.rd and booting from that to complete the install.
Our machines have no optical drives. Does FreeBSD have a similar method to
installation? 


Thanks!


As far as I know OpenBSD advises on binary upgrades so I'd say you're 
probably looking for freebsd-update as it provides binary updates. This 
utility is great for binary updates to both kernel and world.


Do take a look at FreeBSD's Handbook.

To update third party applications e.g. ports read this: 
http://www.freebsd.org/doc/en/books/handbook/ports.html


If you want to compile a custom kernel: 
http://www.freebsd.org/doc/en/books/handbook/kernelconfig.html


Update and upgrade methods are described here: 
http://www.freebsd.org/doc/en/books/handbook/updating-upgrading.html


Have fun,
Ricardo Jesus.
___
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: Root shell

2009-03-02 Thread new_guy


RW-15 wrote:
 
 On Sun, 1 Mar 2009 16:16:50 +
 Frank Shute fr...@shute.org.uk wrote:
 
 pdksh is statically linked and I don't know if bash is. 
 
 It's a build option.
 
 

Seems root should have a static shell always... otherwise, all bets are off
as some of the shared libs may be inaccessible or damaged. So long as bash
is statically linked and properly located, there should not be an issue. But
most folks (linux users) aren't aware of the implications of dynamic linking
and such. So it's probably best to 'just say no' to the OP's question. Leave
root's shell alone unless you know what you're doing and bash is built
appropriately. 

-- 
View this message in context: 
http://www.nabble.com/Root-shell-tp22274005p22293187.html
Sent from the freebsd-questions mailing list archive at Nabble.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: bsd.rd for FreeBSD install

2009-03-02 Thread new_guy

You misunderstand. I want to install FreeBSD from a ramdisk image (bsd.rd).
Is that possible? It's basically a small kernel that boots the machine,
formats the hard drive, setups root and installs the operating system over
ftp. 

-- 
View this message in context: 
http://www.nabble.com/bsd.rd-for-FreeBSD-install-tp22292723p22293310.html
Sent from the freebsd-questions mailing list archive at Nabble.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: bsd.rd for FreeBSD install

2009-03-02 Thread Jerry McAllister
On Mon, Mar 02, 2009 at 09:36:39AM -0800, new_guy wrote:

 
 Hi,
 
 We normally use OpenBSD, but would like to try FreeBSD on a test system.
 Usually, when updating from one OpenBSD release to another, we do so by
 downloading the latest bsd.rd and booting from that to complete the install.
 Our machines have no optical drives. Does FreeBSD have a similar method to
 installation? 

Hmmm.   Having a CD drive makes it so easy.   It might be worthwhile
to run out and get an external one you can plug in.

Installs can also be done from a pair of floppies if you have
a floppy drive.   The floppy just has the boot and sysinstall 
stuff.   Everything else downloads over the net or can be loaded
on some other media such as tape or external disk and installed
from there.

You can create almost any kind of media if you can make it bootable
and put stuff on it and boot from it and bring up sysinstall.  But,
I do not think you can put that on the slice you want to install to
and then do a complete install there.

Now, if you have FreeBSD running, you can upgrade it in place.  Update
and csup are all useful tools to learn for that.  But, an initial 
install wants to be on some media other than where it will be installed.
That is mostly because you build your disk filesystem as part of the
installation.


jerry

 
 Thanks!
 -- 
 View this message in context: 
 http://www.nabble.com/bsd.rd-for-FreeBSD-install-tp22292723p22292723.html
 Sent from the freebsd-questions mailing list archive at Nabble.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
___
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: Root shell

2009-03-02 Thread Jerry McAllister
On Mon, Mar 02, 2009 at 09:55:39AM -0800, new_guy wrote:

 
 
 RW-15 wrote:
  
  On Sun, 1 Mar 2009 16:16:50 +
  Frank Shute fr...@shute.org.uk wrote:
  
  pdksh is statically linked and I don't know if bash is. 
  
  It's a build option.
  
  
 
 Seems root should have a static shell always... otherwise, all bets are off
 as some of the shared libs may be inaccessible or damaged. So long as bash
 is statically linked and properly located, there should not be an issue. But
 most folks (linux users) aren't aware of the implications of dynamic linking
 and such. So it's probably best to 'just say no' to the OP's question. Leave
 root's shell alone unless you know what you're doing and bash is built
 appropriately. 

Well put.

jerry

 
 -- 
 View this message in context: 
 http://www.nabble.com/Root-shell-tp22274005p22293187.html
 Sent from the freebsd-questions mailing list archive at Nabble.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
___
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: bsd.rd for FreeBSD install

2009-03-02 Thread Ricardo Jesus

new_guy wrote:

You misunderstand. I want to install FreeBSD from a ramdisk image (bsd.rd).
Is that possible? It's basically a small kernel that boots the machine,
formats the hard drive, setups root and installs the operating system over
ftp. 

If that's what you want I definitely misunderstood. Maybe someone of the 
list can give a hand and help you out.

___
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


load average and some built-in monitoring mechanism

2009-03-02 Thread Zbigniew Szalbot
Hi there,

My machine has recently been taken down by (most likely) runaway java
process. The box had to be rebooted as there was no remote access to
it but I am not able to find anything useful in logs to confirm
whether it was java. Is there a tool that would enable me to
automatically turn on verbose logging of top processes to some file
once the load average is greater than the specified value? This way,
once the storm is over, I would be able to see which process(es) went
nuts.

I guess a tool like that may simply already exist in which case I'd
appreciate links/more information. How are you dealing with such
issues when/if they happen to you?

Many thanks!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: bsd.rd for FreeBSD install'

2009-03-02 Thread Jerry McAllister
On Mon, Mar 02, 2009 at 06:19:57PM +, Ricardo Jesus wrote:

 new_guy wrote:
 You misunderstand. I want to install FreeBSD from a ramdisk image (bsd.rd).
 Is that possible? It's basically a small kernel that boots the machine,
 formats the hard drive, setups root and installs the operating system over
 ftp. 
 
 If that's what you want I definitely misunderstood. Maybe someone of the 
 list can give a hand and help you out.

Wel, that is what a fixit image is - a boot to a ramdisk image.
They call it md  (memory disk)  in FreeBSD land.  Check man pages
and some more stuff online at various sources.

The only problem is that I don't know if the fixit includes sysinstall.
You could try it. I would guess that the install image is build in 
memory too and runs from there rather than from the CD.  So, it should 
be possible with some tinkering - if you have enough memory to run a
sysinstall completely from memory.   You would then pretty much need 
to do an install over the net - which you would probably do anyway.

So, your big problem, if that works, is figuring out how to create that 
image booted in to the memory disk without some external media to
start it with.

jerry   
   
 ___
 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: bsd.rd for FreeBSD install

2009-03-02 Thread Jerry McAllister
On Mon, Mar 02, 2009 at 10:02:25AM -0800, new_guy wrote:

 
 You misunderstand. I want to install FreeBSD from a ramdisk image (bsd.rd).

That is called  md  (memory disk) in FreeBSD land.   

 Is that possible? It's basically a small kernel that boots the machine,
 formats the hard drive, setups root and installs the operating system over
 ftp. 

That is what sysinstall is, plus the boot.   It is a program that
builds the filesystems, sets up the system and loads everything on
the disk.The big problem is how to boot and bring it up without
any external media.   I think some people have done it from network
and second Hard drive boots as well as floppy and CD boots.   

jerry

 
 -- 
 View this message in context: 
 http://www.nabble.com/bsd.rd-for-FreeBSD-install-tp22292723p22293310.html
 Sent from the freebsd-questions mailing list archive at Nabble.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
___
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: MySQL / php differ

2009-03-02 Thread Jos Chrispijn

Matthew Seaman wrote:
Actually, you may only need to recompile databases/php5-mysql 
(possibly plus some dependencies) and then restart apache. If your DB 
is on the same machine as where you're running phpMyAdmin, then you 
will have the 5.0.77 client libraries already installed and 
recompiling that one package should fix the observed problem. 

thanks, I will try as Areyeh's solution unfortunately didn't solve the 
problem.


Jos Chrispijn
___
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: read BSD format disk from Mac OSX

2009-03-02 Thread Roland Smith
On Mon, Mar 02, 2009 at 09:16:02AM -0500, Tsu-Fan Cheng wrote:
 Hi all,
 I format a ext disk (UFS) and transfer some files into it, hand it
 over to my friend who has a macbook. He complained the macbook can't
 read it. I don't have a mac on hand, I wonder if there is any utility
 that will help a mac to read a BSD, thanks!!

Macs use GUID partition tables. These are supported by the GENERIC
FreeBSD kernel (at least in 7.1). You'll need the gpt(8) program to make
them. The following link is a kind of HOWTO:
http://forums.freebsd.org/archive/index.php/t-1305.html

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpiU5mtKdjez.pgp
Description: PGP signature


Re: bsd.rd for FreeBSD install

2009-03-02 Thread Ricardo Jesus

Jerry McAllister wrote:

On Mon, Mar 02, 2009 at 10:02:25AM -0800, new_guy wrote:


You misunderstand. I want to install FreeBSD from a ramdisk image (bsd.rd).


That is called  md  (memory disk) in FreeBSD land.   


Is that possible? It's basically a small kernel that boots the machine,
formats the hard drive, setups root and installs the operating system over
ftp. 


That is what sysinstall is, plus the boot.   It is a program that
builds the filesystems, sets up the system and loads everything on
the disk.The big problem is how to boot and bring it up without
any external media.   I think some people have done it from network
and second Hard drive boots as well as floppy and CD boots.   


jerry


--
View this message in context: 
http://www.nabble.com/bsd.rd-for-FreeBSD-install-tp22292723p22293310.html
Sent from the freebsd-questions mailing list archive at Nabble.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

___
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

One approach could be using an existing install like described here: 
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/fbsd-from-scratch/article.html


Or even going the nanoBSD way: 
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/nanobsd/article.html


But this defeats the OP's originial intent, e.g., ramdisk
___
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: Ports on Macbook

2009-03-02 Thread Chris Rees
2009/3/2 Julian Wissmann julianwissm...@gmail.com:
 Oh, that didn't go to the list, did it.
 I should actually read where I send stuff to, well, anyway.

 Suse was bought by Novell a while back as you probably know, but as far as I
 know the Suse team still is located in Nuernberg over here in Germany.
 They're programmers/geeks whichever you prefer to call it, not lawyers.
 So chances are they didn't know about this either when they started out, but
 considering that Yast was closed source for a while they probably found out
 soon.


 Am 02.03.2009 um 09:28 schrieb Bernt Hansson:

 Julian Wissmann skrev:

 An EULA actually in nearly all European Countries and probably most
 other countries in the World is not binding.

 That's my point. An EULA is just, that. An EULA.

 Even in the US it is not
 quite clear if an EULA is a valid license agreement.

 Can't comment on that.

 Also EULAs and
 many Licenses actually only apply to US Law, so basically they're not
 worth anything anywhere else.

 Yes. US law apply to us only.

 You couldn't enforce a GPL in Germany or
 some other european countries for example, because it is built atop
 another legal system with different ideas of how things work.

 Interesting! Suse comes to mind, but is suse linux still based in germany?

 Same
 thing applies to EULAs. I read a very interesting article on German iX
 magazine recently wich was covering this. Don't have access to it
 right now though cause I'm on a trip home, so I can't really say much
 more about it, but if you want specific details I can post them in a
 bout a week.

 Take your time. This kind of discussion's come and go.




 Am 28.02.2009 um 22:29 schrieb Bernt Hansson:

 Chris Rees skrev:

 2009/2/28 Bernt Hansson be...@bah.homeip.net:

 Lord Blackadder skrev:

 Bernt Hansson wrote:

 Sean Cavanaugh skrev:

 I'm sorry to disappoint you, Bernt, but under Swedish law any
 kind of
 agreement is legally binding. Even just a handshake.

 Yes. But clicking yes or no is not a handshake or oral agreement
 acording to Swedish law.

 Again, back it up? You're just expecting us to believe your
 interpretation of the law.

 Who's interpretation are you in comfort with? Your own? Sombody
 else, a
 lawyer? A pornstar?
 ___
 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
 




 --
 Varning! E-post till och från Sverige, eller som passerar servrar i
 Sverige, avlyssnas av Försvarets Radioanstalt, FRA.

 WARNING! E-mail to and from Sweden, or via servers in Sweden, is
 monitored by the National Defence Radio Establishment.

 ___
 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


In all fairness, you are posting on a mailing list about software
originating in the US, written in English, with the original post
being a guy from India, and the disputed one being made from a guy in
Spain. How is Swedish law relevant to this discussion, whether it says
what you claim or not?

Chris
-- 
R $h !  $- ! $+  $@ $2  @ $1 .UUCP.  (sendmail.cf)
___
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


who took my cd drive?

2009-03-02 Thread prad
i'm trying to install fbsd71 on a ibm thinkpad i1200 via cdrom.

it boots fine from the cd, but then when i choose cd for media it says
No CD/DVD devices found!

huh?? how so?
what can be done?
(i can install through nfs so it is not a lost cause by any means, but
what's going on here?)

-- 
In friendship,
prad

  ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's
___
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: MySQL / php differ | Solved

2009-03-02 Thread Jos Chrispijn

Problem solved. What I did is:

- using Matthew's pkg_info -rx php5-mysql
- after that Aryeh's solution on the php5-mysql port

thanks for your help,
Jos
___
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


backup msdos slice

2009-03-02 Thread Jerry
Hi,

I hate to start this potential storm, but...

I have a machine with both an MS and FreeBSD slices on it.
I can easily back up and recover the FreeBSD slices using dump(8)/restore(8)
But, that won't work for the MS slice (which happens to be FAT32 on this
machine) because there is no superblock and inode structure.

So, what I would like is something that would dump the MS slice
to a FreeBSD file or media written in the FreeBSD world and that
I could then pick out files and directories somewhat like I do
using restore on a dump file.I suspect that tar might not
keep enough meta information to be right for this job.  Is that
a valid concern?Recovered files should still work in MS-Win.

Is there anything worthwhile out there that can do this and not
go through some the rigamarole that some MS backup systems seem
to want to put one through?

Basically, I want to back up the MSDOS slice (I know MS calls it
a primary partition) from the FreeBSD side of things.   I can read
and write the slice nicely from FreeBSD, but not dump/restore.

I would appreciate any suggestions. 

jerry

___
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: Linux binary wants GLIBC_2.4, GLIBCXX_3.4.9

2009-03-02 Thread Edward Ruggeri
Thanks very much!  Will this actually change behavior of the Linux
kernel module, or is it just supposed to trick new versions of
linux_base to build?

-- Ned Ruggeri

On Sun, Mar 1, 2009 at 7:35 PM, Pieter de Goeje pie...@degoeje.nl wrote:
 On Monday 02 March 2009, Edward Ruggeri wrote:
 I am using FreeBSD 7.0 Stable.  I want to run the Linguistica project
 Linux binary.  However, after loading the Linux kernel module, when I
 try to run the binary the system replies:

 ./lxa-ubuntu-325: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not
 found (required by ./lxa-ubuntu-325)
 ./lxa-ubuntu-325: /usr/lib/obsolete/linuxthreads/libc.so.6: version
 `GLIBC_2.4' not found (required by ./lxa-ubuntu-325)

 Besides asking the Linguistica developers whether they actually must
 require such recent versions of the GNU C, C++ libraries, I tried to
 install a more recent linux_base.  However, everything beyond
 linux_base-fc4 does not support Linux kernel 2.4.2.

 Is there a module for a newer version of the linux kernel that I can
 build so as to install a newer linux_base?  Or is there a way to use
 the same 2.4.2 module but use more recent GNU C libraries?  I am not
 an expert in this area; is there something I haven't thought of?

 You can upgrade the linux compatibility layer by setting the sysctl:

  compat.linux.osrelease=2.6.18

 For example in /etc/sysctl.conf. Then you should be able to install a newer
 version of linux_base.

 --
 Pieter de Goeje

___
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


Anyone know SunFire hardware

2009-03-02 Thread Paul Schmehl
We have FreeBSD installed on a SunFire box running two AMD Opteron processors. 
I was upgrading to 7.1 STABLE on Friday, and after installing the kernel I 
rebooted.  Now the box is completely unusable.  Does anyone know how to get a 
SunFire box to boot from the CD ROM?  Any changes I make to the BIOS seem to be 
completely ignored.  When I get to the FreeBSD boot loader, I lose keyboard, so 
I can't even go to single user mode.  Not being able to boot off the CD is a 
royal pita.


I've done some Googling, and the most common answer seems to be hit STOP+A, 
but there is no STOP key on an Intel keyboard.  Is there a magic incantation 
that will work?   Maybe the entrails of a young goat?


--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not those of my employer.
***
Check the headers before clicking on Reply.

___
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: backup msdos slice

2009-03-02 Thread Wojciech Puchar


So, what I would like is something that would dump the MS slice
to a FreeBSD file or media written in the FreeBSD world and that
I could then pick out files and directories somewhat like I do
using restore on a dump file.I suspect that tar might not
keep enough meta information to be right for this job.  Is that
a valid concern?Recovered files should still work in MS-Win.


only tar i think
___
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: who took my cd drive?

2009-03-02 Thread Tyson Boellstorff
On Monday 02 March 2009 12:52:58 prad wrote:
 i'm trying to install fbsd71 on a ibm thinkpad i1200 via cdrom.

 it boots fine from the cd, but then when i choose cd for media it says
 No CD/DVD devices found!

 huh?? how so?
 what can be done?
 (i can install through nfs so it is not a lost cause by any means, but
 what's going on here?)

I did. 

I am in ur howse steelin ur 1's.

perlcat.

srsly, what does dmesg and /dev say? CD's can be mounted through the USB bus 
or a different bus. My guess is that your CD isn't connected internally via 
PCI, and you're just missing a driver. 
___
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: who took my cd drive?

2009-03-02 Thread Glen Barber
On Mon, Mar 2, 2009 at 1:52 PM, prad p...@towardsfreedom.com wrote:
 i'm trying to install fbsd71 on a ibm thinkpad i1200 via cdrom.

 it boots fine from the cd, but then when i choose cd for media it says
 No CD/DVD devices found!

 huh?? how so?
 what can be done?
 (i can install through nfs so it is not a lost cause by any means, but
 what's going on here?)


Try the atapicam kernel module.

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


Re: backup msdos slice

2009-03-02 Thread Roland Smith
On Mon, Mar 02, 2009 at 02:10:42PM -0500, Jerry wrote:
 Hi,
 
 I hate to start this potential storm, but...
 
 I have a machine with both an MS and FreeBSD slices on it.
 I can easily back up and recover the FreeBSD slices using dump(8)/restore(8)
 But, that won't work for the MS slice (which happens to be FAT32 on this
 machine) because there is no superblock and inode structure.
 
 So, what I would like is something that would dump the MS slice
 to a FreeBSD file or media written in the FreeBSD world and that
 I could then pick out files and directories somewhat like I do
 using restore on a dump file.   

 I suspect that tar might not keep enough meta information to be right
 for this job. Is that a valid concern?

Just mount the FAT32 fs, and use any achiver you like, e.g. zip, tar,
cpio. All can save all metadata that FAT32 has. If you use zip, you can
even use winzip on windows to extract files from it, if that is
important to you.

Some time ago I wrote a utility called dosrestore (available on my
website) that could extract files from backup floppies made with MS-DOS
5 or thereabouts. I haven't tested it beyond my own backup floppies, though.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpDn5ih8UdNG.pgp
Description: PGP signature


Re: How to repeat playing mp3 with mpg123

2009-03-02 Thread cpghost
On Mon, Mar 02, 2009 at 10:55:29PM +0800, lacalling wrote:
 Since mpg123 does not support repeat model, i tried to write a script to
 play mp3 repeatedly.
 
 I tried bash like this
   for((;;))
   do
mpg123 [mp3] 
  done
 but it keeps running new mpg123 in background .

You asked for it to run in the background (with '').
In fact, you're spawning many mpg123 processes here...

 but mpg123 [mp3]  in foreground cant be terminated by control C

Not too familiar with mpg123 (I'm using mplayer), but in such
close loops, Ctrl-C usually works, but not as intended: it stops
one mpg123 process (unless mpg123 sets its signal mask in such a
way as to block or ignore SIGINT?), but the next one resumes
almost immediately thereafter.

To Ctrl-C the loop itself is not easy, because the time slice
between the end of one mpg123 process and the start of the next
one (when the shell is in the foreground) is pretty tiny. Try
adding a 'sleep 1' or something like that after mpg123, and it
will be easier.

 Could anyone provide more ideas.
 thank you.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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: Anyone know SunFire hardware

2009-03-02 Thread new_guy


Paul Schmehl-2 wrote:
 
 I've done some Googling, and the most common answer seems to be hit
 STOP+A, 
 but there is no STOP key on an Intel keyboard.  Is there a magic
 incantation 
 that will work?   Maybe the entrails of a young goat?
 

Ctrl + Break

I'm sticking with OpenBSD... BTW.

-- 
View this message in context: 
http://www.nabble.com/Anyone-know-SunFire-hardware-tp22294904p22297874.html
Sent from the freebsd-questions mailing list archive at Nabble.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: OT: what is the X11 equiv of /dev/null

2009-03-02 Thread Kevin Kinsey

Modulok wrote:

I was thinking is there someway to direct a X11 app to target the X11 equiv of 
/dev/null ?


...what? What problem are you trying to solve, exactly?
-Modulok-


I'd have to assume he wants to call a remote X program from his terminal
and not have the program's output clutter it up.

My usual workaround is:

1.  xterm  in Terminal one.
2.  appname  in the new Xterm, then CTL-D.

I also have a couple of buttons in XFCE that simply call
ssh $somehost $someapp.  I've no idea where it puts
the stderror/stdout, but I never see it.

Kevin Kinsey
--
Surely you cant be serious.
I am serious, and dont call me Shirley.

___
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: who took my cd drive?

2009-03-02 Thread prad
On Mon, 2 Mar 2009 14:46:27 -0500
Glen Barber glen.j.bar...@gmail.com wrote:

 Try the atapicam kernel module.
 
i pushed 6 to get loader prompt and there did
boot atapicam
but got 

elf32_loadfile: can't load module before kernel

which i thought was weird since in the help boot it says if you don't
load the module, it will boot it instead of the default. if i 
load atapicam
then it just boots acpi.ko


On Mon, 2 Mar 2009 13:25:36 -0600
Tyson Boellstorff perl...@windstream.net wrote:

 I did. 
 
 I am in ur howse steelin ur 1's.

i will count the cats we have.

if catcount == catcount + 1:
print perlous catastrophe  

-- 
In friendship,
prad

  ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's
___
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: libpthread not found

2009-03-02 Thread Dan Nelson
In the last episode (Mar 01), Michael Powell said:
 m.borsat...@alice.it wrote:
  thanks ... but ... how?
  now I don't get the first message; but the second tells me that a library
  is missing, but it is present. anyway I' prepared a very simple
  /etc/libmap.conf like this:
  
  # /etc/libmap.conf
  #
  # candidate mapping
  #
  libc.so.6   /usr/compat/linux/lib/libc.so.6
 
 Change to:
 
 libc.so.6 libc.so.7

No, definitely do not do this.  The version of a shared library is bumped
when incompatible changes are made.  If libc.so.7 was compatible with
libc.so.6, why wasn't it called libc.so.6?  :)  libmap.conf is only meant to
exchange ABI-compatible libraries (primarily the older threads libraries
libc_r, libthr, and libpthread).

You want to install the compat6x port, which will install FreeBSD 6.x
libraries, including libc.so.6.
  
-- 
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: Cron Not Sending Mail

2009-03-02 Thread APseudoUtopia
On Sun, Mar 1, 2009 at 9:03 PM, Frank Shute fr...@shute.org.uk wrote:
 On Sun, Mar 01, 2009 at 02:24:47PM -0500, APseudoUtopia wrote:

 Cron is not sending output as emails. I noticed this when I stopped
 seeing the output of a backup script in my daily email. I thought
 there was a problem with the backup script - but no, it's cron not
 sending the emails.

 I had this problem before on 6.1, which I never found a solution to. I
 gave up on it, and eventually I upgraded to 7.1. After the upgrade,
 cron worked perfectly. However, I just noticed that it stopped working
 again. I have no idea what changed (It's a production server, I
 haven't been playing with config files).

 User www's mail is redirected to root, which is redirected to a @gmail
 account via /etc/aliases.
 This is on 7.1-RELEASE-p3 running a custom kernel.

 Any solution to this problem would be fantastic. I use the emails from
 cron on a daily basis, and it really messes me up to have it not
 working.

 #
 # User www's crontab
 # Note, I also tried removing the MAILTO to no avail
 #
 MAILTO=root
 # m     h       dom     mon     dow     cmd
 *       *       *       *       *       echo Hello


 
 # /var/log/cron
 
 Mar  1 19:22:00 youcant /usr/sbin/cron[22627]: (operator) CMD
 (/usr/libexec/save-entropy)
 Mar  1 19:22:00 youcant cron[22627]: NSSWITCH(nss_method_lookup): nis,
 group_compat, setgrent, not found
 Mar  1 19:22:00 youcant cron[22627]: NSSWITCH(nss_method_lookup): nis,
 group_compat, endgrent, not found
 Mar  1 19:22:00 youcant cron[22627]: NSSWITCH(nss_method_lookup): nis,
 passwd_compat, endpwent, not found
 Mar  1 19:22:00 youcant /usr/sbin/cron[22628]: (www) CMD (echo Hello)
 Mar  1 19:22:00 youcant cron[22628]: NSSWITCH(nss_method_lookup): nis,
 group_compat, setgrent, not found
 Mar  1 19:22:00 youcant cron[22628]: NSSWITCH(nss_method_lookup): nis,
 group_compat, endgrent, not found
 Mar  1 19:22:00 youcant cron[22628]: NSSWITCH(nss_method_lookup): nis,
 passwd_compat, endpwent, not found
 Mar  1 19:22:00 youcant cron[22630]: NSSWITCH(nss_method_lookup): nis,
 group_compat, setgrent, not found
 Mar  1 19:22:00 youcant cron[22630]: NSSWITCH(nss_method_lookup): nis,
 group_compat, endgrent, not found
 Mar  1 19:22:00 youcant cron[22630]: NSSWITCH(nss_method_lookup): nis,
 passwd_compat, endpwent, not found



 
 # /var/log/maillog
 
 Mar  1 19:22:00 youcant sendmail[22630]: n21JM0Gl022630: from=www,
 size=0, class=0, nrcpts=0,
 msgid=200903011922.n21jm0gl022...@youcant.tastetherainbow.ws,
 relay=...@localhost

 It looks like you're using user: www for your crontab.

 Unfortunately, from /etc/passwd:

 www:*:80:80:World Wide Web Owner:/nonexistent:/usr/sbin/nologin

 i.e user www can't do much without a shell.

 Create a crontab as a user with a shell, MAILTO to your gmail account.

 The user may want to be a member of a group with privileges. Or use
 sudo.

 Don't forget to add him to /var/cron/allow as per manpage for
 crontab(1).

 You could set SHELL in your crontab for www (might work) but I'd use a
 different user who's a member of group operator maybe.

 Hope that helps.

 Regards,

 --

  Frank


  Contact info: http://www.shute.org.uk/misc/contact.html



Thanks for the suggestions. The backup script I have in the crontab
still runs perfectly fine - there's just no output. So cron itself is
working, just not any email output. I'll try playing around with the
MAILTO and the SHELL and such to try and get it working.
___
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: SpamAssassin/Perl eating enormous amounts of memory?

2009-03-02 Thread Mel
On Sunday 01 March 2009 19:23:33 Andrew Moran wrote:
 Hey guys,

 After having lots of problems with memory and 7.1/ZFS, I first
 switched everything to 64-bit (amd64), and then I had a new problem,
 so I eventually gave up and switched back to UFS (saying on amd64
 distro/ports), but I'm still having memory issues.

 My current one is that SpamAssassin seems to be periodically  eating
 up all my memory, causing the server to slow to a crawl until the
 kernel kills the process and then I have enormous amounts of free
 memory.  Rinse, repeat.   I thought maybe it had something to do with
 the fact that I was using multithreaded perl (which I wasn't before I
 jumped into 7.1/ZFS), but rebuilding perl (and all its' dependencies)
 without threads didn't help.

 I have 8GB of physical memory and 16GB of swap memory.   Here is a
 line from top showing perl taking 21 gigs of memory:

   6035  0  1  760 21190M   791M pfault 0   1:20  4.69%
 perl5.8.9

This is hard to debug, but I'd first toggle the PERL_MALLOC option in the 
configuration dialog for the perl port. If this doesn't solve the problem, 
then you'd have to get a ktrace to get some indication of what is allocating 
the memory.

What's even weirder is that the process gets that far. Did you play with 
kern.maxdsiz loader tuneable?
If so, set it lower, so you can at least have the machine in a usable state at 
all times. 4G should be enough for any process and should give enough time 
for you to spot the leak and get a ktrace.

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
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: OT: what is the X11 equiv of /dev/null

2009-03-02 Thread Aryeh M. Friedman

Kevin Kinsey wrote:

Modulok wrote:
I was thinking is there someway to direct a X11 app to target the 
X11 equiv of /dev/null ?


...what? What problem are you trying to solve, exactly?
-Modulok-


I'd have to assume he wants to call a remote X program from his terminal
and not have the program's output clutter it up.

My usual workaround is:

1.  xterm  in Terminal one.
2.  appname  in the new Xterm, then CTL-D.

I also have a couple of buttons in XFCE that simply call
ssh $somehost $someapp.  I've no idea where it puts
the stderror/stdout, but I never see it.

Kevin Kinsey
Not quite what I want is to have it so no graphic (non-virtual) output 
is sent

___
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: Linux binary wants GLIBC_2.4, GLIBCXX_3.4.9

2009-03-02 Thread Pieter de Goeje
On Monday 02 March 2009, Edward Ruggeri wrote:
 Thanks very much!  Will this actually change behavior of the Linux
 kernel module, or is it just supposed to trick new versions of
 linux_base to build?

Yes, it changes behaviour. It enables a couple of features new in the Linux 
2.6 kernel. Glibc expects these features based on the advertised version of 
the compatibility layer.

- Pieter



 -- Ned Ruggeri

 On Sun, Mar 1, 2009 at 7:35 PM, Pieter de Goeje pie...@degoeje.nl wrote:
  On Monday 02 March 2009, Edward Ruggeri wrote:
  I am using FreeBSD 7.0 Stable.  I want to run the Linguistica project
  Linux binary.  However, after loading the Linux kernel module, when I
  try to run the binary the system replies:
 
  ./lxa-ubuntu-325: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not
  found (required by ./lxa-ubuntu-325)
  ./lxa-ubuntu-325: /usr/lib/obsolete/linuxthreads/libc.so.6: version
  `GLIBC_2.4' not found (required by ./lxa-ubuntu-325)
 
  Besides asking the Linguistica developers whether they actually must
  require such recent versions of the GNU C, C++ libraries, I tried to
  install a more recent linux_base.  However, everything beyond
  linux_base-fc4 does not support Linux kernel 2.4.2.
 
  Is there a module for a newer version of the linux kernel that I can
  build so as to install a newer linux_base?  Or is there a way to use
  the same 2.4.2 module but use more recent GNU C libraries?  I am not
  an expert in this area; is there something I haven't thought of?
 
  You can upgrade the linux compatibility layer by setting the sysctl:
 
   compat.linux.osrelease=2.6.18
 
  For example in /etc/sysctl.conf. Then you should be able to install a
  newer version of linux_base.
 
  --
  Pieter de Goeje
___
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


unhappy XOrg upgrade ate the linux version of libuuid.so.1

2009-03-02 Thread Steve Franks
I think.  My linux packages stopped working.  Anyone else
experienced/verified/fixed this behavior?

error while loading shared libraries: /usr/X11R6/lib/libuuid.so.1:
ELF file OS ABI invalid

portupgrade *linux* gives

** Listing the failed packages (-:ignored / *:skipped / !:failed)
- devel/linux-glib2 (port directory error)

No doubt the source of the issue.  Does a fix exist?

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


Re: unhappy XOrg upgrade ate the linux version of libuuid.so.1

2009-03-02 Thread Eitan Adler
20090121:
  AFFECTS: users of devel/linux-glib2, emulation/linux_base-f4
  AUTHOR: b...@freebsd.org

  Glib2 now is incorporated to emulation/linux_base-fc4 (it has always
  been a part of more recent linux base ports). All users should deinstall
  devel/linux-glib2 and then deinstall/reinstall emulation/linux_base-f4.

read UPDATING next time

Steve Franks wrote:
 I think.  My linux packages stopped working.  Anyone else
 experienced/verified/fixed this behavior?
 
 error while loading shared libraries: /usr/X11R6/lib/libuuid.so.1:
 ELF file OS ABI invalid
 
 portupgrade *linux* gives
 
 ** Listing the failed packages (-:ignored / *:skipped / !:failed)
   - devel/linux-glib2 (port directory error)
 
 No doubt the source of the issue.  Does a fix exist?
 
 Steve
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 


-- 
Eitan Adler
Security is increased by designing for the way humans actually behave.
-Jakob Nielsen
___
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: ACPI issue on my Toshiba laptop

2009-03-02 Thread Mel
On Sunday 01 March 2009 19:25:44 Michael A. Alestock wrote:
 Hi all,

 As you're already aware, there've been known issues with ACPI running on
 some laptops.  For instance, mine is a Toshiba Satellite A105-S2051.
 When I first installed FreeBSD v6.3 I would get the following error...

 *** ACPI-0370:  Error - No installed handler for fixed event  ***

 From here, I wouldn't be able to use my built-in LAN or Atheros 5212

 wireless because of constant WATCHDOG: DEVICE TIMEOUT error messages.
 However, I later found out that by disabling the ACPI by placing two
 lines in your /boot/device.hints or /boot/loader.conf files,

 hint.apic.0.disabled=1
 hint.acpi.0.disabled=1

 you would be able to use both the wireless and LAN without the ACPI
 running.  This has been the case for me for a while, and everything was
 going great until lastnight

That's the drawback of work-arounds: bugs don't get fixed. Your best bet is to 
post relevant information [1] to freebsd-acpi list and possibly -mobile with 
respect to ath.

[1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/acpi-debug.html

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
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: read BSD format disk from Mac OSX

2009-03-02 Thread Polytropon
I don't want to be impolite, but your solution suggestion is
unneccessarily complicated, involving something that isn't
needed at all.

Let me explain:

On Mon, 2 Mar 2009 08:41:10 -0600, David Kelly dke...@hiwaay.net wrote:
 On Mon, Mar 02, 2009 at 09:16:02AM -0500, Tsu-Fan Cheng wrote:
  Hi all,
  I format a ext disk (UFS) and transfer some files into it, hand it
  over to my friend who has a macbook. He complained the macbook can't
  read it. I don't have a mac on hand, I wonder if there is any utility
  that will help a mac to read a BSD, thanks!!
 
 The easiest way to do what you are attempting is to format the disk FAT.
 Then to preserve file attributes write your files in a tar archive.

Hey hey, not so complicated. :-)

The easiest way is to follow this advice WITHOUT the FAT part.
The tar filesystem has been serving as the best data exchange
format among UNIXes and Linusi over the years. The only thing
needed on the Macbook is the tar utility.

So, on the FreeBSD machine, you first put the files onto the 
external HDD using tar - note that you're using it DIRECTLY,
you're NOT creating any files on a file system:

% tar cvf /dev/da0 files

Then, on the Macbook, you simply extract from the external disk,
using MacOSX's tar command:

$ tar xvf /dev/da0

Done!

Usually, tar will preserve your file names and file attributes.
No need to look for character translation tables, no need for
chmod -x for the files, no need for the uppercase / lowercase
trouble.

Of course, you cannot read such a hard disk with Windows, but
this wasn't part of the question anyway.

There is no need to pollute a hard disk with MICROS~1 FAT when
you're using UNIXens only. And yes, it is that simple. :-)

Simple. Useful. UNIX.



-- 
Polytropon
From 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: backup msdos slice

2009-03-02 Thread Polytropon
On Mon, 2 Mar 2009 14:10:42 -0500, Jerry jerr...@msu.edu wrote:
 So, what I would like is something that would dump the MS slice
 to a FreeBSD file or media written in the FreeBSD world and that
 I could then pick out files and directories somewhat like I do
 using restore on a dump file. 

There should be a simple way: Just dd the FAT partition into a file.
You can then backup this file in FreeBSD (by any way you want).
In order to access files inside the dd image you can simply mount
it using the md (memory disk) facility.

An example (not verified, I don't have any MICROS~1 around); I'll
assume that /dev/ads2c is the FAT file system in question (again,
I do admit that I don't know how FAT partitions occur as device
files in FreeBSD).

% dd if=/dev/ads2c of=fat.dd bs=1m
12345678+1 records in
12345678+1 records out

Now you've got fat.dd. You can backup this file or just backup
content parts of it.

% sudo mdconfig -a -t vnode -u 10 -f fat.dd
% mount -t msdosfs -o ro /dev/md10 /mnt

You now can access the files in fat.dd from the /mnt subtree. Be
sure to check

% man mount_msdosfs

for additional options you might need (character conversion, large,
longnames, mask, ... - I don't exactly know what to use).

Now you can partwise plusgood backup files from within /mnt, using
your favourite backup method (tar to tape, rsync to remote machine
or what you prefer).



 Basically, I want to back up the MSDOS slice (I know MS calls it
 a primary partition) from the FreeBSD side of things.   I can read
 and write the slice nicely from FreeBSD, but not dump/restore.

Now you can. :-)




-- 
Polytropon
From 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: SpamAssassin/Perl eating enormous amounts of memory?

2009-03-02 Thread Andrew Moran


On Mar 2, 2009, at 3:39 PM, Mel wrote:


This is hard to debug, but I'd first toggle the PERL_MALLOC option  
in the
configuration dialog for the perl port. If this doesn't solve the  
problem,
then you'd have to get a ktrace to get some indication of what is  
allocating

the memory.



Thank you for your suggestion.  I'll try compiling Perl and it's  
dependencies without using PERL_MALLOC.



What's even weirder is that the process gets that far. Did you play  
with

kern.maxdsiz loader tuneable?
If so, set it lower, so you can at least have the machine in a  
usable state at
all times. 4G should be enough for any process and should give  
enough time

for you to spot the leak and get a ktrace.




Nope, I haven't tweaked any kernel settings, just using the generic  
DEFAULT amd64 kernel.   I've been way about tweaking settings because  
I don't fully understand what the 'correct' values for my setup are.



___
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: Ports on Macbook

2009-03-02 Thread Polytropon
On Mon, 02 Mar 2009 20:22:50 +0100, Bernt Hansson be...@bah.homeip.net wrote:
 FBSD UG skrev:
  
  You're not buying the software, you buy a license to use it on one  
  Apple computer.
 
 Mostly semantics,  if I name my computer APPLE Then it's legal to
 install. Crap, if I buy it I can install it on ANY computer. Does not
 have to be a computer named APPLE it could be IBM, HP or any other
 brand or non brand.

I think an important point is that you loose support from Apple
if you're not installing Mac OS X on Apple brand hardware.

As for the license agreement, if you buy Mac OS X from the shelf
(for example), you've not confirmed any contract-like agreement
with Apple yet, but you've purchased some rights already, for
example the right to burn the whole package (not a nice example
but I'm sure you get the idea); the EULA mentions nothing about
this (legally possible) behavior.

The Mac OS X versions sold along with the Hackintosh are no
illegally pirated copies, they're boxes from the shelf. It's
up to the customer what to do with it.




-- 
Polytropon
From 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: unhappy XOrg upgrade ate the linux version of libuuid.so.1

2009-03-02 Thread Steve Franks
 read UPDATING next time

Were I about to run buildkernel/buildworld, I would read UPDATING.  I
don't recall there being an UPDATING in /usr/ports.  Perhaps the
documentation regarding this should be updated.  One tries not to rely
on the mailing list, but when all knowledge is tribal, what recourse
does one have?

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


Re: Cron Not Sending Mail

2009-03-02 Thread Frank Shute
On Sun, Mar 01, 2009 at 02:24:47PM -0500, APseudoUtopia wrote:

 Cron is not sending output as emails. I noticed this when I stopped
 seeing the output of a backup script in my daily email. I thought
 there was a problem with the backup script - but no, it's cron not
 sending the emails.
 
 I had this problem before on 6.1, which I never found a solution to. I
 gave up on it, and eventually I upgraded to 7.1. After the upgrade,
 cron worked perfectly. However, I just noticed that it stopped working
 again. I have no idea what changed (It's a production server, I
 haven't been playing with config files).
 
 User www's mail is redirected to root, which is redirected to a @gmail
 account via /etc/aliases.
 This is on 7.1-RELEASE-p3 running a custom kernel.
 
 Any solution to this problem would be fantastic. I use the emails from
 cron on a daily basis, and it really messes me up to have it not
 working.
 
 #
 # User www's crontab
 # Note, I also tried removing the MAILTO to no avail
 #
 MAILTO=root
 # m h   dom mon dow cmd
 *   *   *   *   *   echo Hello

PATH is not set or binary not called with it's path.

 
 
 
 # /var/log/cron
 
 Mar  1 19:22:00 youcant /usr/sbin/cron[22627]: (operator) CMD
 (/usr/libexec/save-entropy)
 Mar  1 19:22:00 youcant cron[22627]: NSSWITCH(nss_method_lookup): nis,
 group_compat, setgrent, not found
 Mar  1 19:22:00 youcant cron[22627]: NSSWITCH(nss_method_lookup): nis,
 group_compat, endgrent, not found
 Mar  1 19:22:00 youcant cron[22627]: NSSWITCH(nss_method_lookup): nis,
 passwd_compat, endpwent, not found
 Mar  1 19:22:00 youcant /usr/sbin/cron[22628]: (www) CMD (echo Hello)
 Mar  1 19:22:00 youcant cron[22628]: NSSWITCH(nss_method_lookup): nis,
 group_compat, setgrent, not found
 Mar  1 19:22:00 youcant cron[22628]: NSSWITCH(nss_method_lookup): nis,
 group_compat, endgrent, not found
 Mar  1 19:22:00 youcant cron[22628]: NSSWITCH(nss_method_lookup): nis,
 passwd_compat, endpwent, not found
 Mar  1 19:22:00 youcant cron[22630]: NSSWITCH(nss_method_lookup): nis,
 group_compat, setgrent, not found
 Mar  1 19:22:00 youcant cron[22630]: NSSWITCH(nss_method_lookup): nis,
 group_compat, endgrent, not found
 Mar  1 19:22:00 youcant cron[22630]: NSSWITCH(nss_method_lookup): nis,
 passwd_compat, endpwent, not found
 
 
Heh! I misread your original post. I didn't  realise that youcant
was your hostname. It confused me ;)

A few ideas: Make MAILTO in cron point to your gmail account. If not
you'll need an alias for www in aliases(5) to point to that gmail
account and you have to remember to rebuild it with newaliases(1)
after you've edited it.

 
 
 # /var/log/maillog
 
 Mar  1 19:22:00 youcant sendmail[22630]: n21JM0Gl022630: from=www,
 size=0, class=0, nrcpts=0,
 msgid=200903011922.n21jm0gl022...@youcant.tastetherainbow.ws,
 relay=...@localhost

This has got a few problems. It's saying the size of the message is 0
(probably because you've not set your PATH)  the number of recipients
is 0 and it seems to be relaying it to w...@localhost rather than
delivering it to your gmail account (newaliases not run).

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

___
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: Cron Not Sending Mail

2009-03-02 Thread Glen Barber
On Sun, Mar 1, 2009 at 2:24 PM, APseudoUtopia apseudouto...@gmail.com wrote:
[snip]

 #
 # User www's crontab
 # Note, I also tried removing the MAILTO to no avail
 #
 MAILTO=root
 # m     h       dom     mon     dow     cmd
 *       *       *       *       *       echo Hello


[snip]

1.)  You are not using the full path to /bin/echo, which is why it is failing.

2.) This is a poor designed way to test cron's mail output.

A Better(tm) way would be something like:
MAILTO=root
*/5 * * * * /bin/ping -c1 localhost /dev/null

which would mail to root on success or failure.

Regards,

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


Re: unhappy XOrg upgrade ate the linux version of libuuid.so.1

2009-03-02 Thread matt donovan
On Mon, Mar 2, 2009 at 10:02 PM, Steve Franks bahamasfra...@gmail.comwrote:

  read UPDATING next time

 Were I about to run buildkernel/buildworld, I would read UPDATING.  I
 don't recall there being an UPDATING in /usr/ports.  Perhaps the
 documentation regarding this should be updated.  One tries not to rely
 on the mailing list, but when all knowledge is tribal, what recourse
 does one have?

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


There has always been a /usr/ports/UPDATING atleast as far back as 6.0 is
when I noticed itbut that's when I started using FreeBSD
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: unhappy XOrg upgrade ate the linux version of libuuid.so.1

2009-03-02 Thread Warren Block

On Mon, 2 Mar 2009, Steve Franks wrote:


read UPDATING next time


Were I about to run buildkernel/buildworld, I would read UPDATING.  I
don't recall there being an UPDATING in /usr/ports.  Perhaps the
documentation regarding this should be updated.


Section 4.5.4 seems to cover it:

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

-Warren Block * Rapid City, South Dakota USA
___
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: unhappy XOrg upgrade ate the linux version of libuuid.so.1

2009-03-02 Thread Steve Franks
 There has always been a /usr/ports/UPDATING atleast as far back as 6.0 is
 when I noticed itbut that's when I started using FreeBSD

Well, I'll be d###'ed.  So there is.  Makes sense, I guess.  Wonder
how many other UPDATING's are floating around the system...

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


Re: unhappy XOrg upgrade ate the linux version of libuuid.so.1

2009-03-02 Thread Frank Shute
On Mon, Mar 02, 2009 at 10:21:21PM -0700, Steve Franks wrote:

  There has always been a /usr/ports/UPDATING atleast as far back as 6.0 is
  when I noticed itbut that's when I started using FreeBSD
 
 Well, I'll be d###'ed.  So there is.  Makes sense, I guess.  Wonder
 how many other UPDATING's are floating around the system...


There's only the two. /usr/ports/UPDATING to be read before
upgrading/installing ports.

/usr/src/UPDATING to be read when updating base and/or kernel.

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

___
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