Re: troubles rebuilding extensions.ini

2011-01-22 Thread Gary Kline
On Sat, Jan 22, 2011 at 06:43:23AM +0100, Polytropon wrote:
 On Fri, 21 Jan 2011 22:57:07 -0500, Chris Brennan xa...@xaerolimit.net 
 wrote:
  make rmconfig will remove/reset the config to factory default, then make
  config to restart fresh.
 
 And make rmconfig-recursive will do so for any other port
 the current port depends on. A very handy solution if the
 trouble hides in a dependency of a dependency... :-)
 
 Just see man ports for a list of all targets.
 

Ye Gods.  The ports manpage is almost unreadable.  Not to
mention full of non-ASCII bytes.  I'm beat.  Throwing in the
towel for now.  --Everything works except my own web server.
Thanks to the list ... and that's it for now.

--g
 
 -- 
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 7.97a release of Jottings: http://jottings.thought.org

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


8.1-STABLE: Weird behaviour with some network services

2011-01-22 Thread Kamigishi Rei
Hello,

I'm running FreeBSD 8.1-STABLE amd64 r215423 on a Q9400 with 6GB RAM.
Base system is on a geom_mirror, everything else is inside a few ZFS
raidz1 pools. Everything except sshd runs inside jails.

Three days ago I noticed that my audio/icecast2 (2.3.2, from ports)
suddenly stopped processing connections. Couldn't stop it
conventionally, either; only kill -9 worked.

Then the same day Apache's httpd (2.2.18, prefork, built manually)
stopped responding; child processes were stuck in defunct state and
never finished, and the dispatcher didn't spawn any new ones. However in
this case 'apachectl restart' worked, and defunct processes were
successfully killed.

With gdb attached to icecast2, I can see 6 threads running, all of them
except two being inside nanosleep(). The main process seems to be stuck at

453 ret = poll(ufds, global.server_sockets, timeout);

Step by step execution in gdb inside poll() have somehow unfrozen the
process at least once.

Any advice on what might be the issue here?

There are no issues with the HDDs (or so it seems; nothing in dmesg, and
SMART health assessment is All OK).
I haven't tried to restart the server as it's really unwelcome (and I
doubt it's a proper solution).
I've also did make -j8 buildworld to see if there might be RAM issues
(as buildworld usually crashes on faulty RAM). No problems, either.

Thanks in advance.

P.S. Please CC, I am not subscribed to this list.

-- 
Kamigishi Rei
KREI-RIPE




signature.asc
Description: OpenPGP digital signature


Re: troubles rebuilding extensions.ini

2011-01-22 Thread Polytropon
On Sat, 22 Jan 2011 00:18:28 -0800, Gary Kline kl...@thought.org wrote:
 On Sat, Jan 22, 2011 at 06:43:23AM +0100, Polytropon wrote:
  Just see man ports for a list of all targets.
 
   Ye Gods.  The ports manpage is almost unreadable.  Not to
   mention full of non-ASCII bytes. 

Those should be the representation of text attributes,
rendered according to the terminals's capabilities
(e. g. reverse, bold, underline). They should not be
displayed as-is.

What $PAGER are you using? It should be more or less
more or less. :-)

Try man -Pless ports and display should be fine.

To get a readable PDF output of the manpage, use

% zcat `man -w ports` | groff -Tps -dpaper=a4 -P-pa4 -mandoc | ps2pdf - 
ports.pdf
% xpdf ports.pdf

Select different format than A4 if needed, and PDF viewer
respectively. Even

% zcat `man -w ports` | groff -Tps -dpaper=a4 -P-pa4 -mandoc | gv -

does work, omitting the PDF and presistent result file steps.

In my opinion, man ports gives a good overview about
all the targets common to ports, as well as the environmental
variables that control the work of make in relation to
the ports collection.




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


Re: no apache22, php5 cores

2011-01-22 Thread Matthew Seaman
On 22/01/2011 01:23, Terrence Koeman wrote:
 Might also want to try 'lsof -nPi |grep LISTEN', that shows what
 process is listening as well. Maybe not really added value here, but
 it sure helps when you're troubleshooting address/port in use errors
 and such.

sockstat(1) does this job and it is part of the base system.  To show
listening IPv4 and IPv6 network sockets:

sockstat -4 -6 -l

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: troubles rebuilding extensions.ini

2011-01-22 Thread Carl Johnson
Gary Kline kl...@thought.org writes:

 On Sat, Jan 22, 2011 at 06:43:23AM +0100, Polytropon wrote:
 On Fri, 21 Jan 2011 22:57:07 -0500, Chris Brennan xa...@xaerolimit.net 
 wrote:
  make rmconfig will remove/reset the config to factory default, then make
  config to restart fresh.
 
 And make rmconfig-recursive will do so for any other port
 the current port depends on. A very handy solution if the
 trouble hides in a dependency of a dependency... :-)
 
 Just see man ports for a list of all targets.
 

   Ye Gods.  The ports manpage is almost unreadable.  Not to
   mention full of non-ASCII bytes.  I'm beat.  Throwing in the
   towel for now.  --Everything works except my own web server.
   Thanks to the list ... and that's it for now.

It should not have any non-ASCII characters, or at least not properly
displayable ones.  That probably means that you have the wrong locale
set for whatever your display is.  If you just want to see only ASCII,
then try 'LANG=C man ports'.  If that doesn't work then try setting
LC_ALL=C instead of LANG=C.

-- 
Carl Johnsonca...@peak.org

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


Burning a DVD

2011-01-22 Thread Jens Jahnke
Hi,

I tried to burn a dvd after doing setup according to the handbook.

/boot/loader.conf:
atapicam_load=YES
hw.ata.atapi_dma=1

/etc/devfs.conf:
linkacd0cdrom
linkacd0dvd
permacd00660
permpass0   0660
permxpt00660

ls -la /dev/acd0
crw-rw  1 root  operator0,  98 22 Jan 19:26 /dev/acd0

But when I try
growisofs -dvd-compat -dry-run -Z /dev/acd0 /path/to/video
I get:
:-( unable to CAMGETPASSTHRU for /dev/acd0: Inappropriate ioctl for
device

No matter if I try as regular user or as root the error message stays
the same.

Any ideas?

Regards,

Jens

-- 
22. Hartung 2011, 19:41
Homepage : http://www.jan0sch.de

Cheit's Lament:
If you help a friend in need, he is sure to remember you--
the next time he's in need.


pgpPpt1qLlvch.pgp
Description: PGP signature


Re: Burning a DVD

2011-01-22 Thread Peter Vereshagin
I've seen the future Jens = it is motto.
2011/01/22 19:47:18 +0100 Jens Jahnke jan0...@gmx.net = To freebsd questions 
:

JJ growisofs -dvd-compat -dry-run -Z /dev/acd0 /path/to/video
JJ :-( unable to CAMGETPASSTHRU for /dev/acd0: Inappropriate ioctl for
JJ device
JJ No matter if I try as regular user or as root the error message stays
JJ the same.
JJ Any ideas?

Should you use cd0 but not acd0?
cd0 should be detected as a scsi device emulated via the kernel from the acd0.

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB  12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Burning a DVD

2011-01-22 Thread Polytropon
On Sat, 22 Jan 2011 19:47:18 +0100, Jens Jahnke jan0...@gmx.net wrote:
 Hi,
 
 I tried to burn a dvd after doing setup according to the handbook.
 
 /boot/loader.conf:
 atapicam_load=YES
 hw.ata.atapi_dma=1
 
 /etc/devfs.conf:
 link  acd0cdrom
 link  acd0dvd
 perm  acd00660

And HERE is the mistake: You need to specify the /dev/cd0
device which gets accessed by the ATAPICAM facility. The
/dev/acd0 device does not understand SCSI commands.



 But when I try
 growisofs -dvd-compat -dry-run -Z /dev/acd0 /path/to/video
 I get:
 :-( unable to CAMGETPASSTHRU for /dev/acd0: Inappropriate ioctl for
 device

Fully correct. See man growisofs for an explaination
of what /dev/dvd refers to. You can either use

growisofs -dvd-compat -Z /dev/dvd=/path/to/file.iso

or

growisofs -dvd-compat -Z /dev/dvd -r -J /path/to/files

if you have devfs.conf point dvd to cd0 - or you simply
specify /dev/cd0 instead of /dev/dvd.



 No matter if I try as regular user or as root the error message stays
 the same.

Of course. :-)

Remember: ATA - /dev/acd0, ATAPICAM (SCSI over ATAPI) - /dev/cd0,
and therefore /dev/dvd - /dev/cd0 for simplified access.

Given you set the permissions correctly, burning DVDs as a
non-root user should be no problem.



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


Re: Burning a DVD

2011-01-22 Thread Glen Barber
Hi,

On 1/22/11 1:47 PM, Jens Jahnke wrote:
 Hi,
 
 I tried to burn a dvd after doing setup according to the handbook.
 
 /boot/loader.conf:
 atapicam_load=YES
 hw.ata.atapi_dma=1
 
 /etc/devfs.conf:
 link  acd0cdrom
 link  acd0dvd
 perm  acd00660
 perm  pass0   0660
 perm  xpt00660
 
 ls -la /dev/acd0
 crw-rw  1 root  operator0,  98 22 Jan 19:26 /dev/acd0
 
 But when I try
 growisofs -dvd-compat -dry-run -Z /dev/acd0 /path/to/video
 I get:
 :-( unable to CAMGETPASSTHRU for /dev/acd0: Inappropriate ioctl for
 device
 

I believe you have to use /dev/cd0 when doing this.  You should have a
/dev/cd0 device after atapicam was loaded.

Regards,

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


lightbulb? prob'ly not, but....

2011-01-22 Thread Gary Kline
i'm still only part way thru my mail queue, but just tried a couple things
that maybe will jog something with the list.

first, i tried a telnet thought.org and it failed, but only by hanging.  then
i tried a telnet of ethic by its private ip.  was refused instantly::

i cannot cut/paste in ctwm here on ethic, but it was

# telnet 10.47.0.230
Trying ...
telnet: connect to addr n.n.n.n: Connection refused
telnet: Unable to connect to remotr host

Does the Connection refused signify anything in the bind/dns world.  ?

BEfore i portupgraded to bind97 from bind9, this kind of stuff worked.



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.97a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org
 ethic 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


follow up...

2011-01-22 Thread Gary Kline

something else, probly not related to my web/dns troubles is that for days i 
seem to be getting spammed with multiple copies of some mail.  these dup
mail are ones that i _have_ sub'd to.  Just strange that this mail bug
happened at the same time that my bind troubles began.   



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.97a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org
 ethic 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: lightbulb? prob'ly not, but....

2011-01-22 Thread Terrence Koeman
 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of Gary Kline
 Sent: Saturday, January 22, 2011 22:33
 To: FreeBSD Mailing List
 Subject: lightbulb? prob'ly not, but

[snip]


 # telnet 10.47.0.230
 Trying ...
 telnet: connect to addr n.n.n.n: Connection refused
 telnet: Unable to connect to remotr host

 Does the Connection refused signify anything in the bind/dns world.
 ?

 BEfore i portupgraded to bind97 from bind9, this kind of stuff worked.


Seeing as you're not resolving any hostname it's not DNS.

You also have not specified a port for telnet to connect to so it'll default to 
23, which you probably don't want. Try 'telnet 10.47.0.230 80' (80 is the 
standard port for http).

BTW, the 'Connection Refused' message means that the port is closed and sending 
a RST, which means that either nothing is listening on the port or that the 
system is sending RST's because of a firewall rule. If you haven't setup such 
rules you can assume the first to be the case.

--
Regards,
T. Koeman, MTh/BSc/BPsy; Technical Monk

MediaMonks B.V. (www.mediamonks.com)
Please quote relevant replies in correspondence.




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


Re: lightbulb? prob'ly not, but....

2011-01-22 Thread Gary Kline
On Sat, Jan 22, 2011 at 11:22:51PM +0100, Terrence Koeman wrote:
  -Original Message-
  From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
  questi...@freebsd.org] On Behalf Of Gary Kline
  Sent: Saturday, January 22, 2011 22:33
  To: FreeBSD Mailing List
  Subject: lightbulb? prob'ly not, but
  
 [snip]
 
  
  # telnet 10.47.0.230
  Trying ...
  telnet: connect to addr n.n.n.n: Connection refused
  telnet: Unable to connect to remotr host
  
  Does the Connection refused signify anything in the bind/dns world.
  ?
  
  BEfore i portupgraded to bind97 from bind9, this kind of stuff worked.
  
 
 Seeing as you're not resolving any hostname it's not DNS.
 
 You also have not specified a port for telnet to connect to so it'll default 
 to 23, which you probably don't want. Try 'telnet 10.47.0.230 80' (80 is the 
 standard port for http).


YES.  I get into ethic as with a normal telnet; when i hit return, I
see index.php; the source, not the web file that lynx of firefox 
shows.  I'll KVM over to my desktop and cut/paste from there.
 
 BTW, the 'Connection Refused' message means that the port is closed and 
 sending a RST, which means that either nothing is listening on the port or 
 that the system is sending RST's because of a firewall rule. If you haven't 
 setup such rules you can assume the first to be the case. 
 

wHat _should_ be listening on port 80 that isn't?


 -- 
 Regards,
 T. Koeman, MTh/BSc/BPsy; Technical Monk
 
 MediaMonks B.V. (www.mediamonks.com)
 Please quote relevant replies in correspondence.
 
 
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.97a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org
 ethic 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: lightbulb? prob'ly not, but....

2011-01-22 Thread Da Rock

On 01/23/11 09:25, Gary Kline wrote:

On Sat, Jan 22, 2011 at 11:22:51PM +0100, Terrence Koeman wrote:
   

-Original Message-
From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
questi...@freebsd.org] On Behalf Of Gary Kline
Sent: Saturday, January 22, 2011 22:33
To: FreeBSD Mailing List
Subject: lightbulb? prob'ly not, but

   

[snip]

 

# telnet 10.47.0.230
Trying ...
telnet: connect to addr n.n.n.n: Connection refused
telnet: Unable to connect to remotr host

Does the Connection refused signify anything in the bind/dns world.
?

BEfore i portupgraded to bind97 from bind9, this kind of stuff worked.

   

Seeing as you're not resolving any hostname it's not DNS.

You also have not specified a port for telnet to connect to so it'll default to 
23, which you probably don't want. Try 'telnet 10.47.0.230 80' (80 is the 
standard port for http).
 


YES.  I get into ethic as with a normal telnet; when i hit return, I
see index.php; the source, not the web file that lynx of firefox
shows.  I'll KVM over to my desktop and cut/paste from there.
   

BTW, the 'Connection Refused' message means that the port is closed and sending 
a RST, which means that either nothing is listening on the port or that the 
system is sending RST's because of a firewall rule. If you haven't setup such 
rules you can assume the first to be the case.

 

wHat _should_ be listening on port 80 that isn't?


   

Apache or any other http server

--
Regards,
T. Koeman, MTh/BSc/BPsy; Technical Monk

MediaMonks B.V. (www.mediamonks.com)
Please quote relevant replies in correspondence.




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

 
   


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


Re: follow up...

2011-01-22 Thread Da Rock

On 01/23/11 07:43, Gary Kline wrote:

something else, probly not related to my web/dns troubles is that for days i
seem to be getting spammed with multiple copies of some mail.  these dup
mail are ones that i _have_ sub'd to.  Just strange that this mail bug
happened at the same time that my bind troubles began.



   
Is it related to the threads you have been posting? You'll get multiples 
of those even if others are replying to replied posts.

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


RE: lightbulb? prob'ly not, but....

2011-01-22 Thread Terrence Koeman

 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of Gary Kline
 Sent: Sunday, January 23, 2011 00:26
 To: Terrence Koeman
 Cc: Gary Kline; freebsd-questions@freebsd.org

 On Sat, Jan 22, 2011 at 11:22:51PM +0100, Terrence Koeman wrote:
   -Original Message-
   questi...@freebsd.org] On Behalf Of Gary Kline
   Sent: Saturday, January 22, 2011 22:33
  
  [snip]
 
  
   # telnet 10.47.0.230
   Trying ...
   telnet: connect to addr n.n.n.n: Connection refused
   telnet: Unable to connect to remotr host
  
   Does the Connection refused signify anything in the bind/dns
 world.

[snip]
 
  Seeing as you're not resolving any hostname it's not DNS.
 
  You also have not specified a port for telnet to connect to so it'll
 default to 23, which you probably don't want. Try 'telnet 10.47.0.230
 80' (80 is the standard port for http).

   YES.  I get into ethic as with a normal telnet; when i hit
 return, I
   see index.php; the source, not the web file that lynx of firefox
   shows.  I'll KVM over to my desktop and cut/paste from there.

That is what is supposed to happen. This step is just to see what telnet 
returns: timeout, connection refused or some page. If you get some page then 
there's a webserver on port 80 that is serving you *something* at least.

 
  BTW, the 'Connection Refused' message means that the port is closed
 and sending a RST, which means that either nothing is listening on the
 port or that the system is sending RST's because of a firewall rule. If
 you haven't setup such rules you can assume the first to be the case.
 

   wHat _should_ be listening on port 80 that isn't?

Well, if you saw page source then there's a webserver listening on port 80.

--
Regards,
T. Koeman, MTh/BSc/BPsy; Technical Monk

MediaMonks B.V. (www.mediamonks.com)
Please quote relevant replies in correspondence.




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


Configuration of Ath0

2011-01-22 Thread Hubert Chadaj
Hello,

I have a Wireless card with Atherneros chipset, a have problem with
runing wlan on mode N?
Can you halp me?

I done instalation of that with that how to:
http://www.freebsd.org/doc/handbook/network-wireless.html, and It
works on moge G.


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


Re: lightbulb? prob'ly not, but....

2011-01-22 Thread Bernt Hansson

2011-01-22 22:33, Gary Kline:


first, i tried a telnet thought.org and it failed, but only by hanging.  then
i tried a telnet of ethic by its private ip.  was refused instantly::

i cannot cut/paste in ctwm here on ethic, but it was

# telnet 10.47.0.230
Trying ...
telnet: connect to addr n.n.n.n: Connection refused
telnet: Unable to connect to remotr host

Does the Connection refused signify anything in the bind/dns world.  ?


No. It signify that n.n.n.n isn't listening on whatever port you try to 
connect to.



BEfore i portupgraded to bind97 from bind9, this kind of stuff worked.


Check your config.

thought.org does not resolve:

%telnet thought.org
thought.org: hostname nor servname provided, or not known

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


Re: follow up...

2011-01-22 Thread Chad Perrin
On Sun, Jan 23, 2011 at 10:25:05AM +1000, Da Rock wrote:
 On 01/23/11 07:43, Gary Kline wrote:
 
 something else, probly not related to my web/dns troubles is that for
 days i seem to be getting spammed with multiple copies of some mail.
 these dup mail are ones that i _have_ sub'd to.  Just strange that
 this mail bug happened at the same time that my bind troubles began.

 Is it related to the threads you have been posting? You'll get
 multiples of those even if others are replying to replied posts.

More specifically, I think it's because people tend to group-reply rather
than list-reply.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgp1NfFpsv0xl.pgp
Description: PGP signature


Colorized compiler/linker messages

2011-01-22 Thread Michael D. Norwick

Good Day,

I have seen this for some time when building ports and was wondering how 
it was done.  GCC when compiling and linking certain programs, ebook for 
example, emits messages in various colors.  How is that done?  Where 
does one find what the various colors are supposed to signify?  Or, is 
it just because it's more appealing?


Thank You,

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


Changing the MAC address on a LAN adapter

2011-01-22 Thread John Levine
My Lenovo laptop running 8.1 has two ordinary Intel network adapters,
a wired PRO/1000 with the em driver and a WiFi PRO/Wireless 5300 with
the iwn driver.  They work fine, but for either one if I use ifconfig
to change the MAC address, the adapter won't actually work until I
change the address back to the native one.  Typical symptoms are
endless DHCP queries with no response.

Is this a known problem?  As far as I know, it's supposed to work.

R's,
John

PS: If you were wondering, obnoxious airport wifi that cuts you off
after an hour and won't let you back on until the next day, keyed by
MAC address.

em0: Intel(R) PRO/1000 Network Connection 7.0.5 port 0x1840-0x185f mem 
0xf260-0xf261,0xf2625000-0xf2625fff irq 20 at device 25.0 on pci0
em0: Using MSI interrupt

iwn0: Intel(R) PRO/Wireless 5300 mem 0xf250-0xf2501fff irq 17 at device 
0.0 on pci3
iwn0: MIMO 3T3R, MoW, address 00:21:6a:b5:18:48
iwn0: [ITHREAD]
iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 
36Mbps 48Mbps 54Mbps
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


bind97 from /bar/log/messages....

2011-01-22 Thread Gary Kline

Can anybody spot what's messed up here and help me get back up?

From earlier errors I added and then removed an A address label
before the IN NS ns1.thought.org ... That was the only thing I
could think of, and things still failed.  

HEre is the apropos part of the log:



Jan 22 19:44:54 ethic named[2069]: starting BIND 9.7.2-P3 -c
/var/named/etc/namedb/named.conf
Jan 22 19:44:54 ethic named[2069]: built with '--localstatedir=/var'
'--disable-linux-caps' '--disable-symtable'
'--with-randomdev=/dev/random' '--with-openssl=/usr'
'--with-libxml2=/usr/local' '--without-idn' '--enable-threads'
'--prefix=/usr/local' '--mandir=/usr/local/man'
'--infodir=/usr/local/info/' '--build=i386-portbld-freebsd7.3'
'build_alias=i386-portbld-freebsd7.3' 'CC=cc' 'CFLAGS=-O2
-fno-strict-aliasing -pipe' 'LDFLAGS=
-rpath=/usr/lib:/usr/local/lib' 'CPP=cpp' 'CXX=c++' 'CXXFLAGS=-O2
-fno-strict-aliasing -pipe'
Jan 22 19:44:54 ethic named[2069]: could not listen on UDP socket:
address in use
Jan 22 19:44:54 ethic named[2069]: creating IPv4 interface em0
failed; interface ignored
Jan 22 19:44:54 ethic named[2069]: could not listen on UDP socket:
address in use
Jan 22 19:44:54 ethic named[2069]: creating IPv4 interface lo0
failed; interface ignored
Jan 22 19:44:54 ethic named[2069]: not listening on any interfaces
Jan 22 19:44:54 ethic named[2069]: couldn't add command channel
127.0.0.1#953: address in use
Jan 22 19:44:54 ethic named[2069]: couldn't add command channel
::1#953: address in use
Jan 22 19:44:54 ethic named[2069]: could not listen on UDP socket:
address in use
Jan 22 19:44:54 ethic named[2069]: creating IPv4 interface em0
failed; interface ignored
Jan 22 19:44:54 ethic named[2069]: could not listen on UDP socket:
address in use
Jan 22 19:44:54 ethic named[2069]: creating IPv4 interface lo0
failed; interface ignored
Jan 22 19:44:54 ethic named[2069]: zone thought.org/IN/internal: NS
'ns1.thought.org' has no address records (A or )
Jan 22 19:44:54 ethic named[2069]: zone thought.org/IN/internal: not
loaded due to errors.
Jan 22 19:44:54 ethic named[2069]: managed-keys-zone ./IN/internal:
loading from master file
3bed2cb3a3acf7b6a8ef408420cc682d5520e26976d354254f528c965612054f.mkeys
failed: file not found
Jan 22 19:44:54 ethic named[2069]: managed-keys-zone ./IN/external:
loading from master file
3c4623849a49a53911c4a3e48d8cead8a1858960bccdea7a1b978d73ec2f06d7.mkeys
failed: file not found
Jan 22 19:44:54 ethic named[2069]: running



And regarding the managed-keys-zone I have no clue.  i do have a
file named rndc.key or suchlike, but that is as close as I can come
to anything to do with that string.  ...So hope some of you DNS
wizards know.

tia,

gary




-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 7.97a release of Jottings: http://jottings.thought.org

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


Re: lightbulb? prob'ly not, but....

2011-01-22 Thread Robert Bonomi

 Date: Sun, 23 Jan 2011 02:25:01 +0100
 From: Bernt Hansson be...@bah.homeip.net
 Subject: Re: lightbulb?  prob'ly not, but

 thought.org does not resolve:

'irrelevant, and immaterial'.   grin

 %telnet thought.org
 thought.org: hostname nor servname provided, or not known

'thought.org' does _not_ need to resolve.  it is a 'domain-name', not a 'host'.

'r-bonomi.com' doesn't resolve either.  but hosts _under_ that domain do.

In the real world, this means =only= that one cannot use http://{domain.name}
to reach a home page.  one has to use http://{host.domain.name} instead



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


Re: Colorized compiler/linker messages

2011-01-22 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Sat Jan 22 20:10:21 2011
 Date: Sat, 22 Jan 2011 20:00:52 -0600
 From: Michael D. Norwick mnorw...@centurytel.net
 To: freebsd-questions@freebsd.org
 Subject: Colorized compiler/linker messages

 Good Day,

 I have seen this for some time when building ports and was wondering how 
 it was done.  GCC when compiling and linking certain programs, ebook for 
 example, emits messages in various colors.  How is that done?

Whatever it is that is writing the messages is putting out 'terminal 
control' character strings that specify the color.

Where does 
 one find what the various colors are supposed to signify?

Read the _complete_ documentation for 'whatever it is' that is producing
the messages.  The colors signify 'whatever it is' that the author of that
software chose to represent with that color.  There are *NO* universal
standards for such things.

Or, is it just 
 because it's more appealing?

(A) appealing is in the eye of the beholder.
(B) *why* 'somebody' did something/anything is known *only* to the party
that actually _did_ it.  You can ether ask *them* or get uninformed
speculation from third parties.

In broad, diagsnotic messages can be divided into a minimum of 4 'classes'
(finer gradation is always possible):
diagnostic -- 'gory details' of what the program is doing internally, to 
   find out where what it is actually  doing is different from what one
   'expects' it to be doing.
informational -- things you might 'want to know about', but do not 
   indicate potentially incorrect operation.
warning -- things which *probably* indicate a problem, but might be
   'as intended'
error -- something which is, without question, incorrect, and prevents
   proper program operation.


A developer -might- use different colors for different 'classes' of messages,
so that an experienced user of that program (who 'knows' what color is used
for what) can tell 'at a glance' the  serverity of the thing being reported.
[ see (B), above, as regards applicability to -your- situationn ]



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


Re: bind97 from /bar/log/messages....

2011-01-22 Thread Robert Bonomi
 From owner-freebsd-questi...@freebsd.org  Sat Jan 22 22:08:52 2011
 Date: Sat, 22 Jan 2011 20:00:47 -0800
 From: Gary Kline kl...@thought.org
 To: FreeBSD Mailing List freebsd-questions@freebsd.org
 Cc: 
 Subject: bind97 from /bar/log/messages


 Can anybody spot what's messed up here and help me get back up?

 From earlier errors I added and then removed an A address label
 before the IN NS ns1.thought.org ... That was the only thing I could 
 think of, and things still failed.

 Here is the apropos part of the log:


 Jan 22 19:44:54 ethic named[2069]: starting BIND 9.7.2-P3 -c
 /var/named/etc/namedb/named.conf
 Jan 22 19:44:54 ethic named[2069]: built with '--localstatedir=/var'
   '--disable-linux-caps' '--disable-symtable'
   '--with-randomdev=/dev/random' '--with-openssl=/usr'
   '--with-libxml2=/usr/local' '--without-idn' '--enable-threads'
   '--prefix=/usr/local' '--mandir=/usr/local/man'
   '--infodir=/usr/local/info/' '--build=i386-portbld-freebsd7.3'
   'build_alias=i386-portbld-freebsd7.3' 'CC=cc' 'CFLAGS=-O2
   -fno-strict-aliasing -pipe' 'LDFLAGS=
   -rpath=/usr/lib:/usr/local/lib' 'CPP=cpp' 'CXX=c++' 'CXXFLAGS=-O2
   -fno-strict-aliasing -pipe'
 Jan 22 19:44:54 ethic named[2069]: could not listen on UDP socket: address in 
 use 
 Jan 22 19:44:54 ethic named[2069]: creating IPv4 interface address in use 
 Jan 22 19:44:54 ethic named[2069]: creating IPv4 interface em0 failed; 
 interface ignored 

**PROBLEM**  _something_ is already using the port named is trying to listen
on, for an IPv4 address associated with interface em0

 Jan 22 19:44:54 ethic named[2069]: could not listen on UDP socket: address in 
 use 
 Jan 22 19:44:54 ethic named[2069]: creating IPv4 interface lo0 failed; 
 interface ignored 

**PROBLEM** _something_ is already listening on the specified port on the 
loopback (lo0) interface, as well.

 Jan 22 19:44:54 ethic named[2069]: not listening on any interfaces 

**PROBLEM** the 'something' beat this invocation of 'named' to the punch on
_all_ the interfaces it was trying to listen on for queries.  dead in the water.

 Jan 22 19:44:54 ethic named[2069]: couldn't add command channel 
 127.0.0.1#953: address in use
 Jan 22 19:44:54 ethic named[2069]: couldn't add command channel ::1#953: 
 address in use
 Jan 22 19:44:54 ethic named[2069]: could not listen on UDP socket: address in 
 use 
 Jan 22 19:44:54 ethic named[2069]: creating IPv4 interface em0 failed; 
 interface ignored 

**PROBLEM**  _something_ is already using the 'control' port named is trying to
use, for an IPv4 address associated with interface em0

 Jan 22 19:44:54 ethic named[2069]: could not listen on UDP socket: address in 
 use 
 Jan 22 19:44:54 ethic named[2069]: creating IPv4 interface lo0 failed; 
 interface ignored 

**PROBLEM**  _something_ is already using the 'control' port named is trying to
use, for an IPv4 address associated with the loopback interface.

 Jan 22 19:44:54 ethic named[2069]: zone thought.org/IN/internal: NS
 'ns1.thought.org' has no address records (A or )

**PROBLEM** in the config file being used.

   you have a line that declares  IN  NS  ns1.thought.org,
   but *NO* line  ns1.thought.org  IN  A  {IPv4 address} 
 or   ns1.thought.org  IN  A  {[IPv6 address]} 
 
 Jan 22 19:44:54 ethic named[2069]: zone thought.org/IN/internal: not loaded 
 due to errors. 

**PROBLEM**  entire zone file ignored due to errors ini it.
 Jan 22 19:44:54 ethic named[2069]: managed-keys-zone ./IN/internal: loading 
   from master file 
 3bed2cb3a3acf7b6a8ef408420cc682d5520e26976d354254f528c965612054f.mkeys 
   failed: file not found 
 Jan 22 19:44:54 ethic named[2069]: managed-keys-zone ./IN/external: loading 
   from master file 
 3c4623849a49a53911c4a3e48d8cead8a1858960bccdea7a1b978d73ec2f06d7.mkeys 
   failed: file not found 
 Jan 22 19:44:54 ethic named[2069]: running

Running, but doing  nothing.  sigh

 And regarding the managed-keys-zone I have no clue.  i do have a file 
 named rndc.key or suchlike, but that is as close as I can come to 
 anything to do with that string.  ...So hope some of you DNS wizards 
 know.

 tia,

 gary




 --
  Gary Kline  kl...@thought.org  http://www.thought.org  Public Service 
  Unix
Journey Toward the Dawn, E-Book: http://www.thought.org The 
7.97a release of Jottings: http://jottings.thought.org

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

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


{kl...@thought.org} Your email is screwed up, AGAIN! ( Re: bind97 from /bar/log/messages....)

2011-01-22 Thread Robert Bonomi

Date: Sat, 22 Jan 2011 22:42:16 -0600 (CST)
Subject: Returned mail: see transcript for details


   - The following addresses had permanent fatal errors -
   kl...@thought.org
(reason: 550 5.7.1 kl...@thought.org... Relaying denied. Proper 
authentication required.)

   - Transcript of session follows -
... while talking to ethic.thought.org.:
 DATA
 550 5.7.1 kl...@thought.org... Relaying denied. Proper 
authentication required.
550 5.1.1 kl...@thought.org... User unknown
 503 5.0.0 Need RCPT (recipient)

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


Re: Colorized compiler/linker messages

2011-01-22 Thread Charlie Kester

On Sat 22 Jan 2011 at 18:00:52 PST Michael D. Norwick wrote:

Good Day,

I have seen this for some time when building ports and was wondering how 
it was done.  GCC when compiling and linking certain programs, ebook for 
example, emits messages in various colors.  How is that done?  Where 
does one find what the various colors are supposed to signify?  Or, is

it just because it's more appealing?


CMake can be used to generate Makefiles that produce colorized output,
and I would wager that it's being used by most of the ports where you're
seeing color. 


But there are many tools a developer might use for this.  For example, I
found this in my bookmarks file:

http://phil.freehackers.org/pretty-make/index.html

I think it's mostly aesthetics, but some people claim that using
different colors for different build steps makes it easier to monitor
the progress of the build.  For example, if the link or install steps
are a different color than the configuration or compile steps, you can
see that the build is in its final stages even if you're on the other
side of the room.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


help requested in fixing disk label mistake

2011-01-22 Thread Scott Bennett
 A couple of days ago, I reorganized the internal hard drive of my machine
to reclaim space that used to be occupied by another operating system for use
with my now exclusively FreeBSD system.  I used a stand-alone partition manager
to edit the slices down to just two slices.  I then attempted to bsdlabel the
first slice, but made a bit of a slip.  When I should have typed

bsdlabel -w ad0s1

I actually typed

bsdlabel -w da0s1

Oops.
 I went ahead with the work on the internal drive (ad0), and the system
is up and running fine.  Now I'd like to try to fix the damage done to the
external drive that I relabeled by mistake.  That drive's layout before the
damage was done was a single slice, divided into two partitions (da0s1 and
da0s2), each of which was then glabel'ed.  The moment I rewrote the bsdlabel
for the first slice by mistake, the two partitions' entries in /dev/label
vanished, of course.  I checked and discovered that the only external drive
for which I had not kept backup copies of the bsdlabel information was that
drive. :-(  Fortunately, the full backups of the file systems that I needed
to reload onto the internal drive were in the first partition of the external
drive in question (used to be s1d, now s1a for the time being), so by mounting
/dev/da0s1a I still had full access to the file system containing the backups.
 My hypothesis is if I can somehow rewrite a correct bsdlabel for the
affected slice, that the system will then recognize the glabel metadata for
the two partitions immediately, and the /dev/label entries will appear right
away like magic.  Unfortunately, without a backup file of the bsdlabel
information, I'm unsure how to accomplish that.  Is there some way that I can
discover the exact size in sectors of the first partition, so that I could
edit the bsdlabel information and redefine it as two partitions of the correct
sizes and offsets?  Is there some field in dumpfs(8) output that would give me
what I need (allowing, of course, for the fact that the first partition
is actually one sector longer than anything dumpfs(8) would know about due to
the glabel metadata in the final sector of the partition)?  Or is my hypothesis
stated above actually incorrect, and if so, why/how?
 PLEASE send any replies to ME DIRECTLY (or at least Cc: me directly)
because I receive this list in digest form and am at least a week and a half
behind on my reading. :-}  Thanks much in advance for any helpful ideas.


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


Re: help requested in fixing disk label mistake

2011-01-22 Thread Scott Bennett
 I just wrote:
 A couple of days ago, I reorganized the internal hard drive of my machine
to reclaim space that used to be occupied by another operating system for use
with my now exclusively FreeBSD system.  I used a stand-alone partition manager
to edit the slices down to just two slices.  I then attempted to bsdlabel the
first slice, but made a bit of a slip.  When I should have typed

   bsdlabel -w ad0s1

I actually typed

   bsdlabel -w da0s1

Oops.
 I went ahead with the work on the internal drive (ad0), and the system
is up and running fine.  Now I'd like to try to fix the damage done to the
external drive that I relabeled by mistake.  That drive's layout before the
damage was done was a single slice, divided into two partitions (da0s1 and
  ^
da0s2), each of which was then glabel'ed.  The moment I rewrote the bsdlabel
 ^
 Yet another pair of mistakes on my part.  Those should have said da0s1d
and da0s1e.  Sorry for any confusion.
 
for the first slice by mistake, the two partitions' entries in /dev/label
vanished, of course.  I checked and discovered that the only external drive
for which I had not kept backup copies of the bsdlabel information was that
drive. :-(  Fortunately, the full backups of the file systems that I needed
to reload onto the internal drive were in the first partition of the external
drive in question (used to be s1d, now s1a for the time being), so by mounting
/dev/da0s1a I still had full access to the file system containing the backups.
 My hypothesis is if I can somehow rewrite a correct bsdlabel for the
affected slice, that the system will then recognize the glabel metadata for
the two partitions immediately, and the /dev/label entries will appear right
away like magic.  Unfortunately, without a backup file of the bsdlabel
information, I'm unsure how to accomplish that.  Is there some way that I can
discover the exact size in sectors of the first partition, so that I could
edit the bsdlabel information and redefine it as two partitions of the correct
sizes and offsets?  Is there some field in dumpfs(8) output that would give me
what I need (allowing, of course, for the fact that the first partition
is actually one sector longer than anything dumpfs(8) would know about due to
the glabel metadata in the final sector of the partition)?  Or is my hypothesis
stated above actually incorrect, and if so, why/how?
 PLEASE send any replies to ME DIRECTLY (or at least Cc: me directly)
because I receive this list in digest form and am at least a week and a half
behind on my reading. :-}  Thanks much in advance for any helpful ideas.


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


Re: Configuration of Ath0

2011-01-22 Thread Da Rock

On 01/23/11 10:38, Hubert Chadaj wrote:

Hello,

I have a Wireless card with Atherneros chipset, a have problem with
runing wlan on mode N?
Can you halp me?

I done instalation of that with that how to:
http://www.freebsd.org/doc/handbook/network-wireless.html, and It
works on moge G.
   

Have you got an N access point?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: follow up...

2011-01-22 Thread Da Rock

On 01/23/11 11:37, Chad Perrin wrote:

On Sun, Jan 23, 2011 at 10:25:05AM +1000, Da Rock wrote:
   

On 01/23/11 07:43, Gary Kline wrote:
 

something else, probly not related to my web/dns troubles is that for
days i seem to be getting spammed with multiple copies of some mail.
these dup mail are ones that i _have_ sub'd to.  Just strange that
this mail bug happened at the same time that my bind troubles began.
   

Is it related to the threads you have been posting? You'll get
multiples of those even if others are replying to replied posts.
 

More specifically, I think it's because people tend to group-reply rather
than list-reply.

   
Actually the consensus on this list _is_ to hit reply all- some only get 
digest or are not even subscribed, so they won't receive posts only 
posted to the list. Unfortunately that can mean you can continue 
receiving replies not necessarily directly to your own posts.

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


Networking problem running inside Virtualbox

2011-01-22 Thread Rance Hall
I'm trying to track down a problem that seems to have been introduced
after FreeBSD 8.0.

I'm trying to install FreeBSD inside a virtualbox guest whose host is
a Win7 64bit box running Vbox 4.0.2

PC-BSD based on FreeBSD 8.0 works fine.  But FreeBSD 8.1 does not.

Here is what does not work means in my case.

Depending on the specific network adapter emulated in Vbox for FreeBSD
I get the following:

PC-Net II (works)
PC-Net III (no dhcp address setup)
Intel Pro/1000 MT Desktop (dhcp works, but network stack somehow does
not. No network connectivity after dhcp assignment.)
Intel Pro/1000 T Server (same as MT Desktop)
Intel Pro/1000 MT Server (same as MT Desktop)

I posted this question on the virutalbox mailing list and got a reply
from someone else who is tracking the same issue I am, but neither of
us have an answer.

Because FreeBSD 8.0 works no matter what ethernet card is simulated
and because PC-Net II still does work in 8.1, I suspect that FreeBSD
is the culprit, but I can't prove it.

All my other OSes work fine its just FreeBSD that gives me fits.

I'm willing to make this problem report better, but I don't really
understand how to debug this in the vm container.  What information
would be helpful?

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


Re: bind97 from /bar/log/messages....

2011-01-22 Thread Da Rock

On 01/23/11 14:00, Gary Kline wrote:

Can anybody spot what's messed up here and help me get back up?

 From earlier errors I added and then removed an A address label
before the IN NS ns1.thought.org ... That was the only thing I
could think of, and things still failed.

HEre is the apropos part of the log:

   

snip

Sometimes you just get to the point where you just want a 
straight-forward answer to things because you've had enough :) I'm there 
now myself, so I can relate. So...


1. Are you sure named (bind9.x's executable) is not already running? 
Usually if it is already running you would incant rndc reload.


2. You need an address record for named server host- ns1.thought.org. So 
you need in your zone file (this is taking a bit of remembering now- 
been a while since I had to edit mine... :) ):


SOA
NS ns1.thought.org. ; don't forget the period at the end
other ns/mx servers
A ip address of web server ; OPTIONAL: this will allow users to 
just enter domain and go straight to the web server. You can also simply 
CNAME hosts with the same address.
$ORIGIN thought.org. ; saves you typing - now just type in the hosts and 
domain will be auto added (again don't forget the period)

ns1A ip address of NS

That should get you out of trouble. The optional stuff makes it easier 
for your users, and for you to maintain. Don't forget to increment your 
serial :)


Now, I think you should be checking your mail server
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: lightbulb? prob'ly not, but....

2011-01-22 Thread Bernt Hansson

2011-01-23 05:07, Robert Bonomi:

Date: Sun, 23 Jan 2011 02:25:01 +0100
From: Bernt Hanssonbe...@bah.homeip.net
Subject: Re: lightbulb?  prob'ly not, but

thought.org does not resolve:


'irrelevant, and immaterial'.grin


%telnet thought.org
thought.org: hostname nor servname provided, or not known


'thought.org' does _not_ need to resolve.  it is a 'domain-name', not a 'host'.


If you want access to that host it must resolve.


'r-bonomi.com' doesn't resolve either.  but hosts _under_ that domain do.


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


My Asterisk server is trying to drive me insane

2011-01-22 Thread Da Rock
I have a FreeBSD 8.1 pf firewall, and a FreeBSD 8.1 system running 
Asterisk 1.8. I have been hammering at this for a few weeks now with 
little forward progress. I'm about to go nuts trying to figure out what 
the hell is going on.


I have set up asterisk to trunk to my provider, and originally I 
couldn't get incoming calls working but I could ring out- I'm happy to 
report I can now receive incoming calls, but annoyingly now I can't ring 
out!


In order to get incoming calls I had to upgrade from asterisk 1.4 - 1.8 
and change my firewall settings:


$voip = asterisk server
$nodephone = provider server
$voip_tcp = 5060
$voip_udp = { 5060, 4569, 5036, 2727 }

nat on $ext_if inet proto { tcp, udp } from any port $voip_tcp to any - 
($ext_if) port $voip_tcp


rdr on $ext_if inet proto { tcp, udp } from any to ($ext_if) port 
$voip_tcp - $voip port $voip_tcp
rdr on $ext_if inet proto { tcp, udp } from $voip port $voip_tcp to any 
port $voip_tcp - ($ext_if) port $voip_tcp


block log (all, log)
block in quick on $ext_if from $no_route_ips to any
block out quick on $ext_if from any to $no_route_ips

pass in $log on $ext_if inet proto tcp from any to $voip port $voip_tcp 
flags S/SA keep state
pass in $log on $ext_if inet proto udp from any to $voip port $voip_udp 
keep state
pass out $log on $int_if inet proto udp from any port $voip_udp to $voip 
port $voip_udp keep state
pass out $log on $int_if inet proto tcp from any port $voip_tcp to $voip 
port $voip_tcp flags S/SA keep state


pass out $log on $ext_if from $localnet to any

Everything appears to work, but the provider comes back with 200 and 
asterisk seems to do nothing and so it times out and errors with what it 
says is circuit busy from the provider.


tcpdump from both m/c's shows traffic to and from the asterisk server 
and the provider on port 5060, but rtp traffic (port 2+) between the 
provider and asterisk only when an incoming call comes in, and between 
asterisk and the client.


Also in the invites from asterisk to the provider it says audio at port 
5060.


Am I missing something? I've tried the Asterisk list but I've gotten 
only one miniscule reply in nearly a weeks time, and my provider will 
not support Asterisk and won't say boo (mainly dependent on who you talk 
to at the time)- the only thing I get is its working their end (yay for 
them... :P).


Incidentally, their only response (to any problems with the service: 
asterisk, ata's, whatever) is to open up all ports between our server 
and your server/ata. Apparently they automagically get around nat 
issues so nat is not necessary. But my main issue with that is what 
happens if someone spoofs their ip address? Not to mention I want to 
host this service (not their trunk, but my services) so I need to be 
able to accept from more than just their server. They don't seem to be 
able to track the ports they're using.


The only change I can tell is the upgrade to 1.8 and firewall settings 
that now allow me to receive calls- am I doomed to have only one or the 
other :( ?


Any clues before I lose all my hair guys?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org