Putting FreeBSD to sleep?

2006-05-12 Thread Graham Bentley
Can anyone post some good pointers for setting
up ACPI or APM so that I get automatic susepend
afer x mins of inactivity and woken up on LAN
request ?

(in particular shut down disc / slow or shut
down psu fan - its the noise I am concerned
about)

I have looked at posts on rc.suspend/resume
for various power saving issues on laptops
but cant find and good resources on how to
do the above. Surely this must have been
done before by someone with a remote server
in a secret location :)

Thanks in advance for any advice :)

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


Console image viewer

2006-05-12 Thread Steve P.

Anyone know of a decent jpg viewer for the console?

I don't want to install X.

Thanks.

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


Re: Security / kernel message interpretations please !

2006-05-12 Thread Dan Nelson
In the last episode (May 13), Graham Bentley said:
> I posted about this a few days ago and its appeared again in my
> security log (the backup routine log appears to be fine)
> 
> +(sa0:ahc0:0:6:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 0 0 0 0 0 
> +(sa0:ahc0:0:6:0): CAM Status: SCSI Status Error
> +(sa0:ahc0:0:6:0): SCSI Status: Check Condition
> +(sa0:ahc0:0:6:0): UNIT ATTENTION asc:28,0
> +(sa0:ahc0:0:6:0): Not ready to ready change, medium may have changed
> +(sa0:ahc0:0:6:0): Unretryable error
> 
> I have googled about and there is some suggestion that a
> change of tape may cure this ie using DDS4 tapes rather
> than DDS3 in a DDS4 drive. I also read about "Vendor
> Specific ASCQ" but it was beyond me. I am going to leave
> the same tape in and see if its repeated at tonites backup.

I believe you'll get a UNIT ATTENTION on every media load; it's just
how SCSI drivers work.  Not sure why it's getting logged to the
console, though.

-- 
Dan Nelson
[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: I keep having wrong checksum in 6.1 iso download (what should I do??)

2006-05-12 Thread Nick Withers
On Fri, 12 May 2006 21:51:02 -0700 (PDT)
Mark Jayson Alvarez <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> It was my second time to download a 6.1 iso from one
> of the regional ftp sites.. Lucky we have a slightly
> fast connection (155Mbps)...

Slightly fast? What do you call fast? :-)

> By the way, is it really dangerous to ignore these checksums
> that doesn't match with the published one? What's the reason
> behind this bad checksum mismatch??.

It generally indicates that the file was corrupted during
transmission. It could, however, happen because the site you're
downloading from is serving a corrupt version.

A checksum mismatch basically indicates that the file is not as
it should be. You may still be able to use it without any
adverse impact, but then again, you may not. It's also possible
that someone has intentionally corrupted the file for sinister
purposes.

I'd strongly recommend not using it. It's probably worth trying
to download the file again, from another mirror.

> Thanks

-- 
Nick Withers
email: [EMAIL PROTECTED]
Web: http://www.nickwithers.com
Mobile: +61 414 397 446
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Security / kernel message interpretations please !

2006-05-12 Thread Graham Bentley

I posted about this a few days ago and its appeared again
in my security log (the backup routine log appears to be
fine)

+(sa0:ahc0:0:6:0): PREVENT ALLOW MEDIUM REMOVAL. CDB: 1e 0 0 0 0 0 
+(sa0:ahc0:0:6:0): CAM Status: SCSI Status Error
+(sa0:ahc0:0:6:0): SCSI Status: Check Condition
+(sa0:ahc0:0:6:0): UNIT ATTENTION asc:28,0
+(sa0:ahc0:0:6:0): Not ready to ready change, medium may have changed
+(sa0:ahc0:0:6:0): Unretryable error

I have googled about and there is some suggestion that a
change of tape may cure this ie using DDS4 tapes rather
than DDS3 in a DDS4 drive. I also read about "Vendor
Specific ASCQ" but it was beyond me. I am going to leave
the same tape in and see if its repeated at tonites backup.

If this isnt something serious I will ignore it and go
away however I am curious and would really like to know
why :) (never stop asking...there are no stupid questions etc)

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


Re: Dead tree documentation

2006-05-12 Thread Michael M.

Chris Hill wrote:

On Fri, 12 May 2006, Michael M. wrote:

[snip]

Any thoughts, advice, pointers?  Anything I missed, especially any 
general UNIX books that might go well with one of the above?


As for general un*x books that are not FreeBSD-specific, the single best 
one I've used is _Essential_System_Administration_ by Aeleen Frisch. As 
a newbie I found this book enormously helpful and well worth having. 
It's published by O'Reilly, and almost certainly available from Amazon 
or your local geeky bookstore if you're fortunate enough to have one.



Thanks for the tip, I will look it up.

--
Michael M. ++ Portland, OR ++ USA
"No live organism can continue for long to exist sanely under conditions 
of absolute reality; even larks and katydids are supposed, by some, to 
dream." --S. Jackson

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


Re: Dead tree documentation

2006-05-12 Thread Michael M.

David Stanford wrote:



"The Complete FreeBSD, 4th Ed." by Greg Lehey and "Absolute BSD" by
Michael Lucas are fantastic books, but are, unfortunately, a little
outdated. "BSD Hacks" is also an extremely useful book, but aimed more
at administrators looking to learn a few tricks of the trade. My
suggestion would be to wait another week or two when "FreeBSD 6
Unleashed" by Brian Tiemann" is released as it will be the most
thorough and up-to-date book out there.


Well, d'oh ... I didn't even notice that "Unleashed" was not yet 
released!  Yeah, I'd say that is the one to buy, then, but I'll probably 
go ahead and get Lehey's book as well just to have it, as it is so well 
regarded.




Have you tried PC-BSD? It also installs defaulted with KDE, which I
also am not a fan of, but is really a great fork and looks to have a
bright future ahead.

http://www.pcbsd.org


No, I thought I'd go for DesktopBSD because it seemed, from what I could 
tell, to be more compatible with FreeBSD -- at least, in the sense that 
it doesn't introduce a new element to package/port updating and 
upgrading.  But I've read more about PC-BSD and its .pbi system in the 
past few days owing to its recent release, and it does sound interesting 
and worth taking a look at.  I know some people are skeptical about the 
whole .pbi thing because of the library duplication, and perhaps other 
concerns that go over my head.  I'm not really sure how big a drawback 
that is, given that disc space is rarely an issue for people anymore. 
It's not an issue for me, anyway.  There might be a potential for 
conflicts, though, and I wonder about the possibility of dueling 
packaging systems causing a problem if you're not careful.  Still, it 
can't hurt to check it out, especially as I'm gonna be waiting a bit for 
the book anyway.



--
Michael M. ++ Portland, OR ++ USA
"No live organism can continue for long to exist sanely under conditions 
of absolute reality; even larks and katydids are supposed, by some, to 
dream." --S. Jackson

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


I keep having wrong checksum in 6.1 iso download (what should I do??)

2006-05-12 Thread Mark Jayson Alvarez
Hi,

It was my second time to download a 6.1 iso from one
of the regional ftp sites.. Lucky we have a slightly
fast connection (155Mbps)... By the way, is it really
dangerous to ignore these checksums that doesn't match
with the published one? What's the reason behind this
bad checksum mismatch??.

Thanks

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Dead tree documentation

2006-05-12 Thread Michael M.

Kevin Kinsey wrote:

Michael M. wrote:
I've been using various Linux distros and OS X for a while now, and 
Windows before those, and am interested in trying out FreeBSD.  Call 
me old fashioned, but as an engaged-but-non-technical user, I find it 
really useful to have at least some accompanying documentation in book 
form when embarking on something like this.  Okay, forget 
"old-fashioned," just call me "old."  :-)  Book-learnin' was the only 
thing we had when I was a yung-un, and it's what I'm used to.


I understand that the be-all-and-end-all of authoritative FreeBSD 
reference is the online handbook (and, of course, the man pages and 
docs included with the OS itself).  I was wondering if more 
experienced users could give me a few pointers about the best book 
supplements for delving into this OS.  Specifically, I'm looking for 
advice about what might be too outdated to be useful (or worse, might 
end up being more confusing than helpful) and what isn't.  From 
looking around and lurking here for a while, the books that look most 
promising to me are:


"The Complete FreeBSD, 4th Ed." by Greg Lehey
"FreeBSD 6 Unleashed" by Brian Tiemann
"Absolute BSD" by Michael Lucas
"BSD Hacks" by Dru Lavigne

The latter, at least, seems like something best left for later, if I 
really stick with it,.  Of the first three -- well, the first is the 
most appealing to me, but it's somewhat more dated than the others (I 
have seen the regularly posted reminders about online updates).  I'm 
certainly not averse to buying two books; however, I don't want to 
drown myself -- keeping in mind that I'm not the most technically 
inclined person and my purpose is to learn to use FreeBSD as a 
general-purpose desktop system.  I've no special or advanced uses in 
mind, though I am hoping that ultimately learning more about FreeBSD 
will also have the benefit of teaching me more about making use of the 
Darwin subsystem of OS X.


Any thoughts, advice, pointers?  Anything I missed, especially any 
general UNIX books that might go well with one of the above?





Well, I can understand, to some extent, where you're coming from.
It's much easier to justify throwing the book down beside the bed
when you're about to doze off, as opposed to, say, a new laptop.

Recently, "Grog" Lehey released "The Complete FreeBSD" under the
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
Source is available, as well as a PDF document.

I'm sure he'd appreciate it if you buy a paper copy, but you
could print your own, also:

http://www.lemis.com/grog/Documentation/CFBSD/



I would much prefer to buy a paper copy, I was really wondering if the 
paper copy is too outdated to be of use or so outdated that it might get 
me in trouble.  I imagine there's lots of things that haven't changed 
much at all -- more in the vein of "concepts" and "principles" if not 
nitty-gritty specifics.


There are many things I would know to watch out for, mostly userland/GUI 
apps and software.  I'm not worried, for example, about instructions for 
configuring the X server being out of date.  I've already gone through 
the transition to X.org 7.0 from X.org 6.9 on a couple of Linux distros, 
and I don't think FreeBSD 6.1 is using X.org 7.0 yet.  So if the book 
goes into detail about configuring XFree86, that's not a big deal.  I'm 
more concerned about messing up on things about which I don't know any 
better, but even there I can always check the updates and the current 
handbook online before I monkey around too much.  It's just that if 
there's *too* much of that, then the usefulness of the printed book is 
questionable.



--
Michael M. ++ Portland, OR ++ USA
"No live organism can continue for long to exist sanely under conditions 
of absolute reality; even larks and katydids are supposed, by some, to 
dream." --S. Jackson

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


Re: An FTP alternative ?

2006-05-12 Thread Atom Powers

On 5/12/06, Nick Withers <[EMAIL PROTECTED]> wrote:

Have you looked at SFTP? It's a "subsystem" that operates over
an SSH connection. Whilst it requires that a user be able to
login over SSH to the server, you can use filesystem
permissions (and indeed other system facilities) to enforce
things like being able to upload / download on a fairly
granular (e.g.: directory-level) basis.



If you use the scponly shell users can be restricted to only sftp
commands and the chrooted enviroment.

--
--
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]"


Re: Tape backup / Bizzare Device Question

2006-05-12 Thread Atom Powers

Graham Bentley said:
> Is there a way to create a hdd resore solution with
> set of boot floppies that will support my tape drive
> access the tape and restore the entire hard disc in
> case of disc failure disaster ? ie So I could install
> a new disc and be up and running without doing any
> additional admin? I guess like a 'ghost' for scsi tape ?
>
> Any advice / links etc apperciated.


Look at Bacula.
http://www.bacula.org/

Although I haven't bothered to create a restore boot-cd yet, my
restore procedure doesn't require it, I believe I saw documentation
about it somewhere in there.

Plus it's a fine backup/restore application.

--
--
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]"


Re: An FTP alternative ?

2006-05-12 Thread Nick Withers
On Sat, 13 May 2006 04:57:25 +0200
Leo Lapousterle <[EMAIL PROTECTED]> wrote:

> Hello :)
> 
> I'm fed up with FTP servers : FTP is great, but I need some admin stuff
> like privileges (one user can upload but not download, for example)
> unavailable for FTP... at least for those I've tested.
> 
> Is there an alternative way for FTP, allowing individual privileges?
> I found hxd (hotline protocol, I used it 7 years ago!), it's very powerful
> but quite discontinued...
> 
> Anybody has another idea? :)
> Thanks!

Have you looked at SFTP? It's a "subsystem" that operates over
an SSH connection. Whilst it requires that a user be able to
login over SSH to the server, you can use filesystem
permissions (and indeed other system facilities) to enforce
things like being able to upload / download on a fairly
granular (e.g.: directory-level) basis.

> -- 
> Léo

Hope this helps!
-- 
Nick Withers
email: [EMAIL PROTECTED]
Web: http://www.nickwithers.com
Mobile: +61 414 397 446
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: An FTP alternative ?

2006-05-12 Thread Atom Powers

On 5/12/06, Leo Lapousterle <[EMAIL PROTECTED]> wrote:

Hello :)

I'm fed up with FTP servers : FTP is great, but I need some admin stuff
like privileges (one user can upload but not download, for example)
unavailable for FTP... at least for those I've tested.


WebDAV and sftp are the common alternatives that I know of. With
WebDAV and apache ACLs you can allow upload but not download, etc.


Is there an alternative way for FTP, allowing individual privileges?
I found hxd (hotline protocol, I used it 7 years ago!), it's very powerful
but quite discontinued...

Anybody has another idea? :)
Thanks!

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




--
--
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]"


More info about shutdown sequence

2006-05-12 Thread Tuc
Hi,

I'm looking for more information about the entire
shutdown process. I know the rc.shutdown runs, but what/where
does it go from there? I need to run something when the 
filesystems are mounted read-only. Does FreeBSD ever get 
to this point?  Where? 

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


An FTP alternative ?

2006-05-12 Thread Leo Lapousterle
Hello :)

I'm fed up with FTP servers : FTP is great, but I need some admin stuff
like privileges (one user can upload but not download, for example)
unavailable for FTP... at least for those I've tested.

Is there an alternative way for FTP, allowing individual privileges?
I found hxd (hotline protocol, I used it 7 years ago!), it's very powerful
but quite discontinued...

Anybody has another idea? :)
Thanks!

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


Re: Advice on RAID?

2006-05-12 Thread Ian Jefferson

Robert,

I think I already sent out this link that documents FreeBSD R5  
performance:

http://www25.big.or.jp/~jam/filesystem/

I recently saw an article documenting similar benchmarks using geom  
and vinum in a Japanese FreeBSD magazine and the handbook section  
around vinum does warn about write performance of Raid 5.  For lot's  
of applications though the Raid 5 low write performance is not an  
issue. (it's not an issue for me)


Were you able to get gvinum raid 5 working? Could you share that  
experience?


I'd really like to use gvinum or raid 5 with a 3 SATA drive, + 2IDE  
drive setup but so far I have not been able to get it to work. :-(


IJ

On May 12, 2006, at 6:35 AM, Robert Fitzpatrick wrote:

I have looked into and tried FreeBSD 6.0 Vinum and GEOM RAID in our  
PIII
SCSI 80-pin server with the help of several here on the list. I'm  
pretty

much going to use GEOM RAID-1 for the system disks using Ralf's doc. I
have room for 3 more disks. Would you recommend using Vinum RAID-5 on
three 73GB drives or using GEOM RAID-1 again on 2 147GB drives?

If there is no big reason to use either over the other, we've  
decided to

go for the most space and RAID-5. But the amount of space we would be
gaining is probably less than 50GB, correct?

Or do you have another solution on our $700 budget. It is a debate  
here

and would like to get experienced insight.

Thanks in advance for your time!
--
Robert

___
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: Access from the internet

2006-05-12 Thread Terry Stoner

Bob -

I am keeping state with the port 21 rule.  I am perplexed because everything
works fine on the local LAN.

On 5/12/06, Bob Goodman <[EMAIL PROTECTED]> wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

>Hi my name is Terry Stoner.  I just set up a new Firewall, FreeBSD
6.0, and
>am having trouble connecting from the internet.  Basically I want
to ssh
>from work.  I set sshd_config to listen on all interfaces and on
port 21,
>this port is not blocked outbound from work.  I have ipfilter
rules allowing
>inbound on this port and interface.  I setup port forwarding on my
netgear
>router.  When I do a tcpdump I see myself hitting the interface of
my
>firewall, but sshd is not responding.  I get to my box, but no
dice.  Do you
>have any suggestions?  I would appreciate it.
>
>Thank you,
>
>Terry Stoner
>

Are you certain that you allow both inbound traffic to your port 21
and outbound traffic from your port 21? Something with "keep state"
in the ipfilters ruleset?

Bob Goodman
-BEGIN PGP SIGNATURE-
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 2.5

wkYEARECAAYFAkRlA08ACgkQAQ09syE0bn45mQCeIcOn0hmTCdKRIEprgN543vJYb80A
nig4TZ0WCEqQzJf6tAyiC4O0sTm+
=u018
-END PGP SIGNATURE-




Concerned about your privacy? Instantly send FREE secure email, no account
required
http://www.hushmail.com/send?l=480

Get the best prices on SSL certificates from Hushmail
https://www.hushssl.com?l=485



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


Re: Only One SATA Drive Detected

2006-05-12 Thread Mark Kane

Mark Kane wrote:
Hi everyone. I'm trying to reinstall FreeBSD on a machine that had a 
hard drive failure early this week. I bought two brand new 80GB Seagate 
SATA drives to do mirroring and started to put things together this 
afternoon.


I didn't know initially if the onboard SATA controller would work or 
not, so I only opened one of the drives in case I needed to replace them 
with PATA drives. I installed FreeBSD on the first drive with no 
problem, so I proceeded to open and put in the second one. I started the 
install again so I could set up the mirroring, but only one drive was 
detected. I checked the BIOS and both are detected there, so I booted 
back into my install of FreeBSD on the one hard drive and got a dmesg, 
which is attached.


I also tried to install with just one drive on the secondary SATA 
channel, but the install does not detect that drive at all so it cannot 
continue in that case. I found someone with the same problem (although 
different drive company), but there was no solution:


http://lists.freebsd.org/pipermail/freebsd-hardware/2006-March/003343.html

My hardware is:

MSI K8NGM2 (nForce4)
2x Seagate 80GB SATA
FreeBSD 6.1-RELEASE [i386]

So in short, only the primary SATA channel works.

Is this fixable? I have not tried 7-CURRENT yet because this is a 
production workstation, but would be willing to try if you think it 
would help.


Thanks very much in advance!

-Mark


I guess I didn't search good enough. It looks like this is the same 
issue as PR amd64/95554, except it also exists on i386. I just tried 
6.0-RELEASE [i386] and both drives are detected correctly (in the 
install at least).


Sorry about that. It's been a hectic week with the drive dying due to a 
power surge/problem (even behind a surge protector) and trying to 
recover data and get replacements here quick.


Thanks

-Mark




Copyright (c) 1992-2006 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 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 Processor 3000+ (1808.24-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x20ff2  Stepping = 2
  
Features=0x78bfbff
  Features2=0x1
  AMD Features=0xe2500800
  AMD Features2=0x1
real memory  = 469565440 (447 MB)
avail memory = 450105344 (429 MB)
MPTable: 
ioapic0: Assuming intbase of 0
ioapic0  irqs 0-23 on motherboard
kbd1 at kbdmux0
cpu0 on motherboard
pcib0:  pcibus 0 on motherboard
pci0:  on pcib0
pci0:  at device 0.0 (no driver attached)
pci0:  at device 0.1 (no driver attached)
pci0:  at device 0.2 (no driver attached)
pci0:  at device 0.3 (no driver attached)
pci0:  at device 0.4 (no driver attached)
pci0:  at device 0.5 (no driver attached)
pci0:  at device 0.6 (no driver attached)
pci0:  at device 0.7 (no driver attached)
pcib1:  at device 2.0 on pci0
pci1:  on pcib1
pcib2:  at device 3.0 on pci0
pci2:  on pcib2
pcib3:  at device 4.0 on pci0
pci3:  on pcib3
pci0:  at device 5.0 (no driver attached)
pci0:  at device 9.0 (no driver attached)
isab0:  at device 10.0 on pci0
isa0:  on isab0
pci0:  at device 10.1 (no driver attached)
ohci0:  mem 0xfeade000-0xfeadefff irq 5 at 
device 11.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0:  on ohci0
usb0: USB revision 1.0
uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 8 ports with 8 removable, self powered
ehci0:  mem 0xfeadfc00-0xfeadfcff irq 5 at 
device 11.1 on pci0
ehci0: [GIANT-LOCKED]
usb1: EHCI version 1.0
usb1: companion controller, 8 ports each: usb0
usb1:  on ehci0
usb1: USB revision 2.0
uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 8 ports with 8 removable, self powered
atapci0:  port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 13.0 on pci0
ata0:  on atapci0
ata1:  on atapci0
atapci1:  port 
0xd800-0xd807,0xd480-0xd483,0xd400-0xd407,0xd080-0xd083,0xd000-0xd00f mem 
0xfeadd000-0xfeaddfff irq 5 at device 14.0 on pci0
ata2:  on atapci1
ata3:  on atapci1
pcib4:  at device 16.0 on pci0
pci4:  on pcib4
pci4:  at device 6.0 (no driver attached)
pci4:  at device 6.1 (no driver attached)
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xe800-0xe87f mem 
0xfebffc00-0xfebffc7f irq 5 at device 7.0 on pci4
miibus0:  on xl0
ukphy0:  on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:0a:5e:57:00:75
pci0:  at device 16.1 (no driver attached)
pci0:  at device 20.0 (no driver attached)
pmtimer0 on isa0
orm0:  at iomem 0xce000-0xce7ff,0xce800-0xc on isa0
atkbdc0:  at port 0x60,0x64 on isa0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
fdc0:  at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: [FAST]
ppc0:  at port 0x378-0x37f irq 7 on isa0
ppc0: G

Re: Tape backup / Bizzare Device Question

2006-05-12 Thread Greg Putrich
Hi Graham,

Not sure about the first part, but the device is called a radiometer. 

http://radiometer.hobbytron.com/Radiometer.html
http://science.howstuffworks.com/question239.htm

   Greg



Graham Bentley said:
> Is there a way to create a hdd resore solution with 
> set of boot floppies that will support my tape drive
> access the tape and restore the entire hard disc in
> case of disc failure disaster ? ie So I could install 
> a new disc and be up and running without doing any
> additional admin? I guess like a 'ghost' for scsi tape ?
> 
> Any advice / links etc apperciated.
> 
> Also 
> 
> Description: Glass bulb, similar to light bulb but with 
> narrow end flared at bootom so it standsup. Inside, 
> a rotating wire device that has 4 squares of card like 
> material attached, like vanes. 
> 
> One one side they are black on the other they are white. 
> When the sun shines brightly enough, the white side reflects 
> the light energy and the black side absorbs it. The vanes 
> spin around. 
> 
> This does exist and has a name and I know there are 
> some very knowledgeable people on this list who will 
> know.
> 
> Whats it called. please !!!
> 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Xorg problem in 6.1_release

2006-05-12 Thread Bryan
I just reinstalled 6.1_RELEASE from ISO cd1 with XFCE4 an Xorg from t 
sysinstall downloading from ftp.


After running xorgconfig using 'same as always' settings I run the test.

X -config /etc/X11/xorg.conf

I get this error

FATAL ERROR:
could not open default font 'fixed'

Did I forget to load a package?

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


Re: Pros and Cons of running under inetd....

2006-05-12 Thread wc_fbsd

At 08:42 PM 5/12/2006, Eric Schuele wrote:
You say tcpwrappers are compiled into ftpd?  Are you sure?  How can 
I "enable" or otherwise use them?  If I add things to hosts.allow 
they seem to have no influence.  This would solve my problem as I 
would not need inetd.


My Bad.  It seems it does not.  It's running from inetd on the box I 
regularly edit hosts.allow on.


The performance benefit inetd once offered -- not having a lot of 
background process for seldom used services -- is not a big deal 
today.  But security-wise, spawning other programs that would just be 
directly listening on a port otherwise doesn't seem terribly 
insecure.  Could it even be argued beneficial? -- you have a single, 
simple piece of code accepting the initial connections, instead of 20 
processes doing the same thing with 20 different pieces of code, any 
one of which could have an exploit.  If an exploit was conceived that 
could take advantage lots of programs listening on any old socket, it 
seems the vulnerability would be lessened, or at least easier to fix.


I don't claim to be an expert security guy or OS programmer, but so 
far I haven't heard an explanation besides "don't do that".


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


Re: Pros and Cons of running under inetd....

2006-05-12 Thread Derek Ragona
Inetd still is there as a legacy part of UNIX.  This was the old way of 
starting services on demand in the old days BEFORE wans, the internet, 
etc.  Remember UNIX started as networked on LANS, with LANS interconnected 
using UUCP.  Ah those good old days before SPAM, www, and viruses.


As more security problems have been found, changes have been made to the 
OS, like the move away from inetd.  This also forces that only required 
services are running, not a slew of services running "on demand" like 
finger, ftp, tftp, etc through inetd.


-Derek


At 07:44 PM 5/12/2006, Eric Schuele wrote:

Derek Ragona wrote:
Yes it is still true today.  The default system now has inetd running 
nothing.  And the ports now install rc scripts for these reasons.


Not arguing here... everything I've found on the web says something similar.

But why do we have inetd?  I assume it solved a problem in the past, that 
no longer exists.  Not to mention its spotted security history.


For network daemons, when they are running in a listen mode there is no 
real overhead on the system.

-Derek
At 03:41 PM 5/12/2006, [EMAIL PROTECTED] wrote:

At 04:25 PM 5/12/2006, you wrote:
inetd running is discouraged.  Instead run the daemons on boot using rc 
scripts.  If you look back in the history, inetd running is a security 
risk, and was discouraged in the 5.X releases.


Is that still really true?  Waaayyy back when, inetd would have all 
kinds of dangerous services enabled by default (allowing DOS stuff like 
spewing "chargen" into "discard").


But that was a configuration issue, and issues with the services it 
launched;  not with inetd itself.


The authentication is still done within ftpd.  You're just saving the 
tiny overhead of running it all the time for occasional use.  And inetd 
does allow the tcpwrappers for anything it launches (obviously the 
wrappers are compiled into many other things now, ftpd included.)


  -Wayne

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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
Regards,
Eric

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: Pros and Cons of running under inetd....

2006-05-12 Thread Derek Ragona
Simply reinstall what ever ported apps you are using and look for a sample 
startup script in /usr/local/etc/rc.d, or look in /etc/defaults/rc.conf for 
the settings to override in /etc/rc.conf to run any standard system 
services at boot.


You can search the old security lists or look in SANS archives on the 
actual exploits about inetd.


-Derek


At 07:46 PM 5/12/2006, Eric Schuele wrote:

Daniel Bye wrote:

On Fri, May 12, 2006 at 01:07:22PM -0500, Eric Schuele wrote:
Although I am curious about ftpd and tcpwrappers I am also 
interested in whether or not running these daemons under inetd is 
preferred or not.  If so why?  If not, why?

Certainly for anything that has a reasonably expensive start up, such as
sshd, you will probably want to run it as a standalone daemon, because
it's easier on the system to start it up only once and then fork a new
child for each client connection.
On the other hand, using inetd will allow you to have only one
'superserver' running, which can spawn the appropriate daemon as
required.  This means that you won't have idle daemons lying around, as
they are cleaned up once the session ends.
One obvious shortcoming, as you point out, is that the stock ftpd
doesn't seem to understand how to consult /etc/hosts.allow, so if you
have one configured already, then you might want to use inetd to control
ftpd.  There may be alternative ftpd servers in the ports that do know
how to use tcpwrappers, but I've never used any others so don't know.
So, I suppose the real answer to your question is that you should use
inetd if you need to use one of the features that it provides, such as
tcpwrappers.  I can't think of any reason to not use inetd, and I
haven't heard any reasonable arguments suggesting it's particularly bad
for your health.  YMMV, etc.


Thanks for the response.  I'm of a similar opinion.  For this particular 
application (my laptop and occasional use, plus its usually ipfw'd away 
from the world) I think its fine... and unless I find another solution, 
I'll probably run ftpd under inetd, and sshd standalone.



Dan



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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: Dead tree documentation

2006-05-12 Thread Chris Hill

On Fri, 12 May 2006, Michael M. wrote:

[snip]

Any thoughts, advice, pointers?  Anything I missed, especially any 
general UNIX books that might go well with one of the above?


As for general un*x books that are not FreeBSD-specific, the single best 
one I've used is _Essential_System_Administration_ by Aeleen Frisch. As 
a newbie I found this book enormously helpful and well worth having. 
It's published by O'Reilly, and almost certainly available from Amazon 
or your local geeky bookstore if you're fortunate enough to have one.


HTH.

--
Chris Hill   [EMAIL PROTECTED]
** [ Busy Expunging <|> ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Pros and Cons of running under inetd....

2006-05-12 Thread Eric Schuele

Daniel Bye wrote:

On Fri, May 12, 2006 at 01:07:22PM -0500, Eric Schuele wrote:
Although I am curious about ftpd and tcpwrappers I am also 
interested in whether or not running these daemons under inetd is 
preferred or not.  If so why?  If not, why?


Certainly for anything that has a reasonably expensive start up, such as
sshd, you will probably want to run it as a standalone daemon, because
it's easier on the system to start it up only once and then fork a new
child for each client connection.

On the other hand, using inetd will allow you to have only one
'superserver' running, which can spawn the appropriate daemon as
required.  This means that you won't have idle daemons lying around, as
they are cleaned up once the session ends.

One obvious shortcoming, as you point out, is that the stock ftpd
doesn't seem to understand how to consult /etc/hosts.allow, so if you
have one configured already, then you might want to use inetd to control
ftpd.  There may be alternative ftpd servers in the ports that do know
how to use tcpwrappers, but I've never used any others so don't know.

So, I suppose the real answer to your question is that you should use
inetd if you need to use one of the features that it provides, such as
tcpwrappers.  I can't think of any reason to not use inetd, and I
haven't heard any reasonable arguments suggesting it's particularly bad
for your health.  YMMV, etc.


Thanks for the response.  I'm of a similar opinion.  For this particular 
application (my laptop and occasional use, plus its usually ipfw'd away 
from the world) I think its fine... and unless I find another solution, 
I'll probably run ftpd under inetd, and sshd standalone.




Dan




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


Re: Pros and Cons of running under inetd....

2006-05-12 Thread Eric Schuele

Derek Ragona wrote:
Yes it is still true today.  The default system now has inetd running 
nothing.  And the ports now install rc scripts for these reasons.




Not arguing here... everything I've found on the web says something similar.

But why do we have inetd?  I assume it solved a problem in the past, 
that no longer exists.  Not to mention its spotted security history.


For network daemons, when they are running in a listen mode there is no 
real overhead on the system.


-Derek

At 03:41 PM 5/12/2006, [EMAIL PROTECTED] wrote:

At 04:25 PM 5/12/2006, you wrote:
inetd running is discouraged.  Instead run the daemons on boot using 
rc scripts.  If you look back in the history, inetd running is a 
security risk, and was discouraged in the 5.X releases.


Is that still really true?  Waaayyy back when, inetd would have all 
kinds of dangerous services enabled by default (allowing DOS stuff 
like spewing "chargen" into "discard").


But that was a configuration issue, and issues with the services it 
launched;  not with inetd itself.


The authentication is still done within ftpd.  You're just saving the 
tiny overhead of running it all the time for occasional use.  And 
inetd does allow the tcpwrappers for anything it launches (obviously 
the wrappers are compiled into many other things now, ftpd included.)


  -Wayne

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


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.






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


Re: Pros and Cons of running under inetd....

2006-05-12 Thread Eric Schuele

[EMAIL PROTECTED] wrote:

At 04:25 PM 5/12/2006, you wrote:
inetd running is discouraged.  Instead run the daemons on boot using 
rc scripts.  If you look back in the history, inetd running is a 
security risk, and was discouraged in the 5.X releases.


Is that still really true?  Waaayyy back when, inetd would have all 
kinds of dangerous services enabled by default (allowing DOS stuff like 
spewing "chargen" into "discard").


But that was a configuration issue, and issues with the services it 
launched;  not with inetd itself.


The authentication is still done within ftpd.  You're just saving the 
tiny overhead of running it all the time for occasional use.  And inetd 
does allow the tcpwrappers for anything it launches (obviously the 
wrappers are compiled into many other things now, ftpd included.)


You say tcpwrappers are compiled into ftpd?  Are you sure?  How can I 
"enable" or otherwise use them?  If I add things to hosts.allow they 
seem to have no influence.  This would solve my problem as I would not 
need inetd.




  -Wayne

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





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


Only One SATA Drive Detected

2006-05-12 Thread Mark Kane
Hi everyone. I'm trying to reinstall FreeBSD on a machine that had a 
hard drive failure early this week. I bought two brand new 80GB Seagate 
SATA drives to do mirroring and started to put things together this 
afternoon.


I didn't know initially if the onboard SATA controller would work or 
not, so I only opened one of the drives in case I needed to replace them 
with PATA drives. I installed FreeBSD on the first drive with no 
problem, so I proceeded to open and put in the second one. I started the 
install again so I could set up the mirroring, but only one drive was 
detected. I checked the BIOS and both are detected there, so I booted 
back into my install of FreeBSD on the one hard drive and got a dmesg, 
which is attached.


I also tried to install with just one drive on the secondary SATA 
channel, but the install does not detect that drive at all so it cannot 
continue in that case. I found someone with the same problem (although 
different drive company), but there was no solution:


http://lists.freebsd.org/pipermail/freebsd-hardware/2006-March/003343.html

My hardware is:

MSI K8NGM2 (nForce4)
2x Seagate 80GB SATA
FreeBSD 6.1-RELEASE [i386]

So in short, only the primary SATA channel works.

Is this fixable? I have not tried 7-CURRENT yet because this is a 
production workstation, but would be willing to try if you think it 
would help.


Thanks very much in advance!

-Mark

--
GnuPG Public Key:
http://www.mkproductions.org/mk_pubkey.asc

Internet Radio:
Party107 (Trance/Electronic) - http://www.party107.com
Rock 101.9 The Edge (Rock) - http://www.rock1019.net

IRC:
MIXXnet IRC Network - irc.mixxnet.net (Nick: MIXX941)
Copyright (c) 1992-2006 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 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 Processor 3000+ (1808.24-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x20ff2  Stepping = 2
  
Features=0x78bfbff
  Features2=0x1
  AMD Features=0xe2500800
  AMD Features2=0x1
real memory  = 469565440 (447 MB)
avail memory = 450105344 (429 MB)
MPTable: 
ioapic0: Assuming intbase of 0
ioapic0  irqs 0-23 on motherboard
kbd1 at kbdmux0
cpu0 on motherboard
pcib0:  pcibus 0 on motherboard
pci0:  on pcib0
pci0:  at device 0.0 (no driver attached)
pci0:  at device 0.1 (no driver attached)
pci0:  at device 0.2 (no driver attached)
pci0:  at device 0.3 (no driver attached)
pci0:  at device 0.4 (no driver attached)
pci0:  at device 0.5 (no driver attached)
pci0:  at device 0.6 (no driver attached)
pci0:  at device 0.7 (no driver attached)
pcib1:  at device 2.0 on pci0
pci1:  on pcib1
pcib2:  at device 3.0 on pci0
pci2:  on pcib2
pcib3:  at device 4.0 on pci0
pci3:  on pcib3
pci0:  at device 5.0 (no driver attached)
pci0:  at device 9.0 (no driver attached)
isab0:  at device 10.0 on pci0
isa0:  on isab0
pci0:  at device 10.1 (no driver attached)
ohci0:  mem 0xfeade000-0xfeadefff irq 5 at 
device 11.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0:  on ohci0
usb0: USB revision 1.0
uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 8 ports with 8 removable, self powered
ehci0:  mem 0xfeadfc00-0xfeadfcff irq 5 at 
device 11.1 on pci0
ehci0: [GIANT-LOCKED]
usb1: EHCI version 1.0
usb1: companion controller, 8 ports each: usb0
usb1:  on ehci0
usb1: USB revision 2.0
uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 8 ports with 8 removable, self powered
atapci0:  port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 13.0 on pci0
ata0:  on atapci0
ata1:  on atapci0
atapci1:  port 
0xd800-0xd807,0xd480-0xd483,0xd400-0xd407,0xd080-0xd083,0xd000-0xd00f mem 
0xfeadd000-0xfeaddfff irq 5 at device 14.0 on pci0
ata2:  on atapci1
ata3:  on atapci1
pcib4:  at device 16.0 on pci0
pci4:  on pcib4
pci4:  at device 6.0 (no driver attached)
pci4:  at device 6.1 (no driver attached)
xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xe800-0xe87f mem 
0xfebffc00-0xfebffc7f irq 5 at device 7.0 on pci4
miibus0:  on xl0
ukphy0:  on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:0a:5e:57:00:75
pci0:  at device 16.1 (no driver attached)
pci0:  at device 20.0 (no driver attached)
pmtimer0 on isa0
orm0:  at iomem 0xce000-0xce7ff,0xce800-0xc on isa0
atkbdc0:  at port 0x60,0x64 on isa0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
fdc0:  at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: [FAST]
ppc0:  at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0:  on ppc0
plip0:  on ppbus0
lpt0:  on ppbus0
lpt0: Interrupt-driven port
ppi0:  on ppbus0
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: t

Re: Dead tree documentation

2006-05-12 Thread David Stanford

On 5/12/06, Michael M. <[EMAIL PROTECTED]> wrote:

I've been using various Linux distros and OS X for a while now, and
Windows before those, and am interested in trying out FreeBSD.  Call me
old fashioned, but as an engaged-but-non-technical user, I find it
really useful to have at least some accompanying documentation in book
form when embarking on something like this.  Okay, forget
"old-fashioned," just call me "old."  :-)  Book-learnin' was the only
thing we had when I was a yung-un, and it's what I'm used to.

I understand that the be-all-and-end-all of authoritative FreeBSD
reference is the online handbook (and, of course, the man pages and docs
included with the OS itself).  I was wondering if more experienced users
could give me a few pointers about the best book supplements for delving
into this OS.  Specifically, I'm looking for advice about what might be
too outdated to be useful (or worse, might end up being more confusing
than helpful) and what isn't.  From looking around and lurking here for
a while, the books that look most promising to me are:

"The Complete FreeBSD, 4th Ed." by Greg Lehey
"FreeBSD 6 Unleashed" by Brian Tiemann
"Absolute BSD" by Michael Lucas
"BSD Hacks" by Dru Lavigne


"The Complete FreeBSD, 4th Ed." by Greg Lehey and "Absolute BSD" by
Michael Lucas are fantastic books, but are, unfortunately, a little
outdated. "BSD Hacks" is also an extremely useful book, but aimed more
at administrators looking to learn a few tricks of the trade. My
suggestion would be to wait another week or two when "FreeBSD 6
Unleashed" by Brian Tiemann" is released as it will be the most
thorough and up-to-date book out there.


The latter, at least, seems like something best left for later, if I
really stick with it,.  Of the first three -- well, the first is the
most appealing to me, but it's somewhat more dated than the others (I
have seen the regularly posted reminders about online updates).  I'm
certainly not averse to buying two books; however, I don't want to drown
myself -- keeping in mind that I'm not the most technically inclined
person and my purpose is to learn to use FreeBSD as a general-purpose
desktop system.  I've no special or advanced uses in mind, though I am
hoping that ultimately learning more about FreeBSD will also have the
benefit of teaching me more about making use of the Darwin subsystem of
OS X.

If you do plan to purchase two books, I would suggest making The
complete FreeBSD the second. As for Mac OS X, I have no clue - never
used it.


Any thoughts, advice, pointers?  Anything I missed, especially any
general UNIX books that might go well with one of the above?

Much obliged.

p.s.  BTW, I did try out DesktopBSD and am quite impressed with it.  It
seems like there are still some issues to be addressed; still, it's a
really nice introductory way to get up and running with a FreeBSD
desktop quickly and easily.  As a matter of personal preference, I'm not
a big KDE fan, so that tempers my enthusiasm somewhat.  I don't think
it's really a substitute for trying to learn the basics of using and
administering FreeBSD, but then that's probably not what it's trying to
be.  I hope it progresses and gets lots of support.

Have you tried PC-BSD? It also installs defaulted with KDE, which I
also am not a fan of, but is really a great fork and looks to have a
bright future ahead.

http://www.pcbsd.org


--
Michael M. ++ Portland, OR ++ USA
"No live organism can continue for long to exist sanely under conditions of absolute 
reality; even larks and katydids are supposed, by some, to dream." --S. Jackson


-David


___
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]"


Re: Dead tree documentation

2006-05-12 Thread Kevin Kinsey

Michael M. wrote:
I've been using various Linux distros and OS X for a while now, and 
Windows before those, and am interested in trying out FreeBSD.  Call me 
old fashioned, but as an engaged-but-non-technical user, I find it 
really useful to have at least some accompanying documentation in book 
form when embarking on something like this.  Okay, forget 
"old-fashioned," just call me "old."  :-)  Book-learnin' was the only 
thing we had when I was a yung-un, and it's what I'm used to.


I understand that the be-all-and-end-all of authoritative FreeBSD 
reference is the online handbook (and, of course, the man pages and docs 
included with the OS itself).  I was wondering if more experienced users 
could give me a few pointers about the best book supplements for delving 
into this OS.  Specifically, I'm looking for advice about what might be 
too outdated to be useful (or worse, might end up being more confusing 
than helpful) and what isn't.  From looking around and lurking here for 
a while, the books that look most promising to me are:


"The Complete FreeBSD, 4th Ed." by Greg Lehey
"FreeBSD 6 Unleashed" by Brian Tiemann
"Absolute BSD" by Michael Lucas
"BSD Hacks" by Dru Lavigne

The latter, at least, seems like something best left for later, if I 
really stick with it,.  Of the first three -- well, the first is the 
most appealing to me, but it's somewhat more dated than the others (I 
have seen the regularly posted reminders about online updates).  I'm 
certainly not averse to buying two books; however, I don't want to drown 
myself -- keeping in mind that I'm not the most technically inclined 
person and my purpose is to learn to use FreeBSD as a general-purpose 
desktop system.  I've no special or advanced uses in mind, though I am 
hoping that ultimately learning more about FreeBSD will also have the 
benefit of teaching me more about making use of the Darwin subsystem of 
OS X.


Any thoughts, advice, pointers?  Anything I missed, especially any 
general UNIX books that might go well with one of the above?





Well, I can understand, to some extent, where you're coming from.
It's much easier to justify throwing the book down beside the bed
when you're about to doze off, as opposed to, say, a new laptop.

Recently, "Grog" Lehey released "The Complete FreeBSD" under the
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 license.
Source is available, as well as a PDF document.

I'm sure he'd appreciate it if you buy a paper copy, but you
could print your own, also:

http://www.lemis.com/grog/Documentation/CFBSD/

HTH,

Kevin Kinsey


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


Dead tree documentation

2006-05-12 Thread Michael M.
I've been using various Linux distros and OS X for a while now, and 
Windows before those, and am interested in trying out FreeBSD.  Call me 
old fashioned, but as an engaged-but-non-technical user, I find it 
really useful to have at least some accompanying documentation in book 
form when embarking on something like this.  Okay, forget 
"old-fashioned," just call me "old."  :-)  Book-learnin' was the only 
thing we had when I was a yung-un, and it's what I'm used to.


I understand that the be-all-and-end-all of authoritative FreeBSD 
reference is the online handbook (and, of course, the man pages and docs 
included with the OS itself).  I was wondering if more experienced users 
could give me a few pointers about the best book supplements for delving 
into this OS.  Specifically, I'm looking for advice about what might be 
too outdated to be useful (or worse, might end up being more confusing 
than helpful) and what isn't.  From looking around and lurking here for 
a while, the books that look most promising to me are:


"The Complete FreeBSD, 4th Ed." by Greg Lehey
"FreeBSD 6 Unleashed" by Brian Tiemann
"Absolute BSD" by Michael Lucas
"BSD Hacks" by Dru Lavigne

The latter, at least, seems like something best left for later, if I 
really stick with it,.  Of the first three -- well, the first is the 
most appealing to me, but it's somewhat more dated than the others (I 
have seen the regularly posted reminders about online updates).  I'm 
certainly not averse to buying two books; however, I don't want to drown 
myself -- keeping in mind that I'm not the most technically inclined 
person and my purpose is to learn to use FreeBSD as a general-purpose 
desktop system.  I've no special or advanced uses in mind, though I am 
hoping that ultimately learning more about FreeBSD will also have the 
benefit of teaching me more about making use of the Darwin subsystem of 
OS X.


Any thoughts, advice, pointers?  Anything I missed, especially any 
general UNIX books that might go well with one of the above?


Much obliged.

p.s.  BTW, I did try out DesktopBSD and am quite impressed with it.  It 
seems like there are still some issues to be addressed; still, it's a 
really nice introductory way to get up and running with a FreeBSD 
desktop quickly and easily.  As a matter of personal preference, I'm not 
a big KDE fan, so that tempers my enthusiasm somewhat.  I don't think 
it's really a substitute for trying to learn the basics of using and 
administering FreeBSD, but then that's probably not what it's trying to 
be.  I hope it progresses and gets lots of support.


--
Michael M. ++ Portland, OR ++ USA
"No live organism can continue for long to exist sanely under conditions of absolute 
reality; even larks and katydids are supposed, by some, to dream." --S. Jackson

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


Re: Pros and Cons of running under inetd....

2006-05-12 Thread Derek Ragona
Yes it is still true today.  The default system now has inetd running 
nothing.  And the ports now install rc scripts for these reasons.


For network daemons, when they are running in a listen mode there is no 
real overhead on the system.


-Derek

At 03:41 PM 5/12/2006, [EMAIL PROTECTED] wrote:

At 04:25 PM 5/12/2006, you wrote:
inetd running is discouraged.  Instead run the daemons on boot using rc 
scripts.  If you look back in the history, inetd running is a security 
risk, and was discouraged in the 5.X releases.


Is that still really true?  Waaayyy back when, inetd would have all kinds 
of dangerous services enabled by default (allowing DOS stuff like spewing 
"chargen" into "discard").


But that was a configuration issue, and issues with the services it 
launched;  not with inetd itself.


The authentication is still done within ftpd.  You're just saving the tiny 
overhead of running it all the time for occasional use.  And inetd does 
allow the tcpwrappers for anything it launches (obviously the wrappers are 
compiled into many other things now, ftpd included.)


  -Wayne

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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


RE: Access from the internet

2006-05-12 Thread Bob Goodman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

>Hi my name is Terry Stoner.  I just set up a new Firewall, FreeBSD
6.0, and
>am having trouble connecting from the internet.  Basically I want
to ssh
>from work.  I set sshd_config to listen on all interfaces and on
port 21,
>this port is not blocked outbound from work.  I have ipfilter
rules allowing
>inbound on this port and interface.  I setup port forwarding on my
netgear
>router.  When I do a tcpdump I see myself hitting the interface of
my
>firewall, but sshd is not responding.  I get to my box, but no
dice.  Do you
>have any suggestions?  I would appreciate it.
>
>Thank you,
>
>Terry Stoner
>

Are you certain that you allow both inbound traffic to your port 21
and outbound traffic from your port 21? Something with "keep state"
in the ipfilters ruleset?

Bob Goodman
-BEGIN PGP SIGNATURE-
Note: This signature can be verified at https://www.hushtools.com/verify
Version: Hush 2.5

wkYEARECAAYFAkRlA08ACgkQAQ09syE0bn45mQCeIcOn0hmTCdKRIEprgN543vJYb80A
nig4TZ0WCEqQzJf6tAyiC4O0sTm+
=u018
-END PGP SIGNATURE-




Concerned about your privacy? Instantly send FREE secure email, no account 
required
http://www.hushmail.com/send?l=480

Get the best prices on SSL certificates from Hushmail
https://www.hushssl.com?l=485

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


Re: Reducing the size of /

2006-05-12 Thread pauls

--On May 12, 2006 12:36:52 PM -0400 John Nielsen <[EMAIL PROTECTED]> wrote:


On Friday 12 May 2006 12:28, bsd wrote:

Hi again,

Most of the files that are "large" seems to be located in /usr/ports/
distfiles/

What will be the effect of deleting some of these files ?


You will have to download them again if you rebuild / reinstall the
packages  that use them.  Of course, that happens automatically and
there's a good  chance that you'll need a new version next time you
update your installed  ports, so go ahead and delete them, especially if
you have a good Internet  connection.

And when you install a port, use "make install distclean".  That will 
remove the work directories *and* the distfiles after the port was 
installed.


But, if I were you, I'd backup the box and rebuild with a more sensible 
partition arrangement.


For example, you have 65G of disk space.  You could do something likes this:
/ 500MB
swap 2G
/tmp 2G
/usr 20G
/var 20G
/home (the rest)

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: Upgrading from 6.0 to 6.1

2006-05-12 Thread Kevin Kinsey

[EMAIL PROTECTED] wrote:



Thanks for the input, Eric and Kevin!  I guess I'll start the process 
this evening and

maybe everything will be through compiling by Monday in time for work! :)

Thanks again!



I've got the process in 2 scripts, and a brief evening is generally
all that's required for the cvsup/buildworld and friends.  Buildworld
is two hours plus, IIRC, on my 1.7924 GHz desktop; buildkernel about
35 minutes on GENERIC, installkernel 1 minute.  Since installworld is
after the break/reboot, I don't know the exact time.  It appears the
last cycle was about 4 hours total, judging from the email timestamps,
but that's with (probably), me working in X in the background, a pause
between finishing kernel build and the reboot, etc.

Now, "portupgrade -arR", OTOH, is a two-day+ to-do, at least
if you only do it every 50-60 days or so.  But that's a whole
'nother thread

Kevin Kinsey

--
Parallel lines never meet, unless you bend one or both of them.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to require minium length passwords

2006-05-12 Thread Sean Murphy
I am trying to require users to put in 8 character passwords but as it 
stands it will take 1 just fine. I Tried messing with the login.conf 
file but it still looks like it accepts 1 character as an acceptable 
password.  here is what i did.  Also will this restrict other programs 
to the set minimum or can they just set the password to what there 
parameters dictate? such as usermin password change util.




added this under default

:minpasswordlen=8:\

ran the data base

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


Re: StarOffice inmstallation in FreeBSD 6.0

2006-05-12 Thread Bill Moran
[EMAIL PROTECTED] wrote:

> Dear FreeBSD:
> Here is my problem description and my question.
> 
> I have a bin file for Star office 5.2. (so-5_2-ga-bin-linux-en.bin). 
> Somehow, a few years ago, I successfully installed it on my Linux 
> system.

This is not a direct answer to your question, but is there any reason why
you can't install OpenOffice.org?  Especially considering the fact that
SO 5.2 is _really_ old, and OpenOffice.org replaces it anyway?

> I recently installed FreeBSD 6.0 and checked my Linux (base 8) 
> compatibility. Seems to be operating ok.
> 
> So, first I did a "brandelf -t linux 
> /usr/TEMP/so-5_2-ga-bin-linux-en.bin so that FreeBSD sees the file as a 
> linux binary. Then I ran ./so-5_2-ga-bin-linux-en.bin /net under TRUSS 
> and observed the execution opening and closing  several files. But when 
> it opened /usr/X11R6/lib/libX11.so.6 it was not happy. It closed the 
> file and reported that "ELF file OS ABI invalid.". So I did a brandelf 
> on the file and sure enough was told "is of brand FreeBSD"
> 
> So here is my question: The file /usr/X11R6/lib/libX11.so.6 is used in 
> the X system. Will I screw up my X system if I do a "brandelf -t linux 
> /usr/X11R6/lib/libX11.so.6"  to this file so that 
> ,/so-5_2-ga-bin-linux-en.bin  sees a Linux binary? I am assuming that a 
> "brandelf -t linux /usr/X11R6/lib/libX11.so.6" will fix  the error "ELF 
> file OS ABI invalid."and the ./so-5_2-ga-bin-linux-en.bin execution 
> will continue to the next file problem, and so on till star office is 
> loaded and I can install and run under star office.

Good luck.  I expect that trying to brandelf your way around this problem
won't work, but you can try it.  If is screws up X, just re-brand the
binary back to FreeBSD.

I expect, however, that branding it _will_ break X, and won't help with
your installation anyway.

-- 
Bill Moran

ZOE: Preacher, don't the Bible have some pretty specific things to say about
 killing?
BOOK: Quite specific. It is, however, somewhat fuzzier on the subject of
 kneecaps.

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


Re: X11 6.9 issue -- options "AGPMode" and "AGPFastWrite"

2006-05-12 Thread Eric Anholt
On Sun, 2006-05-07 at 21:51 +0200, martinko wrote: 
> hello list!
> 
> i've just upgraded X11 from 6.8.2 to 6.9.0 and run into the following issue:
> 
> after starting x11 for the first time the screen went black and console 
> was inaccessible (i had to reboot). when i tried the generated xorg.conf 
> (`Xorg -configure`) it worked. so i started comparing my old config file 
> with the new one and found out that the following two options i had been 
> using are the root of the problem:
>  Option  "AGPMode" "4"   # ++ 2005-02-11 mato
>  Option  "AGPFastWrite" # ++ 2005-02-11 mato
> they just cannot be set both at the same time now.
> and i wonder why.
> and also i wonder which one to comment out and which one to keep (if any 
> at all).

Comment them both out and live a happier life with a more stable
computer.  In my testing (and as far as I know, I'm the only one who has
done performance comparisons with AGPMode), AGPMode 4 provided no
meaningful performance improvement except under contrived circumstances.
AGPFastWrite is the most unstable option ever, and I couldn't benchmark
because it crashes.  We've threatened to just disconnect these options
upstream and not tell anyone, because they're that harmful but people
seem to think they're secret performance sauce that the developers don't
want to give them.

-- 
Eric Anholt [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]


signature.asc
Description: This is a digitally signed message part


StarOffice inmstallation in FreeBSD 6.0

2006-05-12 Thread solsyst

Dear FreeBSD:
Here is my problem description and my question.

I have a bin file for Star office 5.2. (so-5_2-ga-bin-linux-en.bin). 
Somehow, a few years ago, I successfully installed it on my Linux 
system.


I recently installed FreeBSD 6.0 and checked my Linux (base 8) 
compatibility. Seems to be operating ok.


So, first I did a "brandelf -t linux 
/usr/TEMP/so-5_2-ga-bin-linux-en.bin so that FreeBSD sees the file as a 
linux binary. Then I ran ./so-5_2-ga-bin-linux-en.bin /net under TRUSS 
and observed the execution opening and closing  several files. But when 
it opened /usr/X11R6/lib/libX11.so.6 it was not happy. It closed the 
file and reported that "ELF file OS ABI invalid.". So I did a brandelf 
on the file and sure enough was told "is of brand FreeBSD"


So here is my question: The file /usr/X11R6/lib/libX11.so.6 is used in 
the X system. Will I screw up my X system if I do a "brandelf -t linux 
/usr/X11R6/lib/libX11.so.6"  to this file so that 
,/so-5_2-ga-bin-linux-en.bin  sees a Linux binary? I am assuming that a 
"brandelf -t linux /usr/X11R6/lib/libX11.so.6" will fix  the error "ELF 
file OS ABI invalid."and the ./so-5_2-ga-bin-linux-en.bin execution 
will continue to the next file problem, and so on till star office is 
loaded and I can install and run under star office.


Clearly I do not want to screw up my Xsystem and not be able to run 
KDE. It is working very well including Koffice components.


P.S. I did read the Handbook 10.8 Advanced Topics & some other docs.

___
Try the New Netscape Mail Today!
Virtually Spam-Free | More Storage | Import Your Contact List
http://mail.netscape.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Pros and Cons of running under inetd....

2006-05-12 Thread wc_fbsd

At 04:25 PM 5/12/2006, you wrote:
inetd running is discouraged.  Instead run the daemons on boot using 
rc scripts.  If you look back in the history, inetd running is a 
security risk, and was discouraged in the 5.X releases.


Is that still really true?  Waaayyy back when, inetd would have all 
kinds of dangerous services enabled by default (allowing DOS stuff 
like spewing "chargen" into "discard").


But that was a configuration issue, and issues with the services it 
launched;  not with inetd itself.


The authentication is still done within ftpd.  You're just saving the 
tiny overhead of running it all the time for occasional use.  And 
inetd does allow the tcpwrappers for anything it launches (obviously 
the wrappers are compiled into many other things now, ftpd included.)


  -Wayne

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


Re: Upgrading from 6.0 to 6.1

2006-05-12 Thread Derek Ragona
I have done both the binary upgrade and cvsup'd many times.  Which is 
better depends on your time and what version you are moving from and 
to.  If you do a binary upgrade, you will only be at the  release of the 
version, say 6.1, but with any current security releases.  I typically 
upgrade a system to the base release using a binary upgrade, then will 
cvsup then build world, etc. to have it be current.


-Derek

At 12:15 PM 5/12/2006, [EMAIL PROTECTED] wrote:

This has possibly been discussed a number of times, and if it has, I
apologize.  Here is my situation:

I would like to upgrade my existing 6.0-SECURITY system to 6.1-RELEASE
and continue using freebsd-update to keep my system on the up and up.
I read through the upgrade instructions on disk #1 of the 6.1 release
CD and wondered if that would be the easiest way to upgrade?

From what I read, all of the configuration files for 6.1 would be in
the /etc/upgrade folder.  Would they have to stay there?  Would 6.1,
from this point forward, always have the /etc folder in /etc/upgrade?
Do I copy new pieces back to /etc for the production system?  I read
about merging but does it merge from /etc to /etc/upgrade?

Is another scenario to do the cvsup method and go that route?  If I
did, would I be able to use freebsd-update from that point forward or
would I be limited to only using the cvsup method?

I know both require merging config files and what not, which makes me
a little nervous, but I would like the easiest method available.  I
love using FreeBSD and use it primarily on my laptop so compiling the
entire OS on there may take a while so obviously the binary upgrade
looks good.  I am just unsure about the /etc/upgrade folder and how I
get all of that back to /etc.

I am somewhat a "noobert" in FreeBSD... I have been using it for less
than a year and really enjoy it over my past Linux experiences.
However, things like this make me nervous.  This is my first upgrade
of a machine I use *all* the time.

Thanks in advance!

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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: Upgrading 6.0 to 6.1 with etcmerge

2006-05-12 Thread Derek Ragona

Add the audit group to /etc/group if you have not.  you would add:
audit:*:77:

As for /etc/master.passwd, you can usually ignore this.  The mergemaster 
shows the differences which will be the CVS id in the first line, and any 
differences from adding or removing users.


-Derek


At 11:37 AM 5/12/2006, Ashley Moran wrote:
I've got a few 6.0-RELEASE machines I want to bring up to date.  I want to 
use

etcmerge because mergemaster scares the bejesus out of me.

I can create a copy of the standard 6.0-REL /etc using mergemaster, and
copying /var/tmp/temproot/src to /var/db/src, that's no problem

But I notice /usr/src/UPDATING contains the following:

  20060204:
The 'audit' group was added to support the new auditing functionality
in the base system.  Be sure to follow the directions for updating,
including the requirement to run mergemaster -p.

So I figure after rebooting into single user mode and installing the new
world, I have to take an extra step?  I never figured out how to deal with
the binary password db with etc merge, and I can't see anything in the man
page.

I hope someone can clear it up.  I assume etcmerge is widely used, but it's
not been updated (significantly) for so long I'm not sure.  (Personally I
think it should be in the  base system!)

Thanks
Ashley

--
"If you do it the stupid way, you will have to do it again"
  - Gregory Chudnovsky
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: Access from the internet

2006-05-12 Thread Derek Ragona

Can you ssh to your system from another unit in your home LAN?

Check that you don't have restrictions set in /etc/hosts.allow

One other thing, ssh uses port 22, NOT port 21.

-Derek


At 02:49 PM 5/12/2006, Terry Stoner wrote:

Hi my name is Terry Stoner.  I just set up a new Firewall, FreeBSD 6.0, and
am having trouble connecting from the internet.  Basically I want to ssh
from work.  I set sshd_config to listen on all interfaces and on port 21,
this port is not blocked outbound from work.  I have ipfilter rules allowing
inbound on this port and interface.  I setup port forwarding on my netgear
router.  When I do a tcpdump I see myself hitting the interface of my
firewall, but sshd is not responding.  I get to my box, but no dice.  Do you
have any suggestions?  I would appreciate it.

Thank you,

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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: Pros and Cons of running under inetd....

2006-05-12 Thread Daniel Bye
On Fri, May 12, 2006 at 01:07:22PM -0500, Eric Schuele wrote:
> 
> Although I am curious about ftpd and tcpwrappers I am also 
> interested in whether or not running these daemons under inetd is 
> preferred or not.  If so why?  If not, why?

Certainly for anything that has a reasonably expensive start up, such as
sshd, you will probably want to run it as a standalone daemon, because
it's easier on the system to start it up only once and then fork a new
child for each client connection.

On the other hand, using inetd will allow you to have only one
'superserver' running, which can spawn the appropriate daemon as
required.  This means that you won't have idle daemons lying around, as
they are cleaned up once the session ends.

One obvious shortcoming, as you point out, is that the stock ftpd
doesn't seem to understand how to consult /etc/hosts.allow, so if you
have one configured already, then you might want to use inetd to control
ftpd.  There may be alternative ftpd servers in the ports that do know
how to use tcpwrappers, but I've never used any others so don't know.

So, I suppose the real answer to your question is that you should use
inetd if you need to use one of the features that it provides, such as
tcpwrappers.  I can't think of any reason to not use inetd, and I
haven't heard any reasonable arguments suggesting it's particularly bad
for your health.  YMMV, etc.

Dan

-- 
Daniel Bye

PGP Key: http://www.slightlystrange.org/pgpkey-dan.asc
PGP Key fingerprint: D349 B109 0EB8 2554 4D75  B79A 8B17 F97C 1622 166A
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpIdjEiJGnOc.pgp
Description: PGP signature


Re: Pros and Cons of running under inetd....

2006-05-12 Thread Derek Ragona
inetd running is discouraged.  Instead run the daemons on boot using rc 
scripts.  If you look back in the history, inetd running is a security 
risk, and was discouraged in the 5.X releases.


-Derek

At 01:07 PM 5/12/2006, Eric Schuele wrote:

Daniel Bye wrote:

On Fri, May 12, 2006 at 11:35:41AM -0500, Eric Schuele wrote:

Hello,

I run sshd and ftpd on my laptop.  I generally start them via:
  sshd_enable="YES"
  ftpd_enable="YES"
in my rc.conf.

What are the pros/cons of running them via inetd?

This is in no way a high load or production machine.  Just my laptop
that I need access to from time to time.

The one pro I have noticed (which is rather important to me) is that
ftpd does not heed hosts.allow directives when NOT run via inetd.  Am I
correct in this?  I prefer to use tcpwrappers to further protect my sshd 
and ftpd.  I generally keep ftpd firewalled off from the world and when 
someone needs to (anonymous) ftp something to me I open the firewall. 
But it would be nice to allow only their IP using hosts.allow (as I just 
enable/disable a generic ruleset in ipfw).  So should I forget to 
disable the ruleset in ipfw then I am not open all day till I reboot.


Thanks for the response.


When sshd starts, it needs to generate keys and set up its cryptographic
environment, so you will notice a bit of lag before getting a login
prompt.  This may or may not mean anything to you, depending on how
beefy your laptop is.
Check man sshd for the -i option.
sshd should, by default, be compiled with tcpwrappers support anyway.
You can test whether this is the case by putting something like this at
the top of your hosts.allow:
sshd : 127.0.0.1 : deny
and then try connecting on the loopback interface.  If you see `refused
connect from localhost' in your /var/log/auth.log, then your sshd uses
hosts.allow and running it from inetd won't give you any benefit.


Actually I have sshd under control.  It works fine, and yes uses 
tcpwrappers by default.



I don't know about ftpd, as I don't use it.


ftpd however does not seem to use them.


Dan


Although I am curious about ftpd and tcpwrappers I am also interested 
in whether or not running these daemons under inetd is preferred or 
not.  If so why?  If not, why?


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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


RE: Upgrading from 6.0 to 6.1

2006-05-12 Thread jeff . cross

Quoting "Zimmerman, Eric" <[EMAIL PROTECTED]>:


Freebsd-update works on my box (but theres been no updates as of yet).

As long as you track RELEASE it should work fine


-Original Message-
From: [EMAIL PROTECTED]

[mailto:[EMAIL PROTECTED]

Sent: Friday, May 12, 2006 2:10 PM
To: Zimmerman, Eric
Subject: RE: Upgrading from 6.0 to 6.1

Quoting "Zimmerman, Eric" <[EMAIL PROTECTED]>:

> Try this
>
> https://mikestammer.com/doku.php?id=updateos
>
> its what I wrote up for myself when I update
>
> worked for me from 6 to 6.1 and should meet your needs just fine
>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:owner-freebsd-
>> [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
>> Sent: Friday, May 12, 2006 12:15 PM
>> To: [EMAIL PROTECTED]
>> Cc: [EMAIL PROTECTED]
>> Subject: Upgrading from 6.0 to 6.1
>>
>> This has possibly been discussed a number of times, and if it has,

I

>> apologize.  Here is my situation:
>>
>> I would like to upgrade my existing 6.0-SECURITY system to

6.1-RELEASE

>> and continue using freebsd-update to keep my system on the up and

up.

>> I read through the upgrade instructions on disk #1 of the 6.1

release

>> CD and wondered if that would be the easiest way to upgrade?
>>
>>  From what I read, all of the configuration files for 6.1 would be

in

>> the /etc/upgrade folder.  Would they have to stay there?  Would

6.1,

>> from this point forward, always have the /etc folder in

/etc/upgrade?

>> Do I copy new pieces back to /etc for the production system?  I

read

>> about merging but does it merge from /etc to /etc/upgrade?
>>
>> Is another scenario to do the cvsup method and go that route?  If I
>> did, would I be able to use freebsd-update from that point forward

or

>> would I be limited to only using the cvsup method?
>>
>> I know both require merging config files and what not, which makes

me

>> a little nervous, but I would like the easiest method available.  I
>> love using FreeBSD and use it primarily on my laptop so compiling

the

>> entire OS on there may take a while so obviously the binary upgrade
>> looks good.  I am just unsure about the /etc/upgrade folder and how

I

>> get all of that back to /etc.
>>
>> I am somewhat a "noobert" in FreeBSD... I have been using it for

less

>> than a year and really enjoy it over my past Linux experiences.
>> However, things like this make me nervous.  This is my first

upgrade

>> of a machine I use *all* the time.
>>
>> Thanks in advance!
>>
>> Jeff Cross
>> http://www.averageadmins.com/
>> ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-
>> [EMAIL PROTECTED]"
>

Thanks!  I will give this a try. But, before I do, can I still use
freebsd-update to maintain my system from that point forward or will I
have to use the cvsup method of updating?

Jeff Cross
http://www.averageadmins.com/




Thanks for the input, Eric and Kevin!  I guess I'll start the process  
this evening and

maybe everything will be through compiling by Monday in time for work! :)

Thanks again!

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


Re: fsck way too slow

2006-05-12 Thread [EMAIL PROTECTED]

On 5/12/06, Andrea Venturoli <[EMAIL PROTECTED]> cwaeth:
"one big root partition."

Don't do this.

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


Access from the internet

2006-05-12 Thread Terry Stoner

Hi my name is Terry Stoner.  I just set up a new Firewall, FreeBSD 6.0, and
am having trouble connecting from the internet.  Basically I want to ssh
from work.  I set sshd_config to listen on all interfaces and on port 21,
this port is not blocked outbound from work.  I have ipfilter rules allowing
inbound on this port and interface.  I setup port forwarding on my netgear
router.  When I do a tcpdump I see myself hitting the interface of my
firewall, but sshd is not responding.  I get to my box, but no dice.  Do you
have any suggestions?  I would appreciate it.

Thank you,

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


Re: 1 cpu + 2 monitors + 2 keybord/mouse is it possible

2006-05-12 Thread Aren Olvalde Tyr
> Reading the man page for kbdmux it isn't clear to me if the keyboards will
> work independently in X but it might be worth a try.

Theoretically it shouldn't be a problem using separate keyboards/mice under 
[separate] X [sessions]; simply use a separate xorg.conf configuration files 
per display, each one set to use the appropriate keyboard/mouse.

So as long as kbdmux is happy, I don't see a problem.

I suspect it might be easiest to have one PS/2 mouse & keyboard, and one USB 
mouse & keyboard.

Aren.


pgpgjmElo6gaD.pgp
Description: PGP signature


Re: libphp5.so not compiling for apache (was hello)

2006-05-12 Thread Matthew Seaman
Jonathan Horne wrote:
>> I `ve got a question about installing the php5 module.
>> I`m installing it from the /usr/ports/www/php5-session port.
>>
>> Everything runs ok and it seems like the module is installed.
>> There is only one problem, in the httpd.conf there is a LoadModule
>> php5_module refering to libexec/apache/libphp5.so.
>>
>> The library libphp5.so is not made by the install and so my appache will
>> not start with the php5 enabled.
>>
>> What is wrong and what can i do to let the install make the libphp5.so.
>>
>> Ok thanks in advance,
>> Justin.
>>
>>
>>
> 
> i was having the same issue yesterday.  take a look at the
> /usr/ports/lang/php5/Makefile.  this was where my problem was, and tho i
> didnt use the www/php5-session, i would make a bet that if you begin from
> there with  no php5 installed at all, then it backs up and begins from
> lang/php5, and then moves on from there.
> 
> the problem with my lang/php5/Makefile was, that this line was not
> included (totally not there... not even there and commented out):
> 
> WITH_APACHE=yes
> 
> once i added it, did a pkg_delete -r php5-5.1.4 (-r = recurse all
> dependencies against this package), and started over, the lib file
> compiled on the next attempt.
> 
> the port for php5-5.1.2 included that line, and therefor the lib file
> compiled by default previously.  im not sure if the omission of
> "WITH_APACHE=yes" was by intention or not, but ill have to be sure to
> check it for near future installs.

The canonical way to do this is by typing 'make config' in the lang/php5
port, and making sure the 'Apache' checkbox is checked.  Then reinstall
php5. This will create a supplementary makefile under /var/db/ports/ which
will set various options according to your desires, and which will persist
across ports updates and so forth.  It is, however, a bit of a bug in the
whole options processing thing that if the list of available options changes,
you aren't prompted to redo the configuration step when you go to update
the port.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: hello (DSL -- should be: installing PHP5)

2006-05-12 Thread Kevin Kinsey

justin wrote:


I `ve got a question about installing the php5 module.
I`m installing it from the /usr/ports/www/php5-session port.




Interesting; that's not the usual place.



Everything runs ok and it seems like the module is installed.
There is only one problem, in the httpd.conf there is a LoadModule 
php5_module refering to libexec/apache/libphp5.so.


The library libphp5.so is not made by the install and so my appache will 
not start with the php5 enabled.


What is wrong and what can i do to let the install make the libphp5.so.


php5-session is a "sub-port" if you will; it's supposed to be an
extension to /usr/ports/lang/php5.  IIRC, this was "split out"
from PHP5 quite some time ago.  So, you should *probably* install
/usr/ports/lang/php5 first, and then install the php5-session
port; or, even better, install lang/php5 and then lang/php5-extensions,
and you can get sessions and all other kinds of 'neat stuff', too.

HTH,

Kevin Kinsey

--
All other things being equal, a bald man cannot be elected President of
the United States.
-- Vic Gold

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


Re: New folder permissions

2006-05-12 Thread Derrick Ryalls

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

"Derrick Ryalls" <[EMAIL PROTECTED]> writes:

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

>> There are a lot of ways to do this, but the one I would recommend is
>> to change the main folder to be owned by a group that you, your wife,
>> and the uid running the thumbnail script all are members of --
>> probably by creating a new group for the purpose.  Then if you set
>> your wife's umask to 002, directories she creates will be available to
>> you and any other members of the group.
>>
>
> Would I change the umask on the webserver or on her desktop?  If on
> the desktop, then how does this work when she is booted into Windows?
> I do like the idea of this solution, but she doesn't even like shell
> access so .bashrc wouldn't be executed.  Is there a way to set umask
> functionality somewhere else?
>

I think you need to configure Samba directly for this.
I suspect "create mask = 0775" would do it.




Thanks, I didn't even know about that option.  I will try that out
when I get home.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Reducing the size of /

2006-05-12 Thread Eric F Crist

On May 12, 2006, at 11:11 AM, bsd wrote:


Hello,

I have three partitions on my server and would like to reduce the  
size of / because I am getting quite full !


Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ar0s1a3.8G2.8G668M81%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ar0s1d 60G1.9G 53G 3%/home


What are the places I could start looking in to delete not so  
usefull files, knowing that I am syncing using portsnat (and  
previously cvsup).


A good command I use when things start getting full is:

#du -hd 1 [filesystem]

Where [filesystem] is the partition path you want stats on.  My  
output looks like this:


# du -hd 1 /
2.0K/.snap
1.5K/dev
49G/usr
841M/var
3.1G/www
2.3M/stand
3.1M/etc
2.0K/cdrom
924K/bin
39M/boot
3.2M/lib
282K/libexec
2.0K/mnt
2.0K/proc
3.5M/rescue
15M/root
4.0M/sbin
8.3M/tmp
2.0K/floppy
2.2M/jail
53G/

It can tell you where your using the most space.  I'm guessing your / 
usr  directory is the culprit.  Try going to /usr/ports and typing  
make distclean.


-
Eric F Crist
Secure Computing Networks
http://www.secure-computing.net



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


Re: Upgrading from 6.0 to 6.1

2006-05-12 Thread Kevin Kinsey

[EMAIL PROTECTED] wrote:

This has possibly been discussed a number of times, and if it has, I 
apologize.  Here is my situation:




Apology accepted ;-)  :-D


I would like to upgrade my existing 6.0-SECURITY system to 6.1-RELEASE 
and continue using freebsd-update to keep my system on the up and up.  I 
read through the upgrade instructions on disk #1 of the 6.1 release CD 
and wondered if that would be the easiest way to upgrade?




The canonical way is via a cvsup/buildworld procedure as outlined
in the FreeBSD Handbook.

There is also a "binary upgrade" option in sysinstall(8); I've never
used it, never seen it discussed, and don't know how well it works.  I
have to assume it does until proven otherwise, though.

 From what I read, all of the configuration files for 6.1 would be in 
the /etc/upgrade folder.  Would they have to stay there?  Would 6.1, 
from this point forward, always have the /etc folder in /etc/upgrade?  
Do I copy new pieces back to /etc for the production system?  I read 
about merging but does it merge from /etc to /etc/upgrade?




mergemaster is the standard for upgrading /etc, though some other
options exist.  mergemaster, in general, takes the new source files
from /usr/src/etc, sets up a temporary /etc/ tree under /var/temproot,
and uses diff(1) to find/display differences between the two files.

Generally, you want to accept new files if you've never changed
the configuration file in question, and merge the old and new
files for those you have modified.  In some cases, the changes
to the new files are trivial, in which case you ignore the new
file or make the trivial changes manually later, if you're a
perfectionist.

IIRC, other tools exist to accomplish this, also.  You might search
the ports tree for "etcmerge", IIRC.

As for /etc/upgrade, it doesn't exist on my system.  Where
did you read about it?  Perhaps it's part of the sysinstall(8)
"binary upgrade" procedure?


Is another scenario to do the cvsup method and go that route?  If I did, 
would I be able to use freebsd-update from that point forward or would I 
be limited to only using the cvsup method?




I'm not yet familiar with Colin's fine update tool, but I don't
think that they would in any way conflict (unless you attempted
to use them simultaneously).  Please refer to freebsd-update
documentation for authoritative answers in this regard.

The difference is that freebsd-update is an attempt to replace
system binaries with a standard, secure set of newly-compiled
binaries.  cvsup/buildworld et al is an automated (well,
semi-automated) procedure for rebuilding the system from its
source code.


I know both require merging config files and what not, which makes me a 
little nervous, but I would like the easiest method available.  I love 
using FreeBSD and use it primarily on my laptop so compiling the entire 
OS on there may take a while so obviously the binary upgrade looks 
good.  I am just unsure about the /etc/upgrade folder and how I get all 
of that back to /etc.


Make a backup and go for it!

Kevin Kinsey

--
We should have a Vollyballocracy.  We elect a six-pack of presidents.
Each one serves until they screw up, at which point they rotate.
-- Dennis Miller
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: New folder permissions

2006-05-12 Thread Lowell Gilbert
"Derrick Ryalls" <[EMAIL PROTECTED]> writes:

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

>> There are a lot of ways to do this, but the one I would recommend is
>> to change the main folder to be owned by a group that you, your wife,
>> and the uid running the thumbnail script all are members of --
>> probably by creating a new group for the purpose.  Then if you set
>> your wife's umask to 002, directories she creates will be available to
>> you and any other members of the group.
>>
>
> Would I change the umask on the webserver or on her desktop?  If on
> the desktop, then how does this work when she is booted into Windows?
> I do like the idea of this solution, but she doesn't even like shell
> access so .bashrc wouldn't be executed.  Is there a way to set umask
> functionality somewhere else?
>

I think you need to configure Samba directly for this.  
I suspect "create mask = 0775" would do it.

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


Re: New folder permissions

2006-05-12 Thread Derrick Ryalls

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

"Derrick Ryalls" <[EMAIL PROTECTED]> writes:

> I am having issues getting correct permissions set for files in a
> common area on a web/file server.  I have webroot shared out via samba
> and under there I have an auto-thumbnail generation script that
> creates thumbnails in somefolder/.cache where somefolder is a newly
> created folder.  Example:
>
> autothumbs\
>  mypics1\
>image.jpg
>.cache
> image_thumb.jpg
>  mypics2\
>   .cache
> ...
>
> What needs to happen is when a new folder is created under this
> autothumb tree, the permissions need to be set correctly so that the
> .cache folder can be automatically generated by the thumbnail process.
> I have the main folder listed as root:wheel 777 but when new folders
> are created they have user:wheel 755 permissions and the thumbnail
> script fails as it cannot write to the location.
>
> Is there something I am missing to get this setup properly?  I know a
> workaround is the manually change the permissions of the folder when
> it is created, but since my wife will be wanting to add pictures, that
> isn't an option for her (very non-techy).  The machine in question a
> 5.4-Stable box.
>
> Any suggestions on what I need to do?

There are a lot of ways to do this, but the one I would recommend is
to change the main folder to be owned by a group that you, your wife,
and the uid running the thumbnail script all are members of --
probably by creating a new group for the purpose.  Then if you set
your wife's umask to 002, directories she creates will be available to
you and any other members of the group.



Would I change the umask on the webserver or on her desktop?  If on
the desktop, then how does this work when she is booted into Windows?
I do like the idea of this solution, but she doesn't even like shell
access so .bashrc wouldn't be executed.  Is there a way to set umask
functionality somewhere else?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: very slow boot (newbie)

2006-05-12 Thread Parv
in message <[EMAIL PROTECTED]>,
wrote Barnaby Scott thusly...
>
> Parv wrote:
> ...
> >>and then stops! I have timed it - it stops for between 4 and 5
> >>minutes every time.
> >
> >Does your screen goes blank just after the above message?  If so,
> >press [Enter] key, you should see the boot being continued, and
> >"login:" waiting for input at the end.
> 
> No the screen still has all the previous clutter on it, and
> pressing [Enter] just makes a new line

Ok then; sorry to waste your time.


  - Parv

-- 

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


Re: Trimming Whitespace From Beginning and end of Text Lines

2006-05-12 Thread Warren Block

On Fri, 12 May 2006, Giorgos Keramidas wrote:


The first sed expression is missing "//".  Correcting that:
  sed -i -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' test.txt
  sed: lstat: No such file or directory


Yeah, I noticed the missing // in the first regexp, but only
after I had posted the message.  You're right, of course :)

It seems odd that the fixed expression doesn't work though.
Which version of FreeBSD is this and what sed are you running?

$ uname -v


FreeBSD 4.11-STABLE #0: Wed Mar 22 19:18:33 MST 2006


$ type sed


That's a sh-ism (normally I use csh):

sed is /usr/bin/sed

Interestingly, the problem is different on 6.1 (csh or sh):

sed -i -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' test.txt
sed: -e: No such file or directory

...which is solved by giving a blank argument for -i:

sed -i'' -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' test.txt

Gah.

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


Re: libphp5.so not compiling for apache (was hello)

2006-05-12 Thread Jonathan Horne
>
> I `ve got a question about installing the php5 module.
> I`m installing it from the /usr/ports/www/php5-session port.
>
> Everything runs ok and it seems like the module is installed.
> There is only one problem, in the httpd.conf there is a LoadModule
> php5_module refering to libexec/apache/libphp5.so.
>
> The library libphp5.so is not made by the install and so my appache will
> not start with the php5 enabled.
>
> What is wrong and what can i do to let the install make the libphp5.so.
>
> Ok thanks in advance,
> Justin.
>
>
>

i was having the same issue yesterday.  take a look at the
/usr/ports/lang/php5/Makefile.  this was where my problem was, and tho i
didnt use the www/php5-session, i would make a bet that if you begin from
there with  no php5 installed at all, then it backs up and begins from
lang/php5, and then moves on from there.

the problem with my lang/php5/Makefile was, that this line was not
included (totally not there... not even there and commented out):

WITH_APACHE=yes

once i added it, did a pkg_delete -r php5-5.1.4 (-r = recurse all
dependencies against this package), and started over, the lib file
compiled on the next attempt.

the port for php5-5.1.2 included that line, and therefor the lib file
compiled by default previously.  im not sure if the omission of
"WITH_APACHE=yes" was by intention or not, but ill have to be sure to
check it for near future installs.

tht,
jonathan

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


Fwd: hello

2006-05-12 Thread Jeff Rollin

-- Forwarded message --
From: Jeff Rollin <[EMAIL PROTECTED]>
Date: 12-May-2006 18:43
Subject: Re: hello
To: justin <[EMAIL PROTECTED]>

Hi Justin



Everything runs ok and it seems like the module is installed.
There is only one problem, in the httpd.conf there is a LoadModule
php5_module refering to libexec/apache/libphp5.so.

The library libphp5.so is not made by the install and so my appache will
not start with the php5 enabled.





Is there any "libphp" file in libexec/apache? If so, have you tried making a
link to it?

[code]
ln -s libexec/apache/yourlibphpfile  libexec/apache/libphp5.so
[/code]

HTH

Jeff

P.S. In future, you can help everyone concerned by putting a "real" subject
in the subject line (something related to your problem, e.g. "installing
libphp" would do in this instance).

Ta.


--
--
Argument against Linux number 6,033:

"...So this is like most Linux viruses. You have to download the virus
yourself, become root, install it and then run it. Seems like a lot of work
just to experience what you can get on Windows with a lot less trouble."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Serial based install

2006-05-12 Thread Tom Moore
Hi guys.
How do I force the FreeBSD to do a serial port based install?
I'm installing on to a laptop, but want to control the install from a serial
port on another machine because I can not see the screen on the laptop.
I tried modifying the boot.flp image and putting a file called boot.conf
with the following line in it:
/boot/loader -h
This didn't seem to work?
Am I modifying the wrong image for this or should I modify one of the kernel
images?

Please advise what I should do next.

Thanks,
Tom

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.5.5/335 - Release Date: 5/9/2006
 

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


Re: very slow boot (newbie)

2006-05-12 Thread Bill Moran
Daniel Bye <[EMAIL PROTECTED]> wrote:

> On Fri, May 12, 2006 at 04:21:09PM +0100, Barnaby Scott wrote:
> > >The fact that the operating system knows what the machine is called,
> > >does not necessarily mean that the name is in the DNS.  You can put an
> > >entry in your /etc/hosts file (take a look at the file for the format),
> > >which will allow sendmail and other daemons to start.
> > 
> > OK, I looked in /etc/hosts and only 127.0.0.1 localhost appears there. 
> > How do I put another entry in here though, when I don't know in advance 
> > the IP address that will be allocated to this machine by the DHCP server 
> > (provided by my router)? The odd thing is that the system knows exactly 
> > what IP address has been assigned, because I can see that transaction 
> > taking place during the boot sequence long before the point where it 
> > stalls.

Make an entry in /etc/hosts similar to:
127.0.0.1   hostname hostname.domain.com

(Only substitute your actual host and domain names)

Unless you reconfigure something, the resolver always checks /etc/hosts
first.  Thus the DNS timeouts will never occur as the system will find
its hostname.

Not that, in my experience, it's important to put _both_ the short name
and the FQDN in.

-- 
Bill Moran

That's why I never kiss 'em on the mouth.

Jayne Cobb

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


Re: 6.1-STABLE : make installworld fails

2006-05-12 Thread Kent Stewart
On Friday 12 May 2006 06:59, Axel Burwitz wrote:
> Hi,
>
> well, need some help...
>
>
> I have just upgraded my system from 6.1-PRERELEASE to 6.1-STABLE,
> with cvsup, make buildworld, make buildkernel, make installkernel.
>
> The upgrade for the basic system went through, it shows 6.1-STABLE
> version, and the fresh kernel version works, but:
>
> when I (in single-user mode) want  to start "make installworld"
> (while being in /usr/src) to upgrade the userland, it only gives
>
> "
> 
>
>  >>> Installing everything
>
> 
>
> cd /usr/src; make -f Makefile.inc1 install
>
> ===> share info (install)
> ===> include (install)
>
> Creating osreldate.h from newvers.sh
> touch not found
>
> *** Error code 127
>
> Stop in /usr/src/include.
>
> *** Error code 1"
>
>
>
> No idea what to do now.
>

Check your system date. Almost everytime that make thinks it needs to 
use touch is due to the date on the computer being off.

I run local time and have to use adjkerntz -i to set the local time 
zone.

If your date is way off like it looks, you have to update it and then 
rebuild so that everything is current. You don't have any idea what 
wasn't built because it was thought to be current.

Kent

-- 
Kent Stewart
Richland, WA

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


Re: Pros and Cons of running under inetd....

2006-05-12 Thread Eric Schuele

Daniel Bye wrote:

On Fri, May 12, 2006 at 11:35:41AM -0500, Eric Schuele wrote:

Hello,

I run sshd and ftpd on my laptop.  I generally start them via:
  sshd_enable="YES"
  ftpd_enable="YES"
in my rc.conf.

What are the pros/cons of running them via inetd?

This is in no way a high load or production machine.  Just my laptop
that I need access to from time to time.

The one pro I have noticed (which is rather important to me) is that
ftpd does not heed hosts.allow directives when NOT run via inetd.  Am I
correct in this?  I prefer to use tcpwrappers to further protect my sshd 
and ftpd.  I generally keep ftpd firewalled off from the world and when 
someone needs to (anonymous) ftp something to me I open the firewall. 
But it would be nice to allow only their IP using hosts.allow (as I just 
enable/disable a generic ruleset in ipfw).  So should I forget to 
disable the ruleset in ipfw then I am not open all day till I reboot.




Thanks for the response.


When sshd starts, it needs to generate keys and set up its cryptographic
environment, so you will notice a bit of lag before getting a login
prompt.  This may or may not mean anything to you, depending on how
beefy your laptop is.

Check man sshd for the -i option.

sshd should, by default, be compiled with tcpwrappers support anyway.
You can test whether this is the case by putting something like this at
the top of your hosts.allow:

sshd : 127.0.0.1 : deny

and then try connecting on the loopback interface.  If you see `refused
connect from localhost' in your /var/log/auth.log, then your sshd uses
hosts.allow and running it from inetd won't give you any benefit.



Actually I have sshd under control.  It works fine, and yes uses 
tcpwrappers by default.



I don't know about ftpd, as I don't use it.


ftpd however does not seem to use them.



Dan



Although I am curious about ftpd and tcpwrappers I am also 
interested in whether or not running these daemons under inetd is 
preferred or not.  If so why?  If not, why?


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


Re: very slow boot (newbie)

2006-05-12 Thread Daniel Bye
On Fri, May 12, 2006 at 04:21:09PM +0100, Barnaby Scott wrote:
> >The fact that the operating system knows what the machine is called,
> >does not necessarily mean that the name is in the DNS.  You can put an
> >entry in your /etc/hosts file (take a look at the file for the format),
> >which will allow sendmail and other daemons to start.
> 
> OK, I looked in /etc/hosts and only 127.0.0.1 localhost appears there. 
> How do I put another entry in here though, when I don't know in advance 
> the IP address that will be allocated to this machine by the DHCP server 
> (provided by my router)? The odd thing is that the system knows exactly 
> what IP address has been assigned, because I can see that transaction 
> taking place during the boot sequence long before the point where it 
> stalls.

You can possibly configure your router to give you the same IP address
each time you make a DHCP lease request, by setting up `static' leases.
You could also manually configure an IP address, and add that address to
the list of IPs excluded from your router's dynamic address pool.  How
to do so will depend on your router.  You can then, with either of these
approaches, put an entry in /etc/hosts and it should work.

> 
>   You should also
> >check that your hostname is in the DNS.  You might find something like
> >DynDNS or ZoneEdit useful if your machine is on a dynamically assigned
> >domestic range, such as you'd get from NTL or Telewest.
> 
> Do I really want it in the DNS? I'm not sure exactly what this means in 
> the context of my little network, but if it means people outside my 
> network being able to look for my computer by name, I certainly don't 
> want that. In case it is important, I should say that during 
> installation I was asked to configure my NIC and that was where I put a 
> hostname, but I *didn't* enter a domain name. Should I have put 
> something here - if so, what?

Not necessarily, but as KDK has said, not having a name in DNS (or in
/etc/hosts) can cause some daemons to wait while their DNS lookup
timeout limit expires.  And, as KDK said, it's often sendmail that seems
to wait.  And wait...  ;-)  You can certainly manage without public DNS
records, but if you need to run sendmail, you should certainly make a
new entry in /etc/hosts.

> 
> >
> >As for the DNS server, you need to tell FreeBSD where to go to resolve
> >names to IP addresses.  You do this by putting the IP addresses of your
> >ISP's name servers in your /etc/resolv.conf (yes, there really is no 'e'
> >on the end of resolv).  The format is 'nameserver IP.add.re.ss', without
> >the quotes (man 5 resolv.conf will give you more detail).
> 
> /etc/resolv.conf appears to contain one entry:
> 'nameserver 192.168.1.1'
> which is the address of my router. I have never put in the ISP's 
> namesevers before, and yet DNS resolution seems to happen OK! 
> (Presumably when I update or install stuff, the system accesses the 
> relevant FTP servers by name rather than IP address?)

Ah, OK.  Then your dhclient is correctly requesting and getting its
resolver address.  If it is indeed sendmail that causes the delay, then
you may want to disable it.  Someone has already suggested booting with
verbose logging turned on (an option at the boot menu), which should
give you more idea of what's causing the delay.  Let us know what's
going on if you can't figure it out.

> 
>   You should
> >also check in /etc/nsswitch.conf to make sure that you have an entry
> >that looks like this:
> >
> >hosts: files dns
> 
> Yes it does, but with my particular setup, should I actually change this?

No, leave it as it is.  You still want to check /etc/hosts before going
to the DNS.

> 
> >
> >This tells your local resolver library to consult /etc/hosts before it
> >goes to the DNS.
> >
> >If I am teaching Grandma how to suck eggs, I apologise - I got the
> >impression from the tone of your post, though, that you are quite new 
> >to all this UNIX stuff!
> 
> Don't worry - this particular Grandma wouldn't know an egg if she 
> swallowed one, and she hasn't sucked anything in years!

Heheh!  Interesting imagery.  Thanks...  Need soap...

> I am very
> grateful for all the help I can get. I am hampered by not only being a 
> Unix virgin, but my only network experience is with a small peer to peer 
> network of Windows machines (plus only what I have read). I feel rather 
> like someone who trying to teach himself to fly an advanced fighter jet 
> with nothing but the technical manual. So far I am still trying to 
> operate the ladder to get in the cockpit! I'm determined to get there
> though.


IMHO, you picked a fine OS for your UNIX initiation, in part because of
its technical excellence, and in part because of the wonderful support
you get from the community.  If you are resourceful, and can demonstrate
an ability to try and fix things yourself, you will find most people
round here very helpful.

Welcome aboard!

Dan

-- 
Daniel Bye

PGP Key: http://www.slightlystrang

using rc scripts

2006-05-12 Thread Atom Powers

I wrote an rc script for cfengine, but it's not recording the pid. Am
I doing something obviously wrong, or does rc rely on the app to
provide the pid?
--
#!/bin/sh
#
# PROVIDE: cfexecd
# REQUIRE: LOGIN
# BEFORE:  securelevel
# KEYWORD: FreeBSD shutdown

. "/etc/rc.subr"

name="cfexecd"
rcvar=`set_rcvar`

command="/usr/local/sbin/cfexecd"
command_args=""
pidfile="/var/run/$name.pid"
#required_files="/usr/local/etc/$name.conf"

# read configuration and set defaults
load_rc_config "$name"
: ${cfexecd_enable="NO"}
: ${cfexecd_flags=""}

run_rc_command "$1"


--
--
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]"


Re: Pros and Cons of running under inetd....

2006-05-12 Thread Daniel Bye
On Fri, May 12, 2006 at 11:35:41AM -0500, Eric Schuele wrote:
> Hello,
> 
> I run sshd and ftpd on my laptop.  I generally start them via:
>   sshd_enable="YES"
>   ftpd_enable="YES"
> in my rc.conf.
> 
> What are the pros/cons of running them via inetd?
> 
> This is in no way a high load or production machine.  Just my laptop
> that I need access to from time to time.
> 
> The one pro I have noticed (which is rather important to me) is that
> ftpd does not heed hosts.allow directives when NOT run via inetd.  Am I
> correct in this?  I prefer to use tcpwrappers to further protect my sshd 
> and ftpd.  I generally keep ftpd firewalled off from the world and when 
> someone needs to (anonymous) ftp something to me I open the firewall. 
> But it would be nice to allow only their IP using hosts.allow (as I just 
> enable/disable a generic ruleset in ipfw).  So should I forget to 
> disable the ruleset in ipfw then I am not open all day till I reboot.

When sshd starts, it needs to generate keys and set up its cryptographic
environment, so you will notice a bit of lag before getting a login
prompt.  This may or may not mean anything to you, depending on how
beefy your laptop is.

Check man sshd for the -i option.

sshd should, by default, be compiled with tcpwrappers support anyway.
You can test whether this is the case by putting something like this at
the top of your hosts.allow:

sshd : 127.0.0.1 : deny

and then try connecting on the loopback interface.  If you see `refused
connect from localhost' in your /var/log/auth.log, then your sshd uses
hosts.allow and running it from inetd won't give you any benefit.

I don't know about ftpd, as I don't use it.

Dan

-- 
Daniel Bye

PGP Key: http://www.slightlystrange.org/pgpkey-dan.asc
PGP Key fingerprint: D349 B109 0EB8 2554 4D75  B79A 8B17 F97C 1622 166A
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgp2yiLidkKmK.pgp
Description: PGP signature


Upgrading from 6.0 to 6.1

2006-05-12 Thread jeff . cross
This has possibly been discussed a number of times, and if it has, I  
apologize.  Here is my situation:


I would like to upgrade my existing 6.0-SECURITY system to 6.1-RELEASE  
and continue using freebsd-update to keep my system on the up and up.   
I read through the upgrade instructions on disk #1 of the 6.1 release  
CD and wondered if that would be the easiest way to upgrade?


From what I read, all of the configuration files for 6.1 would be in  
the /etc/upgrade folder.  Would they have to stay there?  Would 6.1,  
from this point forward, always have the /etc folder in /etc/upgrade?   
Do I copy new pieces back to /etc for the production system?  I read  
about merging but does it merge from /etc to /etc/upgrade?


Is another scenario to do the cvsup method and go that route?  If I  
did, would I be able to use freebsd-update from that point forward or  
would I be limited to only using the cvsup method?


I know both require merging config files and what not, which makes me  
a little nervous, but I would like the easiest method available.  I  
love using FreeBSD and use it primarily on my laptop so compiling the  
entire OS on there may take a while so obviously the binary upgrade  
looks good.  I am just unsure about the /etc/upgrade folder and how I  
get all of that back to /etc.


I am somewhat a "noobert" in FreeBSD... I have been using it for less  
than a year and really enjoy it over my past Linux experiences.   
However, things like this make me nervous.  This is my first upgrade  
of a machine I use *all* the time.


Thanks in advance!

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


hello

2006-05-12 Thread justin


I `ve got a question about installing the php5 module.
I`m installing it from the /usr/ports/www/php5-session port.

Everything runs ok and it seems like the module is installed.
There is only one problem, in the httpd.conf there is a LoadModule 
php5_module refering to libexec/apache/libphp5.so.


The library libphp5.so is not made by the install and so my appache will 
not start with the php5 enabled.


What is wrong and what can i do to let the install make the libphp5.so.

Ok thanks in advance,
Justin.





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


Re: Promise SATA controller / Maxtor drive problems

2006-05-12 Thread DAve

Øyvind Skaar wrote:

The drive in question is a Maxtor 6B200M0.


These were Maxtor 6Y080M0 and 6Y160MO drives. Running under onboard 
SATA or Highpoint Rocket Raid cards


The Maxtor drives were problematic for us from the start, and not even 
heavy enough to make good door stops.


So your no big Maxtor fan then? :)


The platters make great clocks, and the drives do a great job of keeping 
the packing material from shifting around during shipment ;^)


Do you think the drives had compatibility problems with the 
controller(s)? Or maybe a driver issue? Kind of hard to believe that so 
many drives are just faulty..


At first we suspected controller issues but the same controller and OS 
has no problems with Seagate drives. I had googled the errors and came 
up with some possible issues with the drivers/kernel, upgrades to the OS 
did not solve the problems.


I suspect that while SATA technology might be good, most SATA drives 
being manufactured are more suited to home users and gamers as "gee whiz 
I have SATA drives!" products. When confronted with a heavily loaded 
mail server they simply are not up to the task.


Future servers have been ordered with SCSI drives using Adaptec cards or 
Perc onboard controllers. No further incidents. I have one other server 
going online with SATA, but it is an old Dell purchased dirt cheap with 
IBM SATA drives running gmirror. Load testing showed now problems after 
running several days. If it dies I'll put in a SCSI card and real HDDs.




Btw, I used this drive with 5.4 release (It think) on another 
controller, but It was one of those cheap Sil controllers, and I got the 
usual* problems.



Anyone know what these checks refer to?

ad4:  Maxtor 6B200M0 BANC1B70
ad4:  398297088 sectors [395136C/16H/63S] 16 sectors/intrupts 1 depth 
queue

ad4:  Promise check1 failed
ad4:  Adaptec check1 failed
ad4:  LSI (v3) check1 failed
ad4:  LSI (v2) check1 failed
ad4:  FreeBSD check1 failed
GEOM: new disk ad4


Never seen it, but it sticks in my mind that disabling ACPI will help. 
Not sure where I read that. Try googling the error.


DAve


--
This message was checked by forty monkeys and
found to not contain any SPAM whatsoever.

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


Re: Trimming Whitespace From Beginning and end of Text Lines

2006-05-12 Thread Giorgos Keramidas
On 2006-05-12 10:41, Warren Block <[EMAIL PROTECTED]> wrote:
>On Fri, 12 May 2006, Giorgos Keramidas wrote:
>> There are at least the following ways:
>>
>>sed -i -e 's/^[[:space:]]*' -e 's/[[:space:]]*$//' file ...
>>perl -pi -e 's/^\s*(\S.*\S)[ \t]*$/$1/' file ...
>>
>> The first one seems more straightforward to me most of the
>> time, but there are times I find Perl's `-pi -e ...' idiom
>> very convenient.
>
> Neither of those work here:
>
> The first sed expression is missing "//".  Correcting that:
>   sed -i -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' test.txt
>   sed: lstat: No such file or directory

Yeah, I noticed the missing // in the first regexp, but only
after I had posted the message.  You're right, of course :)

It seems odd that the fixed expression doesn't work though.
Which version of FreeBSD is this and what sed are you running?

$ uname -v
$ type sed

> The Perl version shows no difference between the original and
> processed file.  It's complex, too.  This one works:
>
>   perl -pi -le 's/^\s+//; s/\s+$//' test.txt
>
> Notes:
> 1. sed always seems to be a pain.  My compliments to those who use it
>regularly; the only time I use it at all is when Perl (or something
>else with better handling of regular expressions) is not available.
> 2. The -l option to perl is needed to preserve line endings.
> 3. The last version is based on the more efficient way of doing it as
>per: man -P 'less +/trim' perlop

Great!  Thanks for all the useful tips :)

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

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

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-05-12 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: Trimming Whitespace From Beginning and end of Text Lines

2006-05-12 Thread Giorgos Keramidas
On 2006-05-12 17:56, "[EMAIL PROTECTED]@mgEDV.net" <[EMAIL PROTECTED]> wrote:
>>> sed -i -e 's/^[[:space:]]*' -e 's/[[:space:]]*$//' file ...
>
> why not use just (you can change the "-" separator to "/" as above):
> sed -e 's-^ *--g' -e 's- *$--g'

Because this provides no additional help with the problem of not
matching TABS and it looks very confusing so close to `-e' and other
command-line options.

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


Reducing the size of /

2006-05-12 Thread Robert Huff

bsd writes:

>  I have three partitions on my server and would like to reduce the  
>  size of / because I am getting quite full !
>  
>  Filesystem SizeUsed   Avail Capacity  Mounted on
>  /dev/ar0s1a3.8G2.8G668M81%/
>  devfs  1.0K1.0K  0B   100%/dev
>  /dev/ar0s1d 60G1.9G 53G 3%/home
>  
>  What are the places I could start looking in to delete not so
>  usefull files, knowing that I am syncing using portsnat (and
>  previously cvsup).

Try this:

du -x / | sort -nr | head -n 50

Look for anything that's bigger than it ought to be.
(I run variations of that on each filesystem daily; at this
point I know what should be there, and if something changes I ask
"Why?".)


Robert Huff





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


Re: Trimming Whitespace From Beginning and end of Text Lines

2006-05-12 Thread Kyrre Nygard

At 16:50 12.05.2006, Martin McCormick wrote:

This looks like something sed should be able to do, but I
haven't had any luck at all.  I wanted to remove any whitespace
that has accidentally gotten added to the beginning or end of
some lines of text.  I made a test file that looks like:

left justified.
   lots of spaces.

and the best I have done so far is to get rid of about 3 spaces.

Attempt 1.

#! /usr/bin/sed -f
s/ \+//g
s/^ //g
s/ $//g

This looks like it should do the job, but the leading and
trailing spaces are still mostly there.

I wrote another script.  Attempt 2.

#! /bin/sh

sed 's/^[[:space:]]//g' \
|sed 's/[[:space:]]$//g'

If I cat the test file through this script, it also
removes one or two spaces, but not all the leading and trailing
whitespace I put there.  I can write a program in C to do this,
but is there a sed script or other native application in FreeBSD that
can do this?

Thank you.

Martin McCormick WB5AGZ  Stillwater, OK
Systems Engineer
OSU Information Technology Department Network Operations Group


What's up man?

Here's a script I use to remove trailing whitespace.

It also reduces two or more empty lines like this:

--





--

To just one:

--

--

And it converts ASCII files to UNIX format (that is without ^M).

Then for pretty sake, it adds an empty line to the end of each file.

--

#!/usr/local/bin/bash
#
#   Remove CRLF, trailing whitespace and double lining.
#   $MERHABA: ascii_clean.sh,v 1.0 2007/11/11 15:09:05 kyrre Exp $
#

for file in `find -s . -type f`; do

if file -b $file | grep -q 'text'; then

echo >> $file

tr -d '\r' < $file | cat -s | sed -E -e 
's/[[:space:]]+$//' > $file.tmp


mv -f $file.tmp $file

echo "$file: Done"

fi

done

--

I'd be interested in knowing if you manage to improve this script.

Take care,
Kyrre

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


Re: Reducing the size of /

2006-05-12 Thread Martin Tournoy
the /usr/ports/distfiles dir are the source files you downloaded while  
installing ports.

You can safly empty the whole directory

You can delete /boot/kernel.old if the new kernel is working

/usr/local/etc/cvsup/sup/src-all/checkouts.cvs can be safly deleted

/usr/ports/INDEX-5 can be deleted, it is used for searching ports (make  
search name=) and some portmanagers, yopu might want to keep it...


You can delete /usr/obj

You might want to delete /usr/src, if your not planning to update often  
that is...


If you don't install/upgrade alot of ports, you can delete the ports tree

On Fri, 12 May 2006 16:28:45 -, bsd <[EMAIL PROTECTED]> wrote:


Hi again,

Most of the files that are "large" seems to be located in /usr/ports/ 
distfiles/


What will be the effect of deleting some of these files ?



root:abcdef 18:14 ~ # find -x / -size +1 -print
/boot/kernel/kernel
/boot/kernel.old/kernel
/root/tmp/dcc.tgz
/usr/local/etc/cvsup/sup/src-all/checkouts.cvs:RELENG_5_3_RELEASE
/usr/local/etc/cvsup/sup/src-all/checkouts.cvs:RELENG_5_3_0_RELEASE
/usr/local/etc/cvsup/sup/src-all/checkouts.cvs:RELENG_5_4
/usr/local/etc/cvsup/sup/ports-all/checkouts.cvs:.
/usr/ports/INDEX-5
/usr/ports/distfiles/emacs-21.3.tar.gz
/usr/ports/distfiles/gettext-0.13.1.tar.gz
/usr/ports/distfiles/xorg/X11R6.7.0-src1.tar.gz
/usr/ports/distfiles/xorg/X11R6.7.0-src3.tar.gz
/usr/ports/distfiles/xorg/X11R6.8.1-src1.tar.gz
/usr/ports/distfiles/xorg/X11R6.8.1-src3.tar.gz
/usr/ports/distfiles/xorg/X11R6.8.2-src1.tar.gz
/usr/ports/distfiles/xorg/X11R6.8.2-src3.tar.gz
/usr/ports/distfiles/bdb/db-4.3.29.tar.gz
/usr/ports/distfiles/ezm3/ezm3-1.2-src.tar.bz2
/usr/ports/distfiles/gettext-0.14.1.tar.gz
/usr/ports/distfiles/perl-5.8.6.tar.bz2
/usr/ports/distfiles/apache21/httpd-2.1.2-alpha.tar.gz
/usr/ports/distfiles/apache21/httpd-2.1.3-alpha.tar.bz2
/usr/ports/distfiles/apache21/httpd-2.1.4-alpha.tar.bz2
/usr/ports/distfiles/python/Python-2.4.tgz
/usr/ports/distfiles/python/Python-2.4.1.tgz
/usr/ports/distfiles/python/Python-2.4.2.tgz
/usr/ports/distfiles/gettext-0.14.4.tar.gz
/usr/ports/distfiles/gettext-0.14.5.tar.gz
/usr/ports/distfiles/perl-5.8.7.tar.bz2
/usr/ports/distfiles/apache2/httpd-2.0.54.tar.bz2
/usr/ports/distfiles/bind-9.3.2.tar.gz
/usr/ports/distfiles/perl-5.8.8.tar.bz2
/usr/ports/distfiles/clamav-0.88.1.tar.gz
/usr/ports/distfiles/mysql-4.1.18.tar.gz
/usr/ports/distfiles/clamav-0.88.2.tar.gz
/usr/ports/distfiles/mysql-4.1.19.tar.gz
/usr/ports/INDEX.db
/usr/ports/INDEX-5.db
/usr/ports/INDEX
/usr/ports/INDEX-6
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc_int/libcc_int.a
/usr/obj/usr/src/gnu/usr.bin/cc/cc_int/libcc_int.a
/usr/obj/usr/src/sys/GENERIC/kernel
/var/db/pkg/pkgdb.db
/var/db/mysql/ibdata1
/var/db/mysql/ib_logfile0
/var/db/mysql/ib_logfile1
/var/named/var/log/dns.log.0
/var/amavis/.spamassassin/auto-whitelist


Thks again.


Le 12 mai 06 à 18:20, Bill Moran a écrit :


bsd <[EMAIL PROTECTED]> wrote:


Hello,

I have three partitions on my server and would like to reduce the
size of / because I am getting quite full !

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ar0s1a3.8G2.8G668M81%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ar0s1d 60G1.9G 53G 3%/home


What are the places I could start looking in to delete not so usefull
files, knowing that I am syncing using portsnat (and previously cvsup).


Try installing pkg_cutleaves port and see if it can help you clean up
unneeded ports.  Also, consider trimming down your log files in / 
var/log.


You can also use the "du -hd1 /" trick to narrow down where all the
space is being used.  Depending on what's installed on the server,  
however,

I doubt you'll be able to free up much of that space.

--Bill Moran

MAL: Hell, this job I would pull for free.
ZOE: Can I have your share?
MAL: No.
ZOE: If you die, can I have your share?
MAL: Yes.




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

Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz

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




___
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]"


Re: pam_userdb.so: Where is it?

2006-05-12 Thread Kyrre Nygard

At 18:36 10.05.2006, N.J. Thomas wrote:

* Kyrre Nygard <[EMAIL PROTECTED]> [2006-05-10 18:18:23 +0200]:
> > > Does anybody know where pam_userdb.so has gone?
> >
> > FreeBSD doesn't appear to have ever had it, so it hasn't "gone"
> > anywhere. The thread you linked to below suggests exactly that.
> >
> >
> > You could download the source and try and build it.
>
> That's a real good advice. I'll see what I can do with it ...

Kyrre,

More info for you, digging through the archives came up with this:


http://lists.freebsd.org/pipermail/freebsd-questions/2006-April/117922.html

Quoting:

> > There's no pam_userdb.so available for FreeBSD. You could use
> > pam_pwdfile.so, which is in the ports-collection. Users are
> > added/changed e.g. through htpasswd. Works well if you have not a lot of
> > accounts.
> >
> > a simple vsftpd.pam could look like this:
> >
> > authrequired /usr/local/lib/pam_pwdfile.so pwdfile /etc/vsftpd_login
> > account required /usr/lib/pam_permit.so
>
>
> Just to let you know that worked a treat

hth,
Thomas

--
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___


Thank you so much man.

This worked wonders for me :)

All the best,
Kyrre


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


Re: ftp install / base not found

2006-05-12 Thread Kevin Kinsey

Mike Hunter wrote:


I was able to install 5.3-RELEASE using this as the specified URL:

ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/5.3-RELEASE



Good to know that!  This one goes in the "save" folder!



What bothers me is this verbiage from sysinstall:

"Only the Primary sites are guaranteed to carry the full range of possible
distributions."

I'm ok with having to use an archive ftp server for the crufty
distribution I'm trying to install, but don't lie to me and say I don't
have to!  *sniff*


Heh, now we have to define "possible"? ;-)

KDK


--
A prig is a fellow who is always making you a present of his opinions.
-- George Eliot

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


Re: very slow boot (newbie)

2006-05-12 Thread Warren Block

On Fri, 12 May 2006, Barnaby Scott wrote:


Parv wrote:
...

and then stops! I have timed it - it stops for between 4 and 5
minutes every time.


Does your screen goes blank just after the above message?  If so,
press [Enter] key, you should see the boot being continued, and
"login:" waiting for input at the end.


No the screen still has all the previous clutter on it, and pressing [Enter] 
just makes a new line


Press Ctrl-C instead.

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


Re: Reducing the size of /

2006-05-12 Thread Kevin Kinsey

bsd wrote:

Hi again,

Most of the files that are "large" seems to be located in 
/usr/ports/distfiles/


What will be the effect of deleting some of these files ?




If you need/want to rebuild the ports for the distfiles,
they will have to be downloaded again.

Many of them may be for outdated ports, so they could be
deleted.  Of course, once in a while somebody comes looking
for old distfiles.

What about moving the distfiles to someplace in /home
and symlinking?

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


Re: Reducing the size of /

2006-05-12 Thread Bill Moran
bsd <[EMAIL PROTECTED]> wrote:

> Hi again,
> 
> Most of the files that are "large" seems to be located in /usr/ports/ 
> distfiles/
> 
> What will be the effect of deleting some of these files ?

If you reinstall those ports, you'll have to download the files again.

Unless you have very limited Internet access, cleaning out
/usr/ports/distfiles is a pretty safe way to free up space.

-- 
Bill Moran

Well, let's see. We killed Simon and River, stole a bunch of medicine, and
now the captain and Zoe are off springing the others got snatched by
the Feds.

Kaylee

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


makeworld FAILURE on 5.4-STABLE

2006-05-12 Thread Kyrre Nygard


Hello ...

When doing makeworld, and this is my exact procedure:

cvsup -g -L 2 /etc/cvsupfile
cd /usr/obj
chflags -R noschg
rm -rf *
cd /usr/src
make clean

make buildworld (this is where it fails)

make buildkernel KERNCONF=NINJA
make installkernel KERNCONF=NINJA
make installworld
mergemaster

With this error:

===> usr.sbin/traceroute (all)
cc -O2 -fno-strict-aliasing -pipe  -DHAVE_SYS_SELECT_H=1 
-DHAVE_SYS_SOCKIO_H=1  -DHAVE_NET_ROUTE_H=1 
-DHAVE_NET_IF_DL_H=1  -DHAVE_STRERROR=1 
-DHAVE_USLEEP=1  -DHAVE_SYS_SYSCTL_H=1  -DHAVE_SETLINEBUF=1 
-DHAVE_RAW_OPTIONS=1  -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 
-DIPSEC 
-I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl  -c version.c
cc -O2 -fno-strict-aliasing -pipe  -DHAVE_SYS_SELECT_H=1 
-DHAVE_SYS_SOCKIO_H=1  -DHAVE_NET_ROUTE_H=1 
-DHAVE_NET_IF_DL_H=1  -DHAVE_STRERROR=1 
-DHAVE_USLEEP=1  -DHAVE_SYS_SYSCTL_H=1  -DHAVE_SETLINEBUF=1 
-DHAVE_RAW_OPTIONS=1  -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 
-DIPSEC 
-I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl  -c 
/usr/src/usr.sbin/traceroute/../../contrib/traceroute/traceroute.c
cc -O2 -fno-strict-aliasing -pipe  -DHAVE_SYS_SELECT_H=1 
-DHAVE_SYS_SOCKIO_H=1  -DHAVE_NET_ROUTE_H=1 
-DHAVE_NET_IF_DL_H=1  -DHAVE_STRERROR=1 
-DHAVE_USLEEP=1  -DHAVE_SYS_SYSCTL_H=1  -DHAVE_SETLINEBUF=1 
-DHAVE_RAW_OPTIONS=1  -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 
-DIPSEC 
-I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl  -c 
/usr/src/usr.sbin/traceroute/../../contrib/traceroute/ifaddrlist.c
cc -O2 -fno-strict-aliasing -pipe  -DHAVE_SYS_SELECT_H=1 
-DHAVE_SYS_SOCKIO_H=1  -DHAVE_NET_ROUTE_H=1 
-DHAVE_NET_IF_DL_H=1  -DHAVE_STRERROR=1 
-DHAVE_USLEEP=1  -DHAVE_SYS_SYSCTL_H=1  -DHAVE_SETLINEBUF=1 
-DHAVE_RAW_OPTIONS=1  -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 
-DIPSEC 
-I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl  -c 
/usr/src/usr.sbin/traceroute/../../contrib/traceroute/findsaddr-socket.c
cc -O2 -fno-strict-aliasing -pipe  -DHAVE_SYS_SELECT_H=1 
-DHAVE_SYS_SOCKIO_H=1  -DHAVE_NET_ROUTE_H=1 
-DHAVE_NET_IF_DL_H=1  -DHAVE_STRERROR=1 
-DHAVE_USLEEP=1  -DHAVE_SYS_SYSCTL_H=1  -DHAVE_SETLINEBUF=1 
-DHAVE_RAW_OPTIONS=1  -DHAVE_SOCKADDR_SA_LEN=1 -DHAVE_ICMP_NEXTMTU=1 
-DIPSEC 
-I/usr/src/usr.sbin/traceroute/../../contrib/traceroute/lbl   -o 
traceroute version.o traceroute.o ifaddrlist.o findsaddr-socket.o -lipsec

traceroute.o(.text+0x7): In function `usage':
: undefined reference to `version'
*** Error code 1

Stop in /usr/src/usr.sbin/traceroute.
*** Error code 1

Stop in /usr/src/usr.sbin.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

Does anyone know what I can do to fix it?

Thanks,
Kyrre

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


Re: Trimming Whitespace From Beginning and end of Text Lines

2006-05-12 Thread Warren Block

On Fri, 12 May 2006, Giorgos Keramidas wrote:


There are at least the following ways:

sed -i -e 's/^[[:space:]]*' -e 's/[[:space:]]*$//' file ...
perl -pi -e 's/^\s*(\S.*\S)[ \t]*$/$1/' file ...

The first one seems more straightforward to me most of the time,
but there are times I find Perl's `-pi -e ...' idiom very convenient.


Neither of those work here:

The first sed expression is missing "//".  Correcting that:
  sed -i -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' test.txt
  sed: lstat: No such file or directory

The Perl version shows no difference between the original and processed 
file.  It's complex, too.  This one works:


  perl -pi -le 's/^\s+//; s/\s+$//' test.txt

Notes:
1. sed always seems to be a pain.  My compliments to those who use it
   regularly; the only time I use it at all is when Perl (or something
   else with better handling of regular expressions) is not available.
2. The -l option to perl is needed to preserve line endings.
3. The last version is based on the more efficient way of doing it as
   per: man -P 'less +/trim' perlop

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


Upgrading 6.0 to 6.1 with etcmerge

2006-05-12 Thread Ashley Moran
I've got a few 6.0-RELEASE machines I want to bring up to date.  I want to use 
etcmerge because mergemaster scares the bejesus out of me.

I can create a copy of the standard 6.0-REL /etc using mergemaster, and 
copying /var/tmp/temproot/src to /var/db/src, that's no problem

But I notice /usr/src/UPDATING contains the following:

  20060204:
The 'audit' group was added to support the new auditing functionality
in the base system.  Be sure to follow the directions for updating,
including the requirement to run mergemaster -p.

So I figure after rebooting into single user mode and installing the new 
world, I have to take an extra step?  I never figured out how to deal with 
the binary password db with etc merge, and I can't see anything in the man 
page.

I hope someone can clear it up.  I assume etcmerge is widely used, but it's 
not been updated (significantly) for so long I'm not sure.  (Personally I 
think it should be in the  base system!)

Thanks
Ashley

-- 
"If you do it the stupid way, you will have to do it again"
  - Gregory Chudnovsky
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Reducing the size of /

2006-05-12 Thread John Nielsen
On Friday 12 May 2006 12:28, bsd wrote:
> Hi again,
>
> Most of the files that are "large" seems to be located in /usr/ports/
> distfiles/
>
> What will be the effect of deleting some of these files ?

You will have to download them again if you rebuild / reinstall the packages 
that use them.  Of course, that happens automatically and there's a good 
chance that you'll need a new version next time you update your installed 
ports, so go ahead and delete them, especially if you have a good Internet 
connection.

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


Re: fsck way too slow

2006-05-12 Thread Chuck Swiger

Andrea Venturoli wrote:
Just to clarify: running "fsck /" (read-only) in multiuser mode 
takes less than a minute. fsck at boot takes approx. 50 times that 
long!


...and yes, that difference is not reasonable.  Are you using bgfsck 
or not...?


Hm, what do you mean?
I'd gladly let my system fsck in background after boot, but it won't 
do that on a root partition, as mentioned somewhere else on this thread.
However, apart from that, I've set everything up according to this 
wish of mine (i.e. I enabled softupdates and I did not put 
background_fsck="NO" in my /etc/rc.conf).
Try turning off background fsck and see whether it does better, the next 
time the system comes back up after an unclean shutdown.  I think bgfsck 
has some kind of built-in throttling to avoid doing too much I/O, which 
may not be working quite right in this case, causing it to simply hang 
out mostly idle rather than finishing the filesystem check.


If you have to wait 5-minutes up front rather than sitting with the 
thing crawling for an hour, maybe that's a better tradeoff...?  Either 
way, it would be interesting to know whether automatic fsck'ing in the 
foreground procedes at a reasonable speed or not.


--
-Chuck

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


Pros and Cons of running under inetd....

2006-05-12 Thread Eric Schuele

Hello,

I run sshd and ftpd on my laptop.  I generally start them via:
  sshd_enable="YES"
  ftpd_enable="YES"
in my rc.conf.

What are the pros/cons of running them via inetd?

This is in no way a high load or production machine.  Just my laptop
that I need access to from time to time.

The one pro I have noticed (which is rather important to me) is that
ftpd does not heed hosts.allow directives when NOT run via inetd.  Am I
correct in this?  I prefer to use tcpwrappers to further protect my sshd 
and ftpd.  I generally keep ftpd firewalled off from the world and when 
someone needs to (anonymous) ftp something to me I open the firewall. 
But it would be nice to allow only their IP using hosts.allow (as I just 
enable/disable a generic ruleset in ipfw).  So should I forget to 
disable the ruleset in ipfw then I am not open all day till I reboot.


Thanks.
--
Regards,
Eric

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


Re: fsck way too slow

2006-05-12 Thread Andrea Venturoli

Daniel Bye wrote:


Yeah, I realise that.  I'm afraid I don't know why fsck should take so
long on your disk.  Chuck suggested some things you might try, though.


Yeah, sorry, my fault. I intended to answer on the ml, but instead I 
mailed him privately.





It sounds to me like it might be failing hardware, but you need to try
some diagnostics, and not take my word for it!


I had run other tests before, as well as what Chuck suggested: my drive 
is not failing.




Also, fsck in multiuser mode takes 1/50 of what it needs at boot.




I've tried putting the thread back on the ml...



 bye & Thanks
av.

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


Re: Reducing the size of /

2006-05-12 Thread bsd

Hi again,

Most of the files that are "large" seems to be located in /usr/ports/ 
distfiles/


What will be the effect of deleting some of these files ?



root:abcdef 18:14 ~ # find -x / -size +1 -print
/boot/kernel/kernel
/boot/kernel.old/kernel
/root/tmp/dcc.tgz
/usr/local/etc/cvsup/sup/src-all/checkouts.cvs:RELENG_5_3_RELEASE
/usr/local/etc/cvsup/sup/src-all/checkouts.cvs:RELENG_5_3_0_RELEASE
/usr/local/etc/cvsup/sup/src-all/checkouts.cvs:RELENG_5_4
/usr/local/etc/cvsup/sup/ports-all/checkouts.cvs:.
/usr/ports/INDEX-5
/usr/ports/distfiles/emacs-21.3.tar.gz
/usr/ports/distfiles/gettext-0.13.1.tar.gz
/usr/ports/distfiles/xorg/X11R6.7.0-src1.tar.gz
/usr/ports/distfiles/xorg/X11R6.7.0-src3.tar.gz
/usr/ports/distfiles/xorg/X11R6.8.1-src1.tar.gz
/usr/ports/distfiles/xorg/X11R6.8.1-src3.tar.gz
/usr/ports/distfiles/xorg/X11R6.8.2-src1.tar.gz
/usr/ports/distfiles/xorg/X11R6.8.2-src3.tar.gz
/usr/ports/distfiles/bdb/db-4.3.29.tar.gz
/usr/ports/distfiles/ezm3/ezm3-1.2-src.tar.bz2
/usr/ports/distfiles/gettext-0.14.1.tar.gz
/usr/ports/distfiles/perl-5.8.6.tar.bz2
/usr/ports/distfiles/apache21/httpd-2.1.2-alpha.tar.gz
/usr/ports/distfiles/apache21/httpd-2.1.3-alpha.tar.bz2
/usr/ports/distfiles/apache21/httpd-2.1.4-alpha.tar.bz2
/usr/ports/distfiles/python/Python-2.4.tgz
/usr/ports/distfiles/python/Python-2.4.1.tgz
/usr/ports/distfiles/python/Python-2.4.2.tgz
/usr/ports/distfiles/gettext-0.14.4.tar.gz
/usr/ports/distfiles/gettext-0.14.5.tar.gz
/usr/ports/distfiles/perl-5.8.7.tar.bz2
/usr/ports/distfiles/apache2/httpd-2.0.54.tar.bz2
/usr/ports/distfiles/bind-9.3.2.tar.gz
/usr/ports/distfiles/perl-5.8.8.tar.bz2
/usr/ports/distfiles/clamav-0.88.1.tar.gz
/usr/ports/distfiles/mysql-4.1.18.tar.gz
/usr/ports/distfiles/clamav-0.88.2.tar.gz
/usr/ports/distfiles/mysql-4.1.19.tar.gz
/usr/ports/INDEX.db
/usr/ports/INDEX-5.db
/usr/ports/INDEX
/usr/ports/INDEX-6
/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/cc_int/libcc_int.a
/usr/obj/usr/src/gnu/usr.bin/cc/cc_int/libcc_int.a
/usr/obj/usr/src/sys/GENERIC/kernel
/var/db/pkg/pkgdb.db
/var/db/mysql/ibdata1
/var/db/mysql/ib_logfile0
/var/db/mysql/ib_logfile1
/var/named/var/log/dns.log.0
/var/amavis/.spamassassin/auto-whitelist


Thks again.


Le 12 mai 06 à 18:20, Bill Moran a écrit :


bsd <[EMAIL PROTECTED]> wrote:


Hello,

I have three partitions on my server and would like to reduce the
size of / because I am getting quite full !

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ar0s1a3.8G2.8G668M81%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ar0s1d 60G1.9G 53G 3%/home


What are the places I could start looking in to delete not so usefull
files, knowing that I am syncing using portsnat (and previously  
cvsup).


Try installing pkg_cutleaves port and see if it can help you clean up
unneeded ports.  Also, consider trimming down your log files in / 
var/log.


You can also use the "du -hd1 /" trick to narrow down where all the
space is being used.  Depending on what's installed on the server,  
however,

I doubt you'll be able to free up much of that space.

--
Bill Moran

MAL: Hell, this job I would pull for free.
ZOE: Can I have your share?
MAL: No.
ZOE: If you die, can I have your share?
MAL: Yes.




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

Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz

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




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


Re: fsck way too slow

2006-05-12 Thread Andrea Venturoli

Chuck Swiger wrote:

OK, I agree that this doesn't sound like a hardware problem with the 
drive now that you've tested it, but it was at least worth looking at.


Ok, thanks for pointing it out, anyway :)



Just to clarify: running "fsck /" (read-only) in multiuser mode takes 
less than a minute. fsck at boot takes approx. 50 times that long!


...and yes, that difference is not reasonable.  Are you using bgfsk or 
not...?


Hm, what do you mean?
I'd gladly let my system fsck in background after boot, but it won't do 
that on a root partition, as mentioned somewhere else on this thread.
However, apart from that, I've set everything up according to this wish 
of mine (i.e. I enabled softupdates and I did not put 
background_fsck="NO" in my /etc/rc.conf).


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


Re: Reducing the size of /

2006-05-12 Thread Bill Moran
bsd <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I have three partitions on my server and would like to reduce the  
> size of / because I am getting quite full !
> 
> Filesystem SizeUsed   Avail Capacity  Mounted on
> /dev/ar0s1a3.8G2.8G668M81%/
> devfs  1.0K1.0K  0B   100%/dev
> /dev/ar0s1d 60G1.9G 53G 3%/home
> 
> 
> What are the places I could start looking in to delete not so usefull  
> files, knowing that I am syncing using portsnat (and previously cvsup).

Try installing pkg_cutleaves port and see if it can help you clean up
unneeded ports.  Also, consider trimming down your log files in /var/log.

You can also use the "du -hd1 /" trick to narrow down where all the
space is being used.  Depending on what's installed on the server, however,
I doubt you'll be able to free up much of that space.

-- 
Bill Moran

MAL: Hell, this job I would pull for free.
ZOE: Can I have your share?
MAL: No.
ZOE: If you die, can I have your share?
MAL: Yes.

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


Re: fsck way too slow

2006-05-12 Thread Daniel Bye
On Fri, May 12, 2006 at 05:46:57PM +0200, Andrea Venturoli wrote:
> Daniel Bye wrote:
> 
> >So, as jerry said, it's a Bad Idea to have just one partition, for many
> >reasons, this being among them.
> 
> 
> Ok, I know that. Still this wasn't the point of my request. I've been 
> answered the first questions, but I'm still wondering on the second one...

Yeah, I realise that.  I'm afraid I don't know why fsck should take so
long on your disk.  Chuck suggested some things you might try, though.
It sounds to me like it might be failing hardware, but you need to try
some diagnostics, and not take my word for it!

Dan

-- 
Daniel Bye

PGP Key: http://www.slightlystrange.org/pgpkey-dan.asc
PGP Key fingerprint: D349 B109 0EB8 2554 4D75  B79A 8B17 F97C 1622 166A
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpjg0WlfkOGF.pgp
Description: PGP signature


Re: 1 cpu + 2 monitors + 2 keybord/mouse is it possible

2006-05-12 Thread Greg 'groggy' Lehey
On Friday, 12 May 2006 at 18:44:01 +0400, Igor Robul wrote:
> On Fri, May 12, 2006 at 10:35:43AM -0400, Bakki Kudva wrote:
>> How about using x-terminals on a network? I remember seeing them in
>> the surplus market for $15 recently. After all X is designed to be a
>> network gui.
> X-Terminals may
>  1) Not work good with non-English languages
>  2) Have bad (<80 Hz) refresh rate
>
> Also, for example, I'm not sure I could find any X-Terminal for $15 or
> even $50 on any market in any country.

I'm sure you'll find X terminals cheaply from time to time.  But
in addition to the problems you mention, they're frequently slow,
especially by today's standards.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers


pgp9FJ917SyN6.pgp
Description: PGP signature


Reducing the size of /

2006-05-12 Thread bsd

Hello,

I have three partitions on my server and would like to reduce the  
size of / because I am getting quite full !


Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ar0s1a3.8G2.8G668M81%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ar0s1d 60G1.9G 53G 3%/home


What are the places I could start looking in to delete not so usefull  
files, knowing that I am syncing using portsnat (and previously cvsup).



Thks.


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

Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz

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




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


Re: Trimming Whitespace From Beginning and end of Text Lines

2006-05-12 Thread Chuck Swiger

Giorgos Keramidas wrote:

On 2006-05-12 11:27, Chuck Swiger <[EMAIL PROTECTED]> wrote:
  

It is, and I wish to acknowledge the above are entirely valid solutions
to the problem, but...

  python -c 'import sys; print sys.stdin.read().strip()' < file...

...has the advantage of being human readable.  My old 300-baud accoustic
modem used to generate output which in hindsight looks astonishingly
close to regex character classes.  :-)



HEH!  I see the joke about Perl being similar to "line noise" is not
something local to our Greek IRC channels :)


Indeed.  :)  I must confess that it doesn't do in-place replacement of 
the files, though.  I'd have to do a two-liner, I guess:


 python -c 'import sys,fileinput
 for line in fileinput.input(inplace=1): print line.strip()' file1 
file2 ...


--
-Chuck

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


Re: ftp install / base not found

2006-05-12 Thread Mike Hunter

> On May 11 at 17:06, "Andy Reitz" wrote:
> 
> > On Thu, 11 May 2006, Johan Nilsson wrote:
> > 
> > > But can you do a ftp-install from an archived version? If, how?
> > 
> > Johan,
> > 
> > While I have never tried this, sysinstall appears to support entering
> > non-standard FTP URLs. After you choose the FTP option, you can choose the
> > FTP server. The second option in this list is 'URL', which allows you to
> > type in any FTP site -- and as I presume, the ftp-archive site will work
> > if entered here.
> 
> I will give this a try tomorrow.

I was able to install 5.3-RELEASE using this as the specified URL:

ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/5.3-RELEASE

What bothers me is this verbiage from sysinstall:

"Only the Primary sites are guaranteed to carry the full range of possible
distributions."

I'm ok with having to use an archive ftp server for the crufty
distribution I'm trying to install, but don't lie to me and say I don't
have to!  *sniff*

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


Re: Trimming Whitespace From Beginning and end of Text Lines

2006-05-12 Thread Martin McCormick
Chuck Swiger quotes and writes:
>Giorgos Keramidas wrote:
>> This fails to remove multiple occurences of the [[:space:]] class.
>>
>> There are at least the following ways:
>>
>>  sed -i -e 's/^[[:space:]]*' -e 's/[[:space:]]*$//' file ...

That did it!  As soon as I saw the *, I knew what I was
not doing.

>>  perl -pi -e 's/^\s*(\S.*\S)[ \t]*$/$1/' file ...
>>
>> The first one seems more straightforward to me most of the time,
>> but there are times I find Perl's `-pi -e ...' idiom very convenient.
>>   
>It is, and I wish to acknowledge the above are entirely valid solutions 
>to the problem, but...
>
>   python -c 'import sys; print sys.stdin.read().strip()' < file...
>
>...has the advantage of being human readable.  My old 300-baud accoustic 
>modem used to generate output which in hindsight looks astonishingly 
>close to regex character classes.  :-)

Wow!  I'd almost forgotten some of that by-gone era.  I
had a 1200-baud modem that, in conjunction with the clock slips
between our local telephone company and our PBX, used to march []
and various other garbage characters that did look just like
regex.  You just had to keep re-dialing until you finally got a
connection that worked.

Thanks to everyone for the help.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Network Operations Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: gmirror and partitioning

2006-05-12 Thread Nagy László Zsolt



Laszlo,

You're making gmirror way too difficult.  In short, install FreeBSD with
however many partitions you want, then install gmirror and replicate
your disk to the second disk.

The standard howto documents are:

http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/

http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html

http://people.freebsd.org/~rse/mirror/

I've used Danny's and Ralf's (the first and third).  Danny's is simpler,
but Ralf's has the advantage that it can be done remotely.  Danny's
website now recommends Dru's (the second).  You may want to try that
first.

Let us know how it goes,
  
This looks easy. I'll get the hardware on 19th, but I'll let you know 
how it goes.

Thank you!

  Laszlo


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


Re: very slow boot (newbie)

2006-05-12 Thread Kevin Kinsey

Barnaby Scott wrote:


The fact that the operating system knows what the machine is called,
does not necessarily mean that the name is in the DNS.  You can put an
entry in your /etc/hosts file (take a look at the file for the format),
which will allow sendmail and other daemons to start.


OK, I looked in /etc/hosts and only 127.0.0.1 localhost appears there. 
How do I put another entry in here though, when I don't know in advance 
the IP address that will be allocated to this machine by the DHCP server 
(provided by my router)? The odd thing is that the system knows exactly 
what IP address has been assigned, because I can see that transaction 
taking place during the boot sequence long before the point where it 
stalls.


  You should also

check that your hostname is in the DNS.  You might find something like
DynDNS or ZoneEdit useful if your machine is on a dynamically assigned
domestic range, such as you'd get from NTL or Telewest.


Do I really want it in the DNS? I'm not sure exactly what this means in 
the context of my little network, but if it means people outside my 
network being able to look for my computer by name, I certainly don't 
want that. In case it is important, I should say that during 
installation I was asked to configure my NIC and that was where I put a 
hostname, but I *didn't* enter a domain name. Should I have put 
something here - if so, what?




Lack of name resolution can cause several things to be
"slow" during booting, but SendMail is the chief culprit.
Do you need SendMail?  If this is a workstation on a LAN,
don't you have another SMTP server available for your
mail client?

If you don't need sendmail, I'd do this:

sendmail_enable="NONE"

in /etc/rc.conf, and reboot.  Good chance things'll
speed up.

We are still just shooting in the dark here.  Are there no
log messages or additional indicators of what the trouble may be?


Kevin Kinsey

--
Majority, n.:
That quality that distinguishes a crime from a law.

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


  1   2   >