Re: Install bug - 4.9 stable - post install circular reboot

2004-01-12 Thread Doug White
On Tue, 17 Apr 2018, Kevin Berrien wrote:

 I can confirm an issue posted Dec 3rd, freebsd-stable maillist, titled
 4.9 install buglet.

 I experience this bug running the install (various configurations) 100%
 of the time.  After install, after system reboot, the boot loader comes
 up with F1: FreeBSD, and reboots continually forever.  To test, I made 3
 installs without issue using 4.8.  So first, I'd like to confirm the bug
 report, and ask the following.

Please qualify reboots continutally forever.  It reboots after printing
the F1: FreeBSD message, or after you press a key, or what?

This sounds like a BIOS issue. boot0 uses only BIOS calls to do its work.
Lots of problems like this are also caused by bad drive geometry.

What is the partition layout on the disk(s) in the system? Hardware
description?

-- 
Doug White|  FreeBSD: The Power to Serve
[EMAIL PROTECTED]  |  www.FreeBSD.org
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Install bug - 4.9 stable - post install circular reboot

2004-01-12 Thread kblists
I've fixed the problem, but for the benefit of others...

 Please qualify reboots continutally forever.  It reboots after printing
 the F1: FreeBSD message, or after you press a key, or what?

Yes, hitting a key.  I would suppose if I let it time out it'd do the same.

 This sounds like a BIOS issue. boot0 uses only BIOS calls to do its work.
 Lots of problems like this are also caused by bad drive geometry.

4.8 installs correctly 100%, 4.9 fails 100%.
 
 What is the partition layout on the disk(s) in the system? Hardware
 description?

One of my old test boxes, on which I've install most everything in the past.  Single 
partition, Micron/Intel mb, PII 300, SIS graphics, 4 gig ide, 256 ram.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


cannot open Makefile Error code 2 Installing port

2004-01-12 Thread Ben Dover
This is probably simple but i can't find the answer in the handbook.  I am 
installing the mod_frontpage port and I get the following error:

devnu11# make install clean
===  Building for mod_frontpage-1.6.2
make: cannot open Makefile.
*** Error code 2
Stop in /usr/ports/www/mod_frontpage.

I CAN read the Makefile so I dont know what is wrong.  I have tried deleting 
the distfile hoping to start over but that didnt work.  What do I do next?

_
Let the new MSN Premium Internet Software make the most of your high-speed 
experience. http://join.msn.com/?pgmarket=en-uspage=byoa/premST=1

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


if a file is used a lot, does it stay in a RAM cache?

2004-01-12 Thread BSD baby
If a file is loaded off the hard drive a lot, does FreeBSD keep it in RAM?

For my high-traffic website, Apache+PHP, I have a PHP file that I'm going to be 
including a LOT.

The file is 3 megs, though.   Takes a few unfortunate seconds to load into memory off 
of disk the first time.

So - what would it take to keep it in RAM instead of being loaded off of hard drive 
every second of the day?

Does FreeBSD do that automatically or do I need some kind of accelerator app?

Thanks!

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


HD and MB selection?

2004-01-12 Thread Dragoncrest
Hi all.  Just getting ready to build a new workstation using Freebsd 4.9
(*and eventually 5.x once it reaches the classification of stable) for
up at my job and I'm curious of what motherboard and hard drive would be
best to use under Freebsd for maximum compatibility with as few issues
as possible.  Right now I'm looking at 3 different motherboards,
although I'm up for suggestions of other ones if these three really
aren't right for the job.

MSI K7N2 Delta (nforce)
Asus A7N8X (nforce)
Asus A7V8X (via)

Also, what brand of HD do you guys trust most?  What works best with
Freebsd?  I'm probubly going to pick up a pair of 80g Western Digitals,
but again I'm open to other suggestions.  Any suggestions are greatly
apreciated.  Thanks.


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


pam_chroot

2004-01-12 Thread Nick Twaddell
Has anyone got the pam_chroot module to successfully work in FreeBSD?  I
have FreeBSD 5.2-RELEASE installed.  I copied the appropriate binaries and
libraries into my chroot, I can chroot -u test -g test /home/test
/usr/local/bin/bash and it works perfectly.  So now I am trying to get the
pam module to work.  I added
sessionrequiredpam_chroot.so   debug
into the /etc/pam.d/sshd file.  I changed my passwd file so my home dir is
/home/test/./

when I try to login as that user, it just kicks me right now.  There are no
errors in the log :(  

Connection to wp1 closed by remote host.
Connection to wp1 closed.

Maybe someone in here can help.

Nick



Nick Twaddell
Web Space Solutions
Ph: (805) 704-4038 Fx: (805) 434-2477


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


Updating DNS after DHCP

2004-01-12 Thread John
I see that some Microsoft systems send out an update to DNS with
the system name.  I configured my DNS server to accept these updates,
but now that I'm running FreeBSD on a laptop - how do I do that
from FreeBSD? I've looked at the dhclient man pages and the named
man pages and the pages that they refer to and I didn't pick up
any hints there.

Can anyone give me a clue? (Yeah - I'm clueless...)

Thanks!
-- 

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


Re: Cannot find file system superblock error - how to recover?

2004-01-12 Thread Scott I. Remick

--- Sergey 'DoubleF' Zaharchenko [EMAIL PROTECTED] wrote:
 I mean trying to mount it, to fsck it, using dd|hd to find the
 superblock, etc. I just want to be *really* sure we know what
 we are doing.

Well, I don't have experience making bootable FreeBSD floppies... it might
be more useful for me to grab a small spare HDD and install 4.9 on it.
Should I do that and get back to you once I'm ready?

 While we are on that, do you have an empty disk to copy this disk's
 contents to? I'm not sure, but maybe I have an idea...

I could probably come up with something. Would it have to be installed in
the machine, or just available on the network? Unfortunately I don't
remember how much data was used on that drive so I don't know what my goal
is. :(


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


Open Source report, sponsored by infoDev / World Bank

2004-01-12 Thread Paul J. Dravis
The report noted below may be of interest.
Feel free to share it with others. Your feedback and questions are welcome.
Paul
--
The report Open Source Software: Perspectives for Development was
released at the infoDev Symposium, held in conjunction with the World
Summit on an Information Society in Geneva (Dec.). This effort was
commissioned by infoDev /World Bank.
The report intends to assist decision makers, globally, in better
understanding Open Source software when assessing this technology
option. Presented are initiatives by governments around the world, a
selection of private sector uses of Open Source, support by commercial
technology providers, a set of case studies in developing countries,
along with a brief status of the legal landscape.
The report is located at
http://www.infodev.org/symp2003/publications/OpenSourceSoftware.pdf
___
Paul J. Dravis
The Dravis Group
www.dravis.net
San Francisco, CA
415-665-8745 direct
415-665-8749 fax
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Errors in upgrading ports

2004-01-12 Thread Michael A. Alestock
I get numerous errors while trying to, portsdb -Uu, 'portversion -l ,
and  portupgrade -arR.  I don't get any kind of prompt to change anything.
How would I go about fixing these errors so that I can upgrade my ports to the latest
version(s)??  Here's a snippet from the PORTUPGRADE I did, but it stopped
after coming up in error

Stop in /usr/ports/x11-servers/XFree86-4-FontServer.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade72647.10 make
** Fix the problem and try again.
---  Skipping 'x11/XFree86-4' (XFree86-4.3.0,1) because
'x11-servers/XFree86-4-FontServer' (XFree86-FontServer-4.3.0) failed
** The following packages were not installed or upgraded (*:skipped /
!:failed)
! dns/noip (noip-1.6)   (port directory error)
! www/mod_php5 (mod_php5-5.0.0.a3_2,1)  (configure error)
! x11/XFree86-4-clients (XFree86-clients-4.3.0_1)   (install
error)
* x11-wm/fluxbox (fluxbox-0.1.14_2)
! x11-servers/XFree86-4-FontServer (XFree86-FontServer-4.3.0)
(linker error)
* x11/XFree86-4 (XFree86-4.3.0,1)
bsd#

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


Unit of the t_rtttime value

2004-01-12 Thread Tanmay Ganacharya
Hello,
Could anyone please tell me the unit of the value stored in the t_rtttime 
variable in TCP.
Also after searching on the internet I found that 1 tick = 224 miliseconds. 
Please could anyone confirm this.
Thanks in advance.
TaNmAy

_
Marriage? http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Join 
BharatMatrimony.com and get married.

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


RE: Sound not working on laptop

2004-01-12 Thread Mazen S. Alzogbi
Hi,

Thanks for all the help. I tried to locate a 'Non Plug-and-Play OS'
option in the BIOS setup with no success. I think there aren't anything
like this in my BIOS.

Can someone on this list shed some light how to detect (track) IRQs and
conflicts?

Thanks,

Mazen

 Yes, it is solvable.  In your system BIOS, make certain that your
system is 
 set to 'Non Plug-and-Play OS.'  This will enable the BIOS to assign 
 appropriate IRQs and such.  You have some conflict, which I'm not 100%

 certain on how to track.  Someone on this list should be able to
answer that 
 part.  Once you figure this out, you should set a line in your kernel
config 
 (not sure on syntax) to the effect of assiging an unused IRQ.  It IS 
 recognizing your sound card and trying to use it, but it's running
into an 
 Input/Output (that's where it gets IO in IO port space) conflict.


 -- 
 Eric F Crist
 AdTech Integrated Systems, Inc
 (612) 998-3588

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


Re: Other ways than quotas to limit mail files size ??

2004-01-12 Thread Greg Bernard
Le 11/01/04 23:12, « Mike Maltese » [EMAIL PROTECTED] a écrit :

 Is there another way to limit the amount of space occupied by mail files
 on
 a per user basis using another method than quotas ?
 
 I would like to limit the amount of space available for each user's e.mail
 so e.mail file size will not go crazy.
 
 Is there an option to limit message size with the MTA you are using?
 

Well I don't know, that's my question...

I am using sendmail.


«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

Gregober --- PGP ID -- 0x1BA3C2FD
omni_osx_ml @at@ todoo.biz

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§



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


Re: Other ways than quotas to limit mail files size ??

2004-01-12 Thread Paul Chvostek
On Sun, Jan 11, 2004 at 09:24:28PM +0100, Greg Bernard wrote:
 
 Is there another way to limit the amount of space occupied by mail files on
 a per user basis using another method than quotas ?
 
 I would like to limit the amount of space available for each user's e.mail
 so e.mail file size will not go crazy.

What exactly do you want to do?

Filesystem quotas will cause a bounce message to be returned to the
sender indicating that the recipient was over quota.  That's generally
the preferred way because the operating system takes care of most of it.
You could modify that bounce message to include friendlier text if the
default text is a problem for you.

Alternately, you could implement a solution using procmail, with a small
tool like http://www.it.ca/software/fsizecompare.c to determine existing
filesize and behave accordingly.  Or you could come up with other clever
behaviour based on whatever criteria you dream up.

But you have to dream it up first.  Figure out exactly what you want to
do with your users' mail.  Then try to write something that does it.
And if you have problems with that, come back to the list and ask for
advice.  :-)

p

-- 
  Paul Chvostek [EMAIL PROTECTED]
  it.canadahttp://www.it.ca/
  Free PHP web hosting!http://www.it.ca/web/

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


Re: Other ways than quotas to limit mail files size ??

2004-01-12 Thread Jez Hancock
On Mon, Jan 12, 2004 at 08:34:53AM +0100, Greg Bernard wrote:
 Le 11/01/04 23:12, ??Mike Maltese?? [EMAIL PROTECTED] a ?crit?:
  Is there another way to limit the amount of space occupied by mail files
  on
  a per user basis using another method than quotas ?
  I would like to limit the amount of space available for each user's e.mail
  so e.mail file size will not go crazy.
  Is there an option to limit message size with the MTA you are using?

 Well I don't know, that's my question...
 I am using sendmail.
Exim can do quotas.

http://www.exim.org/

also in the ports:

/usr/ports/mail/exim/

I've never actually used the quota system myself in Exim but it sounds
relatively straightforward - from the specifications for Exim:


quota   Type: string*  Default: unset

This option imposes a limit on the size of the file to which Exim is
appending, or to the total space used in the directory tree when the
directory option is set. In the latter case, computation of the space
used is expensive, because all the files in the directory (and any sub-
directories) have to be individually inspected and their sizes summed (but
see quota_size_regex below). Also, there is no interlock against two
simultaneous deliveries into a multi-file mailbox. For single-file
mailboxes, of course, an interlock is a necessity.

A file's size is taken as its used value. Because of blocking effects,
this may be a lot less than the actual amount of disk space allocated to
the file. If the sizes of a number of files are being added up, the
rounding effect can become quite noticeable, especially on systems that
have large block sizes. Nevertheless, it seems best to stick to the used
figure, because this is the obvious value which users understand most
easily.

The value of the option is expanded, and must then be a numerical value
(decimal point allowed), optionally followed by one of the letters K or M.
A value of zero unsets the option. The expansion happens while Exim is
running as root, before it changes uid for the delivery. This means that
files which are inaccessible to the end user can be used to hold quota
values that are looked up in the expansion. When delivery fails because
this quota is exceeded, the handling of the error is as for system quota
failures.

By default, Exim's quota checking mimics system quotas, and restricts the
mailbox to the specified maximum size, though the value is not accurate to
the last byte, owing to separator lines and additional headers that may
get added during message delivery. When a mailbox is nearly full, large
messages may get refused even though small ones are accepted, because the
size of the current message is added to the quota when the check is made.
This behaviour can be changed by setting quota_is_inclusive false. When
this is done, the check for exceeding the quota does not include the
current message. Thus, deliveries continue until the quota has been
exceeded; thereafter, no further messages are delivered. See also
quota_warn_threshold.

quota_directory Type: string*  Default: unset

This option defines the directory to check for quota purposes when
delivering into individual files. The default is the delivery directory,
or, if a file called maildirfolder exists in a maildir directory, the
parent of the delivery directory.

quota_filecount Type: string*  Default: 0

This option applies when the directory option is set. It limits the
total number of files in the directory (compare the inode limit in system
quotas). It can only be used if quota is also set. The value is
expanded; an expansion failure causes delivery to be deferred.

quota_is_inclusive  Type: boolean   Default: true

See quota above.

quota_size_regex Type: string   Default: unset

This option applies when one of the delivery modes that writes a separate
file for each message is being used. When Exim wants to find the size
of one of these files in order to test the quota, it first checks
quota_size_regex. If this is set to a regular expression that matches
the file name, and it captures one string, that string is interpreted as a
representation of the file's size. The value of quota_size_regex is not
expanded.

This feature is useful only when users have no shell access to their
mailboxes - otherwise they could defeat the quota simply by renaming the
files. This facility can be used with maildir deliveries, by setting
maildir_tag to add the file length to the file name. For example:

  maildir_tag = ,S=$message_size
  quota_size_regex = ,S=(\d+)

The regular expression should not assume that the length is at the end of
the file 

Re: routing to specific network

2004-01-12 Thread Dinesh Nair

On Sun, 11 Jan 2004, David Miller wrote:

 So you want packets for 60.6.* to go out through ISP2?

it is amazing that how something which completely stumps you at 4am,
suddenly becomes so clear after some sleep and coffee at 11am. i added a
route for 60.6/16, but was trying to traceroute 61.6/16. the mistake kept
perpetuating because i kept using the shell's history to run the
traceroute, and the mind could not tell the difference between the 0 and
the 1. my bad, and much apologies. all works fine now.

 Zebra implemets a number of routing protocols, including bgp.  With BGP
 you can pick the best route *out* for your packet, but everyone else's
 BGP sessions will decide the best route *in* for you.  In other words,

to me, if i can pick the source ip address of my _outgoing_ packet, i.e.
on which interface the connection is made, i'd be a happy camper.

since i have two interfaces with two ip addies, the first http connection
can have a 192.168.0/24 ip address, with the flow being carried on fxp0.
the second http connection have have a 10.1/16 address with the flow being
carried on the aue0. that would actually solve the problem, without having
to set up multiple static routes. would this be possible ?

thanx a bunch, david.

Regards,   /\_/\   All dogs go to heaven.
[EMAIL PROTECTED](0 0)http://www.alphaque.com/
+==oOO--(_)--OOo==+
| for a in past present future; do|
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo The opinions here in no way reflect the opinions of my $a $b.  |
| done; done  |
+=+

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


Re: How do I add a third ATA controller to 4.8?

2004-01-12 Thread Martyn Hill
Paul

I notice that the kernel config file you present is using the old device
ata lines - is the ATA controller a particularly old model?

If not, then the LINT kernel config file shows an alternative, viz

deviceata# just one entry for all ata controllers, no need
to reference IRQs etc...
deviceatadisk# for your IDE disks
deviceatapicd# for your CD-ROM like devices

You should comment out the ata0/ata1 lines before adding the above (and
additionally, remove any device wd* lines in that section.)

Then rebuild your kernel.

Hope that helps.

Martyn Hill
Network Administrator
St James Independent School
London

- Original Message -
From: Paul Hoffman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 12, 2004 5:13 AM
Subject: How do I add a third ATA controller to 4.8?


 Greetings again. I have a Dell 600SC that has three ATA controllers
 on the motherboard, and I'm running 4.8 quite happily on it. The
 GENERIC kernel has the following:

 device  ata0at isa? port IO_WD1 irq 14
 device  ata1at isa? port IO_WD2 irq 15

 Since I didn't know the irq used by the third controller (it's not
 listed in their documentation, of course!), I blithely tried adding:

 device  ata2at isa? port IO_WD3

 However, when rebuilding this kernel, I get the following error:

 cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs
 -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
 -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../..
 -I../../../include -I../../contrib/ipfilter  -D_KERNEL -include
 opt_global.h  -mpreferred-stack-boundary=2  ioconf.c
 ioconf.c:48: `IO_WD3' undeclared here (not in a function)
 ioconf.c:48: initializer element is not constant
 ioconf.c:48: (near initialization for `ata2_resources[1].u.longval')
 *** Error code 1

 So, what am I supposed to add to the kernel to add this third controller?

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

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


Re: How do I add a third ATA controller to 4.8?

2004-01-12 Thread Malcolm Kay
On Mon, 12 Jan 2004 15:43, Paul Hoffman wrote:
 Greetings again. I have a Dell 600SC that has three ATA controllers
 on the motherboard, and I'm running 4.8 quite happily on it. The
 GENERIC kernel has the following:

 device  ata0at isa? port IO_WD1 irq 14
 device  ata1at isa? port IO_WD2 irq 15


I gather that these lines or for legacy isa based controllers and have little relevance
for reasonably modern machines.

A single line:

device ata

should cope with all the ATA controllers on a current model PC.


 Since I didn't know the irq used by the third controller (it's not
 listed in their documentation, of course!), I blithely tried adding:

 device  ata2at isa? port IO_WD3

 However, when rebuilding this kernel, I get the following error:

 cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs
 -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
 -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../..
 -I../../../include -I../../contrib/ipfilter  -D_KERNEL -include
 opt_global.h  -mpreferred-stack-boundary=2  ioconf.c
 ioconf.c:48: `IO_WD3' undeclared here (not in a function)
 ioconf.c:48: initializer element is not constant
 ioconf.c:48: (near initialization for `ata2_resources[1].u.longval')
 *** Error code 1


I suspect you are being too clever; the GENERIC kernel will
possibly find it.

(No personal experience with 3 or more ATA controllers)

Malcolm Kay

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


diskless clients

2004-01-12 Thread rwong10
Hi

I am experimenting with setting up a freebsd server to boot diskless
clients.  I am currently running 4.8R.  I've followed the instructions
found in the handbook and augmented that with the comments found in
/usr/share/examples/diskless/clone_root.

My problem is with the cloned root filesystem.  It does not appear that
the /conf/* directories are overriding the contents found in
/diskless_root/etc.  What happens is, I boot up via etherboot, the kernel
downloads and loads up successfully.  When it comes time to process the
information in /etc, it is actually reading the cloned config files from
the server.  In particular, fstab...I have a modified fstab in
/conf/default/etc yet the cloned fstab is still being read.

Can anyone who has had experience setting up diskless clients offer some
suggestions?

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


Re: Other ways than quotas to limit mail files size ??

2004-01-12 Thread Uwe Doering
Greg Bernard wrote:
Is there another way to limit the amount of space occupied by mail files on
a per user basis using another method than quotas ?
I would like to limit the amount of space available for each user's e.mail
so e.mail file size will not go crazy.
You could switch to Cyrus IMAP, which is a complete IMAP4/POP3 email 
storage subsystem with file system independent quotas.

   Uwe
--
Uwe Doering |  EscapeBox - Managed On-Demand UNIX Servers
[EMAIL PROTECTED]  |  http://www.escapebox.net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How do I install latest Samba (3.0.1) from ports?

2004-01-12 Thread Martyn Hill
Dear all

Is it just a matter of time before the samba 3.0.1 port is made available
from the ports tree (/net/samba-devel) or is there another way to coherently
patch the 3.0.0 install without screwing-up the ports install?

TIA.
Martyn Hill
Network Administrator
St James Independent School
London


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


[OT] Configuration file parsing

2004-01-12 Thread Philip Schulz
Hello!

 Let me apologize for asking an offtopic question. If you feel offended,
please ignore this eMail.

 I'm currently working on a program which will be used in a closed company
environment. The programm is written in C. For this program, I need to find
a
way of parsing a configuration file. I found a library which can do exactly
what I need, it's GLib's lexical scanner [1]. However, it's licensed under
the
GPL, so I guess it won't work for me.
 So my question: How can I easily parse a configuration file? Any pointers
appreciated.

Thanks,

Philip

[1] http://developer.gnome.org/doc/API/2.0/glib/glib-utilities.html

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net


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


Re: [OT] Configuration file parsing

2004-01-12 Thread Gautam Gopalakrishnan
On Mon, Jan 12, 2004 at 11:45:25AM +0100, Philip Schulz wrote:
 Hello!
 
  Let me apologize for asking an offtopic question. If you feel offended,
 please ignore this eMail.
 
  I'm currently working on a program which will be used in a closed company
 environment. The programm is written in C. For this program, I need to find
 a
 way of parsing a configuration file. I found a library which can do exactly
 what I need, it's GLib's lexical scanner [1]. However, it's licensed under
 the
 GPL, so I guess it won't work for me.
  So my question: How can I easily parse a configuration file? Any pointers
 appreciated.

Guess for windows ini files, you could use:

http://freshmeat.net/projects/inifileparser/

Gautam

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


Re: [OT] Configuration file parsing

2004-01-12 Thread Rob
Philip Schulz wrote on Monday January 12, 2004:


  I'm currently working on a program which will be used in a closed
company
 environment. The programm is written in C. For this program, I need to
find
 a
 way of parsing a configuration file. I found a library which can do
exactly
 what I need, it's GLib's lexical scanner [1]. However, it's licensed
under
 the
 GPL, so I guess it won't work for me.

As far as I understand it, the main requirement of the GPL is that you
make the source available to the same people that use the binaries. So
if your program was never released outside the company, an internal FTP
server hosting the source should be sufficent.

Are there other aspects of the GPL that make it unsuitable for your
project?

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


Re: How do I install latest Samba (3.0.1) from ports?

2004-01-12 Thread Matthew Seaman
On Mon, Jan 12, 2004 at 09:58:43AM -, Martyn Hill wrote:

 Is it just a matter of time before the samba 3.0.1 port is made available
 from the ports tree (/net/samba-devel) or is there another way to coherently
 patch the 3.0.0 install without screwing-up the ports install?

The port maintainer will be much better able to answer your question
than we can.  If you want to gain karma points you could have a go at
updating the port to 3.0.1 yourself and then send off the diff to the
maintainer, but only if you're confident that you've made the updated
port work properly.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


xmms - problem - how to fix?

2004-01-12 Thread Alex Zivenko
Hi!
I have some problem with my xmms mm player. When I'm treing to listen some mp3's it 
gives me aN error, that I don't know how to fix. I have KDE 3.1 if you need this info 
^)
So here it is:
bash-2.05b$ xmms
/dev/dsp: Device busy
/dev/dsp: Device busy
/* with OSS driver */

** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): Device busy

** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): Device busy

** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): Device busy
/dev/dsp: Device busy
when i'm truing ESOund driver it gives me an error
esd: Esound sound daemon already running or stale UNIX socket
/tmp/.esd/socket
This socket already exists indicating esd is already running.
Exiting...

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


Re: xmms - problem - how to fix?

2004-01-12 Thread Simon Barner
 I have some problem with my xmms mm player. When I'm treing to
 listen some mp3's it gives me aN error, that I don't know how to fix.
 I have KDE 3.1 if you need this info ^)
 So here it is:
 bash-2.05b$ xmms
 /dev/dsp: Device busy
 /dev/dsp: Device busy
 /* with OSS driver */
 
 ** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): Device busy
 
 ** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): Device busy
 
 ** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): Device busy
 /dev/dsp: Device busy

I don't know exactly, but if XmmS has an arts output plugin, you should
certainly use it, since arts is KDE's default sound daemon.

 when i'm truing ESOund driver it gives me an error
 esd: Esound sound daemon already running or stale UNIX socket
 /tmp/.esd/socket
 This socket already exists indicating esd is already running.
 Exiting...

Does it work when you remove that stale socket?

If none of the above works, you can use the following command to find
out which process bocks your dsp device:

fstat | grep dsp

Regards,
 Simon


signature.asc
Description: Digital signature


Re: Speak Freely

2004-01-12 Thread David Miller
On Mon, 12 Jan 2004, Q wrote:

 On Mon, 2004-01-12 at 05:52, David Miller wrote: 
  Hi All;
  
  I've spent the last two days trying to get speak freely (Internet voice
  program with encryption, see 
 
 If you are intending to use this out of more than just curiosity you
 might want to look at alternatives like some of the OpenH323 clients
 (eg. net/gnomemeeting), as this particular program will be officially
 'End of Life'ed by its author on the 15th of this month.

I know about the end-of-life message.  For now, at least, it doesn't
bother me.

I just now looked at gnomemeeting.  It doesn't appear to support
encryption.  Do you know if there's a way to keep private conversations
private, short of VPN's or the like?

  Speakfreely was first installed from ports, then compiled in half duplex
  mode.  If I launch sfspeaker -d from one window, and sfmike -d some.host
  from another, I get the following error from sfspeaker:
  
  new:dmiller$ sfspeaker -d
  sfspeaker: 10.0.0.3 packet lost by half-duplex muting.
  sfspeaker: 10.0.0.3 packet lost by half-duplex muting.
  sfspeaker: 10.0.0.3 packet lost by half-duplex muting.
 
 This is exactly what's supposed to happen when you compile it with half
 duplex mode enabled. You should recompile it without defining
 HALF_DUPLEX (which should be the default) if you want this behaviour to
 stop.

I started out with full duplex.  The error message said to compile it in
half duplex.

 
  One other thing that seems odd is that sound from the mike comes through
  the speakers even when sfmike is paused.
 
 If this is sound from your locally connected mic, then this is probably
 a mixer 'input source' issue more than anything else. Try playing with
 the 'rec' and 'mic' input level and see if it makes any difference.

I didn't observe this on a windows machine against an echo server.  My
freebsd box doesn't speak anything from an echo server, just gives me
the error messag above.  From looking briefly at the code, it looks like
speakfreely thinks something else already has exclusive access to the
card.

man pcm indicates that the driver is full duplex, for those cards which
support it.  I tried a card with the yamaha chip (opl, iirc) that
certainly supported it, with the same results.

sflaunch should work with half duplex drivers/devices, but I don't get any
sound echoed back from echo servers with it either, just the muting
message above.

What am I doing wrong?

--- David

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


Re: New to FreeBSD 4.9 questions about configuration

2004-01-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2004-01-10 15:12:42 -0800:
 On Friday 09 January 2004 03:42 pm, you wrote:
  # [EMAIL PROTECTED] / 2004-01-09 12:57:26 -0800:
   Mounting root from ufs:/dev/ad0s2a
   ad0s2a: UDMA ICRC error writing fsbn 42387790 of 4160-4163 (ad0s2 bn
   42387790; cn 2638 tn 132 sn 4) retrying
   ad0s2a: UDMA ICRC error writing fsbn 42387790 of 4160-4163 (ad0s2 bn
   42387790; cn 2638 tn 132 sn 4) retrying
   ad0s2a: UDMA ICRC error writing fsbn 42387790 of 4160-4163 (ad0s2 bn
   42387790; cn 2638 tn 132 sn 4) retrying
   ad0s2a: UDMA ICRC error writing fsbn 42379502 of 16-19 (ad0s2 bn
   42379502; cn 2638 tn 0 sn 32) retrying
   ad0s2a: UDMA ICRC error writing fsbn 42379502 of 16-19 (ad0s2 bn
   42379502; cn 2638 tn 0 sn 32) retrying
   ad0s2a: UDMA ICRC error writing fsbn 42379502 of 16-19 (ad0s2 bn
   42379502; cn 2638 tn 0 sn 32) retrying
   ad0s2a: UDMA ICRC error writing fsbn 42379502 of 16-19 (ad0s2 bn
   42379502; cn 2638 tn 0 sn 32) falling back to PIO mode
   in bois the hard drives pio mode is set to auto I have the options of
   auto,and pio mode 1-5, I have tried to play with this abit but no
   diference how do I either make the hard drive work with the udma mode
   or configure the kernal to stay at pio mode in the first place?
 
  this error has several possible reasons, one of them being a crappy
  cable:
 
  http://lists.freebsd.org/pipermail/freebsd-questions/2003-November/025669.html

 after checking the cable to the hard drive it was the 80 wire 40 pin, in good 
 shape
 
 I pulled everything but the hard drive and booted, it fixed it, the cdrom that 
 I had setup as the slave on the ide0 bus seems to be conflicting, so I set up 
 the cdrom and zip on the second bus and marked the ide0 slave as not 
 installed in bios.
 The UDMA ICRC errorer is gone and I now have UDMA 100 everything related to 
 storage  works well now :)

aha. speed of both devices on the same cable is limited to the speed
of the slowest device, IOW a hard disk (normally UDMA) + CDROM
(normally PIO) on one disk means both run in PIO. I'm not sure
wheter the ATA code could handle this more gracefully...

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.see http://www.eyrie.org./~eagle/faqs/questions.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: routing to specific network

2004-01-12 Thread David Miller
On Mon, 12 Jan 2004, Dinesh Nair wrote:

 
 On Sun, 11 Jan 2004, David Miller wrote:
 
  So you want packets for 60.6.* to go out through ISP2?
 
 it is amazing that how something which completely stumps you at 4am,
 suddenly becomes so clear after some sleep and coffee at 11am. i added a
 route for 60.6/16, but was trying to traceroute 61.6/16. the mistake kept
 perpetuating because i kept using the shell's history to run the
 traceroute, and the mind could not tell the difference between the 0 and
 the 1. my bad, and much apologies. all works fine now.

Oops. Now if I had a dollar for every time *I'd* done something like
that...

 
  Zebra implemets a number of routing protocols, including bgp.  With BGP
  you can pick the best route *out* for your packet, but everyone else's
  BGP sessions will decide the best route *in* for you.  In other words,
 
 to me, if i can pick the source ip address of my _outgoing_ packet, i.e.
 on which interface the connection is made, i'd be a happy camper.

Isn't this equivilent to selecting the outbound route?  You want to select
10.a.b.c uf you want the connection routed out ISP 1 and 192.168.x.y
otherwise.


 since i have two interfaces with two ip addies, the first http connection
 can have a 192.168.0/24 ip address, with the flow being carried on fxp0.
 the second http connection have have a 10.1/16 address with the flow being
 carried on the aue0. that would actually solve the problem, without having
 to set up multiple static routes. would this be possible ?

I don't think that's really going to help much.  You still have to have
some basis for knowing which network you want to handle which
connections.  Unless you're doing heavy duty uploading somewhere you're
very likely to be limited by your inbound bandwidth, so it doesn't really
matter which interface you're going out anyway.

FreeBSD should pick the closest IP address for any outgoing connections
anyway.  Say you had two real addresses so we can forget about NAT,
12.1.2.3 and 24.2.3.4.  Say you routed 60.1/16 out the upstream for
24.2.3.4.  Say you pinged 60.1.2.3.  It would already see a source address
on the ping packets of 24.2.3.4, not 12.1.2.3.  You don't have to do
anything special for that to happen - your application would have to bind
to 12.1.2.3 exclusively in order for it to be the source address.

There are bizzare cases where it might make sense to try and load balance
two broadband connections, but they're really special cases and don't have
general purpose solutions:(

--- David

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


cvsup strangeness

2004-01-12 Thread Ion-Mihai Tetcu
Hi,

 
A while ago I've posted :

  I have 2 identical (copy/paste) ports-supfiles on two machines:
 
  it# grep -v '#' /etc/ports-supfile
  *default host=cvsup.ro.FreeBSD.org
  *default base=/usr
  *default prefix=/usr
  *default release=cvs tag=.
  *default delete use-rel-suffix
  *default compress
  ports-all
 
  one is produceing :
  Updating collection ports-all/cvs  
   Edit ports/audio/abcmidi/Makefile  
   Edit ports/audio/abcmidi/distinfo
  ...
 
  The other:
  Updating collection ports-all/cvs
   Edit ports/mail/perdition/pkg-plist
   Edit ports/math/R-letter/Makefile
   SetAttrs ports/math/p5-Statistics-Distributions/Makefile,v
   SetAttrs ports/math/p5-Statistics-Distributions/distinfo,v
  ...
 
  I run it like:
  # cvsup -g /etc/ports-supfile on both machines.
 
  The stupid question:
  why on the second I have the `,v' suffix ?

On the problem machine (4.7) it was installed cvsup-without-gui; now
that I've deinstalled and installed cvsup it outputs OK (e.g. without
`,v'), with the same cvsup config file. 

I wonder if:
1. anyone can reproduce this.
2. if 1. is it a bug or a feature.


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


Problems with FreeBSD 4.8 on Compaq Armada M700 laptop

2004-01-12 Thread John
Despite the fact that the laptop compatibility base has an entry for this
machine that looks good for FreeBSD 5.0, I'm not having the best luck
that one might hope.

I've read through the Release notes and Hardware notes, and Errata
on the web site for this release and on the CD (NFS mounted from
my desktop-based FreeBSD 4.3 system - I know - I'm a little behind),
I haven't found anything that seems to address anything like these issues:

1) The CD-ROM, which worked great to install the system, doesn't work
   when I boot from the hard-drive installed system.  The MFS kernel
   reports 
Jan 11 17:56:56 pearl /kernel: acd0: CDROM Compaq CRN-8241B at ata0-slave PIO
   but I just get device not configured when I boot the GENERIC kernel
   that was installed.  /dev/acd0 does appear in the device directory,
   and I ran MAKEDEV on it, just to make double sure.

2) APM also says device not configured.  Don't know if this works
   with the MFS/installation kernel.

3) Even though xf86config seems to have correctly identified the adapter,
   and it works nicely at 1024x768, I can't seem to get the color depth
   working at anything other than 256.  I have tried startx -- -bpp 24
   and startx -- -bpp 32 and startx -- -bpp 16 but it doesn't seem to
   matter.

The PCMCIA/PC-Card stuff appears to be working, but I haven't tested
it very thoroughly yet.  I have xdm and kde up and running - so
much is going well - but the CD-ROM issue is really slowing me
down, and the display could sure use those extra colors...

Maybe I should try a binary upgrade to 4.9, now that it's out?
I don't currently have any reason to think that would help, but
I haven't got any other go forward ideas, either.

Thoughts, suggestions, redirections all appreciated!  Thanks!
-- 

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


Re: how to use /boot/loader to load the kernel ?

2004-01-12 Thread Adrian Pircalabu
On Fri, 9 Jan 2004 22:08:49 -0800
Drew Tomlinson [EMAIL PROTECTED] wrote:

 - Original Message -
 From: Adrian Pircalabu [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, January 09, 2004 1:33 AM
 Subject: Re: how to use /boot/loader to load the kernel ?
 
 
  On Fri, 9 Jan 2004 11:28:53 +0200
  Adrian Pircalabu [EMAIL PROTECTED] wrote:
 
   Hi,
  
   What can I do to use /boot/loader to load the kernel ? I can not
   use various commands like top (nlist failed), vmstat( undefined
   symbols:_kmemstatistics _bucket _zlist).
   My fstab looks like this:
   /dev/ad0s1b noneswapsw  0   0
   /dev/ad0s2a /   ufs rw,async1   1
   /dev/ad0s2e /boot   ufs rw,async2   2
   /dev/ad0s2f /home   ufs rw,async2   2
   /dev/acd0c /cdrom  cd9660  ro,noauto   0   0
   proc /proc   procfs  rw  0   0
  
   I read the sections from handbook regarding boot stages, but I
   could not find any clue. What other info should I provide to you?
   Thank you.
 
  The problem arised after I upgraded from 4.7-RELEASE to 4-STABLE
 
 Most likely your world and kernel are out of sync.  Read UPDATING and
 follow the instructions carefully.
I read /usr/src/UPDATING file, and I am afraid this issue has something
to do with my partitioning layout. Right before boot2 I get this No
/boot/loader error. After that, it starts loading /kernel and I get
another error - loader metadata missing. In /boot directory everything
seems ok, all files are in the proper place, /boot/loader is 555. Could
this be any sort of limitation in machine's BIOS ?

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


-- 

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


Re: Size of /var worries me

2004-01-12 Thread Roger 'Rocky' Vetterberg
parv wrote:
...only thing that i desire(d) is/was to give / much less than 128MB,
but couldn't (during the space slicing).
That and to combine /usr2  /usr3 now.  But default inode space
allocation of 8%/slice will kill me anyway.  I really have to remember
about the newfs options next time.
Do you really mean inode space, or the 8% minimum free space treshold?

If its the later, try this:
umount /usr  tunefs -m 0 /dev/ad-whatever  mount /usr
--
R
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Trouble getting network card to work

2004-01-12 Thread Jared Cheney
Thanks for the suggestion.  I tried this and unfortunately, it did not work
:(  Same behavior no matter what PCI slot I put it in.  I have successfully
been able to get an old ISA NE2000 card configured and up in the system, so
I'm at least able to talk on the network.  However, I'd really like to get
the PCI card working, so I can get 100Mbps connections.

Anyone have any other ideas?

Thanks
fbsd_user [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I just went through that on my pre Y2K PC using 4.9. Different PCI
 Nic card, but same symptoms. Had to enable verbose boot messages.
 Saw that every time I rebooted system the boot log showed an msg
 saying something about unrecognized ID. I know the card was good so
 I just kept moving the Nic card to different PCI slot, rebooting,
 until it finally worked.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Jared
 Cheney
 Sent: Saturday, January 10, 2004 4:28 PM
 To: [EMAIL PROTECTED]
 Subject: Trouble getting network card to work

 Hello,

 I've just installed FreeBSD 4.9 and am having trouble getting my
 network
 card to work.  It is very odd, because it appears as though the
 kernel
 recognizes the card just fine and is using the pcn module to bring
 it up,
 etc.

 It is an AMD 79c79x card (according to FreeBSD).  I can view/set
 properties
 via ifconfig - and it properly shows whether or not there is link.
 I cannot
 obtain a DHCP lease, nor can I ping any other hosts on my network
 when I
 have a static IP configured.

 To ensure that the NIC is fine and all cables, etc. - I booted from
 a
 bootable Linux CD (Knoppix), where I was able to use the card fine
 to ping,
 browse the Internet, etc.  Linux showed it as an AMD 79c970 [PCNET32
 LANCE]
 card.

 The card is called pcn0 in FreeBSD, and it says that it is sharing
 IRQ 10.
 Running tcpdump for any length of time also shows that 0 packets
 were
 received by the filter.

 Anyone have any ideas as to what could be the problem?

 Thanks, in advance,
 Jared



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

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




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


set env editor global

2004-01-12 Thread fbsd_user
On an new install with only an root account, I want to set the
command line prompt prefix
and the default editor for all new users and also the root account.

What file do I put the 'set env' commands in to make this happen
globally?

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


Re: Trouble getting network card to work

2004-01-12 Thread Kevin D. Kinsey, DaleCo, S.P.
Jared Cheney wrote:

Thanks for the suggestion.  I tried this and unfortunately, it did not work
:(  Same behavior no matter what PCI slot I put it in.  I have successfully
been able to get an old ISA NE2000 card configured and up in the system, so
I'm at least able to talk on the network.  However, I'd really like to get
the PCI card working, so I can get 100Mbps connections.
Anyone have any other ideas?

Thanks
 

Have you seen any of the error messages
that are listed in the pcn(4) manual?
Kevin Kinsey

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


RE: Trouble getting network card to work

2004-01-12 Thread fbsd_user
Add this to your kernel source and recompile the kernel.

device puc

This uses an more detailed approach to probing older bio's
and motherboards PCI slots.
I found this as an solution posted in the questions archives.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jared
Cheney
Sent: Monday, January 12, 2004 10:33 AM
To: [EMAIL PROTECTED]
Subject: Re: Trouble getting network card to work

Thanks for the suggestion.  I tried this and unfortunately, it did
not work
:(  Same behavior no matter what PCI slot I put it in.  I have
successfully
been able to get an old ISA NE2000 card configured and up in the
system, so
I'm at least able to talk on the network.  However, I'd really like
to get
the PCI card working, so I can get 100Mbps connections.

Anyone have any other ideas?

Thanks
fbsd_user [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I just went through that on my pre Y2K PC using 4.9. Different PCI
 Nic card, but same symptoms. Had to enable verbose boot messages.
 Saw that every time I rebooted system the boot log showed an msg
 saying something about unrecognized ID. I know the card was good
so
 I just kept moving the Nic card to different PCI slot, rebooting,
 until it finally worked.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Jared
 Cheney
 Sent: Saturday, January 10, 2004 4:28 PM
 To: [EMAIL PROTECTED]
 Subject: Trouble getting network card to work

 Hello,

 I've just installed FreeBSD 4.9 and am having trouble getting my
 network
 card to work.  It is very odd, because it appears as though the
 kernel
 recognizes the card just fine and is using the pcn module to bring
 it up,
 etc.

 It is an AMD 79c79x card (according to FreeBSD).  I can view/set
 properties
 via ifconfig - and it properly shows whether or not there is link.
 I cannot
 obtain a DHCP lease, nor can I ping any other hosts on my network
 when I
 have a static IP configured.

 To ensure that the NIC is fine and all cables, etc. - I booted
from
 a
 bootable Linux CD (Knoppix), where I was able to use the card fine
 to ping,
 browse the Internet, etc.  Linux showed it as an AMD 79c970
[PCNET32
 LANCE]
 card.

 The card is called pcn0 in FreeBSD, and it says that it is sharing
 IRQ 10.
 Running tcpdump for any length of time also shows that 0 packets
 were
 received by the filter.

 Anyone have any ideas as to what could be the problem?

 Thanks, in advance,
 Jared



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

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




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

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


Re: [OT] Configuration file parsing

2004-01-12 Thread Kirk Strauser
At 2004-01-12T11:21:02Z, Rob [EMAIL PROTECTED] writes:

 As far as I understand it, the main requirement of the GPL is that you
 make the source available to the same people that use the binaries. So if
 your program was never released outside the company, an internal FTP
 server hosting the source should be sufficent.

That's not even necessary.  If you're not distributing it outside the
company, then you're not obligated to provide source to people within the
company.
-- 
Kirk Strauser

94 outdated ports on the box,
 94 outdated ports.
 Portupgrade one, an hour 'til done,
 82 outdated ports on the box.


pgp0.pgp
Description: PGP signature


Re: cvsup strangeness

2004-01-12 Thread Ion-Mihai Tetcu
On Mon, 12 Jan 2004 09:22:51 -0500
fbsd_user [EMAIL PROTECTED] wrote:

 There was an problem with cvsup and Y2K about number of seconds in
 year that caused your problem in the new century. Get both boxes at
 the same current version of cvsup-without-gui and they will perform
 the same.  This is real old history, that why nobody replied to your
 original post.  

But it is the latest:
/home/itetcu/tmp/tmp2# portversion -v 'cvsup*'
cvsup-16.1h =  up-to-date with port

 On the problem machine (4.7) it was installed cvsup-without-gui; now
 that I've deinstalled and installed cvsup it outputs OK (e.g.
 without
 `,v'), with the same cvsup config file.

It seems that the change did not solve the problem, as now I'm getting
`,v' agin.


 You really need to get your FBSD environment updated
 to the current 4.9 stable production release.

I will, when I will be convinced vinum and a few custom tricks I've did
will not won't break. It is an internal machine.

 There is an 5.3 release waiting to be released but it still is to
 unreliable. I would not go to any of the 5.x versions as an new file
 system is used and there are reports of an file system lockout under
 heave loads.  

Yes, I know, I'm writing from a current box.

 Even if they release 5.3 stable, it is not stable yet
 and will go through some sub-releases like 4.8 did.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Ion-Mihai
 Tetcu
 Sent: Monday, January 12, 2004 8:51 AM
 To: [EMAIL PROTECTED]
 Subject: cvsup strangeness
 
 Hi,
 
 
 A while ago I've posted :
 
   I have 2 identical (copy/paste) ports-supfiles on two machines:
 
   it# grep -v '#' /etc/ports-supfile
   *default host=cvsup.ro.FreeBSD.org
   *default base=/usr
   *default prefix=/usr
   *default release=cvs tag=.
   *default delete use-rel-suffix
   *default compress
   ports-all
 
   one is produceing :
   Updating collection ports-all/cvs
Edit ports/audio/abcmidi/Makefile
Edit ports/audio/abcmidi/distinfo
   ...
 
   The other:
   Updating collection ports-all/cvs
Edit ports/mail/perdition/pkg-plist
Edit ports/math/R-letter/Makefile
SetAttrs ports/math/p5-Statistics-Distributions/Makefile,v
SetAttrs ports/math/p5-Statistics-Distributions/distinfo,v
   ...
 
   I run it like:
   # cvsup -g /etc/ports-supfile on both machines.
 
   The stupid question:
   why on the second I have the `,v' suffix ?
 
 On the problem machine (4.7) it was installed cvsup-without-gui; now
 that I've deinstalled and installed cvsup it outputs OK (e.g.
 without
 `,v'), with the same cvsup config file.
 
 I wonder if:
 1. anyone can reproduce this.
 2. if 1. is it a bug or a feature.
 
 
 --
 IOnut
 Unregistered ;) FreeBSD user
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 


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


Re: Other ways than quotas to limit mail files size ??

2004-01-12 Thread Dan Pelleg
Greg Bernard [EMAIL PROTECTED] writes:

 Is there another way to limit the amount of space occupied by mail files on
 a per user basis using another method than quotas ?
 
 I would like to limit the amount of space available for each user's e.mail
 so e.mail file size will not go crazy.
 
 
 Thanks for your advices...
 

I've never tried this, but it should work: set up a vn(4) disk of the right
size, and arrange for the user's spool to be on its mountpoint. See
vnconfig(8) for setup examples.

-- 

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


#2 - Swapped disks and now stuck in the mountroot prompt

2004-01-12 Thread roberto


Date: 12 jan 2004

I've installed FreeBSD 4.9 on a ide0:0 (primary IDE, master hd) then
ported the hard disk on a second PC and installed as ide1:0 (secondary
IDE, master hd) without update the /etc/fstab file.

When booting the kernel start probing devices, I see the disk as ad2
then the kernel halts when trying to mount the root file system with the
following message:

   mount root from ufs:/dev/ad0s1a
   root mount failed: 6

At the prompt I've tried with ufs:/dev/ad2s1a, now the right device, but
it does not work.

The solution is to instruct the kernel with the right device: but ad2s1a
seems to be wrong...

After several attempts I discover that the kernel must be started with the
option -a: with this flag the device ufs:/dev/ad2s1a is accepted by
mountroot  and the boot proceed. Than I can change the fstab
accordingly to make the change permanent.

My question are:
 1) I've made any mistake ?
 2) Without the boot -a flag, why the kernel ask me a device and even it
is the correct one vfs_conf.c:vfs_mountroot_ask() give me the error code
6?


Thanks
Roberto

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


pr 53245 fixed in 5.2R?

2004-01-12 Thread Jason Taylor
Has the fix for this problem been incorporated into 5.2-RC2?  I've 
searched, but haven't found a definitive answer. 
http://www.freebsd.org/cgi/query-pr.cgi?pr=53245
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I add a third ATA controller to 4.8?

2004-01-12 Thread Paul Hoffman
At 9:20 AM + 1/12/04, Martyn Hill wrote:
Paul

I notice that the kernel config file you present is using the old device
ata lines - is the ATA controller a particularly old model?
If not, then the LINT kernel config file shows an alternative, viz

deviceata# just one entry for all ata controllers, no need
to reference IRQs etc...
deviceatadisk# for your IDE disks
deviceatapicd# for your CD-ROM like devices
You should comment out the ata0/ata1 lines before adding the above (and
additionally, remove any device wd* lines in that section.)
Then rebuild your kernel.

Hope that helps.
Thanks to all for the effort, but it didn't. The dmesg output still 
shows only ata0 and ata1. I am starting to believe that the problem 
lies in the Dell, not in FreeBSD.

I'll work around this by attaching the drive to the second IDE 
controller and later experiment with adding a third controller on the 
PCI bus.

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


Re: [OT] Configuration file parsing

2004-01-12 Thread Charles Swiger
On Jan 12, 2004, at 5:45 AM, Philip Schulz wrote:
 I'm currently working on a program which will be used in a closed 
company
environment. The programm is written in C. For this program, I need to 
find
a way of parsing a configuration file. I found a library which can do 
exactly what I need, it's GLib's lexical scanner [1].
What are your requirements for this configuation file?

Something that deals with classic Unix config files (ie, along the 
lines of /etc/rc.conf and the like), with #-style comments and simple 
key-value assignment should only take a few hours to whip up, if you 
can't use GLib or other GPL'ed code for your circumstances.

If you need something fancier, consider lex and yacc (or flex  bison), 
but XML property lists are another alternative that might be more 
flexible.

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


linuxpluginwrapper + libmap.conf + fbsd4.9

2004-01-12 Thread epilogue
hello all,

i am trying to build the libmap.conf feature under 4.9 in order to install
the linuxpluginwrapper port.  hopefully someone here will know what to
suggest for the error message i am getting.


port error msg under vanilla 4.9


Please enable libmap.conf(5) feature for rtld(1).
4-stable user:
You can get a following patch.
http://people.FreeBSD.org/~nork/libmap_4stable.diff
Please apply on /usr/src and make install on
/usr/src/libexec/rtld-elf.


download the patch and apply


/usr/src# patch  /foo/libmap_4stable.diff
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
 [snip]
Patching file libexec/rtld-elf/rtld.c using Plan A...
Hunk #1 succeeded at 52.
Hunk #2 succeeded at 132.
Hunk #3 succeeded at 295.
Hunk #4 succeeded at 369.
Hunk #5 succeeded at 797.
Hunk #6 succeeded at 1444.
done


here is where problem occurs


/usr/src/libexec/rtld-elf# make install
install -s -o root -g wheel -m 555  -fschg -C -b ld-elf.so.1 /usr/libexec
install: ld-elf.so.1: No such file or directory
*** Error code 71



i have also tried to 'make buildworld' with the patched source, but it
fails.  however, the failure doesn't seem to be tied directly to the
rtld-elf piece (at least from what i can see).

any suggestions would be very much appreciated.


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


Re: set env editor global

2004-01-12 Thread Charles Swiger
On Jan 12, 2004, at 10:37 AM, fbsd_user wrote:
On an new install with only an root account, I want to set the
command line prompt prefix and the default editor for all new users 
and also the root account.

What file do I put the 'set env' commands in to make this happen
globally?
Look at /etc/profile and /etc/csh.cshrc.

[ Note that root has /bin/sh as it's shell, whereas normal users will 
be using csh by default.  This matters because different shells have 
different syntax and config file locations. ]

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


Re: Problem with amd (automount daemon)

2004-01-12 Thread Ernst de Haan
Still haven't completely figured out what the solution is, but I think I 
know what's happening:

- kscd is hanging to the drive, even though there is no audio CD in there
- amd fails at the first attempt to read /dev/cd0c and fails on succeeding
  calls

However, even if I reload amd with 'killall -HUP amd' it doesn't show 
anything below /mnt/cdrom/. Perhaps there is some other file locked?

  I've got a problem with amd. This is the error I get when I access my
  CD-ROM drive at /mnt/cdrom/:

[...]

 Is amd running, and with what arguments?  What does your /etc/amd.conf
 file look like?  Are portmap and nfsiod running?

It has to be running, otherwise I wouldn't get the error messages, I 
presume..

This is in my /etc/rc.conf:

portmap_enable=YES
amd_enable=YES
amd_flags=-a /.amd_mnt -c 3636 -l syslog /host /etc/amd.map

And indeed it's running:

$ ps -ax | grep amd
   88  ??  Is 0:00.02 amd -p -a /.amd_mnt -c 3636 -l syslog /host /etc/
amd.map

 Also, I've found that at least some CD audio playing programs, like ascd,
 will hang onto the cd device even when they aren't playing and there's no
 audio CD in the tray.  If I try to access a data CD after playing an
 audio CD, I will get the error you see unless I kill the CD-playing
 program.

I did that and indeed kscd was hanging on it. I killed it and tried fstat 
again, and now I get:

$ fstat /dev/rcd0c
USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W NAME

Nothing. Yet if I try to access /mnt/cdrom nothing happens.


Ernst

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


Re: How do I add a third ATA controller to 4.8?

2004-01-12 Thread peter lageotakes

--- Paul Hoffman [EMAIL PROTECTED] wrote:
 At 9:20 AM + 1/12/04, Martyn Hill wrote:
 Paul
 
 I notice that the kernel config file you present is
 using the old device
 ata lines - is the ATA controller a particularly
 old model?
 
 If not, then the LINT kernel config file shows an
 alternative, viz
 
 deviceata# just one entry for all
 ata controllers, no need
 to reference IRQs etc...
 deviceatadisk# for your IDE disks
 deviceatapicd# for your CD-ROM like
 devices
 
 You should comment out the ata0/ata1 lines before
 adding the above (and
 additionally, remove any device wd* lines in that
 section.)
 
 Then rebuild your kernel.
 
 Hope that helps.
 
 Thanks to all for the effort, but it didn't. The
 dmesg output still 
 shows only ata0 and ata1. I am starting to believe
 that the problem 
 lies in the Dell, not in FreeBSD.
 
 I'll work around this by attaching the drive to the
 second IDE 
 controller and later experiment with adding a third
 controller on the 
 PCI bus.
 
 --Paul Hoffman
 ___
 [EMAIL PROTECTED] mailing list

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

There seems to be a PR associated with the ATA
controller (PR 54549).
http://www.freebsd.org/cgi/query-pr.cgi?pr=54549

I have had a similar problem trying to get FreeBSD
(4.9) installed.  Unfortunately, I don't remember how
I got it installed on the 600sc.  However, I do
remember one thing: going into /stand/sysinstall will
cause the system to lock (panic). 

Currently its running something else other than
FreeBSD :-(

Hope this helps,
Pete


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mt command index?

2004-01-12 Thread stan walters
Hello all,
I've been getting started with backups and have found useful information about dump, 
tar, and mt in the archives of this list.  For my purposes, tar will work better than 
dump, so I'm trying to run multiple sessions per tape using tar and the mt fsf x/mt 
eom commands to navigate my way around the sessions.  My question is:  is there a 
simple way to generate and index or catalog of the sessions on a tape when used in 
this way?  
 
I use mt eom and tar my next session, but if I forget to write one down, I'm n-1 
backup and I end up overwriting the forgotten session, so the ability to catalog 
first would be very helpful.  Any info appreciated.
Thanks,
Stan


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: aic7xxx/FreeBSD/Linux can't find disk drives

2004-01-12 Thread Toomas Aas
 Thanks again.  I've spent the weekend trying to get this thing going... 
   I know both scsi hosts are supported by FreeBSD and Linux, there 
 aren't any IRQ conflicts between the devices

Are the disks detected by Adaptec BIOS scan during the system bootup?
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* A woman's husband's previous wife is called her 'wife-in-law.'

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


Re: xmms - problem - how to fix?

2004-01-12 Thread Gautam Gopalakrishnan
On Sun, Jan 11, 2004 at 02:24:30PM +0200, Alex Zivenko wrote:
 Hi!
 I have some problem with my xmms mm player. When I'm treing to listen some mp3's it 
 gives me aN error, that I don't know how to fix. I have KDE 3.1 if you need this 
 info ^)
 So here it is:
 bash-2.05b$ xmms
 /dev/dsp: Device busy
 /dev/dsp: Device busy
 /* with OSS driver */
 
 ** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): Device busy
 
 ** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): Device busy
 
 ** WARNING **: oss_open(): Failed to open audio device (/dev/dsp): Device busy
 /dev/dsp: Device busy


I have the same error sometimes when I use mpg123 or mplayer. I
don't have kde or any sound daemon like arts or esound. fstat does
not help too. I just have to wait for sometime for the device to
be available again, maybe a minute. Any ideas, welcome

Gautam

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


Re: linuxpluginwrapper + libmap.conf + fbsd4.9

2004-01-12 Thread Andrew J Caines
epi,

I reported what I suspect is this problem to the maintainer
([EMAIL PROTECTED]) last night. It's working for me, so it should work for
you too.

 /usr/src# patch  /foo/libmap_4stable.diff

Use...

# patch -p0  /foo/libmap_4stable.diff

The -p0 made the difference in my case, even though without it the patch
appeared to apply correctly.

 /usr/src/libexec/rtld-elf# make install

For good measure, I'd use...

# make clean all  sudo make install

Please follow up to -ports to report success or failure.


-Andrew-
-- 
 ___
| -Andrew J. Caines-   Unix Systems Engineer   [EMAIL PROTECTED]  |
| They that can give up essential liberty to obtain a little temporary |
|  safety deserve neither liberty nor safety - Benjamin Franklin, 1759 |
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Mounting as non-root?

2004-01-12 Thread Eric F Crist
What is the most secure way to enable mounting of flash drives, cdroms, and 
floppies?  I've seen solutions that include setting setuid on mount.  I would 
rather not go this route.  Is there any other easy, secure way?
-- 
Eric F Crist
AdTech Integrated Systems, Inc
(612) 998-3588

pgp0.pgp
Description: signature


Re: Best practices - USB 2.0 PCI card and gigabit ethernet PCI c

2004-01-12 Thread Toomas Aas
Hi!

 I am running freebsd 4.9 and want to add:
 
 - a USB 2.0 PCI card

AFAIK, FreeBSD 4.9 only supports USB 1.0. Depending on what you want to 
do, there are two options:

- upgrade to 5.x, which supports USB 2.0 (but is possibly a bit too 
  cutting edge)

- use FireWire devices instead of USB 2.0. FireWire is supported in 
  FreeBSD 4.9

--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* It's always darkest right before you step on the cat.

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


Re: Mounting as non-root?

2004-01-12 Thread Gautam Gopalakrishnan
On Mon, Jan 12, 2004 at 02:40:54PM -0600, Eric F Crist wrote:
Content-Description: signed data
 What is the most secure way to enable mounting of flash drives, cdroms, and 
 floppies?  I've seen solutions that include setting setuid on mount.  I would 
 rather not go this route.  Is there any other easy, secure way?

sudo is the easiest I've seen. I've stopped using su nowadays, for anything

Gautam

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


Re: Mounting as non-root?

2004-01-12 Thread Eric F Crist
On Monday 12 January 2004 02:50 pm, Gautam Gopalakrishnan wrote:
 On Mon, Jan 12, 2004 at 02:40:54PM -0600, Eric F Crist wrote:
 Content-Description: signed data

  What is the most secure way to enable mounting of flash drives, cdroms,
  and floppies?  I've seen solutions that include setting setuid on mount. 
  I would rather not go this route.  Is there any other easy, secure way?

 sudo is the easiest I've seen. I've stopped using su nowadays, for anything

Gautam,

I guess I should have specified a little clearer.  My desktop users have an 
icon on their desktops so they can access the cdrom, usb flash drives, etc.  
They need the ability to just right-click an select mount or unmount.  I have 
temporarily setuid on mount and umount, but this allows these users to mount 
and unmount core filesystems, too. I would like to get away from this.
-- 
Eric F Crist
AdTech Integrated Systems, Inc
(612) 998-3588

pgp0.pgp
Description: signature


RE: set env editor global

2004-01-12 Thread fbsd_user
I think you are incorrect about root using the sh shell as default.
 My new fresh install of 4.9 uses csh as the root default shell.
I did nothing to make this happen, that's the way the system
was installed from the cdrom install disk.

I am to only one on this stand-a-lone system and ps ax
command shows me as csh.

The /etc/csh.cshrc does set the defaults for new users
added to the system, but has no effect on root.
Had the edit root .cshrc file to set env defaults for root.

But thanks for the pointer to /etc/csh.cshrc



-Original Message-
From: Charles Swiger [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 1:44 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED] ORG
Subject: Re: set env editor global

On Jan 12, 2004, at 10:37 AM, fbsd_user wrote:
 On an new install with only an root account, I want to set the
 command line prompt prefix and the default editor for all new
users
 and also the root account.

 What file do I put the 'set env' commands in to make this happen
 globally?

Look at /etc/profile and /etc/csh.cshrc.

[ Note that root has /bin/sh as it's shell, whereas normal users
will
be using csh by default.  This matters because different shells have
different syntax and config file locations. ]

--
-Chuck

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


Re: Mounting as non-root?

2004-01-12 Thread Gautam Gopalakrishnan
On Mon, Jan 12, 2004 at 02:59:38PM -0600, Eric F Crist wrote:
Content-Description: signed data
 On Monday 12 January 2004 02:50 pm, Gautam Gopalakrishnan wrote:
  On Mon, Jan 12, 2004 at 02:40:54PM -0600, Eric F Crist wrote:
  Content-Description: signed data
 
   What is the most secure way to enable mounting of flash drives, cdroms,
   and floppies?  I've seen solutions that include setting setuid on mount. 
   I would rather not go this route.  Is there any other easy, secure way?
 
  sudo is the easiest I've seen. I've stopped using su nowadays, for anything
 
 Gautam,
 
 I guess I should have specified a little clearer.  My desktop users have an 
 icon on their desktops so they can access the cdrom, usb flash drives, etc.  
 They need the ability to just right-click an select mount or unmount.  I have 
 temporarily setuid on mount and umount, but this allows these users to mount 
 and unmount core filesystems, too. I would like to get away from this.


My newbie suggestion would be to make mount and umount a shell
script which just execs sudo. In sudo, you could specify which users
could (un)mount which devices. You would obviously need to rename
mount and umount and remember to keep track when you do a buildworld...
My 0.02

Gautam


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


Re: Mounting as non-root?

2004-01-12 Thread Ernst de Haan
Eric,

Use amd, the auto-mounting daemon. See:

http://www.daemonnews.org/200202/automounting.html

Let me know how this works for you. I've got some problems with it, probably 
mainly due to an Audio CD program getting in the way.

Ernst


On Monday 12 January 2004 20:59, Eric F Crist wrote:
 On Monday 12 January 2004 02:50 pm, Gautam Gopalakrishnan wrote:
  On Mon, Jan 12, 2004 at 02:40:54PM -0600, Eric F Crist wrote:
  Content-Description: signed data
 
   What is the most secure way to enable mounting of flash drives,
   cdroms, and floppies?  I've seen solutions that include setting
   setuid on mount. I would rather not go this route.  Is there any
   other easy, secure way?
 
  sudo is the easiest I've seen. I've stopped using su nowadays, for
  anything

 Gautam,

 I guess I should have specified a little clearer.  My desktop users have
 an icon on their desktops so they can access the cdrom, usb flash drives,
 etc. They need the ability to just right-click an select mount or
 unmount.  I have temporarily setuid on mount and umount, but this allows
 these users to mount and unmount core filesystems, too. I would like to
 get away from this.

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


CUPS Admin Error

2004-01-12 Thread Bryan Cassidy
When I launch http://localhost:631/admin after installed and setting up
CUPS with these instructions

http://www.freebsdforums.com/forums/showthread.php?s=threadid=15325highlight=cups

and I get the following error after entering the following information

Request Entity Too Large The request is too large for this server to
process.HTTP/1.1 413 Request Entity Too Large Date: Mon, 12 Jan 2004
05:53:06 GMT Server: CUPS/1.1 Content-Language: en-us,en;q=0.5 Upgrade:
TLS/1.0,HTTP/1.1 Connection: close Content-Type: text/html Content-Length:
168 Request Entity Too Large The request is too large for this server
to process.

I also did the following

cd /dev  ./MAKEDEV lpt0

ls -l lpt0

crw---  1 root  wheel   16,   0 Jan 11 19:19 /dev/lpt0

lptcontrol -i -d /dev/lpt0

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


Promise Fastrak ATA RAID 1 mirror lost

2004-01-12 Thread Michael
Hi,

I have an intel motherboard with an onboard Promise Fastrak ATA RAID. 
This morning it reported that the mirror was lost and I would like to 
rebuild it.

My system is FreeBSD 4.8-RELEASE-p10. This is what's reported from 
`atacontrol list`:
ATA channel 0:
Master: acd0 CD-540E/1.0A ATA/ATAPI rev 0
Slave:   no device present
ATA channel 1:
Master:  no device present
Slave:   no device present
ATA channel 2:
Master:  ad4 ST380021A/3.19 ATA/ATAPI rev 5
Slave:   no device present
ATA channel 3:
Master:  ad6 ST380021A/3.19 ATA/ATAPI rev 5
Slave:   no device present

The kernel message that I saw in my daily report was this:
ad6: hard error reading fsbn 140018943 of 0-127 (ad6 bn 140018943; cn 
138907 tn
10 sn 57) trying PIO mode
ad6: DMA problem fallback to PIO mode
ad6: DMA problem fallback to PIO mode
ad6: DMA problem fallback to PIO mode
ad6: DMA problem fallback to PIO mode
ad6: hard error reading fsbn 140019007 of 0-127 (ad6 bn 140019007; cn 
138907 tn
11 sn 58) status=59 error=00
ar0: WARNING - mirror lost

Which is confirmed by the output of `atacontrol status ar0`:
ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
So I looked at the handbook 
(http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/raid.html) 
and in section 12.4.3 it suggests that I detach, attach and then 
rebuild the array. Can I do this on a running system or do I first need 
to drop to single user mode? If I do that, how do that without 
rebooting? Does anyone have any experience with this?

The other option seems to be to reboot the computer and use the Fastrak 
firmware to rebuild the array.

Which option is the most painless? I have recent dumps of the system, 
but I would prefer not to have to go that route.

Thanks for any help/suggestions,

Michael

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


Re: CUPS Admin Error

2004-01-12 Thread Chris Howells
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Monday 12 January 2004 22:27, Bryan Cassidy wrote:
 and I get the following error after entering the following information

 Request Entity Too Large The request is too large for this server to

What version of FreeBSD? Did you install CUPS from packages? The CUPS package, 
in 4.7 IIRC, was broken and generated this kind of error.

- -- 
Cheers, Chris Howells -- [EMAIL PROTECTED], [EMAIL PROTECTED]
Web: http://chrishowells.co.uk, PGP ID: 0x33795A2C
KDE/Qt/C++/PHP Developer: http://www.kde.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFAAxJNF8Iu1zN5WiwRArWiAJ4wy11w74eRXuqjd090fk+Qe3UEEgCgiKXq
ISevM7ZTylgW4fu3ClpAE/Q=
=P85/
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD, SSH and Enter Authentication Response

2004-01-12 Thread Rishi Chopra
I have a nitpicky question about logging into a FreeBSD machine and 
SSH.  I'm using a minimal FreeBSD install and SSH Secure Shell client 
v3.2.0 - the crux of the problem is I am unable to smoothly login.

When I login to my machine, I'm prompted to enter an authentication 
response.  A window is displayed with Enter Authentication Response 
in the title bar, and two buttons at the bottom ('OK' and 'Cancel') - 
the text says:

  Enter your authentication response.
  Password:
If I enter my password, I'm prompted with another window that has the 
same title in the title bar, but says the following only:

  Enter your authentication response.

I can then either select the 'OK' button or the 'Cancel' button.

If I choose cancel for the first dialogue box, I'm prompted with a 
window that says Enter Password in the title bar and the text reading:

  Password:

This is the window I normally see when I login to other *nix servers 
(mainly servers on the UC Berkeley campus, mostly SunOS 5.8 boxes).  Is 
the FreeBSD box doing something during the SSH authentication process 
that causes the client not to display the enter password dialogue as 
soon as I connect to the server?  How I can get my server to simply 
prompt for my password the first time (e.g. can I make a change such 
that I don't have to press 'OK' on a secod dialogue after entering my 
password, or so that I don't have to press 'Cancel' first and then enter 
my password?)

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


Unsupported Driver at the instalaltion section

2004-01-12 Thread Vahric MUHTARYAN


Hi Everybody, 

Sorry I know this kind of question posted the list but I can't catch
it. I'm almost using intel based board and RAID controllers and some time
Promise RAID controller for IDE Disk . I don't have any gripe about drivers
because all of them are foundable by FreeBSD . 

f hardware vendor have a driver or build new driver for FreeBSD
newly Does it possible to introduce this driver to the FreeBSD because I
cant find any section on handbook for . 


Vahric  




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


Re: 4.9, 5.1 boot failure after install

2004-01-12 Thread danl
We finally have mail working again. I heard a number of responses. 
though none was the actual solution, corporately they massaged one 
to being. From one guy who installed redhat, to someone using the 
live disk, to adjusting bootstraps I still couldn't get to the file system, 
even after installing slackware. Problem is the hologram was writing 
over the error prompt. It wasn't until I used the raid device format and 
attempted to install that I got a readable error not close enough to 
boundary edge that I caught on that I probably had a geometry 
problem. I installed slackware but that didn't work. 

Out of frustration I installed windows 2000 and successfully replaced it 
with 4.9. I then tried to replace that with 5.1 and it failed. I then tried to 
reinstall 4.9 and that failed. I then went back to installing windows 
2000 then replacing it with 4.9 and writing the geometry down. On the 
next attempt to install 5.1 I saw the geometry changed and the install 
failed. I attempted to reinstall 4.9 and it failed. I again reinstalled 4.9 
changing the geometry to what I'd written down and the install was 
successful.

The geometry chosen by windows worked. Now I don't know if it is the 
best economy (could be windows huge blocks wasting space on small 
files) but it does work. Here's the rub, this geometry is a lucky guess 
on 17G drives, what about when I replace them with 50 or 80G drives. 
How do I figure out the proper geometry? I'd like to setup 5.1 before I 
commit this box to the network, but it needs a different geometry that I 
couldn't guess. Is there a requirement standard? A special offset at the 
start of the disk space?

any help much appreciated.

Dan


To: [EMAIL PROTECTED]
Copies to:  [EMAIL PROTECTED]
Send reply to:  [EMAIL PROTECTED]
Subject:Re: 4.9, 5.1 boot failure after install
From:   Lowell Gilbert [EMAIL PROTECTED]
Date sent:  27 Dec 2003 10:11:21 -0500

 [EMAIL PROTECTED] writes:
 
  Hello,
  
  I had 4.9 release working and did a clean install of 5.1 release over 
  the 4.9 and ended up with boot failure after install. Using allBSD 
  partition and standard MBR I get a missing operating system error. If I 
  use the FreeBSD boot I just get default F1 and a beep. Now trying to 
  install the 4.9 gives the same results.
  
  I'm using a Mylex DAC960ptl (accelraid 250) with the primary disk 
  setup as JBOD. I set the bootable disk as active but everytime I go 
  back to config fdisk the flag is not set. 
  
  I then upgraded and flashed the RAID card, reformatted the disks and 
  tried a 4.9 install, again with the same results.
  
  Is there an issue with the DAC card geometry or BIOS? Or a subtle 
  quirk that isn't documented yet?
 
 Sounds more like you're not using the option to actually write out the
 results to disk.  (W)rite, maybe?


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


ngctl and rc.conf

2004-01-12 Thread Tillman Hodgson
Howdy folks,

What's the best way to build ng_one2many interfaces into rc.conf such
that they're brought up (live) at the normal time so that:

1) configuration remains centralized in rc.conf
2) other pieces that depend on a network being present don't fail in
   enlightening ways?

I want to avoid the make a shell script in /usr/local/etc/rc.d
approach.

-T


-- 
If any man thinks he slays, and if another thinks he is slain, neither knows
the ways of truth. The Eternal in man cannot kill: the Eternal in man cannot
die.
Bhagavad Gita
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/etc/rc.conf vs /etc/defaults/rc.conf

2004-01-12 Thread August Simonelli
Hi all,

I've looked in the handbook (and probably missed the explanation) but am
still a little confused. What's the difference between these two rc.conf
files? Both affect things, but what is best practice for their use?

Thank in advance,

August

PS I'm using 4.9 and realize some things may be differnet in 5.x ...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


vinum / 5.2 cant mount/growfs/newfs terabyte

2004-01-12 Thread Shawn Ostapuk
Well its been quite a few months, and FreeBSD 5.2 got released today so
I quickly went to see if my problem has been fixed yet, specially since
the release notes were quite hopeful:

The sizes of some members of the statfs structure have changed from 32
bits to 64 bits in order to better support multi-terabyte filesystems.

I was hoping that was the fix...but it wasnt...

And now my problem... I use vinum and a number of IDE drives on two
boxes, primary server and backup. Around 5 or 6 months ago the size
grew to be needing a terabyte or more -- so I did the usual and added
a new drive to the vinum configuration, went to growfs (which has saved
me more time than you can imagine, thanks freebsd) and no luck, newfs,
no luck, mount the old one without modifying? no luck...it just breaks
after making it larger than 1 tb. I've tried this one two boxes, various
drives configs. I can rearranage them all i want and they all work fine,
but the second i make it larger than 1 terabyte, everything fails on it.

bash-2.05b# vinum list
9 drives:
D vinumdrive1   State: up   /dev/ad1s1e A: 0/156327 MB (0%)
D vinumdrive2   State: up   /dev/ad2s1e A: 0/76316 MB (0%)
D vinumdrive3   State: up   /dev/ad4s1e A: 0/117239 MB (0%)
D vinumdrive4   State: up   /dev/ad5s1e A: 0/114470 MB (0%)
D vinumdrive5   State: up   /dev/ad6s1e A: 0/76292 MB (0%)
D vinumdrive6   State: up   /dev/ad7s1e A: 0/76292 MB (0%)
D vinumdrive7   State: up   /dev/ad8s1e A: 0/156327 MB (0%)
D vinumdrive8   State: up   /dev/ad9s1e A: 0/78159 MB (0%)
D vinumdrive9   State: up   /dev/ad11s1eA: 0/286102 MB (0%)
 
1 volumes:
V pr0n  State: up   Plexes:   1 Size: 1110 GB
  
1 plexes:
P vinum0.p0   C State: up   Subdisks: 9 Size: 1110 GB
   
9 subdisks:
S vinum0.p0.s1  State: up   D: vinumdrive1  Size: 152 GB
S vinum0.p0.s2  State: up   D: vinumdrive2  Size: 74 GB
S vinum0.p0.s3  State: up   D: vinumdrive3  Size: 114 GB
S vinum0.p0.s4  State: up   D: vinumdrive4  Size: 111 GB
S vinum0.p0.s5  State: up   D: vinumdrive5  Size: 74 GB
S vinum0.p0.s6  State: up   D: vinumdrive6  Size: 74 GB
S vinum0.p0.s7  State: up   D: vinumdrive7  Size: 152 GB
S vinum0.p0.s8  State: up   D: vinumdrive8  Size: 76 GB
S vinum0.p0.s9  State: up   D: vinumdrive9  Size: 279 GB

(no its not really porn stupid name i madeup too long ago to change =)
All the drives work. In fact i've used two vinum configs at the same
time using all the drives because of this terabyte limit :(

Now with the above setup, vinum thinks everything is fine and looks fine
as far as I can tell. And i've heard of vinum being used in greater than
1tb situations making me think there is no problem with it. But the
second i try to do anything...

bash-2.05b# mount /dev/vinum/pr0n
mount: /dev/vinum/pr0n: unknown special file or file system

bash-2.05b# growfs  /dev/vinum/pr0n
growfs: rdfs: read error: 128: Invalid argument

bash-2.05b# newfs /dev/vinum/pr0n
/dev/vinum/pr0n: 1137530.4MB (2329662200 sectors) block size 16384, fragment size 2048
using 6191 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
newfs: can't read old UFS1 superblock: read error from block device: Invalid argument


No, it is NOT using ufs1, it is ufs2 -- in fact that code it hits in
newfs only comes up when dealing with ufs2 partitions. The second i
remove any drives that make it past the 1TB barrior i can mount/newfs it
again no problems. Again, in any order and any drives on two different
machines with a whole new set of drives.

So thoughts anyone? is no one else in the world using vinum to concat
some IDE drives past 1tb?  i've heard of mount correctly mounting ufs2
partitions off hardware raids that are larger than 1tb no problem...

it just seems to be some sort of problem with the two together...i'll
be enternally grateful for anyone who can help me past this barrior, it
is getting more and more difficult to work around separate partitions,
etc -- and i see this becoming more and more common now that 300 gig
drives are $299 retail...

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


Re: /etc/rc.conf vs /etc/defaults/rc.conf

2004-01-12 Thread Scott Mitchell
On Tue, Jan 13, 2004 at 09:18:13AM +1100, August Simonelli wrote:
 Hi all,
 
 I've looked in the handbook (and probably missed the explanation) but am
 still a little confused. What's the difference between these two rc.conf
 files? Both affect things, but what is best practice for their use?
 
 Thank in advance,

Hi,

/etc/defaults/rc.conf sets the default values for all of the configuration
options - the values that will be used if you don't change anything.  You
shouldn't ever need to modify this file, or anything else in /etc/defaults
for that matter.

/etc/rc.conf is where you put local changes to the defaults - things that
are specific to your system or network.  At the very least, you will
probably want to set the name of your machine and configure whatever
network interfaces you have in here.  The installer may have already
written some settings to /etc/rc.conf when you were first setting up
FreeBSD on the machine.

So my general rule is to only ever edit /etc/rc.conf, and to just put
changes to the default settings in it.  Some people will copy the whole
/etc/defaults/rc.conf to /etc/rc.conf and then make whatever changes they
require - you get to see everything together in one file this way, but the
danger is that you drift further and further away from the default
configuration as upgrades change things in /etc/defaults/rc.conf, without
you noticing.

Hope that helps,

Scott

-- 
===
Scott Mitchell   | PGP Key ID | Eagles may soar, but weasels
Cambridge, England   | 0x54B171B9 |  don't get sucked into jet engines
scott at fishballoon.org | 0xAA775B8B |  -- Anon
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: /etc/rc.conf vs /etc/defaults/rc.conf

2004-01-12 Thread fbsd_user
It's all explained in the comments at the top of /etc/rc.conf

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of August
Simonelli
Sent: Monday, January 12, 2004 5:18 PM
To: [EMAIL PROTECTED]
Subject: /etc/rc.conf vs /etc/defaults/rc.conf

Hi all,

I've looked in the handbook (and probably missed the explanation)
but am
still a little confused. What's the difference between these two
rc.conf
files? Both affect things, but what is best practice for their use?

Thank in advance,

August

PS I'm using 4.9 and realize some things may be differnet in 5.x ...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

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


Re: Mounting as non-root?

2004-01-12 Thread Simon Barner
Hi,

 What is the most secure way to enable mounting of flash drives, cdroms, and 
 floppies?  I've seen solutions that include setting setuid on mount.  I would 
 rather not go this route.  Is there any other easy, secure way?

You can allow mounting for ordinary users with the following sysctl(8):

vfs.usermount

With Gnome 2.5 (probably also with 2.4, but I need to run the
development version in order to help with some ports) users can mount
cdroms and floppies on mount points in their home directories (~/cdrom
and ~/floppies). Unfortunately, you will need appropriate entries into
/etc/fstab for every user.

Simon


signature.asc
Description: Digital signature


Script question...

2004-01-12 Thread Xpression
Hi list, I've making a script to write the content of three text files to
one file, but I want to separate each files by a delimiter like the name of
the file.

This is the script:

#! /bin/sh
path=/some/dir
if !([ -f $path/this.one ]); then
for file in $path/file1 $path/file2 $path/file3; do
 cat $file  $path/this.one
done
fi

exit 0

By now the output is:

 Contents of file1
 Contents of file2
 Contents of file3

And I want to be like this:
---
  file1
---
 Contents of file1
---
 file2
---
 Contents of file2
---
  file3
---
 Contents of file3

any suggestion ??? Thanks...

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


Re: Script question...

2004-01-12 Thread Julien Gabel
 Hi list, I've making a script to write the content of three text files
 to one file, but I want to separate each files by a delimiter like the
 name of the file.

Maybe this little sh(1) script can do the job:

# = begin.script =
#! /bin/sh

path=~/tmp
files=file1 file2 file3
output_file=this.one

cd ${path}  [ ! -f ${output_file} ]  \
for file in ${files}
do
  echo   ${output_file}
  echo ${file}  ${final_file}
  echo   ${output_file}
  cat ${file}  ${final_file}
done
echo   ${output_file}
exit 0
# = end.script =

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


Re: Script question...

2004-01-12 Thread Andrew L. Gould
On Monday 12 January 2004 05:04 pm, Xpression wrote:
 Hi list, I've making a script to write the content of three text files to
 one file, but I want to separate each files by a delimiter like the name of
 the file.

 This is the script:

 #! /bin/sh
 path=/some/dir
 if !([ -f $path/this.one ]); then
 for file in $path/file1 $path/file2 $path/file3; do
  cat $file  $path/this.one
 done
 fi

 exit 0

 By now the output is:

  Contents of file1
  Contents of file2
  Contents of file3

 And I want to be like this:
 ---
   file1
 ---
  Contents of file1
 ---
  file2
 ---
  Contents of file2
 ---
   file3
 ---
  Contents of file3

 any suggestion ??? Thanks...

I haven't tested it; but would this work:

 #! /bin/sh
 path=/some/dir
 if !([ -f $path/this.one ]); then
 for file in $path/file1 $path/file2 $path/file3; do
  echo '-'  $path/this.one
  echo $file  $path/this.one
  cat $file  $path/this.one
 done
 fi
 exit 0


Andrew Gould


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


Re: Script question...

2004-01-12 Thread Charles Swiger
On Jan 12, 2004, at 6:04 PM, Xpression wrote:
[ ...a question on how to change a shell script... ]
Try:

#! /bin/sh
path=/some/dir
if !([ -f $path/this.one ]); then
touch $path/this.one
for file in $path/file1 $path/file2 $path/file3; do
   echo -  
$path/this.one
   echo$file  $path/this.one
   echo -  
$path/this.one
   cat $file  $path/this.one
done
fi

Also note that using a local variable named $path is not a good idea, 
since $PATH is highly important.  :-)  $path and $PATH are seperate in 
/bin/sh, but many other shells automangle the colon-seperated $PATH 
into the word-list format used by $path, and vice-versa.

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


Re: Install bug - 4.9 stable - post install circular reboot

2004-01-12 Thread kblists
Thanks to Stuart Barkley detailed suggestion:

(From memory, YMMV) Reboot for the installation CD into sysinstall.
Select Configure  then Fdisk.  In fdisk select W this will cause
the MBR to be rewritten correctly (I always select the FreeBSD boot
manager, I don't know if that is necessary).

I was able to get my 4.9 to boot.

Ian,

 That's three of us now. Maybe this should go in the errata?

Obsolutely.  As I said in my original posting.  I'm re-evaluating BSD for the 2nd 
time,  and I was inches away ending my evaluation with the concensus that BSD is not 
worth my time in 2004.

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


Re: vlan support

2004-01-12 Thread Mike Tancsa
On 12 Jan 2004 09:33:32 +0500, in sentex.lists.freebsd.questions you
wrote:

How do you do!
ifconfig_vlan2=inet 192.168.100.1 netmask 255.255.255.0 vlan 4 vlandev
rl0

Catalyst settings were write because it works with cisco router.


I am pretty sure the Realtek Driver does not support the larger packet
size to handle 802.1q frames.  See man vlan.   I have used dc and fxp
based cards with great results, but nothing on the realtek.

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


Partitioning

2004-01-12 Thread Teilhard Knight
I am trying to install FreeBSD 5.1. I have created by means other than the
installation program, a partitioning of my disk (160 Gig), and I want to
install on one of those partitions. I have three primary partitions and one
extended where I have installed Linux in one logical partition. I want
FreeBSD to go in another logical partition. When I installed 4.7 in another
computer, I had no problems whatsoever. But with 5.1 the partitioning
utility only sees the primary partitions, the first three and the extended
one as a whole. It sees the extended partition as one partition without the
logical ones created there. Apparently I must have the partition for FreeBSD
as FAT, but other tools do not help me because the partition is too large to
be FAT.

Any help to solve this will be appreciated.

Teilhard.

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


test

2004-01-12 Thread Nathan Alan Souer
test

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


Flash and Mozilla

2004-01-12 Thread Nathan Alan Souer

---BeginMessage---
Hello All,
I am new to UNIX. I am running FreeBSD 5.1 and KDE 3.1. I've installed both 
Mozilla and flashplugin-mozilla through ports, but whever I try and access 
a flash page Mozilla freezes so badly that I cannot even close it. I've 
checked the web and the plug-in documentation, and have had very little 
success finding any info, could someone point me in the right direction for 
info or even more diect help please? Thanks,
Nate


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


Cyrus-imapd2 installed through ports question

2004-01-12 Thread Jason Williams
Hello everyone.

I was having a problem after I installed cyrus-imapd2 through the ports tree.
Everything on the installation went well. However, im seeing a error pop up 
in my log that I cannot figure out.
Thus, I thought i'd ask here, see if anyone had any similiar problems.

Note, this is on a FreeBSD 4.9 box:
Cyrus-imapd-2.1.16
Cyrus-sasl-2.1.17
BerkeleyDB-4.1.25
This is from my /var/log/auth.log

Jan  5 23:54:39 obsidianbox imapd[8015]: OTP unavailable because can't 
read/write key database /etc/opiekeys: Permission denied
Jan  5 23:54:43 obsidianbox imapd[8015]: no user in db
The first one I figured out a workaround. Simple enough.

The second one though, is really driving me up a wall. I'm completely 
baffled as to why this is showing up my logs.
What is very odd, is that I can still connect and authenticate from a mail 
client. I also get it when I use 'imtest' for basic testing of the server. 
Lastly, I even get it when I connect to the 'cyradm' interface when I want 
to manage mailboxes.  Yet, I can still login and things work.

I've tried a variety of things and nothing seems to be working. Here is 
what I just did:

Did a fresh install of FreeBSD 4.9. CVSup the ports and source tree.
Navigated to /usr/ports/mail/cyrus-imapd2 port
make -DWITH_BDB_VER=41 -DWITH_SKIPLIST_MBOX -DWITH_SKIPLIST_SEEN -DWITH_MURDER

As I type this email, im wondering if it could have been something I did:

1.) I actually edited the Makefile and changed the BDB_VER line from 3 to 
41. Looking on my command line option, I specified 41, but I did it with 
-DWITH. Not sure if that would cause any problems.

Anyone have any ideas on why im getting the no user in db entry in my log?

I'm at a loss here.

Thanks

Jason 

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


Re: test

2004-01-12 Thread Marty Landman
At 06:56 PM 1/12/2004, Nathan Alan Souer wrote:
test
did we pass?

Marty Landman   Face 2 Interface Inc 845-679-9387
Sign On Required: Web membership software for your site
Make a Website: http://face2interface.com/Home/Demo.shtml
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: test

2004-01-12 Thread Eric F Crist
On Monday 12 January 2004 06:04 pm, Marty Landman wrote:
 At 06:56 PM 1/12/2004, Nathan Alan Souer wrote:
 test

 did we pass?


Sorry, folks.  This is my friend and I will make certain Nate gets a good, 
solid beating.

-- 
Eric F Crist
AdTech Integrated Systems, Inc
(612) 998-3588

pgp0.pgp
Description: signature


Re: Partitioning

2004-01-12 Thread Heine Aarbø
On Mon, 12 Jan 2004 17:50:45 -0600, Teilhard Knight [EMAIL PROTECTED] 
wrote:

I am trying to install FreeBSD 5.1. I have created by means other than 
the
installation program, a partitioning of my disk (160 Gig), and I want to
install on one of those partitions. I have three primary partitions and 
one
extended where I have installed Linux in one logical partition. I want
FreeBSD to go in another logical partition. When I installed 4.7 in 
another
computer, I had no problems whatsoever. But with 5.1 the partitioning
utility only sees the primary partitions, the first three and the 
extended
one as a whole. It sees the extended partition as one partition without 
the
logical ones created there. Apparently I must have the partition for 
FreeBSD
as FAT, but other tools do not help me because the partition is too 
large to
be FAT.
For some reason the max size of a FAT partition on FreeBSD is limited to 
137Gig.

If you want a dualboot linux/FreeBSD (and windows) and have a shared area 
for all of them I would recomend you to make gaps for the OS you chose to 
install last (abaut 10 gig is suitable for most OS'es) and make a comon 
FAT partition on the end of the disk for archive(fat)

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


Re: Promise Fastrak ATA RAID 1 mirror lost

2004-01-12 Thread Harald Schmalzbauer
On Monday 12 January 2004 22:32, Michael wrote:
 Hi,

 I have an intel motherboard with an onboard Promise Fastrak ATA RAID.
 This morning it reported that the mirror was lost and I would like to
 rebuild it.

 My system is FreeBSD 4.8-RELEASE-p10. This is what's reported from
 `atacontrol list`:
 ATA channel 0:
  Master: acd0 CD-540E/1.0A ATA/ATAPI rev 0
  Slave:   no device present
 ATA channel 1:
  Master:  no device present
  Slave:   no device present
 ATA channel 2:
  Master:  ad4 ST380021A/3.19 ATA/ATAPI rev 5
  Slave:   no device present
 ATA channel 3:
  Master:  ad6 ST380021A/3.19 ATA/ATAPI rev 5
  Slave:   no device present

 The kernel message that I saw in my daily report was this:
 ad6: hard error reading fsbn 140018943 of 0-127 (ad6 bn 140018943; cn
 138907 tn
 10 sn 57) trying PIO mode
 ad6: DMA problem fallback to PIO mode
 ad6: DMA problem fallback to PIO mode
 ad6: DMA problem fallback to PIO mode
 ad6: DMA problem fallback to PIO mode
 ad6: hard error reading fsbn 140019007 of 0-127 (ad6 bn 140019007; cn
 138907 tn
 11 sn 58) status=59 error=00
 ar0: WARNING - mirror lost

 Which is confirmed by the output of `atacontrol status ar0`:
 ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED

 So I looked at the handbook
 (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/raid.html)
 and in section 12.4.3 it suggests that I detach, attach and then
 rebuild the array. Can I do this on a running system or do I first need
 to drop to single user mode? If I do that, how do that without
 rebooting? Does anyone have any experience with this?

Like you found in the handbook, atacontrol is what you need and yes, you can 
do it without rebooting or droping into singleuser (if the drive hadn't 
really failed but only had a bad day like trash on the bus which I 
regularly have)


 The other option seems to be to reboot the computer and use the Fastrak
 firmware to rebuild the array.

Last time I tried that it didn't work for SIL0680 nor HPT372, but I don't know 
about the promise.
Give the handbook procedure a try!

-Harry


 Which option is the most painless? I have recent dumps of the system,
 but I would prefer not to have to go that route.

 Thanks for any help/suggestions,

 Michael

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


pgp0.pgp
Description: signature


Re: Cyrus-imapd2 installed through ports question

2004-01-12 Thread Anish Mistry
On Monday 12 January 2004 06:59 pm, Jason Williams wrote:
 Hello everyone.
 
 I was having a problem after I installed cyrus-imapd2 through the ports 
tree.
 Everything on the installation went well. However, im seeing a error pop 
up 
 in my log that I cannot figure out.
 Thus, I thought i'd ask here, see if anyone had any similiar problems.
 
 Note, this is on a FreeBSD 4.9 box:
 Cyrus-imapd-2.1.16
 Cyrus-sasl-2.1.17
 BerkeleyDB-4.1.25
 
 This is from my /var/log/auth.log
 
 Jan  5 23:54:39 obsidianbox imapd[8015]: OTP unavailable because can't 
 read/write key database /etc/opiekeys: Permission denied
 Jan  5 23:54:43 obsidianbox imapd[8015]: no user in db
I get this too in my logs, but the user is still there, and found by the 
operation that tries to find the user, and everything still seems to work, 
so I ignore it and chalk it up to a cyrus bug.

-- 
Anish Mistry


pgp0.pgp
Description: signature


[no subject]

2004-01-12 Thread [EMAIL PROTECTED]
Hi,
During installation , after the device probe i get a message saying that no
disk drives were ffound and the installation stops there.
Also its unable to load a few modules.
I have dedicated a formatted 1.6 gb HD for the install so theres no problem
with partitions.Any suggestions?

Thanks,
Akshay.



mail2web - Check your email from the web at
http://mail2web.com/ .


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


RE: Mini atx for firewall

2004-01-12 Thread Brent Wiese
 also you can get PCI doublers... no idea how well they work, 
 but!  anyone had 
 experience of them?

You can always get the Intel dual/quad server NIC's. Even come in dual gig-e
flavor!

Brent


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


RE: Mail in a Jail

2004-01-12 Thread Brent Wiese
 Hi,
 
 I run my web sites from a jail. The time has come that i now 
 need to send an
 email from one of those sites using the mail() function in php.
 
 I would like to know, what files do i need to be able to send 
 mail from the
 jail using the mail command. The box is using sendmail as its 
 mta, and is
 running 4.9 release.

This plagued me too. I found a very easy solution: esmtp in the ports.

A few catches:

1: You need an external SMTP server that will relay the mail for you. I was
unable to get it to talk to the main host's SMTP, probably a feature of
jailing... Luckily, I have another box on the LAN who's sole purpose is to
relay mail for machines on the LAN.

2: After you install esmtp, change your sendmail links (/usr/sbin/sendmail
at least I think) to point at it. 

3: If you compiled PHP w/ a non-existent sendmail, you have to recompile.
It's a little confusing, but if you dig far enough in the docs, mail() will
not compile if sendmail doesn't exist (it tests).

Enjoy!
Brent


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


Re: Mini atx for firewall

2004-01-12 Thread Chris Howells
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wednesday 19 November 2003 14:24, Francisco Reyes wrote:
 My primary concern is the network card. Since these small machines only
 have one PCI slot I will add one card for the internal network and then
 would need the onboard card to connect to the outside world.

I just got a 4 port Adaptec NIC very very cheaply from ebay (about £20 GBP, 
which included international shipping). Works great with de(4).

I had the same problem with lack of PCI slots,  my server/router is mini-ATX 
based and so only has three PCI slots, so it's working great now with PCI 
IDE ,SCSI and 4 port net.

- -- 
Cheers, Chris Howells -- [EMAIL PROTECTED], [EMAIL PROTECTED]
Web: http://chrishowells.co.uk, PGP ID: 0x33795A2C
KDE/Qt/C++/PHP Developer: http://www.kde.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFAA0kCF8Iu1zN5WiwRAqxpAKCCXPNclEZcDKchcbm3NnKP06kTIACffyHi
T+U46+LtulUZmVdF7fJ9PxQ=
=PL1e
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: mpd VPN Server / W2K Clients

2004-01-12 Thread Brent Wiese
 Hello,
 
 I am trying to configure mpd for road warrior w2k clients to 
 connect to,
 and I'm running into a few issues, hoping some of you could help out.
 I'm not sure if there are other issues that need to be configured
 differently besides mpd, like ppp or natd, etc. Or do you 
 need to change
 options in the W2K VPN client. Below are my specs, mpd config 
 files, and
 error message. Please let me know if you have any 

I know its been a while since you posted (I don't get to read this list as
often as I'd like to), but in case you didn't get it working, the thing that
threw me for a while was putting gateway_enable=yes in rc.conf (syntax
might be slightly different). 

Its in the MPD readme file, but you don't see that file when installing from
ports. ;)

Don't forget to run some sort of firewall so you only allow pptp traffic to
bridge that connection. 

Brent


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


RE: Support for affordable S-ATA RAID controllers (xs4)

2004-01-12 Thread Brent Wiese
 The 3ware cards are quite expensive, according to the pricing 
 lists I've
 seen so far. I wonder if the 8506-card mentioned in another post also
 works in 32bit PCI slots. Otherwise, I'd need a Xeon board. But that's
 another post in the thread.

3Ware cards are expensive, but you get what you pay for. Whatever code they
have to optimize the disk use works wonders.

I also believe the price is reasonable given its hardware RAID5.

BE AWARE however (found this out the hard way), their performance optimizing
code only works on the FIRST volume. Shouldn't be an issue with a 4-6 port
card, but when you use 200gb+ drives on a 12 port card, you end up over the
2TB volume limit and the second volume is slow as molassas...

Cheers,
Brent


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


Port forwarding

2004-01-12 Thread Budec



Hello,

I have been trying to get this working for days and am obviously doing
something wrong and was wondering if any Guru's out there could give a
little guidance.  Basically I'm looking to run a game server behind a
FreeBSD firewall.  Here is my setup:

{internet} - [public address] - Firewall - (internal address) Game
server

Lets say public address is 1.2.3.4 and private address is 192.168.17.25
port is 5122


In the /etc/rc.conf I set the firewall policy to OPEN and enabled natd, I
gave it the natd options of -f /etc/natd.conf... for ipnat I have that
set to NO (not sure what it does)

In the natd.conf file I have this:

redirect_port tcp 192.168.17.25:5122 5122
redirect_port udp 192.168.17.25:5122 5122

I restart natd and theatrically everything that hits 1.2.3.4 on port 5122
should be automatically redirected to 192.168.17.25 port 5122, right?

I have also tried this (since the public interface is aliases (has more than
one public address associated with it)):

redirect_port tcp 192.168.17.25:5122 1.2.3.4:5122
redirect_port udp 192.168.17.25:5122 1.2.3.4:5122



Which doesn't seem to work either.  Any ideas?

Regards,
Jack



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


Re: (Yet Another) Home Networking Question

2004-01-12 Thread Rishi Chopra
Perhaps someone can help me with this small part of rc.firewall:

[Ss][Ii][Mm][Pp][Ll][Ee])
   
   # This is a prototype setup for a simple firewall.  Configure this
   # machine as a named server and ntp server, and point all the 
machines
   # on the inside at this machine for those services.
   

   # set these to your outside interface network and netmask and ip
   oif=ed0
   onet=192.0.2.0
   omask=255.255.255.0
   oip=192.0.2.1
   # set these to your inside interface network and netmask and ip
   iif=ed1
   inet=192.0.2.1
   imask=255.255.255.0
   iip=192.0.2.17
I'm curious about the difference between 'inet' and 'iip', what each one 
stands for, and how to configure 'onet/oip' if the outside interface 
network is configured via DHCP.

I'm also curious about this little snippet (under the 'simple' profile):

   # Everything else is denied by default, unless the
   # IPFIREWALL_DEFAULT_TO_ACCEPT option is set in your kernel
   # config file.
What happens if this option is set in my kernel config file?  Can I 
safely comment out this line and use the 'simple' profile without 
affecting natd?

Subhro wrote:

Hi Rishi,

You have to forward the ports required by WinVNC on the FreeBSD Gateway.
Have you compiled IPDIVERT in your kernel? Read the ipfw manpages to find
out how to forward ports.
Regards
Subhro
Subhro Sankha Kar
Indian Institute of Information Technology
Block AQ-13/1, Sector V
Salt Lake City
PIN 700091
India
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rishi Chopra
Sent: Sunday, January 11, 2004 1:42 PM
To: Mike Maltese
Cc: [EMAIL PROTECTED]
Subject: Re: (Yet Another) Home Networking Question
I was able to get my network up and running with the suggestions below.
To review, my setup is the following:
ISP FreeBSD Gateway Win2k Box

--rl0--rl1---
ALL DHCP  192.168.0.1   192.168.0.2
rl0 is connected to the modem by ethernet and set for DHCP, the ISP's
method of address asignment. rl1 is the second NIC in the BSD box, and
is connected by crossover cable to the Win2k box. FreeBSD box and Win2k
box can successfully ping each other, and both FreeBSD box and Win2k
have working internet access.  Everything is running A-OK.
If I wish to host WinVNC on the Win2k box, do I need to make any changes
to the Gateway?  Specifically, WinVNC requires the Win2k box to be
listening on 5800 and 5900; I have opened these ports (and these ports
only) on the Win2k box.  Do I need to change rc.conf or any other files
on the gateway to specify that all incoming connections on 5800 and 5900
be forwarded from rl0 to rl1?  Am I gonna have to step up to IPFW (yuck!) ??
Thanks,
Rishi
Mike Maltese wrote:

 

(1) in /etc/rc.conf, I added the following
natd_enable=YES
natd_interface=rl0 ### public interface connected to cable modem
gateway_enable=YES
defaultrouter=192.168.0.1 ###  LAN machines use this
ifconfig_rl0=DHCP  ### Astound uses dhcp
ifconfig_rl1=inet 192.168.0.1 netmask 255.255.255.0 ### use for LAN
hostname=idfubar.dyndns.org
 

As a first step, try adding these lines to rc.conf:

firewall_enable=YES
firewall_type=open
This will enable diversion of all traffic to natd. Read the man pages for
natd and ipfw and
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls.html
for more information.
The easiest way to reinitialize the system is to type shutdown now. This
will drop you into single user mode. Press return when prompted for a
   

shell.
 

Hit Ctrl+D and the rc system will be run through and put you back into
multi-user mode. Check for connectivity from the router and the Windows
   

box.
 

As a side note, you can delete the defaultrouter entry. That's for your
FreeBSD box, not LAN clients. It's getting reset by dhclient when it gets
lease information from your ISP's DHCP server anyway.


   

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




 

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


RE: Port forwarding

2004-01-12 Thread Budec


Thanks for the reply.

I'm using the default 'rc.firewall' and in the /etc/rc.config I have it set
up to use OPEN.
From what I can tell, it looks like I'm passing everything by default...
here is a snip of the config (not all of the /etc/rc.firewall file, just the
OPEN parts)

[snip]
case ${firewall_type} in
[Oo][Pp][Ee][Nn]|[Cc][Ll][Ii][Ee][Nn][Tt])
case ${natd_enable} in
[Yy][Ee][Ss])
if [ -n ${natd_interface} ]; then
${fwcmd} add 50 divert natd all from any to any via
${natd_interface}
fi
;;
esac
esac



[snip]
case ${firewall_type} in
[Oo][Pp][Ee][Nn])
# bud
#${fwcmd} add count log tcp from any to any setup
#${fwcmd} add count log udp from any to any keep-state

# clients
#   ${fwcmd} add allow tcp from any to 192.168.17.1 5121 keep-state
#   ${fwcmd} add allow udp from any to 192.168.17.1 5121 keep-state

#   ${fwcmd} add allow tcp from any to 192.168.17.25 5121 keep-state
#   ${fwcmd} add allow udp from any to 192.168.17.25 5121 keep-state


# Gamespy
#   ${fwcmd} add allow udp from 192.168.17.1 5121 to 216.177.89.34 27900
keep-state
#   ${fwcmd} add allow udp from 192.168.17.1 5121 to 66.244.193.142 5121
keep-state

#   ${fwcmd} add allow udp from 192.168.17.25 5121 to 216.177.89.34
27900 keep-state
#   ${fwcmd} add allow udp from 192.168.17.25 5121 to 66.244.193.142
5121 keep-state



${fwcmd} add 65000 pass all from any to any
;;



'pass all from any to any' should do it right?


Regards,
Jack




 -Original Message-
 From: Ronnie Clark [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 12, 2004 8:14 PM
 To: 'Budec'; 'FreeBSD-questions list'
 Subject: RE: Port forwarding


 Jack,

 What do our firewall rules look like? Is there a rule to allow
 5122 traffic
 into the outside interface?

 Just a thought,
 Ron Clark


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Budec
 Sent: Monday, January 12, 2004 7:50 PM
 To: 'FreeBSD-questions list'
 Subject: Port forwarding





 Hello,

 I have been trying to get this working for days and am obviously doing
 something wrong and was wondering if any Guru's out there could give a
 little guidance.  Basically I'm looking to run a game server behind a
 FreeBSD firewall.  Here is my setup:

 {internet} - [public address] - Firewall - (internal address) Game
 server

 Lets say public address is 1.2.3.4 and private address is
 192.168.17.25 port
 is 5122


 In the /etc/rc.conf I set the firewall policy to OPEN and
 enabled natd, I
 gave it the natd options of -f /etc/natd.conf... for ipnat I have that
 set to NO (not sure what it does)

 In the natd.conf file I have this:

 redirect_port tcp 192.168.17.25:5122 5122
 redirect_port udp 192.168.17.25:5122 5122

 I restart natd and theatrically everything that hits 1.2.3.4 on port 5122
 should be automatically redirected to 192.168.17.25 port 5122, right?

 I have also tried this (since the public interface is aliases
 (has more than
 one public address associated with it)):

 redirect_port tcp 192.168.17.25:5122 1.2.3.4:5122
 redirect_port udp 192.168.17.25:5122 1.2.3.4:5122



 Which doesn't seem to work either.  Any ideas?

 Regards,
 Jack



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



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


New installation: Hanging when trying to dial out

2004-01-12 Thread John Adams
Hi, folks,

	I've got a brand-new installation of FreeBSD and the next thing I want 
to do is upgrade from 4.6 (the CD I had) to 4.9 or 5.1. However, first 
I need to dial out, and there I'm having a problem.

	I've followed the instructions (I hope!) in Chapter 18 of the 
handbook, and whatever approach I take to dialing out, the box hangs--I 
can't even Alt-F3 to a new shell. This happens whether I'm using cu or 
trying a manual connection in ppp. When I do the latter, after I type 
term, I get the responses, but, after type '~?' for help, the keyboard 
stops responding. ~. doesn't get me out of it--nothing does. The box is 
an eMachines etower 600is and the modem is a Microcom Deskporte 28.8P.

	Any help would be greatly appreciated.

All the best,

	John A

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


Re: pr 53245 fixed in 5.2R?

2004-01-12 Thread Lowell Gilbert
Jason Taylor [EMAIL PROTECTED] writes:

 Has the fix for this problem been incorporated into 5.2-RC2?  I've
 searched, but haven't found a definitive
 answer. http://www.freebsd.org/cgi/query-pr.cgi?pr=53245

Quoting the PR you reference: 
Fixed in revision 1.41 of ida_disk.c. 

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area: 
resume/CV at http://be-well.ilk.org:8088/~lowell/resume/
username/password public
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Install bug - 4.9 stable - post install circular reboot

2004-01-12 Thread Heine Aarb
On 17 Apr 2018 09:10:14 -0400, Kevin Berrien [EMAIL PROTECTED] wrote:
Snip
Have you tied installing with the corect date and year?
I would guess the system will mislike the date and year in some way.. I 
know that it have if you are in the past.. (sysdate older than 
installfiles.)

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


Re: ngctl and rc.conf

2004-01-12 Thread Lowell Gilbert
Tillman Hodgson [EMAIL PROTECTED] writes:

 Howdy folks,
 
 What's the best way to build ng_one2many interfaces into rc.conf such
 that they're brought up (live) at the normal time so that:
 
 1) configuration remains centralized in rc.conf
 2) other pieces that depend on a network being present don't fail in
enlightening ways?
 
 I want to avoid the make a shell script in /usr/local/etc/rc.d
 approach.

Nobody else has written this shell script for you, so you can't just
configure it in rc.conf and turn it on.  If you want, you can add it
to rc.network and submit the patches in a PR, so future upgrades will
include it.  

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area: 
resume/CV at http://be-well.ilk.org:8088/~lowell/resume/
username/password public
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  1   2   >