Re:

2004-03-12 Thread Kent Stewart
On Friday 12 March 2004 10:31 pm, [EMAIL PROTECTED] wrote:
> is there anyway i can reduce  /var and /usr i did a
> "make clean" under /usr/ports and didnt reduce the size
> any ideas?
>
>
> %sysctl kern.version
> kern.version: FreeBSD 5.2.1-RELEASE-p1 #6: Sat Mar  6
> 12:54:40 PHT 2004
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MMP
>
> %df -h
> FilesystemSize   Used  Avail Capacity  Mounted on
> /dev/ad0s2a   116M59M48M55%/
> devfs 1.0K   1.0K 0B   100%/dev
> /dev/ad0s2e   124M   6.0K   114M 0%/tmp
> /dev/ad0s2f27G20G   5.2G79%/usr
> /dev/ad0s2d   124M96M18M84%/var

You have to figure out where it is. You can use du -h to see it in human 
term. A common problem in /usr is leaving /usr/ports/.../work and 
distfiles.

You probably have some large logs left behind in /var. It is also 
another place you have to find them manually and clean up. I log 
everything and created 1.5 GB /var. It takes awhile but then I still 
have to clean up.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Rename a user

2004-03-12 Thread Nguyen Huu Hoa
Thanks,
But can I rename root user?

Hoa, Nguyen
-Original Message-
From: Jonathan Chen [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 13, 2004 1:18 PM
To: Nguyen Huu Hoa
Cc: [EMAIL PROTECTED]
Subject: Re: Rename a user

On Sat, Mar 13, 2004 at 11:14:12AM +0700, Nguyen Huu Hoa wrote:
> Hi List,
> How can I rename a user from my BSD 5.2 system. I have a user called
"hoa",
> then I want to rename it to "nguyen", so what should I do?

As root, use vipw and change the username.
-- 
Jonathan Chen <[EMAIL PROTECTED]>
--
"Only the meek get pinched. The bold survive."
  - Ferris Bueller

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


[no subject]

2004-03-12 Thread kisha
is there anyway i can reduce  /var and /usr i did a
"make clean" under /usr/ports and didnt reduce the size 
any ideas?


%sysctl kern.version
kern.version: FreeBSD 5.2.1-RELEASE-p1 #6: Sat Mar  6
12:54:40 PHT 2004
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/MMP

%df -h
FilesystemSize   Used  Avail Capacity  Mounted on
/dev/ad0s2a   116M59M48M55%/
devfs 1.0K   1.0K 0B   100%/dev
/dev/ad0s2e   124M   6.0K   114M 0%/tmp
/dev/ad0s2f27G20G   5.2G79%/usr
/dev/ad0s2d   124M96M18M84%/var
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: hardware: backup tape reliability

2004-03-12 Thread Gary W. Swearingen
> From: "Robert Huff" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 12, 2004 1:54 PM
> Subject: OT: hardware: backup tape reliability
>
>>
>> I have a friend who's trying to implement a back-up regime,
>> but running into media issues.
>> Specifically: they live in an area with extremely high
>> temperature+humidity (90-95 F/32-35 C; 90+% hum.) and climate
>> conditioning is not an option.  They need to backup critical data
>> files (code base is not an issue) and have tried floppies, ZIP
>> drives, and CDs ... all of which have proven to have a very short
>> life span.

I've no relevant experience, but I've got some hunches for your
consideration.  First, if floppies, ZIPs, and CDs can't take your
environment, then I doubt if high-density tapes will.  They should be
more reliable, but not so much so that they would work very well where
other media is rotting like meat.

Second, I suspect that those temperatures would not be a problem if
the humidity could be kept low.  AIUI, media plastic can absorb a bit
of water, causing it to expand.  If you can't manage a refrigeration-
based dehumidifier, maybe the "Dri-Z-Air"-type granules would do the
job if you keep the tape drive and tape storage confined to tight
boxes big enough to hold well-maintained granule holders.

Third, are you being careful to ensure that the tapes have had several
hours before use at the same temperature (and maybe days at the same
humidity) as they will have when used?  Changes in the media might be
the real problem.

Forth, along the same lines, at those temps, maybe your drives are
getting hot enough to cause the media to change temp too much as they
are being used.  Try putting some strong blowers on your drives to
keep them near room temp.

Again, I'm just thinking out loud, in case you haven't considered some
of that.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Rename a user

2004-03-12 Thread Jonathan Chen
On Sat, Mar 13, 2004 at 11:14:12AM +0700, Nguyen Huu Hoa wrote:
> Hi List,
> How can I rename a user from my BSD 5.2 system. I have a user called "hoa",
> then I want to rename it to "nguyen", so what should I do?

As root, use vipw and change the username.
-- 
Jonathan Chen <[EMAIL PROTECTED]>
--
"Only the meek get pinched. The bold survive."
  - Ferris Bueller
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Rename a user

2004-03-12 Thread Nguyen Huu Hoa
Hi List,
How can I rename a user from my BSD 5.2 system. I have a user called "hoa",
then I want to rename it to "nguyen", so what should I do?
Thanks
Hoa, Nguyen

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


Re: using samba for backups

2004-03-12 Thread anubis
>
> Are there any potential pitfalls to this approach, iow are there
> any compatibility issues that come up if I copy files from a nix
> box to a windows box and vice versa?

The problem I can see is that you may have problems with attributes.
It depends on what you are trying to backup.  With data you can just 
copy from windows to samba.  Depending on how you have it set up you 
should be able to keep the windows file attributes.

We use rsync to make hourly backups of all our data on a mirror server 
to allow users to access data if the windows fileserver goes down.  
This gives us time to fix the problem without 50 people demanding to 
know when we will have the problem fixed.

With the os use a native tool designed to backup and restore the os.  
This will make sure that you have the proper file attributes when 
restoring.

We backup our windows servers to a samba share using both v2i and 
veritas backupexec.  they can both backup to file so we just store 
the backup files on the samba servers.  v2i has network support and 
you can boot off the v2i disk, browse to the samba share and then 
restore the whole os.

For bsd we do dumps of the os using dump and break up the dumpfiles 
into cd sized chunks then store them on removable drives.  This could 
be anything even your windows machines.  If there is a problem, write 
them to cds reboot your server with the fixit cd and restore.


>
> On the side it's getting to be such a pleasant development
> environment on my lan that I can't help shake this awful feeling
> that something's going to mess up big time.

I have trouble trying to not think of my bsd boxes in terms of windows 
reliability.  Once started the bsd boxes just keep on trucking.  Its 
taken a while but I can now just rely on the bsd boxes to do their 
job while I now only worry about windows.   At then end of the month 
we laugh and chant the quote from a MS employee.  "We are seeing 
crazy uptimes of 30+ days now"



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


FreeBSD 5.2.1 locks up during installation CD boot

2004-03-12 Thread Lucas Holt
I'm having a problem booting FreeBSD 5.2.1 using a 5.2.1 release CD.  
The system hangs when mounting the / partition on md0.  (memory disk i 
think)  I never make it to the gui installer.  It does work if i use 
safe mode.

System hardware:
Athelon XP 2000+   (266mhz fsb)
PC2100  256mb ram
40 gig maxtor ata 133 hdd
ASUS nforce2 based motherboard with onboard NIC
Nvidia geforce 2 AGP video  64mb
Looking on the freebsd website, I noticed that it could be a problem 
with ACPI or maybe the IDE controller.  Is there a way to disable this 
on the installed version?  I'm hoping its the ACPI and not the ata133 
ide controller.  The ide controller is the nforce2 which the release 
notes say it supports.

How can i turn it off and/or debug it?  I'd like the IDE controller to 
run at full speed as this will be a mail/dns server.

Please reply to me as my regular email address is down which i 
subscribe with (hence the mail server).  use [EMAIL PROTECTED]

Thanks.

Lucas Holt
[EMAIL PROTECTED]

FoolishGames.com  (Jewel Fan Site)
JustJournal.com (Free blogging)
'I try to think but nothing happens'
-- Homer Jay Simpson
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Strange network behavior

2004-03-12 Thread Dragoncrest
Actually, no I haven't tried that yet.  What's the config I need 
to do that?  Also, could it be because I'm taking a lot of errors across my 
network?  How would I track it if I was?

At 05:36 PM 3/12/04 +0100, [EMAIL PROTECTED] wrote:

What sort of hub/switch is this? Have you tried setting the interface
speed(s) to a fixed value?


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


Re: 5.2.1-release iso images broken?

2004-03-12 Thread Kris Kennaway
On Fri, Mar 12, 2004 at 03:08:20PM -0800, Mike Hogsett wrote:
> 
> > How do you do the MD5 hash of a whole CD?
> 
> ( everything is a file ... )
> 
> If it is a physical CD and not an ISO image on another file system you
> should be able to put the CD into the CD drive and run md5 on the CD
> device's device node in /dev/

Yes, or if this fails due to md5 trying to read block sizes that are
different from what the CD driver is prepared to output, you can use
'dd if=/dev/acd0 bs= | md5' to force the issue.

Kris

pgp0.pgp
Description: PGP signature


Re: Unable to mount .iso image using md(4)

2004-03-12 Thread anubis
On Fri, 12 Mar 2004 2:11 am, Wayne Sierke wrote:
> I don't seem to be able to mount any .iso images on 5.2-RELEASE:
>
> # mdconfig -a -t vnode -f /root/tomsrtbt_1_7_361.iso
> md0
> # mount_cd9660 /dev/md0 /mnt
> mount_cd9660: /dev/md0: Invalid argument
> # mdconfig -l
> md0
> #

Try > # mdconfig -a -t vnode -f /root/tomsrtbt_1_7_361.iso
 -u 0

see man mdconfig for examples


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


Re: Restore command line options

2004-03-12 Thread anubis

> > Have I missed some command line options here to avoide having to
> > answer the perms and volume questions?
>
> I don't think you have missed anything.  It is one of the little
> annoyances with dump/restore - which still do not add up to enough
> to overweigh the value of using them.

couldnt you use something like this
restore -x -f /home/backup/usr.level-1_dump 
local/mysql/var/DBDIRNAMEHERE http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: IDE cd-burner, Can it be done???

2004-03-12 Thread anubis

>
> Like some one else suggested, check out burncd it will take care of
> ATAPI CDRW drives nicely. The place where it becomes hard is
> getting atapicam to work, not had much luck with this myself.
>
I had trouble with atapicam. well I used the scsi id that was detected 
at boot and it didnt work. I used the stuff detected by scanbus and 
it did.  

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


Re: incorrect super block

2004-03-12 Thread Bob Johnson
On Friday 12 March 2004 07:17 pm, lee slaughter > wrote:
> > i'll try tar alone and see what happens.
>
> that didn't work either.  it should.
> stumped.

As a diagnostic, it might tell you something useful if you use dd to 
read the tar file from the CD back to your hard drive, then untar it 
from the file on the HD.  Something like

# dd if=/dev/acd0c of=file.tar.gz bs=2048

Assuming that doesn't return an EOF error, you should be able to unpack 
file.tar.gz.

If that works, it tells you something, but I'm not sure what.

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


Pernicious problem with vfork / qmail / qmail-scanner (more)

2004-03-12 Thread Justin Baugh
I did some testing. I wrote a small program in C to fork off a 
specified number of processes and leave them there. I find that 
I can run exactly 39 processes as qmaild before tcpserver begins 
to barf, saying it cannot fork.

This makes no sense to me; I can fork off hundreds of processes 
as the qmaild user with my simple test program (running as 
sudo -U qmaild). However, tcpserver, no matter what I do, is 
locked to 40 total children processes.

I find that value very interesting because during my research 
I noticed that there is a #define in sys/syslimits.h defining 
CHILD_MAX as 40 if it is not already defined. And it seems
as though you can set it as a kernel option in 4.x but not in
5.xCould this be related? I'm confused because it doesn't 
look like tcpserver relies on syslimits or anything which 
would get that limit...any ideas?

Thanks,

-Justin


smime.p7s
Description: S/MIME cryptographic signature


"The Complete FreeBSD": errata and addenda

2004-03-12 Thread Greg Lehey
The trouble with books is that you can't update them the way you can a web page
or any other online documentation.  The result is that most leading edge
computer books are out of date almost before they are printed.  Unfortunately,
The Complete FreeBSD, published by O'Reilly, is no exception.  Inevitably, a
number of bugs and changes have surfaced.

"The Complete FreeBSD" has been through a total of five editions, including its
predecessor "Installing and Running FreeBSD".  Two of these have been reprinted
with corrections.  I maintain a series of errata pages.  Start at
http://www.lemis.com/errata-4.html to find out how to get the errata
information.

Have you found a problem with the book, or maybe something confusing?  Please
let me know: I'm constantly updating it.

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


How to get best results from FreeBSD-questions

2004-03-12 Thread Greg Lehey
How to get the best results from FreeBSD questions.
===

Last update $Date: 2003/03/09 22:09:31 $

This is a regular posting to the FreeBSD questions mailing list.  If
you got it in answer to a message you sent, it means that the sender
thinks that at least one of the following things was wrong with your
message:

- You left out a subject line, or the subject line was not appropriate.
- You formatted it in such a way that it was difficult to read.
- You asked more than one unrelated question in one message.
- You sent out a message with an incorrect date, time or time zone.
- You sent out the same message more than once.
- You sent an 'unsubscribe' message to FreeBSD-questions.

If you have done any of these things, there is a good chance that you
will get more than one copy of this message from different people.
Read on, and your next message will be more successful.

This document is also available on the web at
http://www.lemis.com/questions.html.

=

Contents:

I:Introduction
II:   How to unsubscribe from FreeBSD-questions
III:  Should I ask -questions, -newbies or -hackers?
IV:   How to submit a question to FreeBSD-questions
V:How to answer a question to FreeBSD-questions

I: Introduction
===

This is a regular posting aimed to help both those seeking advice from
FreeBSD-questions (the "newcomers"), and also those who answer the
questions (the "hackers").

   Note that the term "hacker" has nothing to do with breaking
   into other people's computers.  The correct term for the latter
   activity is "cracker", but the popular press hasn't found out
   yet.  The FreeBSD hackers disapprove strongly of cracking
   security, and have nothing to do with it.

In the past, there has been some friction which stems from the
different viewpoints of the two groups.  The newcomers accused the
hackers of being arrogant, stuck-up, and unhelpful, while the hackers
accused the newcomers of being stupid, unable to read plain English,
and expecting everything to be handed to them on a silver platter.  Of
course, there's an element of truth in both these claims, but for the
most part these viewpoints come from a sense of frustration.

In this document, I'd like to do something to relieve this frustration
and help everybody get better results from FreeBSD-questions.  In the
following section, I recommend how to submit a question; after that,
we'll look at how to answer one.

II:  How to unsubscribe from FreeBSD-questions
==

When you subscribed to FreeBSD-questions, you got a welcome message
from [EMAIL PROTECTED]  In this message, amongst other things, it
told you how to unsubscribe.  Here's a typical message:

  Welcome to the freebsd-questions mailing list!

  If you ever want to remove yourself from this mailing list,
  you can send mail to "[EMAIL PROTECTED]" with the following command
  in the body of your email message:

  unsubscribe freebsd-questions Greg Lehey <[EMAIL PROTECTED]>

  Here's the general information for the list you've
  subscribed to, in case you don't already have it:

  FREEBSD-QUESTIONS   User questions
  This is the mailing list for questions about FreeBSD.  You should not
  send "how to" questions to the technical lists unless you consider the
  question to be pretty technical.

Normally, unsubscribing is even simpler than the message suggests: you
don't need to specify your mail ID unless it is different from the one
which you specified when you subscribed.

If Majordomo replies and tells you (incorrectly) that you're not on
the list, this may mean one of two things:

  1.  You have changed your mail ID since you subscribed.  That's where
  keeping the original message from majordomo comes in handy.  For
  example, the sample message above shows my mail ID as
  [EMAIL PROTECTED]  Since then, I have changed it to
  [EMAIL PROTECTED]  If I were to try to remove [EMAIL PROTECTED] from
  the list, it would fail: I would have to specify the name with
  which I joined.

  2.  You're subscribed to a mailing list which is subscribed to
  FreeBSD-questions.  If that's the case, you'll have to figure out
  which one it is and get your name taken off that one.  If you're
  not sure which one it might be, check the headers of the
  messages you receive from freebsd-questions: maybe there's a
  clue there.

If you've done all this, and you still can't figure out what's going
on, send a message to [EMAIL PROTECTED], and he will sort things
out for you.  Don't send a message to FreeBSD-questions: they can't
help you.

III: Should I ask -questions, -newbies or -hackers?
===

Two mailing lists handle general questions about FreeBSD,
FreeBSD-questions and FreeBSD-hackers.  In addition, the
FreeBSD-newbies l

Re: 5.2.1-R == CURRENT????

2004-03-12 Thread Mark Ovens
Kris Kennaway wrote:
On Fri, Mar 12, 2004 at 07:51:48PM +, Mark Ovens wrote:
Surely not? I was advised that a problem I'm experiencing is fixed in 
-current. I just updated my source tree to -current with ''cvs co src/'' 
but no files have been updated :-/
Did you cvsup your CVS repository first?

No, my src/ tree was pulled using

cvs up -Pd -rRELENG_5_2_1_RELEASE src/

Mark

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


Re: resizing partitions in the same slice

2004-03-12 Thread Mark Ovens
BTW, some places have recommended commercial solution like Norton Ghost
or Partition Magic.  Do these products work on FreeBSD's UFS format and
grok partitions-in-a-slice?
Partition Magic only manipulates slices and does not know anything
about partitions within slices - especially FreeBSD partitions.
I would guess that Norton is the same because it is made for Microsloth
environments.   UFS wouldn't have anything to do with it - that comes
later with newfs.
Ghost and, IIRC, Drive Image (the Ghost equivalent from the makers of 
Partition Magic) will handle unidentified (i.e. UFS) partitions, but 
only as a sector by sector copy, so you can't take advantage of those 
products ability to scale up/down the partition (MS definition) sizes 
when migrating to a bigger/smaller disk.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: incorrect super block

2004-03-12 Thread lee slaughter
i'll try tar alone and see what happens. 
that didn't work either.  it should.
stumped.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Why does `df` lie about free space

2004-03-12 Thread Rob
Kyryll A Mirnenko wrote:
  That's an old problem, but yesterday I was working with 1.4G UFS2-slice 
reported by `df` to have 400kb of free space. Alternative calculations (e.g. 
writing a random file until kernel says no inode's free) give a result of 
more that 100M (!) unused. Thats about 7% of the whole size!
  So whats wrong with `df`?
Read "How is it possible for a partition to be more than 100% full?"
at
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html

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


IPSec/NAT/Gateway Question

2004-03-12 Thread Neil Fenemor
Hi all,

I currently have an issue of how "open" the whole WiFi tends to be, so,
as all good people should do, I've started implementing a IPSec
encryption system rather than the rather disappointing WEP.

I'm encrypting all data to and from the gateway, which isn't a problem.
This was documented rather well all over the internet.

What I'm having an issue, is if the "client" has a range of RFC 1918
addresses behind it, and I have to introduce NAT into the equation.

I've best tracked it down to the order that the kernel looks at the
packets to decide what to do with it.

This is where I stand at the moment.

x.y.z.11 -> x.y.z.254 : works perfectly
x.y.z.11 -> x.y.z.254 -> 0.0.0.0  : works perfectly
rfc 1918 -> x.y.z.11 -> x.y.z.254 : Fails
rfc 1918 -> x.y.z.11 -> x.y.z.254 -> 0.0.0.0 : Fails

The connection between x.y.z.11 and x.y.z.254 is there the IPSec takes
place, and is the only part "off the wire" as it were.

The issue presents itself as the packet, from an rfc 1918 address, goes
to the client box, gets inspected by the VPN rules, which are currently
set to match on the external address of the client machine, and is
subsequently overlooked by the VPN. The packet then goes on, gets NATed,
and goes out as a unencrypted packet, from x.y.z.11. Thats a generally
undesired transport mode.

On x.y.z.254, the packet goes back via the IPSec tunnel, but is then not
un-NATed.

All I believe should be required, is for the RFC 1918 packet to be NATed
to the external IP address, BEFORE it is inspected by the IPSec system.

So basically, all I'm really asking, is am I on the right line of
thinking, or have I just gone off on a complete tangent to where I
should be headed.

Any ideas/input would be greatly appreciated.

Regards

Neil Fenemor

Senior Systems Administrator
ThePacific.net Ltd.

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


Mouse (psm0) sometimes not working

2004-03-12 Thread Phil Schulz
Hello List!

I have a problem with my mouse which I can't figure out by myself. I 
hope any of you guys can help me. I tried to include as much information 
as possible so this eMail is rather long...

Let me first describe my setup a bit as I think it might be related to 
my problems. I have two computers sitting here, both are connected to 
the same keyboard, mouse and monitor through one of those KVM switches. 
The mouse is a Logitech MouseMan Dual Optical. The mouse has a cord and 
allows for USB and for PS/2 use (adaptor). My mouse is connected as a 
PS/2 mouse using the adaptor. It is recognized as

  psm0:  flags 0x100 irq 12 on atkbdc0
  psm0: model IntelliMouse, device ID 3
The first PC is running FreeBSD 4-Stable as a desktop as well as 
Windows 2000 (mostly to play games). The other one currently runs 
FreeBSD 4-Stable and is mainly for testing and playing around with and 
does not run moused(8) nor does it run X. The FreeBSD desktop runs 
XFree86 4.x.x (the one that comes w/ 4.9-Release) and moused(8). The 
following lines in /etc/rc.conf are used to start moused(8):

  moused_enable="YES"
  moused_port="/dev/psm0"
  moused_type="auto"
Now, the problem: When I boot FreeBSD and run X (which I always do, 
it's a desktop system), the mouse very often does not respond at all. 
Sometimes this is fixed by rebooting the machine. However, sometimes the 
problem remains after several reboots. Also, Windows sometimes does not 
recognize the mouse any more, which is really strange to me. I then need 
to either switch off the PC's PSU or, in case that didn't help, I have 
to boot windows in 'fail safe mode' or whatever it's called in English . 
Other times, time is on my side and after trying to boot FreeBSD after 
an hour or so, it will work again without me doing anything.

These are things I noticed in such situations: When switching to the 
first console via +, I don't see any error messages (I 
probably just don't see them; doesn't mean they're not there). When I 
log in and check which processes are running, I find moused(8) not 
running. I am then unable to start moused(8) manually. Many times it 
complains about an I/O error for /dev/psm0. It happend once (I think) 
that /dev/psm0 was not there at all. Remaking it via

  cd /dev && sh MAKEDEV psm0

made the device file, but did not make moused(8) work. Also, I saw (only 
one time) a message during booting which looked like

  kernel: psm0: failed to open the device (doopen)

but grep(1)'ing through /usr/src/sys did not give me any results where 
this could come from. This is what I've seen from the software side, but 
hardware shows some more symptoms: The mouse has got two optical sensors 
which are usually dimmed while the mouse is not being moved and will be 
lit as soon as I move the mouse. However, when the fault occurs, the 
LEDs are constantly blinking brightly but will return to their normal 
behaviour when switching (using the KVM switch) from one PC to the other 
(if that one doesn't show the problem at the time).

I've done some googling prior to this post and found many problem 
reports about users who have problems with their mouse when connecting 
via a KVM switch. However, this problem I'm facing also occurs when I do 
not connect through the switch but also when I connect the mouse 
directly to the port. It has not occured when connecting the mouse to 
the USB port. I have trouble solving this issue by myself because my 
knowledge about the hardware involved is very limited and I haven't 
found any way to reliably reproduce the problem (other than booting the 
system). I hope that there is somebody out there who can either tell me 
how to fix this or at least explain why this problem exists and why 
there isn't any way of fixing this...

Phil.

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


Re: 5.2.1-release iso images broken?

2004-03-12 Thread scion+fbsdq
Date: Fri, 12 Mar 2004 14:55:13 -0800
From: Kris Kennaway <[EMAIL PROTECTED]>


>> Is there a known problem with the i386 iso images for 5.2.1-release?
>
>Not that I've heard of.  The most likely explanation is that your
>download was corrupted, or your CD did not burn correctly.  Did you
>verify the MD5 hash of the ISO image after you downloaded it, and did
>you do the same for the CD you burned?
>
Not after burning it.  Actually never thought of md5'ing /dev/acd0.

However, I did just download 5.2.1-release-miniinst.iso, and it did boot.  

It appears different from the same thing d/l-ed a week ago, and there was 
one PR about the MD5s being incorrect, but that appeared to have been
fixed before I started booting this darned Compaq.

Anyway, looks as if I'm back to fighting with the 1850, and not the ISOs!

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


Re: incorrect super block

2004-03-12 Thread lee slaughter


Example of a test of this method (running burncd at low speed to make 
sure tar+gzip can keep up):

===
# tar -czf - temp/* | burncd -f /dev/acd0c -s 2 data - fixate
next writeable LBA 0
writing from stdin
written this track 3760 KB total 3760 KB
fixating CD, please wait..
#
# mkdir temptemp
# cd temptemp
# tar -xzf /dev/acd0c
gzip: stdin: decompression OK, trailing garbage ignored
tar: Child returned status 2
tar: Error exit delayed from previous errors
#
===
thanks. i tried that exactly.
i still get unexpected eof, whether i pipe tar to burncd
or just burncd the tar.gz file, i get similar errors:
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
All of the unpacked files were identical to the originals according to 
diff.  The error message seems to indicate that tar pads blocks at the 
ends of files with characters that confuse gzip.

I also did a test that produced 148 MB of tar.gz file, and it unpacked 
fine (with the same error message).
 

maybe it's gzip.  i've got 1.2.4
i'll try tar alone and see what happens.
thanks, Bob.
lee

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


Why does `df` lie about free space

2004-03-12 Thread Kyryll A Mirnenko
  That's an old problem, but yesterday I was working with 1.4G UFS2-slice 
reported by `df` to have 400kb of free space. Alternative calculations (e.g. 
writing a random file until kernel says no inode's free) give a result of 
more that 100M (!) unused. Thats about 7% of the whole size!
  So whats wrong with `df`?

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


Re: warning, this may really be OT: fonts question.

2004-03-12 Thread Micheas Herman
On Fri, 2004-03-12 at 14:42, Gary Kline wrote:
>   fOlks,
> 
>   I've recently found some fonts that free--beyond copyright
>   or otherwise; I have the tools to add these typefaces to enscript.  
>   Are there existing tools that take a ttf or postscript font
>   and make them available for web use?  

pfaedit

> 
>   tia,
> 
>   gary
> 

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


Re: resizing partitions in the same slice

2004-03-12 Thread Jerry McAllister
> 
> On Fri, Mar 12, 2004 at 02:22:21PM -0500, Jerry McAllister wrote:
> : Eugene Lee asked:
> : > 
> : >   /dev/da0s1g   2064302 1464672  43448677%/usr
> : >   /dev/da0s1h  10660096 720 9806570 0%/data
> : > 
> : > I almost run out of space during a buildworld, so I'd like to expand
> : > /usr from 2 GB to 4 GB by taking space away from /data.
> [...]
> : > So my procedure to do this is to recalculate the size/offset/cylinder
> : > settings for my partitions "g" & "h", change those settings via
> : > disklabel(8), then use growfs(8) on /dev/da0s1g?  Seems simple enough,
> : > and the data on /usr should be preserved, correct?
> : 
> : Yes and no.   I do not think you can shrink a partition with these.
> : Since, in order to grow /dev/da0s1g you will have to shrink /dev/da0s1h
> : I think you cannot do what you want.   I may well be wrong on this.
> : I haven't tried it.
> 
> I'm a little surprised.  I would think that resizing partitions is a
> common request, that the idea of growing one partition while shrinking
> another is not a new or rare notion.  Can anyone else share their views
> or experiences?  The list archives contain few comments on the subject.

I can't answer to that very much.  I have always managed disk size by 
moving things around and making symlinks as I described.   Some people 
don't even have separate /usr and /var partitions.  They just include 
them in one large partition (often /usr actually or sometimes /home)
along with everything else and then they don't have to worry about
how to size things other than just getting enough disk overall.
What I suggested is sort of in between - by moving those directories
in /usr that tend to grow a lot in to the big grab-all partition.

> BTW, some places have recommended commercial solution like Norton Ghost
> or Partition Magic.  Do these products work on FreeBSD's UFS format and
> grok partitions-in-a-slice?

Partition Magic only manipulates slices and does not know anything
about partitions within slices - especially FreeBSD partitions.
I would guess that Norton is the same because it is made for Microsloth
environments.   UFS wouldn't have anything to do with it - that comes
later with newfs.

> [...symlinking /usr/{ports,local,src} to elsewhere...]
> : 
> : This should give you back quite a lot of your /usr file system
> : Although ports, local and src are the usual hogs, you may need
> : to use du in the /usr directory to find out what else is taking
> : lots of space if these aren't the ones.   Do you have a bunch of
> : home directories there or are you making them in /data for example.
> 
> I have /usr/home, and other stuff in /data.  I guess I could always
> symlink /usr/src to /data/src when doing a buildworld.  Drats.
> 
> : > But will /dev/da0s1h be okay?  Is editing the disklabel enough?  Or do I
> : > need to reformat the partition --- and, if so, how?  I'm not too comfy
> : > using newfs(8) directly.  Can I just run "newfs /dev/da0s1h" after
> : > running the growfs(8) command and it will use the disklabel settings?
> : > Or can I be a wuss and use /stand/sysinstall?  :-)
> : 
> : Editing the disklabel will change the partition sizes.  
> : Definitely /dev/da0s1h will be messed up.   Running newfs on it
> : will build a new filesystem in whatever is now that partition.
> 
> Got it.  I figured as much, but it's always good to get other opinions.
> Jerry, thanks for the feedback!
> 

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


Re: CVSUP question

2004-03-12 Thread Ed Budd
On Fri, 12 Mar 2004 13:21:22 -0800
Joshua Lokken <[EMAIL PROTECTED]> wrote:

> * Darryl Hoar <[EMAIL PROTECTED]> [2004-03-12 08:27]:
> > Greetings,
> > I installed 5.1-release on a box.  I installed cvsup from ports.
> > I then copied /usr/src/share/examples/cvsup/stable-sup /etc.
> > 
> > I changed the file to point to a CVS server near me.  The notes
> > I was reading were specific to Freebsd 4.6.  Since I had 
> > 5.1 installed I guessed I needed to choose RELENG_5 to
> > track 5.1 stable.  I then added the following lines to the
> > bottom of the file:
> > 
> > ports-www tag=.
> > ports-net tag=.
> > ports-security tag=.
> > ports-sysutils tag=.
> > 
> > I then did a cvsup /etc/stable-supfile.  The system trundled away,
> > showing on the screen file deletions, etc.
> > 
> > When it finished (without any errors, and telling me it was
> > sucessful), I tried to cd /usr/src.  The directory was gone. 
> > Hmm So, I modified the stable-sup file to use RELENG_5_1.   Then
> > did a cvsup /etc/stable-supfile.  But once it connected to the cvsup
> > server, it just hung.
> > 
> > If I want to track 5.1-stable, what should I use ?
> 
> Other folks on the list seem to understand this differently
> than I do.  My understanding is that the 'cutting-edge'
> development branch of 5.x is -CURRENT.  If this is what you
> are wanting to track, then use:
> 
> src-all tag=.
> 
> I've never heard of 5.1-stable.  Others may be able to give
> better answers.
> 
>  
> > thanks,
> > Darryl
> 
> -- 
> Joshua
> 
> All your people must learn before you can reach for the stars.
>   -- Kirk, "The Gamesters of Triskelion", stardate 3259.2
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"


As far as I know there is no 5.1-stable since the 5.x series is still
"experimental". If you want STABLE its RELENG_4 only. I don't
think RELENG_5 exists as a valid tag but I could be wrong. I've heard
elsewhere that using a non-existent tag may leave you with an
empty/usr/src so this is consistent with what you've described.

If all you want to do is track 5.1 REL with security errata (a.k.a
security branch) use:

tag=RELENG_5_1

I used this for some time before upgrading to 5.2.1 which uses:

tag=RELENG_5_2

I've found that occasionally the cvsup process will hang
because the particular mirror I've chosen is having problems or
there's network congestion, etc. Try another mirror with the correct tag
and let us know what happens. 

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


Re: 5.2.1-release iso images broken?

2004-03-12 Thread Mike Hogsett

> How do you do the MD5 hash of a whole CD?

( everything is a file ... )

If it is a physical CD and not an ISO image on another file system you
should be able to put the CD into the CD drive and run md5 on the CD
device's device node in /dev/

If the CD is an ISO image just run md5 on the file.

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


Re: resizing partitions in the same slice

2004-03-12 Thread Eugene Lee
On Fri, Mar 12, 2004 at 02:22:21PM -0500, Jerry McAllister wrote:
: Eugene Lee asked:
: > 
: > /dev/da0s1g   2064302 1464672  43448677%/usr
: > /dev/da0s1h  10660096 720 9806570 0%/data
: > 
: > I almost run out of space during a buildworld, so I'd like to expand
: > /usr from 2 GB to 4 GB by taking space away from /data.
[...]
: > So my procedure to do this is to recalculate the size/offset/cylinder
: > settings for my partitions "g" & "h", change those settings via
: > disklabel(8), then use growfs(8) on /dev/da0s1g?  Seems simple enough,
: > and the data on /usr should be preserved, correct?
: 
: Yes and no.   I do not think you can shrink a partition with these.
: Since, in order to grow /dev/da0s1g you will have to shrink /dev/da0s1h
: I think you cannot do what you want.   I may well be wrong on this.
: I haven't tried it.

I'm a little surprised.  I would think that resizing partitions is a
common request, that the idea of growing one partition while shrinking
another is not a new or rare notion.  Can anyone else share their views
or experiences?  The list archives contain few comments on the subject.

BTW, some places have recommended commercial solution like Norton Ghost
or Partition Magic.  Do these products work on FreeBSD's UFS format and
grok partitions-in-a-slice?

[...symlinking /usr/{ports,local,src} to elsewhere...]
: 
: This should give you back quite a lot of your /usr file system
: Although ports, local and src are the usual hogs, you may need
: to use du in the /usr directory to find out what else is taking
: lots of space if these aren't the ones.   Do you have a bunch of
: home directories there or are you making them in /data for example.

I have /usr/home, and other stuff in /data.  I guess I could always
symlink /usr/src to /data/src when doing a buildworld.  Drats.

: > But will /dev/da0s1h be okay?  Is editing the disklabel enough?  Or do I
: > need to reformat the partition --- and, if so, how?  I'm not too comfy
: > using newfs(8) directly.  Can I just run "newfs /dev/da0s1h" after
: > running the growfs(8) command and it will use the disklabel settings?
: > Or can I be a wuss and use /stand/sysinstall?  :-)
: 
: Editing the disklabel will change the partition sizes.  
: Definitely /dev/da0s1h will be messed up.   Running newfs on it
: will build a new filesystem in whatever is now that partition.

Got it.  I figured as much, but it's always good to get other opinions.
Jerry, thanks for the feedback!

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


Re: 5.2.1-release iso images broken?

2004-03-12 Thread Brian M. Kincaid
>On Fri, Mar 12, 2004 at 02:12:37PM -0500, [EMAIL PROTECTED] wrote:
>> I've been trying to boot up a Compaq 1850.  Aside from it hanging
>> on booting I noticed that I was booting with 5.2.1-RC, not -release
>> So, d/l the latest iso and now the darned machine won't boot from
>> the 5.2.1-release cds at all.  Doesn't even see them.  I've booted
>> this machine up on 3 or 4 different linuxen, Fbsd4.9, Solaris 8,
>> even openDarwin 7.  I've burned several cds of 5.2.1-release-mininst
>> but no joy.
>> 
>> So, off to another pc and golly if the cd won't boot there either!
>> 
>> Is there a known problem with the i386 iso images for 5.2.1-release?
>
>Not that I've heard of.  The most likely explanation is that your
>download was corrupted, or your CD did not burn correctly.  Did you
>verify the MD5 hash of the ISO image after you downloaded it, and did
>you do the same for the CD you burned?
>
>Kris

How do you do the MD5 hash of a whole CD?

Thanks,

Brian

-- 
Brian M. Kincaid
PGP Key: http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0x33656401


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


Re: XFree86-3.3.6 on FreeBSD-4.9 ?

2004-03-12 Thread Kris Kennaway
On Fri, Mar 12, 2004 at 01:15:17PM -0800, Jeff Sandys wrote:
> Can I use XFree86-3.3.6 server on FreeBSD-4.9 ?

Maybe..it's not a configuration we test any more because the XFree86
3.x package was always a bitch to build, and most of the world has
moved on to 4.x.  The port is still in x11/XFree86 (we should probably
move it to XFree86-3 at some point), so you can just try installing it
from there.

Kris


pgp0.pgp
Description: PGP signature


Re: problems running lpd (both via rc.conf and directly)

2004-03-12 Thread Warren Block
[Please wrap your text at 72 columns, thanks.]

On Fri, 12 Mar 2004, rogermiller wrote:

> I'm having a problem running lpd. I just installed FreeBSD 4.9 on a
> new Pentium I, and set up printing. Following the instructions in
> Section 11.3 of the Handbook, I added the following line to
> /etc/rc.conf:
>  lpd_enable="YES"
>
> However, this does not turn on lpd, even when I reboot.

Well, that's not the only thing you need for printing.  You also need to
have /etc/printcap configured.  And the spool directory needs to be
created.

> Furthermore, when I su to root, and issue the "lpd" command, it prints
> whatever I have in print queue, but when everything is printed, and I
> try issuing another lpr command, I get the following error message:
>
> lpr: Unable to connect /var/run/printer: Socket operation on non-socket

A Google of the mailing list shows that this message is what happens
when you have mistakenly created a directory called /var/run/printer.
That may not be the only way to get the error, though.

-Warren Block * Rapid City, South Dakota USA
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 5.2.1-R == CURRENT????

2004-03-12 Thread Kris Kennaway
On Fri, Mar 12, 2004 at 07:51:48PM +, Mark Ovens wrote:
> Surely not? I was advised that a problem I'm experiencing is fixed in 
> -current. I just updated my source tree to -current with ''cvs co src/'' 
> but no files have been updated :-/

Did you cvsup your CVS repository first?

Kris


pgp0.pgp
Description: PGP signature


Re: 5.2.1-release iso images broken?

2004-03-12 Thread Kris Kennaway
On Fri, Mar 12, 2004 at 02:12:37PM -0500, [EMAIL PROTECTED] wrote:
> I've been trying to boot up a Compaq 1850.  Aside from it hanging
> on booting I noticed that I was booting with 5.2.1-RC, not -release
> So, d/l the latest iso and now the darned machine won't boot from
> the 5.2.1-release cds at all.  Doesn't even see them.  I've booted
> this machine up on 3 or 4 different linuxen, Fbsd4.9, Solaris 8,
> even openDarwin 7.  I've burned several cds of 5.2.1-release-mininst
> but no joy.
> 
> So, off to another pc and golly if the cd won't boot there either!
> 
> Is there a known problem with the i386 iso images for 5.2.1-release?

Not that I've heard of.  The most likely explanation is that your
download was corrupted, or your CD did not burn correctly.  Did you
verify the MD5 hash of the ISO image after you downloaded it, and did
you do the same for the CD you burned?

Kris


pgp0.pgp
Description: PGP signature


warning, this may really be OT: fonts question.

2004-03-12 Thread Gary Kline

fOlks,

I've recently found some fonts that free--beyond copyright
or otherwise; I have the tools to add these typefaces to enscript.  
Are there existing tools that take a ttf or postscript font
and make them available for web use?  

tia,

gary


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

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


Re: hardware: backup tape reliability

2004-03-12 Thread Craig Reyenga
Robert,

Are DVDs an option for them? growisofs works great here, using the LG
GSA-4081B 8x DVD writer. I don't see how a DVD (or a CD) would fail under
the conditions you outlined, and 4.38GiB per disc is pretty good. I hope
this helps.


-Craig


- Original Message -
From: "Robert Huff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 12, 2004 1:54 PM
Subject: OT: hardware: backup tape reliability


>
> I have a friend who's trying to implement a back-up regime,
> but running into media issues.
> Specifically: they live in an area with extremely high
> temperature+humidity (90-95 F/32-35 C; 90+% hum.) and climate
> conditioning is not an option.  They need to backup critical data
> files (code base is not an issue) and have tried floppies, ZIP
> drives, and CDs ... all of which have proven to have a very short
> life span.
> They're considering trying tape backup; but before spending
> hundreds or even thousands of dollars on a system they'd like some
> assurance this will work.
> (One way to do this would be a hot swap disk ... but that's an
> escalation we'd like to avoid if possible.)
>
> I'd like to hear from people who have Been There and Solved
> That.  I'll also take pointers articles that talk about tested
> solutions.
>
> Thanks in advance.
>
>
> Robert Huff
>
>
> ___
> [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: USB ugen0 problems

2004-03-12 Thread admin2

As a followup, I modified the /usr/src/sys/dev/usb/ugen.c source to
provide some additional debugging output in the ugen_set_config() function
(relevant code at bottom). This is the code responsible for creating the
device structure for the USB device endpoints after retrieving the
endpoint addresses from the USB device (i.e. /dev/ugen0.EE). The
make_dev(9) call fails (see log entries below) with a non zero status.
Given the endpoints returned by the device were valid, I'm at a loss as to
why. The device works correctly under Windows 2000 (fyi). Is this a
problem with the my device, a bug, or ???

Chris

Mar 12 14:09:46 cosmo /kernel: usbd_reset_port: port 2 reset done, 
error=NORMAL_COMPLETION
Mar 12 14:09:46 cosmo /kernel: usbd_new_device bus=0xc0d2e800 port=2 depth=1 
lowspeed=512
Mar 12 14:09:46 cosmo /kernel: usbd_setup_pipe: dev=0xc0ec3f80 iface=0 ep=0xc0ec3f9c 
pipe=0xc0ec3f84
Mar 12 14:09:46 cosmo /kernel: usbd_new_device: adding unit addr=2, rev=110, class=0, 
subclass=0, protocol=0, maxpacket=8, len=18, ls=1
Mar 12 14:09:46 cosmo /kernel: usbd_new_device: new dev (addr 2), dev=0xc0ec3f80, 
parent=0xc0d30c80
Mar 12 14:09:46 cosmo /kernel: usbd_probe_and_attach: trying device specific drivers
Mar 12 14:09:46 cosmo /kernel: usbd_probe_and_attach: no device specific driver found
Mar 12 14:09:46 cosmo /kernel: usbd_probe_and_attach: looping over 1 configurations
Mar 12 14:09:46 cosmo /kernel: usbd_probe_and_attach: trying config idx=0
Mar 12 14:09:46 cosmo /kernel: usbd_set_config_index: (addr 2) attr=0x80, 
selfpowered=0, power=100
Mar 12 14:09:46 cosmo /kernel: usbd_set_config_index: set config 1
Mar 12 14:09:46 cosmo /kernel: usbd_probe_and_attach: no interface drivers found
Mar 12 14:09:46 cosmo /kernel: ugen0: LabJack Labjack U12, rev 1.10/5.f6, addr 2
Mar 12 14:09:46 cosmo /kernel: usbd_set_config_index: free old config
Mar 12 14:09:46 cosmo /kernel: usbd_set_config_index: (addr 2) attr=0x80, 
selfpowered=0, power=100
Mar 12 14:09:46 cosmo /kernel: usbd_set_config_index: set config 1
Mar 12 14:09:46 cosmo /kernel: ugen_set_config: ugen0 to configno 1, sc=0xc0ebf000
Mar 12 14:09:46 cosmo /kernel: ugen_set_config: ifaceno 0
Mar 12 14:09:46 cosmo /kernel: ugen_set_config: endptno 0, endpt=0x01(1,1), 
sce=0xc0ebf264
Mar 12 14:09:46 cosmo /kernel: ugen_set_config: endptno 1, endpt=0x02(2,0), 
sce=0xc0ebf328
Mar 12 14:09:46 cosmo /kernel: ugen_set_config: Configuring Additional Endpoints
Mar 12 14:09:46 cosmo /kernel: ugen_set_config: Calling make_dev for ugen0.1
Mar 12 14:09:46 cosmo /kernel: ugen_set_config: make_dev returned -1058926464
Mar 12 14:09:46 cosmo /kernel: ugen_set_config: Calling make_dev for ugen0.2
Mar 12 14:09:46 cosmo /kernel: ugen_set_config: make_dev returned -1058926592
Mar 12 14:09:46 cosmo /kernel: ugen_set_config: Endpoint -1058796112 is null, can't 
call make_dev

#if defined(__FreeBSD__)
/* the main device, ctrl endpoint */
make_dev(&ugen_cdevsw, UGENMINOR(USBDEVUNIT(sc->sc_dev), 0),
UID_ROOT, GID_OPERATOR, 0644, "%s", USBDEVNAME(sc->sc_dev));

DPRINTFN(1,("ugen_set_config: Configuring Additional Endpoints\n"));

for (endptno = 1; endptno < USB_MAX_ENDPOINTS; endptno++) {
if (sc->sc_endpoints[endptno][IN].sc != NULL ||
sc->sc_endpoints[endptno][OUT].sc != NULL ) {
/* endpt can be 0x81 and 0x01, representing
 * endpoint address 0x01 and IN/OUT directions.
 * We map both endpts to the same device,
 * IN is reading from it, OUT is writing to it.
 *
 * In the if clause above we check whether one
 * of the structs is populated.
 */
DPRINTFN(1,("ugen_set_config: Calling make_dev for 
%s.%d\n",USBDEVNAME(sc->sc_dev), endptno));
myerr = make_dev(&ugen_cdevsw,
UGENMINOR(USBDEVUNIT(sc->sc_dev), endptno),
UID_ROOT, GID_OPERATOR, 0644,
"%s.%d",
USBDEVNAME(sc->sc_dev), endptno);
DPRINTFN(1,("ugen_set_config: make_dev returned %d\n", myerr) 
);
} else {
DPRINTFN(1,("ugen_set_config: Endpoint %d is null, can't call 
make_dev\n", USBDEVNAME(sc->sc_dev), endptno))
;
}
}
#endif

On Thu, 11 Mar 2004 [EMAIL PROTECTED] wrote:

>
> I'm attempting to interface with a usb based data acquisition device
> called a Labjack (http://labjack.com) under FreeBSD 4.9. The Labjack is a
> USB1.1 compliant HID device with a single configuration and two
> "interrupt" endpoints (in/out) not including the control endpoint.
>
> Initially I tried to use the uhid driver, but due to lack of functionality
> needed in this case I removed the uhid driver from the kernel in favor of
> the ugen driv

SOLVED! Re: "bind: Address already in use" on Apache 1.3.29

2004-03-12 Thread Mark
It is solved. ;) I had build Apache as follows:

"make APACHE_WITH_MODSNMP=yes"

Removing the mod_snmp directive, and recompiling, caused all problems to go
away. The modules are not properly created; hence, after unloading them from
config, Apache really trips over their absence. I can live without mod_snmp,
though. :)

- Mark

- Original Message - 
From: "Kent Stewart" <[EMAIL PROTECTED]>
To: "Mark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 12, 2004 10:21 PM
Subject: Re: "bind: Address already in use" on Apache 1.3.29

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


problems running lpd (both via rc.conf and directly)

2004-03-12 Thread rogermiller
Hello, again.

I'm having a problem running lpd. I just installed FreeBSD 4.9 on a new Pentium I, and 
set up printing. Following the instructions in Section 11.3 of the Handbook, I added 
the following line to /etc/rc.conf:
 lpd_enable="YES"

However, this does not turn on lpd, even when I reboot. Furthermore, when I su to 
root, and issue the "lpd" command, it prints whatever I have in print queue, but when 
everything is printed, and I try issuing another lpr command, I get the following 
error message:

lpr: Unable to connect /var/run/printer: Socket operation on non-socket
lpr: Check to see if the master process 'lp' is running.

I accordingly do a ps|grep lpd, and sure enough, it's not running.

To make things worse, when I try deleting the print jobs via lprm, I can't, not even 
when I log on as root and issue "lprm -".

Any ideas on what I'm doing wrong here?

Thanks.

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


Re: extra pages when printing text files using pr and lpr

2004-03-12 Thread rogermiller
Mike,

Thank you so much! Your suggestion worked perfectly. (I don't know why I hadn't 
thought to look at the man page for printcap.)

Roger Miller
-- Original Message --
From: Mike Jeays <[EMAIL PROTECTED]>
Date:  12 Mar 2004 07:22:40 -0500

>On Thu, 2004-03-11 at 23:09, rogermiller wrote:
>> Hi, all.
>> 
>> I write a lot of plain text files, and print them to a dot matrix
>> printer attached to my parallel port. To do so, I use the pr command
>> to add headers, as follows:
>>   pr -o 8 filename | lpr
>> 
>> The problem is that the system always generates an extra page [form
>> feed, I suppose] after the last page. If print *several* files at
>> the same time, the extra sheet only follows the last page.
>> 
>> Is there any way of suppressing this last blank page / formfeed?
>> 
>> Thanks.
>> 
>> p.s. If it matters, I'm running 4.9-RELEASE. 
>> ___
>> [EMAIL PROTECTED] mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
>Try the "sf" option in /etc/printcap/.  Read man printcap for more
>details.
>
>
 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: "bind: Address already in use" on Apache 1.3.29

2004-03-12 Thread Kent Stewart
On Friday 12 March 2004 12:55 pm, Mark wrote:
> - Original Message -
> From: "Kent Stewart" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: "Mark" <[EMAIL PROTECTED]>
> Sent: Friday, March 12, 2004 9:42 PM
> Subject: Re: "bind: Address already in use" on Apache 1.3.29
>
> > On Friday 12 March 2004 12:26 pm, Mark wrote:
> > > Hello,
> > >
> > > I upgraded my Apache server to 1.3.29, on FreeBSD 4.9R-p3. Now,
> > > all of sudden, it will not bind anymore, for no apparent reason:
> > >
> > > [Fri Mar 12 21:12:12 2004] [notice] Apache/1.3.29 (Unix)
> > > mod_perl/1.28 PHP/4.3.4 mod_ssl/2.8.16 OpenSSL/0.9.7c configured
> > > -- resuming normal operations [Fri Mar 12 21:12:12 2004] [notice]
> > > Accept mutex: flock (Default: flock) bind: Address already in use
> > >
> > > No address is in use, I can assure you. This is quite absurd; I
> > > use the same config as the.28 version. The daemon will not
> > > prefork, either.
> > >
> > > Anyone has similar experience? Or an idea to solve it?
> >
> > Did you stop the oldversion of Apache before you tried to start the
> > new one?
>
> Of course. A billion times, even. Plus, I unloaded all but every
> module and restarted again, and again, and again. I even went so far
> as to remove all Listen commands. Still the same! Something is fishy.
>

I would stop Apache and see if you have any httpd's left running. That 
is about the only thing I can think of that would prevent the new one 
from binding. If you do, I would try a "killall httpd". 

I had that happen once and it was because something from the old version 
was still running. Apache is the only port that I don't use portupgrade 
to do the update. I build, stop apache, make deinstall, install it, and 
restart it.

I have been known to do a shutdown now to drop into single user mode but 
I never had to do it because of apache.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: CVSUP question

2004-03-12 Thread Joshua Lokken
* Darryl Hoar <[EMAIL PROTECTED]> [2004-03-12 08:27]:
> Greetings,
> I installed 5.1-release on a box.  I installed cvsup from ports.
> I then copied /usr/src/share/examples/cvsup/stable-sup /etc.
> 
> I changed the file to point to a CVS server near me.  The notes
> I was reading were specific to Freebsd 4.6.  Since I had 
> 5.1 installed I guessed I needed to choose RELENG_5 to
> track 5.1 stable.  I then added the following lines to the
> bottom of the file:
> 
> ports-www tag=.
> ports-net tag=.
> ports-security tag=.
> ports-sysutils tag=.
> 
> I then did a cvsup /etc/stable-supfile.  The system trundled away,
> showing on the screen file deletions, etc.
> 
> When it finished (without any errors, and telling me it was sucessful),
> I tried to cd /usr/src.  The directory was gone.  Hmm So,
> I modified the stable-sup file to use RELENG_5_1.   Then did a 
> cvsup /etc/stable-supfile.  But once it connected to the cvsup server,
> it just hung.
> 
> If I want to track 5.1-stable, what should I use ?

Other folks on the list seem to understand this differently
than I do.  My understanding is that the 'cutting-edge'
development branch of 5.x is -CURRENT.  If this is what you
are wanting to track, then use:

src-all tag=.

I've never heard of 5.1-stable.  Others may be able to give
better answers.

 
> thanks,
> Darryl

-- 
Joshua

All your people must learn before you can reach for the stars.
-- Kirk, "The Gamesters of Triskelion", stardate 3259.2
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


XFree86-3.3.6 on FreeBSD-4.9 ?

2004-03-12 Thread Jeff Sandys
Can I use XFree86-3.3.6 server on FreeBSD-4.9 ?


I installed FreeBSD-4.5 on my old 486 VLB computer and x-windows 
worked fine.  This is a sweet old computer, I like to call it the 
fastest 486 in the west; with a 5x86 processor @ 150Mhz and a 50Mhz 
VLB bus and parity ram, it is a very stable and useable computer.

I decided to Upgrade to FreeBSD-4.9, and ended up with XFree86-4.3.
I couldn't get startx to run.  It turns out that the Trio64 is not 
supported in XFree86-4.x.

Can I use XFree86-3.3.6 on FreeBSD-4.9 ?

How do I install XFree86-3.3.6 from my FreeBSD-4.5 distribution?
(it is not in the ports but in separate folders)

What sort of problems might I have with such a configuration?

I searched the mail archives and found a message in freebsd-x11 
titled "please fix your port" by S.C.Gehl in Dec 2003 where they 
complain about x-server not working on a Trio64 after upgrading 
to 4.9.  They are probably having the same problem that I am.

When I first upgraded to FreeBSD-4.9 the Xfree86 port wouldn't 
load, because expat had a package problem.  But I was able to 
start windowmaker so I presume that XFree86-3.3.6 was still 
available.  After I downloaded a version of expat that would 
load and loaded XFree86-4.3 then I couldn't startx.


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


Re: Portupgrade - Piping Output to file

2004-03-12 Thread Anthony Chavez
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 12 Mar 2004 13:32:17 +1100 Ron Joordens <[EMAIL PROTECTED]> wrote:
> How do I direct my output to a file so I can review it to find the reason or
> at least post it to this forum? I want the output dumped to a file and
> display on the monitor at the same time. Last time I tried using > the
> monitor was blank but there was nothing in the file.

script and tee work, but you might consider the -l and -L options to
portupgrade.  You can also make those options permanent in
/usr/local/etc/pkgtools.conf.

HTH!

- -- 
Anthony Chavez http://www.anthonychavez.org/
mailto:[EMAIL PROTECTED]jabber:[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFAUijXbZTbIaRBRXERAp2FAJ9CYyyyR4sAGxIVC9piG00qXtxCWwCdE0nf
BCmJ5Vxj6kz+GfcdAVcXeR8=
=JtpH
-END PGP SIGNATURE-

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


Re: My Greatest Wish for FreeBSD

2004-03-12 Thread Kent Stewart
On Friday 12 March 2004 09:17 am, Odhiambo Washington wrote:
> I have a dream! The day I will manage to get Mozilla (or any other
> browser) on FreeBSD (5.2.1) to behave and not die when I open a page
> with java applets.
>
>


The hardest place I ever had to visit was 
http://www.cenapred.unam.mx/mvolcan.html

What I am interested in is "Último Reporte", which is the current status 
of the volcano. Mozilla will work just fine on that page. In fact, it 
used to be the only one on FreeBSD that would display the "Last 
Report". They don't include the javascript stuff on the English page.

I am wondering if you still have a mix of pthreads.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: "bind: Address already in use" on Apache 1.3.29

2004-03-12 Thread Mark
- Original Message -
From: "Kent Stewart" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Mark" <[EMAIL PROTECTED]>
Sent: Friday, March 12, 2004 9:42 PM
Subject: Re: "bind: Address already in use" on Apache 1.3.29

> On Friday 12 March 2004 12:26 pm, Mark wrote:
>
> > Hello,
> >
> > I upgraded my Apache server to 1.3.29, on FreeBSD 4.9R-p3. Now, all
> > of sudden, it will not bind anymore, for no apparent reason:
> >
> > [Fri Mar 12 21:12:12 2004] [notice] Apache/1.3.29 (Unix) mod_perl/1.28
> > PHP/4.3.4 mod_ssl/2.8.16 OpenSSL/0.9.7c configured -- resuming normal
> > operations [Fri Mar 12 21:12:12 2004] [notice] Accept mutex: flock
> > (Default: flock) bind: Address already in use
> >
> > No address is in use, I can assure you. This is quite absurd; I use the
> > same config as the.28 version. The daemon will not prefork, either.
> >
> > Anyone has similar experience? Or an idea to solve it?
>
> Did you stop the oldversion of Apache before you tried to start the new
> one?

Of course. A billion times, even. Plus, I unloaded all but every module and
restarted again, and again, and again. I even went so far as to remove all
Listen commands. Still the same! Something is fishy.

- Mark

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


Re: 5.2 upgrade and Exim delivery

2004-03-12 Thread joshua lokken
Hello,

On a suggestion from the exim-users list ( I should've known to do this 
anyway),
I did:

# portupgrade -Rf exim

and my problems have gone away.  The 'missing' mail poured in, and exim is
happy.  Thanks very much.
joshua lokken wrote:

Hello all,

I am working on becoming familiar with FreeBSD 5.x after using 4.x for the 
past few years.
The machine in question is a web and mail server; I originally installed 
5.1 from the mini iso,
then upgraded to RELENG_5_2 last weekend.  The upgrade went without 
problems, as it
always has...and i did not change anything in Exim's configuration, but 
now

Exim no longer starts on system startup.  In /etc/rc.conf, I have:

sendmail_enable="NONE"
exim_enable="YES"
And the lines in /etc/mail/mailer.conf are changed from sendmail to exim 
binary paths.



ls /var/spool/clientmqueue shows messages in form:  qfi2FB8SYT048073
ls /var/spool/exim/msglog shows messages in form:1B11Vc-cm-S4
So, I'm wondering,

a) what went wrong during the upgrade?


Can't say for sure.  It's looks a lot like sendmail
is handling your incoming SMTP, though; that's
sendmail's message ID type you've listed there.
It might be wise to instruct FBSD not build sendmail
at all; IIRC (but do some checking) that would be
NO_SENDMAIL="true" (I mean, really do some checking...)
in /etc/make.conf
b) how do I get my messages into the appropriate spool / delivered?

Have you tried starting Exim?  I guess that
is where the error messages are coming from...
What does the Exim FAQ say?

KDK


Joshua

_
Get business advice and resources to improve your work life, from bCentral. 
http://special.msn.com/bcentral/loudclear.armx

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


Re: "bind: Address already in use" on Apache 1.3.29

2004-03-12 Thread Kent Stewart
On Friday 12 March 2004 12:26 pm, Mark wrote:
> Hello,
>
> I upgraded my Apache server to 1.3.29, on FreeBSD 4.9R-p3. Now, all
> of sudden, it will not bind anymore, for no apparent reason:
>
> [Fri Mar 12 21:12:12 2004] [notice] Apache/1.3.29 (Unix)
> mod_perl/1.28 PHP/4.3.4 mod_ssl/2.8.16 OpenSSL/0.9.7c configured --
> resuming normal operations
> [Fri Mar 12 21:12:12 2004] [notice] Accept mutex: flock (Default:
> flock) bind: Address already in use
>
> No address is in use, I can assure you. This is quite absurd; I use
> the same config as the .28 version. The daemon will not prefork,
> either.
>
> Anyone has similar experience? Or an idea to solve it?
>


Did you stop the oldversion of Apache before you tried to start the new 
one? I have scripts called startapache and stopapache to stop it before 
I do the install.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Firewall questions

2004-03-12 Thread Darryl Hoar
Greetings,
I am still working on the firewall performance issue.  What I would like
opinion on is, if I install 5.1 on a PII 233, 182MB Ram and configure it
as a firewall (IPFilter) with (2) xl nic's, is that better than buying a 
linksys BEFSX41 router with firewall ?

My current Freebsd 4.6 firewall running on an AMD K2 233, 64MB 
EDO Ram, with 2 ep0 nics is slowing me down.  I have 1.5Mb DSL
and I only see 700K.  If I plug a notebook right into the DSL jack
(unplug the firewall of course) and run tests, I get 1.5Mb.

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


"bind: Address already in use" on Apache 1.3.29

2004-03-12 Thread Mark
Hello,

I upgraded my Apache server to 1.3.29, on FreeBSD 4.9R-p3. Now, all of
sudden, it will not bind anymore, for no apparent reason:

[Fri Mar 12 21:12:12 2004] [notice] Apache/1.3.29 (Unix) mod_perl/1.28
PHP/4.3.4 mod_ssl/2.8.16 OpenSSL/0.9.7c configured -- resuming normal
operations
[Fri Mar 12 21:12:12 2004] [notice] Accept mutex: flock (Default: flock)
bind: Address already in use

No address is in use, I can assure you. This is quite absurd; I use the same
config as the .28 version. The daemon will not prefork, either.

Anyone has similar experience? Or an idea to solve it?

Thanks,

- Mark

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


Re: Adding Virtual Host IPs Takes Too Long

2004-03-12 Thread Scott Kupferschmidt
Hello,

The intel "em" drivers are terrible under FreeBSD and seem to re-add
routes or do something funky when you add new IP's.  The Dell 1650's have
those cards in them and we notice it all the time, unfornautely.

Try using a quality ethernet card such as fxp or bge and you will not have
that problem.

Sincerely,

Scott Kupferschmidt
ISPrime, Inc.
866.502.4678 ext. 3
AIM: Scott ISPrime - ICQ: 174337249

On Fri, 12 Mar 2004, Gary Bannister wrote:

> We are setting up our first web server under FreeBSD 5.1.  Everything is
> going well except that adding virtual host IPs takes a very long time.  We
> have timed it at 7 minutes to add 255 IPs.  This seems to talk far too long
> and makes reboots very long processes.
> 
> Our "start_if.em1" file is as follows:
> 
> ifconfig_em1="inet 216.145.105.3 netmask 255.255.255.0 media 100baseTX
> mediaopt
> full-duplex"
> ifconfig_em1_alias0="inet 216.145.105.4 netmask 255.255.255.255"
> ifconfig_em1_alias1="inet 216.145.105.5 netmask 255.255.255.255"
> ifconfig_em1_alias2="inet 216.145.105.6 netmask 255.255.255.255"
> ifconfig_em1_alias3="inet 216.145.105.7 netmask 255.255.255.255"
> ifconfig_em1_alias4="inet 216.145.105.8 netmask 255.255.255.255"
> ...
> (etc.)
> ...
> 
> Adding aliases from the command line takes an equal amount of time (about 2
> seconds per IP).  Both methods do work and no error messages are produced.
> 
> Is this normal or are we missing something???
> 
> Gary Bannister
> NetAccess Systems Inc.
> 
> ___
> [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]"


Singlethreaded program on a SMP enabled machine and HZ=?

2004-03-12 Thread SnakeS
Hi

I have a Dual Pentium3 933Mhz machine with 768MB ram installed running
FreeBSD 5.2.0 that I wish to run HLDS (Half.life dedicated server, I belive
its singlethreaded but I really dont know..), now that Ive got everything
set up I started to wonder if hlds actually would have any benefits of
running on a SMP machine. as I can remember from using windows on the same
machineware was that singlethreaded software never used more than one cpu,
ie only utilizing 50% of theoretical processing power. does FreeBSD act the
same way or does it have some clever ways of making software not built for
MP use more than one cpu and draw the full capacity out of the box?

one other ting, while setting up the game server, I often came across
howto's and faq mailing lists mentioning HZ=1000 or similar would help
boosting the fps of the game server up, while others says that for a
singlethreaded cpu-hog like hlds would benefit more running with a HZ=20 or
abouts would give more precius cpu time to the actual game server. if I
recall right from the manual, HZ has something to do how often the BSD
scheduler checks the running processes and distributed cpu time to them,
right?
if so, my sense of logic would say to me that the less intrerrupts the hlds
have the more speed could I tweak out of the box, am I right?
right now HZ is at the default value of 100, do I really need to mess around
with it or can I just leave it as it is?

maybee I should take half of theese questions to a valve/hl list/forum, but
since its all about freebsd Im posting it here.

Thanks in advance for all the replies. :)

Geir Inge Aurvåg



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


Re: Newbie install goes well until...

2004-03-12 Thread Joshua Lokken
* Stewart Yaxley <[EMAIL PROTECTED]> [2004-03-12 08:27]:
> I am installing FreeBSD 5.2.1 on an AMD 64 3000+, w/ 512Meg RAM.
> 
> Booting from CDROM with the Boot CD (pulled from the FTP site as an ISO 
> image, burned in Win XP).
> 
> All the necessary hardware is detected without errors, I am able to get as 
> far as partioning my drives (setup root, swap, /var, /usr) and choose to 
> install "All" from the "Choose Distribution" screen.
> 
> The installation starts -- but the Boot CD returns an error "Unable to find 
> a /dist/cdrom.inf file", and indicates that it is unable to continue with 
> the install.
> 
> The Mini-install has the /dist/cdrom.inf file, but shortly after install 
> starts I receive a "Either this is not a Free-BSD disc, there is a problem 
> with the CDROM driver or something is wrong with the hardware.  Please fix 
> this problem (check the console logs on VTY2) and try again."

Chances are, the message is giving you correct info.  FME,
FreeBSD is a bit more finicky about iffy media and hardware;
I've been able to install Windows with a CD-ROM drive that
was on it's way out, but a FreeBSD install on the same system
bailed due to read errors.  Also, it's possible to burn an
occasional coaster.  I'd try with different media first, and
if you still have trouble, with a different CD_ROM drive.


 
> I am unable to access/eject the CD drive once these errors occur (CDROM 
> drive goes dead).  My CDROM is a Creative 52x CD5220 (occording to the 
> Bios) and is correctly recognized by the installer.

The filesystem on the CD-ROM is 'mounted' during the install,
and the CD-ROM cannot be ejected while the filesystem is 
mounted.

 
> How do I check the console logs on VTY2? (or have I obtained a bad iso set?)

And yes, as you've seen, Alt-F2 will get you VTY2, and more
detailed information on why your installation media is not
well-liked.
 
> stewy
 
As always, the handbook is chock full o' helpful info...

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

HTH; good luck with your install ;)


-- 
Joshua

Many Myths are based on truth
-- Spock, "The Way to Eden",  stardate 5832.3
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


5.2.1-R == CURRENT????

2004-03-12 Thread Mark Ovens
Surely not? I was advised that a problem I'm experiencing is fixed in 
-current. I just updated my source tree to -current with ''cvs co src/'' 
but no files have been updated :-/

Here's what I'm currently running (the tree is a few days older than the 
kernel build date):

FreeBSD redshift 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #19: Wed Mar 10 
01:50:42 GMT 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/REDSHIFT  i386

Where have I gone wrong?

Thanks.

Regards,

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


Re: OT: hardware: backup tape reliability

2004-03-12 Thread Chuck Swiger
Robert Huff wrote:
Specifically: they live in an area with extremely high
temperature+humidity (90-95 F/32-35 C; 90+% hum.) and climate
conditioning is not an option.  They need to backup critical data
files (code base is not an issue) and have tried floppies, ZIP
drives, and CDs ... all of which have proven to have a very short
life span.
Tapes on the shelf will withstand those conditions (use a closed, sealable 
cabinet and toss a bag of silica gel decissicant in there every once in a 
while if need be [they recycle if you heat them up to 300F/150C]), but 
humidity that high is going to be nasty for equipment life in general and is 
going to be borderline for the tape drive while in operation itself.

I'd like to hear from people who have Been There and Solved
That.  I'll also take pointers articles that talk about tested
solutions.
That's not me.  I've dealt with more than one server room buildout, and I'm 
familiar with backup media interacting with environmental conditions, but 
climate control of the server room has always been a requirement (in the 
positive sense).  The temperature you're describing isn't really a problem if 
you've got adequate air circulation through the racks, but the humidity is 
something else.

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


Adding Virtual Host IPs Takes Too Long

2004-03-12 Thread Gary Bannister
We are setting up our first web server under FreeBSD 5.1.  Everything is
going well except that adding virtual host IPs takes a very long time.  We
have timed it at 7 minutes to add 255 IPs.  This seems to talk far too long
and makes reboots very long processes.

Our "start_if.em1" file is as follows:

ifconfig_em1="inet 216.145.105.3 netmask 255.255.255.0 media 100baseTX
mediaopt
full-duplex"
ifconfig_em1_alias0="inet 216.145.105.4 netmask 255.255.255.255"
ifconfig_em1_alias1="inet 216.145.105.5 netmask 255.255.255.255"
ifconfig_em1_alias2="inet 216.145.105.6 netmask 255.255.255.255"
ifconfig_em1_alias3="inet 216.145.105.7 netmask 255.255.255.255"
ifconfig_em1_alias4="inet 216.145.105.8 netmask 255.255.255.255"
...
(etc.)
...

Adding aliases from the command line takes an equal amount of time (about 2
seconds per IP).  Both methods do work and no error messages are produced.

Is this normal or are we missing something???

Gary Bannister
NetAccess Systems Inc.

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


Re: 5.2.1-release iso images broken?

2004-03-12 Thread Olaf Hoyer
On Fri, 12 Mar 2004 [EMAIL PROTECTED] wrote:

> I've been trying to boot up a Compaq 1850.  Aside from it hanging
> on booting I noticed that I was booting with 5.2.1-RC, not -release
> So, d/l the latest iso and now the darned machine won't boot from
> the 5.2.1-release cds at all.  Doesn't even see them.  I've booted
> this machine up on 3 or 4 different linuxen, Fbsd4.9, Solaris 8,
> even openDarwin 7.  I've burned several cds of 5.2.1-release-mininst
> but no joy.
>
Hi!

Well, I also had once a 1850 as monitoring server, and well, I got the
newer version with P III-500 CPU, not the old one with PII-CPUs.

Was no big joy, I suspect that there are some things lurking around
regarding Compaqs special treatment of register mapping et al.

I had mine running then with 4.8, and well, it worked...

Just my 0.02 Eurocent

Olaf


-- 
Olaf Hoyer[EMAIL PROTECTED]
Fuerchterliche Erlebniss geben zu raten,
ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
(Nietzsche, Jenseits von Gut und Boese)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: resizing partitions in the same slice

2004-03-12 Thread Jerry McAllister
> 
> My FreeBSD-4.9 setup uses one drive in "dangerously dedicated partition"
> where all of my partitions live in one slice:

That isn't what "dangerously dedicated" means.It appears you
have a standard setup with just one slice of 4 used.   A dangerously
disk would have partitions of /dev/da0a, /dev/da0e, etc.

>   $ df
>   Filesystem  1K-blocksUsed   Avail Capacity  Mounted on
>   /dev/da0s1a 64462   37886   2142064%/
>   /dev/da0s1e 64462   4   59302 0%/tmp
>   /dev/da0s1f5160626086  468692 1%/var
>   /dev/da0s1g   2064302 1464672  43448677%/usr
>   /dev/da0s1h  10660096 720 9806570 0%/data
>   procfs  4   4   0   100%/proc
> 
> I almost run out of space during a buildworld, so I'd like to expand
> /usr from 2 GB to 4 GB by taking space away from /data.  Since my
> filesystems will remain in the same slice, is it correct that I don't
> need to use fdisk(8)?

That would be correct.   But, you will need to use disklabel and newfs.

> So my procedure to do this is to recalculate the size/offset/cylinder
> settings for my partitions "g" & "h", change those settings via
> disklabel(8), then use growfs(8) on /dev/da0s1g?  Seems simple enough,
> and the data on /usr should be preserved, correct?

Yes and no.   I do not think you can shrink a partition with these.
Since, in order to grow /dev/da0s1g you will have to shrink /dev/da0s1h
I think you cannot do what you want.   I may well be wrong on this.
I haven't tried it.

If you really really must change those partition sizes, I would 
recommend backing them up with dump.  Then using disklabel to make
new sized partitions and newfs to make new  file systems and then
restore the two file systems.

My best recommendation, though, is to just move some of the big
stuff from /usr such as /usr/ports, /usr/local and /usr/src in 
to /data and make symlinks.   Probably tar is adequate for this.

  cd /usr 
  tar cvpf /data/ports.tar ports
  tar cvpf /data/local.tar local
  tar cvpf /data/src.tar src
  cd /data
  tar xvpf ports.tar
  mv ports usr.ports   // my naming convention
  tar xvpf local.tar
  mv local usr.local
  tar xvpf src.tar
  mv src usr.src
  cd /usr
  mv ports ports.old
  ln -s /data/usr.ports ports
  mv local local.old
  ln -s /data/usr.local local
  mv src src.old
  ln -s /data/usr.src src
Now check things out to make sure it looks good by cd-ing to
stuff like cd /usr/ports/www  or whatever and look to see that you
got to the right place   (/data/usr.ports/www)  and when you are
convinced, go back and clean up
  cd /usr
  rm -rf ports.old   // Watch for accurate typing here
  rm -rf local.old   // Also, if any files have flags set, you will
  rm -rm src.old // have unset then with chflags(1)  as in
  cd /data   // chflags noschg file_name
  rm ports.tar   // in order to be able to rm them.
  rm local.tar
  rm src.tar

This should give you back quite a lot of your /usr file system
Although ports, local and src are the usual hogs, you may need
to use du in the /usr directory to find out what else is taking
lots of space if these aren't the ones.   Do you have a bunch of
home directories there or are you making them in /data for example.

> But will /dev/da0s1h be okay?  Is editing the disklabel enough?  Or do I
> need to reformat the partition --- and, if so, how?  I'm not too comfy
> using newfs(8) directly.  Can I just run "newfs /dev/da0s1h" after
> running the growfs(8) command and it will use the disklabel settings?
> Or can I be a wuss and use /stand/sysinstall?  :-)

Editing the disklabel will change the partition sizes.  
Definitely /dev/da0s1h will be messed up.   Running newfs on it
will build a new filesystem in whatever is now that partition.

> 
> Any suggestions are appreciated, thanks in advance!

My above suggestion about moving some dirs is the biggie.

jerry

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


Re: nss_ldap/pam_ldap, what am I missing?

2004-03-12 Thread Antoine Jacoutot
Selon Per olof Ljungmark <[EMAIL PROTECTED]>:
> FBSD 5.2.1, nss_ldap/pam_ldap, no joy.
> Have really tried to read available documents, man pages etc., but no avail.
> If I could increase the debug level with pam perhaps it would take me 
> further, could somebody please give a hint on how to?
> The ultimate goal is to create a Samba PDC, but seems far away ay the 
> moment...

I have this kind of setup working perfectly. Tell me what you need.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


5.2.1-release iso images broken?

2004-03-12 Thread scion+fbsdq
I've been trying to boot up a Compaq 1850.  Aside from it hanging
on booting I noticed that I was booting with 5.2.1-RC, not -release
So, d/l the latest iso and now the darned machine won't boot from
the 5.2.1-release cds at all.  Doesn't even see them.  I've booted
this machine up on 3 or 4 different linuxen, Fbsd4.9, Solaris 8,
even openDarwin 7.  I've burned several cds of 5.2.1-release-mininst
but no joy.

So, off to another pc and golly if the cd won't boot there either!

Is there a known problem with the i386 iso images for 5.2.1-release?

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


Re: F-Prot for BSD WorkStation

2004-03-12 Thread dave
Hello,
I'm trying to install this port, but am getting an error when the
definition signatures are installed, the file is not found. Is this a
tempoary thing or is there something special i need to do to get them?
Thanks.
Dave.

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


Printing from Mac OS X to CUPS on FreeBSD 4.9-STABLE...

2004-03-12 Thread lists
Okay. I've looked hi and lo for an answer to this and I'm not coming up 
with anything useful.

I have two machines on the same network (192.168.0.x). One is an x86 
running 4.9-STABLE and CUPS 1.1.19. The other is a PowerBook G4 running 
Mac OS X 10.3.2 (Panther). The x86 machine has an HP laser printer 
attached to it via parallel.

When on the fbsd machine, I can print files locally just fine. Under 
Mac OS X I can print to file as Postscript or PDF, put the file on the 
fbsd machine and print it locally just fine. So, it appears the PS/PDF 
data coming from OS X is not a problem. However, when I try to print 
from Mac OS X to the x86 box using IPP...nothing.

I was getting a "Destination printer does not exist!" in the error log. 
I believe I've turned on browsing locally (BTW, I appear to be 
receiving CUPS' broadcast packets). I've tried configuring IPP printing 
on the PowerBook using both the Printer Setup Utility and 
http://localhost:631/. No go.

Here's my cupsd.conf:

ServerName 127.0.0.1
LogLevel info
RequestRoot /usr/local/var/spool/cups
ConfigFilePerm 0644
TempDir /usr/local/var/spool/cups/tmp
Listen 127.0.0.1
Listen 192.168.0.2
BrowseAddress 192.168.0.255
BrowseShortNames No
BrowseAllow 127.0.0.1
BrowseAllow 192.168.0.4
ImplicitClasses Off
RootCertDuration 43200

Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.0.4


AuthType None
AuthClass Anonymous
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.0.4

The error_log file on the fbsd box shows the following error:

	get_printer_attrs: resource name '/ipp' no good!

Does there need to exist an ipp directory under the spool directory? 
Where? I've tried this and still no go. Permissions, perhaps?

Thanks,

alex



- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Alexander Sendzimir (owner)802 863 5502
 MacTutor: Apple Mac OS X Consulting   [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


OT: hardware: backup tape reliability

2004-03-12 Thread Robert Huff

I have a friend who's trying to implement a back-up regime,
but running into media issues.
Specifically: they live in an area with extremely high
temperature+humidity (90-95 F/32-35 C; 90+% hum.) and climate
conditioning is not an option.  They need to backup critical data
files (code base is not an issue) and have tried floppies, ZIP
drives, and CDs ... all of which have proven to have a very short
life span.
They're considering trying tape backup; but before spending
hundreds or even thousands of dollars on a system they'd like some
assurance this will work.
(One way to do this would be a hot swap disk ... but that's an
escalation we'd like to avoid if possible.)

I'd like to hear from people who have Been There and Solved
That.  I'll also take pointers articles that talk about tested
solutions.

Thanks in advance.


Robert Huff


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


resizing partitions in the same slice

2004-03-12 Thread Eugene Lee
My FreeBSD-4.9 setup uses one drive in "dangerously dedicated partition"
where all of my partitions live in one slice:

$ df
Filesystem  1K-blocksUsed   Avail Capacity  Mounted on
/dev/da0s1a 64462   37886   2142064%/
/dev/da0s1e 64462   4   59302 0%/tmp
/dev/da0s1f5160626086  468692 1%/var
/dev/da0s1g   2064302 1464672  43448677%/usr
/dev/da0s1h  10660096 720 9806570 0%/data
procfs  4   4   0   100%/proc

I almost run out of space during a buildworld, so I'd like to expand
/usr from 2 GB to 4 GB by taking space away from /data.  Since my
filesystems will remain in the same slice, is it correct that I don't
need to use fdisk(8)?

So my procedure to do this is to recalculate the size/offset/cylinder
settings for my partitions "g" & "h", change those settings via
disklabel(8), then use growfs(8) on /dev/da0s1g?  Seems simple enough,
and the data on /usr should be preserved, correct?

But will /dev/da0s1h be okay?  Is editing the disklabel enough?  Or do I
need to reformat the partition --- and, if so, how?  I'm not too comfy
using newfs(8) directly.  Can I just run "newfs /dev/da0s1h" after
running the growfs(8) command and it will use the disklabel settings?
Or can I be a wuss and use /stand/sysinstall?  :-)

Any suggestions are appreciated, thanks in advance!

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


Quotas, sendmail and bouncing mail.

2004-03-12 Thread Eduardo Viruena Silva

Hello FreeBSD gurus!

Let me ask you a question.

We have a system that receives a lot of spam.
Even though we have installed "spamassassin"
our users keep the spam in their trash folder.

Our system have quotas to limit the
space our users can use, but when a user
have not cleaned his trash folder in a
long time, his limit is reached and
his mail begins to be returned to its origin
with a proper message.

Now, most of spam addresses are fake, and
the returned mail returns to our system, this
time to the "Post Master" account [root].

Is there a way of not returning the mail
when the quota limit is reached?
We are using sendmail as MTA.

I hope you can send me a copy to my
e-mail address, I am not subscribed to
the question list.

Thanks in advance.

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


Re: 5.2.1 miniinst cd panic during 3rd phase boot (kernel start).

2004-03-12 Thread scion+fbsdq
Date: Thu, 11 Mar 2004 15:47:32 +0100
From: kybu <[EMAIL PROTECTED]>

>SCN> I haven't seen anything in the PR list or -questions just like this.
>
>SCN> My Compaq 1850 (2x PII-450, 1GByte Ram) boots up the 5.2.1-release
>SCN> miniinst cdrom just fine, loads the kenel, and just after waiting
>SCN> for SCSI devices to settle, panics.
>
>SCN> It does this with or without devices on the scsi bus.
>
>SCN> Anyone else have one of these critters working with 5.x?  Otherwise,
>SCN> anyone else have the same/a similar symptom?
>
>Yeah, I got similar problem on Compaq 1650. I just change the OS
>system type with SmartStart CD to Linux and then it works fine.
>

Thanks, it almost worked...At least I got past discovering disks.
Now, when booting, it goes past discovering disks, and indicates
/stand/sysinstall is starting on vty0.

After that no joy.  I'm thinking that the vga or keyboard isn't
jiving with the vty system, and that it is running fine, but not
where I can see it.

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


Re: my first server

2004-03-12 Thread W. D.
At 11:50 3/12/2004, Charlotte W. Caldwell (859-293-0639) wrote:
>I have over 150 web sites on 2 virtual servers running FreeBSD and Apache.
>Instead of continuing to add virtual servers as I expand my hosting customer
>base, I'm ready to set up my own server and install it at a local data
>center. I have the box and need to format the hard drives, etc., and install
>FreeBSD.
>
>I'm in way over my head. I want to make sure I do it the smart way the first
>time. Is there anywhere you can point me for documentation on the (correct)
>steps to take, best setup practices, etc.?
>
>It might be easier to hire someone to come in and do the set up/install for
>me (while I watch), or possibly talk me through it via phone. Please send
>contact info if you're interested.
>
>Thanks so much for your time.

Hi Charlotte,

I am hoping to put together my own custom-made server as well.  I've
put together the hardware, but haven't had much time for the software
part.

I really would like to see you succeed, (because if you document what you
do and share it, I would be helped ;^)  ) so I'll be glad to help when
it's possible.

Here is an archive link:
http://lists.freebsd.org/pipermail/freebsd-questions/


Start Here to Find It Fast!™ -> http://www.US-Webmasters.com/best-start-page/

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


Re: vhosts

2004-03-12 Thread Peter Risdon
John DeStefano wrote:

--- Peter Risdon <[EMAIL PROTECTED]> wrote:
Hi Peter,
 

John DeStefano wrote:

   

The relevent section of my httpd.conf file:

#NameVirtualHost *:80

 

Uncomment this.

   

Thanks... but if you look below, it's already un-commented...

 

NameVirtualHost *:80
 

^^^ here!

 

Ah, seeing the first entry I fired from the hip. Sorry to waste bandwidth.

PWR.

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


Virtual Host bandwidth monitoring

2004-03-12 Thread Chris Strzelczyk
Hello all,

Again this is not a direct BSD q, but I have found that the BSD 
community is the most knowledgeable on most subjects that I come across.

I am trying to monitor the bandwidth used on apache named virtual 
hosts.   I run mrtg to monitor the bandwidth on the NIC but I don't know 
of a way I could easily get the bandwidth for each named virtual host.  
I have read some documents on mod_status and as far as I know it does 
not have this functionality.

Thanks in advance for any help you can provide me.

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


3ware Escalade 6410 array keeps getting degraded

2004-03-12 Thread Gabriel Ambuehl
Hi,
I have a RAID 5 array on an Escalade 6410 on CURRENT that keeps telling me
it is degraded, then willfully rebuilds using 3DM web management only to be
degraded again a few hours later. Anyone got any idea what's going on
here? It's always the same disk that leaves the array which would
suggest something fishy with that one but then why in hell does it
complete rebuilding successfully?

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


Re: vhosts

2004-03-12 Thread John DeStefano
--- Peter Risdon <[EMAIL PROTECTED]> wrote:
Hi Peter,

> John DeStefano wrote:
> 
> >My dear, fellow BSD enthusiasts,
> >I realize this is not an isolated BSD question, but I know many of
> you
> >use apache, and I wonder if this is a problem you might quickly
> >recognize, or if another configuration file might be worth looking
> at.
> >
> >I'm trying to host two domains on one box with one IP (both LAN and
> >WAN).  When a user tries to visit any of the server aliases for the
> >second Vhost, they are always brought to the first host instead.
> >Note: I'm forwarding WAN port 10101 to LAN port 80, but I don't
> think
> >that has an effect here.
> >
> >The relevent section of my httpd.conf file:
> >
> >#NameVirtualHost *:80
> >  
> >
> Uncomment this.
> 
Thanks... but if you look below, it's already un-commented...

> PWR.
> 
> >#
> ># VirtualHost example:
> ># Almost any Apache directive may go into a VirtualHost container.
> ># The first VirtualHost section is used for requests without a known
> ># server name.
> >#
> >#
> >#ServerAdmin [EMAIL PROTECTED]
> >#DocumentRoot /www/docs/dummy-host.example.com
> >#ServerName dummy-host.example.com
> >#ErrorLog /var/log/dummy-host.example.com-error_log
> >#CustomLog /var/log/dummy-host.example.com-access_log common
> >#
> >NameVirtualHost *:80

^^^ here!

> >
> >ServerName www.thedestefanos.com
> >ServerAlias thedestefanos.com *.thedestefanos.com
> >DocumentRoot /usr/www
> >
> >
> >
> >ServerName www.thechocolateshack.com
> >ServerAlias thechocolateshack.com *.thechocolateshack.com
> >chocolateshack.com *.chocolateshack.com
> >DocumentRoot /usr/www/thechocolateshack
> >
> >

BTW, here's some more info that may throw a light switch in a brain
somewhere:

# apachectl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80   is a NameVirtualHost
 default server www.thedestefanos.com
(/usr/local/etc/apache2/httpd.conf:1100)
 port 80 namevhost www.thedestefanos.com
(/usr/local/etc/apache2/httpd.conf:1100)
 port 80 namevhost www.thechocolateshack.com
(/usr/local/etc/apache2/httpd.conf:1106)
Syntax OK

# tail /var/log/httpd-error.log
[Fri Mar 12 10:29:23 2004] [error] [client 195.146.247.190] File does
not exist: /usr/www/uri-res

(what would refer to "uri-res"??)

> >Thanks very much for your help, as always.
> >~John

__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Pure-FTPD FreeBSD 5.1 and FXP Problem

2004-03-12 Thread GRF .
  I am having a problem with Pure-FTPD and FreeBSD 5.1 and was wondering if 
this is a common or known problem.  I installed version 1.0.18 from ports 
and used the /usr/local/sbin/pure-config.pl /usr/local/etc/pure-ftpd.conf 
command so I could use the pure-ftpd.conf file.  My box is a "dedicated 
server" at a hosting company so there is no firewall present.  When I type 
the above command this is the output:

Running: /usr/local/sbin/pure-ftpd -c50 -B -C8 -fftp -H -I15 -lunix -L2000:8 
-m4 -s -U133:022 -u100 -w -x -X -k99 -Z

I am unable to FXP to this box even though the -w appears in the line above. 
 I am trying to FXP into a unix authed account, not anonymous.

The only thing I saw in the /var/log/messages was that "user ftp could not 
be found" but I believe that's because I don't have anonymous FTP set up nor 
do I want it set up.  Is this a known problem with FreeBSD 5.1?  I have a 
home FreeBSD 4.9 box set up and FXP functions just fine.  Thank you for any 
assistance you can give me in this problem.

_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/

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


Re: vhosts

2004-03-12 Thread Peter Risdon
John DeStefano wrote:

My dear, fellow BSD enthusiasts,
I realize this is not an isolated BSD question, but I know many of you
use apache, and I wonder if this is a problem you might quickly
recognize, or if another configuration file might be worth looking at.
I'm trying to host two domains on one box with one IP (both LAN and
WAN).  When a user tries to visit any of the server aliases for the
second Vhost, they are always brought to the first host instead.
Note: I'm forwarding WAN port 10101 to LAN port 80, but I don't think
that has an effect here.
The relevent section of my httpd.conf file:

#NameVirtualHost *:80
 

Uncomment this.

PWR.

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#
#ServerAdmin [EMAIL PROTECTED]
#DocumentRoot /www/docs/dummy-host.example.com
#ServerName dummy-host.example.com
#ErrorLog /var/log/dummy-host.example.com-error_log
#CustomLog /var/log/dummy-host.example.com-access_log common
#
NameVirtualHost *:80

ServerName www.thedestefanos.com
ServerAlias thedestefanos.com *.thedestefanos.com
DocumentRoot /usr/www


ServerName www.thechocolateshack.com
ServerAlias thechocolateshack.com *.thechocolateshack.com
chocolateshack.com *.chocolateshack.com
DocumentRoot /usr/www/thechocolateshack

Thanks very much for your help, as always.
~John
__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com
___
[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: my first server

2004-03-12 Thread Peter Risdon
Charlotte W. Caldwell (859-293-0639) wrote:

I have over 150 web sites on 2 virtual servers running FreeBSD and Apache.
Instead of continuing to add virtual servers as I expand my hosting customer
base, I'm ready to set up my own server and install it at a local data
center. I have the box and need to format the hard drives, etc., and install
FreeBSD.
I'm in way over my head. I want to make sure I do it the smart way the first
time. Is there anywhere you can point me for documentation on the (correct)
steps to take, best setup practices, etc.?
 

The handbook is excellent:

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

Be very cautious about using third-party guides. The official 
documentation is likely to be better.

FWIW, this being your first install, my advice would be to plan on 
installing the OS twice. Do it once, make the inevitable mistakes, 
learn, then start over and do it again. If you plan on doing this from 
the outset, you won't feel frustrated and bothered if things go wrong.

Plan your disk use very carefully. This will come back and bite you if 
you get it wrong. I'd happily give you help with this (mail me offlist) 
without any charge.

It might be easier to hire someone to come in and do the set up/install for
me (while I watch),
It depends on whether you want to learn about doing this, or just have 
it done so you can get on. If you're going to be managing the machine 
yourself, the former might be a good idea so you have a better knowledge 
from the start. If you read the sections in the handbook about 
installing, you'll get an idea whether you feel competent to tackle it 
yourself.

Good luck.

PWR.

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


vhosts

2004-03-12 Thread John DeStefano
My dear, fellow BSD enthusiasts,
I realize this is not an isolated BSD question, but I know many of you
use apache, and I wonder if this is a problem you might quickly
recognize, or if another configuration file might be worth looking at.

I'm trying to host two domains on one box with one IP (both LAN and
WAN).  When a user tries to visit any of the server aliases for the
second Vhost, they are always brought to the first host instead.
Note: I'm forwarding WAN port 10101 to LAN port 80, but I don't think
that has an effect here.

The relevent section of my httpd.conf file:

#NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#
#ServerAdmin [EMAIL PROTECTED]
#DocumentRoot /www/docs/dummy-host.example.com
#ServerName dummy-host.example.com
#ErrorLog /var/log/dummy-host.example.com-error_log
#CustomLog /var/log/dummy-host.example.com-access_log common
#
NameVirtualHost *:80


ServerName www.thedestefanos.com
ServerAlias thedestefanos.com *.thedestefanos.com
DocumentRoot /usr/www



ServerName www.thechocolateshack.com
ServerAlias thechocolateshack.com *.thechocolateshack.com
chocolateshack.com *.chocolateshack.com
DocumentRoot /usr/www/thechocolateshack


Thanks very much for your help, as always.
~John

__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: NAT & PPPoE (detailed email)

2004-03-12 Thread Chuck Swiger
Mohsin Rahman wrote:
Thank you. I will try tun0 as my nat interface. However, if lets say, the
modem drops the connection and the next attempt to access the internet,
wouldn't FreeBSD assign the new ip address to tun1 and basically render
tun0 nat useless? A better solution might be to let do ppp -nat perhaps. I
will test and post my results. Thanks.
You should have ppp do the NAT, yes.  If you use ppp with the -auto or -ddial, 
you can have on-demand dialing where ppp will attempt to bring up the link if 
it drops.  That means NAT should handle the link drop better (since ppp knows 
to use the new connection's IP), and it also means that your firewall rules 
can simply use tun0.

/etc/ppp/ppp.conf should contain something like:

default:
 set log local connect ipcp lcp lqm chat
# set log all
 ident user-ppp VERSION (built COMPILATIONDATE)
 enable lqr
 set server 3000 x
 set timeout 1200   # 20 minute idle timer
# enable dns# request DNS info (for resolv.conf)
 set device PPPoE:fxp0:verizon
 set login
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
   \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
 set urgent udp +53
 set urgent tcp +53
 set urgent udp +123
 set urgent tcp +123
 set ifaddr 162.84.171.0/0 10.3.23.0/0 255.255.255.255 0.0.0.0
 add! default HISADDR   # Add a (sticky) default route
 nat enable yes
 nat use_sockets yes
 nat same_ports yes
 nat port tcp 192.168.1.3:6667 6667
verizon:
 set authname x
 set authkey x
[ ... ]
--
-Chuck
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: upgrade kde

2004-03-12 Thread Joshua Lokken
* Michael Hollmann <[EMAIL PROTECTED]> [2004-03-12 08:28]:
> thank?s,
> 
> portupgrade -P kde
> 
> that?s all what i need?
> is there anything else to do?
> 
> regards michael
> 
> 
> Frank Mueller schrieb:
> >Take a look at
> >http://freebsd.kde.org
> >There you'll find all information you need.
> >
> >Frank
> >
> >
> >>thank?s a lot, but this takes to long, or not?
> >>is there another way without a clean install?
> >>
> >>thank?s michael
> >>
> >>
> >>
> >>
> >>Chuck McManis schrieb:
> >>
> >>>I found the easiest way was to start with a clean install, then install
> >>>cvsup, then cvsup ports, then install portupgrade and then build kde
> >>>from the ports tree. Took about 32 hours start to finish on a 2.2Ghz
> >>>Celeron. I wasted about a week trying to do it without re-installing and
> >>>was unsuccessful.
> >>>
> >>>--Chuck
> >>>
> >>>At 11:34 PM 3/9/2004, Michael Hollmann wrote:
> >>>
> >>>
> how can i easy upgrade the kde version?
> my actually version is 3.1.x and would like to upgrade to 3.2
> 
> should i use portupgrade? is there a howto for it?
> 
> thank?s for your help
> 
> regards michael

Posting replies to the top of an email message makes the
post difficult to follow.  Please post inline, at least.


-- 
Joshua

There is a multi-legged creature crawling on your shoulder.
-- Spock, "A Taste of Armageddon", stardate 3193.9
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


my first server

2004-03-12 Thread Charlotte W. Caldwell (859-293-0639)
I have over 150 web sites on 2 virtual servers running FreeBSD and Apache.
Instead of continuing to add virtual servers as I expand my hosting customer
base, I'm ready to set up my own server and install it at a local data
center. I have the box and need to format the hard drives, etc., and install
FreeBSD.

I'm in way over my head. I want to make sure I do it the smart way the first
time. Is there anywhere you can point me for documentation on the (correct)
steps to take, best setup practices, etc.?

It might be easier to hire someone to come in and do the set up/install for
me (while I watch), or possibly talk me through it via phone. Please send
contact info if you're interested.

Thanks so much for your time.



Charlotte W. Caldwell, CEO
Wide Eyed Electronic Media, LLC
"The User-Friendly Internet Service Provider"
820 Harp Innis Road
Lexington, KY 40511
Phone and Fax: (859) 293-0639
Toll Free: 1-888-WIDEEYED (943-3393)
http://www.wideeyed.com


 FOR CUSTOMER SUPPORT***

Support Ticket: http://www.wideeyed.com/support
Email: [EMAIL PROTECTED]

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


Re: xterm

2004-03-12 Thread Joshua Lokken
* Gerald S. Stoller <[EMAIL PROTECTED]> [2004-03-12 08:27]:
> 
> 
> 
> >From: "Aaron Peterson" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: "Gerald S. Stoller" <[EMAIL PROTECTED]>
> >CC: [EMAIL PROTECTED]
> >Subject: Re: xterm
> >Date: Fri, 5 Mar 2004 16:49:34 -0500 (EST)
> >
> >>I use  xterm  a lot and I always set the font size to
> >> tiny  which requires (to my current knowledge) an additional
> >> action (this action is particularly reprehensible to me because
> >> it requires that I use both hands, one on the mouse and one on
> >> the keyboard) after the window is opened.  Is there anyway I
> >> can specify this along with the  xterm  invocation, say by
> >> setting an environment variable appropriately?
> >
> >you might check into setting options for xterm in the .Xdefaults file of
> >your home directory...
>   I don't have an  .Xdefaults  file in my home directory nor have I found

For future reference, you can customize alot of your Xapps
via your ~/.Xdefaults file.  If you don't have one:

# touch ~/.Xdefaults

and edit to your heart's content ;)

https://engineering.purdue.edu/ECN/Resources/KnowledgeBase/\
  Docs/20020202104217


-- 
Joshua

A Vulcan can no sooner be disloyal than he can exist without
breathing.
-- Kirk, "The Menagerie", stardate 3012.4
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ntpd question

2004-03-12 Thread Nathan Kinkade
On Fri, Mar 12, 2004 at 09:08:42AM -0800, Joshua Lokken wrote:
> * Shaun T. Erickson <[EMAIL PROTECTED]> [2004-03-12 08:27]:
> > Matthew Seaman wrote:
> > 
> > >Unfortuately if you're going to run ntpd, you can't get rid of these:
> > >ntpd(8) will automatically bind to all interfaces on the system, and
> > >there are no controls within ntpd to control that.
> > 
> > Darn. Thanks for the suggestions! I was already controlling access to 
> > the port with my ipfilter firewall, and will continue to do so. I just 
> > believe in not letting anything bind to a port, that isn't required to.
> > 
> 
> If you're just keeping one machine's clock in sync,
> you could try using ntpdate rather than ntpd.
> 
> -- 
> Joshua

It is my understanding that ntpdate is deprecated and one should use
nptd with the '-q' option instead.

Nathan
-- 
gpg --keyserver pgp.mit.edu --recv-keys D8527E49


pgp0.pgp
Description: PGP signature


Re: NAT & PPPoE (detailed email)

2004-03-12 Thread Peter Risdon
Mohsin Rahman wrote:

Thank you. I will try tun0 as my nat interface. However, if lets say, the
modem drops the connection and the next attempt to access the internet,
wouldn't FreeBSD assign the new ip address to tun1 and basically render
tun0 nat useless? 

I hope someone will correct me if I'm wrong, but I believe that if the 
link is dropped, tun0 will disappear, then reappear when the link is 
re-established.

A better solution might be to let do ppp -nat perhaps.

It's certainly an easy way to do it.

PWR

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


Re: NAT & PPPoE (detailed email)

2004-03-12 Thread Mohsin Rahman
Thank you. I will try tun0 as my nat interface. However, if lets say, the
modem drops the connection and the next attempt to access the internet,
wouldn't FreeBSD assign the new ip address to tun1 and basically render
tun0 nat useless? A better solution might be to let do ppp -nat perhaps. I
will test and post my results. Thanks.
 
--
Mohsin AbdulRahman
[EMAIL PROTECTED]

On Fri, 12 Mar 2004, Peter Risdon wrote:

> JJB wrote:
> 
> >Go back to using generic kernel.
> >There is no reason to compile anything  to get your setup to
> >function
> >at your friend house using dsl.
> >
> >Make these changes
> >
> >In ppp.conf   delete
> >papchap:
> > set authname {username}
> > set authkey {password}
> >
> >in rc.conf
> >
> > change this  ifconfig_fxp0="DHCP" to ifconfig_fxp0="UP"
> >and add this  ifconfig_tun0="DHCP"
> >
> >also needs hostname for sendmail to work  use "fbsdhome.com" as good
> >fake FQDN.
> >  
> >
> This seems wrong. As I understand the OP, the machine can connect to the 
> internet and tun0 is getting an ip address fine (inet 141.149.140.108), 
> so he can use the dsl link already and deleting the papchap lines from 
> ppp.conf would break this.
> 
> But NAT isn't working. The natd_interface has to be the external 
> interface. Perhaps this should be tun0.
> 
> But man natd seems to recommend using ppp's nat functionality:
> 
>  (If you need NAT on a PPP link, ppp(8) provides the -nat option that
>  gives most of the natd functionality, and uses the same libalias(3)
>  library.)
> 
> So that might be easier.
> 
> Perhaps also give the machine a hostname.
> 
> PWR.
> 
> >
> >-Original Message-
> >From: [EMAIL PROTECTED]
> >[mailto:[EMAIL PROTECTED] Behalf Of Mohsin
> >Rahman
> >Sent: Friday, March 12, 2004 10:29 AM
> >To: FreeBSD Questions
> >Subject: NAT & PPPoE (detailed email)
> >
> >Hello List,
> >
> >I am trying to setup a FreeBSD  4.9-STABLE (FreeBSD 4.9-STABLE #0:
> >Wed
> >Mar 10 17:33:52 EST 2004) box to connect to verizon dsl. This
> >machine will
> >be acting as a firewall, gateway, web and db server. I have 2 intel
> >10/100
> >nic (fxp0, fxp1).
> >
> >External Interface: fxp0
> >Internal Interface: fxp1
> >
> >First thing I did was set it up in my office for NAT with static ip
> >on
> >fxp0 and compiled the kernel with
> >
> >options IPFIREWALL
> >options IPDIVERT
> >
> >in /etc/rc.conf I did:
> >
> >defaultrouter="205.246.19.1"
> >hostname="mohsinlap.buffnet.net"
> >
> >ifconfig_fxp0="inet 205.246.19.43 netmask 255.255.255.0"
> >ifconfig_fxp1="inet 192.168.1.1  netmask 255.255.255.0"
> >
> >gateway_enable="YES"
> >firewall_enable="YES"
> >firewall_script="/etc/rc.firewall"
> >firewall_type="OPEN"
> >firewall_quiet="YES"
> >
> >natd_program="/sbin/natd"
> >natd_enable="YES"
> >natd_interface="fxp0"
> >natd_flags="-f /etc/natd.conf"
> >
> >named_enable="YES"
> >named_program="/usr/sbin/named"
> >named_flags="-b /etc/namedb/named.conf"
> >
> >
> >my /etc/natd.conf file has:
> >
> >interface fxp1
> >use_sockets yes
> >same_ports yes
> >log_denied yes
> >
> >
> >Works like a charm. Was able to get to internet using a NAT'd
> >machine
> >(192.168.1.7). Ok.. now I take this machine to a friend who will be
> >usig this. Since Verizon uses PPPoE, I did some googling and now my
> >setup
> >looks like this:
> >
> >the new /etc/rc.conf:
> >
> >defaultrouter=""
> >hostname=""
> >
> >ifconfig_fxp0="DHCP"
> >ifconfig_fxp1="inet 192.168.1.1  netmask 255.255.255.0"
> >
> >gateway_enable="YES"
> >firewall_enable="YES"
> >firewall_script="/etc/rc.firewall"
> >firewall_type="OPEN"
> >firewall_quiet="YES"
> >
> >ppp_enable="YES"
> >ppp_mode="ddial"
> >ppp_nat="NO"
> >
> >natd_program="/sbin/natd"
> >natd_enable="YES"
> >natd_interface="fxp0"
> >natd_flags="-f /etc/natd.conf"
> >
> >
> >/etc/ppp/ppp.conf:
> >
> >
> >default:
> > #PPPoE: PPP over Ethernet
> >
> > set device PPPoE:fxp0
> > set speed sync
> > set mru 1492
> > set mtu 1492
> > set ctsrts off
> > enable lqr
> > set log phase tun
> > add default HISADDR
> > enable dns
> >
> >papchap:
> > set authname {username}
> > set authkey {password}
> >
> >in my kernel:
> >
> >pseudo-device   tun
> >options NETGRAPH
> >
> >recompile kernel, and machine comes up... but here comes the
> >problem:
> >
> >since there is no hostname, during the bootup, it tries to negotiate
> >a
> >hostname and timesout after some time. Then I get:
> >
> >IP packet filtering initialized, divert enabled, rule-based
> >forwarding
> >enabled, default to deny, logging disabl

Re: F-Prot for BSD WorkStation

2004-03-12 Thread Andrew L. Gould
On Friday 12 March 2004 11:13 am, Chuck Swiger wrote:
> Andrew L. Gould wrote:
> > On Friday 12 March 2004 10:20 am, Chuck Swiger wrote:
>
> [ ... ]
>
> >> You might find that doing the full system scan takes up a lot of
> >> resources for some time (possibly hours), but that probably only matters
> >> if you happen to want to use the machine for something else then.
> >
> > I also use ClamAV.
> >
> > If resource utilization is an issue, the scanning strategy could be
> > changed to scan only email and /home areas frequently.  Full system scans
> > could be scheduled less frequently and during periods of low utilization.
>
> This is good advice, although one should beware that "/home" may comprise
> the vast majority of the storage space in use, particularly for companies,
> universities, and other organizations with lots of people.  9GB for the
> boot volume, ~75 GB for homedirs, and ~30GB for other files is what one
> fileserver of mine looks like.

**Very** good point.  I often forget to consider the differences in 
perspective between "small" use users such as myself (me and a handful of 
data analysts at work + home use) and large network administrators.

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


Re: running DBDesigner4 on FreeBSD

2004-03-12 Thread Terry L. Tyson Jr.
On Fri, Mar 12, 2004 at 11:25:24AM -0500, Jeremy Faulkner wrote:
> Not to long ago someone asked about free database design software, one 
> of the responses mentioned DBDesigner. I was wondering if anyone on had 
> managed to get it to run on FreeBSD?
> -- 
> Jeremy Faulkner   http://www.gldis.ca

I saw that and am going to try it out this weekend. I'll let you know
how it goes. Have you tried installing it? What problems?

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


Re: My Greatest Wish for FreeBSD

2004-03-12 Thread Chris
On Friday 12 March 2004 11:17 am, Odhiambo Washington wrote:
> I have a dream! The day I will manage to get Mozilla (or any other
> browser) on FreeBSD (5.2.1) to behave and not die when I open a page
> with java applets.
>
>
> -Wash
>

Use Firefox

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


Re: My Greatest Wish for FreeBSD

2004-03-12 Thread Craig Reyenga
Send patches.


- Original Message -
From: "Odhiambo Washington" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 12, 2004 12:17 PM
Subject: My Greatest Wish for FreeBSD


> I have a dream! The day I will manage to get Mozilla (or any other
> browser) on FreeBSD (5.2.1) to behave and not die when I open a page
> with java applets.
>
>
> -Wash
>
> http://www.netmeister.org/news/learn2quote.html
>
> --
> +==+
> |\  _,,,---,,_ | Odhiambo Washington<[EMAIL PROTECTED]>
> Zzz /,`.-'`'-.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
>|,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
>   '---''(_/--'  `-'\_) | GSM: +254 722 743223   +254 733 744121
> +==+
> Hacking's just another word for nothing left to kludge.
> ___
> [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]"


My Greatest Wish for FreeBSD

2004-03-12 Thread Odhiambo Washington
I have a dream! The day I will manage to get Mozilla (or any other
browser) on FreeBSD (5.2.1) to behave and not die when I open a page
with java applets.


-Wash

http://www.netmeister.org/news/learn2quote.html

--
+==+
|\  _,,,---,,_ | Odhiambo Washington<[EMAIL PROTECTED]>
Zzz /,`.-'`'-.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_) | GSM: +254 722 743223   +254 733 744121
+==+
Hacking's just another word for nothing left to kludge.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: F-Prot for BSD WorkStation

2004-03-12 Thread Chris
On Friday 12 March 2004 11:13 am, Chuck Swiger wrote:
> Andrew L. Gould wrote:
> > On Friday 12 March 2004 10:20 am, Chuck Swiger wrote:
>
> [ ... ]
>
> >> You might find that doing the full system scan takes up a lot of
> >> resources for some time (possibly hours), but that probably only matters
> >> if you happen to want to use the machine for something else then.
> >
> > I also use ClamAV.
> >
> > If resource utilization is an issue, the scanning strategy could be
> > changed to scan only email and /home areas frequently.  Full system scans
> > could be scheduled less frequently and during periods of low utilization.
>
> This is good advice, although one should beware that "/home" may comprise
> the vast majority of the storage space in use, particularly for companies,
> universities, and other organizations with lots of people.  9GB for the
> boot volume, ~75 GB for homedirs, and ~30GB for other files is what one
> fileserver of mine looks like.

I see where you all are going with this. Certainly makes sence to trim down 
the possible places to scan. 

Thank you all for the insight.

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


Re: F-Prot for BSD WorkStation

2004-03-12 Thread Chuck Swiger
Andrew L. Gould wrote:
On Friday 12 March 2004 10:20 am, Chuck Swiger wrote:
[ ... ]
You might find that doing the full system scan takes up a lot of resources
for some time (possibly hours), but that probably only matters if you
happen to want to use the machine for something else then.
I also use ClamAV.

If resource utilization is an issue, the scanning strategy could be changed to 
scan only email and /home areas frequently.  Full system scans could be 
scheduled less frequently and during periods of low utilization.
This is good advice, although one should beware that "/home" may comprise the 
vast majority of the storage space in use, particularly for companies, 
universities, and other organizations with lots of people.  9GB for the boot 
volume, ~75 GB for homedirs, and ~30GB for other files is what one fileserver 
of mine looks like.

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


Re: ntpd question

2004-03-12 Thread Joshua Lokken
* Shaun T. Erickson <[EMAIL PROTECTED]> [2004-03-12 08:27]:
> Matthew Seaman wrote:
> 
> >Unfortuately if you're going to run ntpd, you can't get rid of these:
> >ntpd(8) will automatically bind to all interfaces on the system, and
> >there are no controls within ntpd to control that.
> 
> Darn. Thanks for the suggestions! I was already controlling access to 
> the port with my ipfilter firewall, and will continue to do so. I just 
> believe in not letting anything bind to a port, that isn't required to.
> 

If you're just keeping one machine's clock in sync,
you could try using ntpdate rather than ntpd.

-- 
Joshua

"It's hard to believe that something which is neither seen nor felt can
do so much harm."

"That's true.  But an idea can't be seen or felt.  And that's what kept
the Troglytes in the mines all these centuries.  A mistaken idea."
-- Vanna and Kirk, "The Cloud Minders", stardate 5819.0
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ip binding

2004-03-12 Thread Matthew Seaman
On Fri, Mar 12, 2004 at 10:40:59AM -0500, Chuck Swiger wrote:

> You can use "ifconfig ... alias" to bind more than one IP address to a NIC; 
> you must you a different subnet mask, however (usually 0xfff).  You 
> also can use netgraph (ng_many2one?) to trunk several NICs together for 
> fault-tolerance.

ng_one2many(4).  This you can use for channel bonding -- to make a
virtual network interface out of several physical NICs, with the
implied extra bandwidth available.

However, one thing it doesn't actually do is provide failure
tolerance.  As the man page says:

LINK FAILURE DETECTION
 At this time, the only algorithm for determining when a link has failed,
 other than the hook being disconnected, is the ``manual'' algorithm: the
 node is explicitly told which of the links are up via the
 NGM_ONE2MANY_SET_CONFIG control message (see below).  Newly connected
 links are down until configured otherwise.

That is, you have to manually reconfigure the interface group if one
of it's components should happen to fail.  There's no means of
automatically testing that all of the components are still working
properly, and if not, of reconfiguring the interface group to work
around the problem.

ng_one2many is clearly the basis upon which such failure tolerance
could be built, but so far no one has committed the necessary patches
to ng_one2many to do that.  If you need failover, what you can
apparently use is the ng_fec module by Bill Paul which implements the
Cisco Fast EtherChannel mechanism, but which apparently has no man
pages or other docs available.  See Bill's announcement message at


http://docs.freebsd.org/cgi/getmsg.cgi?fetch=700715+0+archive/2001/freebsd-hackers/20010211.freebsd-hackers

However, you either need to be using a point-to-point link or via a
Cisco switch that supports FEC.

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


Re: portupgrade -Np Does Nothing?

2004-03-12 Thread Joshua Lokken
* Drew Tomlinson <[EMAIL PROTECTED]> [2004-03-12 08:27]:
> OK, now what am I doing wrong?  Can anyone explain this?
> 
> blacklamb# portupgrade -pNn net/wol
> --->  Session started at: Tue, 09 Mar 2004 15:43:14 -0800
> Install 'net/wol'? [no]
> ** No package has been installed or upgraded.
> --->  Session ended at: Tue, 09 Mar 2004 15:43:15 -0800 (consumed 00:00:00)
> 
> OK, good.  It found the port and now I'd like to install it so I remove 
> the 'n' and run again:
> 
> blacklamb# portupgrade -pN net/wol
> blacklamb#
> 

I've seen this when the port in question didn't actually need
upgrading.  You can force the upgrade with the -f option to 
portupgrade.

-- 
Joshua

We Klingons believe as you do -- the sick should die.  Only the strong
should live.
-- Kras, "Friday's Child", stardate 3497.2
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: passwd hashes in master.passwd: disabled?

2004-03-12 Thread Lowell Gilbert
Seamus Abshere <[EMAIL PROTECTED]> writes:

> > The accounts marked with '*' are disabled :-)
> 
> but "root" has a * and I can still log in...

As root?  I don't think so, unless you edited the file by hand and
forgot to rebuild the database.  (pwd_mkdb(8))

> I thought it had something to do with "shadow" passwords or something.

master.passwd *is* the shadow password file.  
Ordinary users don't have permissions to read it.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: natd + ipfw - very slow internet for LAN users

2004-03-12 Thread Kenneth Culver
Quoting Prodigy <[EMAIL PROTECTED]>:

Not very helpful, but have you ever tried using ipfilter? I've found that
configuring it is much easier, and it is somewhat faster on slow 
machines since
it runs entirely in the kernel (avoids a lot of transferring data to and from
userland like ipfw + natd).

Ken

Thanks for your sets, but anyway internet is very slow :(

# ipfw show
00100  617  59829 divert 8668 ip from any to any via ed1
00200  617  59829 allow ip from 213.190.42.48 to any keep-state via ed1
00300 1213 101401 allow ip from 192.168.0.0/24 to any keep-state via ed0
65535  409  26377 allow ip from any to any
# cat /usr/local/etc/ipfw.conf
fw="/sbin/ipfw -q"
oif="ed1"
iif="ed0"
${fw} add divert natd all from any to any via ${oif}
${fw} add allow all from 213.190.42.48 to any keep-state via ${oif}
${fw} add allow all from 192.168.0.1/24 to any keep-state via ${iif}
Btw, i have a static internet ip address, not the dynamic. I have read the
man ipfw BUGS section, but still I can't understand, how can i solve my
problem.
- Original Message -
From: "jon" <[EMAIL PROTECTED]>
To: "Prodigy" <[EMAIL PROTECTED]>
Sent: Thursday, March 11, 2004 2:43 PM
Subject: Re: natd + ipfw - very slow internet for LAN users

my set looks like this

fw="/sbin/ipfw -q"
oif="xl1"
iif="xl0"
${fw} add divert natd all from any to any via ${oif}
${fw} add allow all from ${oip} to any keep-state via ${oif}
${fw} add allow all from 192.168.1.1/24  to any keep-state via ${iif}
good luck

* Prodigy <[EMAIL PROTECTED]> [2004-03-10 17:17:52 +0200]:

> Hi,
>
> i'm sharing internet to my local area network (LAN) users with my
router.  Everything would be fine, but internet is very slow. I tried to
ping my ISP. Ping reply is ~50ms. It means, that internet for LAN users
should be good enough, but it isn't. Ping reply in IRC is ~15 seconds. Then
I try to open some internet pages, there is very big lag. Something is wrong
with nating i think, can u tell me what? FreeBSD4.9-STABLE ipfw + natd
>
>
> Kernel configuration:
>
> # ... Some other stuff goes here
> options IPFIREWALL
> options IPFIREWALL_FORWARD
> options IPFIREWALL_VERBOSE
> options IPFIREWALL_VERBOSE_LIMIT=10
> options IPFIREWALL_DEFAULT_TO_ACCEPT # Firewall is accepting all
packets by default
> options IPDIVERT
> # ... Some other stuff goes here
>
>
> rc.conf:
>
> defaultrouter="213.190.42.1" # ISP gateway
> hostname="panemune.net"
> ifconfig_ed0="inet 192.168.0.1 netmask 255.255.255.0" # Network (LAN)
interface
> ifconfig_ed1="inet 213.190.42.48 netmask 255.255.255.0" # Internet
(outside) interface
> # ... here goes some other stuff, like sshd_enable="YES", etc
> gateway_enable="YES"
> firewall_enable="YES"
> firewall_script="/usr/local/etc/rc.firewall"
> firewall_quiet="YES"
> firewall_logging="YES"
> natd_enable="YES"
> natd_interface="ed1"
> natd_flags="-f /usr/local/etc/natd.conf"
>
>
> # cat /usr/local/etc/natd.conf
> same_ports yes
> use_sockets yes
> unregistered_only yes
>
> # cat /usr/local/etc/rc.firewall
> ipfw add 100 divert natd all from any to any via ed1
>
> # ipfw show
> 00100  469 26801 divert 8668 ip from any to any via ed1
> 65535 1072 60182 allow ip from any to any
>
> # cat /etc/services | grep natd
> natd8668/divert # Network Address Translation
>
>
>
> Btw, when I used ipf + ipnat, internet for LAN users was good enough,
but now it's horrible with natd + ipfw.
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
-- Jon
This is BSD country. If you listen carefully, you can hear Windows
reboot...
For GnuPG/PGP key send message to [EMAIL PROTECTED] with
subject "key request pgp" or "key request gnupg".
___
[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: NAT & PPPoE (detailed email)

2004-03-12 Thread Peter Risdon
Mohsin Rahman wrote:



My PPPoE works OK... I do get an IP and can get to internet from this
machine. The problem is I can get to the internet from this
machine ONLY, none my other machines can get to internet. How do I go
about  fixing this? 

Reading further in man natd, I see:

3.   If you use the -interface option, make sure that your interface is
 already configured.  If, for example, you wish to specify 
`tun0' as
 your interface, and you are using ppp(8) on that interface, 
you must
 make sure that you start ppp prior to starting natd.

So it does look like you should specify tun0 as the natd interface, and 
the startup order is obviously important.

PWR.

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


Re: Strange network behavior

2004-03-12 Thread jan . muenther

What sort of hub/switch is this? Have you tried setting the interface
speed(s) to a fixed value?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: NAT & PPPoE (detailed email)

2004-03-12 Thread Peter Risdon
JJB wrote:

Go back to using generic kernel.
There is no reason to compile anything  to get your setup to
function
at your friend house using dsl.
Make these changes

In ppp.conf   delete
   papchap:
set authname {username}
set authkey {password}
in rc.conf

change this  ifconfig_fxp0="DHCP" to ifconfig_fxp0="UP"
and add this  ifconfig_tun0="DHCP"
also needs hostname for sendmail to work  use "fbsdhome.com" as good
fake FQDN.
 

This seems wrong. As I understand the OP, the machine can connect to the 
internet and tun0 is getting an ip address fine (inet 141.149.140.108), 
so he can use the dsl link already and deleting the papchap lines from 
ppp.conf would break this.

But NAT isn't working. The natd_interface has to be the external 
interface. Perhaps this should be tun0.

But man natd seems to recommend using ppp's nat functionality:

(If you need NAT on a PPP link, ppp(8) provides the -nat option that
gives most of the natd functionality, and uses the same libalias(3)
library.)
So that might be easier.

Perhaps also give the machine a hostname.

PWR.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mohsin
Rahman
Sent: Friday, March 12, 2004 10:29 AM
To: FreeBSD Questions
Subject: NAT & PPPoE (detailed email)
Hello List,

I am trying to setup a FreeBSD  4.9-STABLE (FreeBSD 4.9-STABLE #0:
Wed
Mar 10 17:33:52 EST 2004) box to connect to verizon dsl. This
machine will
be acting as a firewall, gateway, web and db server. I have 2 intel
10/100
nic (fxp0, fxp1).
External Interface: fxp0
Internal Interface: fxp1
First thing I did was set it up in my office for NAT with static ip
on
fxp0 and compiled the kernel with
   options IPFIREWALL
   options IPDIVERT
in /etc/rc.conf I did:

   defaultrouter="205.246.19.1"
   hostname="mohsinlap.buffnet.net"
   ifconfig_fxp0="inet 205.246.19.43 netmask 255.255.255.0"
   ifconfig_fxp1="inet 192.168.1.1  netmask 255.255.255.0"
   gateway_enable="YES"
   firewall_enable="YES"
   firewall_script="/etc/rc.firewall"
   firewall_type="OPEN"
   firewall_quiet="YES"
   natd_program="/sbin/natd"
   natd_enable="YES"
   natd_interface="fxp0"
   natd_flags="-f /etc/natd.conf"
   named_enable="YES"
   named_program="/usr/sbin/named"
   named_flags="-b /etc/namedb/named.conf"
my /etc/natd.conf file has:

   interface fxp1
   use_sockets yes
   same_ports yes
   log_denied yes
Works like a charm. Was able to get to internet using a NAT'd
machine
(192.168.1.7). Ok.. now I take this machine to a friend who will be
usig this. Since Verizon uses PPPoE, I did some googling and now my
setup
looks like this:
the new /etc/rc.conf:

   defaultrouter=""
   hostname=""
   ifconfig_fxp0="DHCP"
   ifconfig_fxp1="inet 192.168.1.1  netmask 255.255.255.0"
   gateway_enable="YES"
   firewall_enable="YES"
   firewall_script="/etc/rc.firewall"
   firewall_type="OPEN"
   firewall_quiet="YES"
   ppp_enable="YES"
   ppp_mode="ddial"
   ppp_nat="NO"
   natd_program="/sbin/natd"
   natd_enable="YES"
   natd_interface="fxp0"
   natd_flags="-f /etc/natd.conf"
/etc/ppp/ppp.conf:

   default:
#PPPoE: PPP over Ethernet
set device PPPoE:fxp0
set speed sync
set mru 1492
set mtu 1492
set ctsrts off
enable lqr
set log phase tun
add default HISADDR
enable dns
   papchap:
set authname {username}
set authkey {password}
in my kernel:

   pseudo-device   tun
   options NETGRAPH
recompile kernel, and machine comes up... but here comes the
problem:
since there is no hostname, during the bootup, it tries to negotiate
a
hostname and timesout after some time. Then I get:
IP packet filtering initialized, divert enabled, rule-based
forwarding
enabled, default to deny, logging disabled
ad0: 3098MB  [6296/16/63] at ata0-master WDMA2
acd0: CDROM  at ata1-master PIO3
acd1: CD-RW  at ata1-slave PIO3
Mounting root from ufs:/dev/ad0s1a
module_register: module netgraph already exists!
linker_file_sysinit "netgraph.ko" failed to register! 17
and continues to load apache, mysql. I login to the shell and try to
telnet to my test server at work and I do get to my test server.
Here is
what ifconfig shows:
fxp0: flags=8843 mtu 1500
   inet6 fe80::280:5fff:fed7:8892%fxp0 prefixlen 64 scopeid 0x1
   inet 0.0.0.0 netmask 0xff00 broadcast 255.255.255.255
   ether 00:80:5f:d7:88:92
   media: Ethernet autoselect (100baseTX )
   status: active
fxp1: flags=8843 mtu 1500
   inet 192.168.1.1 netmask 0xff00 broadcast 192.168.1.255
   inet6 fe80::2a0:c9ff:feaa:d54c%fxp1 prefixlen 64 scopeid 0x2
   ether 00:a0:c9:aa:d5:4c
   media: Ethernet autoselect (100baseTX )
   status: active
lp0: flags=8810 mtu 1500
lo0: flags=8049 mtu 16384
   in

Re: F-Prot for BSD WorkStation

2004-03-12 Thread Andrew L. Gould
On Friday 12 March 2004 10:20 am, Chuck Swiger wrote:
> Chris wrote:
> > So far the nightly dat update works well - my real question is simply
> > this - Has anyone used this port? Is it really something that needs to be
> > added since the majority of virii are Windows based.
>
> I use ClamAV instead, but same difference.  The overwhelming majority of
> virus are Windows-based, agreed, which means that virus scanning is really
> useful if you are using your machine as a mail server or as a fileserver to
> Windows clients.
>
> You might find that doing the full system scan takes up a lot of resources
> for some time (possibly hours), but that probably only matters if you
> happen to want to use the machine for something else then.

I also use ClamAV.

If resource utilization is an issue, the scanning strategy could be changed to 
scan only email and /home areas frequently.  Full system scans could be 
scheduled less frequently and during periods of low utilization.

Best regards,

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


  1   2   >