The FreeBSD Diary: 2003-03-16 - 2003-04-05

2003-04-06 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to [EMAIL PROTECTED] with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 

These are the articles posted during this period:

1-Apr : FreeBSD/NetBSD to merge
 It's about time!
 http://freebsddiary.org/fretbsd.php?2

10-Mar : Home networks are everywhere
 Creating one from scratch can be fun
 http://freebsddiary.org/wap.php?2


-- 
Dan Langille - DVL Software Limited
The FreeBSD Diary - http://www.FreeBSDDiary.org/ - practical examples
FreshPorts- http://www.FreshPorts.org/   - the place for ports
FreshSource   - http://www.FreshSource.org/  - the place for source

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


ipsec/racoon broken after upgrade to 4.8

2003-04-06 Thread Joost Bekkers
Hello,

After a binary upgrade to 4.8R and making a custom kernel,
racoon exists when trying to create a tunnel:

2003-04-06 11:01:51: DEBUG: algorithm.c:382:alg_oakley_encdef(): encription(des)
/usr/libexec/ld-elf.so.1: racoon: Undefined symbol des_key_sched

I've got these in my kernel config, so that can't be the problem.
options IPSEC   #IP security
options IPSEC_ESP   #IP security (crypto; define w/ IPSEC)
options IPSEC_DEBUG #debug for IP security

Any suggestions?

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


Re: make buildworld error upgrading to 4.8R

2003-04-06 Thread Kris Kennaway
On Sat, Apr 05, 2003 at 11:14:12PM -0400, Nicholas Fitzgerald wrote:
 - Original Message -
 From: Kris Kennaway [EMAIL PROTECTED]
 To: Nicholas Fitzgerald [EMAIL PROTECTED]
 Cc: Kris Kennaway [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Saturday, April 05, 2003 11:02 PM
 Subject: Re: make buildworld error upgrading to 4.8R
 
 On Sat, Apr 05, 2003 at 11:01:52PM -0400, Nicholas Fitzgerald wrote:
 
  No, I do not have either one of these set in my environment or in my
  make.conf.
 
 How did you install gcc 3?
 
 Kris
 
 I downloaded the tar file from the gcc web site and compiled and installed
 it that way.

OK, it sounds like you overwrote the FreeBSD system compiler.  You
need to reinstall it somehow.  Something like:

  cd /usr/src/gnu/usr.bin/cc
  make depend  make all  make install

might fix your system enough to complete a 'make world'.  Otherwise
(or if you're not comfortable doing this) you could reinstall FreeBSD.

If you really want to install gcc 3 for compiling your own code, use
the port, which installs it safely so it coexists with the system
compiler.

Kris


pgp0.pgp
Description: PGP signature


Re: ISO images in FTP

2003-04-06 Thread Kris Kennaway
On Sun, Apr 06, 2003 at 03:24:26AM +, Yan Jingfeng wrote:
 Hi, 
 
 Does it mean that FreeBSD will not build the 3rd and 4th CD Images for FTP 
 downloading from now on?

Yes.  They take a lot of effort to build for each supported
architecture and essentially double the space required on ftp mirrors
to store a release.

Kris


pgp0.pgp
Description: PGP signature


Re: can't find smbpasswd file

2003-04-06 Thread Antoine Jacoutot
On Sunday 06 April 2003 07:42, P. U. Kruppa wrote:
 On Sat, 5 Apr 2003, Antoine Jacoutot wrote:
  Thanks so much... how comes locate couldn't find this file ?
 Perhaps because locate is - per default - only updated once a
 week?

No no, this system had been running for three months... I think it must be 
because locate is run every week as user nobody.

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


Re: ipsec/racoon broken after upgrade to 4.8

2003-04-06 Thread Kris Kennaway
On Sun, Apr 06, 2003 at 11:09:44AM +0200, Joost Bekkers wrote:
 Hello,
 
 After a binary upgrade to 4.8R and making a custom kernel,
 racoon exists when trying to create a tunnel:
 
 2003-04-06 11:01:51: DEBUG: algorithm.c:382:alg_oakley_encdef(): encription(des)
 /usr/libexec/ld-elf.so.1: racoon: Undefined symbol des_key_sched

Did you upgrade racoon?  If not, it sounds like you're missing the
compat4x distribution/package which is necessary for binary
compatibility with older 4.x binaries.

Kris


pgp0.pgp
Description: PGP signature


Re: ipsec/racoon broken after upgrade to 4.8

2003-04-06 Thread Joost Bekkers
On Sun, Apr 06, 2003 at 01:19:29AM -0800, Kris Kennaway wrote:
 On Sun, Apr 06, 2003 at 11:09:44AM +0200, Joost Bekkers wrote:
  Hello,
  
  After a binary upgrade to 4.8R and making a custom kernel,
  racoon exists when trying to create a tunnel:
  
  2003-04-06 11:01:51: DEBUG: algorithm.c:382:alg_oakley_encdef(): encription(des)
  /usr/libexec/ld-elf.so.1: racoon: Undefined symbol des_key_sched
 
 Did you upgrade racoon?  If not, it sounds like you're missing the
 compat4x distribution/package which is necessary for binary
 compatibility with older 4.x binaries.
 

I just double checked, I'm running the racoon currently in the ports. 
(racoon-20021120a)
I've also rebuild it after the upgrade, hoping that would help.

It didn't.


hmmm, where did that [EMAIL PROTECTED] come from? It looks cool, but it's wrong.

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


Re: ipsec/racoon broken after upgrade to 4.8 *fixed*

2003-04-06 Thread Joost Bekkers
On Sun, Apr 06, 2003 at 11:45:43AM +0200, Joost Bekkers wrote:
 On Sun, Apr 06, 2003 at 01:19:29AM -0800, Kris Kennaway wrote:
  On Sun, Apr 06, 2003 at 11:09:44AM +0200, Joost Bekkers wrote:
   Hello,
   
   After a binary upgrade to 4.8R and making a custom kernel,
   racoon exists when trying to create a tunnel:
   
   2003-04-06 11:01:51: DEBUG: algorithm.c:382:alg_oakley_encdef(): encription(des)
   /usr/libexec/ld-elf.so.1: racoon: Undefined symbol des_key_sched
  
  Did you upgrade racoon?  If not, it sounds like you're missing the
  compat4x distribution/package which is necessary for binary
  compatibility with older 4.x binaries.
  
 
 I just double checked, I'm running the racoon currently in the ports. 
 (racoon-20021120a)
 I've also rebuild it after the upgrade, hoping that would help.
 
 It didn't.
 
 
 hmmm, where did that [EMAIL PROTECTED] come from? It looks cool, but it's wrong.
 

found it

I still had the openssl port installed

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


Re: ipsec/racoon broken after upgrade to 4.8

2003-04-06 Thread Kris Kennaway
On Sun, Apr 06, 2003 at 11:45:43AM +0200, Joost Bekkers wrote:
 On Sun, Apr 06, 2003 at 01:19:29AM -0800, Kris Kennaway wrote:
  On Sun, Apr 06, 2003 at 11:09:44AM +0200, Joost Bekkers wrote:
   Hello,
   
   After a binary upgrade to 4.8R and making a custom kernel,
   racoon exists when trying to create a tunnel:
   
   2003-04-06 11:01:51: DEBUG: algorithm.c:382:alg_oakley_encdef(): encription(des)
   /usr/libexec/ld-elf.so.1: racoon: Undefined symbol des_key_sched
  
  Did you upgrade racoon?  If not, it sounds like you're missing the
  compat4x distribution/package which is necessary for binary
  compatibility with older 4.x binaries.
  
 
 I just double checked, I'm running the racoon currently in the ports. 
 (racoon-20021120a)
 I've also rebuild it after the upgrade, hoping that would help.
 
 It didn't.

Perhaps you have an out-of-date openssl installation.

 hmmm, where did that [EMAIL PROTECTED] come from? It looks cool, but it's wrong.

Your mail headers, AFAIK.

Kris


pgp0.pgp
Description: PGP signature


Problem with natd on ipfw2

2003-04-06 Thread Denis Borisov
Why natd don't divert packets?

 *screenshot***

 #ipfw add divert  tcp from any to any 7
 #ipfw add divert  tcp from any 7 to any
 #natd  -v -p  -a 172.16.0.102 -redirect_port tcp 172.16.0.253:7 7

 In  [TCP]  [TCP] 172.16.0.104:49169 - 172.16.0.102:7 aliased to
[TCP] 172.16.0.104:49169 - 172.16.0.253:7

 In  [TCP]  [TCP] 172.16.0.104:49169 - 172.16.0.102:7 aliased to
[TCP] 172.16.0.104:49169 - 172.16.0.253:7

 ^C
 *screenshot***

 Where is Out[TCP]?

This constructions fine work on FreeBSD4.7(ipfw1) but don't work on
FreeBSD 5.0-CURRENT(ipfw2).
What i am doing wrong?

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


portsupgared, and now galeon crashes

2003-04-06 Thread stan
Well, it happened again. I did my weekly cvsup make world, portsupgrade,
and now galeon won't start up _again_.

This is happenening _way_ to often.
What do I need to do to fis it this time?


-- 
They that would give up essential liberty for temporary safety deserve
neither liberty nor safety.
-- Benjamin Franklin
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Disabling USB

2003-04-06 Thread Martin Karlsson
* Lucas Holt [EMAIL PROTECTED] [2003-04-05 22.49 -0500]:

Hi,

 How would I go about disabling USB support?
 
 I want to strip out features in my kernel that I am not using on the 
 server.

Comment out or remove the lines governing usb in your kernel config
file, and rebuild the kernel. You should find the lines you're looking
for in the default GENERIC kernel. If you don't have that file anymore,
you can find it at the web interface to the CVS repository:

URL:http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/conf/GENERIC

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


Power Saving

2003-04-06 Thread Andrew
Hi,

I was wondering what the correct way was meant to be to implement CPU
throttling under FreeBSD 5. At boot I get:

acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0%

Setting hw.acpi.cpu.performance_speed to 1 seems to slow the CPU down (the
percentages shown by top all increase).

I want the CPU to be automatically throttled when the system is idle. I
could write a daemon to poll the CPU usage every now and then and set the
sysctl as needed but I thought there may be another way - perhaps there
are hooks in the scheduler/idle loop for this sort of thing?

Also, how do I get the HD to slow down? I have an IBM deskstar that lcaims
to support running at half speed and I'd like that to happen when the disk
hasn't been accessed in a while...

Thanks,

Andrew



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


Re: Documentation on installing Sybase for Linux on FreeBSD?

2003-04-06 Thread Alex Kiesel
On Sun, 2003-04-06 at 07:15, Michael Sarro wrote:
 Is there a document that explains the steps to installing Sybase for 
 Linux on FreeBSD? I found the one for Oracle, but I'm sure Sybase for 
 Linux can be installed in a similar way.

Hi Michael,

I do not know about Oracle, but I recently wrote a port for Sybase-ASE.
It has not yet been committed, but I'd be glad if you'd gave that port a
try.

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

I guess, as it is a port, further documentation is not needed...

Greets,
Alex

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


Re: sendmail woes

2003-04-06 Thread Matthew Emmerton
 Quoting Giorgos Keramidas [EMAIL PROTECTED]:

  I'd probably boot single user mode and run 'mergemaster' after mounting
  all the filesystems.

 Giorgios,
 Am I expecting too much of mergemaster?
 I took your advice and ran it without any options.
 It showed me the comparision between old and new files as it ran on the
 console, and stored the new files in /var/tmp/temproot for me to compare
and
 adjust my old files - without any guide about what the differences might
be.
 The old files remain untouched until I manually change them.
 Is there at least a log somewhere which highlights any differences so I
have
 the same sort of guide that appeared on the console when I ran
mergemaster?

The differences are shown, per file, when you run mergemaster.  You can
choose i (install) to install the new file, which will wipe out any
changes you may have made in your old version.  Of your can choose to
leave until later, and then you will have to diff and merge the changes by
hand.  (Use the diff command to show the differences, and then edit your
old files with the changes.)

 BTW, the difference between old and new freebsd.mc appears (more-or-less)
 cosmetic - BUT I didn't have a freebsd_submit.mc and one or two other
files
 which look important.

If you don't have some of the files which look important, then you should
have chosen i (install) when mergemaster gave you the choice.  For these,
just copy them from /var/tmp/temproot into their appropriate place.

--
Matt Emmerton

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


Supply laser markers

2003-04-06 Thread James
Manufacturer of Nd:YAG  CO2 laser marking, welding, engraving, drilling  cutting 
machine, mirror, Q-switch, fiber, scanning lens, focusing lens, chiller, flashlamp, 
crystal, bean expander, energy/power meter, laser diodes, safety goggles. For more 
information, please visit http://www.SintecOptronics.com or e-mail to [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


slightly OT - netscape port question

2003-04-06 Thread Louis LeBlanc
I know this is a little OT, but does anyone have any idea when/if the
netscape7 port will be upgraded to install 7.02?

TIA
Lou
-- 
Louis LeBlanc   [EMAIL PROTECTED]
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org ԿԬ

Ever been a vampire?
http://quiz.ravenblack.net/blood.pl?biter=Mxyzptlk

Bagdikian's Observation:
  Trying to be a first-rate reporter on the average American newspaper
  is like trying to play Bach's St. Matthew Passion on a ukelele.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Disabling USB

2003-04-06 Thread Lucas Holt
Thanks for the help.

 I noticed on reboot I had some USB stuff still, so I disabled usbd in 
rc.conf.  Just letting others know what I had to do. :)


Comment out or remove the lines governing usb in your kernel config
file, and rebuild the kernel. You should find the lines you're looking
for in the default GENERIC kernel. If you don't have that file anymore,
you can find it at the web interface to the CVS repository:
URL:http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/conf/GENERIC

HTH
--
Martin Karlsson

Lucas Holt
[EMAIL PROTECTED]

FoolishGames.com
JustJournal.com
The next generation of interesting software will be made on a 
Macintosh, not an IBM PC.

-- Bill Gates (unconfirmed quote) 

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