Re: ipv6

2008-09-21 Thread beni
On Saturday 20 September 2008 23:13:33 David Horn wrote:
> On Sat, Sep 20, 2008 at 11:35 AM, beni <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I have a question about IPv6.
> > I installed /net/freenet6 and edited the /usr/local/etc/gw6c.conf file
> > with the login and password given by Go6.net.
> > I added freenet6_enable="YES", ipv6_enable="YES" and
> > ipv6_network_interfaces="vr0 tun0" to my /etc/rc.conf.
> > An ifconfig shows this :
> > bsdaddict# ifconfig vr0
> > vr0: flags=8843 metric 0 mtu 1500
> >options=2808
> >ether 00:0c:76:c2:2c:b7
> >inet6 fe80::20c:76ff:fec2:2cb7%vr0 prefixlen 64 scopeid 0x1
> >inet 192.168.1.101 netmask 0xff00 broadcast 192.168.1.255
> >media: Ethernet autoselect (100baseTX )
> >status: active
> > bsdaddict#
> > So I think the installation of ipv6 is ok : surfing to
> > http://go6.net/4105/freenet.asp says "You are using IPv6 from ...". But
> > in X-chat, when connecting to Freenode p.ex., I get this :
> >
> >  FreebsdBeni n=FreeBSD 213.219.143.49.adsl.dyn.edpnet.net :You are now
> > logged in. (id FreebsdBeni, username n=FreeBSD, hostname
> > 213.219.143.49.adsl.dyn.edpnet.net)
>
> Even if you have properly setup/configured a tunnel to provide IPv6,
> does not mean that IPv4 goes away.  You are running in dual stack mode
> (both IPv4, and IPv6 active)  You may want to read up a little bit on
> IPv6 details and background in the FreeBSD handbook
>
> http://www.freebsd.org/doc/en/books/handbook/network-ipv6.html
>
> and in the go6.net wiki (among lots of other good IPv6 articles.
> Google is your friend here.)
>
> http://wiki.go6.net/index.php?title=IPv6_transition_mechanisms
>
> Most applications that are IPv6 aware will default to using IPv6 if
> everything is setup properly.  This includes giving an IPv6 capable
> DNS name to your IRC client. (ipv6.chat.us.freenode.net and
> ipv6.chat.eu.freenode.net are a few that are IPv6)
>
> I'm not much of an IRC user myself, but I see that several of the
> ports of xchat are IPv6 enabled.  You did not specify what version of
> Xchat you are using, so I can't comment further there.  Make sure you
> are using a version of xchat that supports IPv6, and that you are
> using the appropriate IPv6 freenode DNS name.
>
> You can also find a listing of IPv6 capable application ports over on
> http://www.freshports.org/ipv6/
>
> > And that is not a ipv6 address. So what am I missing here ? Is it my
> > config or is my isp converting my ipv6 back to ipv4 ?
>
> It is your config.  An ISP can not really "automagically" change you
> from IPv6 to IPv4 when you have a tunnel active.  You do not provide
> an ifconfig for your tunnel interface (tun0), so it is hard to tell
> what your configuration looks like.
>
> Can you ping6 the site in question ? (ie:  ping6 ipv6.chat.us.freenode.net)
>
> > Thanks for any hints on this.
> > --
> > Beni.
>

It seems that I was, indeed using the wrong server to connect me to : 
the "normal" IPv6 instead of the ipv6-servers (the ping6 works). So now all 
seems ok.
Didn't know about those IPv6 capable application port on Freshports though. 
Will definitely check those, thanks for the link and your explications !

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


Re: Upgrading

2008-09-21 Thread Matthew Seaman

Odhiambo Washington wrote:

On Sun, Sep 21, 2008 at 2:29 AM, Grant Peel <[EMAIL PROTECTED]> wrote:

Hi all,

I am preparing to upgrade all servers from FBSD 6.2 to 6.3 in preperation
for 6.4, and some day 7.x

One thing I have always found a little confusing is what tag to specify in
the supfile.

If a machine is running 6.2, and I want to upgrade to the latest production
release, would I use:

RELENG_6_3 ?


RELENG_6



No.  RELENG_6 will give you 6-STABLE.  The OP was quite correct:
RELENG_6_3 will get 6.3-RELEASE-pX which is currently the latest
production release from the 6.x series.  Eventually there will be
a RELENG_6_4 tag, but it hasn't been laid down quite yet.  That
usually happens around when [EMAIL PROTECTED] switches from 6.4-BETA to 6.4-RC
which will probably be fairly soon.


Also, What do you all think about jumping from 6.4 straight to 7.1 when its
released (cvsup method)?


If the OPs final aim is to track 7.1, then:

  * upgrading 6.2 -> 6.3 -> 6.4 doesn't really get you anything
except a whole heap of wasted time -- unless you want practice
at running 'make buildworld' and so forth?

  * Upgrading from 6.2 -> 7.0 directly works just fine.  I expect
6.2 -> 7.1 would probably work too.

  * It's the 6 -> 7 jump which is the big deal in terms of what you
have to do while upgrading.  Rebuilding all of your installed ports
will take a significant amount of time, and you're going to have
to take the server out of action at least some of that time.

Alternatively, if the aim at the moment is to track 6.4, then upgrading
6.2 -> 6.4 in one step will get you there pretty simply.  Just wait a
few weeks until 6.4 is out.


Hmm In such cases, it will depend on what the server is running.
I'd prefer a fresh install and migrate services by hand. However,
upgrade from 6.4 -> 7.x should be doable.


Oh, it depends on how conservative you want to be.  If you must always 
absolutely definitely have a fast back-out path in case of things going 
horribly wrong, then the thing to do is either install a new HDD and set up 
the target version of the OS on that, or split up a RAID1 mirror, update 
one half of the mirror and then resynch in the appropriate direction once 
your testing shows the update to have succeeded or not.


Of course, those are more expensive and time consuming procedures than
are usually justifiable. For general purpose use, the upgrade procedures 
described in /usr/src/UPDATING, the handbook, Colin Percival's 
daemonology.org blog and RSE's web pages at freebsd.org will basically 
work.



Anyway, see this: http://people.freebsd.org/~rse/upgrade/

It's some authoritative source for upgrades.


While RSE's account is factual and accurate and well worth the time
of anyone looking into doing an upgrade, I don't believe it's /the/
authoritative source.  He says himself: your systems will be different.
As the perl folk say: TIMTOWTDI.
Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Upgrading

2008-09-21 Thread Odhiambo Washington
On Sun, Sep 21, 2008 at 12:33 PM, Matthew Seaman
<[EMAIL PROTECTED]> wrote:
> Odhiambo Washington wrote:
>>
>> On Sun, Sep 21, 2008 at 2:29 AM, Grant Peel <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi all,
>>>
>>> I am preparing to upgrade all servers from FBSD 6.2 to 6.3 in preperation
>>> for 6.4, and some day 7.x
>>>
>>> One thing I have always found a little confusing is what tag to specify
>>> in
>>> the supfile.
>>>
>>> If a machine is running 6.2, and I want to upgrade to the latest
>>> production
>>> release, would I use:
>>>
>>> RELENG_6_3 ?
>>
>> RELENG_6
>>
>
> No.  RELENG_6 will give you 6-STABLE.  The OP was quite correct:
> RELENG_6_3 will get 6.3-RELEASE-pX which is currently the latest
> production release from the 6.x series.  Eventually there will be
> a RELENG_6_4 tag, but it hasn't been laid down quite yet.  That
> usually happens around when [EMAIL PROTECTED] switches from 6.4-BETA to 6.4-RC
> which will probably be fairly soon.
>
>>> Also, What do you all think about jumping from 6.4 straight to 7.1 when
>>> its
>>> released (cvsup method)?
>
> If the OPs final aim is to track 7.1, then:
>
>  * upgrading 6.2 -> 6.3 -> 6.4 doesn't really get you anything
>except a whole heap of wasted time -- unless you want practice
>at running 'make buildworld' and so forth?
>
>  * Upgrading from 6.2 -> 7.0 directly works just fine.  I expect
>6.2 -> 7.1 would probably work too.
>
>  * It's the 6 -> 7 jump which is the big deal in terms of what you
>have to do while upgrading.  Rebuilding all of your installed ports
>will take a significant amount of time, and you're going to have
>to take the server out of action at least some of that time.
>
> Alternatively, if the aim at the moment is to track 6.4, then upgrading
> 6.2 -> 6.4 in one step will get you there pretty simply.  Just wait a
> few weeks until 6.4 is out.
>
>> Hmm In such cases, it will depend on what the server is running.
>> I'd prefer a fresh install and migrate services by hand. However,
>> upgrade from 6.4 -> 7.x should be doable.
>
> Oh, it depends on how conservative you want to be.  If you must always
> absolutely definitely have a fast back-out path in case of things going
> horribly wrong, then the thing to do is either install a new HDD and set up
> the target version of the OS on that, or split up a RAID1 mirror, update one
> half of the mirror and then resynch in the appropriate direction once your
> testing shows the update to have succeeded or not.
>
> Of course, those are more expensive and time consuming procedures than
> are usually justifiable. For general purpose use, the upgrade procedures
> described in /usr/src/UPDATING, the handbook, Colin Percival's
> daemonology.org blog and RSE's web pages at freebsd.org will basically work.
>
>> Anyway, see this: http://people.freebsd.org/~rse/upgrade/
>>
>> It's some authoritative source for upgrades.
>
> While RSE's account is factual and accurate and well worth the time
> of anyone looking into doing an upgrade, I don't believe it's /the/
> authoritative source.  He says himself: your systems will be different.
> As the perl folk say: TIMTOWTDI.
>Cheers,
>
>Matthew

Thank you, Matthew, for the time you've taken to clarify all the issues raised.
I've been living in Windoze world for some good number of days so it
also helps jog my memory/understanding of things in this 'world' of
FreeBSD:-)
Talk of the stray sheep that has just returned to the fold.


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

"Oh My God! They killed init! You Bastards!"
 --from a /. post
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Mono + .NET = ?

2008-09-21 Thread Gintautas Simkus
Hey,

here's the situation. I am going to be part of a team which develops some
application with C#. I am pretty sure all but me will be using .NET
framework under Windows. I want to stick with Unix on the other hand. I came
across this projects called Mono which provides .NET compatible framework
for Unix operating systems. From little reading I've got an impression that
C# is 'fully' implemented in Mono and that's all I am interested in. So I
would guess the answer to the  question that follows is 'yes', but I want to
be sure:

Will there be no problems running the application on .NET platform if some
of the classes are compiled with open source C# compiler (MCS) which comes
with Mono while the rest with the Window's equavalent C# compiler?

It would be especially nice to hear from someone who'd gone through a
similar process already.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


looking for a disk partition ("slice") editor

2008-09-21 Thread Scott Bennett
 I would like to find a disk partition ("slice" in FreeBSD nomenclature)
editor that runs under FreeBSD that is able to deal properly with logical
partition entries chained from an extended partition entry in the Master Boot
Record.  fdisk(8) appears to be too primitive to understand logical partitions.
 Until now I have gotten by with a stand-alone partition editor, but I now
need to be able to do such operations without shutting down my FreeBSD system
to do them.  If anyone knows of such a utiility for use in FreeBSD, please
let me know.  (Please Cc: me on any replies, too.)
 Thanks much!


  Scott Bennett, Comm. ASMELG, CFIAG
**
* Internet:   bennett at cs.niu.edu  *
**
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."   *
*-- Gov. John Hancock, New York Journal, 28 January 1790 *
**
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Audio Production

2008-09-21 Thread marshc

Nash Nipples wrote:
 
  

m cassar schrieb:

  

Does anyone here use freebsd for serious


audio/video production work? or


know if there is some kind of community?



Didn't try it, but http://ardour.org/ looks like
  

what you are looking for.


See http://www.freshports.org/audio/ardour/

--
Timm

  

thanks but this wasn't exactly what i was asking about
in the original post.
ardour *is* in ports, as with most other good open-source
audio applications
( and propbably the best program out there - though i'm
new) but what i was
looking for is related to custom/optimizted kernels either
known as
low-latency or real-time kernels in linux; to help reduce
recording
latencies, audio dropouts, etc. like studio 64 rt-kernel on
ubuntu, planet
ccrma on fedora.

what i was trying to find out is whether there is such
projects on freebsd,
or more importantly, if freebsd kernel had the potential to
be similarly
optimized. (not that i myself have any expertise, [hence my
question])

on the other hand, if you are interested in audio programs,
ardour is good,
hydrogen is good and fun. not to mention easy.



i have experienced a delay when i was recording voice and sort of laying it on 
a track. but removing a few miliseconds off the beginning didnt make a big 
trouble for me and thats when i have discovered this phenomenom but thought it 
was rather because my sound card is old. is this any close to something that 
you mean?
  
it is related, but what you mentiioned is a slightly different area in 
computer audio than what i mean with respect  to kernels.


An old card is likely to produce greater delays under any setup, but 
that is more a factor of its capabilities and quality of its parts than 
just purely because it is old.  If you were using JACK (linux) or ASIO 
(windows) the delay could be minimized to some extent, but no miracles 
there, and that is about the most you can do.


i'm only at entry level on audio engineering, but in a nutshell here is 
an overview to explain your delay, (latency) and my kernel related question.


first of all, computers are always prone to latencies, or delays, 
because of the time it takes the cpu to process  the audio data, 
read/write from disks, convert between audio signals and digital data, 
etc, etc. All take up cycles and valuable milliseconds.


when playing normal music like mp3s in itunes and such, you wouldn't 
notice any delay because the data is simply read from disk and output 
thru speackers as they come, though technically there would be a short 
period between the time the data was read off disk and then heard out 
the speakers. in audio production that slight delay, or latency, is 
everything, especially when you have multi-track recording and syncing 
with external gear. (latencies range from under 10ms to over 100ms)


Latency would be more noticeable, say when recording, and would sound 
like an echo if you were talking into a mic and listening thru 
headphones or speakers, on an average setup at least. roughly becase of 
the time needed to process the signal.


Also, If you were to use a midi controller/keyboard connected via midi 
to play a software instrument, you would notice a delay between the time 
you hit a key on the keyboard and when you actually heard the sound. The 
key press transmittes midi data to the software instrument, the software 
triggers the desired sound immediately, but there is that slight delay 
to create the sound and push it out the speakers.


Audio interfaces can have a latency around 5ms, which is very good,  yet 
may still be faintly noticable, and that also depends on the power of 
the pc and the actual load ( number of tracks, effects, instruments 
playing), and latency is still a *phenomenon* and something you *have to 
live with* in computer audio production; as opposed to hardware gear 
like samplers, drum machines, synths, etc. and short of buying a $10K 
protools "soundcard". a _hobbyist_ audio interface can be decent with 
latencies under 20ms.


In application, multi-track  recording programa like Cubase, Logic, 
Ardour, Ableton, Cakewalk etc, do fairly well (with a good setup) when 
all material is confined within the computer and not communicating with 
the outside world.  When you are recording say a vocalist, chances are 
you're playing back all the other tracks (drums, bass, etc) at the same 
time for the vocalist to listen and sing to, plus possible playing back 
the vocalist with added effects likde reverb; a mixture of delays going 
in, and the same amount going out.


Simillarly, if you had one or more audio tracks, (playing back audio 
recordings or samples off hard disk), and had any midi track there being 
sent to external hardware like a drum machine ,to play drum parts from 
there, or a hardware synth playing a bass or pad track,  then the 
practice is to compensate for latency by having the midi track play or 
transmit with a 5ms delay, to give the computer tha

Re: Segmentation fault when free

2008-09-21 Thread Nash Nipples
> > can someone please explain to me what happens to the
> allocated memory
> > called within a function assigned to its local pointer
> after this function
> > ends
> 
> Ok - let's see if I get this right:
> - the allocated memory
> - called within a function
> - assigned to a local pointer
> 
> Any malloc'ed memory is application global accessible.
> Assigning a pointer to 
> a variable doesn't allocate memory (the compiler and
> runtime libraries 
> already setup storage for the variable, at declaration
> time). So, I have no 
> idea what you mean with the "called within a
> function" part.
> 
> -- 
> Mel
> 
thanks for making it even more clear to me.
actually what i meant was this:

void function(void){
  char *p;
  p = malloc(1);
}
int main(void){
  while (1){
function();  
/* in the end of this function function()
 * the memory is still allocated
 * even when the only pointer who knows its address
 * does not longer exist
 * which is why we have to free() the memory
 * during the application runtime
 * to avoid it from growing to ridiculous size
 */
  }
}
but even if you kill -SEGV `pgrep this` (Segmentation fault (core dumped) the 
memory is getting freed anyway (presumably by the glorious kernel). which you 
can see dynamicly by typing top in the console.

in other words segmentation fault when free() is not a scary thing here. it is 
a matter of style and the way to find own errors. or maybe reading warnings if 
you compile with the flags -ansi -pedantic 

oh and by the way:

> char *
> function(void)
> {
> char buffer[100];
> 
> return buffer;
> }

that is an easier approach because you get warned on passing an address to a 
local variable


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


Re: looking for a disk partition ("slice") editor

2008-09-21 Thread Jerry McAllister
On Sun, Sep 21, 2008 at 07:00:39AM -0500, Scott Bennett wrote:

>  I would like to find a disk partition ("slice" in FreeBSD nomenclature)
> editor that runs under FreeBSD that is able to deal properly with logical
> partition entries chained from an extended partition entry in the Master Boot
> Record.  fdisk(8) appears to be too primitive to understand logical 
> partitions.

I am not clear about what you are trying to do, but fdisk should not 
be mucking with so-called logical partitions.   FreeBSD does not 
really deal with 'logical' partitions'.Anyway, they are more akin
to FreeBSD partitions than slices.   Slices are the primary division
and partitions are the subdivisions.fdisk handles creating slices 
and MBRs.  For partitions you use bsdlabel and it handles the boot
record that the MBR hands control off to.

>  Until now I have gotten by with a stand-alone partition editor, but I now
> need to be able to do such operations without shutting down my FreeBSD system
> to do them.  If anyone knows of such a utiility for use in FreeBSD, please
> let me know.  (Please Cc: me on any replies, too.)

Generally, you don't want to mess with slices or in MS terminology "primary
partitions" with the system running - even if you can find a way.

jerry

>  Thanks much!
> 
> 
>   Scott Bennett, Comm. ASMELG, CFIAG
> **
> * Internet:   bennett at cs.niu.edu  *
> **
> * "A well regulated and disciplined militia, is at all times a good  *
> * objection to the introduction of that bane of all free governments *
> * -- a standing army."   *
> *-- Gov. John Hancock, New York Journal, 28 January 1790 *
> **
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Segmentation fault when free

2008-09-21 Thread Giorgos Keramidas
On Sun, 21 Sep 2008 05:57:06 -0700 (PDT), Nash Nipples <[EMAIL PROTECTED]> 
wrote:
> thanks for making it even more clear to me.
> actually what i meant was this:
>
> void function(void){
>   char *p;
>   p = malloc(1);
> }
> int main(void){
>   while (1){
> function();
> /* in the end of this function function()
>  * the memory is still allocated
>  * even when the only pointer who knows its address
>  * does not longer exist
>  * which is why we have to free() the memory
>  * during the application runtime
>  * to avoid it from growing to ridiculous size
>  */
>   }
> }

This won't throw SEGV in free() because, well, it never calls free(),
but it leaks memory like mad :)

> but even if you kill -SEGV `pgrep this` (Segmentation fault (core
> dumped) the memory is getting freed anyway (presumably by the glorious
> kernel). which you can see dynamicly by typing top in the console.

Yes.  When a process terminates, the kernel dismantles and releases all
its 'mapped memory areas', including the heap where malloc()'ed memory
comes from.

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


Re: looking for a disk partition ("slice") editor

2008-09-21 Thread Scott Bennett
 On Sun, 21 Sep 2008 09:25:19 -0400 Jerry McAllister <[EMAIL PROTECTED]>
wrote:
>On Sun, Sep 21, 2008 at 07:00:39AM -0500, Scott Bennett wrote:
>
>>  I would like to find a disk partition ("slice" in FreeBSD nomenclature)
>> editor that runs under FreeBSD that is able to deal properly with logical
>> partition entries chained from an extended partition entry in the Master Boot
>> Record.  fdisk(8) appears to be too primitive to understand logical 
>> partitions.
>
>I am not clear about what you are trying to do, but fdisk should not 
>be mucking with so-called logical partitions.   FreeBSD does not 

 As I wrote already, I do know that fdisk(8) does not understand
logical partitions, so forget fdisk.  I'm looking for something that
does understand them.

>really deal with 'logical' partitions'.Anyway, they are more akin

 It certainly does.  I've been using them since I first installed
FreeBSD 5.2.1 in 2005, and FreeBSD understands them just fine.  The
FreeBSD boot loader is another matter, but it's probably not big enough
to be that smart.

>to FreeBSD partitions than slices.   Slices are the primary division

 No, they are not.  They exist because the design for the Master Boot
Record only has four entries, which originally limited one to having no
more than four disk partitions.  If one needs more partitions than four,
then one must use one of the four MBR entries as an entry for the Extended
Partition, which anchors a chain of small descriptors that each contain
a) a logical partition entry and b) a pointer to the next descriptor in
the chain.  A disk partition that has a type of 165 (IIRC) is a FreeBSD
slice.  It matters not whether that partition is a primary partition or a
logical partition.  The kernel is smart enough to understand the logical
partition chain.

>and partitions are the subdivisions.fdisk handles creating slices 

 A FreeBSD partition is a subdivision of a FreeBSD slice, which is
just a disk partition, either primary or logical, of type 165.

>and MBRs.  For partitions you use bsdlabel and it handles the boot
>record that the MBR hands control off to.

 Yes, yes.  So what?  I need something smarter than fdisk, so that
I don't have to shut down the system in order to rearrange disk partitions
on a disk that does have a logical partition chain.  fdisk will wipe out
the chain, rather than giving me any way to change the contents of the
chain.  Part of that chain contains several partitions holding images of
another system that I do not wish to lose at this point.
>
>>  Until now I have gotten by with a stand-alone partition editor, but I 
>> now
>> need to be able to do such operations without shutting down my FreeBSD system
>> to do them.  If anyone knows of such a utiility for use in FreeBSD, please
>> let me know.  (Please Cc: me on any replies, too.)
>
>Generally, you don't want to mess with slices or in MS terminology "primary
>partitions" with the system running - even if you can find a way.
>
 Ah, but I do.  My current problem is a case in point.  I have a drive
that I'm not currently using, but that has stuff on it I don't want to lose
(e.g., the images of another system).  I want to set it up for use.  I do not
want to shut everything down just so that I can set it up for use.  Right now
the nine or ten partitions on it include three or four (I don't remember
right now) FreeBSD slices.  (The FreeBSD slices are further subdivided into
FreeBSD partitions, but that is irrelevant because I intend to wipe out
their contents anyway.)  With the exception of the partitions holding
backup images of another system, nothing is arranged on that drive the way
I want it arranged now, so I need to be able to rearrange it without
disturbing everything else currently running on the system.  There are other
situations, too, that arise from time to time that I would like to be able
to deal with and not have to shut down FreeBSD to do that.
 Anyway, back to my original question for anyone who can help:  does
anyone know of a disk partition editor that will allow me to manipulate
the logical partitions, as well as the primary partitions, and that runs
under FreeBSD?


  Scott Bennett, Comm. ASMELG, CFIAG
**
* Internet:   bennett at cs.niu.edu  *
**
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."   *
*-- Gov. John Hancock, New York Journal, 28 January 1790 *
**
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubsc

Re: Build error while upgrading 'kdesdk-3.5.9' to 'kdesdk-3.5.10' (devel/kdesdk3)

2008-09-21 Thread Michal Petrucha
Replying to myself...

> Hello everybody,
> 
> I get an error while upgrading the port mentioned in $subj. When I run
> # portupgrade -c devel/kdesdk3
> it starts compiling, but after a while it always crashes at this
> point:
> 
> -
> Making all in libgettext
> gmake[4]: Entering directory 
> `/usr/ports/devel/kdesdk3/work/kdesdk-3.5.10/kbabel/common/libgettext'
> flex -+ -opofiles.cc ./pofiles.ll
> /bin/sh /usr/local/bin/libtool --silent --tag=CXX   --mode=compile c++ 
> -DHAVE_CONFIG_H -I. -I../../..   -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT  
>  -I/usr/local/include -I/usr/local/include  -I/usr/local/include -D_GETOPT_H 
> -D_THREAD_SAFE   -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG 
> -DNO_DEBUG -O2 -O2 -fno-strict-aliasing -pipe -march=athlon 
> -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common 
> -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT 
> -DQT_NO_TRANSLATION  -MT pofiles.lo -MD -MP -MF .deps/pofiles.Tpo -c -o 
> pofiles.lo pofiles.cc
> pofiles.cc:450:5: warning: "YY_STACK_USED" is not defined
> pofiles.cc:1518:5: warning: "YY_MAIN" is not defined
[...]
> gmake[1]: Leaving directory `/usr/ports/devel/kdesdk3/work/kdesdk-3.5.10'
> gmake: *** [all] Error 2
> *** Error code 2
> 
> Stop in /usr/ports/devel/kdesdk3.
> ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.2946.0 
> env UPGRADE_TOOL=portupgrade UPGRADE_PORT=kdesdk-3.5.9 UPGRADE_PORT_VER=3.5.9 
> make
> ** Fix the problem and try again.
> -
> 
> Since it crashes while compiling gettext support, I tried to rebuild
> devel/gettext, but with no success. On friday I'll probably try
> # portupgrade -Rf devel/kdesdk3
> as I am getting really desperate, but if anybody has any better
> suggestion, I'd be really thankful. (Rebuilding all of the
> dependencies will be really painful since I am getting ZFS deadlocks
> on a weekly basis, depending on the uptime, and I won't have physical
> access to the machine from morning until afternoon in case it
> hangs...)

All right, so I tried rebuilding all ports devel/kdesdk3 depends on
but in the end I got the same error message. So... Anybody has an idea
what's going on?

> Thanks in advance.
> 
> Michal Petrucha

-- 
(-K JohnNy alias Partial Derivative ∂
[home] http://johnny64.fixinko.sk/
[icq] 338328204 [abandoned]
[jabber] [EMAIL PROTECTED]
[skype] JohnNy64-konik [abandoned]


pgpEIzLAIkMnI.pgp
Description: PGP signature


Error building editors/openoffice.org-2

2008-09-21 Thread Michal Petrucha
Hello everybody

I just tried building OpenOffice.org 2.4.1_2 from ports. All
dependencies are already installed. After some minutes of compilation
the build crashed with

~~
Disabling crypto support
Enabling debugger
checking for libxml libraries >= 2.6.17... test: 1: unexpected operator
configure: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/.
dmake:  Error code 1, while making 
'unxfbsdi.pro/misc/build/so_configured_so_libxslt'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making 
/usr/ports/editors/openoffice.org-2/work/OOH680_m17/libxslt
dmake:  Error code 1, while making 'build_instsetoo_native'
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall.23991.0 
env make LOCALIZED_LANG=alllangs -DWITH_TTF_BYTECODE_ENABLED -DWITH_KDE
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! editors/openoffice.org-2  (checksum mismatch)
~~

The whole script is at
http://johnny64.fixinko.sk/openoffice.org-2-2008-09-21.gz

Any help would be appreciated.
Michal Petrucha

-- 
(-K JohnNy alias Partial Derivative ∂
[home] http://johnny64.fixinko.sk/
[icq] 338328204 [abandoned]
[jabber] [EMAIL PROTECTED]
[skype] JohnNy64-konik [abandoned]


pgpWY3zXwDymw.pgp
Description: PGP signature


Re: Audio Production

2008-09-21 Thread Nash Nipples
> > i have experienced a delay when i was recording voice
> and sort of laying it on a track. but removing a few
> miliseconds off the beginning didnt make a big trouble for
> me and thats when i have discovered this phenomenom but
> thought it was rather because my sound card is old. is this
> any close to something that you mean?
> >   
> it is related, but what you mentiioned is a slightly
> different area in 
> computer audio than what i mean with respect  to kernels.
> 
> An old card is likely to produce greater delays under any
> setup, but 
> that is more a factor of its capabilities and quality of
> its parts than 
> just purely because it is old.  If you were using JACK
> (linux) or ASIO 
> (windows) the delay could be minimized to some extent, but
> no miracles 
> there, and that is about the most you can do.
> 
> i'm only at entry level on audio engineering, but in a
> nutshell here is 
> an overview to explain your delay, (latency) and my kernel
> related question.
> 
> first of all, computers are always prone to latencies, or
> delays, 
> because of the time it takes the cpu to process  the audio
> data, 
> read/write from disks, convert between audio signals and
> digital data, 
> etc, etc. All take up cycles and valuable milliseconds.
> 
> when playing normal music like mp3s in itunes and such, you
> wouldn't 
> notice any delay because the data is simply read from disk
> and output 
> thru speackers as they come, though technically there would
> be a short 
> period between the time the data was read off disk and then
> heard out 
> the speakers. in audio production that slight delay, or
> latency, is 
> everything, especially when you have multi-track recording
> and syncing 
> with external gear. (latencies range from under 10ms to
> over 100ms)
> 
> Latency would be more noticeable, say when recording, and
> would sound 
> like an echo if you were talking into a mic and listening
> thru 
> headphones or speakers, on an average setup at least.
> roughly becase of 
> the time needed to process the signal.
> 
> Also, If you were to use a midi controller/keyboard
> connected via midi 
> to play a software instrument, you would notice a delay
> between the time 
> you hit a key on the keyboard and when you actually heard
> the sound. The 
> key press transmittes midi data to the software instrument,
> the software 
> triggers the desired sound immediately, but there is that
> slight delay 
> to create the sound and push it out the speakers.
> 
> Audio interfaces can have a latency around 5ms, which is
> very good,  yet 
> may still be faintly noticable, and that also depends on
> the power of 
> the pc and the actual load ( number of tracks, effects,
> instruments 
> playing), and latency is still a *phenomenon* and something
> you *have to 
> live with* in computer audio production; as opposed to
> hardware gear 
> like samplers, drum machines, synths, etc. and short of
> buying a $10K 
> protools "soundcard". a _hobbyist_ audio
> interface can be decent with 
> latencies under 20ms.
> 
> In application, multi-track  recording programa like
> Cubase, Logic, 
> Ardour, Ableton, Cakewalk etc, do fairly well (with a good
> setup) when 
> all material is confined within the computer and not
> communicating with 
> the outside world.  When you are recording say a vocalist,
> chances are 
> you're playing back all the other tracks (drums, bass,
> etc) at the same 
> time for the vocalist to listen and sing to, plus possible
> playing back 
> the vocalist with added effects likde reverb; a mixture of
> delays going 
> in, and the same amount going out.
> 
> Simillarly, if you had one or more audio tracks, (playing
> back audio 
> recordings or samples off hard disk), and had any midi
> track there being 
> sent to external hardware like a drum machine ,to play drum
> parts from 
> there, or a hardware synth playing a bass or pad track, 
> then the 
> practice is to compensate for latency by having the midi
> track play or 
> transmit with a 5ms delay, to give the computer that little
> time to 
> process the audio, and so the whole mix would sound in sync
> (since midi 
> to external gear to sound heard would be instant). 5ms for
> a sytem with 
> 5ms latency, 20ms would require 20, 100 would require 100,
> etc.
> 
> There is a lot more to computer audio production, but
> basically the  
> efforts are always, or mainly, to reduce that latency as
> much as 
> possible. Better audio interfaces not only have better
> components and 
> AD/DA converters, they are also intented to take as much
> load off the 
> cpu as possible, and handle what they can themselves. Also,
> the more 
> power a computer has never eliminates latency or delay
> completely, it 
> just generally means you can play more tracks at once and
> use low 
> latencies more comfortable without dropouts, glitches,
> clicks and pops.
> 
> ( Latency is more or less adjustable by configuring the
> audio buffer 
> size and the number of said

silicon Graphics hardware

2008-09-21 Thread Tim Kellers
I googled a bit this morning and, except for some old (Freebsd 4.x) 
posts, I didn'r see anything terribly relevant, but does FreeBSD run on 
any Silicon Graphics hardware?  I've heard that (maybe) an Ubuntu  
distro _might_ run if the hardware was booted/configged with the Irix 
Foundations disks.  The Information Systems department where I work is 
aswim in some SGI hardware that they'd like to relocate and reclaim the 
space, so I'm looking for alternatives to repurpose the hardware.  Since 
I know FreeBSD better than any flavor of Linux, I'm looking for a BSD 
solution, first.


I don't, yet, have the Foundations Irix disks, so I'm looking for any 
alternative I can find.


Thanks

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


Error building editors/openoffice.org-2

2008-09-21 Thread Robert Huff

Michal Petrucha <[EMAIL PROTECTED]>:

>I just tried building OpenOffice.org 2.4.1_2 from ports. All
>dependencies are already installed. After some minutes of compilation
>the build crashed with
>
>~~
>Disabling crypto support
>Enabling debugger
>checking for libxml libraries >=3D 2.6.17... test: 1: unexpected operator
>configure: error: Could not find libxml2 anywhere, check 
> ftp://xmlsoft.org/.
>dmake:  Error code 1, while making 
> 'unxfbsdi.pro/misc/build/so_configured_s=
>o_libxslt'
>---* tg_merge.mk *---
>
>ERROR: Error 65280 occurred while making 
> /usr/ports/editors/openoffice.org-=
>2/work/OOH680_m17/libxslt
>dmake:  Error code 1, while making 'build_instsetoo_native'
>** Command failed [exit code 1]: /usr/bin/script -qa 
> /tmp/portinstall.23991=
>=2E0 env make LOCALIZED_LANG=3Dalllangs -DWITH_TTF_BYTECODE_ENABLED 
> -DWITH_=
>KDE
>** Fix the problem and try again.
>** Listing the failed packages (-:ignored / *:skipped / !:failed)
> ! editors/openoffice.org-2  (checksum mismatch)
>~~
>
>The whole script is at
>http://johnny64.fixinko.sk/openoffice.org-2-2008-09-21.gz

See ports/98949.


Robert Huff

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


Re: looking for a disk partition ("slice") editor

2008-09-21 Thread Chad Perrin
On Sun, Sep 21, 2008 at 09:19:40AM -0500, Scott Bennett wrote:
> >
>  Ah, but I do.  My current problem is a case in point.  I have a drive
> that I'm not currently using, but that has stuff on it I don't want to lose
> (e.g., the images of another system).  I want to set it up for use.  I do not
> want to shut everything down just so that I can set it up for use.  Right now
> the nine or ten partitions on it include three or four (I don't remember
> right now) FreeBSD slices.  (The FreeBSD slices are further subdivided into
> FreeBSD partitions, but that is irrelevant because I intend to wipe out
> their contents anyway.)  With the exception of the partitions holding
> backup images of another system, nothing is arranged on that drive the way
> I want it arranged now, so I need to be able to rearrange it without
> disturbing everything else currently running on the system.  There are other
> situations, too, that arise from time to time that I would like to be able
> to deal with and not have to shut down FreeBSD to do that.
>  Anyway, back to my original question for anyone who can help:  does
> anyone know of a disk partition editor that will allow me to manipulate
> the logical partitions, as well as the primary partitions, and that runs
> under FreeBSD?

Perhaps, if there's some *good* reason why we *shouldn't* want to "mess
with slices" while the system is running, someone can explain why.  For
instance -- even if I only have one HDD in the system -- we could assume
a setup like this:

  slice
/ partition
/etc/ partition
/usr/ partition
/var/ partition
  /usr/home/ slice
  C:/ slice for MS Windows primary partition

Why, for the love of Gob and all that's Wholly, shouldn't I be able to
wipe out my MS Windows primary partition, create a BSD slice, and use the
extra space for /usr/local/share/ if I suddenly find I need the space?

I, too, would like to know if a partition/slice tool such as what Scott
seeks exists.  In fact, it would be nice to discover such a tool that not
only handles partitions/slices, but also logical/BSD partitions.

-- 
Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
Albert Camus: "An intellectual is someone whose mind watches itself."


pgp3e3w5Alinp.pgp
Description: PGP signature


Re: Audio Production

2008-09-21 Thread marshc

Nash Nipples wrote:

i have experienced a delay when i was recording voice
  

and sort of laying it on a track. but removing a few
miliseconds off the beginning didnt make a big trouble for
me and thats when i have discovered this phenomenom but
thought it was rather because my sound card is old. is this
any close to something that you mean?

  
  

it is related, but what you mentiioned is a slightly
different area in 
computer audio than what i mean with respect  to kernels.


An old card is likely to produce greater delays under any
setup, but 
that is more a factor of its capabilities and quality of
its parts than 
just purely because it is old.  If you were using JACK
(linux) or ASIO 
(windows) the delay could be minimized to some extent, but
no miracles 
there, and that is about the most you can do.


i'm only at entry level on audio engineering, but in a
nutshell here is 
an overview to explain your delay, (latency) and my kernel

related question.

first of all, computers are always prone to latencies, or
delays, 
because of the time it takes the cpu to process  the audio
data, 
read/write from disks, convert between audio signals and
digital data, 
etc, etc. All take up cycles and valuable milliseconds.


when playing normal music like mp3s in itunes and such, you
wouldn't 
notice any delay because the data is simply read from disk
and output 
thru speackers as they come, though technically there would
be a short 
period between the time the data was read off disk and then
heard out 
the speakers. in audio production that slight delay, or
latency, is 
everything, especially when you have multi-track recording
and syncing 
with external gear. (latencies range from under 10ms to

over 100ms)

Latency would be more noticeable, say when recording, and
would sound 
like an echo if you were talking into a mic and listening
thru 
headphones or speakers, on an average setup at least.
roughly becase of 
the time needed to process the signal.


Also, If you were to use a midi controller/keyboard
connected via midi 
to play a software instrument, you would notice a delay
between the time 
you hit a key on the keyboard and when you actually heard
the sound. The 
key press transmittes midi data to the software instrument,
the software 
triggers the desired sound immediately, but there is that
slight delay 
to create the sound and push it out the speakers.


Audio interfaces can have a latency around 5ms, which is
very good,  yet 
may still be faintly noticable, and that also depends on
the power of 
the pc and the actual load ( number of tracks, effects,
instruments 
playing), and latency is still a *phenomenon* and something
you *have to 
live with* in computer audio production; as opposed to
hardware gear 
like samplers, drum machines, synths, etc. and short of
buying a $10K 
protools "soundcard". a _hobbyist_ audio
interface can be decent with 
latencies under 20ms.


In application, multi-track  recording programa like
Cubase, Logic, 
Ardour, Ableton, Cakewalk etc, do fairly well (with a good
setup) when 
all material is confined within the computer and not
communicating with 
the outside world.  When you are recording say a vocalist,
chances are 
you're playing back all the other tracks (drums, bass,
etc) at the same 
time for the vocalist to listen and sing to, plus possible
playing back 
the vocalist with added effects likde reverb; a mixture of
delays going 
in, and the same amount going out.


Simillarly, if you had one or more audio tracks, (playing
back audio 
recordings or samples off hard disk), and had any midi
track there being 
sent to external hardware like a drum machine ,to play drum
parts from 
there, or a hardware synth playing a bass or pad track, 
then the 
practice is to compensate for latency by having the midi
track play or 
transmit with a 5ms delay, to give the computer that little
time to 
process the audio, and so the whole mix would sound in sync
(since midi 
to external gear to sound heard would be instant). 5ms for
a sytem with 
5ms latency, 20ms would require 20, 100 would require 100,

etc.

There is a lot more to computer audio production, but
basically the  
efforts are always, or mainly, to reduce that latency as
much as 
possible. Better audio interfaces not only have better
components and 
AD/DA converters, they are also intented to take as much
load off the 
cpu as possible, and handle what they can themselves. Also,
the more 
power a computer has never eliminates latency or delay
completely, it 
just generally means you can play more tracks at once and
use low 
latencies more comfortable without dropouts, glitches,

clicks and pops.

( Latency is more or less adjustable by configuring the
audio buffer 
size and the number of said buffers to find the best
setting on your 
system. That is, you stop at the lowest setting that works
without 
glitches and gaps in the music playback or recording. The
best way to 
demonstrate or understand that is by using prope

Re: looking for a disk partition ("slice") editor

2008-09-21 Thread Nash Nipples
> >  Ah, but I do.  My current problem is a case in
> point.  I have a drive
> > that I'm not currently using, but that has stuff
> on it I don't want to lose
> > (e.g., the images of another system).  I want to set
> it up for use.  I do not
> > want to shut everything down just so that I can set it
> up for use.  Right now
> > the nine or ten partitions on it include three or four
> (I don't remember
> > right now) FreeBSD slices.  (The FreeBSD slices are
> further subdivided into
> > FreeBSD partitions, but that is irrelevant because I
> intend to wipe out
> > their contents anyway.)  With the exception of the
> partitions holding
> > backup images of another system, nothing is arranged
> on that drive the way
> > I want it arranged now, so I need to be able to
> rearrange it without
> > disturbing everything else currently running on the
> system.  There are other
> > situations, too, that arise from time to time that I
> would like to be able
> > to deal with and not have to shut down FreeBSD to do
> that.
> >  Anyway, back to my original question for anyone
> who can help:  does
> > anyone know of a disk partition editor that will allow
> me to manipulate
> > the logical partitions, as well as the primary
> partitions, and that runs
> > under FreeBSD?
> 
> Perhaps, if there's some *good* reason why we
> *shouldn't* want to "mess
> with slices" while the system is running, someone can
> explain why.  For
> instance -- even if I only have one HDD in the system -- we
> could assume
> a setup like this:
> 
>   slice
> / partition
> /etc/ partition
> /usr/ partition
> /var/ partition
>   /usr/home/ slice
>   C:/ slice for MS Windows primary partition
> 
> Why, for the love of Gob and all that's Wholly,
> shouldn't I be able to
> wipe out my MS Windows primary partition, create a BSD
> slice, and use the
> extra space for /usr/local/share/ if I suddenly find I need
> the space?
> 
> I, too, would like to know if a partition/slice tool such
> as what Scott
> seeks exists.  In fact, it would be nice to discover such a
> tool that not
> only handles partitions/slices, but also logical/BSD
> partitions.
> 
> -- 
im not sure but i think i have managed to shrink something with this
http://www.gnu.org/software/parted/download.shtml
please do read the documentation and disclaimer beforehand


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


Re: silicon Graphics hardware

2008-09-21 Thread Erik Trulsson
On Sun, Sep 21, 2008 at 12:48:37PM -0400, Tim Kellers wrote:
> I googled a bit this morning and, except for some old (Freebsd 4.x) 
> posts, I didn'r see anything terribly relevant, but does FreeBSD run on 
> any Silicon Graphics hardware?  I've heard that (maybe) an Ubuntu  
> distro _might_ run if the hardware was booted/configged with the Irix 
> Foundations disks.  The Information Systems department where I work is 
> aswim in some SGI hardware that they'd like to relocate and reclaim the 
> space, so I'm looking for alternatives to repurpose the hardware.  Since 
> I know FreeBSD better than any flavor of Linux, I'm looking for a BSD 
> solution, first.
> 
> I don't, yet, have the Foundations Irix disks, so I'm looking for any 
> alternative I can find.

FreeBSD does not (AFAIK) run on any Silicon Graphics machines.
NetBSD is however capable of running on several Silicon Graphics machines,
so you might take a look at that and see if it supports the particular
hardware you have (it probably does, but no guarantees.)






-- 

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


FSJ clone

2008-09-21 Thread Tsu-Fan Cheng
Hi,
   is there a similar program like FSJ, file split/join tool on
freebsd? thanks!!

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


Re: looking for a disk partition ("slice") editor

2008-09-21 Thread Mel
On Sunday 21 September 2008 18:50:09 Chad Perrin wrote:

> Perhaps, if there's some *good* reason why we *shouldn't* want to "mess
> with slices" while the system is running, someone can explain why.

From geom(4):
 Several flags are provided for tracing GEOM operations and unlocking pro-
 tection mechanisms via the kern.geom.debugflags sysctl.  All of these
 flags are off by default, and great care should be taken in turning them
 on.

 0x10 (allow foot shooting)
   Allow writing to Rank 1 providers.  This would, for example, allow
   the super-user to overwrite the MBR on the root disk or write ran-
   dom sectors elsewhere to a mounted disk.  The implications are
   obvious.

There should be several partition editors in sysutils/*, so the only thing you 
really need is to set kern.geom.debugflags to 16.
A quick scan of gpart(8) man page might have support for logical paritions, 
but I'm not an expert:
 add  Add a new partition to the partitioning scheme given by geom.
  The partition begins on the logical block address given by the
  -b start option.  Its size is expressed in logical block numbers
  and given by the -s size option.  The type of the partition is
  given by the -t type option.  Partition types are discussed in
  the section entitled "Partition Types".



-- 
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 "[EMAIL PROTECTED]"


Re: Custom Kernel Problem

2008-09-21 Thread Mel
On Sunday 21 September 2008 03:50:36 Michael Gass wrote:
> Installed FreeBsd 7.0 a few weeks ago in a Pentium III
> with just 128 M of memory. Recently compiled a custom kernel.
> It seems to work ok, but dmesg gives the following at the end:
>
> Trying to mount root from ufs:/dev/ad0s1a
> pid 438 (kldstat), uid 0: exited on signal 11 (core dumped)
> pid 547 (kldstat), uid 0: exited on signal 11 (core dumped)
> pid 553 (kldstat), uid 0: exited on signal 11 (core dumped)

This is invoked by /etc/rc.d/* system. Do a grep for kldstat which scripts use 
it and maybe you can work out from there, which kernel modules cause the 
problem.
Can you run kldstat from console?

-- 
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 "[EMAIL PROTECTED]"


Re: FSJ clone

2008-09-21 Thread Wojciech Puchar

man split
man cat


On Sun, 21 Sep 2008, Tsu-Fan Cheng wrote:


Hi,
  is there a similar program like FSJ, file split/join tool on
freebsd? thanks!!

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



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


Re: FSJ clone

2008-09-21 Thread Tim Kellers

For media files, there is also lxsplit in ports.
/usr/ports/sysutils/lxsplit

Tim


Wojciech Puchar wrote:

man split
man cat


On Sun, 21 Sep 2008, Tsu-Fan Cheng wrote:


Hi,
  is there a similar program like FSJ, file split/join tool on
freebsd? thanks!!

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




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





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


Re: Segmentation fault when free

2008-09-21 Thread Mel
On Sunday 21 September 2008 14:57:06 Nash Nipples wrote:
> > > can someone please explain to me what happens to the
> >
> > allocated memory
> >
> > > called within a function assigned to its local pointer
> >
> > after this function
> >
> > > ends
> >
> > Ok - let's see if I get this right:
> > - the allocated memory
> > - called within a function
> > - assigned to a local pointer
> >
> > Any malloc'ed memory is application global accessible.
> > Assigning a pointer to
> > a variable doesn't allocate memory (the compiler and
> > runtime libraries
> > already setup storage for the variable, at declaration
> > time). So, I have no
> > idea what you mean with the "called within a
> > function" part.
> >
> > --
> > Mel
>
> thanks for making it even more clear to me.
> actually what i meant was this:
>
> void function(void){
>   char *p;
>   p = malloc(1);
> }
> int main(void){
>   while (1){
> function();
> /* in the end of this function function()
>  * the memory is still allocated
>  * even when the only pointer who knows its address
>  * does not longer exist
>  * which is why we have to free() the memory
>  * during the application runtime
>  * to avoid it from growing to ridiculous size
>  */
>   }
> }

Right, this is one of the annoyances of C-programming "Who still knows where 
my pointer is". You can use a general rule though:
If I don't return this pointer, and I don't assign this pointer to a 
parameter, and I don't assign this pointer to a global variable, I should 
free this pointer myself.
(Yes yes, malloc'd static storage - new can of worms).
-- 
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 "[EMAIL PROTECTED]"


Re: FSJ clone

2008-09-21 Thread Daniel Bye
On Sun, Sep 21, 2008 at 03:25:44PM -0400, Tsu-Fan Cheng wrote:
> Hi,
>is there a similar program like FSJ, file split/join tool on
> freebsd? thanks!!

split(1) and cat(1)

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgplzQMR6i9DW.pgp
Description: PGP signature


Re: Build error while upgrading 'kdesdk-3.5.9' to 'kdesdk-3.5.10' (devel/kdesdk3)

2008-09-21 Thread Mel
On Sunday 21 September 2008 16:51:43 Michal Petrucha wrote:
> Replying to myself...
>
> > Hello everybody,
> >
> > I get an error while upgrading the port mentioned in $subj. When I run
> > # portupgrade -c devel/kdesdk3
> > it starts compiling, but after a while it always crashes at this
> > point:
> >
> > -
> > Making all in libgettext
> > gmake[4]: Entering directory
> > `/usr/ports/devel/kdesdk3/work/kdesdk-3.5.10/kbabel/common/libgettext'
> > flex -+ -opofiles.cc ./pofiles.ll
> > /bin/sh /usr/local/bin/libtool --silent --tag=CXX   --mode=compile c++
> > -DHAVE_CONFIG_H -I. -I../../..   -D_THREAD_SAFE -pthread
> > -DQT_THREAD_SUPPORT   -I/usr/local/include -I/usr/local/include 
> > -I/usr/local/include -D_GETOPT_H -D_THREAD_SAFE   -Wno-long-long -Wundef
> > -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -fno-strict-aliasing
> > -pipe -march=athlon -Wno-non-virtual-dtor -fno-exceptions -fno-check-new
> > -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL
> > -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT pofiles.lo -MD -MP -MF
> > .deps/pofiles.Tpo -c -o pofiles.lo pofiles.cc pofiles.cc:450:5: warning:
> > "YY_STACK_USED" is not defined
> > pofiles.cc:1518:5: warning: "YY_MAIN" is not defined
>
> [...]
>
> > gmake[1]: Leaving directory `/usr/ports/devel/kdesdk3/work/kdesdk-3.5.10'
> > gmake: *** [all] Error 2
> > *** Error code 2
> >
> > Stop in /usr/ports/devel/kdesdk3.
> > ** Command failed [exit code 1]: /usr/bin/script -qa
> > /tmp/portupgrade.2946.0 env UPGRADE_TOOL=portupgrade
> > UPGRADE_PORT=kdesdk-3.5.9 UPGRADE_PORT_VER=3.5.9 make ** Fix the problem
> > and try again.
> > -
> >
> > Since it crashes while compiling gettext support, I tried to rebuild
> > devel/gettext, but with no success. On friday I'll probably try
> > # portupgrade -Rf devel/kdesdk3
> > as I am getting really desperate, but if anybody has any better
> > suggestion, I'd be really thankful. (Rebuilding all of the
> > dependencies will be really painful since I am getting ZFS deadlocks
> > on a weekly basis, depending on the uptime, and I won't have physical
> > access to the machine from morning until afternoon in case it
> > hangs...)
>
> All right, so I tried rebuilding all ports devel/kdesdk3 depends on
> but in the end I got the same error message. So... Anybody has an idea
> what's going on?

Did you previously have kde-4 on this machine? ldconfig -r |grep gettext 
should show a /usr/local/kde4/../libgettext.so, but that isn't usuable, so 
new port builds will see 'a libgettext', so wont install gettext, but kde's 
configure finds it is not usuable, so will default to it's internal copy of 
gettext, which doesn't compile cleanly.
cd /usr/ports/devel/kdesdk
${EDITOR} `make -V WRKSRC`/config.log
that should show hints why it does not find gettext usable.

(Yep, been bitten by it).

-- 
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 "[EMAIL PROTECTED]"


Re: lokking for a disk partition editor

2008-09-21 Thread Michel Talon
>  I would like to find a disk partition ("slice" in FreeBSD
> nomenclature)
> editor that runs under FreeBSD that is able to deal properly with
> logical
> partition entries chained from an extended partition entry in the Master
> Boot
> Record.  fdisk(8) appears to be too primitive to understand logical
> partitions.

/usr/ports/sysutils/linuxfdisk
will do the job no problem. This FreeBSD port provides fdisk, cfdisk and 
sfdisk fromLinux, ported to FreeBSD. In turn FreeBSD can make use of
logical partitions.


-- 

Michel TALON

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


Re: FSJ clone

2008-09-21 Thread Wojciech Puchar

what do you mean "media file"?


On Sun, 21 Sep 2008, Tim Kellers wrote:


For media files, there is also lxsplit in ports.
/usr/ports/sysutils/lxsplit

Tim


Wojciech Puchar wrote:

man split
man cat


On Sun, 21 Sep 2008, Tsu-Fan Cheng wrote:


Hi,
  is there a similar program like FSJ, file split/join tool on
freebsd? thanks!!

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




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







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


Re: FSJ clone

2008-09-21 Thread Tim Kellers
multimedia files.  It works very well when the target (or source) file 
is a large multimedia file that needs to be transmitted in small 
sections and reassembled.
I've had mixed results using it to split up and re-join large text files 
like log files or /var/mail/username files.


Wojciech Puchar wrote:

what do you mean "media file"?


On Sun, 21 Sep 2008, Tim Kellers wrote:


For media files, there is also lxsplit in ports.
/usr/ports/sysutils/lxsplit

Tim


Wojciech Puchar wrote:

man split
man cat


On Sun, 21 Sep 2008, Tsu-Fan Cheng wrote:


Hi,
  is there a similar program like FSJ, file split/join tool on
freebsd? thanks!!

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




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







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





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


Re: FSJ clone

2008-09-21 Thread Tsu-Fan Cheng
i try cat, but it doesn't seem right, The files i download are
components of a movie, but after I cat them, mplayer can't read them.
also the original post showed password is required when putting files
together.

thanks

TFC

On Sun, Sep 21, 2008 at 4:13 PM, Wojciech Puchar
<[EMAIL PROTECTED]> wrote:
> what do you mean "media file"?
>
>
> On Sun, 21 Sep 2008, Tim Kellers wrote:
>
>> For media files, there is also lxsplit in ports.
>> /usr/ports/sysutils/lxsplit
>>
>> Tim
>>
>>
>> Wojciech Puchar wrote:
>>>
>>> man split
>>> man cat
>>>
>>>
>>> On Sun, 21 Sep 2008, Tsu-Fan Cheng wrote:
>>>
 Hi,
  is there a similar program like FSJ, file split/join tool on
 freebsd? thanks!!

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


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


Re: Realtek 8111C?

2008-09-21 Thread Andrew Falanga
On Saturday 20 September 2008 12:14:57 Sebastian wrote:
> Da Rock wrote:
> > I have used the compiled driver on 6.3 with success- but then I've used
> > the driver linked in a post to drivers list. 7.0 is a no go.
>
> I tried to compile the current OEM Realtek driver under (v176) on fbsd
> 6.3, but couldn't get it to build. My foo is a little thin here. :)
>
> Would you be able to send me your successful 6.3 driver? I'd like to
> test it on FreeNAS.
>
> Thanks,
> Sebastian
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

Where did you get this OEM driver?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: two nics each with dsl and the third for LAN and am not able to get any milage out of one dsl.

2008-09-21 Thread eculp


Quoting Nash Nipples <[EMAIL PROTECTED]>:




I just inherited a second dsl line and don't have a
server to connect
it too so I have it connected to a third nic that I have in
the Dell
that has the first dsl connection and the LAN.  I have been
running pf
on the two nics with nat and squid in transparent proxy
mode without
any issues. My problem is that I haven't come up with a
way to really
take advantage of the new dsl to reduce traffic on the
first.  I'm not
even dreaming of load balancing just sharing some of the
load.

I had thought about trying to get squid to use the second
connection
but my feeble attempts at redirecting it haven't made
much sense nor
have they worked. Most of our traffic is outgoing rather
than
incoming, if that helps.

I'm sure someone else must have a similar setup and are
doing better
than I.  Anything is better than nothing. Basically, I
think and hope
that I am just drowning in a glass of water.

Thanks for any suggestions.

ed


it all well depends on how many wires you need to make your boss happy.
if you feel like u can be replaced with a router maybe you should  
start making half-way websites rather than doing 2 way internet  
connections.
but there is a shoe for every foot. i actually admire the creativity  
of the pf coders. i hope you have at least 2 gateways. please don't  
drown.

http://www.openbsd.org/faq/pf/pools.html


Wow! Thanks, Nash.  This should do it.  I just read through it and had  
no idea it even existed. Especially the nat for two IP's


I'll start trying it tomorrow and will post the results.

Thanks again,

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


Re: FSJ clone

2008-09-21 Thread Mel
On Sunday 21 September 2008 23:05:48 Tim Kellers wrote:
> multimedia files.  It works very well when the target (or source) file
> is a large multimedia file that needs to be transmitted in small
> sections and reassembled.

Then it's no different then split/cat. It would be different, if it would 
handle different multimedia formats special, preserving keyframes accross 
parts, for example. FreeBSD split/cat is perfectly capable of handling large 
files and doesn't need tons of #ifdef's to be Portable(tm).
-- 
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 "[EMAIL PROTECTED]"


Where I can download the full source tree for Freebsd (MISA processor)

2008-09-21 Thread jack wang
HI,
 
Please refer me the web page to download the full source tree for freebsd (MIPS 
processor), that I could download and compile the source tree for mips cpu 
specific
 
Thanks,
 
Jack



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


Re: Where I can download the full source tree for Freebsd (MISA processor)

2008-09-21 Thread Daniel Bye
On Sun, Sep 21, 2008 at 12:36:57PM -0700, jack wang wrote:
> HI,
> 
> Please refer me the web page to download the full source tree for freebsd 
> (MIPS processor), that I could download and compile the source tree for mips 
> cpu specific

http://www.freebsd.org/platforms/mips.html

Don't expect too much, unless you want to help with the port.

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpw1eeDDibdq.pgp
Description: PGP signature


can someone help me out with the vmcore.0 information?

2008-09-21 Thread Jonathan Horne
i have a server that just contantly panics and reboots. its a fairly fresh 
install of 7.0-p4.

i have never had a server behave like this and i have no idea really where to 
start.  this is the first line of vmcore.0, is this pertinant?

vmcore.0:sys/i386/i386/bios.c: sig '%s' from 0x%0x to 0x%0x offset %d out of 
BIOS bounds 0x%0x - 0x%0x

if anyone can tell me where to begin for troubleshooting errors like this, i 
would really appreciate the pointers.  the ISP has supposedtly already 
performed a memory check (from within the running OS tho, not a bootable 
memtest86 disk, which the latter would have been what i preferred...).

thanks,
Jonathan



  

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


Re: can someone help me out with the vmcore.0 information?

2008-09-21 Thread Mel
On Monday 22 September 2008 00:47:18 Jonathan Horne wrote:
> i have a server that just contantly panics and reboots. its a fairly fresh
> install of 7.0-p4.
>
> i have never had a server behave like this and i have no idea really where
> to start.  this is the first line of vmcore.0, is this pertinant?
>
> vmcore.0:sys/i386/i386/bios.c: sig '%s' from 0x%0x to 0x%0x offset %d out
> of BIOS bounds 0x%0x - 0x%0x
>
> if anyone can tell me where to begin for troubleshooting errors like this,
> i would really appreciate the pointers.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.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 "[EMAIL PROTECTED]"


Re: silicon Graphics hardware

2008-09-21 Thread David Kelly


On Sep 21, 2008, at 2:23 PM, Erik Trulsson wrote:


FreeBSD does not (AFAIK) run on any Silicon Graphics machines.



During SGI's descent from greatness into obscurity they built Windows  
NT machines with Intel CPUs before embracing Linux. FreeBSD *should*  
run on those systems but IMO SGI performance and/or reliability  
doesn't justify their cost. OTOH if you are trying to resurrect free  
hardware then just "try it, nothing to lose." But at some point one  
must consider whether the cost of electricity to run old hardware is  
worth it.


--
David Kelly N4HHE, [EMAIL PROTECTED]

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 "[EMAIL PROTECTED]"


NFS under load-balanced apache

2008-09-21 Thread Murray Taylor
Hi all,

Looking for guidance / war stories on mounting nfs shares onto 
several load balanced web servers

Load balancer + web 1 --+
  + web 2 --+
  + web 3 --+- NFS -- Static stuff on NAS box

The NAS box will hold generated report files etc, while the web boxen 
do the dynamic stuff from the databases etc.

We are also considering storing session stuff on the NAS



Murray Taylor
Bytecraft Systems
Special Projects Engineer

P: +61 3 8710 0600
D: +61 3 9238 4275
F: +61 3 9238 4140

--
 |_|0|_|"Absence of evidence
 |_|_|0|is not evidence of absence"
 |0|0|0|Carl Sagan
---
The information transmitted in this e-mail is for the exclusive
use of the intended addressee and may contain confidential
and/or privileged material. Any review, re-transmission,
dissemination or other use of it, or the taking of any action
in reliance upon this information by persons and/or entities
other than the intended recipient is prohibited. If you
received this in error, please inform the sender and/or
addressee immediately and delete the material. 

E-mails may not be secure, may contain computer viruses and
may be corrupted in transmission. Please carefully check this
e-mail (and any attachment) accordingly. No warranties are
given and no liability is accepted for any loss or damage
caused by such matters.
---

### This e-mail message has been scanned for Viruses by Bytecraft ###
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Segmentation fault when free

2008-09-21 Thread RW
On Sun, 21 Sep 2008 05:57:06 -0700 (PDT)
Nash Nipples <[EMAIL PROTECTED]> wrote:

> but even if you kill -SEGV `pgrep this` (Segmentation fault (core
> dumped) the memory is getting freed anyway (presumably by the
> glorious kernel). which you can see dynamicly by typing top in the
> console.

The idea that malloc() allocates memory is really a C language
abstraction. What it actually does is allocate a region in the
process's virtual address space. The mapping of physical memory to
virtual address space is handled at a lower-level and doesn't rely on
malloc() or free().

> in other words segmentation fault when free() is not a scary thing
> here. it is a matter of style and the way to find own errors. or
> maybe reading warnings if you compile with the flags -ansi -pedantic 

I'm not sure what you are saying here, but the handling of dynamic
memory in C is something that needs to be well thought-out in
advance. Bugs is this area can be very difficult and time-consuming
to track-down. 

> oh and by the way:
> 
> > char *
> > function(void)
> > {
> > char buffer[100];
> > 
> > return buffer;
> > }
> 
> that is an easier approach because you get warned on passing an
> address to a local variable

This was an example of how to generate a failure, it's not an approach.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FSJ clone

2008-09-21 Thread RW
On Sun, 21 Sep 2008 17:07:48 -0400
"Tsu-Fan Cheng" <[EMAIL PROTECTED]> wrote:

> i try cat, but it doesn't seem right, The files i download are
> components of a movie, but after I cat them, mplayer can't read them.
> also the original post showed password is required when putting files
> together.

Sounds like they are split rar or zip files. What do the ends of the
filenames look like? 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ccache on amd64

2008-09-21 Thread Brian
Has there been any change in the above?  On a single core i386, the 
documentation described notes work properly.  However, on a AM2 based 
machine with the amd64 version of freebsd (both 6.4 Beta and 7.0 show 
this behavior) I consistently get the below error.


===> lib/csu/i386-elf (obj,depend,all,install)
rm -f .depend
CC='/usr/local/libexec/ccache/world-cc' mkdep -f .depend -a
-I/usr/src/lib/csu/i386-elf/../common 
-I/usr/src/lib/csu/i386-elf/../../libc/include 
/usr/src/lib/csu/i386-elf/crt1.c /usr/src/lib/csu/i386-elf/crti.S 
/usr/src/lib/csu/i386-elf/crtn.S
/usr/local/libexec/ccache/world-cc -O2 -fno-strict-aliasing -pipe 
-I/usr/src/lib/csu/i386-elf/../common  
-I/usr/src/lib/csu/i386-elf/../../libc/include -Wsystem-headers -Werror 
-Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual 
-Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter 
-Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c 
/usr/src/lib/csu/i386-elf/crt1.c

{standard input}: Assembler messages:
{standard input}:67: Error: suffix or operands invalid for `mov'
*** Error code 1

Stop in /usr/src/lib/csu/i386-elf.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

I have followed the listed instructions, and the above persists. 
[EMAIL PROTECTED] ~]# more /etc/make.conf

# added by use.perl 2008-09-20 15:50:41
PERL_VER=5.8.8
PERL_VERSION=5.8.8
.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) && 
!defined(NOCCACHE)

CC=/usr/local/libexec/ccache/world-cc
CXX=/usr/local/libexec/ccache/world-c++
.endif

These are asses to /etc/profile
export PATH=/usr/local/libexec/ccache:$PATH
export CCACHE_PATH=/usr/bin:/usr/local/bin
export CCACHE_DIR=/usr/.ccache




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


Re: Segmentation fault when free

2008-09-21 Thread Giorgos Keramidas
On Mon, 22 Sep 2008 02:31:57 +0100, RW <[EMAIL PROTECTED]> wrote:
>Nash Nipples <[EMAIL PROTECTED]> wrote:
>>Giorgos Keramidas wrote:
>>> char *
>>> function(void)
>>> {
>>> char buffer[100];
>>>
>>> return buffer;
>>> }
>>
>> that is an easier approach because you get warned on passing an
>> address to a local variable
>
> This was an example of how to generate a failure, it's not an
> approach.

Yes.  It was *only* written to illustrate how a particular failure could
happen.  I wouldn't recommend this to anyone as a programming approach :)

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


getting off mailing list

2008-09-21 Thread chris

Hi,
HP! under my mailing address [EMAIL PROTECTED] I am on a 
mailing list. HOW DO I GET OFF IT


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


Re: ccache on amd64

2008-09-21 Thread Brian

Brian wrote:
Has there been any change in the above?  On a single core i386, the 
documentation described notes work properly.  However, on a AM2 based 
machine with the amd64 version of freebsd (both 6.4 Beta and 7.0 show 
this behavior) I consistently get the below error.


===> lib/csu/i386-elf (obj,depend,all,install)
rm -f .depend
CC='/usr/local/libexec/ccache/world-cc' mkdep -f .depend -a
-I/usr/src/lib/csu/i386-elf/../common 
-I/usr/src/lib/csu/i386-elf/../../libc/include 
/usr/src/lib/csu/i386-elf/crt1.c /usr/src/lib/csu/i386-elf/crti.S 
/usr/src/lib/csu/i386-elf/crtn.S
/usr/local/libexec/ccache/world-cc -O2 -fno-strict-aliasing -pipe 
-I/usr/src/lib/csu/i386-elf/../common  
-I/usr/src/lib/csu/i386-elf/../../libc/include -Wsystem-headers 
-Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter 
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type 
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align 
-Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs 
-Wredundant-decls -c /usr/src/lib/csu/i386-elf/crt1.c

{standard input}: Assembler messages:
{standard input}:67: Error: suffix or operands invalid for `mov'
*** Error code 1

Stop in /usr/src/lib/csu/i386-elf.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

I have followed the listed instructions, and the above persists. 
[EMAIL PROTECTED] ~]# more /etc/make.conf

# added by use.perl 2008-09-20 15:50:41
PERL_VER=5.8.8
PERL_VERSION=5.8.8
.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) && 
!defined(NOCCACHE)

CC=/usr/local/libexec/ccache/world-cc
CXX=/usr/local/libexec/ccache/world-c++
.endif

These are asses to /etc/profile
export PATH=/usr/local/libexec/ccache:$PATH
export CCACHE_PATH=/usr/bin:/usr/local/bin
export CCACHE_DIR=/usr/.ccache




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"
I found a previous post with /etc/make.conf containing, I am trying this 
now.


# Special ccache for buildworld
.if exists(/usr/local/libexec/ccache/world-cc) && !defined(NOCCACHE) && \
   (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*))
CC  := ${CC:C,^cc,/usr/local/libexec/ccache/world-cc,1}
CXX := ${CXX:C,^c\+\+,/usr/local/libexec/ccache/world-c++,1}

If this is what amd64 peeps should be using, can the docs be updated?

Brian
.endif



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


Uplading file via Lighttpd - system hangs

2008-09-21 Thread Chris
It looks like the freebsd-sendfile is broken. I had the same problems
the last days and now I know the source of the problem. Have a look on
this PR:

http://www.freebsd.org/cgi/query-pr.cgi?pr=125592

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


Re: getting off mailing list

2008-09-21 Thread Olivier Nicole
> HP! under my mailing address [EMAIL PROTECTED] I am on a 
> mailing list. HOW DO I GET OFF IT

Read the bottom of the email, it says:

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

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


Re: getting off mailing list

2008-09-21 Thread Brian

chris wrote:

Hi,
HP! under my mailing address [EMAIL PROTECTED] I am on 
a mailing list. HOW DO I GET OFF IT


Thanks
Chris
Black George

Try visiting http://lists.freebsd.org/mailman/listinfo/freebsd-questions

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


Re: Realtek 8111C?

2008-09-21 Thread Da Rock

On Sat, 2008-09-20 at 09:18 -0700, Sebastian wrote:
> Oliver Fromme wrote:
> > Sebastian <[EMAIL PROTECTED]> wrote:
> >  > I'd like to confirm my understanding of current status on this NIC. It 
> >  > seems, based on some searching, the current Realtek driver in FreeBSD 
> >  > doesn't support the 8111C, and that although the vendor-supplied driver 
> >  > _may_ work for older 5.x and 6.0 releases (if one can get it compiled, I 
> >  > couldn't), it doesn't work in 6.3 or 7. So the RTL8111C is effectively 
> >  > not supported. True?
> >  > 
> >  > I picked up a nice little Atom board to use as a low-power NAS, and 
> >  > unfortunately just assumed the onboard Realtek NIC was supported. 
> >  > Unfortunately I don't have a PCI slot on this mobo to use a different 
> > NIC.
> >
> > What vendor ID and product ID, exactly?
> > ("pciconf -lv" will tell.)
> >   
> Thanks for all the responses. I've made a little progress as a result.
> 
> The computer is an MSI Wind barebone unit with "MS-7418" on the mb.
> Link: 
> 
> The NIC is an RTL8111C, and here's the output of `pciconf -lv` on FreeBSD 6.3:
> 
> [EMAIL PROTECTED]:1:0:0: class=0x02 card=0x41801462 chip=0x816810ec 
> rev=0x02 hdr=0x00
> class  = network
> subclass   = ethernet
> 
> After reading the responses here, I tried the 7.1-beta live CD. It detects the
> NIC, and the output of the above is changed slightly (new name):
> 
> [EMAIL PROTECTED]:1:0:0: class=0x02 card=0x41801462 chip=0x816810ec 
> rev=0x02 hdr=0x00
> class  = network
> subclass   = ethernet
> 
> I was able to bring up the interface using the live CD, and at first glance it
> seems to be working (pings ok), but I didn't stress-test it.
> 
> So if all else fails, I will continue using 7.1. But first, since I'm trying 
> to
> use FreeNAS, which is FreeBSD 6.3, I thought I'd try copying the driver from 
> 7.1.
> The module (if_re.ko) appears to load successfully at boot time, however the 
> NIC
> is still not shown in dmesg and unavailable as re0. I admit I don't know if 
> this
> should even work (7.1-compiled module on 6.3 kernel). I may be missing 
> something.
> 
> This machine will run off a CF card, hence the desire to use flash-friendly
> FreeNAS. I do have some experience with NanoBSD, so if I can't get FreeNAS to
> work I'll pursue that with 7.1.
> 
> Thanks for any further insights you might have!

There is already a driver available for 6.3, but you need to compile it
yourself. Check the drivers list for details.

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


{Filename?} Re: Realtek 8111C?

2008-09-21 Thread Da Rock
Warning: This message has had one or more attachments removed
Warning: (if_rl.ko).
Warning: Please read the "comcen_com_au-Attachment-Warning.txt" attachment(s) 
for more information.


On Sat, 2008-09-20 at 11:14 -0700, Sebastian wrote:
> Da Rock wrote:
> > I have used the compiled driver on 6.3 with success- but then I've used
> > the driver linked in a post to drivers list. 7.0 is a no go.
> > 
> 
> I tried to compile the current OEM Realtek driver under (v176) on fbsd 
> 6.3, but couldn't get it to build. My foo is a little thin here. :)
> 
> Would you be able to send me your successful 6.3 driver? I'd like to 
> test it on FreeNAS.
> 
> Thanks,
> Sebastian

Try this. I'm stress testing atm, but either way it still works. I'm
using different hardware (desktops, laptops, multicore, single core,
AMD, Intel, high-end and low-end cpus), so I think this accounts for
some stalls and latency I've noticed.

Cheers (Ignore the previous post I sent)
This is a message from the MailScanner E-Mail Virus Protection Service
--
The original e-mail attachment "if_rl.ko"
is on the list of unacceptable attachments for this site and has been
replaced by this warning message.

If you wish to receive a copy of the original attachment, please
e-mail helpdesk and include the whole of this message
in your request. Alternatively, you can call them, with
the contents of this message to hand when you call.

At Mon Sep 22 14:30:35 2008 the virus scanner said:
   MailScanner: No programs allowed (if_rl.ko)

Note to Help Desk: Look on the comcen_com_au () MailScanner in 
/var/spool/MailScanner/quarantine/20080922 (message D4E485C2EA6C.3EE8E).
-- 
Postmaster
comcen.com.au
www.comcen.com.au

For all your IT requirements visit: http://www.transtec.co.uk
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Audio Production

2008-09-21 Thread Da Rock

On Sun, 2008-09-21 at 08:21 -0400, marshc wrote:
> Nash Nipples wrote:
> >  
> >   
> >>> m cassar schrieb:
> >>>
> >>>   
>  Does anyone here use freebsd for serious
>  
> >> audio/video production work? or
> >> 
>  know if there is some kind of community?
> 
>  
> >>> Didn't try it, but http://ardour.org/ looks like
> >>>   
> >> what you are looking for.
> >> 
> >>> See http://www.freshports.org/audio/ardour/
> >>>
> >>> --
> >>> Timm
> >>>
> >>>   
> >> thanks but this wasn't exactly what i was asking about
> >> in the original post.
> >> ardour *is* in ports, as with most other good open-source
> >> audio applications
> >> ( and propbably the best program out there - though i'm
> >> new) but what i was
> >> looking for is related to custom/optimizted kernels either
> >> known as
> >> low-latency or real-time kernels in linux; to help reduce
> >> recording
> >> latencies, audio dropouts, etc. like studio 64 rt-kernel on
> >> ubuntu, planet
> >> ccrma on fedora.
> >>
> >> what i was trying to find out is whether there is such
> >> projects on freebsd,
> >> or more importantly, if freebsd kernel had the potential to
> >> be similarly
> >> optimized. (not that i myself have any expertise, [hence my
> >> question])
> >>
> >> on the other hand, if you are interested in audio programs,
> >> ardour is good,
> >> hydrogen is good and fun. not to mention easy.
> >> 
> >
> > i have experienced a delay when i was recording voice and sort of laying it 
> > on a track. but removing a few miliseconds off the beginning didnt make a 
> > big trouble for me and thats when i have discovered this phenomenom but 
> > thought it was rather because my sound card is old. is this any close to 
> > something that you mean?
> >   
> it is related, but what you mentiioned is a slightly different area in 
> computer audio than what i mean with respect  to kernels.
> 
> An old card is likely to produce greater delays under any setup, but 
> that is more a factor of its capabilities and quality of its parts than 
> just purely because it is old.  If you were using JACK (linux) or ASIO 
> (windows) the delay could be minimized to some extent, but no miracles 
> there, and that is about the most you can do.
> 
> i'm only at entry level on audio engineering, but in a nutshell here is 
> an overview to explain your delay, (latency) and my kernel related question.
> 
> first of all, computers are always prone to latencies, or delays, 
> because of the time it takes the cpu to process  the audio data, 
> read/write from disks, convert between audio signals and digital data, 
> etc, etc. All take up cycles and valuable milliseconds.
> 
> when playing normal music like mp3s in itunes and such, you wouldn't 
> notice any delay because the data is simply read from disk and output 
> thru speackers as they come, though technically there would be a short 
> period between the time the data was read off disk and then heard out 
> the speakers. in audio production that slight delay, or latency, is 
> everything, especially when you have multi-track recording and syncing 
> with external gear. (latencies range from under 10ms to over 100ms)
> 
> Latency would be more noticeable, say when recording, and would sound 
> like an echo if you were talking into a mic and listening thru 
> headphones or speakers, on an average setup at least. roughly becase of 
> the time needed to process the signal.
> 
> Also, If you were to use a midi controller/keyboard connected via midi 
> to play a software instrument, you would notice a delay between the time 
> you hit a key on the keyboard and when you actually heard the sound. The 
> key press transmittes midi data to the software instrument, the software 
> triggers the desired sound immediately, but there is that slight delay 
> to create the sound and push it out the speakers.
> 
> Audio interfaces can have a latency around 5ms, which is very good,  yet 
> may still be faintly noticable, and that also depends on the power of 
> the pc and the actual load ( number of tracks, effects, instruments 
> playing), and latency is still a *phenomenon* and something you *have to 
> live with* in computer audio production; as opposed to hardware gear 
> like samplers, drum machines, synths, etc. and short of buying a $10K 
> protools "soundcard". a _hobbyist_ audio interface can be decent with 
> latencies under 20ms.
> 
> In application, multi-track  recording programa like Cubase, Logic, 
> Ardour, Ableton, Cakewalk etc, do fairly well (with a good setup) when 
> all material is confined within the computer and not communicating with 
> the outside world.  When you are recording say a vocalist, chances are 
> you're playing back all the other tracks (drums, bass, etc) at the same 
> time for the vocalist to listen and sing to, plus possible playing back 
> the vocalist with added effects likde reverb; a mixture of delays going 
> in, and the same amount go

Re: pf to block against DDoS?

2008-09-21 Thread Redd Vinylene
> > > > From: Redd Vinylene <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> > > > Subject: pf to block against DDoS?
> > > > Date: Thursday, September 4, 2008 - 3:23 pm
> > > >
> > > > Hello hello!
> > > >
> > > > I was quite shocked today when I heard I could use pf to block
against DDoS
> > > > attacks, using Stateful Tracking Options,
> > > > http://www.openbsd.org/faq/pf/filter.html#stateopts.
> > > >
> > > > But does anybody have any nice setups of this they'd want to share?
> > > >
> > >
> > > From: Oliver Peter <[EMAIL PROTECTED]>
> > > To: Redd Vinylene <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> > > Subject: Re: pf to block against DDoS?
> > > Date: Thursday, September 4, 2008 - 4:20 pm
> > >
> > > ... nice cross-post.
> > >
> > > I can recommend reading through this as well:
> > >   http://www.bgnett.no/~peter/pf/en/bruteforce.html
> > >
> > > --
> > > Oliver PETER, email: [EMAIL PROTECTED], ICQ# 113969174
> > > "If it feels good, you're doing something wrong."
> > >   -- Coach McTavish
> > >
> >
> > From: Peter N. M. Hansteen <[EMAIL PROTECTED]>
> > To: Oliver Peter <[EMAIL PROTECTED]>
> > Cc: Redd Vinylene <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, <[EMAIL 
> > PROTECTED]>
> > Subject: Re: pf to block against DDoS?
> > Date: Friday, September 5, 2008 - 1:54 am
> >
> > Thanks for recommending that!  However I would generally recommend the
> > maintained version which is up at 
;,
> > with the direct link to the part about state tracking and bruteforcers
> > at ;.
> >
> > (and of course there's the book, nudge, nudge)
> >
> > - P
> > --
> > Peter N. M. Hansteen, member of the first RFC 1149 implementation team
> > http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
> > "Remember to set the evil bit on all malicious network traffic"
> >
> From: Lars Noodén <[EMAIL PROTECTED]>
> To: Oliver Peter <[EMAIL PROTECTED]>
> Cc: Redd Vinylene <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> Subject: Re: pf to block against DDoS?
> Date: Thursday, September 4, 2008 - 4:50 pm
>
> You can also use two tables so that the first overload gets shunted to a
> slow queue and given a second chance before ending up in the second
> table which gets blocked.
>
> -Lars

Much obliged to all y'all gentlemen for your valuable design insight.

Now, is there anything more I can do to secure my webserver from attacks? Or
perhaps my pf.conf can be simplified / beautified?

Peter N. M. Hansteen: Did I follow your tutorial correctly?

Lars Noodén: Would you happen to have an example of that?

My pf.conf now looks like this:

-

ext_if = "rl0"

int_if = "ep0"

set block-policy return

set skip on { lo0 }

scrub in

table  persist

nat on $ext_if from $int_if:network to any -> ($ext_if)

rdr on $ext_if proto tcp from any to any port 3 -> 192.168.187.2 port
3

pass out keep state

pass quick on $int_if

block in

block quick from 

pass in on $ext_if inet proto tcp from any to any port { 20, 21, 25, 53,
113, 3:35000 } keep state (max-src-conn 100, max-src-conn-rate 15/5,
overload  flush global)

pass in on $ext_if inet proto tcp from any to any port 22 keep state
(max-src-conn 15, max-src-conn-rate 5/3, overload  flush global)

pass in on $ext_if inet proto udp from any to any port 53 keep state

pass in on $ext_if inet proto icmp from any to any keep state

-

Have a great week! Cheers!

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


Re: pf to block against DDoS?

2008-09-21 Thread Redd Vinylene
> > > > From: Redd Vinylene <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> > > > Subject: pf to block against DDoS?
> > > > Date: Thursday, September 4, 2008 - 3:23 pm
> > > >
> > > > Hello hello!
> > > >
> > > > I was quite shocked today when I heard I could use pf to block
against DDoS
> > > > attacks, using Stateful Tracking Options,
> > > > http://www.openbsd.org/faq/pf/filter.html#stateopts.
> > > >
> > > > But does anybody have any nice setups of this they'd want to share?
> > > >
> > >
> > > From: Oliver Peter <[EMAIL PROTECTED]>
> > > To: Redd Vinylene <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> > > Subject: Re: pf to block against DDoS?
> > > Date: Thursday, September 4, 2008 - 4:20 pm
> > >
> > > ... nice cross-post.
> > >
> > > I can recommend reading through this as well:
> > >   http://www.bgnett.no/~peter/pf/en/bruteforce.html
> > >
> > > --
> > > Oliver PETER, email: [EMAIL PROTECTED], ICQ# 113969174
> > > "If it feels good, you're doing something wrong."
> > >   -- Coach McTavish
> > >
> >
> > From: Peter N. M. Hansteen <[EMAIL PROTECTED]>
> > To: Oliver Peter <[EMAIL PROTECTED]>
> > Cc: Redd Vinylene <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, <[EMAIL 
> > PROTECTED]>
> > Subject: Re: pf to block against DDoS?
> > Date: Friday, September 5, 2008 - 1:54 am
> >
> > Thanks for recommending that!  However I would generally recommend the
> > maintained version which is up at 
;,
> > with the direct link to the part about state tracking and bruteforcers
> > at ;.
> >
> > (and of course there's the book, nudge, nudge)
> >
> > - P
> > --
> > Peter N. M. Hansteen, member of the first RFC 1149 implementation team
> > http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
> > "Remember to set the evil bit on all malicious network traffic"
> >
> From: Lars Noodén <[EMAIL PROTECTED]>
> To: Oliver Peter <[EMAIL PROTECTED]>
> Cc: Redd Vinylene <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> Subject: Re: pf to block against DDoS?
> Date: Thursday, September 4, 2008 - 4:50 pm
>
> You can also use two tables so that the first overload gets shunted to a
> slow queue and given a second chance before ending up in the second
> table which gets blocked.
>
> -Lars

Sorry, _this_ is my webserver's pf.conf (the other one was my home
firewall's):

-

mad = "80.202.2.3"

doom = "{ 80.202.2.4 - 80.202.2.127 }"

ext_if = "rl0"

set block-policy return

set skip on { lo0 }

scrub in

table  persist

pass out keep state

block in

block quick from 

pass in on $ext_if inet proto tcp from any to any port 22 keep state
(max-src-conn 15, max-src-conn-rate 5/3, overload  flush global)

pass in on $ext_if inet proto tcp from any to $mad port { 25, 53, 80, 110 }
keep state (max-src-conn 100, max-src-conn-rate 15/5, overload 
flush global)

pass in on $ext_if inet proto udp from any to $mad port 53 keep state

pass in on $ext_if inet proto tcp from any to $doom port { 20, 21, 113,
6000: } keep state (max-src-conn 100, max-src-conn-rate 15/5, overload
 flush global)

pass in on $ext_if inet proto icmp from any to any keep state

-

I hope the design adheres to: http://en.wikipedia.org/wiki/KISS_principle

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


Any way to play www.last.fm on FreeBSD?

2008-09-21 Thread Gary Kline

I can't listen to last.fm with firefox2 or firefox3--and parts of
ff3 don't get loaded.  With the KDE3 browser, same thing; it
won't recognize last.fm.  Nutshell: what do I need to do to
play songs from last.fm here [FBSD]?

tia.


-- 
 Gary Kline  [EMAIL PROTECTED]  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


Re: Any way to play www.last.fm on FreeBSD?

2008-09-21 Thread andrew clarke
On Sun 2008-09-21 23:11:50 UTC-0700, Gary Kline ([EMAIL PROTECTED]) wrote:

> I can't listen to last.fm with firefox2 or firefox3--and parts of
> ff3 don't get loaded.  With the KDE3 browser, same thing; it
> won't recognize last.fm.  Nutshell: what do I need to do to
> play songs from last.fm here [FBSD]?

There is audio/last.fm in the Ports tree - have you tried that?

(Disclaimer: I've never used it.)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Shared /usr in jails

2008-09-21 Thread Matt Fioravante
I want to implement a number of jails for different services on a single
box.

Since /usr is the same everywhere I'd like to just mount one copy of it
read-only to all the jails and then have them each have their own /usr/local

Someone recommended keeping the main system's /usr separate. This would mean
building a /usr for the main system and then making a copy of it
to be shared by the jails.

Aesthetics and philosophy aside, are there any real security holes in just
using the systems /usr everywhere if it is mounted read only in the jails?
THis seems to be the
approach used by solaris zones.

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


Re: Shared /usr in jails

2008-09-21 Thread Olivier Nicole
> Aesthetics and philosophy aside, are there any real security holes in just
> using the systems /usr everywhere if it is mounted read only in the jails?
> THis seems to be the
> approach used by solaris zones.

Usually a jail /usr is almost empty.

You would prefer to have the very strict minimum of things inside a
jail.

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


RE: two nics each with dsl and the third for LAN and am not able to get any milage out of one dsl.

2008-09-21 Thread Marcel Grandemange
>
>> I just inherited a second dsl line and don't have a
>> server to connect
>> it too so I have it connected to a third nic that I have in
>> the Dell
>> that has the first dsl connection and the LAN.  I have been
>> running pf
>> on the two nics with nat and squid in transparent proxy
>> mode without
>> any issues. My problem is that I haven't come up with a
>> way to really
>> take advantage of the new dsl to reduce traffic on the
>> first.  I'm not
>> even dreaming of load balancing just sharing some of the
>> load.
>>
>> I had thought about trying to get squid to use the second
>> connection
>> but my feeble attempts at redirecting it haven't made
>> much sense nor
>> have they worked. Most of our traffic is outgoing rather
>> than
>> incoming, if that helps.
>>
>> I'm sure someone else must have a similar setup and are
>> doing better
>> than I.  Anything is better than nothing. Basically, I
>> think and hope
>> that I am just drowning in a glass of water.
>>
>> Thanks for any suggestions.
>>
>> ed
>
> it all well depends on how many wires you need to make your boss happy.
> if you feel like u can be replaced with a router maybe you should  
> start making half-way websites rather than doing 2 way internet  
> connections.
> but there is a shoe for every foot. i actually admire the creativity  
> of the pf coders. i hope you have at least 2 gateways. please don't  
> drown.
> http://www.openbsd.org/faq/pf/pools.html


Thank you for doc! Might End up using my side aswell.
Unfortunately most of my servers run ipfw.

>Wow! Thanks, Nash.  This should do it.  I just read through it and had  
>no idea it even existed. Especially the nat for two IP's

>I'll start trying it tomorrow and will post the results.

>Thanks again,

>ed

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


Re: Shared /usr in jails

2008-09-21 Thread Konrad Heuer


On Mon, 22 Sep 2008, Matt Fioravante wrote:


I want to implement a number of jails for different services on a single
box.

Since /usr is the same everywhere I'd like to just mount one copy of it
read-only to all the jails and then have them each have their own /usr/local

Someone recommended keeping the main system's /usr separate. This would mean
building a /usr for the main system and then making a copy of it
to be shared by the jails.

Aesthetics and philosophy aside, are there any real security holes in just
using the systems /usr everywhere if it is mounted read only in the jails?
THis seems to be the
approach used by solaris zones.


For a couple of years, I shared /usr on a dozen of hosts by NFS. Worked 
fine, but I mounted it read-only on all but one box. Thus, I had to 
symlink very few files or directories out from /usr to /var.


For security and reliability, I'd recommend to limit read-write access to 
/usr.


Best regards

Konrad Heuer
GWDG, Am Fassberg, 37077 Goettingen, Germany, [EMAIL PROTECTED]


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