Re: troubleshooting network settings

2006-06-08 Thread Malcolm Fitzgerald


On 08/06/2006, at 12:06 AM, Alex Zbyslaw wrote:


Malcolm Fitzgerald wrote:


Malcolm Fitzgerald wrote:

I am running freeBSD v6.0 security on a home network behind an 
adsl router.

I cannot connect to localhost from a browser (apache is running!)
I cannot connect to localhost port 22 (KPackage tries to use ssh)




On 29/05/2006, at 11:37 PM, Kevin Kinsey wrote:


Hmm, is that all?  Unusual; I'd think the loopback _should_ be set
up correctly.

`ifconfig lo0 inet 127.0.0.1 netmask 255.255.255.0`  ??

If that fixes it, then we have to figure out *why* it's not being
doing automatically.  Problem during init/rc, most likely ... weird.



I've not had time to address this problem for a week. Going through 
all the advice again I found that this advice is good. That fixes the 
problem. Any pointers on getting it done automatically?


What does /etc/rc.conf show for lo0 related things?  (And just to 
check your defaults as well...)


egrep lo0 /etc/rc.conf /etc/defaults/*


Mine shows:

/etc/defaults/rc.conf:ifconfig_lo0=inet 127.0.0.1 # default 
loopback device configuration.


Same here


malcolm

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


Re: portupgrade question (solved)

2006-06-08 Thread Michael S

I did define the to environment variables. For some reason, wget works
just fine on the same machine.

Thanks a lot.

On 6/7/06, Kris Kennaway [EMAIL PROTECTED] wrote:

On Wed, Jun 07, 2006 at 04:35:12PM -0400, Michael S wrote:
 wget works like magic. I used the defaults. fetch I guess is the
 FreeBSD default for fetching files from the web. It was having
 problems fetching files from FTP sites.
 No idea what the problem is.

Try setting FTP_PASSIVE_MODE.  This is set in the default login class,
but perhaps you have modified it.

Kris


 On 6/7/06, Kris Kennaway [EMAIL PROTECTED] wrote:
 On Wed, Jun 07, 2006 at 09:38:36AM -0400, Michael S wrote:
  Good day everyone!
 
  I have a portupgrade related question. I am behind a proxy and fetch
  doesn't appear to cope with it very well.
 
 What did you try?  fetch works fine with proxies for the rest of us :)
 
 Kris
 
 
 





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


Re: burncd error

2006-06-08 Thread Chuck Swiger

Napoleon Dynamite wrote:
[ ...top posting recovered... ]

On Wednesday 07 June 2006 10:44, Michael S wrote:

I had the same kind of issue, also with 6.1-RELEASE, and just fixed it
the Windows way - reboot. And it worked fine.


I got that error pretty routinely for a while. The cd-r was always usable, 
though. I switched to k3b for cd burning and have not seen that error since.


k3b uses dvd+rw-tools rather than burncd underneath.  It's possible that they 
would work better for the original poster too.  It also sounds like the issue 
with burncd is reproducible, anyone filed a PR...?


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


Re: i wish to buy your site

2006-06-08 Thread Jerry McAllister
 
 From: Jerry McAllister [EMAIL PROTECTED]
  
  On Sun, June 4, 2006 11:54, Richard Collyer wrote:
   bill hunt wrote:
   dear webmaster.
   My name is Bill Hunt and I'm interested in purchsing your site.
   the price is nagotiable and I'm willing to pay as much as we can agree
   on.
   please let me know if it's ok by you and we'll start nagotiating.
   yours,
   Bill
  
   Wow. Microsoft in a if you can't beat 'em buy 'em. From Bill
   himselfbe scared...very scared!
  
   ___
   freebsd-questions@freebsd.org mailing list
   http://lists.freebsd.org/mailman/listinfo/freebsd-questions
   To unsubscribe, send any mail to
   [EMAIL PROTECTED]
  
  No, guys. All of *you* who responded to this mail failed to realize that
  this is a spam message, and that it is most probably just an alternative
  scam to the nigerian stuff.
  
  No.  They all realized it.  That is why the responses were so silly - 
  such as the one included above.No-one took it seriously.   Of course
  it does serve to verify Email addresses for anyone who responds which
  is what the spammer wants.
  
  jerry
 
 Jerry, if I ran a spam trap you can bet I'd have used that address to
 reply. I'd also arrange to sound rather naive, foolish, and upset while
 doing so. Of course, I could get a little dig in that people from
 Ann Arbor would not be carrying on the way you are about it. But I'll
 be nice and not post anything. Flames aren't worth it. (Of course, on
 a Fedora group I might do differently.)

What in heaven's name are you talking about?

jerry

 
 {^_-}Univ Mich 1967 1968.
 ___
 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: Delivery reports about your e-mail

2006-06-08 Thread junk
Your Date line was Date: Thu, 8 Jun 2006 04:35:34 +0200
Now is   Thu, 8 Jun 2006 04:34:35 +0200

ECHO Server at sunic.sunet.se recieved your message with the
following header:


---  Original Header ---

From freebsd-questions@freebsd.org Thu Jun  8 04:34:35 2006
Received: from freebsd.org (host-84-220-188-170.cust-adsl.tiscali.it 
[84.220.188.170])
by sunic.sunet.se (8.13.6/8.13.6) with ESMTP id k582Xb15090450
for [EMAIL PROTECTED]; Thu, 8 Jun 2006 04:33:47 +0200 (CEST)
Message-Id: [EMAIL PROTECTED]
From: freebsd-questions@freebsd.org
To: [EMAIL PROTECTED]
Subject: Delivery reports about your e-mail
Date: Thu, 8 Jun 2006 04:35:34 +0200
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary==_NextPart_000_0014_E966ACDC.F591CCFB
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.

---   End of Header  ---

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


Re: how does cron exec jobs?

2006-06-08 Thread Olivier Nicole
 How can I simulate a cron job from the shell? There must be something
 different about the way cron is executing this command...

Counld be different environment variables set, different working
directory...

Any diagnostic when it hangs?

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


Re: portupgrade question (solved)

2006-06-08 Thread Kris Kennaway
On Wed, Jun 07, 2006 at 09:29:10PM -0400, Michael S wrote:
 I did define the to environment variables. For some reason, wget works
 just fine on the same machine.

Different defaults.

 Thanks a lot.

np.

Kris


pgpbQ76wJJ4Xj.pgp
Description: PGP signature


Re: how does cron exec jobs?

2006-06-08 Thread Atom Powers

On 6/7/06, Olivier Nicole [EMAIL PROTECTED] wrote:

 How can I simulate a cron job from the shell? There must be something
 different about the way cron is executing this command...

Counld be different environment variables set, different working
directory...


That's what I'm trying to find out. The cron man pages are ... empty
on the subject.


Any diagnostic when it hangs?


Not that I can tell. It runs on schedule but it never clears it's
locks (which it puts on files at is edits them) as it is supposed to;
and it does when run from the shell.

So it truth, it's not so much that it hangs, it does terminate, but
it doesn't honor it's lock time-outs like it does when run outside of
cron.

--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how does cron exec jobs?

2006-06-08 Thread Olivier Nicole
  Counld be different environment variables set, different working
  directory...
 
 That's what I'm trying to find out. The cron man pages are ... empty
 on the subject.

Remove every and any environment variable and try to run from / or
from /root or from /tmp

OK that's trial and error approach.

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


Re: burncd error

2006-06-08 Thread Pablo Mora

On 6/8/06, Pablo Mora [EMAIL PROTECTED] wrote:

On 6/7/06, Josh Paetzel [EMAIL PROTECTED] wrote:
 On Wednesday 07 June 2006 14:46, you wrote:
  On Wednesday 07 June 2006 11:04, Josh Paetzel wrote:
   I'm running 6.1-RELEASE
  
   Trying to burn iso's using burncd gives me an error.
  
   gimpy# burncd -f /dev/acd0 -s 48 data i386pkg-3.0.iso fixate
  
   next writeable LBA 0
   writing from file i386pkg-3.0.iso size 710566 KB
   written this track 710566 KB (100%) total 710566 KB
   fixating CD, please wait..
   burncd: ioctl(CDRIOCFIXATE): Input/output error
  
   The 'funny' thing about this is that the CDs I burn work fine.
   (I've tried several different ISOs and have checked the md5's on
   all of them.)
  
   Anyone have an idea of what is going on?  I never tried to burn
   anything with 6.0-RELEASE and it worked fine on 5.4-RELEASE
 
  I've seen the same thing for the past several weeks (worked fine at
  some point prior to 6.1). I'm running 6-STABLE, updated every
  couple weeks.  As near as I've been able to determine, the fixate
  step doesn't actually do anything, so your CD's will still be
  open but should work fine under any modern OS.  As a workaround
  you can repeat the fixate step at a lower speed: burncd -f
  /dev/acd0 -s 4 fixate
 
  I haven't experimented enough to know at what speed the fixate step
  breaks, but that does seem to be what's going on. I also haven't
  tried turning off ATAPICAM, which would be another interesting data
  point. If you or someone else has the time to figure out exactly
  which (set of) commits started producing this behavior, that would
  be excellent material for a PR.  I may get around to it myself but
  it's not a high priority.
 
   dmesg is attached.
 
  Looks like you forgot it.  In my case (using ATAPICAM):
 
  acd1: CDRW SONY CD-RW CRX215E1/SYS2 at ata1-slave UDMA33
  cd1 at ata1 bus 0 target 1 lun 0
  cd1: SONY CD-RW  CRX215E1 SYS2 Removable CD-ROM SCSI-0 device
  cd1: 33.000MB/s transfers
  cd1: Attempt to query device size failed: NOT READY, Medium not
  present
 
  JN

 My client says it included a dmesg...wonder what's going on with that.

 I've tried using different burn speeds all the way down to 32x.  I am
 using ATAPICAM, I wonder if it is somehow related to that?  I think
 I'll unload that and give it a shot.


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

quote

Which tool to use to burn the CD depends on whether your CD burner is
ATAPI or something else. ATAPI CD burners use the burncd program that
is part of the base system. SCSI and USB CD burners should use
cdrecord from the sysutils/cdrtools port. It is also possible to use
cdrecord and other tools for SCSI drives on ATAPI hardware with the
ATAPI/CAM module.

/quote


http://www.freebsddiary.org/cdrecord-ide.php

--
Linux is for people who hate Micro$oft. BSD is for people who love Unix ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


__P macro

2006-06-08 Thread Saifi
Hi:

Most of the racoon code uses __P macro.

and the __P macro is defined as -

#undef __P
#ifndef __P
#if __STDC__
#define __P(protos) protos
#else
#define __P(protos) ()
#endif
#endif

It seems to make many expressions difficult to read -
eg.

static int (*pkrecvf[]) __P((caddr_t *)) = {
 ...
}


What is the downside if this macro is not used in defining new function 
prototypes ?
(working with FreeBSD 5.4 and above with gcc 3.x compiler)

Thanks in advance.

thanks
Saifi

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


Re: On mail principles

2006-06-08 Thread a
On Thu, Jun 08, 2006 at 02:08:53AM +0300, Giorgos Keramidas wrote:
 On 2006-06-07 20:20, [EMAIL PROTECTED] wrote:
  A brief:
 
  How to use envelope from provided that I have a mailbox on ISP.
 
  A full explanation:
 
  My computer has no static IP-address, nor DNS-name in Internet.
  Internally, it has static name localhost and static IP-address 127.0.0.1.
 
  So, I have a mail address [EMAIL PROTECTED].
  But I cannot send a mail to the world using this address in envelope from
  because of
  1) Internet MTAs cancel mail whith such an address in envelope from;
  2) such an address is useless to recipient.
 
  My address in the world is [EMAIL PROTECTED].  So, I make my MUA to send a
  letter using a command setting envelope from to [EMAIL PROTECTED].  
  (like
  sendmail -f [EMAIL PROTECTED] for sendmail, see X-Authentication-Warning 
  in
  the header of this mail) But this way is bad for local purposes: my
  MTA's diagnostic messages are sent trough internet or lost at all,
  e. g. when my ADSL is in down.  (Moreover, my letters sent to other
  local users have non-local envelope from address. Then local mail
  begin to go through external MTA.)
 
  What to do in such a situation?
 
 I use mutt, which has an option to set the envelope-from address:
 
 set envelope_from=yes# set the envelope-from address from From:
 
 For the rest of the programs, like mail(1), my Sendmail setup sets
 envelope-from to one of my valid outside-world addresses.  This is
 accomplished with the following in my `sendmail.mc' file:
 
 dnl Trusted users, who are allowed to change their envelope-from address
 dnl without generating a warning in the message header, are listed, one 
 per
 dnl line, in `sendmail.ct'.
 define(`confCT_FILE', `-o /etc/mail/sendmail.ct')
 FEATURE(`use_cw_file')dnl
 
 dnl Allow mail routing exceptions through a mailer table.
 FEATURE(`mailertable', `hash /etc/mail/mailertable')
 
 dnl Address masquerading.
 dnl
 dnl Making sure that all email that passes through my desktop's Sendmail
 dnl installation is masqueraded as coming from `gothmog.pc', even if its 
 original
 dnl address is something slightly different (i.e. `ftp.pc' or `mail.pc'), 
 is
 dnl ok here.  It ensures that address rewriting and translation through
 dnl `genericstable' will also work for all `*.pc' host names.
 dnl
 dnl To make sure that remote hosts don't get a MAIL FROM address from a
 dnl hostname that doesn't resolve, envelope addresses are masqueraded 
 too, and
 dnl then get rewritten by `genericstable' to real-world addresses,
 dnl i.e. [EMAIL PROTECTED]'.
 MASQUERADE_AS(`gothmog.pc')
 FEATURE(`masquerade_entire_domain')
 FEATURE(`masquerade_envelope')
 
 dnl Rewriting the envelope-from address of all outgoing messages through a
 dnl `genericstable' lookup, ensures that envelope-from addresses seen by 
 relay
 dnl hosts are real, i.e. [EMAIL PROTECTED]' instead of the default
 dnl envelope-from of [EMAIL PROTECTED]' that Sendmail would use.  This is
 dnl required some times, to avoid getting bounces for messages from ISP 
 mail
 dnl relays that are misconfigured or are too strict about what can appear 
 in a
 dnl MAIL FROM command.
 FEATURE(`genericstable', `hash -o /etc/mail/genericstable')
 GENERICS_DOMAIN(`gothmog.pc')
 FEATURE(`generics_entire_domain')
 
 This looks like quite a mouthful of options, but it's not really that
 difficult to read.  It's only big because of all the comments.
 
 The file `/etc/mail/sendmail.ct' contains my username, because I trust
 myself to use valid envelope-from addresses.  This turns off the
 X-Authentication-Warning header which is so annoying for you too.
 
 Then, in `/etc/mail/mailertable' I have an exception for my internal,
 work-related email, and send it directly to the company's mail gateway:
 
 # Custom mail routing rules.  This is currently useful only
 # for routing work-related email through the VPN connection
 # to my company's mail relay.
 #
 foo.com   smtp:mailgate.foo.com
 .foo.com  smtp:mailgate.foo.com
 
 Finally, in my `/etc/mail/genericstable' map, I rewrite the
 envelope-from of all the rest of email messages, like this:
 
 # Outgoing email address rewriting.
 [EMAIL PROTECTED] [EMAIL PROTECTED]
 [EMAIL PROTECTED] [EMAIL PROTECTED]
 [EMAIL PROTECTED] [EMAIL PROTECTED]
 
 These options are, of course, just a suggestion.  You don't *HAVE* to
 use a setup similar to mine.
 
 - Giorgos
 
This is exactly what I want.
Thank you.

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


Re: burncd error

2006-06-08 Thread Pablo Mora

On 6/7/06, Josh Paetzel [EMAIL PROTECTED] wrote:

On Wednesday 07 June 2006 14:46, you wrote:
 On Wednesday 07 June 2006 11:04, Josh Paetzel wrote:
  I'm running 6.1-RELEASE
 
  Trying to burn iso's using burncd gives me an error.
 
  gimpy# burncd -f /dev/acd0 -s 48 data i386pkg-3.0.iso fixate
 
  next writeable LBA 0
  writing from file i386pkg-3.0.iso size 710566 KB
  written this track 710566 KB (100%) total 710566 KB
  fixating CD, please wait..
  burncd: ioctl(CDRIOCFIXATE): Input/output error
 
  The 'funny' thing about this is that the CDs I burn work fine.
  (I've tried several different ISOs and have checked the md5's on
  all of them.)
 
  Anyone have an idea of what is going on?  I never tried to burn
  anything with 6.0-RELEASE and it worked fine on 5.4-RELEASE

 I've seen the same thing for the past several weeks (worked fine at
 some point prior to 6.1). I'm running 6-STABLE, updated every
 couple weeks.  As near as I've been able to determine, the fixate
 step doesn't actually do anything, so your CD's will still be
 open but should work fine under any modern OS.  As a workaround
 you can repeat the fixate step at a lower speed: burncd -f
 /dev/acd0 -s 4 fixate

 I haven't experimented enough to know at what speed the fixate step
 breaks, but that does seem to be what's going on. I also haven't
 tried turning off ATAPICAM, which would be another interesting data
 point. If you or someone else has the time to figure out exactly
 which (set of) commits started producing this behavior, that would
 be excellent material for a PR.  I may get around to it myself but
 it's not a high priority.

  dmesg is attached.

 Looks like you forgot it.  In my case (using ATAPICAM):

 acd1: CDRW SONY CD-RW CRX215E1/SYS2 at ata1-slave UDMA33
 cd1 at ata1 bus 0 target 1 lun 0
 cd1: SONY CD-RW  CRX215E1 SYS2 Removable CD-ROM SCSI-0 device
 cd1: 33.000MB/s transfers
 cd1: Attempt to query device size failed: NOT READY, Medium not
 present

 JN

My client says it included a dmesg...wonder what's going on with that.

I've tried using different burn speeds all the way down to 32x.  I am
using ATAPICAM, I wonder if it is somehow related to that?  I think
I'll unload that and give it a shot.



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

quote

Which tool to use to burn the CD depends on whether your CD burner is
ATAPI or something else. ATAPI CD burners use the burncd program that
is part of the base system. SCSI and USB CD burners should use
cdrecord from the sysutils/cdrtools port. It is also possible to use
cdrecord and other tools for SCSI drives on ATAPI hardware with the
ATAPI/CAM module.

/quote

--
Linux is for people who hate Micro$oft. BSD is for people who love Unix ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: On mail principles

2006-06-08 Thread a
On Wed, Jun 07, 2006 at 05:43:23PM -0400, Charles Swiger wrote:
 On Jun 7, 2006, at 1:20 PM, [EMAIL PROTECTED] wrote:
 But this way is bad for local purposes: my MTA's diagnostic messages are sent
 trough internet or lost at all, e. g. when my ADSL is in down.
 (Moreover, my letters sent to other local users have non-local envelope 
 from
 address. Then local mail begin to go through external MTA.)
 
 What to do in such a situation?
 
 See the sendmail documentation [1] on MASQUERADE_AS().
 
 --
 -Chuck
 
 [1]: /usr/share/sendmail/cf/README, or check the FAQ from www.sendmail.org...

That is not a proper feature because of different local users can use world 
mail addresses with different hostnames. But masquerading is good only for 
one domain.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


MIDI

2006-06-08 Thread Gary Kline
Hi,

Since I have builtin sound on my  motherboard on most of my
systems, can I configure them to play midi files?  So far 
it looks like I need thw voxware driver/.ko/whatever.
I'd appreciate any clues here.

thanks muchly,

gary



-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

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


Re: apache13 to 22

2006-06-08 Thread bsd
 Dag Rune Sneeggen wrote:
 Perttu Laine wrote:
 On 12/9/05, Odhiambo Washington [EMAIL PROTECTED] wrote:


 apachectl stop
 cd /usr/ports/www/apache13
 make deinstall
 cd /usr/ports/www/apache22  make install
 cd /usr/ports/www/mod_php5
 make -DWITH_APACHE2 -DFORCE_PKG_REGISTER reinstall


 Just to inform you people about this old apache13 to apache22 upgrade -
 worked just fine. I made config files ready earlier and it was only
 about
 15mins downtime and everything went nicely and smoothly without
 problems
 with this process. Except instead of ports/www/mod_php5 I used
 ports/lang/php5, but that's same. :)


 Actually www/mod_php5 and lang/php5 isn't exactly the same. www/mod_php5
 only includes the mod_php5 module, whilst lang/php5 includes the CLI php
 system as well :)

 Nice to hear it worked so smoothly for you though!


 www/mod_php5 doesn't exist any longer.

 and vehement claims that php5 is broken in ports persist, but
 aren't true as near as I can tell from both external evidence
 and personal experience.

 Kevin Kinsey


Kevin,

The latest version of php5 did not work for me. In my case I had a new
install of a minimum system cvsuped to 6.1R P1 and then portsnapped before
install. Yes I had read updating before and I had been following the posts
re PHP5 and configured PHP5 with the apache module. What ever I did,
including asking on this list did not work - PHP5 refused to run. Most of
the replies I got said read updating - I refrained from relying read the
question.

In the end I ran out of time and installed centos which worked with no
problems with an earlier version of PHP5.

Rob

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


Re: apache13 to 22

2006-06-08 Thread Riemer Palstra
On Wed, Jun 07, 2006 at 04:09:56PM -0500, Kevin Kinsey wrote:
 and vehement claims that php5 is broken in ports persist, but aren't
 true as near as I can tell from both external evidence and personal
 experience.

Indeed, the current ports of PHP 5.1.4 and Apache 2.2.2 work fine
together (also with MySQL 5.0.22 thrown into the mix). Also, they're
both production releases, and not development snapshots like some here
like to repeat over and over again ;)

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


How to make one virtual address in sendmail

2006-06-08 Thread a
I use sendmail 8.13.6 and
I want all mail from my local host to [EMAIL PROTECTED]
is going to [EMAIL PROTECTED]

How to? Can I use any standard feature?

I can add

[EMAIL PROTECTED]   [EMAIL PROTECTED]

in virtusertable, but it will nor work without

external.host.name

in local-host-names, or VIRTUSER_DOMAIN(`external.host.name'), 
or any other ruler putting 
external.host.name in class {w} or something like that.
But I cannot make the last because of
my sendmail will try to deliver locally all mail from local host to 
external.host.name. The sender of the mail will receive User unknown 
immediately (except for the [EMAIL PROTECTED]) and nothing more.

Thank you in advance.

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


Ipfilter 4.1.13 and freebsd 6.1

2006-06-08 Thread Nicholas von Waltsleben
I am currently running a couple of 6.1 and 5.4 servers as firewall /
routers for my company.  I am experiencing some problems on the 6.1
server with ipfilter where it blocks oow (out of window) packets.  I
have tried to update to the latest version of ipfilter but was unable to
compile my kernel after running the kupgrade script in the ipf source
folder.  Does anyone have any hacks / patches that they have used to get
ipfilter version 4.1.13 running on FreeBSD 6.1-Release?
 
Regards,
Nicholas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Wireless Access Points with Atheros Cards

2006-06-08 Thread Nick Withers
On Wed, 7 Jun 2006 11:42:30 -0400
Mark Moellering [EMAIL PROTECTED] wrote:

 Nick,
 
   I tried this maybe a month back.  I added an ath card to a firewall 
 (becoming 
 the third NIC) and set it up following the directions.  While I could connect 
 to the access point/firewall, I could not get to anything beyond it. After 
 some
 reading, I decdied to buy a standalone access point and replace the 
 wireless ath card with a wired card to use to connect to the access point.  
 The standalone access point (Netgear) wasn't that much more than the card and 
 from everything I have read is the better way to go.

I decided to go with a FreeBSD-based access point for a number
of reasons, including (in no particular order):
  - Security: I trust FreeBSD in the security arena more that I
do NetGear / D-Link / etc.
  - Security: I insisted on implementing a full-blown 802.11i /
802.1x / RADIUS configuration and as such was going to require
an 802.1x / RADIUS server anyway (I'm not aware of these
features being available on any cheap-ish stand-alone access
point, but then I'm not aware of a lot of things!)
  - Configurability: Though I have no experience with
stand-alone access points, my past experience with things like
DSL routers tells me that I'll be able to a lot more, and see
a lot more of what's going on, with a FreeBSD-based solution.
This includes things like firewalling the segment at the router
with both ingress and egress rules, implementing QoS, etc.
  - Consolidation: The customer wanted a server for things like
web proxying with anti-virus filtering, file serving and
routing anyway, so I figured I'd bundle it all into one. I did
consider the fact that this means that if the server goes down,
their LAN's down too, but this would be similar if the server
were doing the network's 802.1x work, and they also don't plan
on using the LAN extensively - it's more for internet access
and the like
  - Cost: Though we did look at several access points which
supported connecting to a backend 802.1x server, these
appeared to cost at least twice as much as an appropriate
wireless card.

I should point out that my wireless knowledge is somewhat
limited and am definitely keen on hearing any comments anyone
may have.

   If you are able to sned data through the access point, I would love to 
 hear 
 about it...

Certainly am. The setup's fully functional and routing traffic
from the LAN to the 'net and vice-versa. Happy to provide more
detailed information on the installation, if you like, though
perhaps off-list would be best (unless others are interested, of
course).

 Sincerely
 
 Mark 
 
 On Wednesday 07 June 2006 8:11 am, Nick Withers wrote:
  G'day all,
 
  I was recently asked to set up a wireless access point by a
  mate. Having read section 27.3.3.2 - Building a FreeBSD Access
  Point
  (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireles
 s.html) from the FreeBSD Handbook I duly advised my friend that they'd
  need to procure one of the Prism cards listed in the wi(4) man
  page, as, according to the Handbook, In order to set up a
  wireless access point with FreeBSD, you need to have a
  compatible wireless card. Currently, only cards with the Prism
  chipset are supported.
 
  When he got back to me the next day and said he couldn't find
  one in any major store and that he'd been told they were no
  longer available first-hand (whether all this is true or not,
  I'm not entirely sure - but it's not really all that relevant
  for the purposes of this question) I was a little surprised.
 
  After much more stuffing about, the ath(4) man page caught my
  eye and I found the magic sentence: Supported features include
  802.11 and 802.3 frames, power management, BSS, IBSS, and
  host-based access point operation modes.
 
  I've subsequently set the thing up and it's now chugging away
  merrily in hostap mode with hostapd helping out with 802.11i
  shennanigans. It appears to be fully operational.
 
  My question, then, is this: Is the access point I've set up not
  actually functioning as an access point in the strictest sense
  of the term? Is the Handbook in need of a little attention in
  this area?
 
  I'll happily create a patch for the doc and submit a PR to
  have it updated, but just wanted to check before doing so that
  I'm not just being an idiot (I'm particularly good at that!).
 
  Thanks all!
  --
  Nick Withers
  email: [EMAIL PROTECTED]
  Web: http://www.nickwithers.com
  Mobile: +61 414 397 446
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]


-- 
Nick Withers
email: [EMAIL PROTECTED]
Web: http://www.nickwithers.com
Mobile: +61 414 397 446
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, 

mount_smbfs LIBSMBCRYPTO [was Re: Kernel module path]

2006-06-08 Thread Nick Withers
On Wed, 7 Jun 2006 12:28:46 -0500
Nikolas Britton [EMAIL PROTECTED] wrote:

(snip)

 Do you know if they ever fix crypto bug in mount_smbfs in FreeBSD 6.1?

Yeah, they did... Assuming you're thinking of the same thing I
am, whereby attempting to authenticate to a server for SMB
access resulted in being told that cryptography wasn't availabl
e (or some such). I think it had something to do with a
LIBSMBCRYPTO setting, or similar, but can't recall.
-- 
Nick Withers
email: [EMAIL PROTECTED]
Web: http://www.nickwithers.com
Mobile: +61 414 397 446
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Wireless Access Points with Atheros Cards

2006-06-08 Thread Nick Withers
On Wed, 7 Jun 2006 16:05:08 -0400
John Nielsen [EMAIL PROTECTED] wrote:

 On Wednesday 07 June 2006 11:42, Mark Moellering wrote:
  On Wednesday 07 June 2006 8:11 am, Nick Withers wrote:

(snip)

   My question, then, is this: Is the access point I've set up not
   actually functioning as an access point in the strictest sense
   of the term? Is the Handbook in need of a little attention in
   this area?
  
   I'll happily create a patch for the doc and submit a PR to
   have it updated, but just wanted to check before doing so that
   I'm not just being an idiot (I'm particularly good at that!).
 
  I tried this maybe a month back.  I added an ath card to a firewall
  (becoming the third NIC) and set it up following the directions.  While I
  could connect to the access point/firewall, I could not get to anything
  beyond it.  After some reading, I decdied to buy a standalone access point
  and replace the wireless ath card with a wired card to use to connect to
  the access point. The standalone access point (Netgear) wasn't that much
  more than the card and from everything I have read is the better way to go.
  If you are able to sned data through the access point, I would love to
  hear about it...
 
 Yes, ath(4) is actually the preferred driver for creating FreeBSD-based 
 wireless access points, and the handbook probably does need to be updated. No 
 one has been doing any work on the wi driver in quite some time, whereas Sam 
 Leffler has been doing a LOT of work to keep ath up-to-date and highly 
 functional.

Righto, cheers for that. I've started drafting an update that
I'll try to get in soon (depending on how much exam
procrastination I can pack in!).

 I run a FreeBSD 6-STABLE machine as an access point at home and it works 
 fine. 
 I couldn't get it to work with if_bridge, so I just set up wireless to be its 
 own subnet with the FreeBSD machine doing NAT and routing between the three 
 interfaces (external, internal wired, and internal wireless).

Sounds fairly similar to what I did. These guys didn't want an
internal wired network though...

 JN
-- 
Nick Withers
email: [EMAIL PROTECTED]
Web: http://www.nickwithers.com
Mobile: +61 414 397 446
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: troubleshooting network settings

2006-06-08 Thread Alex Zbyslaw

Malcolm Fitzgerald wrote:



On 08/06/2006, at 12:06 AM, Alex Zbyslaw wrote:


Malcolm Fitzgerald wrote:


On 29/05/2006, at 11:37 PM, Kevin Kinsey wrote:


Hmm, is that all?  Unusual; I'd think the loopback _should_ be set
up correctly.

`ifconfig lo0 inet 127.0.0.1 netmask 255.255.255.0`  ??

If that fixes it, then we have to figure out *why* it's not being
doing automatically.  Problem during init/rc, most likely ... weird.




I've not had time to address this problem for a week. Going through 
all the advice again I found that this advice is good. That fixes 
the problem. Any pointers on getting it done automatically?



What does /etc/rc.conf show for lo0 related things?  (And just to 
check your defaults as well...)


egrep lo0 /etc/rc.conf /etc/defaults/*


Mine shows:

/etc/defaults/rc.conf:ifconfig_lo0=inet 127.0.0.1 # default 
loopback device configuration.



Same here

Just to confirm, since I didn't really read the beginning of this 
thread, when you reboot your machine, the setting for lo0 is already 
wrong, yes?


Since we now know that the rc settings look ok, maybe some script is 
doing the dirty, so what does



egrep 'lo0|ifconfig' /etc/rc.d/* /usr/local/etc/rc.d/*

show?  I do have numerous hits in /etc/rc.d, none of which look like 
they would affect lo0 unless you specified lo0 in /etc/rc.conf.  I have 
no hits in /usr/local/etc/rc.d/*, which is what I would expect -- if you 
get any hits there then follow them up to see what they are doing.  If 
you get hits in /etc/rc.d not in my list then have a look.  (I'm still 
on FreeBSD 5 so if you are on 6 then you may get slightly fewer or more 
hits, but I wouldn't expect too drastic differences).



My hits are:

/etc/rc.d/atm1: ifconfig ${natm} up
/etc/rc.d/dhclient: ifconfig ${ifn}
/etc/rc.d/initdiskless: iflist=`ifconfig -l`
/etc/rc.d/initdiskless: set -- `ifconfig ${i}`
/etc/rc.d/ip6addrctl:   if ifconfig lo0 inet6 /dev/null 21; then
/etc/rc.d/ip6addrctl:   if ifconfig lo0 inet6 /dev/null 21; then
/etc/rc.d/netif:#   it will call ifconfig(8) to show, in long 
format, the configured

/etc/rc.d/netif:ifconfig ${ifn}
/etc/rc.d/netif:ifconfig_up ${ifn}  cfg=0
/etc/rc.d/netif:ifconfig_down ${ifn}  cfg=0
/etc/rc.d/network_ipv6: ipv6_network_interfaces=`ifconfig -l`
/etc/rc.d/network_ipv6: ifconfig $i up
/etc/rc.d/pflog:if ! ifconfig pflog0 up; then
/etc/rc.d/rtadvd:   for i in `ifconfig -l` ; do
/etc/rc.d/rtadvd:   
lo0|gif[0-9]*|stf[0-9]*|faith[0-9]*|lp[0-9]*|sl[0-9]*|tun[0-9]*)

/etc/rc.d/sppp: # to go _before_ the general ifconfig since in the case

--Alex


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


Re: reading process memory

2006-06-08 Thread Tofik Suleymanov

James Riendeau wrote:
I'm going to anticipate your next question, and say that if you're not 
the parent, you will have to attach to the process.  How that's 
done?  I don't know, probably through a system call to ptrace or 
writing to the procfs ctl directory.  I'm speaking through erudite 
knowledge rather than any real experience working with procfs.


-james



Continue reading this thread and you will see, that you are right. In 
order to read/write process memory we need to use either ptrace(2) 
system call or  procfs.


Thanks for all useful thoughts!

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


Strange swap behaviour

2006-06-08 Thread Andrea Venturoli

Hello.

A server of mine is running 6.1/amd64 with 1GiB of RAM.
From time to time swap use will grow enormously and performance will 
suffer from this; also the nightly clamav run will not complete, as the 
process will get killed due to lack of swap space.
The day after I'll look into top and see this two processes are the 
largest ones:

  672 snort  1 -580  4007M 62344K bpf0   8:53  0.00% snort
  669 snort  1 -580   323M 29704K bpf1   1:45  0.00% snort


I kill them and start them again; I get:


10295 snort  1 -580 81708K 66432K bpf0   0:01 12.38% snort
10283 snort  1 -580 81704K 66368K bpf0   0:01  5.77% snort



However swap utilization will drop from 4095/4096 MiB to 136/4096 MiB.

Is this normal?
Does the size figure in top only show physical RAM usage?
Or is only swap space reclaimed after the process gets killed?

 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]


Problem with disk

2006-06-08 Thread Uroš Gruber

Hi,

I have some errors about my disk

vnode_pager_getpages: I/O read error
vm_fault: pager read error, pid 7318 (locate)
ad4: FAILURE - READ_DMA status=51READY,DSC,ERROR 
error=40UNCORRECTABLE LBA=33973759

g_vfs_done():ad4s1d[READ(offset=15037333504, length=36864)]error = 5
vnode_pager_getpages: I/O read error
vm_fault: pager read error, pid 7318 (locate)
pid 7318 (locate), uid 0: exited on signal 11
ad4: FAILURE - READ_DMA status=51READY,DSC,ERROR 
error=40UNCORRECTABLE LBA=33973759

g_vfs_done():ad4s1d[READ(offset=15037333504, length=36864)]error = 5
vnode_pager_getpages: I/O read error
vm_fault: pager read error, pid 7436 (locate)
ad4: FAILURE - READ_DMA status=51READY,DSC,ERROR 
error=40UNCORRECTABLE LBA=33973759

g_vfs_done():ad4s1d[READ(offset=15037333504, length=36864)]error = 5
vnode_pager_getpages: I/O read error
vm_fault: pager read error, pid 7436 (locate)

I would like to transfer data to other disk but with minimum downtime. I 
was wondering if this was possible with gmirror. For example I create

gmirror on this disk and than add another so data would be synced.

Does this make any sense or is there better idea.

regards

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


Question in occasion of SCSI devices (the tape store)

2006-06-08 Thread Nick
Help please with connection sa0 devices.
I try to make the following:
mount/dev/sa0/mnt/type
The system gives out:
Block device required

I can not understand that occurs. It is simple I the first time on FreeBSD  
work with tape stores 

-- 

 Nick  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: Firefox crashes and hangs my 6.1R system

2006-06-08 Thread Adi Pircalabu
On Thu, 08 Jun 2006 11:02:16 +1000 [EMAIL PROTECTED]
wrote:

 Try to reproduce the above described behaviour and jump over with
 gdb. Sort of:
 
 gdb /usr/X11R6/lib/firefox/firefox-bin pid-of-firefox-bin
 (... wait)
 (gdb) t a a bt full
 
 Excuse my ignorance - I take it I need to
 
   o start firefox normally
   o run gdb as above
   o invoke the crash situation

1. If I were you, I'd go for the safer path and assure myself that I
don't use a system (OS  apps) built with unusual compiler flags.
2. Try to use a pre-built Ff package from ftp.freebsd.org and see if
the problem still occurs.
3. Actually, to get a core file, the steps are:
- as a regular user open a console, make sure you are in a directory
with write permissions (${HOME} is ok) and launch firefox 
- open another console, note the pid of firefox-bin and type the above
command (gdb /path/to/ff-bin pid) but don't press Enter yet
- try to fry the CPU again. If succeeded, press Enter in the gdb
console and get a full backtrace.
- alternately, if you can't attach to the process, try to send SIGABRT
when it goes crazy.

   o then ... ?
 
 I'm just hoping that there's enough cpu left to save something at that
 point!
 
  options SCHED_ULE   # ULE scheduler
 
 Do you need SCHED_ULE? Try SCHED_4BSD instead, Ff is very picky when
 it comes to threads.
 
 I probably don't - I added this after reading /usr/src/sys/conf/NOTES
 and it hadn't bitten me until maybe now.  I'll recompile the kernel
 with SCHED_4BSD before I carry on.

You should also consider rebuilding Firefox without optimizations.
Trying to use compiler optimizations for Gecko-based applications is the
perfect recipe for trouble :)

-- 
Adi Pircalabu (PGP Key ID 0x04329F5E)



-- 
This message was scanned for spam and viruses by BitDefender.
For more information please visit http://www.bitdefender.com/

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


Re: Kernel module path

2006-06-08 Thread Richard Jones
On Wed, Jun 07, 2006 at 11:28:09AM +0100, Richard Jones wrote:
 Hi,
 
 I'm having trouble loading kernel modules. Put simply make
 installkernel seems install native kernel modules into /boot/kernel/,
 but kldload seems to want to load them from /boot/modules.
 
 Obviously I can load modules by hand and/or copy the modules into
 /boot/modules, but surely there's a better way - either by modifying the
 installkernel behaviour or kldload.

And in answer to my own question, I've found the answer. Despite the man
page suggesting the default value for module_path being
/boot/kernel;/boot/modules, my /boot/defaults/loader.conf had just
/boot/modules. 

I've checked in /usr/src/sys/boot and this seems to be system default,
does anyone know why this is?

Regards,

Richard 

-- 
Richard Jones
MSN: [EMAIL PROTECTED]
Y!M: rwkjones
http://www.jonze.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


help:Makefile template about device driver with multiple directories

2006-06-08 Thread hongz
Hi guys:

 

I have one urgent question to ask, please help me on this!

 

The following is a Makefile template for device driver with all sources
codes locating in the same directory. My question is how to write the
Makefile when the driver source codes located different directories. For
example, my driver source codes maybe include: osd/*.c engine/*.c and
cam/*.c.  Could someone provide me such a Makefile template? Your help will
be highly appreciated!

 

.PATH:  .

KMOD= shasta

 

SRCS=  shasta.c  event.c .

SRCS += device_if.h bus_if.h pci_if.h

SRCS += opt_scsi.h opt_cam.h

   

.include bsd.kmod.mk

 

Yours,

 

Hong

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


Re: compiling ports to packages on fast system, installing on slower one

2006-06-08 Thread Andrey Slusar
Wed, 7 Jun 2006 16:56:25 -0400, Dave wrote:
 Hello,
I was wondering if this was possible? I've got a box that i'd like
 to install the latest gnome 2.14 desktop on, as well as some very
 intense apps to build. I would like to compile the needed apps on my
 fastest machine as packages, then transfer all the packages to the
 slower box, and do a pkg_add * and they're all installed. My catch is
 i don't want to install everything on my fastest box to pull this
 off. I am using portupgrade and was wondering if this was doable?

 On fast box install the misc/tinderbox and build all packets in
tinderbox jail.

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


PostGIS LDFLAGS question on 4.11

2006-06-08 Thread Toomas Aas

Hello!

I'm planning to install PostgreSQL 8.1 along with PostGIS and GEOS,
from ports. Unfortunately, the server's operating system where I
do this is 4.11 and it can't be easily upgraded.

I found the following note in PostGIS documentation:

--
If you plan to use GEOS functionality you might need to explicitly link
PostgreSQL against the standard C++ library:

LDFLAGS=-lstdc++ ./configure [YOUR OPTIONS HERE]

This is a workaround for bogus C++ exceptions interaction with older
development tools. If you experience weird problems (backend unexpectedly
closed or similar things) try this trick. This will require recompiling
your PostgreSQL from scratch, of course.
--

I think that GCC 2.95 as found in FreeBSD 4 may qualify as an older
development tool? I already installed GEOS and it pulled in lang/gcc34
as a dependency, but it seems that databases/postgresql81-server is going
to be built with base system gcc. Is it likely to lead to the conflict
described above?

Is anyone running PostgreSQL + PostGIS on FreeBSD 4 and did you find it
necessary to use this LDFLAGS trick?

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


Re: MIDI

2006-06-08 Thread Andrey Slusar
Wed, 7 Jun 2006 23:06:12 -0700, Gary Kline wrote:

   Since I have builtin sound on my  motherboard on most of my
   systems, can I configure them to play midi files?  So far 
   it looks like I need thw voxware driver/.ko/whatever.
   I'd appreciate any clues here.

 You need install the ports/audio/timidity++.

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


Re: portupgrade question (solved)

2006-06-08 Thread Rafael Aquino
I solved thid problem after export to the environment the variable
FETCH_CMD=fetch -p.

--
Rafael Mentz Aquino
BSDServer Ltda.
51 - 9847 8825

-- Original Message ---
From: Michael S [EMAIL PROTECTED]
To: Kris Kennaway [EMAIL PROTECTED]
Cc: FreeBSD Mailing List freebsd-questions@freebsd.org
Sent: Wed, 7 Jun 2006 21:29:10 -0400
Subject: Re: portupgrade question (solved)

 I did define the to environment variables. For some reason, wget 
 works just fine on the same machine.
 
 Thanks a lot.
 
 On 6/7/06, Kris Kennaway [EMAIL PROTECTED] wrote:
  On Wed, Jun 07, 2006 at 04:35:12PM -0400, Michael S wrote:
   wget works like magic. I used the defaults. fetch I guess is the
   FreeBSD default for fetching files from the web. It was having
   problems fetching files from FTP sites.
   No idea what the problem is.
 
  Try setting FTP_PASSIVE_MODE.  This is set in the default login class,
  but perhaps you have modified it.
 
  Kris
 
  
   On 6/7/06, Kris Kennaway [EMAIL PROTECTED] wrote:
   On Wed, Jun 07, 2006 at 09:38:36AM -0400, Michael S wrote:
Good day everyone!
   
I have a portupgrade related question. I am behind a proxy and fetch
doesn't appear to cope with it very well.
   
   What did you try?  fetch works fine with proxies for the rest of us :)
   
   Kris
   
   
   
  
 
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
--- End of Original Message ---

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


Configuring FreeBSD for use as an interactive kiosk

2006-06-08 Thread drseuk

Hi,

I'm involved with a museum which has a standalone interactive kiosk. The 
system runs an Apache2 server with PHP and MySQL on Windows XP. The 
problem is that Windows XP keeps becoming corrupted as a result of the 
machine being switched on and off at random (by staff, kids etc.).


Currently, the museum management is very open to switching to FreeBSD or 
similar - provided I can *completely* bulletproof the box against 
arbitrary power-cycling (I can't always be there to manually run fsck 
etc.).


I'd welcome any advice and suggestions about how to do this. Currently the 
information on the system is updated in situ so the file systems can't 
be made read only (any ideas on how we could split the updating from the 
deployment welcome). We also need to find a way of turning firefox into a 
kiosk browser.


Regards,

drseuk

 --

[EMAIL PROTECTED]
SDF-EU Public Access UNIX System - http://sdf-eu.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Ipfilter 4.1.13 and freebsd 6.1

2006-06-08 Thread fbsd
I run 6.1 with ipfilter and LAN full of window boxes  NO PROBLEM.

You need to provide a much greater level of details before making
such unfounded statements as ipfilter is broken.

Your rule set is most likely incorrect.

Post description of your firewall/LAN setup along with your complete
rule set for review by list.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Nicholas
von
Waltsleben
Sent: Thursday, June 08, 2006 3:16 AM
To: freebsd-questions@freebsd.org
Subject: Ipfilter 4.1.13 and freebsd 6.1


I am currently running a couple of 6.1 and 5.4 servers as firewall /
routers for my company.  I am experiencing some problems on the 6.1
server with ipfilter where it blocks oow (out of window) packets.  I
have tried to update to the latest version of ipfilter but was
unable to
compile my kernel after running the kupgrade script in the ipf
source
folder.  Does anyone have any hacks / patches that they have used to
get
ipfilter version 4.1.13 running on FreeBSD 6.1-Release?

Regards,
Nicholas
___
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: On mail principles

2006-06-08 Thread Giorgos Keramidas
On 2006-06-08 08:05, [EMAIL PROTECTED] wrote:
On Thu, Jun 08, 2006 at 02:08:53AM +0300, Giorgos Keramidas wrote:
 On 2006-06-07 20:20, [EMAIL PROTECTED] wrote:
  A brief:
  How to use envelope from provided that I have a mailbox on ISP.
  [...]

 [description of a masquerading+genericstable Sendmail setup]

 This is exactly what I want.
 Thank you.

Cool!  If you need more help setting things up, let us know :)

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


Beginner Questions

2006-06-08 Thread Mayo, Richard A RDECOM CERDEC STCD SRI
I'm setting up a FreeBSD box for the first time, so naturally I have a bunch of 
questions.  I'm sure these are addressed on the web somewhere, but I'm not 
having any luck finding anything so here goes:

What file controls the way Xwindows sets up after I log on?  I got the 
graphical login screen, but now I want to start Xwindows with kde rather than 
twm.



Thanks,

Rich Mayo

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


RE: Ipfilter 4.1.13 and freebsd 6.1

2006-06-08 Thread Nicholas von Waltsleben
 
 Nicholas wrote:
 
 I am currently running a couple of 6.1 and 5.4 servers as firewall /
 routers for my company.  I am experiencing some problems on the 6.1
 server with ipfilter where it blocks oow (out of window) packets.  I
 have tried to update to the latest version of ipfilter but was
 unable to
 compile my kernel after running the kupgrade script in the ipf
 source
 folder.  Does anyone have any hacks / patches that they have used to
 get
 ipfilter version 4.1.13 running on FreeBSD 6.1-Release?

 Regards,
 Nicholas

 Fbsd wrote:

 
 I run 6.1 with ipfilter and LAN full of window boxes  NO PROBLEM.
 
 You need to provide a much greater level of details before making
 such unfounded statements as ipfilter is broken.

I never said that ipfilter was in any way broken, just that I was
experiencing problems running it since moving to a 6.1 server.  My
apologies for not making myself clearer.

 Your rule set is most likely incorrect.
 
 Post description of your firewall/LAN setup along with your complete
 rule set for review by list.

Very well, here is some more information but I am not about to post my
entire ruleset on a publicly searchable mailing list

Extract from ipfstat -ni

@2 block in quick on em0 all head 1
...
@9 pass in quick on em0 proto tcp from 196.31.10.14/32 to any port =
http flags S/FSRPAU keep state group 1 
...
@19 block in log quick on em0 all group 1

Ipmon output

08/06/2006 14:23:01.652653 STATE:NEW 165.165.192.80,53269 -
196.7.156.157,80 PR tcp
...
08/06/2006 14:23:31.221693 em0 @1:20 b 165.165.192.80,53269 -
196.7.156.157,80 PR tcp len 20 64 -S IN OOW
08/06/2006 14:23:31.674548 STATE:NEW 165.165.192.80,50949 -
196.7.156.157,80 PR tcp
08/06/2006 14:23:32.915562 STATE:NEW 165.165.192.80,53465 -
196.7.156.157,80 PR tcp
08/06/2006 14:23:34.219658 em0 @1:20 b 165.165.192.80,53269 -
196.7.156.157,80 PR tcp len 20 64 -S IN OOW

The 165.x.x.x IP address is from an ADSL line I was using to
troubleshoot the problem (I was the only person using the line so it
made tcpdumps etc easier to read, less noise).

In our environment the problem was easily resolved by disabling SACKS on
the Windows 2003 servers behind my firewall (something I have just
finished testing).  But I would still like someone to please point me in
the right direction insofar as updating IPFilter to 4.1.13 under FreeBSD
6.1 as this solution is not to my liking.

Regards,
Nicholas




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


Re: __P macro

2006-06-08 Thread Giorgos Keramidas
On 2006-06-08 10:45, Saifi [EMAIL PROTECTED] wrote:
 Hi:

 Most of the racoon code uses __P macro.

 and the __P macro is defined as -

 #undef __P
 #ifndef __P
 #if __STDC__
 #define __P(protos) protos
 #else
 #define __P(protos) ()
 #endif
 #endif

 It seems to make many expressions difficult to read -
 eg.

 static int (*pkrecvf[]) __P((caddr_t *)) = {
  ...
 }

 What is the downside if this macro is not used in defining new
 function prototypes ?  (working with FreeBSD 5.4 and above with
 gcc 3.x compiler)

Your program may fail to compile with compilers that do not
support ANSI C function prototypes.  This includes some old,
pre-ANSI compilers.  How important these compilers are for your
particular application is debatable though.

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


Re: On mail principles

2006-06-08 Thread Alex Zbyslaw

[EMAIL PROTECTED] wrote:


On Wed, Jun 07, 2006 at 05:43:23PM -0400, Charles Swiger wrote:
 


On Jun 7, 2006, at 1:20 PM, [EMAIL PROTECTED] wrote:
   


But this way is bad for local purposes: my MTA's diagnostic messages are sent
trough internet or lost at all, e. g. when my ADSL is in down.
(Moreover, my letters sent to other local users have non-local envelope from
address. Then local mail begin to go through external MTA.)

What to do in such a situation?
 


See the sendmail documentation [1] on MASQUERADE_AS().

--
-Chuck

[1]: /usr/share/sendmail/cf/README, or check the FAQ from www.sendmail.org...
   



That is not a proper feature because of different local users can use world 
mail addresses with different hostnames. But masquerading is good only for 
one domain.
 

I believe newer postfixes have support for masquerading different 
local users with different external addresses when sending mail 
externally.  Haven't tried it: just noted the feature in some email 
somewhere for future evaluation, so take with the usual pinch of salt.


--Alex


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


Re: Question in occasion of SCSI devices (the tape store)

2006-06-08 Thread Alex Zbyslaw

Nick wrote:


Help please with connection sa0 devices.
I try to make the following:
mount/dev/sa0/mnt/type
The system gives out:
Block device required

I can not understand that occurs. It is simple I the first time on FreeBSD  work with tape stores 
 

Why are you trying to mount a tape as if it contained a filesystem 
(which seems highly unlikely)?  You don't need to mount anything to 
use a tape drive; just put the tape in and specify /dev/sa0   /or 
/dev/nsa0 (non-rewinding device) to whatever software needs to use the tape.


What is it you are actually trying to do?  Read the tape?  Write 
something to it?  Perform backups?  Without that basic information it's 
hard to actually help.


--Alex


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


Re: compiling ports to packages on fast system, installing on slower one

2006-06-08 Thread Rafael Aquino
Hi, there...

One way to do it is to run a portupgrade -n ... to see what would
be upgraded, then compile it on the fastest system, export the
/usr/ports through nfs and then run a portupgrade -w -W ... using the
exported filesystem on the slower system...

Don't forget to sincronize both ports system with cvsup...

Just a though... ;-)

--
Rafael Mentz Aquino
BSDServer Ltda.
Porto Alegre - RS
Brasil
51 - 9847 8825

-- Original Message ---
From: Dave [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
Sent: Wed, 7 Jun 2006 16:56:25 -0400
Subject: compiling ports to packages on fast system, installing on slower one

 Hello,
 I was wondering if this was possible? I've got a box that i'd 
 like to install the latest gnome 2.14 desktop on, as well as some 
 very intense apps to build. I would like to compile the needed apps 
 on my fastest machine as packages, then transfer all the packages to 
 the slower box, and do a pkg_add * and they're all installed. My 
 catch is i don't want to install everything on my fastest box to 
 pull this off. I am using portupgrade and was wondering if this was doable?
 Thanks.
 Dave.
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
--- End of Original Message ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: compiling ports to packages on fast system, installing on slower one

2006-06-08 Thread Dustin Coates

Dave wrote:

Hello,


Hi


   I was wondering if this was possible? I've got a box that i'd like 
to install the latest gnome 2.14 desktop on, as well as some very 
intense apps to build. I would like to compile the needed apps on my 
fastest machine as packages, then transfer all the packages to the 
slower box, and do a pkg_add * and they're all installed. My catch is 
i don't want to install everything on my fastest box to pull this off. 
I am using portupgrade and was wondering if this was doable?

Thanks.
Dave.

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




man pkg_create

Also check out: 
http://www.onlamp.com/pub/a/bsd/2006/04/13/freebsd-build-system.html


This is a pretty good guide to creating a build server, from your 
fastest machine, so it does all the work, from updating world and kernel 
source, to ports. Bascially it involves NFS and mounting the faster 
computers /usr/src  /usr/ports after thier compiled on the faster 
machine.



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


RE: USB-Serial ??

2006-06-08 Thread Warren Block

On Wed, 7 Jun 2006, Steve Bertrand wrote:


The saga of the 3G modem.  Labeled in AU as the Maxon MM 5500c.
This device is a modem on the usb bus, it looks like and
understands the at commands. Under XP.
I am using fbsd 6.1.
How do I get ppp to talk to it?
The man pages keep pointing to /dev/cuaU? A device that does
not exist yet.


Don't know about the rest, but in FBSD 6+, the serial devices are
/dev/cuad0 for COM1 and /dev/cuad1 for COM2.

Try a:

# cu -l /dev/cuad0 to see if you can connect to the device.


He said it was USB, which should be /dev/ucom0.

-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: Question in occasion of SCSI devices (the tape store)

2006-06-08 Thread Alex Zbyslaw

Nick wrote:


What is it you are actually trying to do? Read the tape? Write


something to it?  Perform backups?  Without that basic information it's
hard to actually help.


I try to build reserve copy of information on it actually I want read
and write information on it

 


And what format is this information in?

If it had been tar'ed to the tape you would say something like:
   tar -tv -f /dev/sa0
to list the contents and
   tar -xv -f /dev/sa0
to extract.

But if it had been written with, say, dd then something like

   dd if=/dev/sa0 of=/your/output/file

might do to read it, but you'd probably want to set a blocksize with 
e.g. bs=32k or bs=64k but that depends on how the tape was written.


So how was the tape written?

--Alex

You should copy freebsd-questions@FreeBSD.org on your replies.  That way 
everyone sees the whole conversation, and someone else may have 
newer/better/brighter suggestions.



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


make, help

2006-06-08 Thread Efren Bravo
Hi,

I'm trying to install
/usr/ports/lang/php4-extensions but the installer
cann't find the package PDFlib-Lite-6.0.2.tar.gz
and it stops. My question is how do I configure
the installer so that it doesn't require it?  
  
Thanks,


Efren Bravo.
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=ZWZyZW5iYQ%3D%3D

__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.es 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how does cron exec jobs?

2006-06-08 Thread N.J. Thomas
* Atom Powers [EMAIL PROTECTED] [2006-06-07 15:48:35 -0700]:
 I have a cronjob ( cfexecd -F ) that often hangs; but no matter how I
 run it from the shell ( sh -c cfexecd -F  ) it never hangs.
 
 How can I simulate a cron job from the shell?

Whenever you have a problem like this (ie. foo works perfectly from the
command line but not from cron), you should always run /usr/bin/env (or
/bin/env) from cron, and then manually run your script with that same
environment (unsetting any envariables you need to get your shell to
match that of the cron environment) -- that will show you fairly quickly
what is wrong.

Usually it is just a PATH issue, but sometimes it may be some missing
envariable that you didn't even realize existed (that your script
depended on it).

Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Strange swap behaviour

2006-06-08 Thread Kris Kennaway
On Thu, Jun 08, 2006 at 10:07:10AM +0200, Andrea Venturoli wrote:
 Hello.
 
 A server of mine is running 6.1/amd64 with 1GiB of RAM.
 From time to time swap use will grow enormously and performance will 
 suffer from this; also the nightly clamav run will not complete, as the 
 process will get killed due to lack of swap space.
 The day after I'll look into top and see this two processes are the 
 largest ones:
   672 snort  1 -580  4007M 62344K bpf0   8:53  0.00% snort
   669 snort  1 -580   323M 29704K bpf1   1:45  0.00% snort
 
 I kill them and start them again; I get:
 
 10295 snort  1 -580 81708K 66432K bpf0   0:01 12.38% snort
 10283 snort  1 -580 81704K 66368K bpf0   0:01  5.77% snort
 
 
 However swap utilization will drop from 4095/4096 MiB to 136/4096 MiB.
 
 Is this normal?

Yes.

 Does the size figure in top only show physical RAM usage?

No, that is what the 'res' field (resident size) shows.

 Or is only swap space reclaimed after the process gets killed?

It's reclaimed when the process releases the memory, which is either
when it decides to stop hogging so much VM or when you kill it.

Kris


pgpxkZ655NdLz.pgp
Description: PGP signature


Re: Question in occasion of SCSI devices (the tape store)

2006-06-08 Thread Alex Zbyslaw

Nick wrote:


The tape is new and empty and I don't know what way is more likely for
me may be You can give me Your advice what way I should choose for
copy my information daily?
 


(You should copy freebsd-questions@FreeBSD.org on your replies).

It depends.  If you are just writing some small subset of files from a 
filesystem (e.g. your home directory) then tar would do.


If you want to back up your machine, and the tape drive is big enough, 
then use dump.


Both have good manual pages.

Confusingly, FreeBSD has two versions of tar and which one is the 
default tar has changed recently.  For simple stuff, they will be 
compatible with each other.


bsdtar : bsd derived version of tar which in theory will know about 
filesystem flags, but if you don't use them then it won't matter.  Also 
seems to mess up if the archive you write is compressed but happens to 
be empty (might be fixed by now).


gtar or gnu tar : GNU GPL version of tar.  This is the tar you get on 
Linux, for example.  Won't know anything about specific FreeBSD 
filesystem things like flags.



Other options include cpio (a bit like tar) or specialist backup 
software like bacula which you'll find in the ports.  I can't comment 
either since I've never used them.


You're still very vague about what you want to do; with more specific 
information better advice might be possible.  E.g. I want to backup up 
my home directory and email files every day; or I have four 80Gb disks 
which I need to back up to a 40Gb compressing tape drive, what should I 
use?.


--Alex


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


Re: how does cron exec jobs?

2006-06-08 Thread Dan Nelson
In the last episode (Jun 07), Atom Powers said:
 On 6/7/06, Olivier Nicole [EMAIL PROTECTED] wrote:
  How can I simulate a cron job from the shell? There must be
  something different about the way cron is executing this
  command...
 
 Counld be different environment variables set, different working
 directory...
 
 That's what I'm trying to find out. The cron man pages are ... empty
 on the subject.
 
 Any diagnostic when it hangs?
 
 Not that I can tell. It runs on schedule but it never clears it's
 locks (which it puts on files at is edits them) as it is supposed to;
 and it does when run from the shell.
 
 So it truth, it's not so much that it hangs, it does terminate, but
 it doesn't honor it's lock time-outs like it does when run outside of
 cron.

Try running it from truss (truss -f -o /var/tmp/truss.out mycommand),
and see if there's anything interesting in the log.

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


make, help

2006-06-08 Thread Efren Bravo
Hi,

I'm trying to install
/usr/ports/lang/php4-extensions but the installer
cann't find the package PDFlib-Lite-6.0.2.tar.gz
and it stops. My question is how do I configure
the installer so that it doesn't require it?  
  
Thanks,


Efren Bravo.
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=ZWZyZW5iYQ%3D%3D

__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.es 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Help redirect port

2006-06-08 Thread Vasili S.
I try make  redirect port by natd
# natd -n ed1 -redirect_port tcp 192.168.1.100:80 8080
no work 

Not see traffic by tcpdump,
Not see listen port (netstat or sockstat)  

why ?

interfaces
~~~

ed1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet A.B.C.D netmask 0xffc0 broadcast A.B.C.
ether 00:02:44:08:74:7a
de0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 192.168.1.100 netmask 0xff00 broadcast 192.168.1.255
ether 00:40:05:30:9f:ed
media: autoselect (100baseTX full-duplex) status: active
supported media: autoselect 100baseTX full-duplex 100baseTX 10baseT/UT


kernel:
~

options IPFIREWALL 
options IPDIVERT
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE

ipfw =OPEN


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


Re: natd not starting on boot-up

2006-06-08 Thread Peter Giessel
On 6/6/2006 21:13, Roger Merritt seems to have typed:
 Everything
 starts on boot-up as it should -- except natd. I can start it manually from
 the command line after booting up and logging in and it works fine, but I
 can't tell what's going on that it's failing to start.

Try adding:
natd_flags=-dynamic

to rc.conf

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


Re: Strange swap behaviour

2006-06-08 Thread Paul Schmehl

Andrea Venturoli wrote:

Hello.

A server of mine is running 6.1/amd64 with 1GiB of RAM.
 From time to time swap use will grow enormously and performance will 
suffer from this; also the nightly clamav run will not complete, as the 
process will get killed due to lack of swap space.
The day after I'll look into top and see this two processes are the 
largest ones:
  672 snort  1 -580  4007M 62344K bpf0   8:53  0.00% 
snort
  669 snort  1 -580   323M 29704K bpf1   1:45  0.00% 
snort


I'm having the exact same problem on 6.0/amd64.  I commented out the 
stream4 preprocessor lines in the snort.conf file and the problem went 
away.  I just uncommented them this morning, to confirm that that is 
what is causing the problem.


It appears that there is a memory leak in the stream4 preprocessor, but 
before I report it, I want to confirm that the symptoms are repeatable.


--
Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Beginner Questions

2006-06-08 Thread Erik Norgaard

Mayo, Richard A RDECOM CERDEC STCD SRI wrote:

I'm setting up a FreeBSD box for the first time, so naturally I have a bunch of 
questions.  I'm sure these are addressed on the web somewhere, but I'm not 
having any luck finding anything so here goes:

What file controls the way Xwindows sets up after I log on?  I got the 
graphical login screen, but now I want to start Xwindows with kde rather than 
twm.


Just about anything that has to do with user login can be set both 
globally and for the individual user.


You didn't by any chance take a look at the FreeBSD handbook? There is a 
whole section on it, 5.6:


/usr/X11R6/lib/X11/xdm/Xsession  Default session script for logins.

This is the default session script for XDM to run after a user has 
logged in. Normally each user will have a customized session script in 
~/.xsession that overrides this script.


If you take a look in the above file you will see that it starts twm, 
this is default behaviour. You can edit the file to start some other 
window manager as default or you can override by setting you choice in 
your own ~/.xsession


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


Re: Beginner Questions

2006-06-08 Thread Bob Middaugh

 -- Original message --
From: Mayo, Richard A RDECOM CERDEC STCD SRI [EMAIL PROTECTED]
 I'm setting up a FreeBSD box for the first time, so naturally I have a bunch 
 of 
 questions.  I'm sure these are addressed on the web somewhere, but I'm not 
 having any luck finding anything so here goes:
 
 What file controls the way Xwindows sets up after I log on?  I got the 
 graphical 
 login screen, but now I want to start Xwindows with kde rather than twm.
 
 
 
 Thanks,
 
 Rich Mayo
 

edit /etc/ttys to point to the kde display mgr, should look something like 
this, mine's for gnome though.

ttyv8   /usr/X11R6/sbin/gdm -nodaemon xterm   on secure

check out the handbook on this:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11-wm.html

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


Re: Question in occasion of SCSI devices (the tape store)

2006-06-08 Thread Chuck Swiger

Nick wrote:

Help please with connection sa0 devices.
I try to make the following:
mount/dev/sa0/mnt/type
The system gives out:
Block device required


A tape drive isn't mountable as a filesystem because it is not a block device, 
ie, the tape drive is sequential access, not random access.


Try using dump/restore or tar to access the tape drive.

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


Re: Beginner Questions

2006-06-08 Thread Gerard Seibert
On Thursday 08 June 2006 08:14, Mayo, Richard A RDECOM CERDEC STCD SRI wrote:

 I'm setting up a FreeBSD box for the first time, so naturally I have a
 bunch of questions.  I'm sure these are addressed on the web somewhere, but
 I'm not having any luck finding anything so here goes:

 What file controls the way Xwindows sets up after I log on?  I got the
 graphical login screen, but now I want to start Xwindows with kde rather
 than twm.


You might want to check out:

http://www.freebsd.org/doc/en_us.ISO8859-1/books/handbook/x11.html

It should get you started.

-- 
Gerard Seibert
[EMAIL PROTECTED]


Ignorance is bliss.
-- Thomas Gray

Fortune updates the great quotes, #42:
BLISS is ignorance.


pgpkxCM5ZvNqy.pgp
Description: PGP signature


Re: Configuring FreeBSD for use as an interactive kiosk

2006-06-08 Thread guru
El día Thursday, June 08, 2006 a las 11:16:15AM +, [EMAIL PROTECTED] 
escribió:

 Hi,
 
 I'm involved with a museum which has a standalone interactive kiosk. The 
 system runs an Apache2 server with PHP and MySQL on Windows XP. The 
 problem is that Windows XP keeps becoming corrupted as a result of the 
 machine being switched on and off at random (by staff, kids etc.).
 
 Currently, the museum management is very open to switching to FreeBSD or 
 similar - provided I can *completely* bulletproof the box against 
 arbitrary power-cycling (I can't always be there to manually run fsck 
 etc.).

...

I was once involved running one of our library application in so
called 'library buses' which are connected via GPRS and Internet
to the central library and the readers of the library could borrow
books in the bus at dedicated stations of the tour. Borrowing and
book return was made directly in the central database (just for 
background). The personal in the bus is a mix of driver and librarian
without deep system knowhow and so we had the same problem to solve:
just powering-off the system before going to next station :-)

I tested a self-mastered Knopix-CD, ie enhanced the Knopix-CD with
our lookfeel and application clients, and so you had a read-only
and for ever booting system.

Don't know (and I'm to lazy to Google) if there is a FreeBSD live-CD
project, sure it has to be...

matthias

-- 
Matthias Apitz
Manager Technical Support - OCLC PICA GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e [EMAIL PROTECTED] - w http://www.oclcpica.org/ http://guru.UnixLand.de/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Question in occasion of SCSI devices (the tape store)

2006-06-08 Thread Bob Goodman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Help please with connection sa0 devices.
I try to make the following:
mount/dev/sa0/mnt/type
The system gives out:
Block device required

I can not understand that occurs. It is simple I the first time on
FreeBSD  work with tape stores

--

 Nick  mailto:[EMAIL PROTECTED]

I assume that you actually _have_ spaces in the mount command you
issue. Anyway, in
http://lists.freebsd.org/pipermail/freebsd-scsi/2004-
April/001096.html
they say that

[QUOTE]
[root at cpr]/dev(185): mount /dev/nsa0 /mnt/tape/
mount: /dev/nsa0: Block device required
  
   You can't mount a tape drive like that.  mount only works for
disk devices
   with filesystems.
[UNQUOTE]
So, seems that you need mt(1) to use tapes. :)

Bob Goodman
-BEGIN PGP SIGNATURE-
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 2.5

wkYEARECAAYFAkSISVUACgkQAQ09syE0bn5YRQCgmyj136nrllD+EvTKhlmtwPkKSXMA
nREggQscYlQyi1csicpZHA8r5SXk
=tAWe
-END PGP SIGNATURE-




Concerned about your privacy? Instantly send FREE secure email, no account 
required
http://www.hushmail.com/send?l=480

Get the best prices on SSL certificates from Hushmail
https://www.hushssl.com?l=485

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


kde-3.5.3 screensaver

2006-06-08 Thread dick hoogendijk
Anybody experience the same as I do? After upgrading to the latest kde
(from 3.5.2 to 3.5.3) the screensaver within kde stopped working.

I can choose which one I would like, test it even, but after setting it
nothing happens. Very strange, because this option has always just worked.

So, is it just me, or is this a bug of some sort?

-- 
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 6.1 +++ The Power to Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Beginner Questions

2006-06-08 Thread Andreas Rudisch
On Thu, 08 Jun 2006 14:14:06 +0200, Mayo, Richard A RDECOM CERDEC STCD SRI  
[EMAIL PROTECTED] wrote:


What file controls the way Xwindows sets up after I log on?  I got the  
graphical login screen, but now I want to start Xwindows with kde rather  
than twm.


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

Many beginner problems can be solved with the handbook :)
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/

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


Re: Beginner Questions

2006-06-08 Thread Derek Ragona

Look at the file
.xinitrc
in your home directory, this is where the window manager is usually run from.

-Derek


At 07:14 AM 6/8/2006, Mayo, Richard A RDECOM CERDEC STCD SRI wrote:
I'm setting up a FreeBSD box for the first time, so naturally I have a 
bunch of questions.  I'm sure these are addressed on the web somewhere, 
but I'm not having any luck finding anything so here goes:


What file controls the way Xwindows sets up after I log on?  I got the 
graphical login screen, but now I want to start Xwindows with kde rather 
than twm.




Thanks,

Rich Mayo

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

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


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

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


Re: Beginner Questions

2006-06-08 Thread Andy Reitz
On Thu, 8 Jun 2006, Mayo, Richard A RDECOM CERDEC STCD SRI wrote:

 I'm setting up a FreeBSD box for the first time, so naturally I have a
 bunch of questions.  I'm sure these are addressed on the web somewhere,
 but I'm not having any luck finding anything so here goes:

 What file controls the way Xwindows sets up after I log on?  I got the
 graphical login screen, but now I want to start Xwindows with kde rather
 than twm.

Hi Rich,

Welcome to FreeBSD! The FreeBSD handbook:

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

Is a fantastic source of information on how to use FreeBSD. In particular,
there is a section which covers xdm (the graphical login screen):

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

And another section on Desktop Environments (basically Gnome and KDE):

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

In the KDE section, there are instructions for installing KDE, and for
enabling it so that KDE starts when you login.

Hope this helps,
-Andy Reitz.

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


Re: Configuring FreeBSD for use as an interactive kiosk

2006-06-08 Thread Atom Powers

On 6/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

El día Thursday, June 08, 2006 a las 11:16:15AM +, [EMAIL PROTECTED] 
escribió:

 Hi,

 I'm involved with a museum which has a standalone interactive kiosk. The
 system runs an Apache2 server with PHP and MySQL on Windows XP. The
 problem is that Windows XP keeps becoming corrupted as a result of the
 machine being switched on and off at random (by staff, kids etc.).

 Currently, the museum management is very open to switching to FreeBSD or
 similar - provided I can *completely* bulletproof the box against
 arbitrary power-cycling (I can't always be there to manually run fsck
 etc.).



Google for 'KDE Kiosk. There is at at least one project I used two
years ago to completely lock down a FreeBSD box using KDE and Firefox
(firebird at the time, I think)
You shouldn't have power-off issues if you never write data to the
drive, kind of tricky unless you make it a near-disktless system that
runs firefox off a network drive.



Don't know (and I'm to lazy to Google) if there is a FreeBSD live-CD
project, sure it has to be...



FreeSBIE 2 is nearing release.

--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring FreeBSD for use as an interactive kiosk

2006-06-08 Thread Andy Reitz
On Thu, 8 Jun 2006 [EMAIL PROTECTED] wrote:

 Hi,

 I'm involved with a museum which has a standalone interactive kiosk. The
 system runs an Apache2 server with PHP and MySQL on Windows XP. The
 problem is that Windows XP keeps becoming corrupted as a result of the
 machine being switched on and off at random (by staff, kids etc.).

 Currently, the museum management is very open to switching to FreeBSD or
 similar - provided I can *completely* bulletproof the box against
 arbitrary power-cycling (I can't always be there to manually run fsck
 etc.).

 I'd welcome any advice and suggestions about how to do this. Currently the
 information on the system is updated in situ so the file systems can't
 be made read only (any ideas on how we could split the updating from the
 deployment welcome). We also need to find a way of turning firefox into a
 kiosk browser.

Hi drseuk,

Well, the best thing to do would be to make your kiosk machine totally
diskless:

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

This would make the kiosk machine totally resilient to unexpected reboots.

However, it sounds like you only have one machine, and you have to make
everything work there. In that case, you might be able to experiment with
making certain file systems read-only, and only making them RW when you
want to modify the system.

It looks like some work has been done with getting Firefox to work in
kiosk mode, here is what Google turned up for me:

http://www.desktoplinux.com/news/NS6013296355.html

Good luck,
-Andy Reitz.

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


Re: Beginner Questions

2006-06-08 Thread Kevin Kinsey

Mayo, Richard A RDECOM CERDEC STCD SRI wrote:
I'm setting up a FreeBSD box for the first time, so naturally 
I have a bunch of questions.  I'm sure these are addressed 
on the web somewhere, but I'm not having any luck finding

anything so here goes:

What file controls the way Xwindows sets up after I log on?
I got the graphical login screen, but now I want to start
Xwindows with kde rather than twm.



Welcome to FreeBSD!

For some reason, the mail servers I use (or perhaps the
FreeBSD server itself) are lagging a few hours behind,
so I hope you've not been flooded with responses.

The general answer is it depends.  As near as I can
tell in your case, it would be ~/.xsession; in my case,
it is ~/.xinitrc (/home/myusername/.xinitrc).

That is assuming that by graphical login screen, you
meant that you were looking at xdm, the X Display
Manager?

I boot to a console prompt and then run startx, so
xinit is actually setting up my session; I would have
exec startkde in ~/.xinitrc if I wanted to run KDE.
I assume (IANAE) that .xsession is similar.  Take a
look at Xorg(1) and especially xdm(1) for more information.

If you have KDE installed, it comes with kdm; the thing
to do might be modify /etc/ttys to run kdm instead of getty
on one of your virtual terminals; lots of folks do this,
from what I understand.

I formerly had this box running GNOME; here's the relevant
bits of /etc/ttys:

ttyv0  /usr/X11R6/bin/gdmcons25  on  secure
#ttyv0 /usr/libexec/getty Pc cons25  on  secure

So, this would run the Gnome Display Manager (gdm) on the
first virtual terminal on boot-up, and by default, gdm
called GNOME.  I assume that kdm does the same for KDE.

HTH, (and that I'm not late)

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


Re: make, help

2006-06-08 Thread Lowell Gilbert
Efren Bravo [EMAIL PROTECTED] writes:

 I'm trying to install
 /usr/ports/lang/php4-extensions but the installer
 cann't find the package PDFlib-Lite-6.0.2.tar.gz
 and it stops. My question is how do I configure
 the installer so that it doesn't require it?  

Looks like that's just a port option, so make config should do it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring FreeBSD for use as an interactive kiosk

2006-06-08 Thread David Kelly
On Thu, Jun 08, 2006 at 05:29:16PM +0200, [EMAIL PROTECTED] wrote:
  
  I'm involved with a museum which has a standalone interactive kiosk. The 
  system runs an Apache2 server with PHP and MySQL on Windows XP. The 
  problem is that Windows XP keeps becoming corrupted as a result of the 
  machine being switched on and off at random (by staff, kids etc.).
  
  Currently, the museum management is very open to switching to FreeBSD or 
  similar - provided I can *completely* bulletproof the box against 
  arbitrary power-cycling (I can't always be there to manually run fsck 
  etc.).
 
 I tested a self-mastered Knopix-CD, ie enhanced the Knopix-CD with
 our lookfeel and application clients, and so you had a read-only
 and for ever booting system.
 
 Don't know (and I'm to lazy to Google) if there is a FreeBSD live-CD
 project, sure it has to be...

Shouldn't be all that hard. Try simply changing your filesystems from
rw to ro in /etc/fstab. I expect some logging functions may
bellyache, but everything will still run.

There is a Live CD in the standard CD set for each FreeBSD release that
you could look at for reference.

I've built controllers with FreeBSD on Soekris small boards with CF
cards for disk drive and filesystems mounted ro. Used Apache, perl,
mysql, php, and heck I don't remember what else. Our primary concern was
write wear on the CF media. Think it was FreeBSD 4.6 or 4.7 that we
used. Stripped it down to 10 MB. Compiled everything linked against
shared libraries and put / and /usr in the same (my only) fs. We did
add another fs for rw use. When needed it was mounted from script,
written or read, then umounted on completion so that it was rarely
vulnerable, but more importantly when umounted it wasn't being written
to. We also used the noatime option.

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


Re: Beginner Questions

2006-06-08 Thread Jonathan Horne
On Thursday 08 June 2006 13:35, Derek Ragona wrote:
 Look at the file
 .xinitrc
 in your home directory, this is where the window manager is usually run
 from.

  -Derek

 At 07:14 AM 6/8/2006, Mayo, Richard A RDECOM CERDEC STCD SRI wrote:
 I'm setting up a FreeBSD box for the first time, so naturally I have a
 bunch of questions.  I'm sure these are addressed on the web somewhere,
 but I'm not having any luck finding anything so here goes:
 
 What file controls the way Xwindows sets up after I log on?  I got the
 graphical login screen, but now I want to start Xwindows with kde rather
 than twm.
 
 
 
 Thanks,
 
 Rich Mayo
 

for all of my installs, i always have to create the .xinitrc file, as its 
never there by default (for me, anyway).  to start kde, i populate 
my .xinitrc file with the line:

exec startkde

and thats it.  KDE will start.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring FreeBSD for use as an interactive kiosk

2006-06-08 Thread Jonathan Chen
On Thu, Jun 08, 2006 at 11:16:15AM +, [EMAIL PROTECTED] wrote:

[...]
 I'd welcome any advice and suggestions about how to do this. Currently the 
 information on the system is updated in situ so the file systems can't 
 be made read only (any ideas on how we could split the updating from the 
 deployment welcome).

There are a couple of solutions involving NFS that could be used, if
you've got the bandwidth. eg: You could make all the base file-systems
read-only, and mount the run-file-system over NFS; or you could make
the kiosks mount everything except the root-file-system over NFS.
If I recall correctly, there are examples available in the Handbook.

We also need to find a way of turning firefox into a 
 kiosk browser.

Put a script in /etc/ttys that starts up X and runs firefox; maybe
`startx  firefox'?

Cheers.
-- 
Jonathan Chen [EMAIL PROTECTED]

We laugh in the face of danger, we drop icecubes down the vest of fear
 - Edmond Blackadder III
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: reading process memory

2006-06-08 Thread Dmitry Pryanishnikov


Hello!

On Wed, 7 Jun 2006, Tofik Suleymanov wrote:
I believe that it is possible to read contents of the memory used/utilized 
by 
a process (assuming right privileges).


 Yes, procfs allows it to user with the process's UID (or root).

First i've tried to do this through procfs by reading 'mem' property of the 
given process, but no success.


 Yes, process's virtual address space is accessible via /proc/PID/mem file,
just don't forget that it's sparse. So you can't just 'hd mem', you should
specify valid offset. /proc/PID/map will help you to do so:

[EMAIL PROTECTED] cd /proc/curproc
[EMAIL PROTECTED] cat map
0x8048000 0x80b 99 0 0xc68fc630 r-x 20 10 0x8004 COW NC vnode 
...

[EMAIL PROTECTED] dd if=mem bs=0x100 skip=0x80480 |hd|more
  7f 45 4c 46 01 01 01 09  00 00 00 00 00 00 00 00  |.ELF|
0010  02 00 03 00 01 00 00 00  24 6e 05 08 34 00 00 00  |$n..4...|
0020  e0 ac 06 00 00 00 00 00  34 00 20 00 05 00 28 00  |Ю╛..4. ...(.|

P.S. I've once found the cause of the memory leak by examining virtual address 
space of my process and finding the repeated leaked pattern.



Thanks,
Tofik Suleymanov


Sincerely, Dmitry
--
Atlantis ISP, System Administrator
e-mail:  [EMAIL PROTECTED]
nic-hdl: LYNX-RIPE
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Beginner Questions

2006-06-08 Thread Jonathan Chen
On Thu, Jun 08, 2006 at 08:14:06AM -0400, Mayo, Richard A RDECOM CERDEC STCD 
SRI wrote:
 I'm setting up a FreeBSD box for the first time, so naturally I have a bunch 
 of questions.  I'm sure these are addressed on the web somewhere, but I'm not 
 having any luck finding anything so here goes:
 
 What file controls the way Xwindows sets up after I log on?  I got the 
 graphical login screen, but now I want to start Xwindows with kde rather than 
 twm.

With `startx', it is ~/.xinitrc
WIth `kdm', it is ~/.xsession
-- 
Jonathan Chen [EMAIL PROTECTED]
--
 Power corrupts, Absolute Power is pretty neat
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: On mail principles

2006-06-08 Thread Andrey Slusar
Thu, 8 Jun 2006 02:08:53 +0300, Giorgos Keramidas wrote:
[...]
 I use mutt, which has an option to set the envelope-from address:

 set envelope_from=yes# set the envelope-from address from From:

 For the rest of the programs, like mail(1), my Sendmail setup sets
 envelope-from to one of my valid outside-world addresses.  This is
 accomplished with the following in my `sendmail.mc' file:

 You need write the howto sendmail for newbies :)

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


Re: Tcpdump dropping packets

2006-06-08 Thread Paul Schmehl

Chuck Swiger wrote:


Check sysctl debug.bpf_bufsize, but also do a search on this because 
there may be a patch needed for PCAP in order for buffers larger than 
32K to actually work. [1]



Hmmm

sysctl debug.bpf_bufsize
sysctl: unknown oid 'debug.bpf_bufsize'

sysctl -a | grep bufsize
net.bpf.maxbufsize: 524288
net.bpf.bufsize: 4096

I assume bufsize is the default?  And maxbufsize is as high as it can 
go?  So it defaults to 4 megs and maxes out at 512 megs?  If true, how 
would I go about calculating a sufficiently large maxbufsize?  If I have 
approximate 150Mbps traffic, how much has to be held in the buffer?


--
Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


smime.p7s
Description: S/MIME Cryptographic Signature


RE: USB-Serial ??

2006-06-08 Thread fbsd
Sorry dud but what you have is a winmodem.
XP has special driver for that external modem to work.
It is not supported in FreeBSD as far as I have seen.
There is no such thing as USB-serial modem.
External modem is connected to motherboard by serial cable or USB
cable.
Serial external modem works right out of the box and USB external
modem are all winmodems.
There is a port ltmdm which works for a limited number of PCI
winmodems but nothing for USB-winmodems.

You are SOL.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Warren
Block
Sent: Thursday, June 08, 2006 9:29 AM
To: Steve Bertrand
Cc: 'John Andrewartha'; 'freebsd-questions@FreeBSD.ORG'
Subject: RE: USB-Serial ??


On Wed, 7 Jun 2006, Steve Bertrand wrote:

 The saga of the 3G modem.  Labeled in AU as the Maxon MM 5500c.
 This device is a modem on the usb bus, it looks like and
 understands the at commands. Under XP.
 I am using fbsd 6.1.
 How do I get ppp to talk to it?
 The man pages keep pointing to /dev/cuaU? A device that does
 not exist yet.

 Don't know about the rest, but in FBSD 6+, the serial devices are
 /dev/cuad0 for COM1 and /dev/cuad1 for COM2.

 Try a:

 # cu -l /dev/cuad0 to see if you can connect to the device.

He said it was USB, which should be /dev/ucom0.

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

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


Re: Configuring FreeBSD for use as an interactive kiosk

2006-06-08 Thread Atanas Atanasov


Don't know (and I'm to lazy to Google) if there is a FreeBSD live-CD
project, sure it has to be...



I used FreeSBIE some time ago, and it ran fine (in some situations try
disabling ACPI). A current search for FreeBSD live cd-s gives several
results:

http://www.freesbie.org/
http://livecd.sourceforge.net/
http://www.livebsd.com/

I just couldn't get how does the bus have books on it, but I guess it
is not so important. :)

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


upgrading mysql-server

2006-06-08 Thread Michael P. Soulier
So, my nightly security report says that I should upgrade mysql-server.

[EMAIL PROTECTED] ~]# pkg_info | grep mysql-server
mysql-server-4.1.15 Multithreaded SQL database (server)

But, what port does this correspond to?

[EMAIL PROTECTED] ~]# ls -d /usr/ports/databases/mysql*server
/usr/ports/databases/mysql323-server/   /usr/ports/databases/mysql50-server/
/usr/ports/databases/mysql40-server//usr/ports/databases/mysql51-server/
/usr/ports/databases/mysql41-server/

I'm assuming mysql41-server, since it's version 4.1.15. 

Affected package: mysql-server-4.1.15
Type of problem: MySQL -- SQL-injection security vulnerability.
Reference:
http://www.FreeBSD.org/ports/portaudit/7f8cecea-f199-11da-8422-00123ffe8333.htm
l

Thanks,
Mike

-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction. --Albert Einstein


pgpn0nYqv2otd.pgp
Description: PGP signature


Re: Strange swap behaviour

2006-06-08 Thread Paul Schmehl

Paul Schmehl wrote:


I'm having the exact same problem on 6.0/amd64.  I commented out the 
stream4 preprocessor lines in the snort.conf file and the problem went 
away.  I just uncommented them this morning, to confirm that that is 
what is causing the problem.


It appears that there is a memory leak in the stream4 preprocessor, but 
before I report it, I want to confirm that the symptoms are repeatable.


I've been told that a memory leak in the stream4 preprocessor was fixed 
in the 2.6.0 release.  So you may want to update to that now, or comment 
it out until the maintainer updates the port.  (That port is usually 
pretty well maintained, so I suspect it won't be long before it's updated.)


--
Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


smime.p7s
Description: S/MIME Cryptographic Signature


Re: kde-3.5.3 screensaver

2006-06-08 Thread Chris Howells
On Thursday 08 June 2006 17:14, dick hoogendijk wrote:
 Anybody experience the same as I do? After upgrading to the latest kde
 (from 3.5.2 to 3.5.3) the screensaver within kde stopped working.

Yes, it's broke.

http://bugs.kde.org/show_bug.cgi?id=128610

-- 
Cheers, Chris Howells -- [EMAIL PROTECTED], [EMAIL PROTECTED]
Web: http://www.chrishowells.co.uk, PGP ID: 0x33795A2C
KDE/Qt/C++/PHP Developer: http://www.kde.org


pgpy4aSsbNBxz.pgp
Description: PGP signature


Re: Configuring FreeBSD for use as an interactive kiosk

2006-06-08 Thread Sean

Andy Reitz wrote:

On Thu, 8 Jun 2006 [EMAIL PROTECTED] wrote:


Hi,

I'm involved with a museum which has a standalone interactive kiosk. The
system runs an Apache2 server with PHP and MySQL on Windows XP. The
problem is that Windows XP keeps becoming corrupted as a result of the
machine being switched on and off at random (by staff, kids etc.).

Currently, the museum management is very open to switching to FreeBSD or
similar - provided I can *completely* bulletproof the box against
arbitrary power-cycling (I can't always be there to manually run fsck
etc.).

I'd welcome any advice and suggestions about how to do this. Currently the
information on the system is updated in situ so the file systems can't
be made read only (any ideas on how we could split the updating from the
deployment welcome). We also need to find a way of turning firefox into a
kiosk browser.


Hi drseuk,

Well, the best thing to do would be to make your kiosk machine totally
diskless:

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

This would make the kiosk machine totally resilient to unexpected reboots.

However, it sounds like you only have one machine, and you have to make
everything work there. In that case, you might be able to experiment with
making certain file systems read-only, and only making them RW when you
want to modify the system.

It looks like some work has been done with getting Firefox to work in
kiosk mode, here is what Google turned up for me:

http://www.desktoplinux.com/news/NS6013296355.html

Good luck,
-Andy Reitz.

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



A local library I have done some work for has a device from 
http://www.centuriontech.com/products/centurionguard/
It basically is a hardware solution that no mater what the user thinks 
they are doing, they cannot write to the disk.


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


Re: Configuring FreeBSD for use as an interactive kiosk

2006-06-08 Thread Lars Kristiansen

[EMAIL PROTECTED] skrev:

We also need to find a way of turning firefox into a kiosk browser.


Alternative:
http://www.opera.com/support/mastering/kiosk/


--
Regards from Lars

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


restoring deleted files

2006-06-08 Thread Phil Sweeney
Can you tell me a simple way of retrieving recently deleted files?

Regards
Phil Sweeney
Superior Pest Management
P.O Box 68
www.superiorpest.com.au
[EMAIL PROTECTED]
H.R.M.C NSW 2310
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Tcpdump dropping packets

2006-06-08 Thread Chuck Swiger

Paul Schmehl wrote:

Chuck Swiger wrote:


Check sysctl debug.bpf_bufsize, but also do a search on this because 
there may be a patch needed for PCAP in order for buffers larger than 
32K to actually work. [1]



Hmmm

sysctl debug.bpf_bufsize
sysctl: unknown oid 'debug.bpf_bufsize'


This sysctl has changed names over time, it seems, and thus may vary depending 
on which version of FreeBSD you have.



sysctl -a | grep bufsize
net.bpf.maxbufsize: 524288
net.bpf.bufsize: 4096

I assume bufsize is the default?  And maxbufsize is as high as it can 
go?  So it defaults to 4 megs and maxes out at 512 megs?


I think those sizes may be measured in bytes, not MB.  :-)


If true, how would I go about calculating a sufficiently large maxbufsize?


I suspect that you will have to adjust the KVA region size to really increase 
the BPF buffer size.  Tuning this stuff requires some experimentation, 
probably, although I will happily defer to someone with more knowledge...



If I have approximate 150Mbps traffic, how much has to be held in the buffer?


You'd like to be able to hold several times as much data as arrives per 
quantum (ie, 1ms if HZ=1000) to handle peaks and the machine getting busy with 
something else and not draining the buffer immediately.


Ie, you'd want on the order of a few hundred KB of buffer space at 150Mbps, 
but your disks would have to be able to sustain 20+ MB/s continuous writes if 
you plan to keep all of the traffic, or you'd have to filter and do whatever 
live processing at that type of data rate, or else you'll drop huge amounts of 
traffic.


[ I'm tempted to suggest you call your local phone company and ask them to 
recommend a wirespeed Internet recorder/analyzer. ]


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


Re: Compile courier-imap 4.1.1 fails (solved)

2006-06-08 Thread boink

(Sent off-group):


The biggest thing is that if you have libs in non-standard locations
then you need to set

LDFLAGS
CPPFLAGS
CFLAGS

appropriately before you compile


for tcsh/csh



% setenv LDFLAGS -L/usr/mylibs
% setenv CPPFLAGS -I/usr/myincludes
% setenv CFLAGS -I/usr/myincludes




Chad
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



Chad,

Thank you for your advice.

I got there in the end, and cc the group for others' future reference
(and mine):

$setenv LDFLAGS -L/usr/local/lib -L/usr/local/include -L/usr/include/openssl
$setenv CPPFLAGS -I/usr/local/lib -I/usr/local/include -I/usr/include/openssl
$setenv CFLAGS -I/usr/local/lib -I/usr/local/include -I/usr/include/openssl

(where -I = big i not small L)

$./configure --without-authdaemon --with-authvchkpw
--enable-unicode=iso-8859-1,iso-8859-15,utf-8 --without-ipv6
--enable-workarounds-for-imap-client-bugs

now...
$make check

Lots of complaints about FAM (which *is* installed, but not
configured properly).  I browsed a few posts wrt FAM, which led me to
continue anyway, since it seems most applicable to many-user systems,
particularly with shared folders.

So, finally:
$./configure --without-authdaemon --with-authvchkpw
--enable-unicode=iso-8859-1,iso-8859-15,utf-8 --without-ipv6
--enable-workarounds-for-imap-client-bugs
$make check

(More complaints expected due to --enable-workarounds... as documented), then:

#make install
#make install configure

Up and running after a few tweaks, and first imap mails sent.  Thank you!

Imap over TLS/SSL next, then Sqwebmail

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


Midi and Linux compatibility

2006-06-08 Thread jekillen

Hello;
I'm interested in setting up midi and sound recording gear on a Linux 
system. There is a program I'm interested in
getting installed and using called Rosegarden. I also have to contend 
with the availability of Linux compatible
midi interfaces (which is a blurred subject as far as my research into 
availability is concerned) My question to
the FreeBSD mailing list is: if I use FreeBSD with its Linux 
compatibility, how do I deal with drivers (for midi inter
faces, for instance) and installation. Is there an area of ports for 
Linux software, specifically Rosegarden or
something that will do audio recording, midi sequencing, audio/midi 
sync, and has a good score editor that

will print sheet music?
I would be using it on AMD 64 slot 939 FreeBSD v 6.0 Release.
(commercial boxed set of cd's from FreeBSD Mall).
I'm interested in this because my other option is to set up a
machine with Debian and some Debian midi specific software.
But I can't afford to build or buy another machine at present.
I want to avoid dual boot if I can.
One extra question re nvnet driver. I had trouble installing and using 
it
and a response to a query to this list indicated that the port was 
broken.

Can anyone tell me if it has been fixed?
Thanks in advance:
JK

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


Re: Midi and Linux compatibility

2006-06-08 Thread Sean

jekillen wrote:

Hello;
I'm interested in setting up midi and sound recording gear on a Linux 
system. There is a program I'm interested in
getting installed and using called Rosegarden. I also have to contend 
with the availability of Linux compatible
midi interfaces (which is a blurred subject as far as my research into 
availability is concerned) My question to
the FreeBSD mailing list is: if I use FreeBSD with its Linux 
compatibility, how do I deal with drivers (for midi inter
faces, for instance) and installation. Is there an area of ports for 
Linux software, specifically Rosegarden or
something that will do audio recording, midi sequencing, audio/midi 
sync, and has a good score editor that

will print sheet music?




You can check here http://www.freebsd.org/ports/
on ports you are looking, Your Rosegarden is listed.

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


Re: kde-3.5.3 screensaver

2006-06-08 Thread vayu

On Jun 8, 2006, at 3:15 PM, Chris Howells wrote:


On Thursday 08 June 2006 17:14, dick hoogendijk wrote:
Anybody experience the same as I do? After upgrading to the latest  
kde

(from 3.5.2 to 3.5.3) the screensaver within kde stopped working.


Yes, it's broke.

http://bugs.kde.org/show_bug.cgi?id=128610

--
Cheers, Chris Howells -- [EMAIL PROTECTED], [EMAIL PROTECTED]
Web: http://www.chrishowells.co.uk, PGP ID: 0x33795A2C
KDE/Qt/C++/PHP Developer: http://www.kde.org



I've had this same problem since 3.5.1.  I installed xscreensaver and  
turned off KDE screensaver.  When I want to adjust it I run  
xscreensaver-demo from the command line.  When I lock the screen I  
get the KDE screen saver which will work for that.





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


Directory and file comparison tool for X?

2006-06-08 Thread Norberto Meijome
Hi all,
I'm looking for a tool that will allow me to compare directories (recursively)
showing what files are different,etc. meld ( textproc/meld ) can do this to
some extent, showing missing files,etc, but not showing what files are
different withoug having to open each file and do a diff.

There is a little app for Win32 called Beyond Compare (commercial, written in
Delphi) , from Scooter Software (www.scootersoftware.com) which does all this -
i need an similar tool :)

Any suggestions?

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


Re: restoring deleted files

2006-06-08 Thread Jahilliya

On 6/9/06, Phil Sweeney [EMAIL PROTECTED] wrote:

Can you tell me a simple way of retrieving recently deleted files?


There is no simple way.

And it depends on whether the inodes the file existed on have been overwritten.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: reading process memory

2006-06-08 Thread Pranav Peshwe

On 6/7/06, Tofik Suleymanov [EMAIL PROTECTED] wrote:


Hello, folks

I believe that it is possible to read contents of the memory
used/utilized by a process (assuming right privileges).
First i've tried to do this through procfs by reading 'mem' property of
the given process, but no success.
Maybe there is another way of doing such things ?
Any clue would be appreciated.



If i understood correctly what you wish to do,then you can
use the proc_rwmem() function in the kernel.But ofcourse,
it can only be used through a KLD or directly through
the kernel src.This is what ptrace ultimately uses.

For 5.4 stable you can find it here :
http://fxr.watson.org/fxr/ident?v=RELENG54i=proc_rwmem

HTH.

Regards,
Pranav


UNIX is a computer virus with an interface.
-- The UNIX-HATERS Handbook
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Midi and Linux compatibility

2006-06-08 Thread Micah

Sean wrote:

jekillen wrote:

Hello;
I'm interested in setting up midi and sound recording gear on a Linux 
system. There is a program I'm interested in
getting installed and using called Rosegarden. I also have to contend 
with the availability of Linux compatible
midi interfaces (which is a blurred subject as far as my research into 
availability is concerned) My question to
the FreeBSD mailing list is: if I use FreeBSD with its Linux 
compatibility, how do I deal with drivers (for midi inter
faces, for instance) and installation. Is there an area of ports for 
Linux software, specifically Rosegarden or
something that will do audio recording, midi sequencing, audio/midi 
sync, and has a good score editor that

will print sheet music?




You can check here http://www.freebsd.org/ports/
on ports you are looking, Your Rosegarden is listed.

Sean


Note that the Rosegarden project refers to the 2.1 series that's in our 
ports as antique. The latest Rosegarden requires ALSA to work.


To the OP, MIDI support on FreeBSD is non-existent aside from some 
kernel patches that turn up every now and then. If you need hardware 
MIDI support you need to use Linux, Windows, or OSX.


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


Re: natd not starting on boot-up

2006-06-08 Thread Nick Withers
On Wed, 07 Jun 2006 18:01:43 +0700
Roger Merritt [EMAIL PROTECTED] wrote:

 At 02:12 AM 6/7/2006 -0700, you wrote:
 On 6/7/06, Nick Withers [EMAIL PROTECTED] wrote:
 On Wed, 07 Jun 2006 15:23:18 +0700
 Roger Merritt [EMAIL PROTECTED] wrote:
 
   At 04:35 PM 6/7/2006 +1000, you wrote:
   On Wed, 07 Jun 2006 12:13:29 +0700
   Roger Merritt [EMAIL PROTECTED] wrote:
   
 I'm thoroughly puzzled. Over the weekend I transferred my FreeBSD
system to
 a new hard drive. Through laziness I didn't follow the 
  instructions and
had
 to make a completely new install. Everything now seems to be 
  working the
 way it should, Apache, MySQL, PHP, syslog, Samba -- except natd.
Everything
 starts on boot-up as it should -- except natd. I can start it 
 manually
from
 the command line after booting up and logging in and it works 
  fine, but I
 can't tell what's going on that it's failing to start.

 My /etc/rc.conf contains the following:

 # This file now contains just the overrides from 
  /etc/defaults/rc.conf.
 defaultrouter=203.151.134.1
 gateway_enable=YES
 hostname=poppy.international.stjohn.ac.th
 ifconfig_ed0=inet 10.3.16.125 netmask 255.255.255.0
 ifconfig_ed1=inet 203.151.134.104  netmask 255.255.255.0
 router_enable=YES
 firewall_enable=YES
 firewall_type=OPEN
 firewall_quiet=YES
 natd_enable=YES
 natd_interface=ed1
 ipv6_enable=YES
 linux_enable=YES
 moused_enable=YES
 moused_port=/dev/sysmouse
 moused_type=auto
 screen=daemon
 nfs_client_enable=YES
 sshd_enable=YES
   
   That looks alright to me...
   
 What can I do to get some indication of where the problem is?
   
   Are there any error messages relating to IPFW / natd on boot?
  
   No, or at least none I could see. That's why I've asked for help.
  
   What version of FreeBSD are you running?
  
   6.1-STABLE
 
 Perhaps there's something wrong in the branch at present...?
 Doubtful, I guess.
 
   What's the command
   you're running that _does_ launch natd successfully?
  
   /sbin/natd -n ed1. I hadn't thought about /etc/rc.d/natd start until
   someone suggested it, but that works too and reads the interface from
   /etc/rc.conf.
  
 What's the
   output of ls -l /etc/rc.d/natd?
  
   [poppy] ~# ls -l /etc/rc.d/natd
   -r-xr-xr-x  1 root  wheel  978 May 31 09:52 /etc/rc.d/natd
 
 Hmmm... Well that all seems OK, then.
 
 The only other thing I can think of is that the
 'router_enable'=YES' line's creating dramas.
 
 As I understand it, this'll cause /etc/rc.d/routed to attempt to
 launch the routing daemon specified by a 'router=...' line,
 which you don't appear to have. I don't think this'd interfere
 with natd anyway, but I don't really understand what the hell's
 going on in /etc/rc.d/routed.
 
 Sorry I can't be more helpful!
 --
 
 I don't run route(daemon) so I don't know about router_enable, but
 here is what I have in my rc.conf to get natd working:
 
 #router stuff
 natd_program=/sbin/natd
 natd_enable=YES
 natd_interface=rl0
 natd_flags=-dynamic -f /etc/natd.conf
 gateway_enable=YES
 
 So I use gateway_enable not router_enable.
 
 I don't know if this applies to your problem completely, but might be
 worth a shot.
 
 Well, I tried commenting it out and restarting. Everything seems to work 
 without it, but natd still didn't start.
 
 I can't remember exactly why I decided it should be in there (I also have 
 'gateway_enable=YES'), but it must have been something I read when I 
 first started using FreeBSD back eight or ten years ago. Well, I'll leave 
 it commented out for a while and see if other problems show up.

I've been doing a little hunting around to figure out
how /etc/rc.d/natd's called in the first place and it seems
this is done by the /etc/rc.d/ipfw script, which in turn is run
when firewall_enable is set
in /etc/rc.conf. /etc/rc.d/natd's not run directly
by /etc/rc due to its having the nostart KEYWORD.

Is IPFW definitely launched correctly on the system?

Otherwise, perhaps it's worthwhile chucking a debug echo or two
about the place (for instance, in /etc/rc.d/natd and /
or /etc/rc.d/ipfw) and rebooting. Something like this should do
the trick, I believe: echo  echo  echo  echo
'/etc/rc.d/natd'  echo  echo  echo (without the outer
quotes).

 -- 
 Roger
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
-- 
Nick Withers
email: [EMAIL PROTECTED]
Web: http://www.nickwithers.com
Mobile: +61 414 397 446
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


solved was Re: AC97 sound card on 6.1

2006-06-08 Thread Dave

Hello,
   Thanks to all who helped with my sound card issue. The fix was 
load the below driver in /boot/loader.conf:


   #sound driver
snd_ich_load=YES

Thanks.
Dave.

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


Need some help with PF rule letting two machines access each other

2006-06-08 Thread Pat Maddox

12.34.56.78 runs a server on port 1234
87.65.43.21 should connect to this

Both of them have PF rulesets that block off most traffic, keeping
open the publically available ports I need open.  In this case though,
any traffic over this port should only be between these two machines.
I've tried to set this up, but I keep getting operation not permitted,
connection refused, and connection reset by peer errors.  Thanks for
any info.

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


Re: MIDI

2006-06-08 Thread Gary Kline
On Thu, Jun 08, 2006 at 01:57:24PM +0300, Andrey Slusar wrote:
 Wed, 7 Jun 2006 23:06:12 -0700, Gary Kline wrote:
 
  Since I have builtin sound on my  motherboard on most of my
  systems, can I configure them to play midi files?  So far 
  it looks like I need thw voxware driver/.ko/whatever.
  I'd appreciate any clues here.
 
  You need install the ports/audio/timidity++.
 

This works!  I do't rememer the changes in volume in the files I
have from 1993, 4, and '96, but that may be a problem inthe MIDI 
src.  

Looking forward o explorig this stuff.

gary


 -- 
 Regards,
 Andrey.

-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

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


Re: compiling ports to packages on fast system, installing on slower one

2006-06-08 Thread Nikolas Britton

On 6/8/06, Andrey Slusar [EMAIL PROTECTED] wrote:

Wed, 7 Jun 2006 16:56:25 -0400, Dave wrote:
 Hello,
I was wondering if this was possible? I've got a box that i'd like
 to install the latest gnome 2.14 desktop on, as well as some very
 intense apps to build. I would like to compile the needed apps on my
 fastest machine as packages, then transfer all the packages to the
 slower box, and do a pkg_add * and they're all installed. My catch is
 i don't want to install everything on my fastest box to pull this
 off. I am using portupgrade and was wondering if this was doable?

 On fast box install the misc/tinderbox and build all packets in
tinderbox jail.



Can you use a custom make.conf for each tinderbox jail?



--
BSD Podcasts @:
http://bsdtalk.blogspot.com/
http://freebsdforall.blogspot.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Need some help with PF rule letting two machines access each other

2006-06-08 Thread Mikhail Goriachev
Pat Maddox wrote:
 12.34.56.78 runs a server on port 1234
 87.65.43.21 should connect to this
 
 Both of them have PF rulesets that block off most traffic, keeping
 open the publically available ports I need open.  In this case though,
 any traffic over this port should only be between these two machines.
 I've tried to set this up, but I keep getting operation not permitted,
 connection refused, and connection reset by peer errors.  Thanks for
 any info.


Hi,

This'll do:

EIF=eif # external interface
HOSTA=12.34.56.78   # host A
HOSTB=87.65.43.21   # host B

# These lines go on host A
pass in  quick on $EIF from $HOSTB to $EIF port 1234
pass out quick on $EIF from $EIF to $HOSTB port 1234

# These lines go on host B
pass in  quick on $EIF from $HOSTA to $EIF port 1234
pass out quick on $EIF from $EIF to $HOSTA port 1234


Put those lines somewhere at the beginning of your pf.conf files. Also,
if I may add, this is very basic and you should consult/read/learn PF's
guide.


Cheers,
Mikhail.

-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]