Re: can't make an 'a' slice except with auto-defaults

2010-02-09 Thread Garance A Drosihn

At 7:59 PM -0700 2/2/10, Steve Franks wrote:

On a running system.  I mean, I know I should quit being a %^# and
read the manpage for bsdlabel, but sysintall really does have a nice
tui.'C'reate slice goes straight to 'd', even on a 'fresh' disk.
I see in the handbook, this is alluded to, but some intermediate level
between begginer and expert (bsdlabel just strikes me as way too easy
to trash the disk I'm running off of while trying to make a backup),
would be nice...512M just won't fit the kernel+symbols.



If you're running into the issue that I think you're running into,
then there is a way to trick sysinstall to do what you want.

When you ask sysinstall to create that first partition, claim that
you are creating the partition named '/'.  If you do that, it will
put the partition in as a.  You couldn't actually partition it as
'/', of course, because that would conflict with '/' on your
running system.  But sysinstall will let you say you want to create
'/', and then use a for that partition.

Then select that a partition, and tell sysinstall you want to
change the name for that partition.  Change it to whatever you
want.  At that point sysinstall can't change the partition from a
to d, so you'll have the mount-point that you really want as the
a partition.

--
Garance Alistair Drosehn=   g...@gilead.netel.rpi.edu
Senior Systems Programmer   or  g...@freebsd.org
Rensselaer Polytechnic Instituteor  dro...@rpi.edu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Should root partition be first partition?

2010-02-09 Thread Garance A Drosihn

At 8:09 AM -0600 2/8/10, Peter Steele wrote:
I've set up a system with gpart and have the swap partition first 
followed by root, var, and so on. This works fine but I've seen 
documents that always have root first, then swap. Is there any 
reason that root should be the first partition or can it follow swap 
space?


In the world of MBR partitioning, there is some situation where it's
important that the root partition be 'a'.  Unfortunately, I don't
remember what it was.  Probably something having to do with the boot
loader.  I do remember running into it once when I had the root
partition as 'd' by mistake.  But that was several years ago, so
I don't remember the details.

In any case, I would not expect the same problems to come up once
you're using gpart partitioning.

--
Garance Alistair Drosehn=   g...@gilead.netel.rpi.edu
Senior Systems Programmer   or  g...@freebsd.org
Rensselaer Polytechnic Instituteor  dro...@rpi.edu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Portsnap vs CSup

2009-03-19 Thread Garance A Drosihn

At 7:39 PM +0100 3/19/09, Kalle Møller wrote:

Hi

I've been digging around, but I can't find a clear answer, which of those
two is the correct to use. Hence I don't use one now, so if I'm going to
learn one, I would prefer it to be the right one.


That's a reasonable question to ask.  Unfortunately, the answer is it
depends on what you want...  For my use (as more of a developer), I
go with csup or cvsup for most of my machines.  But on the slower
machines that I have, portsnap might be a better choice.

--
Garance Alistair Drosehn=   g...@gilead.netel.rpi.edu
Senior Systems Programmer   or  g...@freebsd.org
Rensselaer Polytechnic Instituteor  dro...@rpi.edu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD 7.0-RELEASE-i386 will changing root shell break anything?

2009-01-09 Thread Garance A Drosihn

At 2:09 PM -0800 1/4/09, David Christensen wrote:


I have changed the root shell to Bash on another machine I use as a CVS
server and haven't noticed any issues yet, but I've been wondering if
I'm setting myself up for problems by doing so.


Does anybody know if it's okay to change the root shell on FreeBSD
7.0-RELEASE-i386?


What I do is add the following lines to /root/.login :

if ($?prompt) then
   if ( -x /usr/local/bin/bash ) then
  # echo Switching to bash
  setenv SHELL /usr/local/bin/bash
  exec /usr/local/bin/bash -login
   endif
endif

I've been doing this for at least 10 years.  I haven't had any
problems with it, but Your Mileage Might Vary.

--
Garance Alistair Drosehn=   g...@gilead.netel.rpi.edu
Senior Systems Programmer   or  g...@freebsd.org
Rensselaer Polytechnic Instituteor  dro...@rpi.edu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD based web hosting?

2008-06-19 Thread Garance A Drosihn

Seeing the question:

  Is anyone here using RootBSD?



At 10:55 AM +0700 6/19/08, OutBackDingo wrote:

I was going to go with them for their XEN based hosting, but i sent
them an email, asking a couple questions, they never replied, so
went with Verio instead


I notice the rootbsd guys did a major web-site upgrade at the end
of May.  They also have a recent news-item saying:

   Friday, June 13th, 2008

   - Unfortunately we had a programming problem on part of our
 website.  Messages sent through the 'contact' form have not
 been received.  This is now fixed.
   - If you have sent us a message and not received a response,
 please contact us again.  We apologize for the inconvenience
 and promise we weren't just trying to ignore you.

Obviously this is too late to help OutBackDingo, but if someone else
is waiting for email from them, you might want to try to contact them
again.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD based web hosting?

2008-06-19 Thread Garance A Drosihn

At 10:37 PM -0400 6/18/08, Maxim Khitrov wrote:

On Wed, Jun 18, 2008 at 9:27 PM, cpghost [EMAIL PROTECTED] wrote:

 On Thu, 19 Jun 2008 10:31:31 +1000
 Greg 'groggy' Lehey [EMAIL PROTECTED] wrote:


 I'm looking for somebody to host some web sites for me.  Ideally I'd
 like a complete machine, but a jail would do too.  I can find plenty
 of Linux-based offerings, but the only one I can find with FreeBSD is
 in Germany and requires me to be resident in Germany.  Can anybody
 point me to one that I, as an Australian resident, can use?


 Here's a list of FreeBSD-based hosters:
  http://www.freebsd.org/commercial/isp.html



Is anyone here using RootBSD?


I recently signed up for a Xen VPS setup at RootBSD.  It seems to be
working fine, at least for what I want out of it.  I'm using it as a
hot-spare, off-site backup for a service that I run, so what I'm
doing is probably much less demanding than what most people would
want from it.  But so far I've been able to set things up the way I
want, and it's worked fine.  My biggest problem so far is that I
haven't had enough spare time to work on it!

I have no idea if they would take customers from outside the US,
but they have been pretty responsive to questions I have sent to
them via email.

I see they've updated their site since I signed up:
  http://www.rootbsd.net/


I'm currently with JohnCompanies. Overall, it's been a positive
experience, though I wish they offered FreeBSD 7. Beta testing for
it was supposed to begin last month, but so far no news.


My Xen VPS is setup with FreeBSD 7.0-RELEASE.  When I signed up,
they were just starting to try Xen-based setups instead of jails.
It looks like they've officially rolled that out as a service to
everyone.


My main concern is disk space; I have 2GB for ~$26 per month. For the
same price at RootBSD you could get almost eight times as much. The
question is how reliable are they? I can't find any information on
their site about where the data center is or the exact system
specifications.


Machines are located in two different datacenters in Raleigh, NC (or
at least, that's what they told me!).  In my case, I just wanted a
machine located far enough away from Troy, NY that any problem which
took out my office machine would not take out my off-site machine.
North Carolina sounded far enough away to me!

At the moment, my machine has been up for 35 days, and at that time
the reason it went down was because I rebooted it after making some
changes.  I've had the system for maybe two months, and haven't had
any problems with it.  Remember though, I haven't been pushing it
all that much.  Basically do automatic backups to it at night, and
then may ssh into it to test a few things a week.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: chmod / files and directories

2007-09-10 Thread Garance A Drosihn

At 1:38 PM -0400 9/10/07, Philip M. Gollucci wrote:

Daniel Bye wrote:

 On Mon, Sep 10, 2007 at 10:01:35PM +0530, Shantanoo Mahajan wrote:

  # find /usr/local/www/data/wp -type f -exec chmod 644 '{}' \;

 # find /usr/local/www/data/wp -type d -exec chmod 755 '{}' \;

 To be on safer side. :)


 Oh? Safer how? I've never come across that idiom before.


If imange the file or directory name has spaces, (){}-, etc.. in
it or even \.


This is not necessary with -exec in the 'find' command, and the
single-quotes wouldn't have any effect.  The {} is a parameter
which is seen by the find command itself.  If you add single-quotes
around the {}, those quotes are stripped off by the *shell* before
handing the parameter off to the 'find' command.

Dangerous characters are more of an issue if you do not use the
'-exec' option, and instead you have 'find' print out the filenames
and then use those filenames with some other command.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: problem with printf in a shell script

2007-06-19 Thread Garance A Drosihn

At 6:09 PM +0200 6/19/07, Olivier Regnier wrote:

Olivier Regnier a écrit :

Hi everyone,

I want to insert text in my file, rc.conf : update_motd=NO
I tried printf in my shell script with this command :
printf update_motd=\NO\\  /etc/rc.conf
then, that works well in console but not with my shell script
I would like to insert a \n at the end :)

Can you help me please ?



Sorry :), i founded the solution :
printf 'update_motd=NO'



If you want a newline character at the end of that, then wouldn't
you need:

   printf 'update_motd=NO\n'

Literally the two characters '\n' at the end of the string you're
printing?  By default, printf does not include a newline.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: lpr on KDE

2007-02-15 Thread Garance A Drosihn

At 7:32 PM -0500 2/15/07, Gary Schenk wrote:

When trying to print from KDE applications, I get the following error:
/usr/local/bin/lpr: Connection refused This is on a new install of
6.2-RELEASE. KDE was installed from a package during install. Printing
works fine from the commandline as root and user.

Googling around, one suggested fix was to recompile /usr/ports/x11/kdelibs3
with WITHOUT_CUPS. I ran make -DWITHOUT_CUPS install and that went quite
well. I rebooted the machine just to make sure everything restarted. Still
no joy trying to print with KDE.


Did you also *remove* the version of CUPS which got installed?  If
not, you probably still have /usr/local/bin/lpr as the CUPS-based
version of lpr.


Any suggestions as to the next step? Would making some sort of link
between /usr/local.bin.lpr and /usr/bin/lpr work?


My guess is that you're getting the CUPS-version of `lpr', but you're
still running the standard daemon for FreeBSD's `lpr'.  The simple
test would be to:
   mv /usr/local/bin/lpr /usr/local/bin/lpr-cups

and then try printing from kde.  If that solves your problem, then
move that binary back to /usr/local/bin/lpr, find out which of the
CUPS-related ports you have installed, and pkg_deinstall them.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: non-ATA66 cable?

2006-10-22 Thread Garance A Drosihn

At 9:15 PM -0500 10/21/06, David Kelly wrote:

Dell PowerEdge 400SC, 6.2-PRERELEASE (altho this is an old issue)

dmesg says:

acd0: DMA limited to UDMA33, controller found non-ATA66 cable
acd0: DVDR LITE-ON DVDRW SOHW-1633S/BS0K at ata1-master UDMA33
cd0: 33.000MB/s transfers

The controller is properly probed as,
   atapci0: Intel ICH5 UDMA100 controller

This DVD isn't writing discs as fast as other brands on other machines
and OS's (such as MacOS X). Lite-On has a newer firmware that I have
not tried.


Well, first the obvious question:  What kind of cable do you have it
hooked up with?

Assuming you have the right cable, make sure you have it connected
correctly.  I had a problem like this once, and it turned out that I
had put the cable on backwards.  I had connected the end of the cable
meant for the motherboard to the device (a disk, iirc), and visa-versa.

I switched the cable around, and then it worked fine.  Of course, I
didn't discover this until after a few years, while I was in the
process of replacing that PC!

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Best way to renice a process by name?

2006-09-26 Thread Garance A Drosihn

At 9:32 AM -0600 9/26/06, Brett Glass wrote:


Is there a renice by name utility for FreeBSD (sort of an 
equivalent of killall)? I could gin one up, but since this seems 
like something that people would want to do frequently, find it hard 
to believe that someone hasn't already written one.


FreeBSD added the `pgrep' command sometime ago.  Your renice-by-name
script would turn into something like:

renice +2 `pgrep diskd`

(I have not tested that, and you might want to embellish it by adding
some of the other options to the `pgrep' command)

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: BSDstats Project v2.0 ...

2006-08-11 Thread Garance A Drosihn

At 11:49 AM -0500 8/11/06, Paul Schmehl wrote:


I would note that these issues appear to be impacting
the project.  As of right now, there are only 1612
systems reporting in, ...



For my part, I've submitted two public hosts.  I have
four others I will not submit until I'm certain the
data are securely transmitted and stored.

Surely I'm not alone?


I know we are used to dealing in internet-time, where
things happen instantly, but there could be many reasons
that the host count is only 1612.  Reasons that have
nothing to do with the specific outcome of how these
security issues are handled.

I am certainly all for the improvements people have
been talking about.  I'm just saying that even if you
make all those improvements, you're probably going to
have to wait a few weeks before we see any significant
number of hosts show up.  That's just the way it is.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Freebsd-Devel

2006-06-12 Thread Garance A Drosihn

At 10:46 AM -0400 6/11/06, Jim Stapleton wrote:

I was looking at the mailing list, and I couldn't find
a freebsd-devel list, though I thought I heard of
one's existance.  What am I missing here?

I'm looking here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/eresources.html#ERESOURCES-MAIL


FreeBSD development covers a wide range of issues, so
there are multiple mailing lists each of which covers
some aspect of freebsd development.

There are two main branches of development for the
operating system itself, and each has it's own mailing
list.  The bleeding-edge development happens in the
branch known as freebsd-current, while the more-tested
branch is called freebsd-stable.  And there's a mailing
list for each of those.

The freebsd-hackers mailing list is another busy mailing
list which covers a lot of other issues about programming
on FreeBSD.

Almost all of the mailing lists which you see listed on
the above web page are related to *some* aspect of
freebsd development.  Which mailing list you would like
depends on what kind of development you are interested in.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newsyslog problem using Apache 2.2.x

2006-05-29 Thread Garance A Drosihn

At 8:22 AM +0200 5/29/06, Pelle Andersson wrote:

A number of days ago I sucessfully upgraded Apache from 2.0.x
series to 2.2.x series.

Everything worked perfekt except newsyslog. I'm using the
following in newsyslog.conf (worked perfect in Apache 2.0.x):

/var/log/apache/*.log root:wheel 640 7 * $D05 GZB /var/run/httpd.pid 30

The error that returns is this:
newsyslog: log /var/log/apache/httpd-error.log.0 not compressed because
daemon(s) not notified
newsyslog: can't notify daemon, pid 30076: No such process


Your entry in newsyslog.conf tells newsyslog that it should
look at the file  /var/run/httpd.pid
to find the active apache process.

Newsyslog read that file when it needed to rotate the log files,
and it found the number 30076 in that file.  However, there
was no process 30076 running at that time.  Therefore, newsyslog
has to assume that whatever process *is* writing to that file
has not been notified that the file has changed.  So it will
not compress the httpd-error.log.0 file.

So, you need to find out where the new version of apache is
storing the active process-id (pid) for itself.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyone using sysutils/nut ?

2006-05-24 Thread Garance A Drosihn

At 10:54 AM -0400 5/22/06, Scott Tuc Ellentuch at T-B-O-H wrote:

Hi,

I'd like to find out where to put the
upsdrvctl shutdown in the shutdown process. Putting
it in rc.shutdown causes me to have dirty filesystems
constantly that sometimes don't allow the system to
come up.


I seem to recall someone saying that the best way to do
this was to create some flag-file, and then reboot instead
of shutdown.  Then very early in the system-startup you
look for that flag-file, and run 'upsdrvctl shutdown'.

Since you just successfully went through the complete
shutdown, all the disks should be in a safe state.
So, the UPS will yank the power out from under the
computer, but it won't matter.

The trick, of course, is to add some logic there so you
can boot up after the power has returned!  Either check
the last-change date of the flag-file, or maybe do
something to re-mount '/' as writable, delete the one
file, and re-mount it back as read-only.  I have never
done any of this with my own UPS, so I'm not sure of
the details...   :-)

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyone using sysutils/nut ?

2006-05-24 Thread Garance A Drosihn

At 10:54 AM -0400 5/22/06, Scott Tuc Ellentuch at T-B-O-H wrote:

Hi,

I'd like to find out where to put the
upsdrvctl shutdown in the shutdown process. Putting
it in rc.shutdown causes me to have dirty filesystems
constantly that sometimes don't allow the system to
come up.


It occurs to me that I did save away the message that
said the right way to do it:


At 11:21 AM -0700 5/19/00, Mike Smith wrote:


The canonical way to do this is actually to shudown
and reboot.

In the _startup_ phase, while the root filesystem is
still mounted readonly, you check the UPS status.  At
this point, you have access to the disk in a read-only
fashion, and you can power-off (or have the UPS die)
at any time.


So, you don't create any flag-file as I had guessed in my
previous message.  The one thing you need to make sure if
is that your UPS-reading program can *run* before /usr is
mounted.  You could test that by booting up in single-user
mode, and see if the program works.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Has the port collection become to large to handle.

2006-05-13 Thread Garance A Drosihn

At 2:28 PM -0400 5/13/06, fbsd wrote:

To all question list readers;

Now with 14576 ports in the collection where do you
draw the line that its too large to be downloading
the whole collection when you just use 10 or 20 of
them?


This is a good question.  For all those people who want
to roll their eyes and ignore this question, please
answer it.  Where *DO* you draw the line?  Obviously it's
not at 10,000 ports.  Will it be 20,000?  50,000?  How
many programs exist?  Will every single program known to
man eventually be in the ports collection?  How hopeless
is that?  And if not, then Where do you draw the line?.


What are your thoughts about requesting the ports
group to create a new category containing just the
ports most commonly used including their dependents
and making this general category the default used
to download.


Unfortunately, this is the wrong solution.  I'm sure
you will love this *IFF* (that means if and ONLY if)
all of *YOUR* ports are in that category of important
ports.  We have 15,000 ports because every single one
of those ports has some users who think that specific
port is important.  While I'm sure that some ports
will be willing to be in the second tier category,
I suspect you'll still have thousands of ports with
hundreds of thousands of users who will be personally
insulted if someBastard refused to include their
favorite port in the important category.  I doubt
you will find anyone who wants to volunteer for the
role of someBastard, because that is certainly the
only name which will be used to describe whoever
chooses which ports are in the special category.

We need some more dramatic restructuring of ports to
really solve the issue.  Your suggestion is a very
small bandaid, and will just result in more fighting
and ill-will instead of solving anything.

All of this is just my opinion, of course.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Init can't exec /bin/sh for /etc/rc

2006-04-14 Thread Garance A Drosihn

At 8:39 PM +0200 4/14/06, Günther Darwin wrote:
Hi, I was running the buildkernel command when 
the computer suddenly froze and the only option 
i had was a 'hard reset' unfortunatley it wasn't 
all trouble free this time. When i try to start 
FreeBSD

I get the message: Init can't exec /bin/sh for /etc/rc Exec format error.

I have tried to boot into Multiuser mode, with this error message
i have tried to boot into singeuser mode, with the same error message


When going into single-user mode, is there some other copy
of 'sh' that you could start off with?  It will ask you
before starting the shell.  One likely candidate would be
in  /rescue/sh

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: newsyslog.conf question

2006-04-12 Thread Garance A Drosihn

At 2:01 AM + 4/10/06, [EMAIL PROTECTED] wrote:

I have developed a boot image for a CD to be used
on servers througout the organization I work for.
Everything is working great, except for one small
problem.

When I boot from the CD I created, I receive a message
stating newsyslog: malformed 'at' value.

/var/log/wtmp   640   5   *   @01T05 B

If I change the time specification to $M1D05 and start
newsyslog, no error messages are generated.

And, if I boot from the server's hard drive (from which
the image was created), newsyslog does not generate any
error messages.


This does seem odd, since that is basically the same
line that is in the distributed base system.  Are you
sure that's from the file you're running from?
Could you send me a copy of the exact file that you
have on the CD which is getting the error?

Certainly what you have there *looks* like it should work.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Portupgrade Ruby | warning: Insecure world

2006-04-05 Thread Garance A Drosihn

At 3:38 PM +0200 4/5/06, Jonas Jacobsen wrote:

When i use portupgrade, i get this Warning all the time

/usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:980:
warning: Insecure world writable dir /tmp, mode 041777

have any of you seen that warning before,? and do you
know how to make it go away ?


This comes from a recent security-minded change made
to ruby.  Your PATH references something in /tmp, and
since other userids *could* change things in /tmp,
this is warning that you might have a security problem.

I think several ruby users have found this recent change
is perhaps a bit over-zealous in it's warning.  Which is
to say, it is annoying.

You could change your setting of PATH to avoid this.
Perhaps the pkgtools.rb script could be changed to
automatically change the PATH, but in this case it
would have no idea *why* you reference some directory
under /tmp in your PATH.  So it's probably a bad idea
for the script to change the value.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SiI3112 Controller Question

2006-03-30 Thread Garance A Drosihn

At 1:51 PM -0800 3/30/06, Richard P. Koett wrote:

Some quick questions:

1) Are these SiI3112 controllers any good?


They suck.
They are horrible.
They are very cheap to buy -- and are overpriced after
you add in all the aggravation they provide.

Don't waste your time on them.  Buy a real SATA
controller.  (disclaimer: I am only commenting on
their SATA controllers)


I have the option of using a HighPoint HPT372 instead
but was planning to use that elsewhere.


Unfortunately I don't know enough to comment on other
alternatives.  I dumped my SiI3112 SATA controller
and bought a real controller as made by Promise, but
there are probably a number of other good options.


2) Would upgrading to something newer than 5.4-RELEASE
help with this issue?


It will probably help.  That doesn't mean you will have
a reliable controller, it just means that 6.x includes
more work-arounds for the myriad bugs in these super-
cheap controllers.  Some of these work-arounds result
in performance penalties.

Just my opinion, of course...  YMMV.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: something better then rsync for duplicating systems ... ?

2006-03-30 Thread Garance A Drosihn

At 6:46 PM -0400 3/30/06, Marc G. Fournier wrote:

I have two servers, one of them a backup of the other ...
right now, I'm using rsync to do it, but since rsync
has to traverse both servers file systems to do its
comparison, it puts a good load on the system, and
takes awhile to run ...


You could reduce that overhead by running rsync multiple
times, each run doing a different subset of the total
filesystem.  (not that this is a great solution, but I
did this when setting up a similar arrangement some time
ago, and splitting up the amount done by any single rsync
did seem to help)

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: lpr errors- using /dev/ulpt0

2006-03-21 Thread Garance A Drosihn

At 3:59 PM -0800 3/21/06, Rob wrote:


lpc status lp command reports that it is up, a job is
spooled, and the printer is idle but nothing comes out.

I am finding the following ... in /var/log/lpd.errs:

lp: unable to open dfA000xenon ('f' line)
lp: job could not be printed (cfA000xenon)

xenon is the name of my computer.  I am wondering if
this is another problem with my hosts file?


Hmm.  Not sure.  It might be.

If you have a job sitting in the queue, then go into
the spool directory for that printer (the 'sd=' value
in your /etc/printcap entry).  You should see one
filename starting with 'cfA', and at least one more,
which starts with 'dfA'.

See what lines are in the control file.  Chances
are pretty good you have a line:

fdfA000xenon

So the question is whether 'dfA000xenon' is another
file in that directory.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: BSD License Innocence Clause Proposal

2006-03-19 Thread Garance A Drosihn

At 1:16 AM +0300 3/20/06, Andrew Pantyukhin wrote:


We need a special clause in the license we release our
work under. [...]  Basically, it should state that under
no circumstances and under no legislation should ever
any entity be punished for breaking the license terms.


So you want a license that says that there are no real
terms to the license?  If anything, I expect that would
be called public domain.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: AFS in FreeBSD 5.4 or 6

2006-03-05 Thread Garance A Drosihn

At 1:31 AM -0800 3/4/06, Ted Mittelstaedt wrote:

openafs has a compiled binary for FreeBSD 6.0 on their website,
have either of you even tried it, or are you going to just write
it off without even seeing it it works at all?


I have not tried it, since the openafs mailing list had some
talk of the latest (CVS) snapshots of OpenAFS not working on
FreeBSD 6.1.  I thought that meant OpenAFS was broken due to
changes in FreeBSD, which has certainly happened in the past.
But in re-reading those messages, it looks like the problem
might have been specific to OpenAFS on FreeBSD/amd64.

Since I am not running on AMD64 (yet...), I should take another
look at the recent snapshots of OpenAFS on FreeBSD.  I have
been focused on the upcoming 1.4.1 release of OpenAFS, since
that will include support for MacOS 10.4 (Tiger).  The web
pages for those release-candidates only have binary packages
for MacOS 10 and Windows, and I must admit I didn't try them
on FreeBSD.  Thanks for prodding me along to take another
look at this.

(now I just have to find the time to do it...)

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: AFS in FreeBSD 5.4 or 6

2006-03-01 Thread Garance A Drosihn

At 6:27 PM + 2/28/06, Craig Ryhorchuk wrote:

Hello,

 I am looking for specific instructions on installing,
maintaining and using AFS with FreeBSD 5.4 or 6.  I want to set
up one or more servers and make them available to clients running
whatever O/S.  I think Arla has the client side covered if
necessary, but all I can find for server-side is a downloadable
instruction-free bundle for 6.0 on the OpenAFS site.  There are
specific instructions for other supported O/Ss but none for FreeBSD.
I have Googled and searched; not exhaustively I hope.  There has
to be something out there.


I think there are some people who run openafs servers on FreeBSD,
but probably just people who already know enough about running
OpenAFS servers that it is obvious (to them) what you would
need to do.

The problem is that the openafs client-side for FreeBSD never
gets quite to the point of working.  So, the number of openafs
users on freebsd never reaches critical mass to get some of the
less exciting work done -- such as OS-specific documentation...

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring a Printer - Printing Code

2006-01-24 Thread Garance A Drosihn

At 6:44 PM -0600 1/23/06, Mark Kane wrote:


The problem comes when printing from this machine. Whenever
trying to print, instead of printing the text of the document
or website, it prints a bunch of code. Here is a short sample:

---
flipXY 0 eq c3x2 c4x2 eq or
{false PickCoords }
{ /shrink c3x2 c4x2 eq
  {0} {c1x2 c4x2 sub c3x2 c4x2 sub div abs} ifelse def
  /xshrink {c4x2 sub shrink mul c4x2 add} def
[...etc...]
---

That machine Mark-Kanes-Computer.local. is the machine that's
sharing it over the network, which runs Mac OS X Jaguar.


Looks like you're sending postscript files from the FreeBSD
machine to the MacOS machine.

Pick one such postscript file.  How does it start out?  The
first line should start with the four characters:   %!PS
If it does not, then add those four characters and see what
happens.

If that doesn't work, then try sending the job using
   lpr -l

instead of a plain 'lpr' command.  That's a lowercase-L that
I'm adding there.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sparc vs i386 architecture

2006-01-09 Thread Garance A Drosihn

At 12:14 PM -0800 1/8/06, Danial Thom wrote:

--- Wojciech Puchar [EMAIL PROTECTED] wrote:
  user Opteron/Athlon64 - better than both :)



  AMD made RISC-like architecture that just runs i386-like
  code (i386+more registers and few extra instructions,
  while lots of mostly-unused instructions emulated).

Thats hilarious, a reduced instruction set
processor that has extra instructions! Good one!


You should think of RISC as a set of reduced instructions,
and not a reduced set of instructions.  Even IBM's original
RISC had a fairly large *number* of instructions, but fancier
do-all instructions were removed in favor of instructions which
did less, and thus could always complete in fewer CPU cycles.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Printing problem with CUPS LPD

2005-11-12 Thread Garance A Drosihn

At 12:16 PM +0100 11/12/05, Frank Staals wrote:

Hey,

I have a HP LaserJet 1010 and I was trying to get it working with
FreeBSD, so I installed CUPS and configured it to recoginize the
printer and it does, I can successfully print a testpage using the
webinterface. So I was trying to print a file from commandline
with lpr, but there is something weird. This is the ouput of lpstat:

[EMAIL PROTECTED] lpstat -p -v -d
printer HP1010 is idle.  enabled since Jan 01 00:00
   CUPS v1.1.23 is ready to print.
device for HP1010: usb:/dev/ulpt0
system default destination: HP1010

but when I try printing a file using the command:

[EMAIL PROTECTED] lpr -PHP1010 /etc/motd

this shows up at my dmesg :

Nov 12 12:05:16 Print lpd[1905]: /dev/lp: No such file or directory

LPD is trying to print to /dev/lp instead of /dev/ulpt0, but ...


Does CUPS install its own version of `lpr'?  I suspect it does.
See if you have a /usr/local/bin/lpr in addition to /usr/bin/lpr.
If you do, then see if that version of lpr works.

What you probably need to do is remove /usr/bin/lpr, or make it
into a symlink to /usr/local/bin/lpr.  You would also want to
add to /etc/make.conf a line something like:

NO_LPR=yes

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: CVSUP Issues FBSD 6.0

2005-11-12 Thread Garance A Drosihn

At 2:09 PM + 11/12/05, Robert Slade wrote:

Hiya,

I'm having a problem with newly installed system. cvsup -g L 2 supfile
gives Release not specified for collection default with the supfile
(based on standard-supfile) containing:

default host=cvsup2.FreeBSD.org
default base=/var/db
default prefix=/usr
default release=cvs
default tag=RELENG_6_0
default delete use-rel-suffix

src-all


You do not want default as a collection.  You want to *set*
default values for some variables.  To set default values, you
need to have an '*' character before the word 'default'.  E.g.:

*default host=cvsup2.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs
*default tag=RELENG_6_0
*default delete use-rel-suffix

src-all

Note that you do not want to add a '*' before 'src-all', because
'src-all' is the name of a collection that you want to track.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: nvi for serious hacking

2005-10-17 Thread Garance A Drosihn

At 1:25 PM -0600 10/17/05, M. Warner Losh wrote:

In message: [EMAIL PROTECTED]
Gary Kline [EMAIL PROTECTED] writes:
:   vi was the first screen/cursor-based editor in computer
:   history.

Are you sure about this?  I was using screen oriented editors over a
1200 baud dialup line in 1977 on a PDP-11 running RSTS/E on a Behive
BH-100.  Seems like one year from vi to being deployed at Berkeley to
a completely different video editor being deployed on a completely
different os in the schools that I used this in seems fast.  So I did
some digging.

vi started in about 1976[1] as a project that grew out of the
frustration taht a 200 line Pascal program was too big for the system
to handle.  These are based on recollections of Bill Joy in 1984.

It appears that starting in 1972 Carl Mikkelson added screen editing
features to TECO[2].  In 1974 Richard Stallman added macros to TECO.
I don't know if Carl's work was the first, but it pre-dates the vi
efforts.  Other editors may have influanced Carl.  Who knows.


I arrived in RPI in 1975.  In December of 1975, we were just trying
out a mainframe timesharing system called Michigan Terminal System,
or MTS, from the university of Michigan.  The editor was called
'edit', and was a Command Language Subsystem (CLS) in MTS.  That
meant it had a command language of it's one.

One of the sub-commands in edit was 'visual', for visual mode.  It
only worked on IBM 3270-style terminals, but it was screen-based and
cursor-based.  The editor would put a bunch of fields up on the
screen, some of which you could modify and some you couldn't.  The
text of your file was in the fields you could type over.  Once you
finished with whatever changes you wanted to make on that screen, you
would hit one of 15 or 20 interrupt-generating keys on the 3270
terminal (12 of which were programmable function keys, in a keypad
with a layout similar to the numeric keypad on current keyboards).
The 3270 terminal would then tell the mainframe which fields on the
screen had been modified, and what those modifications were.  The
mainframe would update the file based on that info.

I *THINK* the guy who wrote that was ...  Bill Joy -- as a student at
UofM.  I can't find any confirmation of that, though.  The closest
I can come is the web page at http://www.jefallbright.net/node/3218 ,
which is an article written by Bill.  In it he mentions:

   By 1967, MTS was up and running on the newly arrived 360/67,
   supporting 30 to 40 simultaneous users.   ...

   By the time I arrived as an undergraduate at the University
   of Michigan in 1971, MTS and Merit were successful and stable
   systems. By that point, a multiprocessor system running MTS
   could support a hundred simultaneous interactive users, ...

But he doesn't happen to mention anything about editors or visual
mode.  My memory of his connection to MTS's visual-mode could very
well be wrong, since I didn't come along until after visual-mode
already existed.  I just remember his name coming up in later
discussions.  However, I also think there was someone named Victor
who was part of the story of 3270 support in MTS.  And Dave Twyver
at University of British Columbia was the guy who wrote the
3270 DSR (Device Support Routine), as mentioned on the page at:
   http://mtswiki.westwood-tech.com/mtswiki-index.php/Dave%20Twyver

In any case, I *am* sure that MTS had a visual editor in December of
1975, which puts before vi if vi started in 1976.  Unfortunately, all
of the documentation of MTS lived in the EBCDIC world, and pretty
much disappeared when MTS did (in the late 1990's).

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: rsync and moving files [Re: backup w/ snapshots]

2005-08-30 Thread Garance A Drosihn

At 9:32 AM +0200 8/30/05, Svein Halvor Halvorsen wrote:


The solution: Somehow, I need to mirror all the move ops on the
remote system before doing the rsync. This could probably be done
by making a hash table of inodes/filenames pairs (or triplets, etc)
each time i sync.  Then the next time, I could compare the old
table with the new, to find out which files are the same only with
new names, then find those names on the remote system, change them
to the new ones, and then rsyncing.


Fwiw, I understand the problem you're trying to describe.  And the
basic issue is that rsync keeps no information between separate
runs of it.  It has no way of knowing that a given file on the
source volume used to be at a different location.  It does not even
know that the destination volume was sync'ed by a previous run of
rsync, so it does not even know that the file at the old location
on the destination is the same as the file at the old location on
the source.  It knows nothing more than the information it has at
the moment of any given run of rsync.

You could kinda fudge that information for rsync by creating a lot
of hard links, but that is probably going to create more of a mess
than it will solve.

So, you're left with doing something else outside of rsync.  The
script you are suggesting would probably be fairly easy to write
in something like ruby, perl, or python.  Use a key made up of the
inode number + lastchange date, or maybe inode number + file size.
Then save away the key-to-filename(s) mapping for every file.  On
the next run of rsync, see which files have moved on the source
directory.  If the destination volume has a file at the old location
which matches the file-size or lastchange date (depending on which
key you used...), then move it to the new location on the destination
volume.

  vague_rambling
Hmm. Thinking about this a little more, it's probably possible for
rsync to catch some of these cases itself.  It would require some
coding changes to rsync, but it could take the list of files that
it is deleting, compare it to the list of files that it is adding,
and if the MD5-checksum + size of some to-be-deleted file is the
same as some to-be-added file, it could try doing a 'mv' of that
file before it does the remainder of its processing.  I wonder how
hard that would be to do.
  /vague_rambling

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shell script frustration

2005-07-27 Thread Garance A Drosihn

At 11:14 PM +0100 7/27/05, [EMAIL PROTECTED] wrote:


echo ldapdelete -W -D $binddn \cn=$1, $group_base\
ldapdelete -W -D $binddn \cn=$1, $group_base\




when run ('./rmgroup users') it outputs -

ldapdelete -W -D cn=Manager,dc=orbweavers,dc=co,dc=uk cn=users,
ou=groups,dc=orbweavers,dc=co,dc=uk
Enter LDAP Password:
ldap_bind: Invalid DN syntax (34)
additional info: invalid DN

However, if I copy and paste the echod statement (the first line
of the output) straight to the shell, it run fine.


What I do in this cases is create a script called list_args.sh:

#!/bin/sh
printf \nlist_args.sh at `date +%H:%M:%S` with \$# = $#\n
# Process all parameters.
N=0
while test $# != 0 ; do
N=$(($N+1))
printf \$$N = [%3d] '$1'\n ${#1}
shift
done

Then in your script, replace the ldapdelete command with
list_args.sh.  That way you'll see *exactly* what ldapdelete
is seeing for parameters, and that might help.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /boot on a separate partition

2005-07-19 Thread Garance A Drosihn

At 9:30 PM +0100 7/18/05, Ross Kendall Axe wrote:


... I want to place the /boot directory in a small 25MB partition
at the start of the drive.  Setting up the partition with sysinstall
is easy enough, but does anyone have any suggestions of how to
diddle the bootloader to accept this configuration?


I doubt you can on FreeBSD.  The problem is that the OS would have
to mount both / and /boot before it could do anything, and FreeBSD
doesn't do that.  It assumes the partition that you are loading
from is '/', and uses that to find (for instance) /etc/fstab so
it can find out what the other partitions are.

I know that linux supports this, as well as some other clever
trickery with partitions at system-startup, but FreeBSD doesn't.


I don't particularly want to go for the standard 'small / partition
and separate partitions for /usr, /var, /home...' since I only have
a 1GB drive to play with and judging the partition sizes down the
nearest KB would be... tricky.


Create a small-ish / partition, a swap partition, and huge /usr
partition.  FreeBSD creates a symlink from /home to /usr/home, so
your home directories are in /usr anyway.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: moving /var/mail to another machine

2005-05-24 Thread Garance A Drosihn

At 7:24 PM -0400 5/24/05, Lisa Casey wrote:

Hi,

I want to move all of the mailboxes (all of /var/mail/*) on one
machine to another one across a network. I need to preserve
permissions, uid's and gud's. (It would probably be good to
preserve modification times as well). I can move a file using
scp, but it doesn't preserve uid/gid


Check the port named net/rsync .  You can sync a directory from
one machine to another over ssh by using it.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is 4.11 still a good idea?

2005-05-09 Thread Garance A Drosihn
At 12:02 PM +0800 5/9/05, Foo Ji-Haw wrote:
Hi guys,
I'm thinking of installing 4.11 on my next server, seeing that we
have some Java issues on the 5.x series (I've been informed that
native Java on 5.x is not a good idea).
Can I get some feedback on whether development and/ or support on
4.11 is still active and updated? I've spent quite some time on
the 4.x series, so I am quite comfortable with it.
4.11 is still supported, in the sense of getting serious bugs fixed
and security fixes.  There are very few developers adding anything
new to it though.  It is very very stable -- which is to say it
rarely changes at all.
If 4.11-release works on the hardware you want to install it in,
then it should be a very safe choice to go with.  If it does not
support some parts of your hardware now, then it is very likely to
never support those parts.
4.11-release would be a very safe OS to install, but you better be
pretty happy with it as it exists right now.  You are not going to
see much in the way of improvements made to it.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is 4.11 still a good idea?

2005-05-09 Thread Garance A Drosihn
At 12:02 PM +0800 5/9/05, Foo Ji-Haw wrote:
Can I get some feedback on whether development and/ or support
on 4.11 is still active and updated? I've spent quite some time
on the 4.x series, so I am quite comfortable with it.
Let me also mention that 5.3-release was a little rocky for some
users, but works well for most people.  And, more importantly, we
are a very few days away from 5.4-release.  5.4-release includes
many fixes over 5.3-release.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Determining what a port will install... (more than pretty-print-*)

2005-05-02 Thread Garance A Drosihn
At 9:42 AM -0500 5/2/05, Eric Schuele wrote:
Garance A Drosihn wrote:
I believe that 'portupgrade -n' only works right for ports which
you have already installed.
Yes... That is the conclusion I have come to.
I'm sure what I am trying to accomplish is just one savvy shell
script away I'm just not that savvy though.  If I can't find
something which already does what I'm looking for I'll muddle
through writing a script to do it.
If there isn't anything which already exists, then I'd try something
along the lines of 'cd'-ing into the directory of the port you want
to install, and getting the output of:
make -V RUN_DEPENDS -V BUILD_DEPENDS -V LIB_DEPENDS
(that should give you three lines, some or all of which might be
blank lines).  Each non-blank line will be of the form a1:b1 a2:b2 ...,
where each a is a pathname, and each b is a portname.
I'll leave it to you to decide where you go from there...
You might want to check through: cd /usr/ports/sysutils/port*
and see if any of those already do what you want to see done.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to restrict lpd

2005-04-03 Thread Garance A Drosihn
At 4:37 PM -0700 4/3/05, Bill Ding wrote:
Hello,
I am setting up some jails and have limited all the host daemons to
the host's IP except for lpd. I can't find a way of doing that. Can
it be done? I know it can in LPRng, but I prefer to install as little
software as possible on servers.
I don't understand what you're asking for.  There's /etc/hosts.lpd,
but I assume you are talking about something else.  Note that I have
not done anything with jails, so that might be why I don't understand
your question...
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Samba problems

2005-03-29 Thread Garance A Drosihn
At 12:29 PM -0300 3/26/05, Alejandro Pulver wrote:
Hello,
I am using FreeBSD 5.3 with Samba 3.0.7,1.
I can read all files from a Windows 2000 Pro. But when I try
to access a mount point that is an NTFS filesystem, I have
no read permission (files and directories appear as zero
length files) until I access them from the server machine
(like doing an 'ls').
Let me see if I understand the situation:
You have a FreeBSD box running Samba.  You have Win2k boxes
which connect to file shares on that FreeBSD box.  When they
do, the PC's can not access partitions on the FreeBSD box,
unless the FreeBSD box has already accessed them.
I don't quite understand the reference to NTFS.  Are you saying
that the *FreeBSD* box is mounting NTFS partitions, and it then
makes those partitions available to the PC's via Samba?  Where
are those NTFS partitions located?  Are they on the hard drives
of the FreeBSD box?  Or is the FreeBSD box mounting them from
some other file server?
Note: I have subdirectories under '/mnt' like 'w2k', 'wxp',
'cam', and 'tmp'.
What am I doing wrong?
What *exactly* is your /etc/fstab file?  The fact that you
have directories under /mnt does not tell us anything about
what filesystems you are mounting, or how they are getting
mounted.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cvs question?

2005-03-24 Thread Garance A Drosihn
At 5:00 PM + 3/24/05, Osmany Guirola Cruz wrote:
Hi people
I am learning in the use of cvs for sync my src and ports i use
this command line and works perfectly
#cvs -d [EMAIL PROTECTED]:/home/ncvs co src
but this line update my source tree with the current version 6.0.
But i don't want this version so then i do this
#cvs -d [EMAIL PROTECTED]:/home/ncvs co -rRELENG_5 src
and get this error
cvs [checkout aborted]: cannot write /home/ncvs/CVSROOT/val-tags: 
Permission denied

What can i do?
I do not know for sure, but try:
#cvs -R -d [EMAIL PROTECTED]:/home/ncvs co -rRELENG_5 src
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Stupid ASCII loader prompt

2005-03-13 Thread Garance A Drosihn
At 5:06 AM -0500 3/13/05, Fafa Diliha Romanova wrote:
hello
i find that loader prompt very frustrating:
1. it is *VERY* unprofessional
For what it's worth, the default for displaying that image
has changed for freebsd 6.x.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: WRITE_DMA errors on SATA drive under 5.3-RELEASE

2005-02-27 Thread Garance A Drosihn
At 3:53 PM +0100 2/27/05, Anthony Atkielski wrote:
I've gotten two messages like the ones below today on my
production server (5.3-RELEASE):
... kernel: ad10: TIMEOUT - WRITE_DMA retrying (2 retries left) LBA=4848803
... kernel: ad10: FAILURE - WRITE_DMA timed out
What do these messages mean?  The referenced drive is one of
two identical SATA drives on the server; it holds /tmp and /var.
I don't recall seeing these messages before.
Is there a way to work backwards from the LBA to the filesystem
so that I can see which file was being referenced when this
occurred?
First question: which SATA controller are you using?  And what is
the makemodel of the hard drives that you are using?
Note: There have been several different threads on different mailing
lists from users having WRITE_DMA errors similar to this.  At least
some of the problem is in the code which handles disk I/O.  The
developer who works the most on that code is in the middle of a
fairly major set of improvements to it, as is described in the
thread with a subject of:
UPDATE2: ATA mkIII first official patches - please test!
on the freebsd-current and freebsd-stable mailing list.  That major
set of improvements is still being tested, but it does solve some
ATA/SATA issues for many users.  Which issues you are running into
will depend on which SATA controller you have, and the makemodel
of SATA hard-disks that you have attached to the controller.
I realize that none of that info really helps you right now, but
I just thought I would say that it may be you're not having any
hardware problems.  Or at least, not on the disk itself.  It might
be a problem with the disk-controller, or it might be fairly minor
timing-problems that come up under certain kinds of load.
Of course, it still *could* be your hard disk...  Also note that I
am not an expert on hard disks or disk I/O.  It's just that I've
suffered through many similar problems, and I know that Søren has
been working on the newer, improved code for handling ATA/SATA.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Please don't change Beastie to another crap logo such as NetBSD!!!

2005-02-11 Thread Garance A Drosihn
At 8:00 AM -0500 2/11/05, Bart Silverstrim wrote:
Just to sum up things as I understand it...
People want to change the logo from Beastie to something else
because Beastie isn't professional enough, so some committers
decided to hold a contest for a new logo?
We thought it would be nice, after fifteen years, to see if our
much-larger user base has any interesting ideas for a new logo.
We thought it would be nice to reward people with a minor
amount of money as a prize.
Out of curiosity, is Beastie so terrible, a logo, that a business
would be stupid enough to base their server decisions based on it?
Businesses are stupid.  People who demand dedicated allegiance to
one single cartoon image are just as stupid.  Both are facts, and
neither is a late-breaking news item.
Someone said people change logos all the time.  That's flat out
wrong.  When a company spends mucho dinero on marketing their
logo, they don't just flip around and decide to change their
logo that they spent so much money and time getting mindshare
with.  Have any examples of logos that have constantly changed?
We do constantly see companies change their logo.  That is not the
same thing as saying any *one* company is constantly changing *its*
logo.  Apple has changed its logo.  ATT changed its logo several
times.  GE recently changed its one-line motto.  At one point,
McDonalds rebuilt every one of their stores from the old
golden-arches look to the newer family restaurant look -- and
that cost a hell of a lot more than any logo change.
Right now we're working with an image that was picked 15 years ago
for a very small open-source project.  We now claim to be several
orders of magnitude larger than that.  I doubt there is *any*
company who has stuck with it's original logo as it went from
five guys running a hobby to millions of users.
Since when did FreeBSD, a project always driven by volunteers and
not by commercial matters, suddenly gain a marketing department
that is trying to steer FreeBSD into the business sector?  Is
FreeBSD starting to have marketing dictate technology instead of
technology dictate marketing?
Some of those volunteers would like to see a new logo.  Others
would not.  The vast majority probably do not care at all.  Somehow
the ones who like the present logo seem to think they can simply
dismiss all comments from the other volunteers who would like a
new logo, as if the work done by THOSE volunteers is somehow
irrelevant.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Please don't change Beastie to another crap logo such as NetBSD!!!

2005-02-11 Thread Garance A Drosihn
At 4:34 PM -0500 2/11/05, Frank Laszlo wrote:
Chad Leigh -- Shire.Net LLC wrote:
FreeBSD is driven by commercial matters.  Many of the people that
work on it are paid to work on it by their employers, who are
using it commercially.
I wouldnt say many, there are few commiters who are actually paid
to work on it, most commiters/developers do it as a hobby.
...but there is a mighty long list who would love to get paid to
work on FreeBSD!  :-)   Many of us are paid to work on some Linux
machines, and I think it would be much much nicer if we could
convince our employer to go with FreeBSD instead.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Please don't change Beastie to another crap logo such asNetBSD!!!

2005-02-11 Thread Garance A Drosihn
At 2:56 PM -0800 2/11/05, Joshua Tinnin wrote:
On Friday 11 February 2005 02:44 pm, Anthony Atkielski
[EMAIL PROTECTED] wrote:
 Joshua Tinnin writes:
   Hmmm, let's see, Anthony Atielski, 30 posts on this subject
   alone, on a tech help list. Makes you wonder what sort of
   priorities you have.
 
 At the moment, I'm worried about FreeBSD.
Listen.
You come in here making vague accusations of legal wrongdoing,
not just once, but TWICE! With no foundation or background, I
might add. You make these accusations with close to zero actual
knowledge of the situations involved. Do you know what that's
called?  That's called a cartooney threat.
Oh come on now.  Given the recent cartoony lawsuit by SCO against
IBM over Linux, I can understand his concern.  *He* is not
threatening anyone, he's just asking a few worthwhile questions.
And the answer is that the Project is well aware that it needs
to pay attention to these legal issues.  First off, we already
won the earlier ATT lawsuit against FreeBSD, and second off
we did notice the SCO lawsuit.  We are checking in with lawyers
more than we used to, and deciding just how far we need to go
wrt these issues.
Even if we could easily win any cartoony lawsuit, the lawsuit
itself takes money and time-resources that we would rather not
lose.  Certainly the ATT lawsuit in the 1990's caused a major
slowdown in progress for FreeBSD while it was being fought.
Speaking as a programmer, it is very very annoying that we have
to spend time on these issues, but the fact remains that we *DO*
have to pay attention to them.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Logo Contest

2005-02-10 Thread Garance A Drosihn
At 9:37 PM +0100 2/10/05, Anthony Atkielski wrote:
Julio Capote writes:
  Untrue, I know a NUMBER of emerging graphic artists, who would
  kill for this kind of exposure, and are much better than any
  commercialized firm I've seen.
If they are so good, why would they kill for this kind of exposure?
You've never heard of a startup firm?  Perhaps a startup made of
recent college graduates?  They might not kill for the chance,
but if they do have some spare time they might find this an
attractive project to spend some time on.
The world of commercial art is no exception to the rule that you
get what you pay for.
Uh, the same could be said for programming.  So why are you using
an open-source operating system which is largely supported by people
who are NOT paid to work on it?  And who give it away for Free?
Good graphic art is worth paying for; for a
price of zero dollars, you'll get zero quality.  Exceptions are
very, very rare, and cannot be depended on.  And an amateurish
logo would be quite a liability.
Technically this is not for zero dollars.  There is a monetary
prize involved for the winner, as well as the exposure.  And even
if the project does not pick your logo, I believe your logo will
still be seen by others, and someone *else* might think Hey, that
person has some talent!
Listen, if all we come up with is crappy logo submissions, then
we won't actually switch to any new logo.  We're just trying to
see what people *can* come up with, and maybe reward them a little
bit for making the effort.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Logo Contest

2005-02-10 Thread Garance A Drosihn
At 8:13 PM -0500 2/10/05, Mike Hauber wrote:
And quite frankly, it doesn't take weeks to figure out how to use
correct grammar in an announcement or a responce (and even if the
grammar is left _so_ wanting, take a look at the archives for this
list.  It can't be all _that_  bad, can it?)
Who are you to make these pronouncements of reality?  How do you
know the exact length of time it takes to get 400 developers to agree
on *anything* -- never mind the wording of a public announcement?
The site was written by a developer whose primary language is
Japanese.  Just how long would it take you to write a web page in
perfect Japanese?  Sure, be a smug smart-ass about how great your
own damn grammar is.  However, FreeBSD is a world-wide project,
with hard-working developers from many countries whose primary
language is NOT english.  Stop thinking that the entire world
revolves around the lifestyle that you happen to live in.
Thank you in advance for at least a reasonable response.
Thank you for another set of ill-informed and insulting speculation.
It's always a pleasure dealing with friends who are so willing
to see conspiracies at every turn.  I'm also glad you didn't waste
any time reading any of the other messages which I have written in
this mailing list.  Much better to let your own demented accusations
fly, then to give anyone the benefit of the doubt, or to actually
read what they are saying.
Mike
(FreeBSD devotee  evangelist (for now))
And me, I'm speaking solely as Garance Drosehn, FreeBSD committer
for the past four years.  I have done maybe a dozen presentations
for FreeBSD to public groups in that time.  What evangelism have
you done?  Actual evangelism, in front of a live audience?  I,
for one, am damn tired of explaining some stupid Unix inside-joke
to people, at the same time that I'm trying to convince those same
people that FreeBSD is a professional, grown-up operating system.
An operating system.  Code that works.  That is what I care about.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: let me just throw this out there..

2005-01-24 Thread Garance A Drosihn
At 1:02 PM -0800 1/24/05, gabriel wrote:
Has it ever happened to anyone here where your computer (in this
case, my gateway running ipfw+natd) just restarts out of nowhere.
It isn't even a crash, it just restarted.
Yes.  Turned out to be an overheating problem.  (one of the CPU
fans was starting to fail -- and eventually it completely failed).
Then when the computer came back up nothing was running, dhcpd,
natd, cupsd everything was just not running. Weird.
I don't remember this happening, but it might have in some cases.
The machine in question does not run many services.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Freebsd 5.3 - long uptimes...

2005-01-09 Thread Garance A Drosihn
At 4:26 PM + 1/9/05, Robert Watson wrote:
On Sun, 9 Jan 2005, Mark wrote:
  FreeBSD will run for years without a boot in many cases.
  Ah, this point fascinates me. Running for years? Do you ever
  have to recompile your kernel? :)
The longest personal uptime I've had is just under two years, and
that was for a UPS-backed natbox in my parents' basement.  [...] At
some point, the power went out for longer than the UPS could keep
it up, so the uptime went tumbling down...  I think it was up for
about 540-550 days at that point.
My main production-system use of FreeBSD is for a chat server,
which needs to be up all the time or everyone stops chatting and
starts yelling at me.  The longest uptimes I've had so far are:
* 373 days 10 hours   (a 6-hour long power outage)
* 599 days 14 hours   (a UPS melt-down failure)
* 497 days 18 hours   (hard disk failure)
The third one many really have been an OS failure, which I will not
bother trying to describe in detail...
One problem with long uptimes like that:  If the system does finally
die due to an OS error, it is hard to get motivated to track it down.
After all, the OS has had two years worth of changes committed to it
since the time you compiled the snapshot which *maybe* has an error!
To remain safe when going for long uptimes like this, I had a second
machine running the same release of FreeBSD, and I could build the
latest snapshot of the OS on that.  I would then then copy over the
bits and pieces needed to keep the production system safe (such as
new versions of sendmail or sshd).
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Freebsd 5.3 - long uptimes...

2005-01-09 Thread Garance A Drosihn
At 7:27 PM -0500 1/9/05, Garance A Drosihn wrote:
My main production-system use of FreeBSD is for a chat server,
which needs to be up all the time or everyone stops chatting and
starts yelling at me.  The longest uptimes I've had so far are:
* 373 days 10 hours   (a 6-hour long power outage)
* 599 days 14 hours   (a UPS melt-down failure)
* 497 days 18 hours   (hard disk failure)
I should note that the above uptimes were running 4.x systems (and
the first one *might* even be a 3.x system).  While I had forgotten
that subject was talking about FreeBSD 5.3, I obviously have not
been running 5.3 for the past four years!
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Freebsd 5.3 - long uptimes...

2005-01-09 Thread Garance A Drosihn
At 8:13 PM -0600 1/9/05, Chris wrote:
Long uptimes = unsecured+unpatched boxes.
Long uptimes? No thanks.
If you had read my earlier message, you would see that I take steps
to keep the important components patched, and thus my machine has
been as secure as a freshly-built system.  Long uptimes are just a
nice goal that I try for, so if there was a security issue where I
*had* to reboot to fix it, I certainly would do so.
My strategy works for me because I have spare machines, and I am
constantly paying attention to freebsd changes.  The strategy will
not work as well for people in different situations than mine.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Backup with dd?

2005-01-03 Thread Garance A Drosihn
At 11:57 AM -0600 1/3/05, Eric F Crist wrote:
Hello all,
I've decided to try doing a complete system backup, attempting a
bit-for-bit copy.  A friend told me to try the following:
# dd if=/dev/ad4 of=/dev/ad6
Both drives are identical SATA150.  Is this the best way?
While that will probably work, it is also somewhat risky to make
a direct copy of a disk that you are actively using.  You can end
up with a copy that has inconsistencies, because of changes that
happen on the source disk during the time it takes to do a copy.
And if you are copying a huge disk, it *will* take a significant
amount of time to perform that copy.  By inconsistent, I mean
that when you boot up on the copy, the initial 'fsck' will fail
because of inconsistencies on the disk.
I have done 'dd' copies like this.  I have seen fsck failures...
I'm hope to be able to do a daily/weekly backup this way, and if
my primary drive fails, switch the cables and just reboot.
You would be better to do the copies on a per-partition basis, and
first create a UFS snapshot of each partition, and then use the
snapshot as the source for your copy.  I actually use a 'dump -L'
command, combined with 'restore'.  The -L option causes dump to
automatically create the snapshot for the partition you specified.
It uses the snapshot for the copy, and then destroys the snapshot
when the copy has finished.
This assumes you're running 5.3-stable or 6.x-current.  I am not
sure how well snapshots would work on 4.x-stable.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Backup with dd?

2005-01-03 Thread Garance A Drosihn
At 1:03 PM -0600 1/3/05, Eric F Crist wrote:
On Jan 3, 2005, at 12:46 PM, Andrew P. wrote:
Eric F Crist wrote:
You seem to be under the impression that I'm doing this for the
sole reason of a disk crash.  I'm actually doing it for more
than just that reason.  For example, if my system gets hacked,
most hackers will probably not care about an unmounted hard
drive, and screw with the current mounted partitions.  [...etc...]
Backing up with dd is ultimately straightforward, but is not a
good idea at all. The matter is when dd is running, the source
may be modified and the copy might be inconsistent. Software RAID
should be the best option for your task: you can mirror a drive
to a second one and then just plug the second one out of your
computer.
Best wishes,
Andrew P.
Is this vinum?  Fairly difficult to setup, or is it straight-forward?
Before I delve into that, any setup recommendations?
Software raid seems like a messy way to handle this, when all he
wants is straight copies of the partitions.  Much easier to mount
and umount some destination-partition(s), than it is to unplug a
hard drive.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Printer

2004-12-28 Thread Garance A Drosihn
At 9:34 AM -0500 12/28/04, Louis LeBlanc wrote:
On 12/27/04 09:46 PM, Parv sat at the `puter and typed:
 
 Lest somebody gets the wrong idea that all Lexmark printers behave
 as descried above, my Optra E310 laser printer -- US$[23]00, 199[89]
 -- is still going strong.  It worked/works in Windows 9[58], Me, XP.
 It of course just works, like a PS printer, in FreeBSD 3.x, 4.x, and
 sure would in 5.x.
Some few from that time period (very few, if I remember the weeks of
research I wasted on my particular model) used standard protocols and
could be easily made to work with any OS.  The majority of Lexmark
printers up to around 2002 (I think) used a proprietary protocol, and
they guarded it like it was Microsoft code.  I don't think they even
released MacOS drivers.  I believe most of their printers now use
standard drivers, but that's still no guarantee they'll work with *nix
systems.  Some are explicitly supported through the various methods,
but unless it was, I wouldn't even bother, myself.
Sigh.  We have a few hundred Lexmark printers here at RPI, covering
a variety of models.  We have been buying them since Lexmark was
created as a separate company (a spin-off of IBM).  They have all
worked fine, printing from a variety of systems using standard
protocols.  In our case, we tend to buy Lexmarks for black-and-white
laser printing.  We have a few of their color printers too, but we
have not been happy with the printing-results.  Which is to say, they
do *work*, but in general we weren't too happy with the color output,
compared to the output we get from Tektronix (now Xerox) Phaser
printers.
We print over two million pages a year on our various Lexmark
printers.  They seem to do just fine for us.
  Mind that i am interested mainly in sharp and clear black/white
  text currently.
Which would probably be a deciding factor in changing printers.  My
guess is you'll get another year or two with good maintennance.  I
vaguely remember reading somewhere that those standard protocol
printers were decent quality, but the proprietary protocol models
were mediocre at best.  That might have been a factor in their
abandoning it.
I'm glad your experience with Lexmark has been better than mine.
Myself, I'm pretty brand-loyal.  When something works well for me, I
stick with it.  When a brand burns me, I avoid it like the plague
unless circumstance forces me to take another chance.
My experience is that Lexmark is really best at the higher-end
printers, but then that's what we tend to buy here at RPI, because
we do a lot of printing.  I have never bought a cheap ( $100)
lexmark printer, but then I don't buy cheap printers from anyone.
My experience is that almost all cheap printers are more trouble
than they are worth.  I have wasted many many hours on a cheap HP,
Epson, or Canon printer that some friend of mine has bought.  I
am sure that I would have similar headaches with a cheap Lexmark,
assuming I were to buy one.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Printer

2004-12-27 Thread Garance A Drosihn
At 2:25 PM -0500 12/27/04, Leon wrote:
Hi,
I have a BSD5.3
I'm trying to set-up a printer.(Dell AIO A960)
I think, that this printer made by Lexmark.
They have one looks like what I have(Lexmark X6170)
I do not know if  BSD support this printer.
So if you know, pleas let me know.
I do not know about that particular model of Dell or Lexmark
printer.  I do know that at least some of Lexmark's printers
work quite well, but it depends a lot on the model.
The web page at:
http://service.dell.com/dell/kb/tech_support/view_article/1,,967+5835+6285+12749,00.html
implies that this particular printer is not going to work well
with FreeBSD (since it does not work with Linux).  On the other
hand, it may be that this web page is talking about support for
*all* of the functions in this all-in-one printer.  It might
be that you can get it to work as if it were a plain printer
by pretending it is some other model of printer, but I have no
idea what would work best.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Why reccomend Bash shell?

2004-12-16 Thread Garance A Drosihn
At 9:11 PM -0600 12/15/04, Adam wrote:
In Greg Lehey's book The Complete FreeBSD he reccomends changing
the default shell for users to bash shell. -p. 94
What are the Pro's/Con's of using bash as opposed to the other
shells?
Personal preferences, mostly.  In my case, my first unix accounts
were setup with csh.  I am a programmer, and am happy to write
little scripts to automate minor repetitive tasks.  I came across
some situations where I just couldn't get csh to do what I wanted
it to do, so I started using /bin/sh for all the scripts that I
wrote.  As I did that more, I ended up switching my shell to bash
(since it uses syntax which is much closer to standard 'sh').
There are other 'sh-ish' alternatives to csh/tcsh, but I must admit
I haven't really given them a fair trial.  I've been using bash for
at least twelve years now, and I haven't felt any need to change.
I should also admit that these days I'm more likely to write scripts
in perl or ruby, unless it is something fairly simple...
Those are my personal preferences.  Yours may be different.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: newsyslog

2004-12-12 Thread Garance A Drosihn
At 10:07 AM -0500 12/11/04, munn wrote:
I have two FreeBSD machines running 4.10-RELEASE-p5.  On machine A
newsyslog  rolls over the log files perfectly, on Machine B I get
the message:
/var/log/auth.log.0: No such file or directory
The newsyslog.conf entries are :
MACHINE A: /var/log/auth.log600  7 100  * Z
MACHINE B: /var/log/auth.log600  7 100  $W6D0 Z
An ls of the /var/log directory yields
ls -ltr auth*
-rw---  1 root  wheel  97872 Dec 11 00:00 auth.log.1
-rw---  1 root  wheel 95 Dec 11 00:00 auth.log.0.gz
-rw---  1 root  wheel176 Dec 11 09:42 auth.log
I have looked relevant permissions and files sizes on both machines
and they are identical.  Can anyone suggest what the problem is?
Is the time entry the issue ... I just copied it from another entry
in the newsyslog.conf file.
I doubt the time-entry would be the issue.  That will only effect
*when* a file gets rotated.  It should have no effect on what should
be done once it is decided to rotate the file.
You might try running 'newsyslog -nvv', and see if that shows a
difference between the two machines.
Is that 'ls' command from the machine which works, or the one which
does not work?  Either way, it doesn't seem quite right.  You should
either see 'auth.log.0.gz' and 'auth.log.1.gz', or you should see
'auth.log.0' and 'auth.log.1'.  The program is complaining that it
can not find 'auth.log.0', and sure enough there is no 'auth.log.0'.
You might want to try 'gunzip /var/log/auth.log.0.gz', and then
run newsyslog and see if it works any better.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HD Space

2004-12-05 Thread Garance A Drosihn
At 12:02 AM -0200 12/6/04, Giuliano Cardozo Medalha wrote:
People,
After a cvsup, installworld and portupgrade ... I have installed
a new optimized kernel.
After that I have installed KDE3 in my FreeBSd 5.3 machine.
The problem is now /usr is 4 GB used against 1 G free.
How is possible to clean /usr to dont have any problems in future
upgrades ?
See if it looks any better after entering the commands:
cd /usr/src
make cleanworld
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make -j$n buildworld : use of -j investigated

2004-11-23 Thread Garance A Drosihn
At 12:51 PM +0900 11/23/04, Rob wrote:
Laurence Sanford wrote:
Rob wrote:

With these simple tests, I come to the conclusion that
make -j$n buildworld is best with n = number of CPUs.
Does that make sense?
Rob.
This is what I've been telling people and using myself for
years. However, I've been shot down on this several times,
so I just leave everyone alone and let them do their own
thing. You and I will be getting it done a little faster
though.
Not really faster, but higher values do not make a difference,
well, as long as the extra processes do not force the use of
swap. Intensified swapping because of a high -j value slows
down the build considerably.
I don't understand why this is reason for debate. My test has
obvious results on various of my PCs, and was very quickly done:
I wrote a script with a loop that built the world again and
again, doing a 'touch' to a file immediately before and after
the build. Got all my data within a day or so.
There are many things will effect what different people see for
buildworld times on their own hardware.  You also have to make
some effort to make sure you're doing *exactly* the same thing
on each test build, as your results may be skewed due to various
caching that can go on.
You're not the only one who has benchmarked this for yourself, and
my guess is that everyone who does a serious benchmark will simply
find out the right answer for *their* hardware.  I have had dual-
processor machines where buildworlds kept getting faster up to -j9,
but even -j9 was only about 2% faster than -j4, so I stuck with -j4.
In my case, I tried with -j values from 1 to 15.
On my single processor i386 systems, I generally find that -j2 is
faster than -j1.  Anything more than -j2 and performance seems to
get worse.  On my single processor sparc64 system, the disks are so
slow that there's no point doing -j at all.
So my own rule of thumb is -j of 2*number-of-CPU's (but then most
of my machines have plenty of memory), except for the Ultra-10.
Also, did you do your benchmarking before or after the recent
fixes to -j processing?  I haven't redone them after that change,
and I think it will be interesting to see what effect that has.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: make -j$n buildworld : use of -j investigated

2004-11-23 Thread Garance A Drosihn
At 10:41 AM +0900 11/24/04, Rob wrote:
Garance A Drosihn wrote:
Also, did you do your benchmarking before or after the recent
fixes to -j processing?  I haven't redone them after that change,
and I think it will be interesting to see what effect that has.
These tests were done on 5.3-Stable as of Nov. 22nd.
I believe these -j changes were applied to 6-Current. Or am I wrong?
You are correct.  My mistake, I overlooked what you said about
this being on 5.3-stable.  I am too focused on 6.x-current due
to a few system builds that I've been doing.
Still, I do think it will be interesting to see how the recent -j
changes will effect the benchmarking.  The way it worked before,
you often getting more -j than you asked for, and I think that
would have to be significant.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Which Sata-controller card?

2004-11-22 Thread Garance A Drosihn
At 9:33 AM +0100 11/22/04, Stephan Fiebrandt wrote:
If you just need to expand your Mainboard with a SATA Controller,
all you need is a poor card with a Silicon chip on it (Sil 3112 etc).
I've seen cards starting at 10$. Almost all low-cost cards have this
chip series, meanwhile on 5.3 it should work now without any problems.
The WRITE_DMA issues should be solved and commited to 5.3.
Unless something happened in the past week or so, you can still have
WRITE_DMA problems with the SiL 3112 if you connect a fake SATA
drive to it, such as some of the Western Digital drives.  These are
really ATA drives with a little conversion-chip on them to implement
SATA.  These drives seem to work okay on more expensive SATA
controllers, but I had a *lot* of headaches with one connected to a
SiL-3112 controller.  I suspect that the same people who are willing
to live with a $10 disk controller are also going to be tempted to
buy the less-expensive fake-SATA hard drives...
Have also a look at the 5.3 hardware list: 
http://www.freebsd.org/releases/5.3R/hardware-i386.html#DISK.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Which Sata-controller card?

2004-11-22 Thread Garance A Drosihn
At 11:08 AM +0100 11/22/04, Questions wrote:
Garance A Drosihn wrote:
At 9:33 AM +0100 11/22/04, Stephan Fiebrandt wrote:
If you just need to expand your Mainboard with a SATA Controller,
all you need is a poor card with a Silicon chip on it (Sil 3112 etc).

Unless something happened in the past week or so, you can still have
WRITE_DMA problems with the SiL 3112 if you connect a fake SATA
drive to it, such as some of the Western Digital drives.
I've had in my test a Sil Image running on RELENG_5 cvs from last
week with a Maxtor 160 SATA (sorry, don't have the model no handy
atm) and it worked fine without any WRITE_DMA issues, cuz i was
curious after a longer thread in freebsd-current mailinglist about
WRITE_DMA problems.
It would be interesting to know if that's a real-SATA drive.  People
who use a real SATA drive from Seagate have reported that they do
not see any problems with the SiL 3112.  So, it is easy to blame
the hard drive.  On the other hand, I moved my problematic hard
drive from a SiL 3112 controller to a VIA 6420 SATA150 controller,
and I have seen zero problems even though I am using the exact
same hard drive.
I also have to point out, that 5.3-R and RELENG_5 cvs are different
 :)
maybe something got commit into it last week, to be honest, i did
not follow up the changes (shame, yes i know..).  Maybe my SATA
disk is just not a fake-SATA.
At least in my case, I had a lot of trouble completing a buildworld
due to the problems I saw.  If I cannot compile and install a snapshot
of RELENG_5, then it doesn't much matter what has been fixed!
I agree that these fake-SATA and cheap Sil 3112 controller might
not work proper together. But this looks like an hardware
incompatibility issues than a driver malfunction.
I do not know where the real problem is, of course.  But I am
responding to the question that started this thread.  If *I* were
buying a SATA card right now, I would definitely avoid the SiL 3112.
I really do not care if it is only $10.  I suffered through at least
60 hours of headaches due to this SATA card combined with the
fake-SATA disk.  In my case it was particularly silly, because the
motherboard I bought already had SATA on it, but apparently the store
that built this for me did not realize that.  Once I really noticed
that the extra card was there, all I had to do was move the SATA
cable from the cheap SATA card to the motherboard, and immediately I
could do buildworlds with zero trouble.
Before I moved that cable, about eight out of ten buildworld attempts
failed, and two or three of those failed by panic-ing my machine.  This
cheap SATA controller really wasted a *lot* of my time, so there is no
way I could recommend it to anyone else.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Which Sata-controller card?

2004-11-22 Thread Garance A Drosihn
At 11:08 AM +0100 11/22/04, Questions wrote:
Garance A Drosihn wrote:
Unless something happened in the past week or so, you can still
have WRITE_DMA problems with the SiL 3112 if you connect a
fake SATA drive to it, such as some of the Western Digital
drives.  ... These drives seem to work okay on more expensive SATA
controllers, but I had a *lot* of headaches with one connected to a
SiL-3112 controller.  I suspect that the same people who are willing
to live with a $10 disk controller are also going to be tempted to
buy the less-expensive fake-SATA hard drives...
I've had in my test a Sil Image running on RELENG_5 cvs from last
week with a Maxtor 160 SATA (sorry, don't have the model no handy
atm) and it worked fine without any WRITE_DMA issues,
See also the recent thread on the FreeBSD-current mailing list, under
the subject of: Re; List of fake vs. real SATA drives.  One of the
messages in that thread notes:
Currently native SATA drives are still not so popular.
There are:
Seagate Barracuda ATA V, 7200.7, 7200.8
Maxtor DiamondMax10, MaXLineIII
Fujitsu MHT20xxBH(2.5 inch)
Any other drives (as far as I know, of course) are ATA drive
with serial-parallel bridge.
There are a lot of these fake-SATA drives, and the price on them is
attractive compared to many of the real-SATA drives.  There are
some more details in that thread.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Developer

2004-10-11 Thread Garance A Drosihn
At 7:04 PM +0200 10/11/04, [EMAIL PROTECTED] wrote:
Hi there,
I'm going to develop software for the FreeBSD project.
How do I get listed on the official FreeBSD page as developer
and is it possible to get a mail alias like [EMAIL PROTECTED]
I am not sure what kind of development you are expecting to do.
Are you developing some separate product of your own which will
run on FreeBSD?   Or do you hope to make changes to the project
itself?
In the first case, you might be able to be listed under the web
pages for Vendors (software) on www.FreeBSD.org.  I suspect
it will depend on what kind of software you develop.  Generally
you do not get an email account for that.
In the second case, you write up changes, and send them in as
PR's.  Once you start doing enough of these, some FreeBSD
committer will notice and will see about mentoring you as a
new committer to the project.  It can sometimes be tricky to
get the attention of some developer, depending on what parts
of the system you want ot work on.  If you get to be a committer,
then you would get an account on FreeBSD.org.
In both cases, we'd want to see some *working* product or some
written-and-working patches.  So, you have to write the code
first, and then worry about getting listed as a developer (or
as a committer) after we see the result.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What version of FBSD does Yahoo run?

2004-10-07 Thread Garance A Drosihn
At 11:15 AM -0700 10/7/04, Kris Kennaway wrote:
On Thu, Oct 07, 2004, [EMAIL PROTECTED] wrote:
  
   why don't you post some of these impressive benchmarks to
   substantiate your seemingly flimsy position? On a single
   processor system please, for the 99% of us who don't use
   SMP. Hopefully the only good reason to run 5.x won't be
   if you run 4 processor systems.
 
  Already done so.
 
  Kris
 
  Is it really too difficult for you to post a pointer or
  reference for those of us who don't have the time to spend
  our entire lives reading mailing lists archives?
Uh, it was in a reply to your message.
This topic may be going on in multiple threads, so apologies if I
am missing something.  In this thread I notice a reply with the
benchmark:
Here's one benchmark, showing UDP packet/second generation
rate from userland on a dual xeon machine under various
target loads:
Desired Optimal 5.x-UP  5.x-SMP 4.x-UP  4.x-SMP
 5   5   5   5   5   5
 75000   75000   75001   75001   75001   75001
10  10  10  10  10  10
125000  125000  125000  125000  125000  125000
15  15  150015  150014  150015  150015
175000  175000  175008  175008  175008  169097
20  20  20  179621  181445  169451
225000  225000  225022  179729  181367  169831
25  25  242742  179979  181138  169212
275000  275000  242102  180171  181134  169283
30  30  242213  179157  181098  169355
That does show results for both single-processor (5.x-UP 4.x-UP)
and multi- processor (5.x-SMP, 4.x-SMP) benchmarks.  It may be
that he ignored the table as soon as he read dual Xeon.
But when he asked for a pointer or reference, I was expecting
to see a URL which pointed to some additional benchmarks.  I did
not notice any URL's in any of your replies in this thread.  Did
you think that you had included a URL in some reply, or were you
referring to the above benchmark?  Or did I just miss the reply
which included that URL?
Mind you, the above benchmark is very encouraging, so I am not
complaining about it.  I am only wondering if there were additional
benchmarks written up.  Well, I am also wondering what the reason
is for both a desired and optimal column in the above.  When
would desired ever be different than optimal?   :-)
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /var/log/wtmp always reseting to 0

2004-10-01 Thread Garance A Drosihn
At 6:52 PM -0400 10/1/04, questions wrote:
On Fri, 1 Oct 2004, Richard Lynch wrote:
 man logrotate
  Probably the logs are getting rotated and old ones discarded.
   man logrotate does nothing
On FreeBSD, the utility is called newsyslog.
The entry would be in /etc/newsyslog.conf .
You should have an entry in there for /var/log/wtmp, but all that
will do is rotate the file.  It isn't going to truncate it.

__Snip Command Output_
   $ cd /var/log
   $ ls -al wtmp*
   -rw-r--r--  1 root  wheel  308 Oct  1 18:34 wtmp
   -rw-r--r--  1 root  wheel0 Oct  1 05:48 wtmp.0
   -rw-r--r--  1 root  wheel0 Oct  1 05:42 wtmp.1
   -rw-r--r--  1 root  wheel0 Oct  1 05:36 wtmp.2
   -rw-r--r--  1 root  wheel0 Oct  1 05:30 wtmp.3
   $
___End Snip__
Uh, it seems odd that all those files have a date of Oct 1.
newsyslog should only rotate the file once on any given day,
not five times, once every six minutes.  Did someone change the
entry for newsyslog in /etc/crontab ?  The only reference to
newsyslog in /etc/crontab should look like:
# Rotate log files every hour, if necessary.
0   *   *   *   *   rootnewsyslog
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD compilation

2004-09-30 Thread Garance A Drosihn
At 9:31 AM -0700 9/30/04, D S wrote:
Does anybody knows to compile FreeBSD with HAVE_INT64_TIMESTAMP?
Well, the simple answer would be Yes, it is easy to compile FreeBSD
with that variable defined.
However, the more useful answer would be to point out There is
nothing in the system which references that variable, so it does not
matter if you define it...
I suspect you *might* be thinking of the recent change on the sparc64
platform, which happened after 5.2.1-release.  *IF* you are running
freebsd on sparc64 hardware, then the instructions for that change
are included in a file under /usr/src (note that file was only added
after 5.2.1-release).
However, those instructions do not reference any variable named
HAVE_INT64_TIMESTAMP.  Where did you get that variable name from?
Are you compiling some program which expects that variable to exist?
That sounds like something which would be generated by an auto-
configure script.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Freebsd 5.2.1 Performance Woes

2004-09-29 Thread Garance A Drosihn
At 5:51 PM -0400 9/29/04, [EMAIL PROTECTED] wrote:
While I was had a nice little test set up, I figured I'd test
Freebsd 4.9  against 5.2.1 since I had fresh installs handy on
separate drives.
It would be interesting to try a fresh install of the most recent
5.3-beta ISO's.  A lot has changed between 5.2.1 and today, and
some of that should result in significant performance improvements.
Note that 5.2.1 was released back in February.  A lot has changed.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Which Laser Printer for FreeBSD

2004-09-17 Thread Garance A Drosihn
At 8:08 AM -0600 9/17/04, Warren Block wrote:
On Fri, 17 Sep 2004, Martin Moeller wrote:
I guess a laser printer is the best choice for Unix, and I'm
wondering which one I should buy.
I thought about the HP Laserjet 6L or something in this category.
Avoid the 5L and 6L, as they have failure-prone paper feeds.
Newer versions of this top feed printer may share the same problem.
Used 4/4M/4M+ or 5/5M/5M+ series can be found inexpensively; the
M models (for Mac) have Adobe PostScript.
The LaserJet 4000/4050 is a very nice printer, as is the LaserJet
5000 if you need 11x17.  Both have a non-Adobe PostScript clone
which works pretty well.
Internal JetDirect cards are cheap for the 4/5 series, more
expensive for 4000/5000, but very convenient.
Having PostScript in the printer makes setup easier, and makes
printing faster in some cases.
I agree with everything Warren has said here.  Here at RPI, we
have also used Lexmark for blackwhite laser printers, and they
have worked very well.  We've also had a few Lexmark color laser
printers.  We have not been as happy with those, but I assume
you are not looking for a color printer.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Way OT: How long does your box run for?

2004-09-03 Thread Garance A Drosihn
At 9:45 AM +0100 9/3/04, Andy Holyer wrote:
I explained that generally some upgrade comes along that requires
a reboot, but I realized that I don't know how long a box would
stay up in the maximum. So, come on, this should be fun, what's
the biggest uptime you've ever had for a BSD box?
I don't think it would ever require a reboot.  The question is
whether you need to reboot to apply some prudent updates and
security fixes.
I have one server that I try to keep up as much as possible.  The
three longest runs on that machine are:
   373 days 10 hours, ending in July 2000  (long power outage)
   599 days 14 hours, ending in Sept 2002  (UPS failure)
   497 days 18 hours, ending in Apr  2004  (disk failure)
The first one ended because a power-station going into campus was
flooded (due to some construction in the area), and the building
did not have any power for about four hours.  My UPS lasted about
three and a half hours before giving out.
The second one was that the UPS itself melted down!  Well, it did
not quite melt, but it was seriously overheating and I had to
shutdown all the machines connected to it and unplug everything.
The UPS was literally too hot for me to touch, and once it cooled
down enough (which took about four hours), I could see that the
battery had started to melt.
The third was a disk problem, but I also believe it was a OS error
because the disk *getting* the error was one I should have been
able to ignore.  However the OS was confused over which disk got
the error, and it kept resetting the disk-controller for the main
system disk, instead of the one for the disk which had the errors.
So, I suspect the fault for that reboot is half hardware and half
the OS itself.
If you are going for long up times, then the stupidest thing you
can do is install it and forget it.  While I have long uptimes
on this machine, I also have only a few network services running,
and there are only two or three people who can log onto the
machine (and I trust them).  I use the ports collection to keep
many things up-to-date, and for some things in the base system
(like sendmail), I recompile them on a different machine and
then copy the pieces over to this server.  So, I manage to apply
the vast majority of security fixes, even though I do not reboot
and I do not have to stop/restart the main service that this
machine provides.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PROCFS

2004-08-18 Thread Garance A Drosihn
At 10:08 PM -0700 8/17/04, Kris Kennaway wrote:
On Tue, Aug 17, 2004 at 09:14:06PM -0700, Dennis George wrote:
 Hi all,
  Can I disable PROCFS (through kernel configuration[sysctl/GENERIC] )
   in freeBSD
Yes.  It's clear from the GENERIC config how to do this
(remove the entry)).
Is there also some entry needed in /etc/fstab?  I do PROCFS
and PSEUDOFS, but I do not have a proc filesystem.  If the
filesystem is not mounted, is there any risk from it?
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: top for 4.10 jail - looking to work with a someone to make it work

2004-08-18 Thread Garance A Drosihn
At 8:24 PM -0500 8/18/04, george donnelly wrote:
I need top for 4.10 jails to work, and i know a lot of other people
would like it.
So i am looking for someone who like to develop a new patch for
it (if it doesn't already exist?) and then keep the patch up to
date. we're willing to pay and would of course want to release
it back to the community.
Disclaimer: I have not worked with jails...
What does `top' do in jails right now?
What would you like it to do?  I assume you want people to
only see the processes in their own jail, and not other
the ones in other jails.
Does `ps' work in jails the way you would like it to work?
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: find -exec surprisingly slow

2004-08-14 Thread Garance A Drosihn
At 8:31 AM +0930 8/15/04, Paul A. Hoadley wrote:
Hello,
I'm in the process of cleaning a Maildir full of spam.  It has
somewhere in the vicinity of 400K files in it.  I started running
this yesterday:
find . -atime +1 -exec mv {} /home/paulh/tmp/spam/sne/ \;
It's been running for well over 12 hours.  It certainly is
working---the spams are slowly moving to their new home---but
it is taking a long time.  It's a very modest system, running
4.8-R on a P2-350.  I assume this is all overhead for spawning
a shell and running mv 400K times.
Some of it is that, and some of it is the performance-penalty of
deleting files from a directory which has 400K filenames in it,
only to add the same files into a directory which will eventually
have 400K filenames in it.  Directory adds/deletes are not fast
when a directory has that many filenames.  It is probably even
worse if there are other processes still working on the same
directory (such as sendmail importing more mail).
Where is '.' in the above `find .' command?  Is it is on the same
partition as /home/paulh/tmp/spam/sne/ ?
You may find it much faster to do something like:
mkdir usermail.new
chown user:group usermail.new
mv usermail usermail.bigspam
mv usermail.new usermail
cd usermail.bigspam
find . \! -atime +1 -exec mv {} ../usermail \;
My assumption there is that you have a LOT fewer good files than
you have bad files, so there will be fewer files to move.  But I
am also making the assumption that all your files are in a single
directory (and not a tree of directories), which may be a bad
assumption.
Is there a better way to move all files based on some characteristic
of their date stamp?  Maybe separating the find and the move, piping
it through xargs?
The thing to use is the '-J' option of xargs.  That way you can
have the destination-directory be the last argument in the command
that gets executed, and yet you're still moving as many files in
a single `mv' command as possible.  E.g., change my earlier `find'
command to:
find . \! -atime +1 -print0 | xargs -0J[] mv [] ../usermail
Check the man page for xargs for a description of -J
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: error during make buildkernel in 5.2.1

2004-08-10 Thread Garance A Drosihn
At 5:15 PM -0700 8/10/04, Mike wrote:
Greetings:
This is my first foray into 5.2.1.  I installed and ran cvsup
(standard and for ports).  I went to build the kernel and and
make buildkernel died.  Here is the error message.  Any
comments or hints would be helpful.
Did you just install 5.2.1 from the CD?  Or are you trying to
upgrade some older release to 5.2.1 via cvsup?  What lines were
in the cvsup control file that you used?
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installing FreeBSD on Sparc Ultra II clone

2004-06-21 Thread Garance A Drosihn
At 5:02 PM +0100 6/21/04, Matthew Seaman wrote:
On Mon, Jun 21, 2004 at 10:41:26AM -0500, Hank Allen wrote:
  I would like to get some info on installing FreeBSD by booting
  with floppies and using ftp to download on a Tatung machine.
  I'm not sure where to get the disk images. Any help would be
  greatly appreciated.
Either here:
ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/5.2.1-RELEASE/floppies/
or here:
ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/4.10-RELEASE/floppies/
It would be an interesting Sparc Ultra II clone which could
boot up off of i386 floppies...
I do not know of FreeBSD/SPARC64 would run on that clone.  You
might want to check:
  http://www.FreeBSD.org/platforms/sparc.html
or
  http://www.FreeBSD.org/releases/5.2.1R/hardware-sparc64.html
or
  http://www.FreeBSD.org/releases/5.2.1R/installation-sparc64.html
for more details.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installing FreeBSD on Sparc Ultra II clone

2004-06-21 Thread Garance A Drosihn
At 8:23 PM +0100 6/21/04, Matthew Seaman wrote:
On Mon, Jun 21, 2004 at 12:22:15PM -0400, Garance A Drosihn wrote:
 
 It would be an interesting Sparc Ultra II clone which could
  boot up off of i386 floppies...
Tatung's latest products include a range of AMD Opteron and
Xeon based rack mount and blade servers, plus their UK site
lists some Tablet PCs based on Intel CPUs.
I am sure you are right, but the subject on *this* thread is:
Installing FreeBSD on Sparc Ultra II clone
  ^^
which is why I answered the way I did.
Cheers...   :-)
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ho hum. Make installworld

2004-06-03 Thread Garance A Drosihn
At 11:06 AM +0100 6/3/04, Edd wrote:
I checked it out of a pserver like always.
setenv CVSROOT=bla bla
cvs login
cvs co src
I find it much better to use 'cvsup' over pserver, but I think you
will have better luck if you change that last line to:
 cvs co -P src
(or have a .cvsrc with the two lines:
checkout -P
update -d -P
in it)
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Strange pkg_info output

2004-05-26 Thread Garance A Drosihn
At 5:41 PM -0400 5/25/04, Chuck Swiger wrote:
Garance A Drosihn wrote:
At 4:49 PM -0400 5/25/04, Chuck Swiger wrote:
If you install perl from ports, you apparently get
bsdpan included.
Hmm.  How would I know if I had it?
I don't seem to have any port with the letters 'pan' in it.
and `locate bsdpan' does not find anything.  I guess I don't
really know what I should be looking for...
How about this:
22-sec% cat /usr/ports/lang/perl5.8/distinfo
MD5 (perl-5.8.2.tar.gz) = fa356b74f99166b63a68a322c3c68f91
SIZE (perl-5.8.2.tar.gz) = 11896287
MD5 (BSDPAN-5.8.0_1.tar.gz) = af9f075e073b14714cfeb8a7582013e7
SIZE (BSDPAN-5.8.0_1.tar.gz) = 6338
...?  :-)
Ugh.  When I tried grepping /var/db/pkg/*/*, I only looked for a
lowercase 'bsdpan'.  Yes, I do have it installed.  thanks.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Strange pkg_info output

2004-05-25 Thread Garance A Drosihn
At 2:01 PM -0400 5/25/04, Chuck Swiger wrote:
Jorn Argelo wrote:
Recently I came across something which kind of bothered me. Every 
time when pkg_info removes and/or registers a package it gives this 
output:

pkg_info: package bsdpan-DBD-mysql-2.9003 has no origin recorded
pkg_info: package bsdpan-DBI-1.42 has no origin recorded
pkg_info: package bsdpan-GD-1.19 has no origin recorded
I've seen the same type of messages either when updating a
Perl module using CPAN, or now when using perl-5.8.4 (via
local modification to the port).
Should I be worried about this? Or, how do I fix this?
The messages are annoying but mostly harmless.
I have seen this too.  In fact, I think I ran into it the last
time I updated the ports on some of my systems.  I annoyed me
enough that I kept trying things until it went away, but to be
honest I don't remember what exactly I did that cured it.
In my case, it was happening on something that I had always
upgraded via ports  portupgrade.  It was not bsdpan (which I do
not even have installed...), but I do not remember what it was.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Strange pkg_info output

2004-05-25 Thread Garance A Drosihn
At 4:49 PM -0400 5/25/04, Chuck Swiger wrote:
Garance A Drosihn wrote:
   [ ...snip thread about pkg_info: ... has no origin recorded
messages... ]
In my case, it was happening on something that I had always
upgraded via ports  portupgrade.  It was not bsdpan (which I do
not even have installed...), but I do not remember what it was.
If you install perl from ports, you apparently get bsdpan included.
Hmm.  How would I know if I had it?
I don't seem to have any port with the letters 'pan' in it.
and `locate bsdpan' does not find anything.  I guess I don't
really know what I should be looking for...
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: confusing printing error

2004-05-13 Thread Garance A Drosihn
At 7:53 PM -0500 5/13/04, Eric Crist wrote:
Hey list,

I re-ran the apsfilter setup routine, and now my printer
seems to work fine, except I can only print with:
# lpr -Paps1 file

I can't print from Kmail, or anything else, as I get the
following error:
A print error occurred.  Error message received from system:

/usr/local/bin/lpr -P 'aps1' '-#1'
'/tmp/kde-ecrist/kdeprint_jpEBaXb0' : execution failed with message:
lpr: unable to print file: server-error-service-unavailable
This is often a conflict due to different versions of lpr/lpd
on the system.  When you do the `lpr' that works, which `lpr'
are you getting?  Are you getting the base-system lpr i
/usr/bin/lpr, or are you getting the alternate one which you
(apparently) have installed in /usr/local/bin/lpr ?
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dual processor and FreeBSD 4.9

2004-05-10 Thread Garance A Drosihn
At 8:16 PM +0200 5/10/04, Vivailsud Staff Member wrote:
Hello, I am in trouble with FreeBSD 4.9p, I have got dual
processor server (2 x Pentium II 400MHz) and I would like that
FreeBSD could be able to use the both of them. I have read that
you need to compile the kernel once again, but I would like to
know which modifies I should apply to resolve this trouble.
When you look under /usr/src/sys/i386/conf, you will see a
file called GENERIC.  That is the kernel-definition that
FreeBSD is distributed with.
You will want to make a copy of that file, to whatever file
name you want.  Maybe call it DUALCPU.  Inside the file, you
will see the lines:
# To make an SMP kernel, the next two are needed
#optionsSMP # Symmetric MultiProcessor Kernel
#optionsAPIC_IO # Symmetric (APIC) I/O
You will want to uncomment those two 'option' lines, to get:

# To make an SMP kernel, the next two are needed
options SMP # Symmetric MultiProcessor Kernel
options APIC_IO # Symmetric (APIC) I/O
Earlier in the same file, you will see the lines:

machine i386
cpu I386_CPU
cpu I486_CPU
cpu I586_CPU
cpu I686_CPU
ident   GENERIC
Comment out the lines for 'I386_CPU' and 'I486_CPU', and change
the word 'GENERIC' to match the name you have chosen for your
kernel configuration.  So:
machine i386
#cpuI386_CPU
#cpuI486_CPU
cpu I586_CPU
cpu I686_CPU
ident   DUALCPU
You then want to follow the instructions for building a kernel
with the filename that you used for the kernel-configuration.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I *really* need help PLEASE - buildworld failing on mkdep libstdc++can't find unwind.h but it *is* there

2004-04-12 Thread Garance A Drosihn
At 2:41 PM -0600 4/12/04, P.D. Seniura wrote:
Chuck Swiger wrote:
  It is not clear to me what problem you are trying to solve by
  the activities you are pursuing: perhaps you ought to install
  5.2.1 or 4.9 from a .iso image and get on with other tasks,
  and revisit the issue of recompiling world later?
Nutshell:  I have gone back to using the system gcc.  But now
we are not able compile libstdc++ and other related pieces; the
headers _are_ there as mentioned in the earlier msg.  Just about
every other thing under world _does_ compile  link properly -- it
is just the libstdc-type stuff.  ...
I don't know what else to check on, I'm needing another pair
of eyes.  ;)
I am not a gcc or gcc++ expert.  I can offer the following
observation, but don't ask me what it means.  gcc is a major
project in its own right, and I do not know the ins-and-outs
of it.
In your logfile, you have the sequence:

=== gnu/lib/libstdc++
sed -e ...etc...  strstream-fixed.cc
rm -f .depend
mkdep -f .depend -a-DIN_GLIBCPP_V3 -DHAVE_CONFIG_H
  -I/src/gnu/lib/libstdc++
  -I/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++
  -I/src/gnu/lib/libstdc++/../../../contrib/gcc
  /src/gnu/lib/libstdc++/../../../contrib/libstdc++/libmath/nan.c
  ...etc...
mkdep -f .depend -a
  /src/gnu/lib/libstdc++/../../../contrib/libstdc++/src/bitset.cc
  ...etc...
The second one does not have the -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H
or the three settings of -I.  In a logfile of one of my own
buildworlds, both of those mkdep's seem to start out with the same
set of options.  I expect the missing options are significant, but
I do not know why they would be missing, or what to do about them.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: installworld failing on sparc64

2004-04-03 Thread Garance A Drosihn
At 5:48 AM + 4/3/04, Andy Miller wrote:
I am currently upgrading a Sparc64 system from 5.1 to 5.2.1.
buildworld was successful, as well as the build and install
of the kernel.  After a reboot, I ran installworld and
received the following error message:
=== bin/csh
install -s -o root -g wheel -m 555   csh /bin
install -o root -g wheel -m 444 
/usr/src/bin/csh/../../contrib/tcsh/complete.tcsh 
/usr/src/bin/csh/../../contrib/tcsh/csh-mode.el 
/usr/share/examples/tcsh
gencat -new et_EE.ISO8859-15.cat et_EE.ISO8859-15.msg
gencat:No such file or directory
*** Error code 1

I'm not sure what has gone wrong.  Any input on how to fix this
will be greatly appreciated.
I would try:

 cd /usr/src/usr.bin/gencat
 make install
 cd /usr/src
 make installworld
I am not sure that will fix the problem, but it's a plausible
guess at a fix.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: newsyslog and apache

2004-03-22 Thread Garance A Drosihn
At 5:19 PM -0800 3/22/04, Noah wrote:
I ask that you please be specific as to what you think is wrong
with my newsyslog.conf file because I cant seem to figure out
what you are talking about here?  Looks like my newsyslog.conf
file matches the recommended config:
Hi.

I do not run apache at all, but I am the guy who has done the
most-recent work on the newsyslog command.
If I were to guess, I think your problem might be that you end
up sending multiple USR1 signals to apache.  I haven't looked
at the code recently, but I think the freebsd newsyslog still
does not optimize the number of signal's that it sends to a
single process.
What I would suggest you try is some kind of staggered setup.
(it's an easy thing to try...).  Something like:
.../www.domain1.com/access_log  640 30  *  @T00  ZN
.../www.domain1.com/error_log   640 30  *  @T00  Z  /var/run/httpd.pid 30
.../www.domain2.org/access_log  640 30  *  @T02  ZN
.../www.domain2.org/error_log   640 30  *  @T02  Z  /var/run/httpd.pid 30
.../www.domain3.com/access_log  640 30  *  @T04  ZN
.../www.domain3.com/error_log   640 30  *  @T04  Z  /var/run/httpd.pid 30
(the ...'s are just an attempt to avoid line-wrapping in this
message.  you still want the full pathname in the control file)
The idea is to rotate the log-and-error files for any one domain
at the same time, and only specify the pid once for that group.
And then wait two minutes between the files for each domain name.
See if that helps you at all.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: AFS 1.2.11 compilation on FreeBSD 5.2?

2004-03-17 Thread Garance A Drosihn
At 10:03 AM -0800 3/17/04, Matt Weatherford wrote:
Has anyone done this?   Care to share your notes? :)
I want the AFS server, mainly.  I dont care about the client.
I have not compiled or run the server, but some friends of
mine claim it wasn't too hard to do.  Compiling and running
a server on FreeBSD isn't too much different than running it
on any other platform.  It is the client which is much more
of a challenge to get working on different platforms.
Right now the client is working but probably-not stable, and
you have to get the latest source out of the cvs repository
of OpenAFS.  Check  www.OpenAFS.org  for more details.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Moving SSH port off of port 22

2004-03-09 Thread Garance A Drosihn
At 9:01 AM -1000 3/9/04, Jason Halbert wrote:
Hello All:

I need some help moving SSH off of port 22, preferably onto
port 23 and disabling telnet.  Can I do this just by changing
something in /etc/services or by means of a firewall?
You change the configuration for sshd in /etc/ssh/sshd_config,
un-commenting and changing the line that says '#Port 22'.  You
will probably find that you also want to change ~/.ssh/config
files (on other hosts) to add an entry for the host where you
are running sshd on port 23.
You should not change /etc/services for this.

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Usability Of NOCLEAN

2004-03-06 Thread Garance A Drosihn
At 12:37 PM -0600 3/6/04, Peter Schultz wrote:
Hi,

I'm just curious about the usability of NOCLEAN.  If I've just
updated world and things are fine with the installation, is it
considered safe to use NOCLEAN?
If we thought that behavior was always safe, then that would
be the default behavior.  It is not the default behavior,
because it is not always safe...
A couple updates to libc came in this morning just after I
installed a fresh world and I'm wondering what others do in
cases like this.
I rarely use NOCLEAN.  If there *are* problems due to some
junk being left around, then the time I will lose to debugging
those problems is bound to be much larger than the amount I
save by using NOCLEAN.  (and I have run into such problems,
back when I did make NOCLEAN builds much more often).
The only times I use NOCLEAN is if something died in buildworld
or installworld.  If I can find the ONE update to fix that
problem, then I'll fix it and use NOCLEAN to rebuild world.  I
do not cvsup for all new updates, though.  I only pick up
the update(s) which fix the specific problem I'm seeing.  It
is very annoying to cvsup to pick up one fix, only to find
out that you also picked up a *different* breakage...
I doubt I would ever use NOCLEAN for updates to libc.  My
feeling is that if I don't have time to do a normal build,
then I also won't have the time to deal with any problems
that might come up from a NOCLEAN build.
There is *always* another set of interesting-looking updates
being committed to freebsd.  If I have just finished a successful
buildworld, then I almost always wait at least a week before
I do another one.
This is only describing my own habits, of course.  Obviously
there are many times when you *can* get away with a NOCLEAN
build.  It's one of those things which is very useful when
you know what you're doing, but it isn't always safe to do.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: redirecting /tmp

2004-03-04 Thread Garance A Drosihn
At 9:37 PM -0500 3/4/04, Robey Holderith wrote:
I'm trying to find a way to set an environmental variable so
that the system will use /usr/tmp or something instead of /tmp
as a temporary directory.
Some utilities will pay attention to the TMPDIR environment variable.

The story is that I was attempting to change the size of /usr
remotely.  I backed up all the data and then copied the bare
necessities over to /tmp then changed fstab so the drive formerly
known as /usr was never mounted and /tmp was mounted as /usr.
Great! it worked... but now su isn't working... because
now /tmp is 755.
However, things that run setuid or setgid will probably avoid
looking at environment variables.  You may have painted yourself
into a corner here, and will need to be at the machine to log in
as root.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: LPD's emailing of errors to user@hostname

2004-02-29 Thread Garance A Drosihn
At 12:45 PM -0600 2/29/04, freebsd wrote:
lpd will generate error messages to [EMAIL PROTECTED] specific email
addresses.  Is there a way to have lpd deliver to a single account
(e.g. [EMAIL PROTECTED]) regardless of the [EMAIL PROTECTED] that
originated the job?
Not right now.  I could change that.  I have a few somewhat
related changes in RPI's version of lpd that I still haven't
merged into FreeBSD's lpd.  I'm pretty busy with other side
projects right now, but I hope to be getting back to lpd
changes in about two weeks.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: filesystem permissions using dump on live filesystem

2004-02-23 Thread Garance A Drosihn
At 11:47 PM -0500 2/23/04, Aaron Peterson wrote:
  i put a user in the operator group in /etc/group:

-snip-

 and attempted to dump a live filesystem:
-snip-

 what am i missing here?
nevermind.  i had to log out and log back in.  that solved my
problems.   now my only question is why does one have to log
out and log in for addition to a new group to take effect?
It is expected that the list of groups that you are a member of
will not change very frequently.  Thus, the list of your groups
is computed at login time, and is kept in memory.
If this was not done, then *anything* which checked your groups
for access (such as reading a file) would have to read through
all of /etc/group to re-calculate that list of groups.  Now, it
would be easy enough to optimize that simple case (on a machine
using just /etc/group), but there is no simple optimization if
on machines which are using something like NIS+ or other network
directory services to hold the group information.
If we really really had to, we could implement something that
did that job acceptably well, but it's much easier to just
tell people log out, and log back in.  Or don't even logout,
just 'ssh -l localhost' and start a new session.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: SCP fails while ssh works...

2004-02-09 Thread Garance A Drosihn
At 1:08 PM -0800 2/9/04, twig les wrote:
Hey all, I have to identical boxes running 4.6 and all of a
sudden one stopped taking SCP even though it still takes ssh
connections.
This may not help you at all, but every time I've had a problem
where scp fails and ssh works, it has been because the userid on
the remote side printed out some extra text while it was logging
in.  Something like 'Welcome to ' in the .bashrc, for instance.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Can someone explain where the cvsup-mirror port puts it's crontab entry?

2004-01-29 Thread Garance A Drosihn
At 4:06 PM -0500 1/29/04, stan wrote:
I've just installed this wonderful port, and with some kind help from the
list got it working.
Thanks to everyone.

Now, I've got a learning question. This port creates a crontab
entry to schedule updates. I looked in /var/cron/tabs, and I don't
see it....   So, where does it create this crontab entry?
The port tacks an entry on to the end of /etc/crontab

--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: The fear of cvsupping my ports...

2004-01-27 Thread Garance A Drosihn
At 10:24 PM +0100 1/27/04, Henrik W Lund wrote:
Greetings!

Now, the thing is, I run into problems when I've cvsupped
my ports tree. make index bails out afer about 2 seconds,
and portsdb -U spews out about 3000 lines of
portname missing:  dependency list incomplete.
Do you 'refuse' anything when you're cvsup-ing?  Such as
refusing all chinese ports, or games, or whatever category
of the ports collection that you are not interested in?
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: smblog format?

2004-01-08 Thread Garance A Drosihn
At 12:15 PM -0800 1/8/04, Matt Staroscik wrote:
When I connect my PocketPC to my Samba server, the device has a
very strange name in smblog:
netbios connect: local=server remote=_cerdrc9cb8005
 _cerdrc9cb8005 (192.168.1.94) connect to service Music
 as user USER (uid=, gid=) (pid 44909)
_cerdrc9cb8005 is just an example, the exact string changes. My
other samba clients have normal names in the log.
Where is Samba getting this string from?
Note the part:_cerdrc9cb8005 (192.168.1.94)

I would guess that means _cerdrc9cb8005 is considered the hostname
for IP address 192.168.1.94.  Do you have a DHCP server setup?  If
not, the PocketPC may be picking a name out of thin air.  That is
what I would guess is happening.
However, I believe the message you're talking about is one that
you can specify the format of.  None of my logfiles look like
the line that you have.  (I'm running samba 2.2.8a).  Check your
smb.conf file and see what you have in that line.
(it might be that you ARE seeing the default line -- because I
certainly do customize the messages on my server...)
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is the end of FreeBSD ?!

2004-01-08 Thread Garance A Drosihn
At 2:19 AM +0200 1/9/04, Vahric MUHTARYAN wrote:
Hi Everybody ,

I don't know Who can answer it or Do FreeBSD creators
watching this list but I wonder What is the end of FreeBSD OS.
I mean Does it like RedHat ?! one day will come and FreeBSD will
inform After this date, We are Not Free 
RedHat is a company, with employees it has to pay, and shareholders
that it has to answer to.  They *must* have a standalone business
model -- one that allows them to make money.
FreeBSD is still a group of volunteers, some who work for companies
and some who work for fun.  The companies do not make money from
FreeBSD directly, but by using FreeBSD to get something else
done, and they make the money from something else.  In my case,
I work for a college.  The college doesn't actually care at all
about FreeBSD, but they pay me to make sure Printing works.  I
happen to do that with some programs from FreeBSD, so any work
that I do on printing could be given back to FreeBSD without
my college caring about it.
Note that RedHat is not the only source for linux, so there are
still ways to get linux for free.  In fact, you can still get it
for free from RedHat, but it's called Fedora and it will change
at a much faster pace than Redhat used to change.  To my mind,
Fedora is pretty much the same idea as the freebsd-current branch.
A cutting-edge product, appropriate for people who have the time
to deal with the constant stream of (possibly incompatible)
changes.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Must root be on slice 'a'?

2003-12-23 Thread Garance A Drosihn
At 5:27 PM +0100 12/22/03, Leif Neland wrote:
Does this imply that I must rename my slices, that I can't
boot from /dev/ad1s3e ?
It is possible to boot from other slices than 'a', but you
want to do automatic boot-ups (ie, without needing to type
commands into the boot loader), you will find it much easier
to use slice 'a' for root, and to have that slice labelled 'a'
be the first slice in the DOS-style partition.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: runaway CVSup ?

2003-12-19 Thread Garance A Drosihn
At 11:29 AM -0800 12/19/03, Toru . wrote:
how long it takes to complete make install clean of
cvsup-without-gui. It looks like the process went into
a infinate loop and I keep seeing the same message over
and over. Is this normal behavior?
It is hard to know for sure, because you didn't really
give us much information -- such as *what* message you
are seeing over and over again.
If you do not have a modula-3 compiler installed (and
you probably do not, if this is a new install), then
it will take a long time to build cvsup-without-gui,
because you first have to build the modula-3 compiler.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Stupid cvsup questions

2003-12-15 Thread Garance A Drosihn
At 11:41 PM +0200 12/15/03, Ion-Mihai Tetcu wrote:
Hi,

I have 2 identical (copy/paste) ports-supfiles on two machines:

it# grep -v '#' /etc/ports-supfile
*default host=cvsup.ro.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix
*default compress
ports-all


I run it like:
# cvsup -g /etc/ports-supfile on both machines.
The stupid question:
why on the second I have the `,v' suffix ?
Is there an env variable or something ?
I don't think so.  Did you try copying the file from one
machine to the other, and doing a direct diff?  It looks
like the 'tag=.' is being ignored for some reason.
I suspect you have tried that, but it's hard to imagine
why the two machines would be different.  I'd also note
that your grep command shouldn't ignore lines that have
a '#' that is anywhere in the line.  Only ignore lines
where there is nothing interesting before the '#'.  Eg:
   grep -v '^ *#'

I don't know what else to suggest.  From what you describe
in your message, both hosts should be getting the same set
of files.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  1   2   >