Linksys router and ssh time outs ...

2006-07-07 Thread User Freebsd


I just put a linksys router in place, so that we could use our wireless 
laptop, well, wireless ... now, I seem to be getting timeouts on my ssh 
connections when they are idle, but timeouts that I never received when I 
had my desktop directly connected to the cable modem ...


I've looked at the settings for the Linksys, and can't find anything that 
might be related ... is there some keepalive that the linksys might be 
blocking, or something else that I can do to keep the connection from 
dropping?


Thanks ...


Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: vinum stability?

2006-07-07 Thread Ian Jefferson

One thing you might consider is that gvinum is quite flexible.

The subdisks in vinum that make up a raid 5 plex are partitions.   
This means you can create raid 5 sets without using each entire disk   
and the disks don't need to be the same model or size.  It's also  
handy for spares.  If you start having media errors a new partition  
on the offending disk might be one option but any other disk that  
support a partition size equal to the ones used as subdisks in the  
raid 5 plex will also do.


Having said that I'm finding it tricky to understand and use gvinum.   
It seems to be on the mend though, the documentation is improving and  
the raid 5 set I had running seemed pretty stable for a 40 minute  
iozone benchmark.  That's all I've done with it to date.


IJ

On Jul 6, 2006, at 8:56 AM, Jeremy Ehrhardt wrote:

I have a quad-core Opteron nForce4 box running 6.1-RELEASE/amd64  
with a gvinum RAID 5 setup comprising six identical SATA drives on  
three controllers (the onboard nForce4 SATA, which is apparently  
two devices, and one Promise FastTrak TX2300 PCI SATA RAID  
controller in IDE mode), combined into one volume named "drugs".  
We've been testing this box as a file server, and it usually works  
fine, but smartd reported a few bad sectors on one of the drives,  
then a few days later it crashed while I was running chmod -R on a  
directory on "drugs" and had to be manually rebooted. I can't  
figure out exactly what happened, especially given that RAID 5 is  
supposed to be robust against single drive failures and that  
despite the bad blocks smartctl claims the drive is healthy.


I have three questions:
1: what's up with gvinum RAID 5? Does it crash randomly? Is it  
considered stable? Will it lose data?
2: am I using a SATA controller that has serious problems or  
something like that? In other words, is this actually gvinum's fault?
3: would I be better off using a different RAID 5 system on another  
OS?


Jeremy Ehrhardt
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions- 
[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: mplayer fails to build

2006-07-07 Thread Luchezar Petkov
* Garrett Cooper ([EMAIL PROTECTED]) wrote:
> On Jul 7, 2006, at 2:24 PM, Luchezar Petkov wrote:
> 
> >Hey all,
> >multimedia/mplayer fails to build with this error message, while  
> >compilling:
> >
> >cc  -I. -g codec-cfg.c mp_msg.c -o codec-cfg -DCODECS2HTML -L/usr/ 
> >local/lib -L/usr/local/lib -I/usr/local/include/freetype2 -I/usr/ 
> >local/include -I/usr/X11R6/include/gtk12 -I/usr/local/include/ 
> >glib12 -I/usr/local/include -I/usr/X11R6/include
> >/var/tmp//ccjt849w.o(.text+0x14): In function `mp_msg_init':
> >/usr/ports/multimedia/mplayer/work/MPlayer-1.0pre7try2/mp_msg.c:39:  
> >undefined reference to `libintl_bindtextdomain'
> >/var/tmp//ccjt849w.o(.text+0x24):/usr/ports/multimedia/mplayer/work/ 
> >MPlayer-1.0pre7try2/mp_msg.c:40: undefined reference to  
> >`libintl_textdomain'
> >/var/tmp//ccjt849w.o(.text+0xb1): In function `mp_msg_c':
> >/usr/ports/multimedia/mplayer/work/MPlayer-1.0pre7try2/mp_msg.c:68:  
> >undefined reference to `libintl_gettext'
> >gmake: *** [codec-cfg] Error 1
> >*** Error code 2
> >
> >Stop in /usr/ports/multimedia/mplayer.
> >
> >--
> >Any ideas?
> >Thank you.
> 
> Either libintl or the libintl gettext tie-in isn't compiled/installed  
> yet.
> -Garrett

#locate libintl
/usr/local/include/libintl.h
/usr/local/lib/libintl.a
/usr/local/lib/libintl.la
/usr/local/lib/libintl.so
/usr/local/lib/libintl.so.6

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


Re: mplayer fails to build

2006-07-07 Thread Garrett Cooper

On Jul 7, 2006, at 2:24 PM, Luchezar Petkov wrote:


Hey all,
multimedia/mplayer fails to build with this error message, while  
compilling:


cc  -I. -g codec-cfg.c mp_msg.c -o codec-cfg -DCODECS2HTML -L/usr/ 
local/lib -L/usr/local/lib -I/usr/local/include/freetype2 -I/usr/ 
local/include -I/usr/X11R6/include/gtk12 -I/usr/local/include/ 
glib12 -I/usr/local/include -I/usr/X11R6/include

/var/tmp//ccjt849w.o(.text+0x14): In function `mp_msg_init':
/usr/ports/multimedia/mplayer/work/MPlayer-1.0pre7try2/mp_msg.c:39:  
undefined reference to `libintl_bindtextdomain'
/var/tmp//ccjt849w.o(.text+0x24):/usr/ports/multimedia/mplayer/work/ 
MPlayer-1.0pre7try2/mp_msg.c:40: undefined reference to  
`libintl_textdomain'

/var/tmp//ccjt849w.o(.text+0xb1): In function `mp_msg_c':
/usr/ports/multimedia/mplayer/work/MPlayer-1.0pre7try2/mp_msg.c:68:  
undefined reference to `libintl_gettext'

gmake: *** [codec-cfg] Error 1
*** Error code 2

Stop in /usr/ports/multimedia/mplayer.

--
Any ideas?
Thank you.


Either libintl or the libintl gettext tie-in isn't compiled/installed  
yet.

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


mplayer fails to build

2006-07-07 Thread Luchezar Petkov
Hey all,
multimedia/mplayer fails to build with this error message, while compilling:

cc  -I. -g codec-cfg.c mp_msg.c -o codec-cfg -DCODECS2HTML -L/usr/local/lib 
-L/usr/local/lib -I/usr/local/include/freetype2 -I/usr/local/include 
-I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include 
-I/usr/X11R6/include 
/var/tmp//ccjt849w.o(.text+0x14): In function `mp_msg_init':
/usr/ports/multimedia/mplayer/work/MPlayer-1.0pre7try2/mp_msg.c:39: undefined 
reference to `libintl_bindtextdomain'
/var/tmp//ccjt849w.o(.text+0x24):/usr/ports/multimedia/mplayer/work/MPlayer-1.0pre7try2/mp_msg.c:40:
 undefined reference to `libintl_textdomain'
/var/tmp//ccjt849w.o(.text+0xb1): In function `mp_msg_c':
/usr/ports/multimedia/mplayer/work/MPlayer-1.0pre7try2/mp_msg.c:68: undefined 
reference to `libintl_gettext'
gmake: *** [codec-cfg] Error 1
*** Error code 2

Stop in /usr/ports/multimedia/mplayer.

--
Any ideas?
Thank you.

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


Re: Video card

2006-07-07 Thread victor leon

the install is normal after that when i restart the cpu sounds a "beep" and
can't use X mode ,i only can use text mode  my monitor is a   AOC  model
CT520n

On 7/7/06, Lowell Gilbert <[EMAIL PROTECTED]> wrote:


"victor leon" <[EMAIL PROTECTED]> writes:

> Hi  i want to install freebsd 6.1 in my cpu but i dont find drivers ,
the
> videocard  is S3 Pro Savage km133

What actually happens when you do the install?


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


6.1 quota issues?

2006-07-07 Thread Charles Sprickman

Hi all,

Any idea what this is indicating?

[EMAIL PROTECTED]/home/staff/micro/tmp]# quota micro
Disk quotas for user micro (uid 5315):
 Filesystem   usage   quota   limit   grace   files   quota   limit 
grace

  / 1630026 300 310   13393   0   0
[EMAIL PROTECTED]/home/staff/micro/tmp]# chown micro index.html
chown: index.html: Disc quota exceeded
[EMAIL PROTECTED]/home/staff/micro/tmp]#

Thanks,

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


HELP:(cisco serial (up, up) but cannot ping its interface from within.

2006-07-07 Thread Larry . Kasbrick
Hi Glenn,

Did you ever get an answer regarding the above problem.

I'm experiencing the same thing

LarryK.





NOTICE:  This confidential e-mail message is only for the intended 
recipient(s). If you are not the intended recipient, be advised that 
disclosing, copying, distributing, or any other use of this message, is 
strictly prohibited. In such case, please destroy this message and notify 
the sender.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Video card

2006-07-07 Thread Lowell Gilbert
"victor leon" <[EMAIL PROTECTED]> writes:

> Hi  i want to install freebsd 6.1 in my cpu but i dont find drivers , the
> videocard  is S3 Pro Savage km133

What actually happens when you do the install?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: BSD::Resource and getrusage(2) [PATCH]

2006-07-07 Thread Philip M. Gollucci
server localhost:8529 started
t/apache/basic.ok
t/apache/deprecatedok
t/pod..ok
All tests successful.
Files=3, Tests=18,  2 wallclock secs ( 0.98 cusr +  0.12 csys =  1.09 CPU)
[warning] server localhost:8529 shutdown

[That was from svn trunk, after patch applied]


-- 

Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Error Message with 'periodic weekly'

2006-07-07 Thread Atom Powers

On 7/7/06, Gerard Seibert <[EMAIL PROTECTED]> wrote:

I just did a fresh install of FBSD 6.1. When attempting to run:

 periodic weekly

This error message is displayed:

Jul  7 14:12:47 seibercom su: _secure_path: /nonexistent/.login_conf is
not owned by uid 65534


First, /nonexistant should probably not exist. It is the home
directory of the "nobody" user (uid 65534). I would just kill it `rm
-rf /nonexistant`

If it *does* exist that may not be a problem, as long as the nobody
user does not have a valid shell, but /nonexistant is used by many
system accounts so just setting the ACLs on it to `chmod -R
nobody:nobody /nonexistant` probably won't help much.

--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Error Message with 'periodic weekly'

2006-07-07 Thread Gerard Seibert
I just did a fresh install of FBSD 6.1. When attempting to run:

 periodic weekly

This error message is displayed:

Jul  7 14:12:47 seibercom su: _secure_path: /nonexistent/.login_conf is
not owned by uid 65534

I do not understand what the problem is.


-- 
Gerard Seibert
[EMAIL PROTECTED]



Power-lust is a weed that grows only in the vacant lot of an empty mind.

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


Re: Unable to boost maxusers in custom kernel.

2006-07-07 Thread Kevin Kinsey

Worth Bishop wrote:

Thanks Kevin -


First, I guess, be sure that it's using the file
you're specifying.


I've sure wondered about this. As I've compiled & installed the custom 
kernels, I've watched the changes in the size & date/time stamp to the 
/kernel binary file. It's definitely changing, and I think I've done 
everything I'm supposed to to tell the system what kernel file to use. 
I've gone so far as to copy the /kernel file into /kernel.GENERIC 
(keeping a backup kernel.GENERIC) with the same results.


What troubles me is that every time I reboot I see:  FreeBSD 4.3-RELEASE 
#0: Sat Apr 21 10:54:49 GMT 2001
[EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC in the messages. I 
don't see :/usr/src/sys/compile/MYKERNEL, even though I've changed the 
ident line and every other reference to GENERIC I can find in the 
configuration file to MYKERNEL.




This is the output of "uname -a", I'm quite sure, and therefore is
a reference to the userland, and the kernel that was in place when
it was built.  If the kernel has a different date/time, etc., then
you've built it just fine...question is, what's up with the MAXUSERS
thing.


What else can I do to ensure that the system is using the kernel I 
intend it to use?




That's about it.


I've not tried setting maxusers to "0" but will. And as for 
patches...well, I kind of inherited this system and am guessing patches 
have been sporadically applied if at all. My own expertise is all OJT 
and what I've gleaned from manuals, online help, folks like you, etc. My 
inclination is to upgrade ASAP to newest release, but as this is a 
production system with no hot spare and those who control it are 
fanatically opposed to any downtime...it may need to reach crisis point 
before that can be done.


Thanks again for any suggestions!

Worth Bishop



I'm not sure I've any further suggestions.  I've pretty much decided
to keep close to updated; however, and somewhat unfortunately perhaps,
I've no boxes so "busy" and "mission-critical" that they can't be
rebooted now and again.

Kevin Kinsey



- Original Message - From: "Kevin Kinsey" <[EMAIL PROTECTED]>
To: "Worth Bishop" <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, July 07, 2006 4:11 AM
Subject: Re: Unable to boost maxusers in custom kernel.



Worth Bishop wrote:
Running FreeBSD 4.3 (I know - upgrade on the way, but would like to 
know what's going on here for future ref), on AMD Athlon MP 1600 
(1393.79-MHz 686-class CPU) with 1.5 Gb RAM. Ran up against 'too many 
files' problem, dropped packets, maxing out mbuf's, proc files, etc.


Attempted to compile custom kernel based on GENERIC only by changing 
maxusers from 32 to (first) 512, then 256, then 128. No matter what, 
system rebooted with 32 maxusers, 4096 mbugs, 1024 max mbuf clusters, 
1024 maxfiles. Can reset maxfiles via sysctl, but why won't maxusers 
stick?


Have tried building both with:

#  /usr/sbin/config MYKERNEL
#  cd ../../comple/MYKERNEL
#  make depend
#  make
#  make install
#  reboot

and with

#  cd /usr/src
#  make buildkernel KERNCONF=MYKERNEL
#  make installkernel KERNCONF=MYKERNEL
#  reboot

No discernable error messages.

What am I missing?



First, I guess, be sure that it's using the file
you're specifying.

Next, hmm, per the Handbook, have you tried "0" (to let
the system "auto-tune" itself?)

That said, after 4.5*, you can set this variable in
/boot/loader.conf ... I've no idea ATM whether or not
this behavior was "MFC'ed" back into your code stream
or not ... (surely you're not running 4.3 UNPATCHED)
you may wish to check /boot/defaults/loader.conf for
evidence of this theory, and, if you find it, give that
a try as well.


HTH,

Kevin Kinsey

*This information isn't in the handbook (I don't think ...
I sent a doc PR a day or two ago on it due to a post
here by someone who was having troubles in the same
area, I guess...). 








--
No problem is insoluble in all conceivable circumstances.

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


Re: BSD::Resource and getrusage(2) [PATCH]

2006-07-07 Thread Philip M. Gollucci
> Doesn't that imply that it's in kb per stat clock ticks?
I think you read it backwards, but I agree with the outcome.

svn diff
Index: lib/Apache/SizeLimit.pm
===
--- lib/Apache/SizeLimit.pm (revision 419830)
+++ lib/Apache/SizeLimit.pm (working copy)
@@ -247,8 +247,15 @@
 return ( $size, 0 );
 }

+## rss is in KB
+## ixrss is in BYTES
+## this is true on at least FreeBSD, OpenBSD, NetBSD, and Darwin
 sub _bsd_size_check {
-return ( BSD::Resource::getrusage() )[ 2, 3 ];
+my @results = BSD::Resource::getrusage();
+my $max_rss   = $results[2];
+my $max_ixrss = int ( $results[3] / 1024 );
+
+return ( $max_rss, $max_ixrss );
 }





-- 

Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


"The Complete FreeBSD": errata and addenda

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

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

Note also that the book has now been released for free download in PDF
form.  Instead of downloading the changed pages, you may prefer to
download the entire book.  See http://www.lemis.com/grog/Documentation/CFBSD/ 
for more information.

Have you found a problem with the book, or maybe something confusing?
Please let me know: I'm no longer constantly updating it, but I may be
able to help

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


How to get best results from FreeBSD-questions

2006-07-07 Thread Greg Lehey

How to get the best results from FreeBSD questions.
===

Last update $Date: 2005/08/10 02:21:44 $

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

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

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

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

=

Contents:

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

I: Introduction
===

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

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

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

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

II:  How to unsubscribe from FreeBSD-questions
==

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

  Welcome to the freebsd-questions@freebsd.org mailing list!

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED]
  
(obviously, substitute your mail address for "[EMAIL PROTECTED]").  You can
also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]
  
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including
changing the password, itself) or to unsubscribe.
  
Normally, Mailman will remind you of your freebsd.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

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

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

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

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

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

  2.  You're subscribed to a mailing list which is subscribed to
  Fr

Re: HP Officejet Printer

2006-07-07 Thread doug

On Fri, 7 Jul 2006, Ted Mittelstaedt wrote:



- Original Message -
From: "dick hoogendijk" <[EMAIL PROTECTED]>
To: "freebsd-questions" 
Sent: Thursday, July 06, 2006 8:53 AM
Subject: Re: HP Officejet Printer



On 05 Jul Ted Mittelstaedt wrote:


http://www.linuxprinting.org/show_printer.cgi?recnum=HP-OfficeJet_4300

"...these printers are supported by the "hpijs" driver beginning from
version 1.3. The driver supports resolutions only up to 600 dpi, head
alignment settings stored in the printer are not made use of, so use a
one-cartridge (CMY) printing mode in case of mis-alignments"

"perfectly"?



- Original Message -
From: "dick hoogendijk" <[EMAIL PROTECTED]>

This printer works perfectly with apsfilter. The latter does /not/
need cups (luckely imho) but works very well with the standard unix
lpd.


OK, the definition for perfectly does not agree with my statement.
Otoh, my laserjet uses 600dpi and that is (for normal use) quite good.
If I need higher qualities I use a printshop.
As I understood the OP is a home user and in that sence 600dpi is ok.
As for the heads: you have a point there.
I could live with that and would buy a one-head-cartridge though;-)

And, most importantly (to me), NO cups ;-)



Yeah, they are uncomfortable things to wear, aren't they? ;-)

A long time ago I posted instructions to the list on how to replace
cups with lpr, given -any- printer, -any- driver.  What I have observed
is the prevelance of the use of cups in the online guides for hooking
up printers is because most people writing most of those guides out
there really don't understand how all the programs interrelate with
each other, and are merely copying other people's guides in how
to set the things up.

Just about all the online printer setup guides that use cups in the
examples are tracable back to the instructions for setting up a printer
in gnome, on a Linux box where the distribution had gnome
preinstalled, since cups is also preinstalled.

All cups does is muck with config files, it does not actually do
any conversion.  The engines that do the heavy lifting are
ghostscript, which either converts postscript input direct to
printerspeak, for the limited number of drivers compiled into
it, or converts it to an intermediate format that is massaged
by gimpprint, or the manufacturers driver (ie: hp's driver for
example) into the printerspeak needed by the particular printer
model.  You do not need cups, or apsfilter for that matter, to
plug the engines into each other.

The other thing that is often missed is that for printers like the
Epson stylus c84 that I have, or the officejet that the OP has,
to get from postscript into the gross muck that these winprinters
can understand, takes a huge amount of CPU cycles for anything
complex.  Pentium systems under 1Ghz need not apply.

Ted


Could you either repost your lpr email or if you remember the subject? I have 
access to questions back toOct 1999 with 2.115 posts from you :) We have 
FreeBSDing on workstations pretty weill in hand (thanks Xorg/KDE) but printing 
remains beyond our grasp.

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


Re: unable to mount VCD's

2006-07-07 Thread Randy Pratt
On Fri, 7 Jul 2006 13:16:03 +0200
Fabian Keil <[EMAIL PROTECTED]> wrote:

> "Arun G Nair" <[EMAIL PROTECTED]> wrote:
> 
> >Am unable to mount VCD's on freebsd 6.1. I have a custom kernel.
> > When trying to mount it says input/output error. Am trying to copy a
> > VCD as i can't play the last part of any vcd. Mplayer always says
> > broken frame when it reaches the end. :( I can mount all other data
> > CD's.
> 
> Like Audio CDs Video CDs have no file system and can't be mounted.
> 
> You could copy it with dd or readcd and cdrecord or burncd,
> but it's unlikely that it will fix the broken frames. 
> 
> You could also try readcd's -c2scan option to see if
> the disc itself is ok. 

You might try "vcdxrip" ( /usr/ports/multimedia/vcdimager ) to
extract the mpeg file from the VCD.

Randy

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


Re: 'unregistered_only' in natd does not work?

2006-07-07 Thread BigBrother-{BigB3}


On Fri, 7 Jul 2006, Chuck Swiger wrote:


BigBrother-{BigB3} wrote:
[ ... ]
I have trouble making a passive ftp connection to work, because every time 
natd changed source port even though it should not. Sometimes it changes 
within the IP_PORTRANGE_DEFAULT but sometimes it changes it to something 
completely irrelevant like 3


The verbose log of natd shows this:

Out {default}  [TCP] 193.92.?:55211 -> 193.92.:3866 aliased to
   [TCP] 193.92.??:37962 -> 193.92.?:3866


You might try using the punch_fw keyword or flag to natd to try and control 
the portrange used for ephermeral FTP & IRC data channels, BTW...but if your 
problem also affects passive-mode FTP, something else is going on.


What happens if you change your IPFW divert statement to only match the 
RFC-1918 unroutable addresses which you're using, and not send internal 
routable traffic to NATD...?


--
-Chuck




Dear Chuck,

Thank you for your answer.

1) I have already tried punch_fw keyword with 
different settings but nothing happened. I mean that no dynamic rule was 
added. I think that punch_fw works when you are on the box and try to 
connect to another ftp server (thus, when you are client). I do not think 
that punch_fw works when this box is the server. Passive mode from the box 
itself is ok...works without any problem.


2) I am not sure how to change the divert command because take notice that 
divert should be applied to both incoming and both outgoing packets. I 
think that messing with divert may cause some strange problems...


I followed your suggestion and It seems that the following works (not 
tested thoroughly though)


$fwcmd add 14999 skipto 15001 all from $oip to any via $oif
$fwcmd add 15000 divert natd all from any to any via $oif

(do you have any feeling for possible faults on the skipto line?)


I will test but I think it should be noted that this is a but in natd 
code (I mean the 'unregistered_only').



Thanks for the support!


BB





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


RE: jail login and replication problems

2006-07-07 Thread Philippe Lang
Chad Leigh -- Shire.Net LLC wrote:

>>> Hi Dan,
>>> 
>>> Did you ever find a solution to this problem? I've had the exact
>>> same problem, and have tried various different things to resolve
>>> it... all to no avail. It's really annoying have to remake the jail
>>> from scratch every time, as I'd much rather do the configuration
>>> once, and use it as a cookie-cutter for future jails.
>> 
>> Hi,
>> 
>> For duplicating jail, use the utility called "cpdup". Tar does not
>> work for this.
> 
> Why not?  I use it (though in a modified way -- I tar a base
> jail without /bin /usr etc but with /etc etc and then I use
> nullfs mounts to duplicate one base jail install.
> 
> But my /etc in each jail is copied with tar (as is a bunch of
> stuff including the base / with dirs for usr bin sbin etc) and it
> works 

Well,

Well, to be precise, tar did work for me too once or twice, but because of some 
filesystem related issues, I read several times that cpdup is a preferred 
method. I cannot tell more (I'm sure others readers in this list will), I'm 
sorry, except that you can use cpdup both eyes closed...

---
Philippe Lang
Attik System



smime.p7s
Description: S/MIME cryptographic signature


Re: Spontaneous reboots with Dell PowerEdge

2006-07-07 Thread Jerry McAllister
> 
> Hi,
> 
> I am hoping that someone has come across this weird happening with 
> Dell PowerEdge 1800.
> 
> We have one such server, with dual power supply, running FreeBSD 4.11-STABLE.
> 
> Spontaneously, the server does a hard boot and comes back up. 
> /var/log/messages only states the previous system shutdown was unexpected. 
> This happens at random
> times and is completely unpredictable. We have replaced all the RAM modules
> with a completely different set, just to eliminate anything to do with faulty
> modules, but this has not cured the problem.
> 
> The server has 7 disks on a RAID 5 set. A hard reboot definately calls for a
> fsck, which makes the reboot process take forever. I have fsck_y_enable in
> rc.conf, because otherwise someone will have to manually run fsck after these
> spontaneous reboots!
> 
> I am considering a serial console option to see if I can capture 
> something, but apart from that I am at my wit's end reagrding this issue.

Well, it sounds like something in the area of a power or heat problem.
But, it is hard to tell.   dmesg.boot will not tell you much about
what caused the system to go down.   It only contains information
about it coming back up.

You might try and look in to /var/log/messages et al.
But, I would check on power consistency and if any component
is heating up.

jerry

> 
> 
> 
> Here is the output of dmesg.boot:
> 
> Copyright (c) 1992-2005 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>   The Regents of the University of California. All rights reserved.
> FreeBSD 4.11-STABLE #12: Thu Apr 20 16:44:32 EAT 2006
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SRV4.x
> Timecounter "i8254"  frequency 1193182 Hz
> CPU: Intel(R) Xeon(TM) CPU 3.20GHz (3192.22-MHz 686-class CPU)
>   Origin = "GenuineIntel"  Id = 0xf43  Stepping = 3
>   
> Features=0xbfebfbff
>   Hyperthreading: 2 logical CPUs
> real memory  = 3757834240 (3669760K bytes)
> avail memory = 3658661888 (3572912K bytes)
> Preloaded elf kernel "kernel" at 0xc0414000.
> Warning: Pentium 4 CPU: PSE disabled
> VESA: v2.0, 16384k memory, flags:0x1, mode table:0xc0398502 (122)
> VESA: ATI RADEON VE
> netsmb_dev: loaded
> Pentium Pro MTRR support enabled
> md0: Malloc disk
> Using $PIR table, 25 entries at 0xc00fb750
> npx0:  on motherboard
> npx0: INT 16 interface
> pcib0:  on motherboard
> pci0:  on pcib0
> pcib1:  irq 0 at device 2.0 on 
> pci0
> pci1:  on pcib1
> pcib2:  at device 0.0 on pci1
> pci2:  on pcib2
> amr0:  mem 
> 0xfe9c-0xfe9f,0xfa0f-0xfa0f irq 7 at device 14.0 on pci2
> amr0:  Firmware 521X, BIOS H430, 256MB RAM
> pcib3:  at device 0.2 on pci1
> pci3:  on pcib3
> pcib4:  irq 0 at device 3.0 on 
> pci0
> pci4:  on pcib4
> pcib5:  at device 0.0 on pci4
> pci5:  on pcib5
> pcib6:  at device 0.2 on pci4
> pci6:  on pcib6
> pcib7:  irq 0 at device 4.0 on 
> pci0
> pci7:  on pcib7
> pcib8:  irq 0 at device 5.0 on 
> pci0
> pci10:  on pcib8
> pcib9:  at device 0.0 on pci10
> pci11:  on pcib9
> em0:  port 
> 0xdcc0-0xdcff mem 0xfe4e-0xfe4f irq 11 at device 7.0 on pci11
> em0:  Speed:N/A  Duplex:N/A
> pcib10:  at device 0.2 on pci10
> pci12:  on pcib10
> em1:  port 
> 0xccc0-0xccff mem 0xfe2e-0xfe2f irq 11 at device 8.0 on pci12
> em1:  Speed:N/A  Duplex:N/A
> pcib11:  irq 0 at device 6.0 on 
> pci0
> pci13:  on pcib11
> uhci0:  port 0x9ce0-0x9cff irq 11 
> at device 29.0 on pci0
> usb0:  on uhci0
> usb0: USB revision 1.0
> uhub0: 2 ports with 2 removable, self powered
> uhci1:  port 0x9cc0-0x9cdf irq 10 
> at device 29.1 on pci0
> usb1:  on uhci1
> usb1: USB revision 1.0
> uhub1: 2 ports with 2 removable, self powered
> uhci2:  port 0x9ca0-0x9cbf irq 7 
> at device 29.2 on pci0
> usb2:  on uhci2
> usb2: USB revision 1.0
> uhub2: 2 ports with 2 removable, self powered
> pci0:  at 29.7 irq 3
> pcib12:  at device 30.0 on pci0
> pci16:  on pcib12
> pci16:  at 13.0 irq 7
> isab0:  at device 31.0 on pci0
> isa0:  on isab0
> atapci0:  port 
> 0xfc00-0xfc0f,0-0x3,0-0x7,0-0x3,0-0x7 irq 0 at device 31.1 on pci0
> ata0: at 0x1f0 irq 14 on atapci0
> ata1: at 0x170 irq 15 on atapci0
> orm0:  at iomem 
> 0xc-0xcafff,0xcb000-0xcbfff,0xcc000-0xccfff,0xec000-0xe on isa0
> pmtimer0 on isa0
> fdc0:  at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
> fdc0: FIFO enabled, 8 bytes threshold
> fd0: <1440-KB 3.5" drive> on fdc0 drive 0
> atkbdc0:  at port 0x60,0x64 on isa0
> atkbd0:  flags 0x1 irq 1 on atkbdc0
> kbd0 at atkbd0
> psm0:  irq 12 on atkbdc0
> psm0: model IntelliMouse Explorer, device ID 4
> vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
> sc0:  at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=0x300>
> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
> sio0: type 16550A
> sio1: configured irq 3 not in bitmap of probed irqs 0
> uhub3: 2 ports with 2 removable, self powered
> IP packet filtering initialized, divert enabled, rule-based forwarding 
> enabled, default to accept, logging limited to 1

MIPv6 support

2006-07-07 Thread Lorraine Chin


Does anyone know what release of FreeBSD will support Mobile IPv6?
I had seen in a KAME mail list several months ago that it was 
possibly 7.0.  Has that changed?


Lorraine

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


Re: 'unregistered_only' in natd does not work?

2006-07-07 Thread Chuck Swiger

BigBrother-{BigB3} wrote:
[ ... ]
I have trouble making a passive ftp connection to work, because every 
time natd changed source port even though it should not. Sometimes it 
changes within the IP_PORTRANGE_DEFAULT but sometimes it changes it to 
something completely irrelevant like 3


The verbose log of natd shows this:

Out {default}  [TCP] 193.92.?:55211 -> 193.92.:3866 aliased to
   [TCP] 193.92.??:37962 -> 193.92.?:3866


You might try using the punch_fw keyword or flag to natd to try and control 
the portrange used for ephermeral FTP & IRC data channels, BTW...but if your 
problem also affects passive-mode FTP, something else is going on.


What happens if you change your IPFW divert statement to only match the 
RFC-1918 unroutable addresses which you're using, and not send internal 
routable traffic to NATD...?


--
-Chuck

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


Re: CPUTYPE for VIA EPIA EDEN in /etc/make.conf on FreeBSD 6.1

2006-07-07 Thread Chuck Swiger

Owen G wrote:

I'm trying to get a little more speed out of my 600MHz mini-itx box as
I convert it into a FReeBSD fileserver (with GUI) . . .

I'm trying to find the right settings for /etc/make.conf and would
appreciate your help.

dmesg.boot shows the processor as being:

CPU: VIA C3 Samuel 2 (601.37-MHz 686-class CPU)
 Origin = "Centaurhauls" Id = 0x673 Stepping = 3
 Features=0x803035

[ ... ]

These VIA C3 processors are basically a low-power Pentium+MMX processor, and 
I've used:


CPUTYPE=pentium
CFLAGS=-O2 -pipe

...OK under later 5.x and 6.x releases.  Using CPUTYPE=i686/pentium2 resulted 
in the bootloader and the kernel containing instructions which the CPU 
couldn't handle (ie, the system halted and panic'ed) when I tried.


I believe you could use CPUTYPE=pentiumpro or pentium-mmx OK, but there didn't 
seem to be any performance difference, and I'm leery of chasing the compiler 
optimizer too far when it doesn't change the system performance by a noticable 
amount.


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


Re: shared library loader configuration

2006-07-07 Thread Giorgos Keramidas
On 2006-07-07 14:58, "[EMAIL PROTECTED]@mgedv.net" <[EMAIL PROTECTED]> wrote:
>Giorgos Keramidas wrote:
>>On 2006-07-07 14:22, "[EMAIL PROTECTED]@mgedv.net" <[EMAIL PROTECTED]> wrote:
>>> dunno, if it's a misunderstanding, but my only question "how to tell
>>> the system where to load libraries and in which order to prefer
>>> paths" seems to be still open.
>>>
>>> anyway, thx for the reply ;-)
>>>
>>> ps: i already RdTFM ;-)
>>
>> You don't.  Unless you modify the /etc/rc.d/ldconfig script manually,
>> /lib and /usr/lib will always be the first to search.
>>
>> I'm still not convinced that "telling the system where to load
>> libraries from" is the solution to you problem, but I don't know what
>> the problem is.  You have to describe first *WHAT* the real problem
>> is and *WHY* you think modifying the library path is a solution.
>
> i found the ldconfig rc-script but i thought there might be a
> "cleaner" way of telling the system where the shared libraries are to
> be found.
>
> any way to tell the system: take /usr/local/lib first w.o.  changing
> the ldconfig rc-scripts or developing own startup scripts that achieve
> that?  no way of changing some default configuration file that is
> avail. for that purpose?

No.  For a very good reason too.  If you change the default loader path
to use /usr/local/lib first then *ALL* the programs are affected.  Even
those that are part of the base system.  This is, in general, a very bad
idea as the base-system programs may depend on particular versions of
the libraries to work correctly and those libraries are in /lib:/usr/lib.

> some additional thoughts (a little bit of phil.):
>
> i wonder, that anybody scripts such hardcoded stuff into a script
> because the environment /etc/ld*conf* exists, and at least for a clear
> and proper way for the admin to define what to load from where it
> should be possible, to override a default configuration via the
> config-files, and not with modifications to rc-scripts which are gone
> by default after each upgrade.

There's a reason why /lib:/usr/lib take precedence over /usr/local.

Don't change that, or be prepared to debug all the potential bugs that
may start appearing.

> to satisfy your couriosity :-)

This description is much better.

> i'd like to compile openssl 0.9.8 and a newer zlib for testing some
> software that does crypto & compression using these libs.  and i
> wanted to keep the servers as clean as possible from changing
> rc-scripts, etc... to ensure we're able to transfer the outcoming
> piece of program to other boxes w'out much effort.  i know it's inside
> the ports but the problem is, we'd like to tes some sort of code
> that's not enabled by default in the ports.

You can always install your own version of openssl and zlib and use an
explicit -R option to tell the linker where to find libraries.  There
are two steps involved in linking and distributing an executable:

* Build-time linking, where the compiler/linker has to be explicitly
  pointed at teh right place with -L/foo/lib paths.

* Runtime linking, where the runtime linker-loader has to lookup and
  locate the library.

You can affect the first one with explicit -L/foo/lib options.  You can
also hardcode one or more paths to the binary -- solving the second
problem too -- if you use -R/distrib/lib options while building.

Your problems are only a matter of using the proper build options.

See for example the ldd output near the end of the following log:

# [EMAIL PROTECTED]:/home/giorgos/tmp/foo# make cleandir
# ===> lib (cleandir)
# ===> lib/libz (cleandir)
# rm -f a.out foo.o foo.o.tmp
# rm -f foo.po  foo.po.tmp
# rm -f foo.So foo.so foo.So.tmp
# rm -f libz.so
# rm -f libz.so.* libz.so
# rm -f libz.a libz_p.a libz.so.1
# rm -f .depend GPATH GRTAGS GSYMS GTAGS
# ===> bin (cleandir)
# ===> bin/foo (cleandir)
# rm -f foo foo.o
# rm -f .depend GPATH GRTAGS GSYMS GTAGS
# [EMAIL PROTECTED]:/home/giorgos/tmp/foo# make cleandir
# ===> lib (cleandir)
# ===> lib/libz (cleandir)
# rm -f a.out foo.o foo.o.tmp
# rm -f foo.po  foo.po.tmp
# rm -f foo.So foo.so foo.So.tmp
# rm -f libz.so
# rm -f libz.so.* libz.so
# rm -f libz.a libz_p.a libz.so.1
# rm -f .depend GPATH GRTAGS GSYMS GTAGS
# ===> bin (cleandir)
# ===> bin/foo (cleandir)
# rm -f foo foo.o
# rm -f .depend GPATH GRTAGS GSYMS GTAGS
# [EMAIL PROTECTED]:/home/giorgos/tmp/foo# make obj
# ===> lib (obj)
# ===> lib/libz (obj)
# /home/giorgos/tmp/foo/obj/home/giorgos/tmp/foo/lib/libz created for 
/home/giorgos/tmp/foo/lib/libz
# ===> bin (obj)
# ===> bin/foo (obj)
# /home/giorgos/tmp/foo/obj/home/giorgos/tmp/foo/bin/foo created for 
/home/giorgos/tmp/foo/bin/foo
# [EMAIL PROTECTED]:/home/giorgos/tmp/foo# make
# ===> lib (all)
# ===> lib/libz (all)
# cc -O2 -fno-strict-aliasing -pipe -I/home/giorgos/tmp/foo/lib/libz -g 
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c 
/home/giorgos/tmp/foo/lib/libz/foo.c
# building static z library
# ranlib libz.a
# cc -pg -O2 -fno-s

Interrupts question

2006-07-07 Thread Alex Zbyslaw
I was monitoring a machine with "systat -vmstat" and noticed something 
about the interrupts and I don't know if it's a problem or not.  If it 
is a problem, is there anything I can do about it?


The interrupts for the network interface (em0) on irq 64 exactly match 
those for a uhc device on irq 16.


And the interrupts for the hardware raid (amr) on irq 46 exactly match 
those for a uhc device on irq 18.


The machine is a Dell 2850 running 5.4.  Relevant bits from the dmesg are:

ioapic0: Changing APIC ID to 2
ioapic1: Changing APIC ID to 3
ioapic1: WARNING: intbase 32 != expected base 24
ioapic2: Changing APIC ID to 4
ioapic2: WARNING: intbase 64 != expected base 56
ioapic3: Changing APIC ID to 5
ioapic3: WARNING: intbase 96 != expected base 88
ioapic0  irqs 0-23 on motherboard
ioapic1  irqs 32-55 on motherboard
ioapic2  irqs 64-87 on motherboard
ioapic3  irqs 96-119 on motherboard
[...]
amr0:  mem 
0xdfdc-0xdfdf,0xd80f-0xd80f irq 46 at device 14.0 on pci2

[...]
em0:  port 
0xecc0-0xecff mem 0xdfae-0xdfaf irq 64 at device 7.0 on pci6

[...]
uhci0:  port 0xace0-0xacff 
irq 16 at device 29.0 on pci0


[...]
uhci2:  port 0xaca0-0xacbf 
irq 18 at device 29.2 on pci0

[...]

Turning off USB isn't an option as it's required for the 
pseudo-keyboard/mouse used by the DRAC.


Here a sample of the interrupt section.  The number of interrupts for 
[EMAIL PROTECTED]/[EMAIL PROTECTED] can easily be in the thousands rather than hundreds.


Interrupts
1950 total
 6: fdc0
 128 8: rtc
13: npx
14: ata
450 16: uhc
409 18: uhc
19: uhc
23: ata
409 46: amr
450 64: em0
  4 65: em1
   106: ah
   107: ah


Any insight appreciated,

--Alex




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


CPUTYPE for VIA EPIA EDEN in /etc/make.conf on FreeBSD 6.1

2006-07-07 Thread Owen G
Hi,

I'm trying to get a little more speed out of my 600MHz mini-itx box as
I convert it into a FReeBSD fileserver (with GUI) . . .

I'm trying to find the right settings for /etc/make.conf and would
appreciate your help.

dmesg.boot shows the processor as being:

CPU: VIA C3 Samuel 2 (601.37-MHz 686-class CPU)
 Origin = "Centaurhauls" Id = 0x673 Stepping = 3
 Features=0x803035

Some Linux distributions say that this should be thought of as a Cyrix
C3 processor but that isn't on the list of FreeBSD options for CPUTYPE
. . .

There's nothing that I can see from the BSD side in the archives or in
the file: 
/usr/share/examples/etc/make.conf
that looks like a suitable CPUTYPE . . .

I've not seen any documentation on the other remarked out CPU options
for /etc/make.conf either:

NO_CPU_CFLAGS=
NO_CPU_COPTFLAGS=
and
CFLAGS= -0 -pipe

Any ideas on any of the 4 options for this CPU gratefully accepted.

(I have got the GENERIC kernel changed correctly - hopefully)

Thanks in anticpation,

Owen



___ 
All New Yahoo! Mail – Tired of [EMAIL PROTECTED]@! come-ons? Let our SpamGuard 
protect you. http://uk.docs.yahoo.com/nowyoucan.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: shared library loader configuration

2006-07-07 Thread [EMAIL PROTECTED]@mgedv.net
 

> -Original Message-
> From: Giorgos Keramidas [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 07, 2006 2:28 PM
> To: [EMAIL PROTECTED]
> Cc: freebsd-questions@freebsd.org
> Subject: Re: shared library loader configuration
> 
> On 2006-07-07 14:22, "[EMAIL PROTECTED]@mgedv.net" <[EMAIL PROTECTED]> wrote:
> > dunno, if it's a misunderstanding, but my only question "how to tell
> > the system where to load libraries and in which order to 
> prefer paths"
> > seems to be still open.
> >
> > anyway, thx for the reply ;-)
> >
> > ps: i already RdTFM ;-)
> 
> You don't.  Unless you modify the /etc/rc.d/ldconfig script manually,
> /lib and /usr/lib will always be the first to search.
> 
> I'm still not convinced that "telling the system where to 
> load libraries
> from" is the solution to you problem, but I don't know what 
> the problem
> is.  You have to describe first *WHAT* the real problem is 
> and *WHY* you
> think modifying the library path is a solution.
> 

i found the ldconfig rc-script but i thought there might
be a "cleaner" way of telling the system where the shared
libraries are to be found.

any way to tell the system: take /usr/local/lib first w.o.
changing the ldconfig rc-scripts or developing own startup
scripts that achieve that?
no way of changing some default configuration file that is
avail. for that purpose?

some additional thoughts (a little bit of phil.):

i wonder, that anybody scripts such hardcoded stuff into
a script because the environment /etc/ld*conf* exists,
and at least for a clear and proper way for the admin to
define what to load from where it should be possible, to
override a default configuration via the config-files,
and not with modifications to rc-scripts which are gone
by default after each upgrade.

to satisfy your couriosity :-)
i'd like to compile openssl 0.9.8 and a newer zlib for testing
some software that does crypto & compression using these libs.
and i wanted to keep the servers as clean as possible from
changing rc-scripts, etc... to ensure we're able to transfer
the outcoming piece of program to other boxes w'out much effort.
i know it's inside the ports but the problem is, we'd like to
tes some sort of code that's not enabled by default in the ports.

my (very subjective) point of view currently is, that the
dynamic loading environment could rely on just one (or 2
if you care for elf/aout anymore) configuration file, which
is being taken care of the libexec-stuff.
i exactly don't see the need for caching all "found" libs
inside another config in var (even this can speed up things
a little bit), a need for the ldconfig command (which renders
things to do twice and which - maybe i don't get it (plz. no
flame-wars ;-) ) - doesn't really take care for the config-
files from /etc as well.

and assume the following:
you're compiling ~10 libraries in series (all go to /usr/local)
and they're some sort of connected to each other, you'll always
have to exec ldconfig -blabla... to ensure, the loader knows
about the new lib?
it's like the crazieness of the windows registry: i need 10ths
of entries for one library to really make it avail in the os
and for progs relying on it.

hey, i'm not a real developer (as you can see) and i really
am sure that there was a reason for developing that way.
i'm also sure, that you can explain good reasons for doing
it that way (and i wouldn't ever say "i don't care 'bout that!")

but from a more or less "user's" point of view, it's admin-
overhead which could (theoretically) be avoided.

i'll STFU know - things are going too theoretically ;-)

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


Re: unable to mount VCD's

2006-07-07 Thread Victor Lundwall
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Arun G Nair wrote:
> Hi,
>   Am unable to mount VCD's on freebsd 6.1. I have a custom kernel.
> When trying to mount it says input/output error. Am trying to copy a
> VCD as i can't play the last part of any vcd. Mplayer always says
> broken frame when it reaches the end. :( I can mount all other data
> CD's.
> 
> TIA
> 

Hi!

Try mount_cd9660 -s 0 /dev/acd0 /cdrom
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFErlS2st+Hv5XgQPwRAivKAJ9JzEpW6cnUN3rEUbG+iuJu4wARUACfcste
h0unCPO4jsyHHqWebdnEhC8=
=bLHz
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: shared library loader configuration

2006-07-07 Thread Giorgos Keramidas
On 2006-07-07 14:22, "[EMAIL PROTECTED]@mgedv.net" <[EMAIL PROTECTED]> wrote:
> dunno, if it's a misunderstanding, but my only question "how to tell
> the system where to load libraries and in which order to prefer paths"
> seems to be still open.
>
> anyway, thx for the reply ;-)
>
> ps: i already RdTFM ;-)

You don't.  Unless you modify the /etc/rc.d/ldconfig script manually,
/lib and /usr/lib will always be the first to search.

I'm still not convinced that "telling the system where to load libraries
from" is the solution to you problem, but I don't know what the problem
is.  You have to describe first *WHAT* the real problem is and *WHY* you
think modifying the library path is a solution.

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


RE: shared library loader configuration

2006-07-07 Thread [EMAIL PROTECTED]@mgedv.net
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Giorgos Keramidas
> Sent: Friday, July 07, 2006 2:03 PM
> To: [EMAIL PROTECTED]
> Cc: freebsd-questions@freebsd.org
> Subject: Re: shared library loader configuration
> 
> On 2006-07-07 13:22, "[EMAIL PROTECTED]@mgedv.net" <[EMAIL PROTECTED]> wrote:
> >
> > hi,
> >
> > can someone give me please a SIMPLE and CLEAR answer, what i exactly
> > have to do to achieve the following:
> >
> > i have (for example) installed a new compiled version of 
> libz.a/.so in
> > /usr/local.
> >
> > i want program (during runtime AND during compilation) to 
> compile and
> > run against the NEW and non-system libs.
> 
> In short, just don't.
> 
> The system programs have been tested, developed and debugged with the
> *SYSTEM* version of the libraries.  Blindly replacing these libraries
> with others is something you should do only with extreme care.
> 
> > what has to be set/changed, to have this setting as soon as the OS
> > starts?
> 
> LD_LIBRARY_PATH is probably what you mean here.
> 
> > i tried running ldconfig, i was playing around with some ld-so.conf
> > files, everything failed. the compilation does not even find the new
> > libraries, and if i use "ldd" to check what path the lib would use
> > it's always /lib or /usr/lib instead of /usr/local/lib.
> 
> All the compilers that I have to use for every day work and for my own
> stuff have options that can hardcode a 'runtime library path' 
> in the ELF
> binary.
> 
> What did you try to compile?
> 
> What do you mean by writing ``the compilation does not even 
> find the new
> libraries''?
> 
> > please don't tell me things about RTFM or weblinks
> 
> This is also a good way of learning new stuff though :)
> 
> > i just need ~3 simple lines of what the hell to do that i get a
> > persisting setting for compilations and runtimes
> 
> How do you know it is ``3 simple lines''?
> 

dunno, if it's a misunderstanding, but my only question
"how to tell the system where to load libraries and in
which order to prefer paths"
seems to be still open.

anyway, thx for the reply ;-)

ps: i already RdTFM ;-)

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


Re: BSD::Resource and getrusage(2)

2006-07-07 Thread Dave Rolsky

On Fri, 7 Jul 2006, Philip M. Gollucci wrote:


Hi, I'm trying do determine the units for one of the fields returned by 
getrusage(2)

man page on 6.0-RELEASE-p5 says this:
2 maxrss maximum shared memory or current resident set
3 ixrss integral shared memory

ru_ixrss
an ``integral'' value indicating the amount of memory used
by the text segment that was also shared among other pro-
cesses. This value is expressed in units of

kilobytes * ticks-of-execution.

Ticks are statistics clock ticks.
The statistics clock has a frequency of sysconf(_SC_CLK_TCK)

which to me implies thats in kilobytes, but to the contrary, we have the 
following


Doesn't that imply that it's in kb per stat clock ticks?


ApacheSizeLimit on bsd systems uses BSD::Resource to get the memory and
shared-pages size.
sub bsd_size_check {
return (&BSD::Resource::getrusage())[2,3];
}


I also have a local test based on the recent Apache::SizeLimit work from Dave 
Rolsky
where

maxrss > ixrss
(Apache-Test output snipped)
# '14124' maxrss
# >
# '52080' ixrss

I tried looking in src/sys/kern/kern_resource.c but I didn't find anything that 
told me the units.

My inkling is the documentation is WRONG.


If it's reported share memory as greater than total memory, then I think 
the docs for BSD::Resource are correct. We need to divide that second 
number (ixrss) by the value of the stat clock tick. Any idea how that can 
be determined?



-dave

/*===
VegGuide.Orgwww.BookIRead.com
Your guide to all that's veg.   My book blog
===*/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Creating vinum RAID 1 on place

2006-07-07 Thread John Nielsen
On Friday 07 July 2006 08:04, John Nielsen wrote:
> On Friday 07 July 2006 00:29, Olivier Nicole wrote:
> > Is there a trick on the way to build a vinum RAID 1 without backup-in
> > the data first?
> >
> > I have the two disk that will get mirrored. One of the disk if
> > formated as UFS 4.2 and already holds all the data. The second disk is
> > blank.
> >
> > NormallyI should start with 2 blank disks, label them as vinum, create
> > the vinum plex, then push the data on that RAID. Is there a way to do
> > it without blanking both disk first (a RAID 0 on a single disk, copy
> > the data on the RAID 0), label the other disk as vinum and create a
> > RAID1?
>
> This is quite possible.  The 100% safe way would be to configure the blank
> disk as the sole member of a (degraded) mirror set, use dump / restore to
> transfer the data from the existing filesystem to the "mirror", then wipe
> the old filesystem and add the original disk to the mirror.
>
> The faster but only 90% safe way would be to "gmirror label" the partition
> containing the existing filesystem and then adding the second disk as a
> member. This is not safe if the last sector of the existing provider (where
> gmirror stores its metadata) is (or could be in the future) used by the
> filesystem. Frequently the geometry works out such that there are spare
> sectors at the end of a partition that are not used by newfs, but if you're
> not sure then don't go this route. See the archives of this and other lists
> for details about this situation.

Sorry, I completely missed the "vinum" in your message the first time through. 
My comments above apply to GEOM mirroring (gmirror) and not to vinum. I would 
recommend gmirror over vinum for RAID 1, though, as it's much simpler to get 
going and at least as robust.

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


Re: Creating vinum RAID 1 on place

2006-07-07 Thread John Nielsen
On Friday 07 July 2006 00:29, Olivier Nicole wrote:
> Is there a trick on the way to build a vinum RAID 1 without backup-in
> the data first?
>
> I have the two disk that will get mirrored. One of the disk if
> formated as UFS 4.2 and already holds all the data. The second disk is
> blank.
>
> NormallyI should start with 2 blank disks, label them as vinum, create
> the vinum plex, then push the data on that RAID. Is there a way to do
> it without blanking both disk first (a RAID 0 on a single disk, copy
> the data on the RAID 0), label the other disk as vinum and create a
> RAID1?

This is quite possible.  The 100% safe way would be to configure the blank 
disk as the sole member of a (degraded) mirror set, use dump / restore to 
transfer the data from the existing filesystem to the "mirror", then wipe the 
old filesystem and add the original disk to the mirror.

The faster but only 90% safe way would be to "gmirror label" the partition 
containing the existing filesystem and then adding the second disk as a 
member. This is not safe if the last sector of the existing provider (where 
gmirror stores its metadata) is (or could be in the future) used by the 
filesystem. Frequently the geometry works out such that there are spare 
sectors at the end of a partition that are not used by newfs, but if you're 
not sure then don't go this route. See the archives of this and other lists 
for details about this situation.

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


Re: shared library loader configuration

2006-07-07 Thread Giorgos Keramidas
On 2006-07-07 13:22, "[EMAIL PROTECTED]@mgedv.net" <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> can someone give me please a SIMPLE and CLEAR answer, what i exactly
> have to do to achieve the following:
>
> i have (for example) installed a new compiled version of libz.a/.so in
> /usr/local.
>
> i want program (during runtime AND during compilation) to compile and
> run against the NEW and non-system libs.

In short, just don't.

The system programs have been tested, developed and debugged with the
*SYSTEM* version of the libraries.  Blindly replacing these libraries
with others is something you should do only with extreme care.

> what has to be set/changed, to have this setting as soon as the OS
> starts?

LD_LIBRARY_PATH is probably what you mean here.

> i tried running ldconfig, i was playing around with some ld-so.conf
> files, everything failed. the compilation does not even find the new
> libraries, and if i use "ldd" to check what path the lib would use
> it's always /lib or /usr/lib instead of /usr/local/lib.

All the compilers that I have to use for every day work and for my own
stuff have options that can hardcode a 'runtime library path' in the ELF
binary.

What did you try to compile?

What do you mean by writing ``the compilation does not even find the new
libraries''?

> please don't tell me things about RTFM or weblinks

This is also a good way of learning new stuff though :)

> i just need ~3 simple lines of what the hell to do that i get a
> persisting setting for compilations and runtimes

How do you know it is ``3 simple lines''?

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


shared library loader configuration

2006-07-07 Thread [EMAIL PROTECTED]@mgedv.net

hi,

can someone give me please a SIMPLE and CLEAR answer,
what i exactly have to do to achieve the following:

i have (for example) installed a new compiled version
of libz.a/.so in /usr/local.

i want program (during runtime AND during compilation)
to compile and run against the NEW and non-system libs.

what has to be set/changed, to have this setting as soon
as the OS starts?

i tried running ldconfig, i was playing around with some
ld-so.conf files, everything failed. the compilation does
not even find the new libraries, and if i use "ldd" to
check what path the lib would use it's always /lib or
/usr/lib instead of /usr/local/lib.

please don't tell me things about RTFM or weblinks, i just
need ~3 simple lines of what the hell to do that i get
a persisting setting for compilations and runtimes, which
i don't have to e.g. export everytime i want it to work
(talking 'bout LD_LIBRARY_PATH or CFLAGS/LDFLAGS). this
cannot be a good solution, as soon as i start with a clean
environment, there has to be a way to tell the os, MAN load
it from there first!

many thx in advance for not flaming me & telling me how's
it meant to be ;-)


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


Re: unable to mount VCD's

2006-07-07 Thread Fabian Keil
"Arun G Nair" <[EMAIL PROTECTED]> wrote:

>Am unable to mount VCD's on freebsd 6.1. I have a custom kernel.
> When trying to mount it says input/output error. Am trying to copy a
> VCD as i can't play the last part of any vcd. Mplayer always says
> broken frame when it reaches the end. :( I can mount all other data
> CD's.

Like Audio CDs Video CDs have no file system and can't be mounted.

You could copy it with dd or readcd and cdrecord or burncd,
but it's unlikely that it will fix the broken frames. 

You could also try readcd's -c2scan option to see if
the disc itself is ok. 

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Spontaneous reboots with Dell PowerEdge

2006-07-07 Thread Odhiambo Washington
Hi,

I am hoping that someone has come across this weird happening with Dell 
PowerEdge
1800.

We have one such server, with dual power supply, running FreeBSD 4.11-STABLE.

Spontaneously, the server does a hard boot and comes back up. /var/log/messages
only states the previous system shutdown was unexpected. This happens at random
times and is completely unpredictable. We have replaced all the RAM modules
with a completely different set, just to eliminate anything to do with faulty
modules, but this has not cured the problem.

The server has 7 disks on a RAID 5 set. A hard reboot definately calls for a
fsck, which makes the reboot process take forever. I have fsck_y_enable in
rc.conf, because otherwise someone will have to manually run fsck after these
spontaneous reboots!

I am considering a serial console option to see if I can capture 
something, but apart from that I am at my wit's end reagrding this issue.



Here is the output of dmesg.boot:

Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.11-STABLE #12: Thu Apr 20 16:44:32 EAT 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SRV4.x
Timecounter "i8254"  frequency 1193182 Hz
CPU: Intel(R) Xeon(TM) CPU 3.20GHz (3192.22-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf43  Stepping = 3
  
Features=0xbfebfbff
  Hyperthreading: 2 logical CPUs
real memory  = 3757834240 (3669760K bytes)
avail memory = 3658661888 (3572912K bytes)
Preloaded elf kernel "kernel" at 0xc0414000.
Warning: Pentium 4 CPU: PSE disabled
VESA: v2.0, 16384k memory, flags:0x1, mode table:0xc0398502 (122)
VESA: ATI RADEON VE
netsmb_dev: loaded
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 25 entries at 0xc00fb750
npx0:  on motherboard
npx0: INT 16 interface
pcib0:  on motherboard
pci0:  on pcib0
pcib1:  irq 0 at device 2.0 on pci0
pci1:  on pcib1
pcib2:  at device 0.0 on pci1
pci2:  on pcib2
amr0:  mem 0xfe9c-0xfe9f,0xfa0f-0xfa0f 
irq 7 at device 14.0 on pci2
amr0:  Firmware 521X, BIOS H430, 256MB RAM
pcib3:  at device 0.2 on pci1
pci3:  on pcib3
pcib4:  irq 0 at device 3.0 on pci0
pci4:  on pcib4
pcib5:  at device 0.0 on pci4
pci5:  on pcib5
pcib6:  at device 0.2 on pci4
pci6:  on pcib6
pcib7:  irq 0 at device 4.0 on pci0
pci7:  on pcib7
pcib8:  irq 0 at device 5.0 on pci0
pci10:  on pcib8
pcib9:  at device 0.0 on pci10
pci11:  on pcib9
em0:  port 0xdcc0-0xdcff 
mem 0xfe4e-0xfe4f irq 11 at device 7.0 on pci11
em0:  Speed:N/A  Duplex:N/A
pcib10:  at device 0.2 on pci10
pci12:  on pcib10
em1:  port 0xccc0-0xccff 
mem 0xfe2e-0xfe2f irq 11 at device 8.0 on pci12
em1:  Speed:N/A  Duplex:N/A
pcib11:  irq 0 at device 6.0 on 
pci0
pci13:  on pcib11
uhci0:  port 0x9ce0-0x9cff irq 11 at 
device 29.0 on pci0
usb0:  on uhci0
usb0: USB revision 1.0
uhub0: 2 ports with 2 removable, self powered
uhci1:  port 0x9cc0-0x9cdf irq 10 at 
device 29.1 on pci0
usb1:  on uhci1
usb1: USB revision 1.0
uhub1: 2 ports with 2 removable, self powered
uhci2:  port 0x9ca0-0x9cbf irq 7 at 
device 29.2 on pci0
usb2:  on uhci2
usb2: USB revision 1.0
uhub2: 2 ports with 2 removable, self powered
pci0:  at 29.7 irq 3
pcib12:  at device 30.0 on pci0
pci16:  on pcib12
pci16:  at 13.0 irq 7
isab0:  at device 31.0 on pci0
isa0:  on isab0
atapci0:  port 
0xfc00-0xfc0f,0-0x3,0-0x7,0-0x3,0-0x7 irq 0 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
orm0:  at iomem 
0xc-0xcafff,0xcb000-0xcbfff,0xcc000-0xccfff,0xec000-0xe on isa0
pmtimer0 on isa0
fdc0:  at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0:  at port 0x60,0x64 on isa0
atkbd0:  flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0:  irq 12 on atkbdc0
psm0: model IntelliMouse Explorer, device ID 4
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
sc0:  at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
uhub3: 2 ports with 2 removable, self powered
IP packet filtering initialized, divert enabled, rule-based forwarding enabled, 
default to accept, logging limited to 100 packets/entry by default
acd0: CDROM  at ata0-master PIO4
amrd0:  on amr0
amrd0: 839400MB (1719091200 sectors) RAID 5 (optimal)
pass0 at amr0 bus 0 target 6 lun 0
pass0:  Fixed Processor SCSI-2 device 
Mounting root from ufs:/dev/amrd0s1a



-Wash

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

DISCLAIMER: See http://www.wananchi.com/bms/terms.php

--
+==+
|\  _,,,---,,_ | Odhiambo Washington<[EMAIL PROTECTED]>
Zzz /,`.-'`'-.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '-

Re: Conflict between avahi and howl/mDNSResponder

2006-07-07 Thread dick hoogendijk
On 07 Jul Willy Picard wrote:
> On Thu, Jul 06, 2006 at 09:55:11PM +1000, Sam Lawrance wrote:
> > This has been raised a number of times, check the archives.
> 
> First, thank you very much for this very interesting contribution!!!
> This is a real good piece of help!

A little ironic here are you?
 
> For those that still have the avahi+howl+mDNSResponder conflict, here
> is a way to turnaround the problem:
> 
> 1) Remove the /var/db/ports/avahi/options file if you have one
> 2) Run the following command: portupgrade -o net/avahi -f howl
> 3) When the option page appears, DO NOT enable the mDNSResponder
> compatibility 
> 4) Run the following command: portupgrade -f avahi

Why do you quote pieces from /usr/ports/UPDATING ?
You'r supposed to read that file /everytime/ you upgrade your ports.
If you had done so, you wouldn't have asked the question to begin with.
The first reaction "..raised a number of times.." was quite a friendly
way of saying: READ THAT FILE (imho).

-- 
dick -- http://nagual.nl/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 6.1 ++ The Power to Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: some strange strtod behaviour, please help

2006-07-07 Thread Pietro Cerutti

On 7/7/06, O. Hartmann <[EMAIL PROTECTED]> wrote:

Pietro Cerutti wrote:
> On 7/7/06, O. Hartmann <[EMAIL PROTECTED]> wrote:
>> Hello out here,
>> sorry bothering you with some standard issues ...
>>
>> I ran into trouble with a routine from .
>
> No, from stdlib.h
>
> man strtod says:
> SYNOPSIS
> #include 
>
>
>> #include 
>> #include 
>> #include 
>
> #include  will solve your problems...
>


Yes, it does.
Thanks ...
I wonder why the compiler did not moan about a unknow call ...


Because it could be an error or not, depending on what standard are you using.
In C89 a function without a prototype is implicitly declared.
This is not true if your're working in C99.


Using cc with -Wimplicit as option will show you warnings about
implicit function declarations..

Using cc with -Wall as option is usually good practice



Thnaks a lot,
oh




--
Pietro Cerutti
ICQ: 117293691
PGP: 0x9571F78E

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: some strange strtod behaviour, please help

2006-07-07 Thread O. Hartmann

Pietro Cerutti wrote:

On 7/7/06, O. Hartmann <[EMAIL PROTECTED]> wrote:

Hello out here,
sorry bothering you with some standard issues ...

I ran into trouble with a routine from .


No, from stdlib.h

man strtod says:
SYNOPSIS
#include 



#include 
#include 
#include 


#include  will solve your problems...




Yes, it does.
Thanks ...
I wonder why the compiler did not moan about a unknow call ...

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


Re: some strange strtod behaviour, please help

2006-07-07 Thread Pietro Cerutti

On 7/7/06, O. Hartmann <[EMAIL PROTECTED]> wrote:

Hello out here,
sorry bothering you with some standard issues ...

I ran into trouble with a routine from .


No, from stdlib.h

man strtod says:
SYNOPSIS
#include 



#include 
#include 
#include 


#include  will solve your problems...

--
Pietro Cerutti
ICQ: 117293691
PGP: 0x9571F78E

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


sync time of FreshPorts

2006-07-07 Thread Pietro Cerutti

Hi list,
lately I often have problems with ports version consistency between my
tree and FreshPorts.
I update my port tree with portsnap, here are some examples:

my tree: ethereal-0.99.0_3
FreshPort: ethereal 0.99.0_2

my tree: fusefs-libs-2.5.3
FreshPort: fusefs-libs 2.5.2_1

So, how much time does it takes to sync FreshPorts with the cvs master server?
I'm wondering why it doesn't go instantaneously

Cheers,


--
Pietro Cerutti
ICQ: 117293691
PGP: 0x9571F78E

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


some strange strtod behaviour, please help

2006-07-07 Thread O. Hartmann

Hello out here,
sorry bothering you with some standard issues ...

I ran into trouble with a routine from .
Trying to convert strings tokenized via strsep() to doubles lead me into 
unsolvable problems. This is an example piece of code taken from an 
exercise page (my own code looks similar, but this simple code reveals 
also the oddity of strtod or my oddity in thoughts):


#include 
#include 
#include 


void
main(void) {

  char  *s,**p;
  float dx;
  int   i;

  s = (char *) malloc(256 * sizeof(char));
  strncpy(s,"1.234y",strlen("1.234y"));
  p = NULL;

  dx = strtod(s,p);

  i = 0,

  printf("String is: %s, Double is %#.G.\n",s,dx);
  printf("s[%i] is %c.\n",i,s[i]);

}


On my box (FreeBSD 6.1-STABLE, Intel i386, P4 3.0GHz, HTT enabled) at 
lab, compiling this with gcc (standard settings as taken from make.conf) 
results in weird behaviour, this also occurs on my home's box (also 
FreeBSD 6.1-STABLE, but AMD64).


I also tried to give **p memory via malloc to see to what it points 
after strtod() has been called, but not success.


The odd thing is, that I always given bad results like this:

./test
String is: 1.234y, Double is -9.E+08.
s[0] is 1.

The row "printf("s[%i] is %c.\n",i,s[i]);" is only for some testing 
purposes to see what the initial portion of the string that is about to 
be converted may be.


Ok, maybe I misunderstodd things. As I read the manpage, a string 
pointed to by *s  containing digits, exponential sign and + or - is 
converted into a double returned by strtod(). If **p isn't the NULL 
pointer, it points to the first character couln't be a part of a number. 
In other words, I do not need to know what it is if s points to a legal 
number like in the example above.


What is going wrong?

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


Re: FreeBSD 6.0 compat with DL320 G4

2006-07-07 Thread William

dual port.

Regards,

Will

On 07/07/06, Ted Mittelstaedt <[EMAIL PROTECTED]> wrote:

If it works then let it alone.

What model of PT card did you get?  The single-port one?

Ted

- Original Message -
From: "William" <[EMAIL PROTECTED]>
To: "Ted Mittelstaedt" <[EMAIL PROTECTED]>
Cc: "Antony Mawer" <[EMAIL PROTECTED]>;

Sent: Wednesday, July 05, 2006 11:26 PM
Subject: Re: FreeBSD 6.0 compat with DL320 G4


> Thanks Ted,
>
> Server got here, FreeBSD 6.1 went on easy as you like and then I
> installed the intel card when it got here... I havent had to recompile
> a thing and its detected the card fine. I've appied an IP address,
> cvsup/install a few ports without any issues..
>
>
> dmesg goodness:
> em0:  port
> 0x4000-0x401f mem 0xfdee-0xfdef,0xfdec-0xfded irq 16
> at device 0.0 on pci2
> em0: Ethernet address: 00:15:17:0b:e6:18
> em1:  port
> 0x4020-0x403f mem 0xfdea-0xfdeb,0xfde8-0xfde9 irq 17
> at device 0.1 on pci2
> em1: Ethernet address: 00:15:17:0b:e6:19
>
> Should I grab the latest copy of the driver (off intel's website) and
> recompile anyway?
>
> Cheers,
>
> Will
>
>
> On 06/07/06, Ted Mittelstaedt <[EMAIL PROTECTED]> wrote:
> >
> > Go here:
> >
> > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/em/
> >
> > click on the file you want.  You will probably need all the files there
> > other than LICENSE and README
> >
> > right-click download, save to disk, copy to your running freebsd system,
> > from that system copy to freebsd-formatted floppy disk, unmount floppy
disk,
> > take disk to dl320, mount disk, copy to /usr/src/sys/dev/em/ and
recompile
> > the kernel.
> >
> > Ted
> >
> > - Original Message -
> > From: "William" <[EMAIL PROTECTED]>
> > To: "Ted Mittelstaedt" <[EMAIL PROTECTED]>
> > Cc: "Antony Mawer" <[EMAIL PROTECTED]>;
> > 
> > Sent: Tuesday, July 04, 2006 2:47 AM
> > Subject: Re: FreeBSD 6.0 compat with DL320 G4
> >
> >
> > > Ted,
> > >
> > > Apoligises for being difficult, I must be suffering from my super
> > > early mornings and information overload.
> > >
> > > Thank you for explaining it, my dealer has picked up on the fact that
> > > I'll require the PT instead of MT card that I suggested.
> > >
> > > Thanks again for your help, what would be the best way of grabbing the
> > > latest driver for em for the 1000PT card?
> > >
> > > Regards,
> > >
> > > Will
> > >
> > > On 04/07/06, Ted Mittelstaedt <[EMAIL PROTECTED]> wrote:
> > > > I think your trying to second-guess very simple instructions and
making
> > > > things very
> > > > hard for yourself.  I'll try to explain one last time then I'll
throw my
> > > > hands up in
> > > > the air
> > > >
> > > > The HP DL320 G4 slots, whether PCI-X or PCI Express, to be
accessible,
> > > > MUST USE A RISER CARD.  HP has TWO different riser cards available.
> > > >
> > > > BOTH riser cards have TWO slots, a half-height and a full height.
> > > >
> > > > The first riser card has a half-height PCI-Express slot, and a
> > full-height
> > > > PCI Express slot.  This is the riser card that is supplied by the
> > factory
> > > > and it comes with the server.
> > > >
> > > > The second riser card is OPTIONAL and it contains a half-height
> > > > PCI-Express slot and a full-height PCI-X slot.  It REPLACES the
> > > > factory-supplied riser card, if you use it.
> > > >
> > > >
> > > > The Intel MT card is a PCI-X card.  It will not fit in a PCI Express
> > slot.
> > > > It
> > > > works with FBSD 6.1
> > > >
> > > > The Intel PT card is a PCI Express card.  It will not fit in a PCI-X
> > slot.
> > > > It does not work with FBSD 6.1 unless you load the driver.
> > > >
> > > > You can either do ONE of the following:
> > > >
> > > > 1) Use the Intel MT card with the optional HP PCI-X riser card.
This
> > works
> > > > out
> > > > of box with FBSD 6.1
> > > >
> > > > 2) Use the Intel PT card with the HP riser card that ships with the
> > server.
> > > > This DOES
> > > > NOT work out of the box with FBSD 6.1  You MUST load the current
driver
> > for
> > > > this to work.
> > > >
> > > > You CANNOT USE the MT card with the riser card that ships with the
> > server.
> > > >
> > > > You CANNOT use a low-profile PCI-X card because the optional PCI-X
> > > > riser card DOES NOT HAVE a low profile PCI-X slot.  It has a
standard
> > > > height PCI-X slot ONLY.
> > > >
> > > > Incidentally the fact that your HP dealer cannot apparently explain
this
> > to
> > > > you pretty much means YOUR HP DEALER SUCKS THE BIG WEENIE.
> > > >
> > > > Ted
> > > >
> > > > - Original Message -
> > > > From: "William" <[EMAIL PROTECTED]>
> > > > To: "Ted Mittelstaedt" <[EMAIL PROTECTED]>
> > > > Cc: "Antony Mawer" <[EMAIL PROTECTED]>;
> > > > 
> > > > Sent: Monday, July 03, 2006 11:05 PM
> > > > Subject: Re: FreeBSD 6.0 compat with DL320 G4
> > > >
> > > >
> > > > > Ok, I think its best I just order a Intel MT card with the low
profile
> > > > > PCI-X adapter instead of flapping about with these riser cards and
> > >

Re: FreeBSD 6.0 compat with DL320 G4

2006-07-07 Thread Ted Mittelstaedt
If it works then let it alone.

What model of PT card did you get?  The single-port one?

Ted

- Original Message - 
From: "William" <[EMAIL PROTECTED]>
To: "Ted Mittelstaedt" <[EMAIL PROTECTED]>
Cc: "Antony Mawer" <[EMAIL PROTECTED]>;

Sent: Wednesday, July 05, 2006 11:26 PM
Subject: Re: FreeBSD 6.0 compat with DL320 G4


> Thanks Ted,
>
> Server got here, FreeBSD 6.1 went on easy as you like and then I
> installed the intel card when it got here... I havent had to recompile
> a thing and its detected the card fine. I've appied an IP address,
> cvsup/install a few ports without any issues..
>
>
> dmesg goodness:
> em0:  port
> 0x4000-0x401f mem 0xfdee-0xfdef,0xfdec-0xfded irq 16
> at device 0.0 on pci2
> em0: Ethernet address: 00:15:17:0b:e6:18
> em1:  port
> 0x4020-0x403f mem 0xfdea-0xfdeb,0xfde8-0xfde9 irq 17
> at device 0.1 on pci2
> em1: Ethernet address: 00:15:17:0b:e6:19
>
> Should I grab the latest copy of the driver (off intel's website) and
> recompile anyway?
>
> Cheers,
>
> Will
>
>
> On 06/07/06, Ted Mittelstaedt <[EMAIL PROTECTED]> wrote:
> >
> > Go here:
> >
> > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/em/
> >
> > click on the file you want.  You will probably need all the files there
> > other than LICENSE and README
> >
> > right-click download, save to disk, copy to your running freebsd system,
> > from that system copy to freebsd-formatted floppy disk, unmount floppy
disk,
> > take disk to dl320, mount disk, copy to /usr/src/sys/dev/em/ and
recompile
> > the kernel.
> >
> > Ted
> >
> > - Original Message -
> > From: "William" <[EMAIL PROTECTED]>
> > To: "Ted Mittelstaedt" <[EMAIL PROTECTED]>
> > Cc: "Antony Mawer" <[EMAIL PROTECTED]>;
> > 
> > Sent: Tuesday, July 04, 2006 2:47 AM
> > Subject: Re: FreeBSD 6.0 compat with DL320 G4
> >
> >
> > > Ted,
> > >
> > > Apoligises for being difficult, I must be suffering from my super
> > > early mornings and information overload.
> > >
> > > Thank you for explaining it, my dealer has picked up on the fact that
> > > I'll require the PT instead of MT card that I suggested.
> > >
> > > Thanks again for your help, what would be the best way of grabbing the
> > > latest driver for em for the 1000PT card?
> > >
> > > Regards,
> > >
> > > Will
> > >
> > > On 04/07/06, Ted Mittelstaedt <[EMAIL PROTECTED]> wrote:
> > > > I think your trying to second-guess very simple instructions and
making
> > > > things very
> > > > hard for yourself.  I'll try to explain one last time then I'll
throw my
> > > > hands up in
> > > > the air
> > > >
> > > > The HP DL320 G4 slots, whether PCI-X or PCI Express, to be
accessible,
> > > > MUST USE A RISER CARD.  HP has TWO different riser cards available.
> > > >
> > > > BOTH riser cards have TWO slots, a half-height and a full height.
> > > >
> > > > The first riser card has a half-height PCI-Express slot, and a
> > full-height
> > > > PCI Express slot.  This is the riser card that is supplied by the
> > factory
> > > > and it comes with the server.
> > > >
> > > > The second riser card is OPTIONAL and it contains a half-height
> > > > PCI-Express slot and a full-height PCI-X slot.  It REPLACES the
> > > > factory-supplied riser card, if you use it.
> > > >
> > > >
> > > > The Intel MT card is a PCI-X card.  It will not fit in a PCI Express
> > slot.
> > > > It
> > > > works with FBSD 6.1
> > > >
> > > > The Intel PT card is a PCI Express card.  It will not fit in a PCI-X
> > slot.
> > > > It does not work with FBSD 6.1 unless you load the driver.
> > > >
> > > > You can either do ONE of the following:
> > > >
> > > > 1) Use the Intel MT card with the optional HP PCI-X riser card.
This
> > works
> > > > out
> > > > of box with FBSD 6.1
> > > >
> > > > 2) Use the Intel PT card with the HP riser card that ships with the
> > server.
> > > > This DOES
> > > > NOT work out of the box with FBSD 6.1  You MUST load the current
driver
> > for
> > > > this to work.
> > > >
> > > > You CANNOT USE the MT card with the riser card that ships with the
> > server.
> > > >
> > > > You CANNOT use a low-profile PCI-X card because the optional PCI-X
> > > > riser card DOES NOT HAVE a low profile PCI-X slot.  It has a
standard
> > > > height PCI-X slot ONLY.
> > > >
> > > > Incidentally the fact that your HP dealer cannot apparently explain
this
> > to
> > > > you pretty much means YOUR HP DEALER SUCKS THE BIG WEENIE.
> > > >
> > > > Ted
> > > >
> > > > - Original Message -
> > > > From: "William" <[EMAIL PROTECTED]>
> > > > To: "Ted Mittelstaedt" <[EMAIL PROTECTED]>
> > > > Cc: "Antony Mawer" <[EMAIL PROTECTED]>;
> > > > 
> > > > Sent: Monday, July 03, 2006 11:05 PM
> > > > Subject: Re: FreeBSD 6.0 compat with DL320 G4
> > > >
> > > >
> > > > > Ok, I think its best I just order a Intel MT card with the low
profile
> > > > > PCI-X adapter instead of flapping about with these riser cards and
> > > > > then just use 6-stable. All getting quite confusing.
> > > > >
> > > > > On 04/07

Re: HP Officejet Printer

2006-07-07 Thread Ted Mittelstaedt

- Original Message - 
From: "dick hoogendijk" <[EMAIL PROTECTED]>
To: "freebsd-questions" 
Sent: Thursday, July 06, 2006 8:53 AM
Subject: Re: HP Officejet Printer


> On 05 Jul Ted Mittelstaedt wrote:
> > 
> > http://www.linuxprinting.org/show_printer.cgi?recnum=HP-OfficeJet_4300
> > 
> > "...these printers are supported by the "hpijs" driver beginning from
> > version 1.3. The driver supports resolutions only up to 600 dpi, head
> > alignment settings stored in the printer are not made use of, so use a
> > one-cartridge (CMY) printing mode in case of mis-alignments"
> > 
> > "perfectly"?
>  
> > - Original Message - 
> > From: "dick hoogendijk" <[EMAIL PROTECTED]>
> > > This printer works perfectly with apsfilter. The latter does /not/
> > > need cups (luckely imho) but works very well with the standard unix
> > > lpd.
> 
> OK, the definition for perfectly does not agree with my statement.
> Otoh, my laserjet uses 600dpi and that is (for normal use) quite good.
> If I need higher qualities I use a printshop.
> As I understood the OP is a home user and in that sence 600dpi is ok.
> As for the heads: you have a point there.
> I could live with that and would buy a one-head-cartridge though;-)
> 
> And, most importantly (to me), NO cups ;-)
> 

Yeah, they are uncomfortable things to wear, aren't they? ;-)

A long time ago I posted instructions to the list on how to replace
cups with lpr, given -any- printer, -any- driver.  What I have observed
is the prevelance of the use of cups in the online guides for hooking
up printers is because most people writing most of those guides out
there really don't understand how all the programs interrelate with
each other, and are merely copying other people's guides in how
to set the things up.

Just about all the online printer setup guides that use cups in the
examples are tracable back to the instructions for setting up a printer
in gnome, on a Linux box where the distribution had gnome 
preinstalled, since cups is also preinstalled.

All cups does is muck with config files, it does not actually do
any conversion.  The engines that do the heavy lifting are
ghostscript, which either converts postscript input direct to
printerspeak, for the limited number of drivers compiled into
it, or converts it to an intermediate format that is massaged
by gimpprint, or the manufacturers driver (ie: hp's driver for
example) into the printerspeak needed by the particular printer
model.  You do not need cups, or apsfilter for that matter, to
plug the engines into each other.

The other thing that is often missed is that for printers like the
Epson stylus c84 that I have, or the officejet that the OP has,
to get from postscript into the gross muck that these winprinters
can understand, takes a huge amount of CPU cycles for anything
complex.  Pentium systems under 1Ghz need not apply.

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


Re: Unable to boost maxusers in custom kernel.

2006-07-07 Thread Kevin Kinsey

Worth Bishop wrote:
Running FreeBSD 4.3 (I know - upgrade on the way, but would like to know 
what's going on here for future ref), on AMD Athlon MP 1600 (1393.79-MHz 
686-class CPU) with 1.5 Gb RAM. Ran up against 'too many files' problem, 
dropped packets, maxing out mbuf's, proc files, etc.


Attempted to compile custom kernel based on GENERIC only by changing 
maxusers from 32 to (first) 512, then 256, then 128. No matter what, 
system rebooted with 32 maxusers, 4096 mbugs, 1024 max mbuf clusters, 
1024 maxfiles. Can reset maxfiles via sysctl, but why won't maxusers stick?


Have tried building both with:

#  /usr/sbin/config MYKERNEL
#  cd ../../comple/MYKERNEL
#  make depend
#  make
#  make install
#  reboot

and with

#  cd /usr/src
#  make buildkernel KERNCONF=MYKERNEL
#  make installkernel KERNCONF=MYKERNEL
#  reboot

No discernable error messages.

What am I missing?



First, I guess, be sure that it's using the file
you're specifying.

Next, hmm, per the Handbook, have you tried "0" (to let
the system "auto-tune" itself?)

That said, after 4.5*, you can set this variable in
/boot/loader.conf ... I've no idea ATM whether or not
this behavior was "MFC'ed" back into your code stream
or not ... (surely you're not running 4.3 UNPATCHED)
you may wish to check /boot/defaults/loader.conf for
evidence of this theory, and, if you find it, give that
a try as well.


HTH,

Kevin Kinsey

*This information isn't in the handbook (I don't think ...
I sent a doc PR a day or two ago on it due to a post
here by someone who was having troubles in the same
area, I guess...).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


'unregistered_only' in natd does not work?

2006-07-07 Thread BigBrother-{BigB3}





Summary: NATD translates source addresses even though it should not because 
unregistered_only is set and the IPs do not belong to RFC 1918 (like 
192.168)










Hi List,

I have a very strange problem in my

FreeBSD bigb3 6.1-STABLE FreeBSD 6.1-STABLE #0: Tue Jun  6


I am using the ftpd with inetd.
I have specified via sysctl  IP_PORTRANGE_DEFAULT and  IP_PORTRANGE_HIGH

net.inet.ip.portrange.first: 49152
net.inet.ip.portrange.last: 65535
net.inet.ip.portrange.hifirst: 49152
net.inet.ip.portrange.hilast: 65535


and I have opened my ipfw firewall for these ranges.



In natd.conf I am using:
same_ports  yes
unregistered_only   yes
use_sockets yes
log_denied  yes
interface   vr0


and I am using ipfw with
$fwcmd add 15000 divert natd   all from any to any via $oif



* T H E   P R O B L E M **


I have trouble making a passive ftp connection to work, because 
every time natd changed source port even though it should not. Sometimes it 
changes within the IP_PORTRANGE_DEFAULT but sometimes it changes it to 
something completely irrelevant like 3


The verbose log of natd shows this:

Out {default}  [TCP] 193.92.?:55211 -> 193.92.:3866 aliased to
   [TCP] 193.92.??:37962 -> 193.92.?:3866


Thus it shows that the outside IP and port (55211) in the source field was 
changed to another source port (37962), even though this is not required. 
My IPFW denies ports lowers than 49152 and thus it drops this and logs 
that this packets was denied.





Can you help me please of how to either

1) instruct natd NOT to translate ports if it is not required 
(unregistered_only seems that it does not work)


or,

2) instruct natd to translate ports which belong to either 
IP_PORTRANGE_DEFAULT  or another defined portrange?




Thank you very very much in advance,



Best Regards,

BB





p.s. After searching the freebsd bugs database I found
Problem Report bin/77089 : /sbin/natd: natd ignores -u with passive FTP
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/77089, which seems similar.

Any clues except re-arranging the firewall rules, as the author of the 
previous post suggests?






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


BSD::Resource and getrusage(2)

2006-07-07 Thread Philip M. Gollucci
Hi, I'm trying do determine the units for one of the fields returned by 
getrusage(2)

man page on 6.0-RELEASE-p5 says this:
2 maxrss maximum shared memory or current resident set
3 ixrss integral shared memory

ru_ixrss
an ``integral'' value indicating the amount of memory used
by the text segment that was also shared among other pro-
cesses. This value is expressed in units of

kilobytes * ticks-of-execution.

Ticks are statistics clock ticks.
The statistics clock has a frequency of sysconf(_SC_CLK_TCK)


which to me implies thats in kilobytes, but to the contrary, we have the 
following

CPAN rt: https://rt.cpan.org/Ticket/Display.html?id=18230
I'll paste the import part of this here so you don't have to follow the link

>ApacheSizeLimit on bsd systems uses BSD::Resource to get the memory and
>shared-pages size.
>   sub bsd_size_check {
>   return (&BSD::Resource::getrusage())[2,3];
>   }

I also have a local test based on the recent Apache::SizeLimit work from Dave 
Rolsky
where

maxrss > ixrss
(Apache-Test output snipped)
# '14124' maxrss
# >
# '52080' ixrss

I tried looking in src/sys/kern/kern_resource.c but I didn't find anything that 
told me the units.

My inkling is the documentation is WRONG.

Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

"In all that I've done wrong I know I must have done something right to
deserve a hug every morning and butterfly kisses at night."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: jail login and replication problems

2006-07-07 Thread Chad Leigh -- Shire.Net LLC


On Jul 7, 2006, at 12:41 AM, Philippe Lang wrote:


[EMAIL PROTECTED] wrote:


Hi Dan,

Did you ever find a solution to this problem? I've had the
exact same problem, and have tried various different things
to resolve it... all to no avail. It's really annoying have
to remake the jail from scratch every time, as I'd much
rather do the configuration once, and use it as a
cookie-cutter for future jails.


Hi,

For duplicating jail, use the utility called "cpdup". Tar does not  
work for this.


Why not?  I use it (though in a modified way -- I tar a base jail  
without /bin /usr etc but with /etc etc and then I use nullfs mounts  
to duplicate one base jail install.


But my /etc in each jail is copied with tar (as is a bunch of stuff  
including the base / with dirs for usr bin sbin etc) and it works


Chad




Bye

Philippe


Patrick

On 7/26/05, Dan Rue <[EMAIL PROTECTED]> wrote:

Greetings,

I am setting up multiple jails on a machine.  The first jail,
everything works fine.  If I add a user, that user can log in.  If I
tar cvzpf the jail, tar xvzpf to create a new one, some people can
log into the new jail, and some can not.

The user that can log in to the new one was the first user created
(me), but any subsequent users can not log into new jails..

The symptom is right after accepting the password via ssh, the
connection will just get dropped.  I could not find any good error
messages using ssh..  But if I enable telnet and try to telnet in, I
receive this error in /var/log/messages:

Jul 26 16:11:46 jail3 login: _secure_path: cannot stat
/home/user3/.login_conf: Permission denied Jul 26 16:11:46 jail3
login: _secure_path: cannot stat /etc/login.conf: Permission denied
Jul 26 16:11:46 jail3 login: _secure_path: cannot stat
/home/user3/.login_conf: Permission denied Jul 26 16:11:46 jail3
login: _secure_path: cannot stat /etc/login.conf: Permission denied

The permissions on those files are fine.

So what would cause that error in jails that have been replicated
using tar, but only to some users?  I'm stumped..

Here's my rc.conf exerpt:

jail_enable="YES"
jail_list="jail3"
jail_socket_unixiproute_only="NO"
jail_sysvipc_allow="YES"  # allow shared mem on all jails

jail_jail3_rootdir="/jails/jail3"
jail_jail3_hostname="jail3.example.com"
jail_jail3_ip="10.0.0.203"
jail_jail3_procfs_enable="YES"
jail_jail3_devfs_enable="YES"
jail_jail3_devfs_ruleset="devfsrules_jail"

tia,
Dan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to

"[EMAIL PROTECTED]"



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



---
Philippe Lang
Attik System



---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



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