Re: how can i use ISO-8859-1??

2008-09-10 Thread Roland Smith
On Tue, Sep 09, 2008 at 04:08:40PM -0700, Gary Kline wrote:
 On Wed, Sep 10, 2008 at 12:39:41AM +0200, Roland Smith wrote:
  On Tue, Sep 09, 2008 at 03:16:08PM -0700, Gary Kline wrote:
Because it is a hiddeous waste for most readers and writers of
English and other European languages.
  
 I also argured that utf-8 was a waste of a whole byte per char
 for most of us.
  
  That's not true. UTF-8 is a variable-length encoding. It is backwards
  compatible with ASCII, i.e. ascii characters are one byte in UTF-8 as
  well. Are you thinking about UTF-16?
 
 
   I don't know.  (Mark Twain.)  Back in the late 1990's I was
   assigned the project of converting all the utilities I had ported
   to three European languages.  Until now I had no idea there was
   anything *but* utf-16, i.e. 2-bytes/char.  

Both UTF-8 and UTF-16 are variable-width encodings. 
 
   With memory seriously getting to be dirt-cheap, wasting 8-bits
   doesn't seem that big a deal. 

Indeed.

Maybe some future wizard will
   invent a UTF-32 that will hold all ~90 000 Chinese characters and
   these will be downsized automatically to UTF-8 when you're mixing
   Mandarin with, say, Cesk [Czeck].  

UTF-32 already exists, but it's a fixed-width (4 bytes) encoding.

   Hmm, somebody just told me that aigu is not English but French
   and means acute.  ...all these years i thought ... oh well.
   Anyway, do you know if '\0351' is a 16-bit character?  is is 0xE9
   and decimal 233 and certaing should fit into a byte.   just
   wondering.

Obviously it is a 8-bit character; anything in the range 0-255 is. In
ISO 8859-1(5) it is é (e with accent aigu).

Please look up UTF-8,16,32 and ISO-8859-15 on Wikipedia for further
enlightenment.

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


pgpmTzlhyO5ig.pgp
Description: PGP signature


Re: HUAWEI G3 Modem

2008-09-10 Thread Matthias Apitz
El día Monday, September 08, 2008 a las 10:21:48PM +0200, Markus Klaschka 
escribió:

 Hey,
 I have serious problems getting that thing working.
 I followed the instructions here: 
 http://greasy.com/mustakim/huawei_220_freebsd.html
 
 Somehow I end up with:
 
Sep  8 18:20:54 jupiter kernel: ucom0: HUAWEI Technologies HUAWEI
Mobile, class 0/0, rev 1.10/0.00, addr 2 on uhub0
Sep  8 18:20:54 jupiter kernel: ucom0: Could not find interrupt in
Sep  8 18:20:54 jupiter kernel: device_attach: ucom0 attach returned 6
Sep  8 18:20:54 jupiter kernel: ucom0: HUAWEI Technologies HUAWEI
Mobile, class 0/0, rev 1.10/0.00, addr 2 on uhub0
Sep  8 18:20:54 jupiter kernel: ucom0: Could not find interrupt in
Sep  8 18:20:54 jupiter kernel: device_attach: ucom0 attach returned 6
 
 I have tried to reconnect the device about 10 times, nothing changes.
 I'm not using acpi, here on my damn ASUS laptop( never buy ASUS ;) )... 
 don't know if that makes any difference, but could I guess.
 
 Any ideas?
 
 Nazir got that thing working somehow, really would like to know how.
[quote]I'm already success using E220 HUAWEI to data connection but 
 still failed to send sms using smstool. Please help..TQ[/quote]

Some weeks ago Vodafone provided me with a test item (but they asked me
to return it) and it worked without problems; details here:

http://www.unixarea.de/installEeePC.txt

in chapter 7;

matthias

-- 
Matthias Apitz
Manager Technical Support - OCLC 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.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
We should all learn from the peoples of The Netherlands, France and Ireland.
Aprendamos todos de los pueblos de Holanda, Francia e Irlanda.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kde3 build problems

2008-09-10 Thread Jonathan McKeown
On Wednesday 10 September 2008 06:55:18 joeb wrote:
 I believe kde3 is obsolete.  I Just did kde4 and it worked.


That's most definitely not the case. KDE4 is still for early adopters, and 
KDE3 will continue to be supported as the ``conservative'' stable version for 
a while, according to http://www.kde.org/download/.

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


Re: HUAWEI G3 Modem

2008-09-10 Thread Edwin Groothuis
See http://www.mavetju.org/weblog/html/cat_Huawei_E220.html
and http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/118686

-- 
Edwin Groothuis  |Personal website: http://www.mavetju.org
[EMAIL PROTECTED]|  Weblog: http://www.mavetju.org/weblog/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: safest way to upgrade a production server

2008-09-10 Thread DA Forsyth
On 8 Sep 2008 , [EMAIL PROTECTED] entreated about
 freebsd-questions Digest, Vol 232, Issue 3:

  FreeBSD ***servername*** 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #1:
  Mon Dec  3 09:46:53 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/
  src/sys/INET_ON  amd64
 
  oooh, that is a bit old I think.
 
 I chose this server as an example, because it's the oldest one. I  
 didn't install the OS on this server, the vendor did. Not sure why  
 they chose a prerelease version... perhaps 6.3 was almost ready to go  
 and they wanted to put us on the 6.3 branch? I don't know.

maybe 6.3 had the drivers for the motherboard?   I had that - I 
purchased a nice shiny newmotherbaord in 2007 but could not use it 
before 7.0R came out as the chips were not supported by 6.x.  I chose 
not to use a CURRENT or RC version of 7, but to just wait.

 Anyway, I guess what I should do is patch this to the latest 6.3  
 version?

yes.

 Or should I go to the latest 6.x version? I am pretty sure I don't  
 want to experiment with a 7.x upgrade.

6.3 is the latest 6 verison (-:


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


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


Re: freebsd 7.0 and jail

2008-09-10 Thread Primeroz lists
Make sure your buildworld /usr/obj is updated. Good idea is to erase your
/usr/obj and buildworld again before going on with the jails.

fc

On Mon, Sep 8, 2008 at 7:28 PM, gahn [EMAIL PROTECTED] wrote:

 Hello:

 I am trying to build jails on 7.0 system and got errors:

 /

  Installing everything
 --
 cd /usr/src; make -f Makefile.inc1 install
 === share/info (install)
 === lib (install)
 === lib/csu/i386-elf (install)
 gcc -O2 -fno-strict-aliasing -pipe  -I/usr/src/lib/csu/i386-elf/../common
  -I/usr/src/lib/csu/i386-elf/../../libc/include -Wsystem-headers -Wall
 -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
 -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual
 -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter
 -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
 -Wno-pointer-sign -c crt1.c
 gcc:No such file or directory
 *** Error code 1

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

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

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

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

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

 ///

 looks like the code of jail is broken, did anyone have similar problem?

 I am working in an environment that is able to use freebsd-update script.

 Thanks in Advance





 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 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]


Sudden Inability To Use SQL

2008-09-10 Thread Marcel Grandemange
Ok this is difficult to explain, but I have a FreeBSD7 server that has many
components that connect to a remote mysql db for.

Raduis/Mail and a few web sites.

 

Recently with nothing changed..

 

Radius can no longer work cause it cannot contact sql server.

Web sites bomb out with sql errors. (This is occasional, sometimes they do
work)

Etc..

 

 

Now the server can telnet into the remote port of the mysql server, and I
can verify that it is working correctly as applications on the db server
itself that use the db operate as normal.

 

 

I had a look at the server status to see mysql connections.

 

There are many  stated as unauthenticated user with command connect
state login coming from the server in question , but none that's actually
connected.

 

 

Ive done a portupgrade on mysql client on box in question as well as php5
and php5-mysql to see if that helped anything with anything!

 

 

Please HELP!

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


problem using multiple monitors with gnome on FreeBSD 7

2008-09-10 Thread Derek Ragona
I did a new install of 7.0 on a system equipped with an nvidia 4 video port 
card with just two monitors attached.


Xorg --configure worked fine, and setup xorg.conf correctly for both 
monitors.


When I bring up X with gnome as root, both screens get used just 
fine.  However when I bring up X with gnome as a regular user only one 
screen is used.  So the problem appears permission related but I'm sure 
could be a configuration error as well.


So if anyone has any advise on how to fix this, or where to look, I'd 
appreciate any guidance.


Thanks,


-Derek
[EMAIL PROTECTED]



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

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


Re: portmanager errors

2008-09-10 Thread Gerard
On Tue, Sep 9, 2008 at 11:04 PM, gahn [EMAIL PROTECTED] wrote:
 Hello:

 I run into errors when i run portmanager -u:

 00344 luit-1.0.2_2 /x11/luit
 Makefile, line 85: Could not find 
 /usr/ports/x11/xorg-clients/../../x11-servers/xorg-server/Makefile.inc
 Makefile, line 92: Malformed conditional (${X_WINDOW_SYSTEM:L} != xorg)
 Makefile, line 96: if-less endif
 make: fatal errors encountered -- cannot continue
 MGdbAdd error: attempt to place null data into record halted
 Assertion failed: (0), function MGdbAdd, file MGdbAdd.c, line 78.
 Abort (core dumped)

 could the portmanager bypass the failed luit and continue the next one?

First, what version of 'portmanger' are you using? If not 0.4.1_9,
then update. Did you insure that you updated your ports tree just
prior to running portmanager?

After checking the above, try running portmanager like this:

 portmanager -u -l -p -y

See if that corrects the problem.


-- 
Gerard
[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: Exiting Gnome

2008-09-10 Thread Glen Barber
On Tue, Sep 9, 2008 at 1:08 AM, FBSD1 [EMAIL PROTECTED] wrote:
 Started Gnome for first time. Can not figure how to exit (stop) gnome and
 return to the FreeBSD command line. The System/logout option just hangs.

How are you starting Gnome? Through rc.d or through 'startx'?

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


Capturing tar output

2008-09-10 Thread jhall
Ladies and Gentlemen,

I am using the following command to perform backups each evening.

/usr/local/gtar/bin/tar -C /usr/home/photos --listed-incremental \
/var/db/photos.snar -cvf - ./ | /usr/local/bin/gpg --encrypt --recipient \
recipient | dd of=/dev/nsa0 obs=128K

Since I am having tar write the output of the command to stdout is it
possible  to capture the names of the files being displayed as a result of
the -v option?

If so, how can this be done?  I am not having any luck.

Thanks,


Jay




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


Re: freebsd 7.0 and jail

2008-09-10 Thread gahn
thanks for the advice. 

it worked out after i did make world ... first, then make installworld ... 
it doesn't work if one just do make installworld ...

best


--- On Wed, 9/10/08, Primeroz lists [EMAIL PROTECTED] wrote:

 From: Primeroz lists [EMAIL PROTECTED]
 Subject: Re: freebsd 7.0 and jail
 To: [EMAIL PROTECTED]
 Cc: free bsd [EMAIL PROTECTED], freebsd general questions 
 freebsd-questions@freebsd.org
 Date: Wednesday, September 10, 2008, 1:51 AM
 Make sure your buildworld /usr/obj is updated. Good idea is
 to erase your
 /usr/obj and buildworld again before going on with the
 jails.
 
 fc
 
 On Mon, Sep 8, 2008 at 7:28 PM, gahn
 [EMAIL PROTECTED] wrote:
 
  Hello:
 
  I am trying to build jails on 7.0 system and got
 errors:
 
  /
 
   Installing everything
 
 --
  cd /usr/src; make -f Makefile.inc1 install
  === share/info (install)
  === lib (install)
  === lib/csu/i386-elf (install)
  gcc -O2 -fno-strict-aliasing -pipe 
 -I/usr/src/lib/csu/i386-elf/../common
   -I/usr/src/lib/csu/i386-elf/../../libc/include
 -Wsystem-headers -Wall
  -Wno-format-y2k -W -Wno-unused-parameter
 -Wstrict-prototypes
  -Wmissing-prototypes -Wpointer-arith -Wreturn-type
 -Wcast-qual
  -Wwrite-strings -Wswitch -Wshadow -Wcast-align
 -Wunused-parameter
  -Wchar-subscripts -Winline -Wnested-externs
 -Wredundant-decls
  -Wno-pointer-sign -c crt1.c
  gcc:No such file or directory
  *** Error code 1
 
  Stop in /usr/src/lib/csu/i386-elf.
  *** Error code 1
 
  Stop in /usr/src/lib.
  *** Error code 1
 
  Stop in /usr/src.
  *** Error code 1
 
  Stop in /usr/src.
  *** Error code 1
 
  Stop in /usr/src.
  *** Error code 1
 
  ///
 
  looks like the code of jail is broken, did anyone have
 similar problem?
 
  I am working in an environment that is able to use
 freebsd-update script.
 
  Thanks in Advance
 
 
 
 
 
  ___
  [EMAIL PROTECTED] mailing list
 
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
  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]


branches, updates, buildworld

2008-09-10 Thread relay.lists

Hi,

I'm new to FreeBSD and I'd like to give it a try as a PostgreSQL test
server on an ancient box.

Since I have a lot to learn about this OS, I chose FreeBSD-7.0-RELEASE.
(It's the most current production-ready release now, right?).

On the other hand I'd like to make every possible speed improvement,
because the CPU is [EMAIL PROTECTED] So, my questions are:

1) After reading the docs I remained with the impression that sources
should be updated for -current and -stable branches only. Is this
correct?

2) If I'm wrong about (1) how should I update the -release sources in
order to make buildworld with additional gcc optimisations?

3) make buildworld re-compiles _everything_ or the base system only?

4) Will make buildworld fail with a make.conf like this:


PERL_VER=5.8.8
PERL_VERSION=5.8.8
BDECFLAGS=-march=pentium2 -mmmx -pipe -O3 -fomit-frame-pointer \
-combine -fno-strict-aliasing

CFLAGS+=${BDECFLAGS}
CXXFLAGS=${CFLAGS}
COPTFLAGS=-march=pentium2 -mmmx -pipe -O3 -fomit-frame-pointer \
-combine -fno-strict-aliasing

BOOTWAIT=3000
DOC_LANG=en
NO_SHAREDOCS=True

WITHOUT_MODULES=INET6 zfs wlan firewire lpt joy iscsi cpufreq coda \
coda5 3dfx acpi unionfs ilpt srv4 smbfs reiserfs pccard palm uscanner \
xfs audiocs emu10k1 fm801 neomagic t4dwave cmi emu10kx hda sb16 uaudio \
 ad1816 cs4281 envy24 ich sb8 via8233 als4000 csa envy24ht maestro \
via82c686 atiixp driver es137x maestro3 solo vibes au88x0 ds1 mss \
spicds

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


Re: Capturing tar output

2008-09-10 Thread Tom Marchand
Trying using tee something like this:

/usr/local/gtar/bin/tar -C /usr/home/photos --listed-incremental \
 /var/db/photos.snar -cvf - ./ |tee outfile| /usr/local/bin/gpg --encrypt 
--recipient \
 recipient | dd of=/dev/nsa0 obs=128K



 -- Original message --
From: [EMAIL PROTECTED]
 Ladies and Gentlemen,
 
 I am using the following command to perform backups each evening.
 
 /usr/local/gtar/bin/tar -C /usr/home/photos --listed-incremental \
 /var/db/photos.snar -cvf - ./ | /usr/local/bin/gpg --encrypt --recipient \
 recipient | dd of=/dev/nsa0 obs=128K
 
 Since I am having tar write the output of the command to stdout is it
 possible  to capture the names of the files being displayed as a result of
 the -v option?
 
 If so, how can this be done?  I am not having any luck.
 
 Thanks,
 
 
 Jay
 
 
 
 
 ___
 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: safest way to upgrade a production server

2008-09-10 Thread John Almberg


maybe 6.3 had the drivers for the motherboard?   I had that - I
purchased a nice shiny newmotherbaord in 2007 but could not use it
before 7.0R came out as the chips were not supported by 6.x.  I chose
not to use a CURRENT or RC version of 7, but to just wait.



Possibly... the motherboard is an Intel S5000PAL, with dual quad-core  
processors. I think it was pretty cutting edge when they started  
building it, about a year ago. It's still an amazing machine, IMHO.  
Of course, that might be because my life sort of depends on keeping  
it working :-)



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


optical drives with freebsd 6.3

2008-09-10 Thread gahn
Hello, all

I am having problems to mount my dvdrom drives on dell precision 490. in the 
file /etc/fstab, i removed option noauto from the line:

/dev/acd0/cdrom cd9660 ro,noauto  0   0
/dev/acd1/cdrom1cd9660 ro,noauto  0   0

after i rebooted the machine and i am still not able to see the contents of 
cdroms with cmd ls -al /cdrom.

so i did:

#mount -a
mount_cd9660: /dev/acd0: Invalid argument
mount_cd9660: /dev/acd0: Input/output error
#

on the root console, i saw console error message:

#g_vfs_done():acd1[READ(offset=32768, lenth=2048)]error = 5

i have nothing in /cdrom1.

any ideas?

thanks.





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


Re: Why the extra shells?

2008-09-10 Thread Paul Chvostek
Hi John,

On Mon, Sep 01, 2008 at 08:43:49AM -0400, John Almberg wrote:
 
 This is my main concern at the moment... I am wondering if I killed  
 off an essential process when I killed off those shells...

Probably not.  Your `ps` output was:

  [on:~] ps
PID  TT  STAT  TIME COMMAND
  30350  p0  Ss 0:00.03 -bash (bash)
  30761  p0  R+ 0:00.00 ps
  99069  p1  Is+0:00.01 /usr/local/bin/bash
  79966  p3  Is 0:00.01 /usr/local/bin/bash
  27050  p4  Is+0:00.01 /usr/local/bin/bash
  45342  p5  Is+0:00.01 /usr/local/bin/bash

The fact that your shells all have a small TIME column indicates that
they're not very active.  This is a good thing.

The I under STAT means it's an idle process, and the fact that it's
attached to a tty means it was started on a terminal.  The ones with a
+ are foreground processes on their ttys.  I'd guess that these could
be shells processes that were never killed off when their terminals were
closed, but you can find out a little more about them, once you get some
more of them showing up.

`ps Olstart` will show you the date/time that a process was started.
You can compare this to the output of `last` to see if the dates and
ttys match up with your logins.

If they don't match up, they're probably not login shells, and more
investigation is required, possibly by using things like `ps uwwtp1` for
the shell on p1.  This will give you ALL the processes on that TTY,
including anything that might have been launched by bash (and therefore
possibly subject to a HUP sent by the shell as you kill it).

p

-- 
  Paul Chvostek [EMAIL PROTECTED]
  it.canadahttp://www.it.ca/

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


Re: branches, updates, buildworld

2008-09-10 Thread Todor Genov



[EMAIL PROTECTED] wrote:
 Hi,
 
 I'm new to FreeBSD and I'd like to give it a try as a PostgreSQL test
 server on an ancient box.
 
 Since I have a lot to learn about this OS, I chose FreeBSD-7.0-RELEASE.
 (It's the most current production-ready release now, right?).
 
 On the other hand I'd like to make every possible speed improvement,
 because the CPU is [EMAIL PROTECTED] So, my questions are:
 
 1) After reading the docs I remained with the impression that sources
 should be updated for -current and -stable branches only. Is this
 correct?

 The STABLE and CURRENT branch are works-in-progress and change daily,
thus if you wish to follow them you need to update your sources quite
frequently.

 The only time the RELEASE branch changes (and needs to be updated) is
when security and bug fixes are applied to the current source tree -
these are known as RELEASE-p? versions. You can follow these updates at
http://security.freebsd.org/advisories and on the
freebsd-security-notifications mailing list.

 2) If I'm wrong about (1) how should I update the -release sources in
 order to make buildworld with additional gcc optimisations?

make buildworld in /usr/src will  compile whatever sources you have in
the directory. Whether the compiled code is optimized depends on what
you put in /etc/make.conf

 If you haven't done a cvsup since your installation then you have the
7.0-RELEASE source  which was on the CD.

 If you want to obtain the latest 7.0-RELEASE-p? source you need to
cvsup with tag=RELENG_7_0 in the cvsup config file. Thereafter you do a
buildworld/installworld (and buildkernel/installkernel) which will then
 give you the latest -RELEASE version (7.0-RELEASE-p4 if I am not mistaken).

 Similarly tag=RELENG_7 will fetch the -STABLE branch and tag=. will
fetch the -CURRENT branch, but you should probably stick with RELENG_7_0

 
 3) make buildworld re-compiles _everything_ or the base system only?

 It recompiles the base system. For updates to packages installed from
ports look at portupgrade.

 
 4) Will make buildworld fail with a make.conf like this:
 
 
 PERL_VER=5.8.8
 PERL_VERSION=5.8.8
 BDECFLAGS=-march=pentium2 -mmmx -pipe -O3 -fomit-frame-pointer \
 -combine -fno-strict-aliasing
 
 CFLAGS+=${BDECFLAGS}
 CXXFLAGS=${CFLAGS}
 COPTFLAGS=-march=pentium2 -mmmx -pipe -O3 -fomit-frame-pointer \
 -combine -fno-strict-aliasing
 
 BOOTWAIT=3000
 DOC_LANG=en
 NO_SHAREDOCS=True
 
 WITHOUT_MODULES=INET6 zfs wlan firewire lpt joy iscsi cpufreq coda \
 coda5 3dfx acpi unionfs ilpt srv4 smbfs reiserfs pccard palm uscanner \
 xfs audiocs emu10k1 fm801 neomagic t4dwave cmi emu10kx hda sb16 uaudio \
  ad1816 cs4281 envy24 ich sb8 via8233 als4000 csa envy24ht maestro \
 via82c686 atiixp driver es137x maestro3 solo vibes au88x0 ds1 mss \
 spicds
 

Seems OK on first inspection. Guess you won't know till you run the
buildworld :)



Regards,

Todor Genov
Systems Operations

Verizon Business South Africa (Pty) Ltd

[EMAIL PROTECTED]
Tel: +27 11 235 6500
Fax: 086 692 0543

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


Configure 2 gateways on a freebsd box for 2 interfaces

2008-09-10 Thread The Noob
Hello all,

I have a small question.
I have two interface in two vlans.
The first interface 192.168.0.1 255.255.255.0
The second interface: 10.228.44.1 255.255.255.0
The gateway for the first interface must be 192.168.0.254 and the second
interface must be 10.228.44.254
How can I configure them? In rc.conf we have just defaultrouter but we can't
specify the interface.
Thanks for your help
Best Regads
TheNoob
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configure 2 gateways on a freebsd box for 2 interfaces

2008-09-10 Thread Bill Moran
In response to The Noob [EMAIL PROTECTED]:

 Hello all,
 
 I have a small question.
 I have two interface in two vlans.
 The first interface 192.168.0.1 255.255.255.0
 The second interface: 10.228.44.1 255.255.255.0
 The gateway for the first interface must be 192.168.0.254 and the second
 interface must be 10.228.44.254
 How can I configure them? In rc.conf we have just defaultrouter but we can't
 specify the interface.

I'm curious as to why you would want to do this, since that will affect
the answer.

If those interfaces lead to different networks, then you should add
static routes as appropriate.

If they are alternate routes, then you should probably run something like
RIP to automatically update the routing table.

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


Re: branches, updates, buildworld

2008-09-10 Thread Lister Notifies
On 9/10/08, Todor Genov [EMAIL PROTECTED] wrote:

  [EMAIL PROTECTED] wrote:
   Hi,

--snip--

  1) After reading the docs I remained with the impression that sources
   should be updated for -current and -stable branches only. Is this
   correct?

  The STABLE and CURRENT branch are works-in-progress and change daily,
  thus if you wish to follow them you need to update your sources quite
  frequently.

   The only time the RELEASE branch changes (and needs to be updated) is
  when security and bug fixes are applied to the current source tree -
  these are known as RELEASE-p? versions. You can follow these updates at
  http://security.freebsd.org/advisories and on the
  freebsd-security-notifications mailing list.


   2) If I'm wrong about (1) how should I update the -release sources in
   order to make buildworld with additional gcc optimisations?


 make buildworld in /usr/src will  compile whatever sources you have in
  the directory. Whether the compiled code is optimized depends on what
  you put in /etc/make.conf

   If you haven't done a cvsup since your installation then you have the
  7.0-RELEASE source  which was on the CD.

   If you want to obtain the latest 7.0-RELEASE-p? source you need to
  cvsup with tag=RELENG_7_0 in the cvsup config file. Thereafter you do a
  buildworld/installworld (and buildkernel/installkernel) which will then
   give you the latest -RELEASE version (7.0-RELEASE-p4 if I am not mistaken).


Thank you! Exactly what I wanted to know.

   Similarly tag=RELENG_7 will fetch the -STABLE branch and tag=. will
  fetch the -CURRENT branch, but you should probably stick with RELENG_7_0


Nope, it's too soon for me to deal with moving targets. So, I guess I
need the rock-stable
version until I get familiar with the OS.

  
   3) make buildworld re-compiles _everything_ or the base system only?


  It recompiles the base system. For updates to packages installed from
  ports look at portupgrade.

OK. It brings another question. For example Postgres is not a part of
the base system. Will it break if i make:
##
pkg_add -r postgresql83-server.tbz
cvsup /usr/share/examples/cvsup/standard-supfile
make buildworld
make buildkernel
make installkernel
reboot (in single mode)
mergemaster -p
make installworld
mergemaster
reboot
##

...And what should I do if Postgres (or any other arbitrary binary
package) breaks afterwards? How should I keep the binary packages
up-todate? Actually I intend to
compile Postgres from the ports after success in re-building and
installing the base system, but the question still remains.


  
   4) Will make buildworld fail with a make.conf like this:

 Seems OK on first inspection. Guess you won't know till you run the
  buildworld :)

I was kind of hoping not to figure out the optimal combination of gcc
flags by following the generate and test method on Pentium-2. :)

Last but not least: Thanks for the fast and detailed response. I
appreciate it very much.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kldxref: file isn't dynamically-linked^M -- TECRA

2008-09-10 Thread freebsd_user

Chris Hill wrote:

On Wed, 10 Sep 2008, Polytropon wrote:

[snip]


I'm sure you noticed the Ctrl-M (^M) at the ends of each line.
This seems to be an MS-DOS-like line break (ASCII 0x13 + 0x10).
UNIX (and so FreeBSD) use the NL or LF character 0x10. And 0x13
is the CR character which is equivalent to Ctrl-M, if I do
remember correctly.


Almost correctly. ASCII CR (Ctrl-M) is 0x0d, which is decimal 13; ASCII 
LF (Ctrl-J or newline) is 0x0a, which is decimal 10.


Sorry for the off-topic pedantry.

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


While I do appreciate your efforts, both of you gentlemen did not 
address the issue at hand.  I have found what was needed to either fix 
or work around the topic of discussion at this URL: 
http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2007-10/msg00314.html


Unfortunately for me, I'm not subscribed to nor did I search the other 
FreeBSD mail list for this particular issue as I don't run 'stable' or 
'-Current'.


For anyone else reading this thread and/or bumping in to this problem, 
use the above URL or link to bring closure.

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


Last Chance to Register for Tomorrow's Connect Webcast

2008-09-10 Thread Connect HQ

   GET CONNECTED ONLINE
   [1]myCommunity
   [2]Chapters
   [3]Special Interest Groups
   [4]Community Voice
   [5]Events

   If you would like to opt-out of all future Connect e-mail
   correspondence, please send an e-mail with opt-out in the subject
   line to [EMAIL PROTECTED]

   Dear ,

   [7]Register for the following September Webcasts and make the most of
   Connect's educational offerings this month:
 * Thursday, 11 September 2008, 10:00 a.m. CDT
   [8]Insight Dynamics VSE, HP's Management Solution for Server
   Virtualization 
   Speaker: Bradford Nichols, HP
   Sponsored by:
   
 * Wednesday, 24 September 2008, 11:00 a.m. CDT
   [9]HP-UX 11i v3 - Why Move? 
   Speaker: Martin Whittaker, Director of Engineering in the Business
   Critical Systems Division, HP

   If you have any questions, please contact
   [EMAIL PROTECTED]

   Connect Headquarters
   401 North Michigan Avenue, Suite 2200, Chicago, Illinois 60611 |
   Phone: +1.312.321.6803 | Fax: +1.312.673.6926
   [EMAIL PROTECTED] | [12]www.connect-community.org

References

   Visible links
   1. http://lists.connect-community.org/t/743274/27675213/52260/0/
   2. http://lists.connect-community.org/t/743274/27675213/52175/0/
   3. http://lists.connect-community.org/t/743274/27675213/52176/0/
   4. http://lists.connect-community.org/t/743274/27675213/52177/0/
   5. http://lists.connect-community.org/t/743274/27675213/52178/0/
   6. mailto:[EMAIL PROTECTED]
   7. http://lists.connect-community.org/t/743274/27675213/52786/0/
   8. http://lists.connect-community.org/t/743274/27675213/52788/0/
   9. http://lists.connect-community.org/t/743274/27675213/52789/0/
  10. mailto:[EMAIL PROTECTED]
  11. mailto:[EMAIL PROTECTED]
  12. http://lists.connect-community.org/t/743274/27675213/52180/0/

   Hidden links:
  13. http://lists.connect-community.org/t/743274/27675213/52179/0/
  14. http://lists.connect-community.org/t/743274/27675213/52795/0/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configure 2 gateways on a freebsd box for 2 interfaces

2008-09-10 Thread Christopher Cowart
The Noob wrote:
 I have a small question.
 I have two interface in two vlans.
 The first interface 192.168.0.1 255.255.255.0
 The second interface: 10.228.44.1 255.255.255.0
 The gateway for the first interface must be 192.168.0.254 and the second
 interface must be 10.228.44.254
 How can I configure them? In rc.conf we have just defaultrouter but we can't
 specify the interface.

I'm guessing you want the gateway to be chosen based on the source
address, correct? The kernel does not support routing based on the
source address.

I use ipfw and fwd rules to achieve this:

ipfw add fwd 10.228.44.254 ip from 10.22.44.1 to not 10.22.44.0/24

Then you can leave the default_gateway as 192.168.0.254.

You might need IPFIREWALL_FORWARD in your kernel config. See ipfw(8).

-- 
Chris Cowart
Network Technical Lead
Network  Infrastructure Services, RSSP-IT
UC Berkeley


pgpiKYKLmOr9K.pgp
Description: PGP signature


Re: branches, updates, buildworld

2008-09-10 Thread Kevin Kinsey

Lister Notifies wrote:


Nope, it's too soon for me to deal with moving targets. So, I guess I
need the rock-stable
version until I get familiar with the OS.


I'll agree with rock-stable as it relates to FBSD;
however, realize that the -STABLE tag mostly refers
to the fact that the developers aren't allowed to make
sweeping changes to subsystems/API's without permission
from a consensus of developers and perhaps even 
notification of the userbase.  It's not a guarantee of

usability, etc.  As noted, RELENG is what you want for
now; it's never going to be changed for the sake of a
feature, only for security related patching.


  3) make buildworld re-compiles _everything_ or the base system only?

 It recompiles the base system. For updates to packages installed from
 ports look at portupgrade.


OK. It brings another question. For example Postgres is not a part of
the base system. Will it break if i make:
##
pkg_add -r postgresql83-server.tbz
cvsup /usr/share/examples/cvsup/standard-supfile
make buildworld
make buildkernel
make installkernel
reboot (in single mode)
mergemaster -p
make installworld
mergemaster
reboot
##

...And what should I do if Postgres (or any other arbitrary binary
package) breaks afterwards? How should I keep the binary packages
up-todate? Actually I intend to
compile Postgres from the ports after success in re-building and
installing the base system, but the question still remains.


First, let me hopefully give you a little comfort, that as
long as you're only tracking a RELENG branch, this (breakage
of a port) will Hardly Ever Happen(tm).

I think another poster already pointed you to portupgrade
(which is well-known in the community and perhaps even mentioned
in the official FBSD Docs, although it's a port itself ...
take a gander at /usr/ports/port-mgmt for an idea of what's
there to manage your ports.

Now, let me caution you that updating the *ports* is more
likely to cause issues than the updating of the base system.
If you, for example, happen to upgrade expat or something
basic to a bunch of ports, things can go pretty haywire until
everything's back up-to-date.  But, then again, that's what
the ports-mgmt tools are supposed to help with.

snip


Last but not least: Thanks for the fast and detailed response. I
appreciate it very much.


Well, welcome to *the* community.  FBSD's community is often that
way.

Kevin Kinsey
--
In every hierarchy the cream rises until it sours.
-- Dr. Laurence J. Peter
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: branches, updates, buildworld

2008-09-10 Thread Todor Genov
 OK. It brings another question. For example Postgres is not a part of
 the base system. Will it break if i make:
 ##
 pkg_add -r postgresql83-server.tbz
 cvsup /usr/share/examples/cvsup/standard-supfile
 make buildworld
 make buildkernel
 make installkernel
 reboot (in single mode)
 mergemaster -p
 make installworld
 mergemaster
 reboot
 ##

 The pre-compiled binary depends on certain system calls and library
APIs to function. As long as those don't change the binary will continue
to work. It's highly unlikely to have any such changes occur between
RELEASE-p? versions unless they are extremely critical updates. In fact
in most cases you will probably find that your binary will continue to
work between RELEASE versions (7.0, 7.1 etc).

 We trust the developers won't go and and change libc without giving us
a heads-up, but you should still read the changelog before upgrading the
base system and know what to expect.

 
 ...And what should I do if Postgres (or any other arbitrary binary
 package) breaks afterwards? How should I keep the binary packages
 up-todate? Actually I intend to
 compile Postgres from the ports after success in re-building and
 installing the base system, but the question still remains.

 You can always reinstall it from ports which will compile and link
software according to your existing environment.

 To manage already installed packages you can use portaudit and
portupgrade both of which can be found in the ports tree as well as the
pkg_* tools included in the base system.

   4) Will make buildworld fail with a make.conf like this:

 Seems OK on first inspection. Guess you won't know till you run the
  buildworld :)
 
 I was kind of hoping not to figure out the optimal combination of gcc
 flags by following the generate and test method on Pentium-2. :)

 Take a look at /usr/share/examples/etc/make.conf and use that as your
starting point if you haven't already done so. Most of your options seem
to be in line with the recommended defaults except maybe -combined - I
have no idea how it will affect the build. I would use -O2 rather than
-O3 as there's a good chance you'll end up with broken code rather than
any noticeable performance gains.

 
 Last but not least: Thanks for the fast and detailed response. I
 appreciate it very much.

Glad I could be of help.

Regards,

Todor Genov
Systems Operations

Verizon Business South Africa (Pty) Ltd

Tel: +27 11 235 6500
Fax: 086 692 0543
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Capturing tar output

2008-09-10 Thread Wojciech Puchar


I am using the following command to perform backups each evening.

/usr/local/gtar/bin/tar -C /usr/home/photos --listed-incremental \
/var/db/photos.snar -cvf - ./ | /usr/local/bin/gpg --encrypt --recipient \
recipient | dd of=/dev/nsa0 obs=128K

Since I am having tar write the output of the command to stdout is it
possible  to capture the names of the files being displayed as a result of
the -v option?

If so, how can this be done?  I am not having any luck.


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


Re: Capturing tar output

2008-09-10 Thread Wojciech Puchar


/usr/local/gtar/bin/tar -C /usr/home/photos --listed-incremental \
/var/db/photos.snar -cvf - ./ |tee outfile| /usr/local/bin/gpg --encrypt 
--recipient \
recipient | dd of=/dev/nsa0 obs=128K


this will duplicate data, not filenames





-- Original message --
From: [EMAIL PROTECTED]

Ladies and Gentlemen,

I am using the following command to perform backups each evening.

/usr/local/gtar/bin/tar -C /usr/home/photos --listed-incremental \
/var/db/photos.snar -cvf - ./ | /usr/local/bin/gpg --encrypt --recipient \
recipient | dd of=/dev/nsa0 obs=128K

Since I am having tar write the output of the command to stdout is it
possible  to capture the names of the files being displayed as a result of
the -v option?

If so, how can this be done?  I am not having any luck.

Thanks,


Jay




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


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



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


Re: branches, updates, buildworld

2008-09-10 Thread Pieter de Goeje
On Wednesday 10 September 2008, [EMAIL PROTECTED] wrote:
 4) Will make buildworld fail with a make.conf like this:

 
 PERL_VER=5.8.8
 PERL_VERSION=5.8.8
 BDECFLAGS=-march=pentium2 -mmmx -pipe -O3 -fomit-frame-pointer \
 -combine -fno-strict-aliasing

 CFLAGS+=${BDECFLAGS}
 CXXFLAGS=${CFLAGS}
 COPTFLAGS=-march=pentium2 -mmmx -pipe -O3 -fomit-frame-pointer \
 -combine -fno-strict-aliasing

Setting COPTFLAGS is discouraged, because you risk breaking the kernel. In 
particular, the kernel can not use any floating point operations including 
simd operations, which you explicitly enable above. May I suggest that you 
first try to rebuild the base system without any CFLAGS set but simply 

CPUTYPE?=pentium2

Note that by default the system is build with -O2 -fno-strict-aliasing -pipe. 

-- 
Pieter de Goeje

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


Re: Configure 2 gateways on a freebsd box for 2 interfaces

2008-09-10 Thread Tom Marchand

You should be able to use the route command.


On Sep 10, 2008, at 1:05 PM, The Noob wrote:


Hello all,

I have a small question.
I have two interface in two vlans.
The first interface 192.168.0.1 255.255.255.0
The second interface: 10.228.44.1 255.255.255.0
The gateway for the first interface must be 192.168.0.254 and the  
second

interface must be 10.228.44.254
How can I configure them? In rc.conf we have just defaultrouter but  
we can't

specify the interface.
Thanks for your help
Best Regads
TheNoob
___
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: mail server DNS configuration questions

2008-09-10 Thread Andrew Falanga

Patrick Mahan wrote:



Andrew Falanga presented these words - circa 9/6/08 6:28 PM-

Hi,

Well, my clients at church are still having issues and after working 
with George, a respondant to my original questions, I think that 
most, if not all, of my problems are related to DNS and how we've got 
it improperly configured.


First, a crude drawing of how our mail server exists in the world:

192.168.2.x/24   72.24.23.252  lot's of networks
Private Network -- CableOne -- Internet

Now, our mail server's IP is 192.168.2.23.  On the router, he (the 
person at whose house the mail server is) has IP forwarding setup so 
that mail get's sent to our FreeBSD machine.  Using dig, here's the 
responses:


(from my FBSD machine at home, not the server)
[/usr/home/andy]
- dig +short -t MX whitneybaptist.org
10 mail.whitneybaptist.org.
[/usr/home/andy]
- dig +short -t A whitneybaptist.org
72.24.34.252
[/usr/home/andy]
- dig +short -x 72.24.34.252
34-252.72-24-cpe.cableone.net.

(from the church FBSD machine)
[/home/afalanga]
- hostname
whitbap
[/home/afalanga]
- ifconfig fxp0
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet 192.168.2.23 netmask 0xff00 broadcast 255.255.255.255
ether 00:d0:b7:74:87:48
media: Ethernet autoselect (100baseTX full-duplex)
status: active
[/home/afalanga]
- cat /etc/resolv.conf
search McCutchanLAN
nameserver 192.168.2.1


It doesn't take a rocket scientist, or a computer scientist, to 
figure out we've got DNS issues.  I'm thinking that I should setup a 
domain within the 192.168.2.0/24 network on this box.  I've done this 
before, at work.  The question I've got is I've never actually 
integrated a domain like this to a domain on the Internet.  I'm 
thinking that we'll setup something like: internal.whitneybaptist.org 
with hosts in that sub-domain.





First, what are you trying to accomplish with the internal DNS?  Make 
it easier to
resolve machines in the 192.168.2.0 network?  Allow lookups external 
of the
192.168.2.0 network?  What machine is 'mail.whitneybaptist.com'?  Is 
it on the

192.168.2.0 network?  Is it reachable from the Internet?

Who is the owner of whitneybaptist.org DNS zone?  I show the following 
NS servers:


[EMAIL PROTECTED]/src/MPS/DocDownload 140  dig +short -t NS 
whitneybaptist.org

ns1.domaindirect.com.
ns2.domaindirect.com.
ns3.domaindirect.com.

Which is administered by tucows.com (Tucows, Inc) a seller of DNS 
services.


So, what would my DNS tables need to look like to make this happen.  
Also, to any knowledgable souls here, what RFCs address these issues?




You can read the RFC's if you want, but you would be better served to 
purchase
DNS and BIND, Fourth Edition, by Paul Albitz  Cricket Liu to learn 
how to

administer DNS.

Patrick


It's been quite some time since I last looked at that book.  It was at 
edition 3 then, and owned by the company I worked for so I didn't get to 
keep it.  I'll have to look into it.


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


Re: mail server DNS configuration questions

2008-09-10 Thread Andrew Falanga

George Davidovich wrote:

On Sat, Sep 06, 2008 at 07:28:28PM -0600, Andrew Falanga wrote:
  
Well, my clients at church are still having issues and after working with 
George, a respondant to my original questions, I think that most, if not all, 
of my problems are related to DNS and how we've got it improperly configured.


First, a crude drawing of how our mail server exists in the world:

192.168.2.x/24   72.24.23.252  lot's of networks
Private Network -- CableOne -- Internet

Now, our mail server's IP is 192.168.2.23.  On the router, he (the person at 
whose house the mail server is) has IP forwarding setup so that mail get's 
sent to our FreeBSD machine.  Using dig, here's the responses:


(from my FBSD machine at home, not the server)
[/usr/home/andy] - dig +short -t MX whitneybaptist.org
10 mail.whitneybaptist.org.
[/usr/home/andy] - dig +short -t A whitneybaptist.org
72.24.34.252
[/usr/home/andy] - dig +short -x 72.24.34.252
34-252.72-24-cpe.cableone.net.

(from the church FBSD machine)
[/home/afalanga] - hostname
whitbap
[/home/afalanga] - ifconfig fxp0
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet 192.168.2.23 netmask 0xff00 broadcast 255.255.255.255
ether 00:d0:b7:74:87:48
media: Ethernet autoselect (100baseTX full-duplex)
status: active
[/home/afalanga] - cat /etc/resolv.conf
search McCutchanLAN
nameserver 192.168.2.1

It doesn't take a rocket scientist, or a computer scientist, to figure out 
we've got DNS issues.  I'm thinking that I should setup a domain within the 
192.168.2.0/24 network on this box.  I've done this before, at work.  The 
question I've got is I've never actually integrated a domain like this to a 
domain on the Internet.  I'm thinking that we'll setup something like: 
internal.whitneybaptist.org with hosts in that sub-domain.


So, what would my DNS tables need to look like to make this happen.  Also, to 
any knowledgable souls here, what RFCs address these issues?



Hello again, Andy.
 
What you're asking is actually a FAQ, but I'll spell things out anyway.

The following excerpt from RFC 1918 is most relevant:

If an enterprise uses the private address space, or a mix of
private and public address spaces, then DNS clients outside of
the enterprise should not see addresses in the private address
space used by the enterprise, since these addresses would be
ambiguous.  One way to ensure this is to run two authority
servers for each DNS zone containing both publically and
privately addressed hosts.  One server would be visible from the
public address space and would contain only the subset of the
enterprise's addresses which were reachable using public
addresses.  The other server would be reachable only from the
private network and would contain the full set of data,
including the private addresses and whatever public addresses
are reachable the private network.  In order to ensure
consistency, both servers should be configured from the same
data of which the publically visible zone only contains a
filtered version. There is certain degree of additional
complexity associated with providing these capabilities.

That's a roundabout way of saying you can't mix and match private
non-routable addresses with public addresses in the same namespace.

Note the authoritative part.  Until CableOne delegates your assigned
netblock to your organisation, your public DNS server will not be
authoritative (it currently isn't!) for 72.24.34.252.  You can reference
RFC 2317 (classless in-addr.arpa delegation) for how that works.  As to
why you must be authoritative, I've already pointed out off-list how Bad
Things can happen when you're not, especially in regards to email where
reverse lookups are integral to How Things Work.
  


I could be wrong, but I think they've done something like this.  I 
administered DNS on an OpenBSD machine (2 of them actually) back in 
2000-2001.  Since then, I've done nothing with DNS administration.  I'm 
wondering what I need to get from CableOne to get this done.  Here's the 
result of a dig, on that mail server, for the IP address 72.24.34.252:


[/home/afalanga]
- dig -x 72.24.34.252

;  DiG 9.3.3  -x 72.24.34.252
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 19747
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;252.34.24.72.in-addr.arpa. IN  PTR

;; ANSWER SECTION:
252.34.24.72.in-addr.arpa. 86333 IN PTR 
34-252.72-24-cpe.cableone.net.


;; AUTHORITY SECTION:
24.72.in-addr.arpa. 75566   IN  NS  NS1.cableone.net.
24.72.in-addr.arpa. 75566   IN  NS  NS2.cableone.net.

;; ADDITIONAL SECTION:
NS1.cableone.net.   3507IN  A   24.116.0.201
NS2.cableone.net.   69544   IN  A  

Re: Configure 2 gateways on a freebsd box for 2 interfaces

2008-09-10 Thread Derek Ragona

At 12:05 PM 9/10/2008, The Noob wrote:

Hello all,

I have a small question.
I have two interface in two vlans.
The first interface 192.168.0.1 255.255.255.0
The second interface: 10.228.44.1 255.255.255.0
The gateway for the first interface must be 192.168.0.254 and the second
interface must be 10.228.44.254
How can I configure them? In rc.conf we have just defaultrouter but we can't
specify the interface.
Thanks for your help
Best Regads
TheNoob


You can only have one default gateway by definition. You will need a static 
route to pass traffic from interface/subnet to the other.


-Derek

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

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


kde4 build trouble with lib samplerate

2008-09-10 Thread Desmond Chapman

Here is the output from building kde4:

cc -I/usr/local/include -O2 -fno-strict-aliasing -pipe -std=gnu99 -W 
-Wstrict-prototypes -Wmissing-prototypes -Wall -Waggregate-return -Wcast-align 
-Wcast-qual -Wnested-externs -Wshadow -Wpointer-arith -o .libs/sndfile-resample 
sndfile-resample.o  -L/usr/local/lib ../src/.libs/libsamplerate.so 
/usr/local/lib/libsndfile.so /usr/local/lib/libFLAC.so -lm  -Wl,--rpath 
-Wl,/usr/local/lib
/usr/bin/ld: warning: libFLAC.so.7, needed by /usr/local/lib/libsndfile.so, not 
found (try using -rpath or -rpath-link)
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_encoder_set_seek_callback'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_encoder_process_interleaved'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_encoder_get_resolved_state_string'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_encoder_set_write_callback'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_encoder_delete'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_process_single'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_set_client_data'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_get_decode_position'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_set_write_callback'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_set_error_callback'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_encoder_init'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_encoder_set_client_data'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_set_metadata_callback'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_encoder_set_sample_rate'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_finish'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_set_eof_callback'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_init'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_set_length_callback'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_encoder_set_bits_per_sample'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_new'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_set_seek_callback'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_set_metadata_respond'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_set_tell_callback'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_set_read_callback'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_encoder_set_channels'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_encoder_finish'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_seek_absolute'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_encoder_new'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_encoder_set_tell_callback'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_process_until_end_of_metadata'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_get_state'
/usr/local/lib/libsndfile.so: undefined reference to 
`FLAC__seekable_stream_decoder_delete'
*** Error code 1

Stop in /usr/ports/audio/libsamplerate/work/libsamplerate-0.1.4/examples.
*** Error code 1

Stop in /usr/ports/audio/libsamplerate/work/libsamplerate-0.1.4.
*** Error code 1

Stop in /usr/ports/audio/libsamplerate.
*** Error code 1

Stop in /usr/ports/audio/pulseaudio.
*** Error code 1

Stop in /usr/ports/multimedia/libxine.
*** Error code 1

Stop in /usr/ports/x11/kdebase4-runtime.
*** Error code 1

Stop in /usr/ports/x11/kde4.
*** Error code 1

Stop in /usr/ports/x11/kde4.
# 


_
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portmanager errors

2008-09-10 Thread gahn

yes:

lab2# portmanager -v

rParseCommandLine 0.4.1_9



--- On Wed, 9/10/08, Gerard [EMAIL PROTECTED] wrote:

 From: Gerard [EMAIL PROTECTED]
 Subject: Re: portmanager errors
 To: freebsd-questions@freebsd.org
 Date: Wednesday, September 10, 2008, 4:15 AM
 On Tue, Sep 9, 2008 at 11:04 PM, gahn
 [EMAIL PROTECTED] wrote:
  Hello:
 
  I run into errors when i run portmanager
 -u:
 
  00344 luit-1.0.2_2 /x11/luit
  Makefile, line 85: Could not find
 /usr/ports/x11/xorg-clients/../../x11-servers/xorg-server/Makefile.inc
  Makefile, line 92: Malformed conditional
 (${X_WINDOW_SYSTEM:L} != xorg)
  Makefile, line 96: if-less endif
  make: fatal errors encountered -- cannot continue
  MGdbAdd error: attempt to place null data into record
 halted
  Assertion failed: (0), function MGdbAdd, file
 MGdbAdd.c, line 78.
  Abort (core dumped)
 
  could the portmanager bypass the failed
 luit and continue the next one?
 
 First, what version of 'portmanger' are you using?
 If not 0.4.1_9,
 then update. Did you insure that you updated your ports
 tree just
 prior to running portmanager?
 
 After checking the above, try running portmanager like
 this:
 
  portmanager -u -l -p -y
 
 See if that corrects the problem.
 
 
 -- 
 Gerard
 [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: mail server DNS configuration questions

2008-09-10 Thread Andrew Falanga

Sahil Tandon wrote:

Andrew Falanga [EMAIL PROTECTED] wrote:

  
It doesn't take a rocket scientist, or a computer scientist, to 
figure out we've got DNS issues.



What exactly is the problem though?  What problems are you having on 
the mail server that lead you to the above conclusion?


  
Clients in the churches private network cannot send mail using this 
server, though they can receive mail from it (POP).  The church has a 
private network, PN1, and the mail server sits at a church members house 
because he has a static IP address; let's call that PN2.  The router at 
his house is setup to forward traffic over port 25, and the POP port, to 
this server.  Also, just to further clarify, the Internet separates 
these two Private Networks.  However, this may not be entirely true as I 
think about it because at both locations, the ISP is CableOne using 
cable broadband.  So, though technically part of the Internet, the 
traffic shouldn't leave the CableOne domain.  Also, of interest, is that 
another of our pastors uses CableOne at home and is unable to send 
e-mail using the churches server from home.  However, from a coffee shop 
in town, that our pastors frequent, they are able to send mail.  It is 
my understanding that this coffee shop does not use CableOne.


So, just to make sure everyone's got it, the mail server sits in PN2.  
While diagnosing this, I connect to the server (using Putty) from a 
machine in PN1, using either a mail client or telnet I'm unable to make 
a connection to the mail server over port 25.  Using tcpdump during this 
putty session I do not even see the SYN packets for the start of the 
connection from the machines in PN1.  This is only when connecting to 
port 25.  Obviously, I can connect to the server because I'm using 
putty.  Also, I can see the SYN packets for the start of the connection 
when this same machine in PN1 attempts to connect to port 80.  The 
problem seems to be when trying to connect over port 25.  For some 
reason, the packets aren't being delivered to that address 
(72.24.34.252).  This happens if I try to telnet to 
mail.whitneybaptist.org or telnet to 72.24.34.252 on port 25.  The 
packets aren't being delivered.  They're being sent somewhere else, or 
lost in digital purgatory.


Now, from home (my home) let's call this PN3, I can send/receive mail 
using the church e-mail server.  I, however, don't use CableOne.  Are 
there routers that route traffic based on port number?  It's almost as 
if traffic, that originates within the CableOne domain and travels 
through, but not outside, the CableOne domain, doesn't get routed to the 
correct address when it's destined for port 25.


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


Re: Capturing tar output

2008-09-10 Thread jhall

 redirect stderr with 2 operator

Using the following command,
# /usr/local/gtar/bin/tar -cvf - /home/hallja 2  /var/log/test.txt |
/usr/local/bin/gpg --encrypt recipient | dd of=/dev/nsa0 obs=128k

I receive an error meesage stating, Ambiguous output redirect.

Any additional suggestions would be appreciated.

Thanks for all your help.


Jay

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


Using long preambles on an Atheros WG311T wireless card

2008-09-10 Thread Christophe Ramon
Dear all

I'm running hostapd on a FreeBSD 6.1 server and an Atheros WG311T wireless
card.

ath0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 2290
inet6 fe80::214:6cff:fe72:a9fa%ath0 prefixlen 64 scopeid 0x3
inet 10.1.0.1 netmask 0xff00 broadcast 10.1.0.255
ether 00:14:6c:72:a9:fa
media: IEEE 802.11 Wireless Ethernet autoselect mode 11b hostap
status: associated
ssid freebsdap channel 11 bssid 00:14:6c:72:a9:fa
authmode WPA2/802.11i privacy MIXED deftxkey 2 AES-CCM 2:128-bit
txpowmax 37 protmode CTS burst dtimperiod 1 bintval 100

I am desperately trying to switch the wireless card to use long preambles
instead of Short ones (to be able to avoid the many frames lost between
the WG311T card and an iPod Touch):

 SSIDBSSID  CHAN RATE   S:N INT CAPS
freebsdap   00:14:6c:72:a9:fa   11   11M29:0100 EPS  RSN

Didn't find any way so far ! Any suggestion would be appreciated.

Thanks.

C. Ramon


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


Re: mail server DNS configuration questions

2008-09-10 Thread Kevin Kinsey

Andrew Falanga wrote:

Clients in the churches private network cannot send mail using this 
server, though they can receive mail from it (POP).  The church has a 
private network, PN1, and the mail server sits at a church members house 
because he has a static IP address; let's call that PN2.  The router at 
his house is setup to forward traffic over port 25, and the POP port, to 
this server.  Also, just to further clarify, the Internet separates 
these two Private Networks.  However, this may not be entirely true as I 
think about it because at both locations, the ISP is CableOne using 
cable broadband.  So, though technically part of the Internet, the 
traffic shouldn't leave the CableOne domain.  Also, of interest, is that 
another of our pastors uses CableOne at home and is unable to send 
e-mail using the churches server from home.  However, from a coffee shop 
in town, that our pastors frequent, they are able to send mail.  It is 
my understanding that this coffee shop does not use CableOne.


So, just to make sure everyone's got it, the mail server sits in PN2.  
While diagnosing this, I connect to the server (using Putty) from a 
machine in PN1, using either a mail client or telnet I'm unable to make 
a connection to the mail server over port 25.  Using tcpdump during this 
putty session I do not even see the SYN packets for the start of the 
connection from the machines in PN1.  This is only when connecting to 
port 25.  Obviously, I can connect to the server because I'm using 
putty.  Also, I can see the SYN packets for the start of the connection 
when this same machine in PN1 attempts to connect to port 80.  The 
problem seems to be when trying to connect over port 25.  For some 
reason, the packets aren't being delivered to that address 
(72.24.34.252).  This happens if I try to telnet to 
mail.whitneybaptist.org or telnet to 72.24.34.252 on port 25.  The 
packets aren't being delivered.  They're being sent somewhere else, or 
lost in digital purgatory.


Now, from home (my home) let's call this PN3, I can send/receive mail 
using the church e-mail server.  I, however, don't use CableOne.  Are 
there routers that route traffic based on port number?  It's almost as 
if traffic, that originates within the CableOne domain and travels 
through, but not outside, the CableOne domain, doesn't get routed to the 
correct address when it's destined for port 25.


So a common thread is that traffic on the ISP's net isn't going
out via yourserver.com:25 --- would seem to indicate port blocking,
which is quite common for port 25.  Tried 587 or some weird alternate?

Kevin Kinsey

--
If the odds are a million to one against something
occurring, chances are 50-50 it will.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configure 2 gateways on a freebsd box for 2 interfaces

2008-09-10 Thread Olivier Nicole
Hi,

 The first interface 192.168.0.1 255.255.255.0
 The second interface: 10.228.44.1 255.255.255.0
 The gateway for the first interface must be 192.168.0.254 and the  
 second
 interface must be 10.228.44.254
 How can I configure them? In rc.conf we have just defaultrouter but  
 we can't
 specify the interface.

There is no way to specify an interface with the default route.

If your default route is set to 192.168.0.254, then it will use the
first interface, if the default route is set to 10.228.44.1 it will
use the second interface.

Now you need to explain why you need to default route. That is more
routing issue than FreeBSD issue.

In the routing table, you set a list of destination networks and the
interface to use to access them.

The default route is used to reach all the destinationsthat are not
listed else where in the routing table.

Your routing table will contain the default information:

- to reach network 192.168.0.0/255.255.255.0 you go through the first
  interface; no need for default route;

- to reach the network 10.228.44.0/255.255.255.0 you go through the
  second interface; no need for default route;

- to reach the locakhost you go through interface lo0; no need for
  default route;

You can use the route command to add more (many more) entries into
your routing table, and use the default route for everything else.

If your host is connected to two Internet sources (two ISPs for
example) and you want to add all the best routes for reaching ISP 1
and its clients through the first interface; and all the best routes
for reaching ISP 2 and its client through the second interface, then
you need to enable some routing protocol. And use the default route
for all everything else.

To see the routing table on your machine: netstat -r

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


Ran fsck, now all files are in lost+found

2008-09-10 Thread Bryant Eadon
So, I moved a RAID5 device between a FreeBSD 6.0 machine to fresh FreeBSD 7.0 
machine.  When I attempted to mount the device the OS complained that the disk 
had not bee unmounted properly -- figuring it was probably correct, I diligently 
dropped to single user mode and ran fsck on the disk.


I ran 'fsck -t ufs -y'.  all seemed fine and dandy until I tried to remount the 
volume after bringing it back to multi-user mode.  The disk space was occupied, 
but it all resided in lost+found with names like :  #001   ,  #002 
etc... !!  Each file was multiple gigabytes worth of data without file 
structures (as far as I could tell)


Is there an way to recover from this problem ?   I would be losing quite a lot 
of data, any help you could give would be appreciated.


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


Invalid pptp server

2008-09-10 Thread Michael Vorobyov

Hi, all!

My ISP (Internet access via PPTP) has just changed PPTP server and now 
the server assign the same IP for the far end of the pptp interface as 
the server has.

i.e.:
pptp server - 192.168.0.1
my IP - 192.168.0.10
pptp iface - inet 192.168.1.10 -- 192.168.0.1 netmask 0x

certainly, this configuration do not work at all.

FreeBSD 6.3, I'm trying to use net/pptpclient, net/mpd[45]

Is there any way to work with such PPTP server from FreeBSD using 
ports/packages only, without any patches?


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