upgrade by hand

2005-12-27 Thread David Bear
In all the searches I've done about upgrade from a Rel4.x to Rel6. all
the info seems to center on using cvsup and port upgrade, and using
Rel5 is an intermediate step to get to Rel6.

Maybe I just like pain, but are there any instructions for 'manually'
upgrading from 'most any prior freebsd' to latest production release?

In other words, what files MUST be backed up and restored
(master.password, etc) and what CANNOT be reused (changes to current
password/group files or other files are too much to allow an upgrade
of this type)

I'm just concerned about Freebsd base  -- I only use 3 items from the
ports collection and I don't mind rebuilding these.

(perhaps I'm stuck on the word 'upgrade' when there is a better word
for a format and reload but preserve user/group/file system mode bits
etc)

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


bad tape hanging machine

2005-07-12 Thread David Bear
I have a freebsd 4.x machine running simple file and print services.
It has a scsi tape drive installed -- externally. It is attached to an
adaptec 2940uw. The internal 3 hard drives are attached to an adaptec
29160.

Last friday, the whole system locked up with an ugly error message
about scb's and scsi buffers .. lots of garbage. I was afraid I had
lost a hard drive.

So I started removing the drives and testing each one individually.
They all were perfect. So I removed the tape from the tape drive, and
booted the system.  Boot normally.. all is well. I put a new tape in
the drive, run a tar job to it okay. Run a dump of all file systems,
ok.

Now I wondering, could a bad tape cause the whole system to lock up?
That seems really BAD to have a single cassette tape bring a whole
system down.  Anyone else seen this?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


best practices for administration

2005-05-11 Thread David Bear
Since the BSD community seems to be more security conscious than other
(read windows system administrators) groups, I wanted to see if anyone
here would have any pointers to best practices documents when 
administering ANY operating system, not just FreeBSD. I am assuming
that many of you must manage other operating systems as well.

The nexus of my query lies in my attempt to have our central IT folks
issue additional identities for users to have when administering the
systems versus doing productivity work on them. I'd like to understand
what is done generally when granting users permissions to do things on
the operating system that imply 'administration', ie installing
software, adding printers, modifying system scripts, etc. There are
some here who think that putting standard user ID's into
administrative 'groups' is sufficient for granting such priveledges.

hopefully, I'm not being too obscure.
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


portupgrade overview

2005-03-25 Thread David Bear
I've used portupgrade for a while without really knowing much about
it. I suppose thats a benefit.

However, when it comes to really controlling the portupgrade
processes, I find the man page of minimal use.

Thats becuase the man pages seem to be written for someone who already
knows everything that portupgrade is doing, ie there seems to be a lot
of a priori knowledge expected of the reader.

I am hoping there is better documentation of portupgrade. Something
that specifies the reasons behind what it does -- why some of the
switches are necessary, how to hold back upgrade of certain ports, how
to only allow security updates to happen, etc.

Does any such document exist?
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


awk print

2005-02-23 Thread David Bear
I'm using awk to parse a directory listing. I was hoping there is a
way to tell awk to print from $2 - to the end of the columns
available. 

find ./ -name '*stuff' | awk '{FS=/ print $3---'}

the $3-- I want to mean -- print from col 3 to the end.

Any awk pros?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: awk print

2005-02-23 Thread David Bear
On Wed, Feb 23, 2005 at 11:19:26PM +0100, Roland Smith wrote:
 On Wed, Feb 23, 2005 at 02:40:10PM -0700, David Bear wrote:
  I'm using awk to parse a directory listing. I was hoping there is a
  way to tell awk to print from $2 - to the end of the columns
  available. 
  
  find ./ -name '*stuff' | awk '{FS=/ print $3---'}
 
 Is this what you mean?:
 
 find ./ -name '*stuff'|sed 's|\.[^/]*/[^/]*/||g'

thanks for the advice. No, this doesn't do what I want.

If I have a directory path /stuff/stuff/more/stuff/more/and/more
that is n-levels deep, I want to be able to cut off the first two
levels and print the from 2 to the Nth level.

 
 Roland
 -- 
 R.F. Smith   /\ASCII Ribbon Campaign
 r s m i t h @ x s 4 a l l . n l  \ /No HTML/RTF in e-mail
 http://www.xs4all.nl/~rsmith/ X No Word docs in e-mail
 public key: http://www.keyserver.net / \Respect for open standards



-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


moving files from bad sectors

2005-02-16 Thread David Bear
I have a hard disk that looks like its going out.

So far, there are 6 reported crc errors.  However, I have a file that
I would like to read as much as possible of using tar, but the whole
job stops like this:


 # tar cvf /dev/nrsa0 /home  /root/tarhome.cat
tar: Removing leading `/' from member names
tar: /home/smbshare1/BUDGETS/RXS0008 fy04 kellogg report and
summary.xls: Read error at byte 14848, reading 10240 bytes:
Input/output error
tar: Error exit delayed from previous errors

When attempting to cp that same file I get another error and the cp
stops.

Are there any tools that will permit me to cp as much of this file as
possible, ie all sectors up to, and then past, the bad spot?

as another possibility, are there any tools that I can use with fsck
that would  mark the sector as bad so its not reused?
 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


dell poweredge servers

2005-02-07 Thread David Bear
I was looking at the support hardware list for Fbsd 5.x and could find
no mention of the PERC3-DI scsi controller.. so I was wondering if
anyone has used a dell poweredge 2650, and what your experience was
running Freebsd 4.X and 5.x on it.

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gtar failing, please help!

2005-02-02 Thread David Bear
On Wed, Feb 02, 2005 at 02:29:26PM -0500, Kevin A. Pieckiel wrote:
 On Wed, Feb 02, 2005 at 02:03:45PM -0500, Kevin A. Pieckiel wrote:
  I have some backup scripts that manipulate a tape library and tape
  drive to perform my nightly backups.  Ever since the switch from
  gtar to bsdtar in the base system, gtar fails to write any data
  to my tape and usually puts my SCSI bus in an unusable state.  I
  must then issue a camcontrol reset command to free up the tape
  drive for use.
 
 Just for grins, I tried playing with dump.  Dump fails as well:
 
 # dump -0 -a -b 64 -C 32 -f /dev/nsa0 -n -u -L /

since you are using a tape, have you checked with 
dmesg (for kernel message about the tape)
mt errstat (cryptic output, but maybe someone here could help)

or rather try

dd if=/dev/zero of=/dev/nsa0 bs=512 count=1

then play with different bs and count number. This will show you what
your tape block size is -- and if your tape has some kind of crc
error at a block, will also stop consistently at the same location.

for me, my experience down scsi tape units and freebsd has been a road
into the black abyss. I've finally got the tape dumps to work -- but
it took many hours of trial and error. 

btw, I wonder how many tape unit users get burned by the fact that
they don't test their tapes -- and when they need the tape find that
it was bad..


   DUMP: Date of this level 0 dump: Wed Feb  2 14:27:05 2005
   DUMP: Date of last level 0 dump: the epoch
   DUMP: Dumping snapshot of /dev/amrd0s1a (/) to /dev/nsa0
   DUMP: mapping (Pass I) [regular files]
   DUMP: Cache 32 MB, blocksize = 65536
   DUMP: mapping (Pass II) [directories]
   DUMP: estimated 176863 tape blocks.
   DUMP: dumping (Pass III) [directories]
   DUMP: write error 64 blocks into volume 1
   
  
 Broadcast Message from [EMAIL PROTECTED] 
 (/dev/ttyp0) at 14:27 EST...  
  
   
  
 Message from the dump program to all operators  
   
  
 DUMP: NEEDS ATTENTION: write error 64 blocks into volume 1
  
 DUMP WRITE ERROR! 
  
   
  
   DUMP: Do you want to restart?: (yes or no)
 
 I just don't know what to do.  I'm half tempted to use Windows for
 the fileserver at this point.  I *need* working backups!
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


hard drive errors

2005-01-20 Thread David Bear
I am receiving the following errors on my hard drive. This appears to
affect some file in /var/log. My question is twofold. 1) shouldn't ufs
notice this sector as being unuseable and mark it offlimites? 2) if
not, is there a way to mark it so manually?


ad0s1g: hard error reading fsbn 19674311 of 6765124-6765135 (ad0s1 bn
19674311; cn 1618 tn 16 sn 41) status=59 error=40
ad0s1g: hard error reading fsbn 6765124 (ad0s1 bn 6765124; cn 556 tn
74 sn 58) status=59 error=40
ad0s1h: hard error reading fsbn 88412159 of 35809248-35809251 (ad0s1
bn 88412159; cn 7271 tn 64 sn 38) status=59 error=40
ad0s1h: hard error reading fsbn 35809251 (ad0s1 bn 35809251; cn 2945
tn 15 sn 51) status=59 error=40
ad0s1g: hard error reading fsbn 19674303 of 6765120-6765133 (ad0s1 bn
19674303; cn 1618 tn 16 sn 33) status=59 error=40
ad0s1g: hard error reading fsbn 6765124 (ad0s1 bn 6765124; cn 556 tn
74 sn 58) status=59 error=40

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sudo syntax

2004-08-26 Thread David Bear
I want to run a command

tar czf - / | ssh [EMAIL PROTECTED] dd of=tarball.tgz

I need to run tar as root.  However, I need to run ssh as user 'id'.

I tried 

sudo tar czf - / | ssh [EMAIL PROTECTED] dd of=tar.tgz

but am unsure if ssh was launched as 'id' or as root.

Any way to be certain that sudo is doing what I want?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


securing postgresql on fbsd

2004-08-19 Thread David Bear

This is not strictly a freebsd question, but this group is the
smartest around... so

I've installed postgresql on freebsd  4.10-rel.  I want to secure ALL
connections to postgres through ssh. So I first configured postgresql
to connect ONLY to 127.0.0.1 port 5432.  Then, when attempting to ssh
to tunnel to it from another machine I got an error:
---
Aug 19 10:31:12 dbsrv1 sshd[157]: Accepted publickey for iddwb from
+129.219.69.200 port 33068 ssh2
Aug 19 10:31:40 dbsrv1 sshd[159]: error: connect_to 129.219.69.206
port 5432:
+Connection refused
Aug 19 10:31:40 dbsrv1 sshd[159]: error: connect_to dbsrv1.pp.asu.edu
port 5432:
+failed.

So it looks like I wasn't building the tunnel correctly. From the
remote host connecting to the freebsd postgresql server I was using:

ssh -L 5001:dbsrv1:5432 [EMAIL PROTECTED]

But it looks like that is forbidden to connect to 'localhost' on the
remote machine, ie on dbsrv1.

I was able to get postgresql to bind to all adapters, and connect to
it using the above tunnel.  But then I have an open port on dbsrv1
that anyone can connect to... ie I can straight telnet dbsrv1 5432 and
reach it unencrypted. It binds to a public interface, and I don't want
that.

I know postgresql has an ssl option, but I was hoping to just use ssh
tunneling.

hoping this make sense, I'm wondering what other freebsd users have
done to secure postgresql? or how to make ssh tunnel 'all the way
through to the remote localhost'..

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing


- End forwarded message -

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: securing postgresql on fbsd

2004-08-19 Thread David Bear
On Thu, Aug 19, 2004 at 01:10:41PM -0600, Sheets, Jason (Manpower Contract) wrote:
 It looks like you configured the tunnel to point to the public host
 (dbsrv1) and configured PostgreSQL to only listen on the loopback
 127.0.0.1.
 
 Try tunneling to 127.0.0.1:5432 instead of dbsrv1
 
 Something like
 
 ssh -L 5001:127.0.0.1:5432 [EMAIL PROTECTED]

many thanks... this worked that way I wanted.

 
 Jason
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of David Bear
 Sent: Thursday, August 19, 2004 12:38 PM
 To: [EMAIL PROTECTED]
 Subject: securing postgresql on fbsd
 
 
 This is not strictly a freebsd question, but this group is the
 smartest around... so
 
 I've installed postgresql on freebsd  4.10-rel.  I want to secure ALL
 connections to postgres through ssh. So I first configured postgresql
 to connect ONLY to 127.0.0.1 port 5432.  Then, when attempting to ssh
 to tunnel to it from another machine I got an error:
 ---
 Aug 19 10:31:12 dbsrv1 sshd[157]: Accepted publickey for iddwb from
 +129.219.69.200 port 33068 ssh2
 Aug 19 10:31:40 dbsrv1 sshd[159]: error: connect_to 129.219.69.206
 port 5432:
 +Connection refused
 Aug 19 10:31:40 dbsrv1 sshd[159]: error: connect_to dbsrv1.pp.asu.edu
 port 5432:
 +failed.
 
 So it looks like I wasn't building the tunnel correctly. From the
 remote host connecting to the freebsd postgresql server I was using:
 
 ssh -L 5001:dbsrv1:5432 [EMAIL PROTECTED]
 
 But it looks like that is forbidden to connect to 'localhost' on the
 remote machine, ie on dbsrv1.
 
 I was able to get postgresql to bind to all adapters, and connect to
 it using the above tunnel.  But then I have an open port on dbsrv1
 that anyone can connect to... ie I can straight telnet dbsrv1 5432 and
 reach it unencrypted. It binds to a public interface, and I don't want
 that.
 
 I know postgresql has an ssl option, but I was hoping to just use ssh
 tunneling.
 
 hoping this make sense, I'm wondering what other freebsd users have
 done to secure postgresql? or how to make ssh tunnel 'all the way
 through to the remote localhost'..
 
 -- 
 David Bear
 phone:480-965-8257
 fax:  480-965-9189
 College of Public Programs/ASU
 Wilson Hall 232
 Tempe, AZ 85287-0803
  Beware the IP portfolio, everyone will be suspect of trespassing
 
 
 - End forwarded message -
 
 -- 
 David Bear
 phone:480-965-8257
 fax:  480-965-9189
 College of Public Programs/ASU
 Wilson Hall 232
 Tempe, AZ 85287-0803
  Beware the IP portfolio, everyone will be suspect of trespassing
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


making without threads

2004-07-07 Thread David Bear
I'm trying to use the python 2.3.4 port.  I tried to issue

make --without-threads

but its still is making it with threads.  make help doesn't..

the pkg_* files don't seem to be much help.

how do I list and change make options?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


cvsupfile checkup

2004-07-06 Thread David Bear
before I munge a system again with a wrong cvsup tag, I thought I
would ask the good graces of this group to make sure I have my tags
correct.  I want to stay with releng 4.10 and keep my ports collection
updated as well.  does this file look okay?


*default  host=cvsup10.FreeBSD.org
*default  base=/usr/local/etc/cvsup
*default  prefix=/usr
*default  release=cvs delete use-rel-suffix
*default  tag=RELENG_4_10
ports-all tag=.
src-all tag=.


-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


cvsupdate and make totally hoses the system

2004-07-02 Thread David Bear
I've done this twice now.. I install a clean 4.10-Release from ftp.
I install cvsupdate without gui.  I create my cvsupdate file in etc
and run cvsupdate.

then per instructions from the website
# make buildworld
# make buildkernel
# make installkernel
# reboot

You should boot in single user mode (using boot -s from loader prompt
for example). Then run:

# mergemaster -p
# make installworld

==
I cvsup to releng_4_10.

the first hiccup comes with mergemaster as there are new accounts
created for pf.  thats fine. I just merge the new accounts.

the second hiccup comes with the first invocation of make
installworld. It dies telling me there is no hints file. So I copy
GENERIC.hints to /boot and rerun. Then after a lot of work, make
installworld dies with a core dump. And, now I have a completely
unusable system.  Everything is does with the same error -- my binary
and kernel and libs our completely out of sync.  

I made two changes to make.conf (set usa resident, set noprofile).
my cvsufile is below.

where am I going wrong?

---
*default  host=cvsup10.FreeBSD.org
*default  base=/usr/local/etc/cvsup
*default  prefix=/usr
*default  release=cvs delete use-rel-suffix
*default  tag=RELENG_4_10

*default tag=.
ports-all tag=.
src-all tag=.
-


-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cvsupdate and make totally hoses the system

2004-07-02 Thread David Bear
yes.. this explains it.  I need to be more carefull with my reading.

On Fri, Jul 02, 2004 at 04:14:25PM -0700, Kris Kennaway wrote:
 On Fri, Jul 02, 2004 at 03:28:29PM -0700, David Bear wrote:
  I've done this twice now.. I install a clean 4.10-Release from ftp.
  I install cvsupdate without gui.  I create my cvsupdate file in etc
  and run cvsupdate.
  
  then per instructions from the website
  # make buildworld
  # make buildkernel
  # make installkernel
  # reboot
  
  You should boot in single user mode (using boot -s from loader prompt
  for example). Then run:
  
  # mergemaster -p
  # make installworld
  
  ==
  I cvsup to releng_4_10.
  
  the first hiccup comes with mergemaster as there are new accounts
  created for pf.  thats fine. I just merge the new accounts.
 
 You're actually trying to update your system to 5.2-CURRENT.  This is
 because you're using the wrong cvsupfile:
 
  *default  tag=RELENG_4_10
  
  *default tag=.
  ports-all tag=.
  src-all tag=.
   ^ You've overridden the RELENG_4_10 tag and specified
 that you want the top of the source tree, i.e. -CURRENT.
 
 Kris



-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


device hints issue

2004-07-01 Thread David Bear
I just completed a cvsup make buildworld, buildkernel cycle for
freebsd 4.10. I cvsup'ed to releng_4_10.  when attempting to 
make installkernel I get the following error:

/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
/usr/obj/usr/src/make.i386/make KERNEL=kernel install
You must set up a /boot/device.hints file first.
*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1
...
this seems stranges since according the handbook device.hints is a
feature of 5.x. It does not exist in /boot anywhere.  should I touch
/boot/device.hints and just let it go?


-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


stop in make buildworld

2004-06-30 Thread David Bear
I've submitted a bug report but thought I'd ask here for any possible
resolution. I installed release 4.10. After configuring and building
my own kernel (just removed references to hardware I don't have in the
config) I decided to cvsup to releng_4 (this is I think the way to get
any security fixes?)

However, after cvsuping I go to make buildworld and get the following:

./../usr.bin/cc/cc_tools
-I/usr/src/gnu/lib/libgcc/../../../contrib/gcc/config
-I/usr/src/gnu/lib/libgcc/../../../contrib/gcc -I.  -DL_divdi3 -o
_divdi3.o /usr/src/gnu/lib/libgcc/../../../contrib/gcc/libgcc2.c
/usr/src/contrib/gcc/libgcc2.c: In function `__divdi3':
/usr/src/contrib/gcc/libgcc2.c:757: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.
*** Error code 1

Stop in /usr/src/gnu/lib/libgcc.
*** Error code 1

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

I did a make clean and tried again.. got the same error.

Any advice?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: problems with make buildworld

2004-06-15 Thread David Bear
On Tue, Jun 15, 2004 at 09:09:06AM +0530, BSDBoy wrote:
 May we have a copy of /etc/make.conf and /etc/sysctl.conf?

No changes to sysctl.conf -- its all default.  attached is make.conf

 
 BSDBoy
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of David Bear
 Sent: Tuesday, June 15, 2004 3:53
 To: [EMAIL PROTECTED]
 Subject: problems with make buildworld
 
 I received the following make error during a system update.  I had
 cvsup'ed to the latest RELENG4.  I googled for some of the search
 terms and could make sense of what I found there.  Any help would be
 appreciated..
 this was during 'make buildworld'
 
 
 
 FBSDID=__RCSID -I/usr/obj/mnt/wd/src/i386/legacy/usr/include -c
 /mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genpreds.c
 In file included from
 /mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genpreds.c:28:
 /mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:1037:
 syntax error before `subreg_offset_representable_p'
 /mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:1040:
 warning: data definition has no type or storage class
 /mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:1436:
 syntax error before `_Bool'
 /mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:1508:
 syntax error before `squeeze_notes'
 /mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:1508:
 warning: data definition has no type or storage class
 /mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:1653:
 syntax error before `keep_with_call_p'
 /mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:1653:
 warning: data definition has no type or storage class
 /mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:2125:
 syntax error before `invalid_mode_change_p'
 /mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:2127:
 warning: data definition has no type or storage class
 /mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:2285:
 syntax error before `expensive_function_p'
 /mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:2285:
 warning: data definition has no type or storage class
 *** Error code 1
 
 Stop in /mnt/wd/src/gnu/usr.bin/cc/cc_tools.
 *** Error code 1
 
 Stop in /mnt/wd/src.
 *** Error code 1
 
 Stop in /mnt/wd/src.
 *** Error code 1
 
 
 -- 
 David Bear
 phone:480-965-8257
 fax:  480-965-9189
 College of Public Programs/ASU
 Wilson Hall 232
 Tempe, AZ 85287-0803
  Beware the IP portfolio, everyone will be suspect of trespassing
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 
 begin 666 smime.p7s
 M,( 2J2(;W#0$'`J ,( `0$QS )[EMAIL PROTECTED]@,@4`,( 2J2(;W#0$'
 M`0``H((*3`CTP@@F`A$`S;I_5O#?Y+Q4_B*LLW*J53 [EMAIL PROTECTED]]PT!
 M`0(%`#!?,0LP08#500$P)54S$7,!4`U4$A,.5F5R:5-I9VXL($EN8RXQ
 M-S [EMAIL PROTECTED] L3+D-L87-S([EMAIL PROTECTED]'5B;EC(%!R:6UA[EMAIL 
 PROTECTED]EF:6-A=EO
 M;B!!=71H;W)I='DP'A-.38P,3(Y,# P,# P6A-,[EMAIL PROTECTED] Q,C,U.34Y6C!?
 M,0LP08#500$P)54S$7,!4`U4$A,.5F5R:5-I9VXL($EN8RXQ-S [EMAIL PROTECTED]
 M! L3+D-L87-S([EMAIL PROTECTED]'5B;EC(%!R:6UA[EMAIL PROTECTED]EF:6-A=EO;B!!=71H
 M;W)I='[EMAIL PROTECTED])*H9(AO[EMAIL PROTECTED],()`H!`.49OVVC5F$MF4AQ
 M]F?N8WKMYZ@ J1#OHX):]B(+E[EMAIL PROTECTED],96X,L-!6A!B'F@:;$*%S
 MW[18.6MNP?85U:BH/ZH2!HTQK'^P--/-(T4$).159I'W@@-K1Y$I
 MNS;)8US%X-MAWNAMS*PSZ*B\QJNZC9]K;`@,!``$P#08)*H9(AO-`0$
 [EMAIL PROTECTED],PY=Z:;+!X1-C/_DAOT-JW8E2(V:!%L?$+,\YPN
 MQ _%+ /3_^0DG;YXKQ*Z8_-H( *]\4I\8(B7;BQW8$CHWLE%48P1;[EMAIL PROTECTED]
 ME'\=PAS(X[?T$$ \$\-?'U/H2.2M'NA-;![);JXTXZK/SB=`#0`F//190P
 M@@-B,((RZ [EMAIL PROTECTED]`A [EMAIL PROTECTED])CJL)='JTSBXS, T2J2(;[EMAIL 
 PROTECTED]
 M,%\QS )[EMAIL PROTECTED] 83`E53,1P%08#500*$PY697)I4VEG;[EMAIL PROTECTED],#4
 M`U4$Q,N0VQAW,@,2!0=6)L:6,@4')I;6%R2!#97)T:69I8V%T:6]N($%U
 M=AOFET3 %PTY.# U,3(P,# P,#!:%PTP.# U,3(R,S4Y-3E:,(',,1P
 M%08#500*$PY697)I4VEG;[EMAIL PROTECTED],!T`U4$Q,65F5R:[EMAIL PROTECTED]')U
 M[EMAIL PROTECTED]:S%,$0`U4$Q,]=W=W+G9EFES:6=N+F-O;2]R97!OVET
 M;W)Y+U)002!);F-OG N($)Y(%)E9BXL3$E!0BY,5$0H8RDY.#%(,$8`U4$
 M`Q,_5F5R:[EMAIL PROTECTED]W,@,2!#02!);F1I=FED=6%L(%-U8G-CFEB97(M
 M45RV]N82!.;[EMAIL PROTECTED]:61A=5D,(?, T2J2(;W#0$!`04``X-`#!
 [EMAIL PROTECTED][6D2*!!:[5?T#HHME$\5#:X#4JR;YQ4O[SH=RJ=N?!HNY79,4%P
 M[EMAIL PROTECTED]'.$0JO HI*K1%RJ0O[EMAIL PROTECTED].[N^R2*7;:P-D(SM6Y4
 MB$^'2K\9VOD5Z ^'MASCS,::CG]J))+C_.!ENJQ?N_)VS=JR$K(0;DF0(#
 M`0`!HXP,(M, \`U4=$P0(, 8!`?\[EMAIL PROTECTED] P/C [EMAIL PROTECTED]@[EMAIL 
 PROTECTED]
 MAOA%`0!`3 M,LL`04%!P(!%A]W=WN=F5R:7-I9VXN8V]M+W)E]S
 M:71OGDO4E!!,#$`U4='P0J,@P)J DH*(AT=' Z+R]CFPN=F5R:7-I
 M9VXN8V]M+W!C83$N8W)L, L`U4=#P0$`P(!!C [EMAIL PROTECTED]@[EMAIL PROTECTED]`0$$! ,
 M`08P#08)*H9(AO-`0$[EMAIL PROTECTED];T5+.*XWNE39\Y$PKCQ[^DDL
 MV HY:J$R(2P'FZM9_M)BGU5.+ W]ST!V9C8KWA4W!2A^HV%+I6RVJX

problems with make buildworld

2004-06-14 Thread David Bear
I received the following make error during a system update.  I had
cvsup'ed to the latest RELENG4.  I googled for some of the search
terms and could make sense of what I found there.  Any help would be
appreciated..
this was during 'make buildworld'



FBSDID=__RCSID -I/usr/obj/mnt/wd/src/i386/legacy/usr/include -c
/mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genpreds.c
In file included from
/mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/genpreds.c:28:
/mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:1037:
syntax error before `subreg_offset_representable_p'
/mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:1040:
warning: data definition has no type or storage class
/mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:1436:
syntax error before `_Bool'
/mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:1508:
syntax error before `squeeze_notes'
/mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:1508:
warning: data definition has no type or storage class
/mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:1653:
syntax error before `keep_with_call_p'
/mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:1653:
warning: data definition has no type or storage class
/mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:2125:
syntax error before `invalid_mode_change_p'
/mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:2127:
warning: data definition has no type or storage class
/mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:2285:
syntax error before `expensive_function_p'
/mnt/wd/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/rtl.h:2285:
warning: data definition has no type or storage class
*** Error code 1

Stop in /mnt/wd/src/gnu/usr.bin/cc/cc_tools.
*** Error code 1

Stop in /mnt/wd/src.
*** Error code 1

Stop in /mnt/wd/src.
*** Error code 1


-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sendmail local mta mode only

2004-03-25 Thread David Bear
not sure how to phrase this to limit the number of google hits ..

I would like to run the stock sendmail freebsd has as a local MTA
only... ie I don't want to listening on ANY real/public interface for
mail.  I do want it to handle delivery of local messages to local
accounts -- and handle sending messages destined for external systems.

any pointers ?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


tape block size and dump block size

2004-03-24 Thread David Bear
using dump and restore I ran into an error with restore.

the error message is

tape block size (512) is not a multiple of dump block size (1024)

Can anyone suggest a way to work around this?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


dump/restore issue

2004-03-19 Thread David Bear
My tape unit has been giving me problems on one server.  So I did a
dump over ssh to another box with a working tape like this:

  dump -0u -a -b 64 -f - /dev/da1s1e | ssh [EMAIL PROTECTED] dd of=/dev/nrsa0 

Then to check the dump on srv2 I did

  restore -i -f /dev/nrsa0

which came back and said the tape block size was different than the
dump block size or something like that.

From my reading of the dump man page the -b parm controlled the block
size of the chunks that dump wrote, but was NOT connected to the
actual block size of the tape.  Since this tape is a variable block
device, I went ahead and set -b to the max...

But now what do I do about restore? 

Is there a better way to control tape block size when piping through
ssh?  ie, dd of=/dev/nrsa0 bs=512??  But then what meaning does the -b
parm have in dump?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: CMS on FreeBSD

2004-03-19 Thread David Bear
On Fri, Mar 19, 2004 at 01:53:04PM -0500, Scott I. Remick wrote:
 I'm thinking about setting up a FreeBSD-based CMS/intranet and wanted to
 know what other people were doing.

you should at least read through some of the material on zope. its
well maintained in the ports collection -- take a look at the zope cmf
and plone material

 I'm also concerned about Plone using its own webserver. I feel very good
 using Apache as I've a lot of experience with it, and I like the idea of
 delegating components to groups with that strength. I also don't know
 Python, but could try and learn if Plone was worth it.

most people run zope/cmf/plone in back of apache with mod_proxy and
rewrite..

 
 What are other people doing for CMS on FreeBSD? Just how different is Plone
 from the *Nukes? Are there fundamental differences I need to understand?
 Can I do everything I want to with Plone without having to become a Python
 expert, code my own modules, etc? 

don't know anything about Nukes but Plone is very good.

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: scsi tape errors

2004-03-17 Thread David Bear
Thanks for the advice.  I appreciate all the insights.

However, my experience suggest that either I'm doing things very
wrong, or I'm using the wrong hardware for BSD.

Since the kernel dumps so much information when the scsi bus behaves
strangely, isn't there some way to decode from the kernel messages
what could really be happening?  I ran a full system dump to a tape
yesterday.  The dump proceeded without error untill it fill the tape,
35 gig. When I put in a new tape, then things began to act strangely.

After a full power down and reboot, things are still misbehaving.
When I attempt to read the tape the dump wrote without error, I get
i/o errors.  Even commands like mt status and mt offline cause the
input/output error message... and lots of kernel messages similar to
what I posted.

I'm beginning to wonder if my scsi card has something wrong with it.
There's got to be a better way to trouble shoot/track down, diagnose
this.  

btw, I am using an adaptec 29160 wide card.. I am using a wide cable
to connect the externel tape unit. And I am using an active terminator
on the tape unit.  (It does have an LED to signify I guess that it is
powered)  Are there any additional tools that I can use to check
whether this is really a tape device issue, a scsi device issue...
etc.?

On Tue, Mar 16, 2004 at 09:18:03PM -0600, Dan Nelson wrote:
 In the last episode (Mar 16), David Bear said:
  I am getting error messages that don't make much sense. They would
  lead me to beleive that the tape is bad... I guess. Yet, I have a
  hard time beleiving that the two out of four tapes is bad.
  
  issuing an 'mt erase' it get an input/output error.
  
  below are the kernel messages.
  
  could two tapes suddenly just become 'bad'?
  
  Since these are ait tapes and have a 64k ram buffer, I'm wondering if
  there may be some bad data there and if there is a way to clear it...
  
  The tape unit is a sony sdx300c.  I've updated it to the latest
  firmware. Its attached to an adaptec 2940wide.
 
 Is it possible that erasing an AIT tape takes more than 4 minutes? 
 That's how long the cam layer will wait for an erase command to
 complete.  Try adding
 
 options   SA_ERASE_TIMEOUT=10*60
 
 and rebuilding your kernel.
 
 -- 
   Dan Nelson
   [EMAIL PROTECTED]

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


scsi tape errors

2004-03-16 Thread David Bear
I am getting error messages that don't make much sense. They would
lead me to beleive that the tape is bad... I guess. Yet, I have a hard
time beleiving that the two out of four tapes is bad.

issuing an 'mt erase' it get an input/output error.

below are the kernel messages.

could two tapes suddenly just become 'bad'?

Since these are ait tapes and have a 64k ram buffer, I'm wondering if
there may be some bad data there and if there is a way to clear it...

The tape unit is a sony sdx300c.  I've updated it to the latest
firmware. Its attached to an adaptec 2940wide.

Any advice would be greatly appreciated.
== dmesg ==
 
... lots of stuff deleted ...

Disconnected Queue entries: 0:0 
QOUTFIFO entries: 
Sequencer Free SCB List: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 
24 25 26 27 28 29 30 31 
Sequencer SCB Info: 0(c 0x44, s 0xa7, l 0, t 0x0) 1(c 0x0, s 0xff, l 255, t 0xff) 2(c 
0x0, s 0xff, l 255, t 0xff) 3(c 0x0, s 0xff, l 255, t 0xff) 4(c 0x0, s 0xff, l 255, t 
0xff) 5(c 0x0, s 0xff, l 255, t 0xff) 6(c 0x0, s 0xff, l 255, t 0xff) 7(c 0x0, s 0xff, 
l 255, t 0xff) 8(c 0x0, s 0xff, l 255, t 0xff) 9(c 0x0, s 0xff, l 255, t 0xff) 10(c 
0x0, s 0xff, l 255, t 0xff) 11(c 0x0, s 0xff, l 255, t 0xff) 12(c 0x0, s 0xff, l 255, 
t 0xff) 13(c 0x0, s 0xff, l 255, t 0xff) 14(c 0x0, s 0xff, l 255, t 0xff) 15(c 0x0, s 
0xff, l 255, t 0xff) 16(c 0x0, s 0xff, l 255, t 0xff) 17(c 0x0, s 0xff, l 255, t 0xff) 
18(c 0x0, s 0xff, l 255, t 0xff) 19(c 0x0, s 0xff, l 255, t 0xff) 20(c 0x0, s 0xff, l 
255, t 0xff) 21(c 0x0, s 0xff, l 255, t 0xff) 22(c 0x0, s 0xff, l 255, t 0xff) 23(c 
0x0, s 0xff, l 255, t 0xff) 24(c 0x0, s 0xff, l 255, t 0xff) 25(c 0x0, s 0xff, l 255, 
t 0xff) 26(c 0x0, s 0xff, l 255, t 0xff) 27(c 0x0, s 0xff, l 255, t 0xff) 28(c 0x0, s 
0xff, l 255, t 0xff) 29(c 0x0, s 0xff, l 255, 
 t 0xff) 30(c 0x0, s 0xff, l 255, t 0xff) 31(c 0x0, s 0xff, l 255, t 0xff) 
Pending list: 0(c 0x40, s 0xa7, l 0)
Kernel Free SCB list: 15 16 17 18 19 1 2 3 4 5 6 7 8 9 13 12 11 10 
Untagged Q(10): 0 
sg[0] - Addr 0x4366000 : Length 4096
sg[1] - Addr 0x3c27000 : Length 4096
(sa0:ahc1:0:10:0): Queuing a BDR SCB
(sa0:ahc1:0:10:0): Bus Device Reset Message Sent
(sa0:ahc1:0:10:0): no longer in timeout, status = 34b
ahc1: Bus Device Reset on A:10. 1 SCBs aborted
(sa0:ahc1:0:10:0): unable to rewind after test read



-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


issue with simple script

2004-03-15 Thread David Bear
I thought I had a tape issue.. Now its clear I have a script issue.

Below is a script I use to perform level 0 dumps on all mounted file
systems.  The problem seems to be that when the script runs, it does
not run as root -- even though I am root when I run it. The goal is to
cron it, but as I was testing it I ran into some problems.

First, I can't set the MT variable as its listed below. I get an
permission denial on /dev/nrsa0. This makes no sense, since as root I
can issue the command fine. Moreover, the dump command itself fails
even thought it seems to be rendered syntactically correct.  I echo'ed
all the generated commands just to make certain they are correct.
Here's the output of the script:

=
ppsrvx# ./l0dump.sh
./l0dump.sh: /dev/nrsa0: permission denied
comp off
/sbin/dump -0u -a -b 64 -f /dev/nrsa0 /dev/ad0s1a
/sbin/dump -0u -a -b 64 -f /dev/nrsa0 /dev/da1s1d
/sbin/dump -0u -a -b 64 -f /dev/nrsa0 /dev/da0s1e
/sbin/dump -0u -a -b 64 -f /dev/nrsa0 /dev/da1s1e
/sbin/dump -0u -a -b 64 -f /dev/nrsa0 /dev/ad0s1d
/sbin/dump -0u -a -b 64 -f /dev/nrsa0 /dev/da0s1d
/sbin/dump -0u -a -b 64 -f /dev/nrsa0 /dev/ad0s1e
/dev/sa0 offline

==

notice the permission denied..

not also 'comp off' which SHOULD be rendered as 
   /usr/bin/mt -f /dev/nrsa0 comp off

but isn't.

I'm really stumped here. 

Is there some reason why running these commands in a script would
fail, yet running them by hand works?  


#!/bin/sh
AWK=/usr/bin/awk
DF=/bin/df
DMP=/sbin/dump
DEST=/dev/nrsa0
MT=/usr/bin/mt -f  ${DEST}
MOPTS='weof 1'
DOPTS='-0u -a -b 64 -f '
# -b 64 is max, will never use large value
FSS=`${DF} | ${AWK} '/dev/ {print $1}'` 
echo ${MT} 'comp off'
# echo ${MT} 'blocksize 512'
for FS in ${FSS} ;
   do
  echo ${DMP} ${DOPTS} ${DEST} ${FS}
  # ${MT} ${MOPTS}
   done
echo ${MT} '/dev/sa0 offline'
echo Please swap tapes on srvx | mail iddwb


-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


variable assignment in shell script

2004-03-11 Thread David Bear
I'm at a dead on. 

I'm trying to assign a variable

MT='/usr/bin/mt -f /dev/nrsa0'

in a shell script. The trouble is that the assignment isn't made and
the script writes to stdout/err 

./l0dump.sh: /dev/nrsa0: permission denied

where l0dump.sh is the name of the script.

Why would this assignment fail? I am running this as root. root
definately has write access the /dev/nrsa0.  This is really maddening.

Any pointers?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


formail recipe

2004-03-10 Thread David Bear
Hope I'm not imposing too much on this group.. but since this group
has a collection of the best, brightest, and generous..

I wonder if someone might have a formail recipe that would randomly
select N messages from a mailbox of M messages?  I have a spam corpus
thats well over 1 and need to trim it down.


-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


problem with tape units

2004-02-20 Thread David Bear
I recently replace an ait tape drive with another one of the same
model,, a sony sdx 300.

Now, when I try to do anything with /dev/sa0 like get status or erase,
I get a ton of errors.  Below is the output of dmesg from it.  Do I
need to remake the sa device?  Don't know why things would be timing
out.  I have an active terminator on the unit.. it is an external tape
unit, connected to an adaptec 29160 card (wide).  It is the ONLY
device on the scsi card and set at ID 10. I am using freebsd4.9.

any advice would be appreciated

(sa0:ahc1:0:10:0): SCB 0xe - timed out
ahc1: Dumping Card State while idle, at SEQADDR 0x9
ACCUM = 0x4, SINDEX = 0xa7, DINDEX = 0x2b, ARG_2 = 0x3
HCNT = 0x0 SCBPTR = 0x0
SCSISEQ = 0x12, SBLKCTL = 0x6
 DFCNTRL = 0x0, DFSTATUS = 0x89
LASTPHASE = 0x1, SCSISIGI = 0x0, SXFRCTL0 = 0x80
SSTAT0 = 0x0, SSTAT1 = 0x8
SCSIPHASE = 0x0
STACK == 0x3, 0x175, 0x160, 0x0
SCB count = 20
Kernel NEXTQSCB = 0
Card NEXTQSCB = 0
QINFIFO entries: 
Waiting Queue entries: 
Disconnected Queue entries: 0:14 
QOUTFIFO entries: 
Sequencer Free SCB List: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 
24 25 26 27 28 29 30 31 
Sequencer SCB Info: 0(c 0x44, s 0xa7, l 0, t 0xe) 1(c 0x0, s 0xff, l 255, t 0xff) 2(c 
0x0, s 0xff, l 255, t 0xff) 3(c 0x0, s 0xff, l 255, t 0xff) 4(c 0x0, s 0xff, l 255, t 
0xff) 5(c 0x0, s 0xff, l 255, t 0xff) 6(c 0x0, s 0xff, l 255, t 0xff) 7(c 0x0, s 0xff, 
l 255, t 0xff) 8(c 0x0, s 0xff, l 255, t 0xff) 9(c 0x0, s 0xff, l 255, t 0xff) 10(c 
0x0, s 0xff, l 255, t 0xff) 11(c 0x0, s 0xff, l 255, t 0xff) 12(c 0x0, s 0xff, l 255, 
t 0xff) 13(c 0x0, s 0xff, l 255, t 0xff) 14(c 0x0, s 0xff, l 255, t 0xff) 15(c 0x0, s 
0xff, l 255, t 0xff) 16(c 0x0, s 0xff, l 255, t 0xff) 17(c 0x0, s 0xff, l 255, t 0xff) 
18(c 0x0, s 0xff, l 255, t 0xff) 19(c 0x0, s 0xff, l 255, t 0xff) 20(c 0x0, s 0xff, l 
255, t 0xff) 21(c 0x0, s 0xff, l 255, t 0xff) 22(c 0x0, s 0xff, l 255, t 0xff) 23(c 
0x0, s 0xff, l 255, t 0xff) 24(c 0x0, s 0xff, l 255, t 0xff) 25(c 0x0, s 0xff, l 255, 
t 0xff) 26(c 0x0, s 0xff, l 255, t 0xff) 27(c 0x0, s 0xff, l 255, t 0xff) 28(c 0x0, s 
0xff, l 255, t 0xff) 29(c 0x0, s 0xff, l 255, 
 t 0xff) 30(c 0x0, s 0xff, l 255, t 0xff) 31(c 0x0, s 0xff, l 255, t 0xff) 
Pending list: 14(c 0x40, s 0xa7, l 0)
Kernel Free SCB list: 15 16 17 18 19 1 2 3 4 5 6 7 8 9 13 12 11 10 
Untagged Q(10): 14 
sg[0] - Addr 0x41c5000 : Length 4096
sg[1] - Addr 0x3f26000 : Length 4096
(sa0:ahc1:0:10:0): Queuing a BDR SCB
(sa0:ahc1:0:10:0): Bus Device Reset Message Sent
(sa0:ahc1:0:10:0): no longer in timeout, status = 34b
ahc1: Bus Device Reset on A:10. 1 SCBs aborted
(sa0:ahc1:0:10:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 
(sa0:ahc1:0:10:0): error code 0
(sa0:ahc1:0:10:0): MODE SENSE(06). CDB: 1a 0 0 0 c 0 
(sa0:ahc1:0:10:0): error code 0
(sa0:ahc1:0:10:0): MODE SENSE(06). CDB: 1a 0 0 0 c 0 
(sa0:ahc1:0:10:0): error code 0

- End forwarded message -

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


reliable tape units

2004-02-05 Thread David Bear
I wanted to ask this group what their experience was regarding tape
units, what your experience has been regarding reliability and
longevity. I am faced with replacing an AIT tape unit thats just over 3
years old. Its based on a sony sdx-300 series. Its had minimal use.

I am really surprised its only last 3 years... but then, I don't know
what to expect.

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


opinion on NICs in mulithomed host

2003-12-30 Thread David Bear
I was wondering what opinions there are regarding the type of NICs to
using in a multihomed machine. Will be using fbsd 4.9-rel. Is it a
good idea to use NIC's from different manufacturers? Same manufacture?
Non-3com? ... As far as performance issues are concerned, is one brand
better than another? 

This will not be doing any bridge/routing... I will be using the
secondard NIC as a private rfc1918 network.  The bsd box will be a
proxy machine.

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


hard drive test

2003-12-30 Thread David Bear
i just installed 4.9-rel.  after having the system on for about two
hours I got a console message that device ad0 had timed out.  then the
system froze.

after a reboot (power off then on) the systems has been working fine.

The HD is standard seagate barracuda ATA drive (30 gig). I am using
an ata100 cable.

now I'm nervous.  don't know why the drive would have had the error.
Are there any freebsd utils that I can use to test the drive?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


netgear nic

2003-12-30 Thread David Bear
the NIC selection at the local store was terrible. I ended up buying a
netgear FA311.  I cannot tell what chipset this has..  It is the
numbers VS318AG in it..

anyone used a netgear nic with fbsd 4.9?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


using ldap for multiple fbsd servers

2003-12-17 Thread David Bear
I have evolved into using freebsd for work group servers over the past
years and am now wanting to tie them all together with a synchronized
user and group data base.  I know NIS has been around and may be
considered too unsafe.  I've read of rsync'ing master.password and
group around.. but I think I want to go with ldap.

The first goal is to glue all my fbsd machines togther with shared
passwd/group.  Then, to include linux clients.  Then, to include
windows machines via samba -

I'm looking for good HOWTO's on doing this.  googling freebsd and ldap
gives more than 159000 hits.. So, I'm hoping there is someone here
who's knows of a 'good' writeup.

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/dev/sa and rsa was multiple dumps to single tape

2003-12-17 Thread David Bear
On Tue, Dec 16, 2003 at 08:06:15PM +1000, anubis wrote:
 On Tue, 16 Dec 2003 09:55 am, David Bear wrote:
  if I am writing multiple dumps to a single tape, is it wise to have mt
  write a setmark after dumping each file system?
 
 There is no real need to do this.
 
 If you want to write dump after dump onto a tape in the one session use the 
 /dev/nsa0 device.  This device is the same as /dev/sa0 but doesnt rewind 
 between sessions.  So the tape will be ready for the next dump automatically.  
 

thanks for all the replies.

I am wondering now what the difference is between 
/dev/sa0 and /dev/rsa0
and
/dev/nsa0 and /dev/nrsa0


-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


awk question, maybe

2003-12-15 Thread David Bear
i would like to do something like

df | awk '{print $1}'

to capture all the current file systems.  But I would like to strip
off the first and last lines, since these are generally -- not needed.

the goal is to write a generalized script that can feed dump with all
the file systems on a box.

any pointers?
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: awk question, maybe

2003-12-15 Thread David Bear
On Mon, Dec 15, 2003 at 08:39:06PM -0300, Fernando Gleiser wrote:
 On Mon, 15 Dec 2003, David Bear wrote:
 
  i would like to do something like
 
  df | awk '{print $1}'
 
  to capture all the current file systems.  But I would like to strip
  off the first and last lines, since these are generally -- not needed.
 
 df | awk '$1 ~/^\/dev/ {print $1}'
 

yes.. I was hoping it would be simple.  and I thought of using a regex
to match the lines I want after sending that note.

thanks for all the replies.


-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


multiple dumps to single tape

2003-12-15 Thread David Bear
if I am writing multiple dumps to a single tape, is it wise to have mt
write a setmark after dumping each file system?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


kernel tcp connection logging

2003-12-11 Thread David Bear
I'm runnining a generic release-4.7 kernel.  at some point I must have
set some sysctl option because I get a lot of message like:

Dec 11 10:35:18 recsrv1 /kernel: Connection attempt to TCP
129.219.208.171:135 from 129.219.90.69:4449
Dec 11 10:35:19 recsrv1 last message repeated 2 times

I am using log_in_vain='1' in rc.conf but, do have samba listening on
port 135.  

Any way I can quash these messages?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


configuration info for NUT

2003-12-11 Thread David Bear
I just installed nut.  however, I can seem to find how it was
'configured', ie per the instructions from the net website.  So, I
don't know where the man pages were placed, I don't know what the nut
user/group is etc.   Any pointers?

I am using an APC smartups connected with a usb monitor cable.  Any
configuration samples for usb monitor would be appreciated.  thanks.

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


startup scripts in /usr/local/etc/rc.d

2003-12-11 Thread David Bear
I am wondering if scripts in /usr/local/etc/rc.d MUST be owned by root
in order to be run.

If I have a daemon on want started, AND I want it to run as user
DORK, can I have the binary and the startscript owned by user DORK
in order to have it started that way?

the more I think about this, the more I get confused...

If a startup script lives in /usr/local/etc/rc.d does its ownership
determine the ownership of the process it starts?

or is the the owner of the binary the script starts that determines
the owner of the process

And, if it needs to change ownership, is it up to the program itself
to change who it runs as?  

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


scripting make buildworld cycle

2003-12-09 Thread David Bear
In Greg's Lehey's book The Complete FreeBSD (3rd ed) on page 379 
there is a script for combining the make buildworld process.  I'm
thinking there may be new tags for FBSD 4.9-RELEASE that should be
included in the script that are not there.

anyone know of an updated script like this one to handle 4.9-Release?
preferrably someplace that I can cut-n-paste it from?  or, is there an
improved version?


-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


updating make.conf for buildworld

2003-11-25 Thread David Bear

doing my first buildworld, I have looked at /usr/src/UPDATING .. Since
this was in install of 4.9-RELEASE I'm guessing I can fly through most
of the stuff related to 'older' versions?  So, now I'm creating
/etc/make.conf and the web pages says set it to something sensible..
I'm not sure what is sensible for many of these things.  Some are
obvious.  

Since I've installed postfix for my mta, I thought it would be okay to
disable sendmail from the mix..  Otherwise, below are the items I've
uncommented. comments appereciated.  (btw, this machine will be a web
server, running apache and zope )

CPUTYPE=i686
CFLAGS= -O -pipe
BDECFLAGS=  -W -Wall -ansi -pedantic -Wbad-function-cast
-Wcast-align \
-Wcast-qual -Wchar-subscripts -Winline \
-Wmissing-prototypes -Wnested-externs -Wpointer-arith
\
-Wredundant-decls -Wshadow -Wstrict-prototypes
-Wwrite-strings
ENABLE_SUID_SSH=true
NO_BIND=true# do not build BIND
NO_FORTRAN= true# do not build g77 and related libraries
NO_I4B= true# do not build isdn4bsd package
NO_SENDMAIL=true# do not build sendmail and related programs
NO_X=   true# do not compile in XWindows support (e.g.
doscmd)
NOGAMES=true# do not build games (games/ subdir)
NOPROFILE=  true# Avoid compiling profiled libraries
NOSHARE=true# do not go into the share subdir
NOUUCP= true# do not build uucp related programs
NO_MAKEDEV= true
BOOTWAIT=1
USA_RESIDENT=   YES
DOC_LANG=   en_US.ISO8859-1


-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing

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


ssh issue

2003-11-25 Thread David Bear
running 4.7-RELEASE.. I'm trying to setup ssh pubkey auth and its not
working..

I put my pub key in ~/.ssh/authorized_keys from system A

On system B edited /etc/ssh/sshd_config with 
==
PubkeyAuthentication yes
AuthorizedKeysFile  .ssh/authorized_keys
PasswordAuthentication no
=

I chmod'd my .ssh dir as 700 on system A and B.  Then restart sshd on
system B explicitly using -f /etc/ssh/sshd_config .

the ssh'ing into system B I'm still prompted for a password.

I'm lost.  Any advice.
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


removing scsi drivers from kernel conf

2003-11-24 Thread David Bear

Is it a 'good idea' to removed unused scsi devices from a custom
kernel, ie is it worth the time to reduce the kernel size?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing


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


nfsiod starting

2003-11-18 Thread David Bear
I have release 5.1 installed.

I have not enabled any nfs stuff, and usually disable anything to do
with it such as rpcstat.d etc. 

still, somewhere nfsiod was started.  I didn't enable it in my rc.conf

defaultrouter=129.219.120.129
hostname=ppsrvx.pp.asu.edu
ifconfig_rl0=inet 129.219.120.163  netmask 255.255.255.192
kern_securelevel_enable=NO
sendmail_enable=NONE
sendmail_flags=-bd
sendmail_outbound_enable=NO
sendmail_submit_enable=NO
sendmail_msp_queue_enable=NO
sshd_enable=YES
usbd_enable=YES
=

and I don't see where it's enabled in /etc/defaults/rc.conf..

any idea what started these and how to disable them..

btw, the only thing in /usr/local/etc/rc.d/ is postfix..

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


staring sendonly sendmail

2003-11-17 Thread David Bear
I do not want sendmail to receive message.  

I only want it to act as a local mta/mda and a sending agent.

I have sendmail_enable=no in rc.conf, but can quite seem to locate
what else I need to start it as mentioned above.  I googled freebsd
sendmail local delivery but got way too many hits.


-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


which apache

2003-11-12 Thread David Bear
well, since I will be running apache on freebsd I thought I ask which
one will be the best to use,  v1.3 series on v2.x series.

I will be doing ssl.  I know the v2 series uses the thread model
instead of the fork.. but I don't care.  I just need an apache the
1) I don't have to patch frequently;-)
2) that works as well as apache ever did 
3) that plays will with freebsd 5.x...

going through the apache faq's now, but thought I'd get good insight
here.

thx.
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


detecting the size of a tarball

2003-11-04 Thread David Bear
I have a 100 mg zip drive that I'm writing to as a raw device -- no
file system -- just 'tar cvf /dev/afd0 stuff'.  I am curious if there
is a way to find out how big the tarball is on this kind of thing.
I'm guessing maybe some kind of seek to EOF but not sure how it might
be accomplished.  any idea's?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


errors with orb drive

2003-10-21 Thread David Bear

I have a castlewood 2.2 gig orb drive in my system.  Today, it gave me
the follow error:

ad1: hard error reading fsbn 0 (ad1 bn 0; cn 0 tn 0 sn 0) trying PIO mode
ad1: DMA problem fallback to PIO mode
ad1: READ command timeout tag=0 serv=0 - resetting
ata0: resetting devices .. ad0: DMA limited to UDMA33, non-ATA66 cable or device
done
ad1: hard error reading fsbn 0 (ad1 bn 0; cn 0 tn 0 sn 0) status=51 error=40
ad1: reading primary partition table: error reading fsbn 0
ad1: READ command timeout tag=0 serv=0 - resetting
ata0: resetting devices .. ad0: DMA limited to UDMA33, non-ATA66 cable or device
done
ad1: hard error reading fsbn 0 (ad1 bn 0; cn 0 tn 0 sn 0) status=51 error=40
ad1: reading primary partition table: error reading fsbn 0

I'm not sure if this is a message the relates to the 'media' (the
removable disk) or the head (if its broke, its dead)

Any one else using orb drives?

--
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


procmail, forward, and postfix

2003-10-09 Thread David Bear
I have procmail, and postfix installed in my freebsd box.  Postfix
works great and by default seems to respect .forward files.  (at least
I can't recall making any changes to it)

Now, I want to run procmail from .forward and grabbed the forward file
for usr/local/examples/procmail.

I don't understand a thing it does.. but I put it in my home directory
anyway and called it .forward.

It appears the procmail is no 'firing' when message come.  Looking for
any pointers?  been through to procmail faq sites and thought there
might be a recommendation here.

contents of .forward
|IFS=' '  p=/usr/local/bin/procmail  test -f $p  exec $p -Yf-
|| exit 75 #Metropolis

'Metropolis' is the name of the account.  Any pointers? 
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


cvsup and portupgrade

2003-10-08 Thread David Bear

I'm still trying to muddle through the loads of different ways to keep
FreeBSD 'current' -- meaning, safely patched, aka RELENG_5_1 (for me)

As I conceptualize the operations there are two levels of 'patching',
1) the kernel and base system 
2) then all the ports that I may have installed

I've read the cvsup docs and can see how to update both the kernel
source and ports.  But the problem I see is the ports.  After the
ports collection has cvsupdated, I would still need to do a make
install for each port I have previous installed, correct?  (or, more
appropriately, make deinstall, the cvsup the ports, then make install)
Is this making things more difficult?  Seems there really should be a
cleaner way to keep things updated.

I've heard reference to a portupgrade package, but can't find any
details on how and what it really does-- and how well it plays with
cvsupdate.  

The other rotten thing here is that cvsupdate requires modula-3 -- and
portupgrade requires ruby...  It would really be nice if all this were
done in the most perfect language, python;-)

looking for some advice.. thx.
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


advice re mail

2003-09-24 Thread David Bear
I need to write a program the grabs mail from a standard mail folder
and processes it.

The trouble is I have no idea what mail file format FreeBSD uses by
default.  I am using postfix, and currently postfix is my mta and mda.
I will be adding procmail as the mda.  I'm guessing procmail writes
the same kind of file the postfix does... but here I'm showing my
ignorance.  

I will be using python as my language and there are modules for MH,
maildir, mbox, and mailbox...  Anyone have any recommended reading for
me to better understand what I need to do?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


fsck -F

2003-08-14 Thread David Bear
on linux there is a -F option to force a fsck on reboot.  I couldn't
see the equivalent in freebsd.

I have a couple of headless freebsd boxes that if they are ever
tampered with (well, no they are not in secured locations and they are
not secure boxes with keys, they are old pentiums that were salvaged
and run GREAT with fbsd) may need a fsck.  However, I cant ssh into
them and drop them to single user mode to fsck them.  I would like to
just tell them to reboot and do any file system maint that needs to be
done.  But I don't see a way do to it..

any pointers?
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


scsi errors on orb drive

2003-08-07 Thread David Bear
in the search for reliable high density backup media...  I chose to
use orb drives a couple years ago.  2.2 gis on a direct access device
seemed good.  Now that one failed completely and another seems
troublesome, I'm beginning to understand why they are out of business.

below is a kernel message that was thrown when I attempted to umount
the orb drive.  Can anyone tell me what it means?

(da2:ahc0:0:5:0): SCB 0x72 - timed out
ahc0: Dumping Card State while idle, at SEQADDR 0x9
ACCUM = 0x0, SINDEX = 0x2f, DINDEX = 0xe4, ARG_2 = 0x20
HCNT = 0x0
SCSISEQ = 0x12, SBLKCTL = 0x6
 DFCNTRL = 0x0, DFSTATUS = 0x89
LASTPHASE = 0x1, SCSISIGI = 0x0, SXFRCTL0 = 0x80
SSTAT0 = 0x0, SSTAT1 = 0x8
SCSIPHASE = 0x0
STACK == 0x3, 0x108, 0x160, 0x0
SCB count = 140
Kernel NEXTQSCB = 90
Card NEXTQSCB = 90
QINFIFO entries: 
Waiting Queue entries: 
Disconnected Queue entries: 30:114 
QOUTFIFO entries: 
Sequencer Free SCB List: 12 17 6 7 24 4 27 29 22 3 10 21 18 20 19 16 14 13 0 31 5 26 
11 8 1 15 25 23 2 28 9 
Pending list: 114
Kernel Free SCB list: 47 10 85 95 31 124 111 105 56 55 119 94 117 12 23 93 30 18 49 3 
59 84 73 20 75 34 64 43 118 27 42 40 70 89 8 101 26 113 97 17 24 48 19 32 61 16 91 35 
45 13 22 87 69 106 46 139 107 74 127 29 66 112 50 78 21 129 1 28 2 115 77 72 36 71 83 
128 51 25 125 57 96 9 11 109 88 53 60 62 7 116 0 80 41 68 92 79 102 5 58 108 52 81 15 
103 76 110 82 98 37 39 104 6 4 54 44 63 86 65 99 33 126 100 67 38 123 122 121 120 14 
138 137 136 135 134 133 132 131 130 
Untagged Q(5): 114 
sg[0] - Addr 0xe1bc000 : Length 2048
(da2:ahc0:0:5:0): Queuing a BDR SCB
(da2:ahc0:0:5:0): Bus Device Reset Message Sent
(da2:ahc0:0:5:0): SCB 0x72 - timed out
ahc0: Dumping Card State in Message-out phase, at SEQADDR 0x168
ACCUM = 0xa0, SINDEX = 0x61, DINDEX = 0xe4, ARG_2 = 0x1c
HCNT = 0x0
SCSISEQ = 0x12, SBLKCTL = 0x6
 DFCNTRL = 0x0, DFSTATUS = 0x89
LASTPHASE = 0xa0, SCSISIGI = 0xa4, SXFRCTL0 = 0x88
SSTAT0 = 0x0, SSTAT1 = 0x0
SCSIPHASE = 0x0
STACK == 0x175, 0x160, 0x0, 0xe7
SCB count = 140
Kernel NEXTQSCB = 90
Card NEXTQSCB = 90
QINFIFO entries: 
Waiting Queue entries: 
Disconnected Queue entries: 
QOUTFIFO entries: 
Sequencer Free SCB List: 12 17 6 7 24 4 27 29 22 3 10 21 18 20 19 16 14 13 0 31 5 26 
11 8 1 15 25 23 2 28 9 
Pending list: 114
Kernel Free SCB list: 47 10 85 95 31 124 111 105 56 55 119 94 117 12 23 93 30 18 49 3 
59 84 73 20 75 34 64 43 118 27 42 40 70 89 8 101 26 113 97 17 24 48 19 32 61 16 91 35 
45 13 22 87 69 106 46 139 107 74 127 29 66 112 50 78 21 129 1 28 2 115 77 72 36 71 83 
128 51 25 125 57 96 9 11 109 88 53 60 62 7 116 0 80 41 68 92 79 102 5 58 108 52 81 15 
103 76 110 82 98 37 39 104 6 4 54 44 63 86 65 99 33 126 100 67 38 123 122 121 120 14 
138 137 136 135 134 133 132 131 130 
Untagged Q(5): 114 
sg[0] - Addr 0xe1bc000 : Length 2048
(da2:ahc0:0:5:0): no longer in timeout, status = 34b
ahc0: Issued Channel A Bus Reset. 1 SCBs aborted
(da2:ahc0:0:5:0): Invalidating pack

- End forwarded message -

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


japanese consultants

2003-07-30 Thread David Bear
no, I don't need consulting in japanese.  Is there a list of
consultants fluent in all the issues of running freebsd in japan, ie
internationalizing, character sets, etc.  I found one listed on the
freebsd.org web site.  I was hoping for more..

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


tape driver turmoil

2003-07-29 Thread David Bear
I have two freebsd boxes.  Box A is 4.4.  Box B is 4.7.

Box A has a cybernetics DAT tape drive.

Box B has a cybernetics AIT/dlt tape drive.

I found that with the DAT drive I must set the tape density and
blocksize or else the tapes are unreadable, ie the default driver
status set the tape to variable block with some strange density.  If
it don't set the blocksize to 512 and the density to dds4 prior to
writing to the tape, it is unreadable.  

That lead me to check these parms on the AIT drive.  However, issueing
a density command causes an error.  See below.  I was using linux on
this system prior to fbsd.  I made tapes of data sets I wanted to
restore with tar.  However, after fbsd was installed, the tapes were
unreadable.  So, I thought I'd hit the same issue with density and
blocksize.  But I can't set density.  I'm beginning to really hate
tape units as they all see very different in the way they behave.
Is there a really good FAQ on tape units for fbsd?

===

# Issuing commands

mt density 0x41
mt: /dev/nsa0: density: Invalid argument
assurbanipal# mt density DLTapeIV
Using DLTapeIV as an alias for 0x1a:DLTapeIV(20GB)
mt: /dev/nsa0: density: Invalid argument

# cause these kernel messages

(sa0:ahc1:0:10:0): MODE SELECT(06). CDB: 15 0 0 0 c 0
(sa0:ahc1:0:10:0): ILLEGAL REQUEST asc:26,0
(sa0:ahc1:0:10:0): Invalid field in parameter list sks:8f,4
(sa0:ahc1:0:10:0): MODE SELECT(06). CDB: 15 0 0 0 c 0
(sa0:ahc1:0:10:0): ILLEGAL REQUEST asc:26,0
(sa0:ahc1:0:10:0): Invalid field in parameter list sks:8f,4

mt blocksize 512
assurbanipal# mt status
Mode  Density  Blocksize  bpi  Compression
Current:  0x30 512 bytes  0unsupported
-available modes-
0:0x30 512 bytes  0unsupported
1:0x30 512 bytes  0unsupported
2:0x30 512 bytes  0unsupported
3:0x30 512 bytes  0unsupported
-
Current Driver State: at rest.
-
File Number: 0  Record Number: 0Residual Count 0



not also that in the man page for mt, there is no 0x30 density mode
listed.. And I have tried other modes as well.  They all through
errors.


-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


shell script help

2003-07-23 Thread David Bear
I'm trying to clean up a script that controls my tape better.  Among
other things it sets some variable to use later.  I've made an error
somewhere and I'm thinking that I'm missing the obvious since I cant
find the error.  I want to set command line options for tar.  Below
taroptions has what I want.  Line 12 echo's the command.  When I use
what line echo's to the console tar works.  However, something is
happening with line 13 that makes tar mad.  It tells me 

tar can't open the archive /dev/sa0 /var/log

Please advice -- I'm going blind trying understand this one.


1 #!/bin/sh
2 PATH=/bin:/usr/bin
3 backupadmin=[EMAIL PROTECTED]
4 starttime=`date +DATE: %Y-%m-%d%nTIME: %H:%M`
5 wrkdir=/root
6 tmpfile=${wrkdir}/cat.tmp
7 curfile=${wrkdir}/tapelabel
8 catalog=${wrkdir}/level1Tar.cat
9 datetime=`date +DATE: %Y-%m-%d%nTIME: %H:%M`
0 taroptions=--create --verbose --block-size 1 --read-full-blocks --block-compress 
--gzip --file 
1 tapedev=/dev/sa0
2 echo tar ${taroptions}${tapedev} /var/log
3 tar ${taroptions}${tapedev} /var/log
4 exit

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


tape errors

2003-07-23 Thread David Bear

I'm beginning to wonder if my tape device or tape is going bad.

AFter a backup run tar exists with error

tar tvzf /dev/nsa0  t2
tar (child): read error on /dev/nsa0 : Input/output error

gzip: stdin: decompression OK, trailing garbage ignored
tar: Unexpected EOF on archive file

checking status of the tape gives me

mt status
Mode  Density  Blocksize  bpi  Compression
Current:  0x26:DDS-4   512 bytes  97000disabled
-available modes-
0:0x26:DDS-4   512 bytes  97000DCLZ
1:0x26:DDS-4   512 bytes  97000DCLZ
2:0x26:DDS-4   512 bytes  97000DCLZ
3:0x26:DDS-4   512 bytes  97000DCLZ
-
Current Driver State: at rest.
-
File Number: 1  Record Number: 0Residual Count 8704


Now does ANY residual count indicate error?  mt errstat gives me:

mt errstat
Last I/O Residual: 0
 Last I/O Command: 08 01 00 00 14 00 00 00 00 00 00 00 00 00 00 00
   Last I/O Sense:

 F0 00 80 00 00 00 11 14 00 00 00 00 00 01 00 00
 00 00 00 00 00 00 00 F6 1F 40 08 00 6F 63 00 00

Last Control Residual: 0
 Last Control Command: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
   Last Control Sense:

 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

okay.  what does it mean?  Residual count is 8704.  yet, i/o residual
and control residual is 0.  my understanding of this is getting worse.

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing

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


invalid argument

2003-07-22 Thread David Bear
while writing to a tape device using tar I get an error message:

using 'tar czvf /dev/nsa0 /var/log/'

ppsrv3# tar (child): can't write to /dev/nsa0 : Invalid argument

My assumptions were
1) the dev/[n]sa0 device was the first scsi tape unit
2) that n meant non-rewinding
3) that I could write one tarball to the tape, then another, in
succession.  Then each tarball would reside on the tape, one after the
other, and that I could untar them in succession as well.

So, what would be the cause of the invalid arg messeage above?

when attemptint to read the above tar file, with

tar tzvf /dev/nsa0

tar happily lists all files in the archive, but ends with:

gzip: stdin: unexpected end of file
tar: Unexpected EOF on archive file


I'm wondering if I have a blocking factor problem?  This is a DAT/dds4
tape unit.

Any advice would be appreciated.
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


getting the mdate of a file

2003-07-15 Thread David Bear
I'd like to run tar using a data incremental.  For example, if I run
tar today like this:
  tar cvf /dev/nsa0 /home  home.catalog

I end up with a listing of all files tarr'ed in home.catalog.  Then
the next day I'd like to run tar but only have tar select files that
were changed since home.catalog was written.  Tar has --newer DATE
option but I would like to set the DATE according to the last modified
time of the home.catalog.

So, question 1 is how do I get the last mod date of a file?  

Question 2 is, is there a better way that I'm missing?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sybase connection

2003-07-09 Thread David Bear
has anyone made a connection to a sybase db from freebsd?  I'm looking
at the netlibs from sybase.  they are binaries for linux.  I was
hoping there is some connector for freebsd...
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


fscking remotely

2003-07-08 Thread David Bear
I'm thinking that dropping to single user mode will kill are running
daemons include sshd?  is that true?  I have a nearly headless server
in another building and would like to ssh into it and

init 1
fsck /

then init 3

but, I'm thinking single user mode will lock remote access out...

any recommendations?
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


max group name length

2003-06-25 Thread David Bear
was just trying to determine the maximum string length of a group
name.

found 
struct group {
 char*gr_name;   /* group name */

but no size.

any pointers (with limits)?
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ftp daemon

2003-06-25 Thread David Bear
i find myself needing to run an ftp daemon.  

is the stock ftpd with freebsd safe, or are there any recommended
alternatives?
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


versioning file system

2003-06-23 Thread David Bear
years ago I used a VAX VMS system that automatically saved file
versions whenever a file name was clobbered.  

I've seen wrapper scripts for vi to accomplish the same but it would
be nice if someone had actually implemented something at the file
system level to do this.  Anyone know of anything like that for
FreeBSD?

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


good mass storage backup solution

2003-06-23 Thread David Bear
I have been using tapes for yeares, both DDS/dat and AIT style units.
This seems the be cheapest solution for high volume backup.  But I'm
wondering if anyone has any hardware solution that is really a good
backup media.  I used ORB disks for a while, at 40$ per 2gig disk of
DASD style media I thought it was okay (more expensive than tape but I
liked direct access style media)

Any votes for DASD style systems?  Sequential media is still kind of a
pain in the rear so I'm looking for suggestions of new/good/innovative
technology.

tx
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


restoring accounts

2003-06-10 Thread David Bear
I'm wondering, if I have a copy of /etc/master.password, is it better
to just copy that over the default installed version? or to try write
some kind of script to read it, and recreate accounts from it using
pw?  

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: scsi tape curiousity

2003-05-29 Thread David Bear
On Tue, May 27, 2003 at 11:43:48PM -0500, Dan Nelson wrote:
 In the last episode (May 27), David Bear said:
  I called the cybernetics people (maker of the tape unit) and their
  recommendation was to put the tape unit on a separate scsi controller
  from the hard drives.  I didn't want to do this since but did anyway.
  It seems to have fixed the problem.  I can now use the tape unit.  The
  question is
  
 
 Most likely bad termination.  Make sure all the cables are seated well,
 make sure you're got active terminators, and make sure that if all your
 devices are LVD, you have LVD terminators.

so the guy from cybernetics was feeding me BS?  ie you can safely run
tapes on hard drives on the same scsi chain?  

I think all drives are lvd AND I know I have an active lvd terminator
-- it cost me $30!  But, I do have cdrom ron the 50 pin bus.  It is
terminated using the cdrom internal terminator.  I wonder...


-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


scsi tape curiousity

2003-05-27 Thread David Bear
I have two machine with scsi hard drives and tape units in them.
Since these were machine assemble 'on the cheap' they only had a
single scsi controller.  All scsi Hd's were attached to the same
controller as the scsi tape unit.  No raid was used in any form.

One machine is at FBSD 4.3.  It has worked flawlessly for well over 3
years. (it started with linux)  

The other machine is at FBSD 4.8, recently changed from linux.

Now the question is, when I upgraded my second server, I had to change
scsi hardware to an adaptec 29160 as my older buslogix/mylex card was
not supported under freebsd.  I had to go with a wide scsi controller
becuase my tape unit is an external device that requires wide scsi.
After all the hardware was ready, and FBSD was installed, I went to
restore my home directories that were on tape.  My tape unit behaved
poorly and soon I started to get many strange errors from the kernel.  

The last message I caught was
spec_getpages:(#da/0x2) I/O read failure (error-6) bp 0xc68321bc
vo 0xcd379ec0

after that the system becomes unreadable.

I called the cybernetics people (maker of the tape unit) and their
recommendation was to put the tape unit on a separate scsi controller
from the hard drives.  I didn't want to do this since but did anyway.
It seems to have fixed the problem.  I can now use the tape unit.  The
question is

1) my first FSBD 4.3 system works perfectly find with a single scsi
card and all devices attached to it (though it is a different) model
tape unit.  Why would my second system barf when set up that way.

2) My tape unit and scsi system had been working under linux for years
without a problem.  Does FBSD do scsi so differently?

3) is anyone else running a tape unit and hard drives off the same
controller?

4) I thought the whole point of scsi was to allow multiple devices
intelligently communicate on the same buss.  Yet, it seems that is NOT
the case with tape units and hard drives -- the guy at cybernetics
mentioned their access methods can cause problems.

Sorry for the length, but I need a new working paradigm regarding scsi
cause it looks like everything I thought was wrong...

tia

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


NAT clients behind FBSD

2003-05-27 Thread David Bear
Does anyone know how many NAT clients can be effectively served by a
FBSD NAT box?  I know a lot will be determined by RAM, but I'm looking
for guidelines and experience.

-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


error making postfix

2003-03-27 Thread David Bear
From /usr/ports/mail/postfix-current I try a make..  This is the
error.  How can I get postfix to install?  don't know what sed_inplace
is or why it wouldn't have come as a dependenancy...

1308999 bytes transferred in 7.7 seconds (165.90 kBps)
===  Extracting for postfix-1.1.11-20021115,1
 Checksum OK for postfix/postfix-1.1.11-20021115.tar.gz.
===  Patching for postfix-1.1.11-20021115,1
/usr/local/bin/sed_inplace: not found
*** Error code 127

Stop in /usr/ports/mail/postfix-current.
*** Error code 1

Stop in /usr/ports/mail/postfix-current.

-- 
David Bear
College of Public Programs/ASU
Mail Code 0803
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: WRITE FILEMARKS. CDB: 10 0 0 0 1 0 MEDIUM ERROR asc:3b,0

2003-03-19 Thread David Bear
On Wed, Mar 19, 2003 at 01:01:54PM +0100, Hartmann, O. wrote:
 Hello.
 (sa0:sym0:0:5:0): WRITE FILEMARKS. CDB: 10 0 0 0 1 0
 (sa0:sym0:0:5:0): MEDIUM ERROR asc:3b,0
 (sa0:sym0:0:5:0): Sequential positioning error
 (sa0:sym0:0:5:0): failed to write terminating filemark(s)
 (sa0:sym0:0:5:0): tape is now frozen- use an OFFLINE, REWIND or MTEOM command to 
 clear this state.
 (sa0:sym0:0:5:0): tape is now frozen- use an OFFLINE, REWIND or MTEOM command to 
 clear this state.
 

I've had strange messages like this with my tape unit as well using
FreeBSD 4.4.  mt rewind, mt errstat etc show me info.  But, I've yet
to ever determine why.  The fix has always been to run a cleanning
tape through the unit.  OR, sometime for some strange reason the sa
driver forgets things like blocksize, compression, et. al. so I have
to use mt to reset those.

I'm very curious how many people use dat/ait style tape units for bsd
backups.  I've yet to ever get a response from anyone regarding a tape
'issue' (messages like the above)
 

-- 
David Bear
College of Public Programs/ASU
Mail Code 0803

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


pkg_upgrade ?

2003-03-18 Thread David Bear
I've been searching the handbook and can't seem to find what I'm
looking for regarding upgrading a port.  I know there is
portupgrade... which I'd like to avoid because I don't want to install
ruby as well.  

I do have cvsup installed, and can run cvsup to update my ports
collection.  My question is if I already have a package installed,
running cvsup, the make install again for a preexisting port will mess
up the pkg-data base right?  So, if I only want to upgrade a single
port, is the recommended way

1) pkg_deinstall
2) cvsup ports collection
3) pkg_install again (or make install)

This seems rather poor as I don't want to have all the downtime
between deinstalling and installing again.

If I cvsup ports and then make install, is there a fix to update the
pkg data base?

-- 
David Bear
College of Public Programs/ASU
Mail Code 0803

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


make error for postfix

2003-03-04 Thread David Bear
While attempting to install postfix from the ports collection I get
the following:

Unknown option(s): subwin(dialog,16,71,4,7) failed, maybe wrong dims
*** Error code 1

Stop in /usr/ports/mail/postfix.

This system was freshly cvsup'd and I get this regardless of which
postfix I try -- current or not.  My FreeBSD is

FreeBSD urbansrv1.pp.asu.edu 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0:
Wed Aug 14 21:23:26 GMT 2002
[EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386


What am I missing?

-- 
David Bear
College of Public Programs/ASU
Mail Code 0803

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


procmail question a little off topic

2003-02-21 Thread David Bear
sorry for the offtopic post here but I cant seem to get my procmail
recipe's to fire.  I know sendmail sees and uses procmail because
maillog show its handing it of to procmail.  Also, the mail inbox
specified in the procmailrc file is receiving the message.  Still,
none of the messages that I want taking from inbox and put in other
folders as specified in the recipe's section are being moved.

excuseI went to the procmail website and since and the lists seem to be in
german... and my german is nonexistent... /excuse

any pointers appreciated.

 .procmailrc ==
# Frisch, SA, p 602
PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:$HOME/bin
MAILDIR=$HOME/mail
DEFAULT=$MAILDIR/inbox
#
# catch systems for syslog entries
# ppsrv3, PAC SMB server
:0:
* [EMAIL PROTECTED]
syslogs/ppsrv3

# urbansrv1, CUI, apas, ais smb spooler
:0:
* [EMAIL PROTECTED]
syslogs/urbansrv1

# ppsrv5, aka cyrus, smb/web server
:0:
* [EMAIL PROTECTED]
syslogs/ppsrv5

# db2srv1, development machines
:0:
* [EMAIL PROTECTED]
syslog/db2srv1

# recsrv1, smb server recreation mgt
:0:
* [EMAIL PROTECTED]
syslog/recsrv1

=== end procmailrc =
-- 
David Bear
College of Public Programs/ASU
Mail Code 0803

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: running an x app remotely via ssh

2003-02-12 Thread David Bear
On Wed, Feb 12, 2003 at 10:14:13AM -0600, Kirk R. Wythers wrote:
 I am able to log into my office machine (5.0-RELEASE) with ssh from home
 just fine. However when I attempt to start an X-app (with putty), I get
 the error: 
 
 lorax: [/etc/ssh] $ evolution 
 [1] 674
 lorax: [/etc/ssh] $ Gdk-ERROR **: X connection to localhost:10.0 broken
 (explicit kill or server shutdown).
 
 What did I miss? I have a fragment of a memory about adding my home
 machine to some file somewhere on my office box in order for my home

did you have an X server running on your home machine when you shell
into your office machine?

also, when using ssh I need to use -X at the end of the command line
to instruct it to tunnel X.  don't know about putty.


-- 
David Bear
College of Public Programs/ASU
Mail Code 0803

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: how to delete a file called ????

2003-02-12 Thread David Bear
On Wed, Feb 12, 2003 at 11:12:32AM -0500, David Banning wrote:
 I have a file called ???
 
have you tried Emacs in dired mode?

 Yes, the file is a bunch of question marks.
 
 I can't seem to clean it away.
 
 rm 
 rm ''
 rm 
 
 all do not work.
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

-- 
David Bear
College of Public Programs/ASU
Mail Code 0803

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



fouled up cvsup

2003-01-30 Thread David Bear

I thought I understood cvsup till I did it.. After running cvsup all
my ports collection was deleted... accept ports I had already
installed.  I wanted to avoid installing ANY ports untill I had
cvsuped the collection.  

How can I leave ports not yet installed, alone in the collection?

advice please?
==
here's my cvsupfile
==

*default release=cvs
*default host=cvsup10.freebsd.org
*default base=/usr/local/etc/cvsup
*default prefix=/usr
*default delete
*default compress
*default tag=RELENG_4_7
*default use-rel-suffix
src-all
ports-all
doc-all

===
and here's my refuse file
===

ports/astro
ports/cad
ports/chinese
ports/french
ports/ftp
ports/games
ports/german
ports/hebrew
ports/japanese
ports/korean
ports/palm
ports/picobsd
ports/russian
ports/ukrainian
ports/vietnamese
doc/de_DE.ISO8859-1
doc/el_GR.ISO8859-7
doc/es_ES.ISO8859-1
doc/fr_FR.ISO8859-1
doc/it_IT.ISO8859-15
doc/ja_JP.eucJP
doc/nl_NL.ISO8859-1
doc/pt_BR.ISO8859-1
doc/ru_RU.KOI8-R
doc/sr_YU.SIO8859-2
doc/zh_TW.Big5

=
-- 
David Bear
College of Public Programs/ASU
Mail Code 0803


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Deleted files not releasing their space (was Re: syslog message wrt inodes)

2003-01-28 Thread David Bear
On Tue, Jan 28, 2003 at 08:27:12PM -0500, Lowell Gilbert wrote:
 Bill Moran [EMAIL PROTECTED] writes:
  Let's see if I remember the details on this.
  I believe this happens when a file is deleted, but another program still holds
  a filehandle? to it.  Thus, if you delete Apache's log file (for example) but
 Right.  That's why newsyslog(8) can send a signal on rotating a log file.
 I'm not quite sure why this is relevant to the actual problem, because
 it's not really *that* many inodes involved in log files, but then
 again I'm not sure I completely understand the problem anyway...
 

The problem is that I am running snort and its creating hundreds of
entries in /var/log/snort -- one directory for each alert generated by
an IP address.  then specific info on that alert in a file under each
directory.  So -- aside from the standard log files, the will be a
bazillion files and directories that snort will create.. I know one
solution would be to create a separate file system for snort, then
mount it at /var/log/snort --- that would likely be the safest.  Then
if it ever ran out of inodes, /var/log would still function.  


but then, this is an old box and I don't have another hard drive to
throw in it...

I think stopping and restarting snort did the trick though.



-- 
David Bear
College of Public Programs/ASU
Mail Code 0803

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



to make or add a package

2003-01-22 Thread David Bear
I'm very impressed with the ports collection.

I have found there are two was to install a port, through pkg_add or the make.  I was 
wondering that if a port were a make, if the compiler would do any optimizations on 
the final executable, therefore giving me a faster/smaller/whatever application.  
Maybe there would be no significant difference.  But, if I have the time to wait, is 
it worth it?

-- 
David Bear
College of Public Programs/ASU
Mail Code 0803

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: KVM (keyboard-video-mouse) Switch

2003-01-22 Thread David Bear
On Wed, Jan 22, 2003 at 03:21:41PM -0500, Justin P. Michel wrote:
 Greetings,
 
 I have an electronic KVM that I want to use to switch between my crappy
 system, and my FreeBSD system.  The keyboard and mouse work fine on my
 crappy system, but, on the FreeBSD system, they work fine on startup, but
 after switching back and forth only once, the mouse (LED mouse) starts

I'm using a linksys kvm switch to go between linux (rh 7.3), freebsd
(4.6), and windows2000.  The only problem I have is with win2000.  The
switch must be set to that machine during windows startup or windows
doesn't think there's a mouse..

-- 
David Bear
College of Public Programs/ASU
Mail Code 0803

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



scsi tape device issue

2003-01-09 Thread David Bear
I'm running FreeBSD4.4.  I have a scsi tape unit -- external built by cybernetics (a 
dds4 format)  which I've been using for a couple of years.  Suddenly the mt command 
tells me its a qic-150 unit.  Why would this have happened and how can it get the 
driver to correctly recognize its a dds-4 unit?

-- 
David Bear
College of Public Programs/ASU
Mail Code 0803

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Shell guru needed.

2003-01-03 Thread David Bear
On Thu, Jan 02, 2003 at 08:03:37PM -0500, mike wrote:
 Hey guys. heres the skinny. I have a huge library and i want to organize it. I want 
find to go through recursively, and move any pdf files it finds to a certain 
directory. I need an example piece of script on how i would confront this. It will 
save me hours if not days so thanks in advance.

I'm no shell guru but how about something like

find ./yourdirectory -name *pdf -exec mv {} ./newdirectory \;

you may have to play with the syntax a little but wouldn't this do it?

 

-- 
David Bear
College of Public Programs/ASU
Mail Code 0803

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



difs between 4.6.2 and 4.7

2003-01-03 Thread David Bear
I'm installing freebsd on a dell laptop (latituted).  It only has a 6 gig drive.

I guess my concern is to keep the install small both required memory and disk space.  
Yet, i would like to use the 'newest' version in hopes that it will have the latest 
kde and xfree stuff.  This may be a mistake though.

if the choice is between 4.6.2 and 4.7 which would be a better install if the 
criterion were
1) keep the install small (hard disk space)
2) keep the working set small in ram
3) make sure the important ports will work  -- kde, openoffice, -- a good gui browser 
(any recommendations) and zope

tia.
-- 
David Bear
College of Public Programs/ASU
Mail Code 0803

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message