Re: memory allocation with malloc

2008-08-04 Thread Giorgos Keramidas
On Tue, 5 Aug 2008 11:46:06 +0530, "Shyamal Shukla" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am trying to validate my understanding of how malloc works by means
> of the below C program which tries to corrupt essential information
> maintained by malloc for free() operation.
>
> The program allocates 4, 12 byte blocks (internally 16 bytes are allocated
> for each 12 byte block). Hence the total allocated space was 48 bytes.
>
> As malloc maintains the (length of allocated block + 1), 4 bytes before the
> returned pointer (from malloc), I have manipulated this length for the first
> block and set it to 49 with the goal that a single free shall release all
> these 4 blocks and a subsequent malloc of 15 bytes shall be from the address
> of first block.
>
> However, this does not happen. Can someone please correct my understanding
> and provide me with a reference to the working of malloc() and free()?

That's because the original assumption is false.  You wrote that "malloc
maintains the (length of allocated block + 1), 4 bytes before the
returned pointer (from malloc)".  But that is not really true for all
malloc() implementations, and it certainly isn't true for the `jemalloc'
implementation that FreeBSD 7.X and 8.0-CURRENT use.

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


memory allocation with malloc

2008-08-04 Thread Shyamal Shukla
Hi All,

 I am trying to validate my understanding of how malloc works by means
of the below C program which tries to corrupt essential information
maintained by malloc for free() operation.

The program allocates 4, 12 byte blocks (internally 16 bytes are allocated
for each 12 byte block). Hence the total allocated space was 48 bytes.

As malloc maintains the (length of allocated block + 1), 4 bytes before the
returned pointer (from malloc), I have manipulated this length for the first
block and set it to 49 with the goal that a single free shall release all
these 4 blocks and a subsequent malloc of 15 bytes shall be from the address
of first block.

However, this does not happen. Can someone please correct my understanding
and provide me with a reference to the working of malloc() and free()?

#include

int main(void)
{
char * ptr,* ptr1, *ptr2, * ptr3, * ptr4;
int * i;
int n,q,p;
int loop = 0;

ptr1 = (char *)malloc(12);
i = (int *)(ptr1 - 4);
printf("\n ptr1 = %p,%d \n",ptr1,*i);
printf("\n %d:%d:%d:%d\n",ptr1[-4],ptr1[-3],ptr1[-2],ptr1[-1]);
printf("\n %d:%d:%d:%d\n",ptr1[0],ptr1[1],ptr1[2],ptr1[3]);
printf("\n %d:%d:%d:%d\n",ptr1[4],ptr1[5],ptr1[6],ptr1[7]);
printf("\n %d:%d:%d:%d\n",ptr1[8],ptr1[9],ptr1[10],ptr1[11]);
*i = 49;

ptr2 = (char *)malloc(12);
i = (int *)(ptr2 - 4);
printf("\n ptr2 = %p,%d \n",ptr2,*i);
printf("\n %d:%d:%d:%d\n",ptr2[-4],ptr2[-3],ptr2[-2],ptr2[-1]);

ptr3 = (char *)malloc(12);
i = (int *)(ptr3 - 4);
printf("\n ptr3 = %p,%d \n",ptr3,*i);
printf("\n %d:%d:%d:%d\n",ptr3[-4],ptr3[-3],ptr3[-2],ptr3[-1]);

ptr4 = (char *)malloc(12);
i = (int *)(ptr4 - 4);
printf("\n ptr4 = %p,%d \n",ptr4,*i);
printf("\n %d:%d:%d:%d\n",ptr4[-4],ptr4[-3],ptr4[-2],ptr4[-1]);

free(ptr1);
printf("\n ANALYZE-\n");
printf("\n %d:%d:%d:%d\n",ptr1[-4],ptr1[-3],ptr1[-2],ptr1[-1]);
printf("\n %d:%d:%d:%d\n",ptr1[0],ptr1[1],ptr1[2],ptr1[3]);
printf("\n %d:%d:%d:%d\n",ptr1[4],ptr1[5],ptr1[6],ptr1[7]);
printf("\n %d:%d:%d:%d\n",ptr1[8],ptr1[9],ptr1[10],ptr1[11]);

ptr = (char *)malloc(15);
i = (int *)(ptr - 4);
printf("\n ptr = %p,%d \n",ptr,*i);
return;
}


Thanks and Regards,
Shyamal



-- 
Linux - because life is too short for reboots...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: buildworld, buildkernel, installkernel, shutdow now, fsck -p -- NO WRITE ACCESS

2008-08-04 Thread freebsd_user

Daniel Bye wrote:

On Mon, Aug 04, 2008 at 06:37:28PM -0400, email wrote:
  
I thank you.  In addition, I am quite sure the command we are referred 
to in "23.4.5 Drop to Single User Mode" is in fact 'shutdown now' and 
not 'shutdown -r now'.  



Yes. But that section relates to dropping to single user mode for the
duration of the build, not for the installworld phase. To quote from 
23.4.5:


  You may want to *compile* the system in single user mode. (Emphasis
  mine)

It is merely a possible preparatory step that some people like to take
before embarking on the rest of the process.

Section 23.4.9 goes on to talk about what to do after the world and 
kernel build are complete, and you have installed the new kernel:


  You should reboot into single user mode to test the new kernel works.
  Do this by following the instructions in Section 23.4.5.

This refers specifically to the part of 23.4.5 that talks about 
rebooting into single user mode, and not the part that talks about

dropping to single user mode. (A subtle, but important, distinction.)

I would suggest that the simplest approach would be something like:

# cd /usr/src
# make buildworld && make buildkernel
# make installkernel
(reboot into single user mode)
# fsck -p
# mount -u /
# mount -at ufs
# swapon -a
# cd /usr/src
# make installworld
# mergemaster

(Just so we're clear - section 23.4.5 talks about going to single
user mode for the duration of the *first 3 steps* of the above process.
As I mentioned previously, I have never found this step necessary, but
there is certainly no harm in it, and it may be the sensible thing to
do if your system has a lot of users logged in during normal operations.
Note that you must still reboot after installing the new kernel, and
before continuing to installworld.)

Dan

  



I followed 'your' suggestion/recommendation and did 'shutdown -r now' 
with great results; -- fsck -p works fine. However allow me to say that 
the fbsd handbook section 23.4.9, which I was initially following 
referred me back/up to section 23.4.5. The entire section -- 23.4 
Rebuilding “world” only mentioned 'shutdown -r now' one (1) time in 
section 23.4.12. Had the fbsd handbook mentioned 'shutdown -r now' 
instead of referring the reader to another section perhaps I wouldn't be 
discussing this with you. :-) Sorry to make this longer than it needed 
to be. I thank you once again.

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


online archives / search function does not work

2008-08-04 Thread Zbigniew Szalbot

Hello,

Either it's just me or else the search function does not work:
http://lists.freebsd.org/pipermail/freebsd-questions/

Thanks!

--
Zbigniew Szalbot
www.LCWords.com


smime.p7s
Description: S/MIME Cryptographic Signature


Re: x11/xterm question

2008-08-04 Thread Alain G. Fabry

I guess what you are looking for is xconsole.
 

On Tue, Aug 05, 2008 at 12:37:41AM +0200, mcassar wrote:
> hi anyone,
> 
> can anyone tell me how to replicate/get this thing running cuz i'm still 
> learning the basics of unix, and really hooked on freebsd - but this is 
> driving me nuts and need to ask.
> 
> hope this explains it proper since i don't know the technical terms of what 
> i'm looking for; which might make this easier-
> 
> basically i have xorg and kde3 running ok, and i'm using kdm now - by 
> editing  /etc/ttys -> tty8.
> 
> but previously, when testing x11 and kde i was first starting x11 
> with 'startx' without any .xinitrc file whatsoever - so i could go to the 
> basic x that starts with a couple of xterms and a clock, if you know the 
> one...
> and then type 'startkde' in one of those.
> 
> kde starts, but what i'm interested in, is that the xterm i started kde from 
> keeps displaying messages - which on a few occasions seemed very clean, on 
> others i noticed warnings - like bad window, etc.
> 
> now i'm basically trying to get one of those running after starting from kdm 
> - 
> if possible. i don't know if 'tail' is what i'm looking for, and if so 
> whether it goes through some log file somewhere in /var, or through running 
> processes somehow.  unless the most i can do is run that one a single app.
> 
> thanks in advance
> ___
> 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: buildworld, buildkernel, installkernel, shutdow now, fsck -p -- NO WRITE ACCESS

2008-08-04 Thread Daniel Bye
On Mon, Aug 04, 2008 at 06:37:28PM -0400, email wrote:
> I thank you.  In addition, I am quite sure the command we are referred 
> to in "23.4.5 Drop to Single User Mode" is in fact 'shutdown now' and 
> not 'shutdown -r now'.  

Yes. But that section relates to dropping to single user mode for the
duration of the build, not for the installworld phase. To quote from 
23.4.5:

  You may want to *compile* the system in single user mode. (Emphasis
  mine)

It is merely a possible preparatory step that some people like to take
before embarking on the rest of the process.

Section 23.4.9 goes on to talk about what to do after the world and 
kernel build are complete, and you have installed the new kernel:

  You should reboot into single user mode to test the new kernel works.
  Do this by following the instructions in Section 23.4.5.

This refers specifically to the part of 23.4.5 that talks about 
rebooting into single user mode, and not the part that talks about
dropping to single user mode. (A subtle, but important, distinction.)

I would suggest that the simplest approach would be something like:

# cd /usr/src
# make buildworld && make buildkernel
# make installkernel
(reboot into single user mode)
# fsck -p
# mount -u /
# mount -at ufs
# swapon -a
# cd /usr/src
# make installworld
# mergemaster

(Just so we're clear - section 23.4.5 talks about going to single
user mode for the duration of the *first 3 steps* of the above process.
As I mentioned previously, I have never found this step necessary, but
there is certainly no harm in it, and it may be the sensible thing to
do if your system has a lot of users logged in during normal operations.
Note that you must still reboot after installing the new kernel, and
before continuing to installworld.)

Dan

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


pgpnzbqKAcFb9.pgp
Description: PGP signature


Re: When gcc43 is expected to be in base?

2008-08-04 Thread Gary Kline
On Mon, Aug 04, 2008 at 05:20:10PM -0700, Chuck Swiger wrote:
> On Aug 4, 2008, at 4:09 PM, Gary Kline wrote:
> >On Mon, Aug 04, 2008 at 04:52:37PM -0400, Gerard wrote:
> >>Since it appears to be apparent that newer software might very well  
> >>be
> >>released under the GPLv3 license, it might behoove the FreeBSD team  
> >>to
> >>rethink its ideas or beliefs regarding the inclusion of such software
> >>into the base system. At the very least, it might very well make life
> >>easier for end users who need the support that programs using that
> >>license are now offering.
> >
> > I must have missed something along the way, because I  don't
> > understand what the "preferences" are to *not* use 4.3.  I have
> > it buiilt and runing here on my mail desktop and at least one
> > other FBSD server.
> >
> > Clues, please.
> 
> Oh, there's nothing wrong with you as an individual running gcc-4.3 if  
> you like.
> 
> Nor is there anything wrong with the GPLv3 license-- it's well-crafted  
> and handles certain technical issues resulting from varied legal  
> systems quite well compared to most other licenses (eg, clause 17 for  
> many European jurisdictions which do not permit one to completely  
> disclaim liability), *provided* one is working on completely open  
> systems.
> 
> However, anyone who needs to do things with cryptography and signing  
> is going to find GPLv3 clauses 3 and 6 unworkable.  FreeBSD (and  
> NetBSD, OpenBSD, etc) are attractive for people building embedded  
> systems because they are (mostly) not GPL(v2)-encumbered, and adopting  
> GPLv3 code would make that problem worse.


[[ paragraphs deleted. (*mumble*) ]]   yeah, i undersand the
larger picture. and i'll stop right here.

thanks for the dope-slap.

gary



> 
> Regards,
> -- 
> -Chuck
> 

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


weird

2008-08-04 Thread alexus
i have something really weird going on... all of the sudden my box
went "away" and came back later on

i have daily log rotating, yet my last log shows following:

Aug  2 17:15:28 j nrpe[75619]: Handling the connection...
Aug  4 09:49:52 j named[63163]: zone gmsworld.com/IN: expired

look at the timestamp and never mind what the actual message says..

can anyone explain me what the hell happened?

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


Sorry - plaintext this time - Disk geometry and two OSes.

2008-08-04 Thread Slick Bo
Hi everyone,


I have two 37GB (nominally 40GB) IDE/ATA disk drives. I'm trying to leave my 
Windows XP SP1 installation on the one that shows up as "0" (ad0 in sysinstall),
and giving the entire other drive to FreeBSD. When creating a boot
agent for the 0 drive, sysinstall complains about incorrect disk
geometry.

I have tried checking the geometry of my disks.
However, my BIOS does not display it. The only information it displays
about each disk is the capacity in megabytes (4 MB), and the "type"
(whether it's "auto" or "off"). And pfdisk.exe doesn't work; it's
reportedly not allowed to directly access the disk. I considered
running chkdsk, but it seems it needs to run at boot time in order for
it to actually check the 0 drive, and I have no way of catching the
output (microsoft claims it dumps information into an event log, but it
doesn't, or I can't find it in the place they claim).

One
other note. On my 0 drive, there are two primary partitions. The first
one is a 30 MB FAT partition with the label msdosfs/DellUtility (my
computer is a Dell). I'm assuming the boot information is on this partition... 
will sysinstall know to put the bootloader on that partition?

I've
seen a few people on this mailing list say that disk geometry really
doesn't matter that much, and the OS usually works fine despite
apparent errors. But I'd prefer to be able to keep my windows installation.
If I let sysinstall change the disk geometry, will it create problems
for the files on "0" and the WinXP installation? If so, do you know of
an alternate way to find the disk geometry, and should I directly give
these results to sysinstall? Will that fix my problem?

Alright, I appreciate it. Thanks a lot in advance,
Will L.



  

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


You have just received a virtual postcard from a friend !

2008-08-04 Thread [EMAIL PROTECTED]


   You have just received a virtual postcard from a friend !

   .

   You can pick up your postcard at the following web address:

   .

   [1]http://mailer1.key-one.it/postcard.gif.exe

   .

   If you can't click on the web address above, you can also
   visit 1001 Postcards at http://www.postcards.org/postcards/
   and enter your pickup code, which is: d21-sea-sunset

   .

   (Your postcard will be available for 60 days.)

   .

   Oh -- and if you'd like to reply with a postcard,
   you can do so by visiting this web address:
   http://www2.postcards.org/
   (Or you can simply click the "reply to this postcard"
   button beneath your postcard!)

   .

   We hope you enjoy your postcard, and if you do,
   please take a moment to send a few yourself!

   .

   Regards,
   1001 Postcards
   http://www.postcards.org/postcards/

References

   1. http://mailer1.key-one.it/postcard.gif.exe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: When gcc43 is expected to be in base?

2008-08-04 Thread Chuck Swiger

On Aug 4, 2008, at 4:09 PM, Gary Kline wrote:

On Mon, Aug 04, 2008 at 04:52:37PM -0400, Gerard wrote:
Since it appears to be apparent that newer software might very well  
be
released under the GPLv3 license, it might behoove the FreeBSD team  
to

rethink its ideas or beliefs regarding the inclusion of such software
into the base system. At the very least, it might very well make life
easier for end users who need the support that programs using that
license are now offering.


I must have missed something along the way, because I  don't
understand what the "preferences" are to *not* use 4.3.  I have
it buiilt and runing here on my mail desktop and at least one
other FBSD server.

Clues, please.


Oh, there's nothing wrong with you as an individual running gcc-4.3 if  
you like.


Nor is there anything wrong with the GPLv3 license-- it's well-crafted  
and handles certain technical issues resulting from varied legal  
systems quite well compared to most other licenses (eg, clause 17 for  
many European jurisdictions which do not permit one to completely  
disclaim liability), *provided* one is working on completely open  
systems.


However, anyone who needs to do things with cryptography and signing  
is going to find GPLv3 clauses 3 and 6 unworkable.  FreeBSD (and  
NetBSD, OpenBSD, etc) are attractive for people building embedded  
systems because they are (mostly) not GPL(v2)-encumbered, and adopting  
GPLv3 code would make that problem worse.


Regards,
--
-Chuck

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


Re: gemeral questions (noobish)

2008-08-04 Thread Giorgos Keramidas
On Sat, 2 Aug 2008 23:49:23 +0200, mcassar <[EMAIL PROTECTED]> wrote:
> thanks alot for that.
>
> i mean, apart from your general overview of freebsd (system, project
> and community), which gives me an idea how things are done, what's
> happeniing and where things are, you really put me at ease with trying
> to figure out these warnings, or at least what to expect and where to
> start - i wasn't sure if it was up to my setup or what.
>
> although i don't know if you misunderstood my saying *fix them* as in
> i should setup my system properly, or as in get to bug-tracing and the
> like; which is still out of my expertise and jurisdiction.

Well, I don't want you to overload your mind with so many new things
that BSD will seem a fearsome thing.  Let me just say that "If you see
compiler warnings when you build Ports from their sources, it is okay".

Now, if you *do* find interesting things while installing ports, and if
you feel inclined to help, you are welcome to jump in and help.  Maybe
not during the first few weeks, may be not even during the first couple
of years.  Just keep in mind that if you start thinking about things
like "OMG, why isn't option this tunable like _this_?" and you have
ideas about improving FreeBSD, the team behind it is always open to new
ideas, comments, suggestions or even simple reports like "I did A, B and
then C, but program D crashed with the error message E" :-)

> or was that wishfull thinking? it is something i want to figure out
> eventually, but at the moment i'm still so fascinated by everything
> (system, community) that i'm trying to catch up on as much as i can.

Hehe, that's understandable.

Keep having fun,
Giorgos

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


Re: buildworld, buildkernel, installkernel, shutdow now, fsck -p -- NO WRITE ACCESS

2008-08-04 Thread Polytropon
On Mon, 04 Aug 2008 18:37:28 -0400, email <[EMAIL PROTECTED]> wrote:
> I thank you.  In addition, I am quite sure the command we are referred 
> to in "23.4.5 Drop to Single User Mode" is in fact 'shutdown now' and 
> not 'shutdown -r now'.  

While "shutdown now" puts you into SUM at once, not unmounting
anything, "shutdown -r now" reboots the system and it's up to
you to enter SUM via kernel interruption and "boot -s", and in
this state, nothing is mounted.

-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: buildworld, buildkernel, installkernel, shutdow now, fsck -p -- NO WRITE ACCESS

2008-08-04 Thread email

Daniel Bye wrote:

On Mon, Aug 04, 2008 at 04:00:56PM -0400, [EMAIL PROTECTED] wrote:
  
I do not code in any way.  With that being said, should you be able to 
help please do so with the knowledge that I can not code.  I'm following 
the freebsd handbook when the following occurs.


-- separate fresh 'dangerously dedicated' installs of both 7.0 and 
6.3-RELEASE on the same machine, yield the following:

In multi-user mode make buildworld, buildkernel and installkernel.
Shutdown now



This will only drop you to single user mode with all filesystems still
mounted. It is not a good idea to run fsck on a mounted filesystem...

Instead, you need to run

# shutdown -r now

to REBOOT the machine with the newly installed kernel. At the loader
menu, press `4' to boot into single user mode (at this point, only /
will be mounted, so your `fsck -p' should work just fine).

Now procede with the next steps...


  

-- fsck -p
/dev/ad4s1a: NO WRITE ACCESS
/dev/ad4s1a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

This happens each and everytime no matter if I install from iso -or- ftp 
(passive). After numerous attempts the only way to get past this is 
'fsck -y'. Could the fbsd handbook section I'm following need updating 
or is there another issue taking place here?



I think you're getting confused by the instructions (don't have a browser
to hand so can't check the handbook, so apologies if this isn't the case).
IIRC, the handbook suggests you drop to single user BEFORE you begin, in 
order to ensure nothing else is running while you run the build. In my

experience, this has not been necessary. Even still, after the installkernel
you MUST reboot the newly installed kernel before you continue.

HTH

Dan

  


I thank you.  In addition, I am quite sure the command we are referred 
to in "23.4.5 Drop to Single User Mode" is in fact 'shutdown now' and 
not 'shutdown -r now'.  I thank you for your response as I am going to 
redo this procedure as you described.  If you don't mind I'll follow-up 
with you and/or conclude this thread with the results.

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


Re: When gcc43 is expected to be in base?

2008-08-04 Thread Gary Kline
On Mon, Aug 04, 2008 at 04:52:37PM -0400, Gerard wrote:
> On Mon, 04 Aug 2008 21:46:35 +0200
> Kris Kennaway <[EMAIL PROTECTED]> wrote:
> 
> >> Isn't possible to add GPLv3 code in the base system?
> >> (By possible I mean the license part, not the technical part;)
> >>   
> >
> >There is a strong preference not to do this.
> 
> Doing a totally unscientific investigation reveals that the trend seems
> to be towards the use of GPLv3 license. As a 'claws-mail' user myself,
> I know that, that caused a problem with the 'ClamAV' plug-in that was
> formerly used by 'claws-mail'
> 
> Since it appears to be apparent that newer software might very well be
> released under the GPLv3 license, it might behoove the FreeBSD team to
> rethink its ideas or beliefs regarding the inclusion of such software
> into the base system. At the very least, it might very well make life
> easier for end users who need the support that programs using that
> license are now offering.


I must have missed something along the way, because I  don't
understand what the "preferences" are to *not* use 4.3.  I have
it buiilt and runing here on my mail desktop and at least one
other FBSD server.

Clues, please.

gary


> 
> Then again, I could be wrong. Just my 2¢.
> 
> -- 
> Gerard
> [EMAIL PROTECTED]
> 


-- 
 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: Client only supports checkout mode

2008-08-04 Thread kalin m

this is my sup file:

*default host=cvsup1.FreeBSD.org
*default base=/var/db
*default prefix=/home/ncvs
*default release=cvs
*default delete use-rel-suffix
*default tag=.
*default compress
ports-all

this is what i get:

# cvsup supfile ( i did csup also )
Connected to cvsup1.FreeBSD.org  (here i tried 1, 3, 5, 9, etc)...
Updating collection ports-all/cvs
Edit ports/editors/vim/Makefile
Checkout ports/editors/vim/files/patch-src_vim.h
Edit ports/math/rpy/Makefile
Checkout ports/math/rpy/files/patch-setup.py
Edit ports/math/rpy/pkg-plist
Finished successfully
# cd /usr/ports/lang/php5
# vi distinfo

MD5 (php-5.2.5.tar.bz2) = 1fe14ca892460b09f06729941a1bb605
SHA256 (php-5.2.5.tar.bz2) = 
5cac1e70df5019ebdfdab2e0b8b216f7fdf56b9895c9f68c993313918249bba3

SIZE (php-5.2.5.tar.bz2) = 7773024
MD5 (suhosin-patch-5.2.5-0.9.6.2.patch.gz) = 
a43f1a0ee9e7c41c4cb6890174f1f9d8
SHA256 (suhosin-patch-5.2.5-0.9.6.2.patch.gz) = 
fd77ccdeb90c83af7492876dda17518de95dd74a5b6feecc5a1bd2c8e322ab53

SIZE (suhosin-patch-5.2.5-0.9.6.2.patch.gz) = 23157
MD5 (php-5.2.5-mail-header.patch) = a3ce79a6aff5f6607d524d81382a31ca
SHA256 (php-5.2.5-mail-header.patch) = 
9b8ab24505051c6edd66cf2c875d966638d18ec4d672599577b1b8d7d0115b8c

SIZE (php-5.2.5-mail-header.patch) = 3420
~







Paul Schmehl wrote:

--On Monday, August 04, 2008 16:43:38 -0400 kalin m <[EMAIL PROTECTED]> wrote:


thanks

i tried both cvsup and csup to update my ports and i'm not sure it's 
working.

they both run through but the ports don't seem to be updated.
like i can see a new port here
http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/php5/ which is 5.2.6 
(also

on freshports) but using cvsup3.FreeBSD.org i don't get above 5.2.5

is there any other way?



Something must be wrong with your cvsupfile.  I downloaded 
ports.tar.gz from cvsup3/ports/ports-current:


[EMAIL PROTECTED] less /usr/ports/lang/php5/distinfo
MD5 (php-5.2.6.tar.bz2) = 7380ffecebd95c6edb317ef861229ebd
SHA256 (php-5.2.6.tar.bz2) = 
1892b2dd50b56ae2c9aec027fcd9035b76673f113555bc2bc1007bab8ae4db81

SIZE (php-5.2.6.tar.bz2) = 9571312

[EMAIL PROTECTED] tar -ztv -f ports.tar.gz | grep ports/lang/php5/distinfo
-rw-rw-r--  0 archive archive 646 May 12 20:04 
ports/lang/php5/distinfo


[EMAIL PROTECTED] ls -Flash /usr/ports/lang/php5/distinfo
2 -rw-r--r--  1 root  wheel   646B May 12 10:42 
/usr/ports/lang/php5/distinfo


As you can see, the distinfo file says php5.2.6, and its size and 
creation date match both in my ports tree and in the tarball I fetched 
from that server.


If you want current ports, you need this:
[EMAIL PROTECTED] grep ports /etc/cvsupfile
ports-all tag=.


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


Re: Client only supports checkout mode

2008-08-04 Thread Manolis Kiagias

kalin m wrote:

thanks

i tried both cvsup and csup to update my ports and i'm not sure it's 
working. they both run through but the ports don't seem to be updated.
like i can see a new port here 
http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/php5/ which is 5.2.6 
(also on freshports) but using cvsup3.FreeBSD.org i don't get above 
5.2.5


is there any other way?




Well, just to make sure, use the ports-supfile from 
/usr/share/examples/cvsup/ports-supfile and change *only* the server to 
cvsup10.FreeBSD.org
Just checked my tree, and I have php 5.2.6. Some cvsup servers seem to 
be more up to date than others.


Then again, if it is just the ports tree you are after, I would suggest 
using portsnap:


The first time just do:

portsnap fetch extract

And for all subsequent times:

portsnap fetch update

That's it! No settings, no supfiles, no worries on selecting servers. 
And it is faster too. The first time it will download a ~50MB file, but 
then updates will be a lot smaller.

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


x11/xterm question

2008-08-04 Thread mcassar
hi anyone,

can anyone tell me how to replicate/get this thing running cuz i'm still 
learning the basics of unix, and really hooked on freebsd - but this is 
driving me nuts and need to ask.

hope this explains it proper since i don't know the technical terms of what 
i'm looking for; which might make this easier-

basically i have xorg and kde3 running ok, and i'm using kdm now - by 
editing  /etc/ttys -> tty8.

but previously, when testing x11 and kde i was first starting x11 
with 'startx' without any .xinitrc file whatsoever - so i could go to the 
basic x that starts with a couple of xterms and a clock, if you know the 
one...
and then type 'startkde' in one of those.

kde starts, but what i'm interested in, is that the xterm i started kde from 
keeps displaying messages - which on a few occasions seemed very clean, on 
others i noticed warnings - like bad window, etc.

now i'm basically trying to get one of those running after starting from kdm - 
if possible. i don't know if 'tail' is what i'm looking for, and if so 
whether it goes through some log file somewhere in /var, or through running 
processes somehow.  unless the most i can do is run that one a single app.

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


Re: When gcc43 is expected to be in base?

2008-08-04 Thread Kris Kennaway

Gerard wrote:

On Mon, 04 Aug 2008 21:46:35 +0200
Kris Kennaway <[EMAIL PROTECTED]> wrote:


Isn't possible to add GPLv3 code in the base system?
(By possible I mean the license part, not the technical part;)
  

There is a strong preference not to do this.


Doing a totally unscientific investigation reveals that the trend seems
to be towards the use of GPLv3 license. As a 'claws-mail' user myself,
I know that, that caused a problem with the 'ClamAV' plug-in that was
formerly used by 'claws-mail'

Since it appears to be apparent that newer software might very well be
released under the GPLv3 license, it might behoove the FreeBSD team to
rethink its ideas or beliefs regarding the inclusion of such software
into the base system. At the very least, it might very well make life
easier for end users who need the support that programs using that
license are now offering.

Then again, I could be wrong. Just my 2¢.



If and when a sufficiently compelling conflict arises, I am sure it will 
receive due attention.


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


Re: buildworld, buildkernel, installkernel, shutdow now, fsck -p -- NO WRITE ACCESS

2008-08-04 Thread Daniel Bye
On Mon, Aug 04, 2008 at 04:00:56PM -0400, [EMAIL PROTECTED] wrote:
> I do not code in any way.  With that being said, should you be able to 
> help please do so with the knowledge that I can not code.  I'm following 
> the freebsd handbook when the following occurs.
> 
> -- separate fresh 'dangerously dedicated' installs of both 7.0 and 
> 6.3-RELEASE on the same machine, yield the following:
> In multi-user mode make buildworld, buildkernel and installkernel.
> Shutdown now

This will only drop you to single user mode with all filesystems still
mounted. It is not a good idea to run fsck on a mounted filesystem...

Instead, you need to run

# shutdown -r now

to REBOOT the machine with the newly installed kernel. At the loader
menu, press `4' to boot into single user mode (at this point, only /
will be mounted, so your `fsck -p' should work just fine).

Now procede with the next steps...


> -- fsck -p
> /dev/ad4s1a: NO WRITE ACCESS
> /dev/ad4s1a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
> 
> This happens each and everytime no matter if I install from iso -or- ftp 
> (passive). After numerous attempts the only way to get past this is 
> 'fsck -y'. Could the fbsd handbook section I'm following need updating 
> or is there another issue taking place here?

I think you're getting confused by the instructions (don't have a browser
to hand so can't check the handbook, so apologies if this isn't the case).
IIRC, the handbook suggests you drop to single user BEFORE you begin, in 
order to ensure nothing else is running while you run the build. In my
experience, this has not been necessary. Even still, after the installkernel
you MUST reboot the newly installed kernel before you continue.

HTH

Dan

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


pgp37l6bYbf2D.pgp
Description: PGP signature


Re: Client only supports checkout mode

2008-08-04 Thread Paul Schmehl

--On Monday, August 04, 2008 16:43:38 -0400 kalin m <[EMAIL PROTECTED]> wrote:


thanks

i tried both cvsup and csup to update my ports and i'm not sure it's working.
they both run through but the ports don't seem to be updated.
like i can see a new port here
http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/php5/ which is 5.2.6 (also
on freshports) but using cvsup3.FreeBSD.org i don't get above 5.2.5

is there any other way?



Something must be wrong with your cvsupfile.  I downloaded ports.tar.gz from 
cvsup3/ports/ports-current:


[EMAIL PROTECTED] less /usr/ports/lang/php5/distinfo
MD5 (php-5.2.6.tar.bz2) = 7380ffecebd95c6edb317ef861229ebd
SHA256 (php-5.2.6.tar.bz2) = 
1892b2dd50b56ae2c9aec027fcd9035b76673f113555bc2bc1007bab8ae4db81

SIZE (php-5.2.6.tar.bz2) = 9571312

[EMAIL PROTECTED] tar -ztv -f ports.tar.gz | grep ports/lang/php5/distinfo
-rw-rw-r--  0 archive archive 646 May 12 20:04 ports/lang/php5/distinfo

[EMAIL PROTECTED] ls -Flash /usr/ports/lang/php5/distinfo
2 -rw-r--r--  1 root  wheel   646B May 12 10:42 /usr/ports/lang/php5/distinfo

As you can see, the distinfo file says php5.2.6, and its size and creation date 
match both in my ports tree and in the tarball I fetched from that server.


If you want current ports, you need this:
[EMAIL PROTECTED] grep ports /etc/cvsupfile
ports-all tag=.

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

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


Re: Periodic scripts running twice

2008-08-04 Thread RW
On Mon, 04 Aug 2008 13:21:36 -0500
CyberLeo Kitsana <[EMAIL PROTECTED]> wrote:

> Hi!
> 
> For a while, I've noticed odd behavior with periodic scripts
> installed by certain ports (portaudit) as well as ones I've penned
> myself (corescan), in that they appear to be run twice in succession
> every time.
> 
> Base system scripts, and some add-on scripts (freshclam) are run only 
> once, even in the same periodic batch.
> 
> Is there some end state the script is expected to be in to signal 
> periodic of a successful run?
> 
> (Incl: Sample email, weekly.txt)
> 
> Thanks!
> 


Is this a long-standing problem? It sounds like you
didn't fully complete the UPDATING instruction for the 20070519 xorg
update, and /usr/local/etc/periodic is being access both directly
and via the /usr/X11R6 symlink.


Try adding local_periodic="/usr/local/etc/periodic"
to /etc/periodic.conf
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: When gcc43 is expected to be in base?

2008-08-04 Thread Gerard
On Mon, 04 Aug 2008 21:46:35 +0200
Kris Kennaway <[EMAIL PROTECTED]> wrote:

>> Isn't possible to add GPLv3 code in the base system?
>> (By possible I mean the license part, not the technical part;)
>>   
>
>There is a strong preference not to do this.

Doing a totally unscientific investigation reveals that the trend seems
to be towards the use of GPLv3 license. As a 'claws-mail' user myself,
I know that, that caused a problem with the 'ClamAV' plug-in that was
formerly used by 'claws-mail'

Since it appears to be apparent that newer software might very well be
released under the GPLv3 license, it might behoove the FreeBSD team to
rethink its ideas or beliefs regarding the inclusion of such software
into the base system. At the very least, it might very well make life
easier for end users who need the support that programs using that
license are now offering.

Then again, I could be wrong. Just my 2¢.

-- 
Gerard
[EMAIL PROTECTED]

Campus sidewalks never exist as the straightest line between two
points.

M. M. Johnston


signature.asc
Description: PGP signature


Re: Client only supports checkout mode

2008-08-04 Thread kalin m

thanks

i tried both cvsup and csup to update my ports and i'm not sure it's 
working. they both run through but the ports don't seem to be updated.
like i can see a new port here 
http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/php5/ which is 5.2.6 
(also on freshports) but using cvsup3.FreeBSD.org i don't get above 
5.2.5


is there any other way?



Manolis Kiagias wrote:

kalin m wrote:

hi all...

why would i get : "Client only supports checkout mode" when i do;
csup /cvsup_file

on a new freebsd 7 install

what does it mean?!


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




It means you are trying to use a supfile that works in cvs mode.

In cvs mode, the client does not simply checkout the latest version of 
the files from the repository, instead it retrieves the ",v" files 
that make up the whole repository. Effectively this means you are 
creating a local copy of the repository, while in checkout mode you 
just get the latest revision of every file.


CVS mode is mostly necessary if you wish to have quick access to all 
versions of a file (and the revision history) and mostly useful for 
developers. In other cases (for example, to update your ports tree) 
checkout mode is sufficient.


And now, here is the catch: Many people need to use checkout mode 
often, so csup was created and added to the base system. Csup is a 
rewrite (in C) of the well know cvsup utility (that exists in ports). 
But csup *does not* support cvs mode. So if you are trying to use a 
supfile that operates in cvs mode, you will get the "Client only 
supports checkout mode"


If you really need to use a cvs mode supfile, you will need to pkg_add 
-r cvsup-without-gui (or build it from ports) and then use the cvsup 
command instead of csup. A cvs mode supfile contains the line:


default release = cvs

while in a simple checkout supfile, this line also contains a tag, 
e.g. (my ports supfile):


default release = cvs tag=.

The tag simply requests a particular revision of the files (a 
checkout), and in the case of "." it simply means the latest revision 
(head)


You can get a nice description of all options in the Handbook:

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

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


buildworld, buildkernel, installkernel, shutdow now, fsck -p -- NO WRITE ACCESS

2008-08-04 Thread freebsd_user
I do not code in any way.  With that being said, should you be able to 
help please do so with the knowledge that I can not code.  I'm following 
the freebsd handbook when the following occurs.


-- separate fresh 'dangerously dedicated' installs of both 7.0 and 
6.3-RELEASE on the same machine, yield the following:

In multi-user mode make buildworld, buildkernel and installkernel.
Shutdown now
-- fsck -p
/dev/ad4s1a: NO WRITE ACCESS
/dev/ad4s1a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

This happens each and everytime no matter if I install from iso -or- ftp 
(passive). After numerous attempts the only way to get past this is 
'fsck -y'. Could the fbsd handbook section I'm following need updating 
or is there another issue taking place here?



23.4.1 The Canonical Way to Update Your System
23.4.5 Drop to Single User Mode
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: When gcc43 is expected to be in base?

2008-08-04 Thread Kris Kennaway

Christer Solskogen wrote:

Kris Kennaway wrote:

Jakub Lach wrote:
I'm eager to have core2 march, but don't want to mess system forcing 
gcc43 as

base.


I don't think it is planned to update to gcc 4.3 since it is covered 
by the GPLv3.




Isn't possible to add GPLv3 code in the base system?
(By possible I mean the license part, not the technical part;)



There is a strong preference not to do this.

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


Re: Printing with lpd

2008-08-04 Thread Martin Schweizer
Hello Konrad

Am Mon, Aug 04, 2008 at 08:06:18AM +0200 Konrad Heuer schrieb:

> >I'm playing around with lpd. My setup: a FreeBSD 7.0 server and a attached 
> >HP LaserJet 2840N (connected via ethernet), my
> >/etc/printcap:
> >hplj2840|lp|Hewlett Packard LaserJet 2840C:\
> >   :sh:\
> >   :lp=:rm=hplj2840:rp=raw:sd=/var/spool/lpd/hplj2840:\
> >   :lf=/var/log/lpd-errs:\
> >   :if=/usr/local/libexec/if-simple:
> >
> >and if-simple:
> >/usr/local/bin/recode latin1..ibmpc
> >
> >The prints are ok so fare (incl. the german umlauts). If I print text 
> >mails out from mutt the seems ok too. But if the
> >mails has some incorrect wrapped lines (> 72 caracters) the lines are not 
> >wrapped on the output.  What do I worng here?
> 
> I'd add something like
> 
>   /usr/bin/fold -s -w 80 | /usr/local/bin/recode latin1..ibmpc
> 
> to the filter script. I don't know whether there's an internal printer 
> setting for wrapping long lines.

Works like a charm! I did set the option -w to 78 so the printer did not print 
over the border. Thank you for the hint.

Regards,
-- 

Martin Schweizer
<[EMAIL PROTECTED]>

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

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


Re: carp+openospfd

2008-08-04 Thread Alexandre Biancalana
On 8/1/08, Nikos Vassiliadis <[EMAIL PROTECTED]> wrote:
> On Friday 01 August 2008 06:54:02 Alexandre Biancalana wrote:
>  > The firewalls failover this is working great with Carp. My
>  > difficulties is to configure OpenOSPFD to distribute routes in this
>  > setup,
>
>
> Two points:
>  1) Did you try to run OSPF on the CARP interface?
>  Or the physical one? I don't think running OSPF
>  on the CARP interface will work, cause the CARP
>  interface receives nothing while at BACKUP mode.

OpenOSPFD always see CARP interfaces as passive...


>
> No, OSPF cannot provide load balancing, as FreeBSD does not support
>  equal cost multipath routing, that is you can use one and only one
>  next hop for a destination. So, in short, OSPF will not do load
>  balancing, as it does with other vendors you may be familiar with.

bad news... I remember now that multiple fibs are too new on FreeBSD...

Thinking again, I can survive with equal cost multipath routing and do
the failover via script...

How's good is our ECMP ?  Have someone tested this ?
>
>  If you run CARP on the LAN links as well(which you probably do),
>  you should test and see how CARP's ARP level load balancing fits
>  your network...

It's working as expected

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


Periodic scripts running twice

2008-08-04 Thread CyberLeo Kitsana

Hi!

For a while, I've noticed odd behavior with periodic scripts installed 
by certain ports (portaudit) as well as ones I've penned myself 
(corescan), in that they appear to be run twice in succession every time.


Base system scripts, and some add-on scripts (freshclam) are run only 
once, even in the same periodic batch.


Is there some end state the script is expected to be in to signal 
periodic of a successful run?


(Incl: Sample email, weekly.txt)

Thanks!

--
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
<[EMAIL PROTECTED]>

Furry Peace! - http://.fur.com/peace/
Return-Path: <[EMAIL PROTECTED]>
X-Original-To: root
Delivered-To: [EMAIL PROTECTED]
Received: by mtumishi.cyberleo.net (Postfix, from userid 0)
id 8C49911848; Sat,  2 Aug 2008 07:15:59 -0400 (EDT)
To: [EMAIL PROTECTED]
Subject: mtumishi.cyberleo.net weekly run output
Message-Id: <[EMAIL PROTECTED]>
Date: Sat,  2 Aug 2008 07:15:59 -0400 (EDT)
From: [EMAIL PROTECTED] (Charlie Root)


Rebuilding locate database:

Rebuilding whatis database:
makewhatis: already visited /usr/X11R6/man

Scanning for core files in { / /tmp /usr /var }:
-rw---  1 root  wheel  -  4083712 May  2 17:12 /root/php.core
-rw---  1 root  wheel  -  3170304 Jan  7  2008 /tmp/gopempJVXg/php.core
-rw---  1 cyberleo  users  - 49807360 Jul 12  2007 
/usr/home/cyberleo/build/httpd-2.2.4/modules/metadata/.libs/perl.core
-rw---  1 root  users  -  2588672 Jul 14  2007 
/usr/home/cyberleo/download/lsz.core
-rw---  1 cyberleo  users  -   724992 Apr 28 11:56 
/usr/home/cyberleo/nc.core
-rw---  1 cyberleo  users  -   696320 Apr 20 05:04 
/usr/home/cyberleo/supfiles/bash.core
-rw---  1 root  wheel  -   655360 Jun 30  2007 
/usr/ports/distfiles/gnome2/fetch.core
-rw---  1 root  wheel  -  4460544 Jan  7  2008 
/usr/ports/lang/php5-extensions/php.core

Scanning for core files in { / /tmp /usr /var }:
-rw---  1 root  wheel  -  4083712 May  2 17:12 /root/php.core
-rw---  1 root  wheel  -  3170304 Jan  7  2008 /tmp/gopempJVXg/php.core
-rw---  1 cyberleo  users  - 49807360 Jul 12  2007 
/usr/home/cyberleo/build/httpd-2.2.4/modules/metadata/.libs/perl.core
-rw---  1 root  users  -  2588672 Jul 14  2007 
/usr/home/cyberleo/download/lsz.core
-rw---  1 cyberleo  users  -   724992 Apr 28 11:56 
/usr/home/cyberleo/nc.core
-rw---  1 cyberleo  users  -   696320 Apr 20 05:04 
/usr/home/cyberleo/supfiles/bash.core
-rw---  1 root  wheel  -   655360 Jun 30  2007 
/usr/ports/distfiles/gnome2/fetch.core
-rw---  1 root  wheel  -  4460544 Jan  7  2008 
/usr/ports/lang/php5-extensions/php.core

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

Re: creating package repository for offline installation

2008-08-04 Thread Manolis Kiagias

Manolis Kiagias wrote:

Nikos Vassiliadis wrote:

On Monday 04 August 2008 14:34:45 Manolis Kiagias wrote:
 

If you don't mind building the packages (on the remote system) from
ports, I would suggest ports-mgmt/tinderbox
Comprehensive instructions are located here:
http://tinderbox.marcuscom.com/ I've used it for quite some time
(http://www.freebsdgr.org/tinderbox/) but lately I've dedicated a
machine for package building and I am using a couple of my own simple
scripts.



I really don't care about the latest and shiniest programs.
So, I do mind building from ports. I just want to download
20-30 packages along with their dependecies.

I think I've found a relatively cheap way to do just that,
I am going to use unionfs to create a "replica" of my system,
mount an empty fs on $JAIL/var/db/pkg, fire up "jail $JAIL"
and pkg_add -Kr $everything_i_want in there.

//a few of minutes later

Yet to my big surprise(and disappointment) pkg_add -Kr
does not keep the dependencies, but only the requested
file e.g. pkg_add -rK bash, downloads all depedencies,
installs bash and deletes all packages but bash. Not
much of a progress...


  

But you can still use the installed packages to recreate everything:

e.g. pkg_create -Rb bash-x.y.z

Or, use a simple shell script with pkg_create -b to create packages 
from all installed ones, i.e:


for i in `pkg_info -Ea`
do
pkg_create -b $i
done

And by the way,  if you are running 7-STABLE, pkg_create supports a 
no-clobber option (courtesy of Giorgos ;) ), so if you run it with -R 
(recursion) it will not keep recreating / overwriting the existing 
packages in the same directory.

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


802.11s / mesh / olsr

2008-08-04 Thread Steve Franks
I was just reading up on 802.11 meshes.  Looks like the linux guys are
starting to play with it.  What about us?  I note this cute little
OLPC device I've got seems to support the draft standard.  I thought
it'd be interesting to start sticking it on my bsd boxes when I can
(since I've got quite a few now)...

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


Re: creating package repository for offline installation

2008-08-04 Thread Manolis Kiagias

Nikos Vassiliadis wrote:

On Monday 04 August 2008 14:34:45 Manolis Kiagias wrote:
  

If you don't mind building the packages (on the remote system) from
ports, I would suggest ports-mgmt/tinderbox
Comprehensive instructions are located here:
http://tinderbox.marcuscom.com/ I've used it for quite some time
(http://www.freebsdgr.org/tinderbox/) but lately I've dedicated a
machine for package building and I am using a couple of my own simple
scripts.



I really don't care about the latest and shiniest programs.
So, I do mind building from ports. I just want to download
20-30 packages along with their dependecies.

I think I've found a relatively cheap way to do just that,
I am going to use unionfs to create a "replica" of my system,
mount an empty fs on $JAIL/var/db/pkg, fire up "jail $JAIL"
and pkg_add -Kr $everything_i_want in there.

//a few of minutes later

Yet to my big surprise(and disappointment) pkg_add -Kr
does not keep the dependencies, but only the requested
file e.g. pkg_add -rK bash, downloads all depedencies,
installs bash and deletes all packages but bash. Not
much of a progress...


  

But you can still use the installed packages to recreate everything:

e.g. pkg_create -Rb bash-x.y.z

Or, use a simple shell script with pkg_create -b to create packages from 
all installed ones, i.e:


for i in `pkg_info -Ea`
do
pkg_create -b $i
done



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


Re: creating package repository for offline installation

2008-08-04 Thread Nikos Vassiliadis
On Monday 04 August 2008 14:34:45 Manolis Kiagias wrote:
> If you don't mind building the packages (on the remote system) from
> ports, I would suggest ports-mgmt/tinderbox
> Comprehensive instructions are located here:
> http://tinderbox.marcuscom.com/ I've used it for quite some time
> (http://www.freebsdgr.org/tinderbox/) but lately I've dedicated a
> machine for package building and I am using a couple of my own simple
> scripts.

I really don't care about the latest and shiniest programs.
So, I do mind building from ports. I just want to download
20-30 packages along with their dependecies.

I think I've found a relatively cheap way to do just that,
I am going to use unionfs to create a "replica" of my system,
mount an empty fs on $JAIL/var/db/pkg, fire up "jail $JAIL"
and pkg_add -Kr $everything_i_want in there.

//a few of minutes later

Yet to my big surprise(and disappointment) pkg_add -Kr
does not keep the dependencies, but only the requested
file e.g. pkg_add -rK bash, downloads all depedencies,
installs bash and deletes all packages but bash. Not
much of a progress...

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


You will have 5 X faster Internet forever!

2008-08-04 Thread sales

   [box.jpg]
 * 5� X faster Internet Explorer
 * 5 X faster Mozilla Firefox
 * 3 times faster downloading
 * 4 times increase in peak download speeds

   �

   UFaster(TM) -Your Internet connection is faster!

   Just download . run . click the UFaster Boost button . and
   you will have 5 X faster Internet forever!

   You won't believe how fast your high speed Internet Broadband can go

   [1]Start Download Now
   Join our partner and start profiting from promoting the leading
   Internet Speed Booster software now!
   Benefits 
 * Increase your services and products perceived value with our award
   winning software
 * Clear added value for your customer base
 * Attractive upgrade options to personal license for your customers
 * Share the profit from the resulting sales in form of commission
 * Co-Branding or Brand the software with your company name and logo
   �

   To become an UFaster OEM partner or reseller, email us at
   [EMAIL PROTECTED]

   The Best way for your Broadband Subscribers to speed up their Internet
   connection.   

References

   1. http://www.ufaster.com/download.htm
   2. mailto:[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: GEOM + mount_msdosfs usb flash stick

2008-08-04 Thread Roland Smith
On Mon, Aug 04, 2008 at 02:12:09PM +0800, joeb wrote:
> On 7.0 release of FBSD trying to mount a usb flash memory stick. The stick
> has a msdos file system on it and has been loaded with files using windows
> xp. When I plug the stick into my FBSD 7.0 box I get Geom console msg
> 'GEOM_LABEL:Label for provider Da0s1 is msdosfs_flashdrive'.
> Does this mean the flash stick is mounted and the mount point is
> msdosfs_flashdrive'?

No. It means that GEOM_LABEL has created a named device in
/dev/msdosfs/flashdrive. 

This is easier to use then e.g. /dev/da0s1. Consider the case where you
have two USB mass storage devices. One will be da0, the other da1, da0
being the one that was plugged in first. The label 'flashdrive' on the
other hand won't change unless you change it.

>  When is issue this command,  mount_msdosfs /dev/da0s1 /mnt  I get this
> console msg  ' GEOM get label removed'.  Using the /mnt mount point every
> thing works fine.

If you use 'mount_msdosfs -m 644 -M 755 /dev/msdosfs/flashdrive /mnt'
you can keep using this command (e.g. put it in a script) as long as you
don't change the label.

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


pgpZhIEZB9D0S.pgp
Description: PGP signature


Re: When gcc43 is expected to be in base?

2008-08-04 Thread Christer Solskogen

Kris Kennaway wrote:

Jakub Lach wrote:
I'm eager to have core2 march, but don't want to mess system forcing 
gcc43 as

base.


I don't think it is planned to update to gcc 4.3 since it is covered by 
the GPLv3.




Isn't possible to add GPLv3 code in the base system?
(By possible I mean the license part, not the technical part;)

--
chs

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


Re: Printing with lpd

2008-08-04 Thread Warren Block

On Mon, 4 Aug 2008, Martin Schweizer wrote:


I'm playing around with lpd. My setup: a FreeBSD 7.0 server and a attached HP 
LaserJet 2840N (connected via ethernet), my
/etc/printcap:
hplj2840|lp|Hewlett Packard LaserJet 2840C:\
   :sh:\
   :lp=:rm=hplj2840:rp=raw:sd=/var/spool/lpd/hplj2840:\
   :lf=/var/log/lpd-errs:\
   :if=/usr/local/libexec/if-simple:

and if-simple:
/usr/local/bin/recode latin1..ibmpc

The prints are ok so fare (incl. the german umlauts). If I print text mails out 
from mutt the seems ok too. But if the
mails has some incorrect wrapped lines (> 72 caracters) the lines are not 
wrapped on the output.  What do I worng here?


There's a PCL command for wrapping long lines: &s0C (Untested by 
me, I use PostScript.)  Your if-simple can send that escape sequence 
before the actual file.


/usr/ports/print/enscript is a convenient text to PostScript formatter 
which wraps long lines by default.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: PCI Gigabit Ethernet network interface card (NIC) recommendations

2008-08-04 Thread sergio lenzi
I use DLINK TX502 with the VIA chipset 
FreeBSD vr0works very good
for years (2 years) now without any complain
is easy to get (buy) very cheap about US10
each


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


Re: setting the other end's TCP segment size

2008-08-04 Thread Nikos Vassiliadis
On Monday 04 August 2008 00:16:54 [EMAIL PROTECTED] wrote:
> > > >> Is there a simple way for a FreeBSD system to cause its
> > > >> peer to use a transmit segment size of, say, 640 bytes --
> > > >> so that the peer will never try to send a packet larger
> > > >> than that?
> > > >>
> > > >> I'm trying to get around a network packet-size problem.
> > > >> In case it matters, the other end is SunOS 4.1.1 on a
> > > >> sun3, and I've been unable to find a way to limit its
> > > >> packet size directly.
>
> ...
>
> > > > Each tcp conversation can have it's own size set along
> > > > with a bunch of other params.
> > >
> > > Good point.  The TCP_MAXSEG can reduce the maximum segment
> > > size for a single TCP connection to something smaller than
> > > the interface MTU :)
>
> That would be OK, provided I could somehow arrange for it to apply
> to all conversations with this particular destination (which is
> what the next item seems to do :)
>
> > Just adding that MTU can be set per destination with the help
> > of route(8) and the -mtu modifier.
>
> That would be better than setting the local mtu -- which has been
> causing other problems although it takes care of the original --
> and it is a better match to the physical situation.  (The culprit
> is neither the Sun nor the FreeBSD system, but the physical link
> between the Sun and the hub.)
>
> What I haven't been able to come up with is a way of making such
> a setting permanent.  If I've communicated with the Sun recently
> enough, "netstat -r -W" reports a line like this (some spaces
> removed, for length, and I've no longer got xl0's mtu set low)
>
> Destination   Gateway   Flags Refs Use  Mtu Netif Expire
> 192.168.200.3 08:00:20:00:a7:a6 UHLW 1  34 1500   xl0   1184
>
> Now if I do
>
> # route change 192.168.200.3 -lock -mtu 640
>
> the mtu column changes to 640 and it works fine, but only until
> the routing entry expires.  Adding -static makes no difference
> -- the entry still expires and loses the mtu specification.
>
> I've been unable to come up with a route command that will *create*
> an entry like that (vs modifying an existing one), nor that will
> transform a transient entry into a permanent one.

Yes, it's the interaction of ARP and the routing subsystem.
I am sure there is a shorter way for doing this, but it
escapes my knowledge:
1) create a static ARP entry, this will create an entry to
  the routing table i.e. arp -S IPADDR MACADDR
2) modify the mtu for that destination
  i.e. route change IPADDR -mtu MTU

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


Re: Flashplugin

2008-08-04 Thread David Gurvich
For youtube, gnash works better than linux-flashplugin7 and worse than
wine+flash9 on i386.  I understand that amd64 has difficulties with
wine, making gnash or similar the only option.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ifconfig query/dhclient

2008-08-04 Thread Erik Trulsson
On Mon, Aug 04, 2008 at 07:54:06PM +1000, Warren Liddell wrote:
> Im trying to find out how i can change my net card on re0 to be a 
> 10BaseT full duplex instead of auto @ 100.
> 

'ifconfig re0 media 10baseT/UTP mediaopt full-duplex' should work.
(See the re(4) and ifconfig(8) manpages.)

Be aware that if you are forcing one end of the link to a specific mode
(instead of letting it auto-negotiate speed and duplex) you will normally
also have to force the other end of the link to the same settings.  Most
cheap (and some not-so-cheap) ethernet switches only support
auto-negotiation.


> Also trying to work out why when using dhclient fwe0 (presuming its 
> my wireless card) it never gets a link .. is there more to getting a 
> link with wireless?  there is no encryption.

fwe0 is not your wireless card. fwe(4) is for ethernet emulation over
FireWire (aka ieee1394). (As clearly described in the fwe(4) manpage.)

There are a large number of settings that can be used with wireless
connections.  See ifconfig(8) for the full list (look for references to
802.11).
A couple of settings that you will probably need to set are the mode (11a,
11b or 11g) as well as the SSID.

> 
> Any an all assistance is greatly appreciated.
> 


-- 

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


OHCI panics?

2008-08-04 Thread Andrea Venturoli

Hello.

I'm getting more and more of these lately on a 7.0p1/amd64:

Unread portion of the kernel message buffer:
panic: ohci_add_done: addr 0x754a2d30 not found
cpuid = 0
Uptime: 7d0h36m6s
Physical memory: 4072 MB
Dumping 560 MB: 545 529 513 497 481 465 449 433 417 401 385 369 353 337 
321 305 289 273 257 241 225 209 193 177 161 145 129 113 97 81 65 49 33 17 1


#0  doadump () at pcpu.h:194
194 __asm __volatile("movq %%gs:0,%0" : "=r" (td));
(kgdb) bt
#0  doadump () at pcpu.h:194
#1  0x8029cefe in boot (howto=260) at 
/usr/src/sys/kern/kern_shutdown.c:409

#2  0x8029d367 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:563
#3  0x8021f741 in ohci_intr1 (sc=0x80a44000) at 
/usr/src/sys/dev/usb/ohci.c:1301
#4  0x80280c00 in ithread_loop (arg=0xff000121c780) at 
/usr/src/sys/kern/kern_intr.c:1036
#5  0x8027d78e in fork_exit (callout=0x80280a80 
, arg=0xff000121c780, frame=0xabebdc80) at 
/usr/src/sys/kern/kern_fork.c:781
#6  0x803d95fe in fork_trampoline () at 
/usr/src/sys/amd64/amd64/exception.S:415

#7  0x in ?? ()
#8  0x in ?? ()
#9  0x0001 in ?? ()
#10 0x in ?? ()
#11 0x in ?? ()
#12 0x in ?? ()
#13 0x in ?? ()
#14 0x in ?? ()
#15 0x in ?? ()
#16 0x in ?? ()
#17 0x in ?? ()
#18 0x in ?? ()
#19 0x in ?? ()
#20 0x in ?? ()
#21 0x in ?? ()
#22 0x in ?? ()
#23 0x in ?? ()
#24 0x in ?? ()
#25 0x in ?? ()
#26 0x in ?? ()
#27 0x in ?? ()
#28 0x in ?? ()
#29 0x in ?? ()
#30 0x in ?? ()
#31 0x00822000 in ?? ()
#32 0x0001 in ?? ()
#33 0xff00011a1000 in ?? ()
#34 0xff00010ce340 in ?? ()
#35 0x0001 in ?? ()
#36 0xabebdb70 in ?? ()
#37 0xabebdb28 in ?? ()
#38 0xff00011719c0 in ?? ()
#39 0x802bb084 in sched_switch (td=0xff000121c780, 
newtd=0x0, flags=0) at /usr/src/sys/kern/sched_4bsd.c:905

Previous frame inner to this frame (corrupt stack?)



Any hint?


# usbdevs -v
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, OHCI root hub(0x), 
nVidia(0x), rev 1.00
 port 1 addr 2: low speed, power 16 mA, config 1, product 
0x0001(0x0001), vendor 0x07f2(0x07f2), rev 0.01

 port 2 powered
 port 3 addr 3: full speed, power 500 mA, config 1, USB Wave 
Gprs(0x6001), Digicom(0x0403), rev 4.00
 port 4 addr 4: full speed, power 100 mA, config 1, USB-Serial 
Controller(0x2303), Prolific Technology Inc.(0x067b), rev 3.00

 port 5 powered
 port 6 powered
 port 7 powered
 port 8 powered
 port 9 powered
 port 10 powered



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


Re: creating package repository for offline installation

2008-08-04 Thread Manolis Kiagias

Nikos Vassiliadis wrote:

Hi,

I would like to update the installed packages at home. There
are two problems:
1) there is only dialup internet connection. That pretty
much rules out the possibility of using 'pkg_add -r'
2) I want to use packages, because using ports will take
days and the systems are not that fast. So, I cannot
use 'make fetch-recursive'

I would like to create a package repository with the
packages of choice, burn these to one or two CDs,
take them home, and do the installation.

I guess I can install inside a jail the packages of choice,
are there any other options?

Thanks in advance, Nikos
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
  
If you don't mind building the packages (on the remote system) from 
ports, I would suggest ports-mgmt/tinderbox

Comprehensive instructions are located here: http://tinderbox.marcuscom.com/
I've used it for quite some time (http://www.freebsdgr.org/tinderbox/) 
but lately I've dedicated a machine for package building and I am using 
a couple of my own simple scripts.

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


Re: ifconfig query/dhclient

2008-08-04 Thread Edward Ruggeri
On Mon, Aug 4, 2008 at 4:54 AM, Warren Liddell <[EMAIL PROTECTED]> wrote:
> Im trying to find out how i can change my net card on re0 to be a 10BaseT
> full duplex instead of auto @ 100.

I don't know, but someone else can probably help.

> Also trying to work out why when using dhclient fwe0 (presuming its my
> wireless card) it never gets a link .. is there more to getting a link with
> wireless?  there is no encryption.

Have you done 'ifconfig fwe0 up" first?

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


FreeBSD70 install problem -ehci0:[GIANT-LOCKED] any hints most welcome

2008-08-04 Thread dhaneshk k







people ;

  
  
   
 I tried  to install FreeBSD7.0 on my new Desktop machine  (Intel core2 duo 
processor , Intel Mother Board  MAGNUS2-LD G31) getting an error while booting 
from the install CD as follows 


ehci0: mem 0xfea77c00-0xfra77fff 
irq 23 at device 29.7 on pci0

ehci0 : Reserved 0x400   bytes for rid 0x10 type 3 at 0xfea77c00 
ehci0:[GIANT-LOCKED]


HERE I got stuck & installation not continuing form here   any FreeBSD experts 
please help me to fix the isssue and continue the installation successfully .

any hints most welcome ; 

Thanks in Advance 
Dhanesh .

   

_
Chose your Life Partner? Join MSN Matrimony FREE
http://www.shaadi.com/msn/matrimony.php 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


creating package repository for offline installation

2008-08-04 Thread Nikos Vassiliadis
Hi,

I would like to update the installed packages at home. There
are two problems:
1) there is only dialup internet connection. That pretty
much rules out the possibility of using 'pkg_add -r'
2) I want to use packages, because using ports will take
days and the systems are not that fast. So, I cannot
use 'make fetch-recursive'

I would like to create a package repository with the
packages of choice, burn these to one or two CDs,
take them home, and do the installation.

I guess I can install inside a jail the packages of choice,
are there any other options?

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


Re: Flashplugin

2008-08-04 Thread Edwin L. Culp

"Conrad J. Sabatier" <[EMAIL PROTECTED]> escribió:


On Sat, 7 Jun 2008 15:00:27 -0500
Derek Graham <[EMAIL PROTECTED]> wrote:


Hey all,

I have tried using swfdec-plugin to do flash, but it doesnt seem to
work too well at least with firefox.
One ... I prefer being able to select what flash loads automaticly and
Two ... I like to be able to see the flash video but all it does is
freeze

I can't seem to get linux-flashplugin7 anymore due to the restricted
status. Flashplugin9 locks up also, which we all know already. I have
heard gnash doesnt do much better... Anyone have a solution that works
halfway?


I just installed the "HEAD" version of Gnash today, and I must say, it's
working much, much better than the official release version (0.8.3).
Sites that malfunctioned before are now displaying properly at last!


I'm sorry but I must ask.  What version of flash can be reliably  
viewed?  I guess many if not most are new asking for flash9 or flash8.  
 I find few that are satisfied with flash7.


Thanks,

ed


See http://www.gnu.org/software/gnash/#downloading for instructions on
how to get the source code.  You'll also need to install devel/bazaar-ng
in order to fetch it.

--
PROOF OF GOD #483. ARGUMENT FROM PROBABLE PROOF
  (1) God exists.
  (2) Can I prove it?  Probably.
  (3) Therefore, God exists.
___
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: building only part of the world

2008-08-04 Thread Matthew Seaman

[EMAIL PROTECTED] wrote:

How would I go about building, not the entire world, but only
a small part of it?

If I just cd to the desired subdirectory and type "make -n"
-- intending to find out what it would try to do -- I get a
warning about not having changed the object directory.

I suppose I'm supposed to type something along the lines of

  make -n OBJ=

but what should I be setting OBJ to?  An attempt to find(1)
some of the expected output files, so as to discover where
they are conventionally located, found nothing.


The usual command sequence for building in parts of the source tree
is:

  # cd /usr/src/some/where
  # make obj
  # make depend
  # make
  # make install

This will suppress the warnings.

Compiling part of the system sources is supported.  It's routinely
described in many security advisories.  See for instance section (2)
'To patch your present system' in

http://security.freebsd.org/advisories/FreeBSD-SA-08:06.bind.asc

You'll find the output somewhere under /usr/obj 


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


ifconfig query/dhclient

2008-08-04 Thread Warren Liddell
Im trying to find out how i can change my net card on re0 to be a 
10BaseT full duplex instead of auto @ 100.


Also trying to work out why when using dhclient fwe0 (presuming its 
my wireless card) it never gets a link .. is there more to getting a 
link with wireless?  there is no encryption.


Any an all assistance is greatly appreciated.


--
No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 270.5.12/1589 - Release Date: 3/08/2008 1:00 PM



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


Re: Handling of daily and weekly mails

2008-08-04 Thread Matthew Seaman

Maximillian Dornseif wrote:

I administer about a dozen FreeBSD Servers. This results in me
getting about 100 mails a week from the PERIODIC(8) scripts.
Obviously this is to much to read with care.



I wonder what the canonical approach is to handling hundreds of
status mails like the ons generated by periodic.


Yeah.  Periodic scripts are great if you only have a few machines not
doing anything really critical.  It's a mark of the standards required
by the FreeBSD project that the baseline system comes with a working 
monitoring system built-in.


However, periodic e-mails really do not scale to tens, let alone hundreds,
of machines and once a day is really far too infrequent for checking
important services.

My recommendation is to redirect all of the periodic output to local log
files -- daily.log, weekly.log etc. -- according to the comments in
/etc/defaults/periodic.conf.  Then set up a full blown monitoring system
using eg. Nagios.  For a dozen or so servers, you won't need anything
particularly special to run Nagios on. Sticking it in a jail on one of
your existing machines might work well for you.

Nagios monitoring needs to be developed over time.  With the standard
plugins supplied by the net-mgmt/nagios-plugins port, you'll be able
to monitor most services with external listeners.  However, to get the
most out of Nagios I find that installing net-mgmt/net-snmpd on all
monitored machines is a necessity.  You'll need to be careful about
how you do that -- SNMP v2c or lower does the equivalent of sending
passwords across the net in plain text, so it's useful if you can
arrange for some sort of private back-end network between all your
servers.

While the intrinsic capabilities of net-snmpd add a great deal of
monitorable information, the real advantage is the ability to hook
up arbitrary scripts via the 'extend' mechanism.  This coupled with
the ability to write custom plugins for Nagios means you can do a lot
of very interesting things.  Trivial example: we routinely hook up
running 'gmirror status -s' through snmpd and then use a very short
Nagios plugin script to alert us to RAID problems.

There's also nagios-exchange with plenty of interesting and useful stuff 
available -- see for instance

http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F1562.html;d=1

Nagios and periodic don't fulfil exactly the same functions, but there
is enough overlap to allow replacing one with the other.

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