FreeBSD router: Can my internet provider detect my home network?

2004-04-09 Thread Rob


Hi,

I plan to have a FreeBSD (4.9 stable) system serving as a router
between my provider and a set of my home computers connected
via a home network.
My provider does not really like this, but I don't care so much,
as long as s/he cannot detect (too easily) my home network.
My plan is to use the following setup in my rc.conf:
   gateway_enable=YES
   natd_enable=YES
   natd_interface=rl0
   firewall_enable=YES
   firewall_type=open
(with, of course, the proper options compiled into the kernel).

Is it correct, that the combination of firewall and natd divert
all requests and thus hide the home network for my provider?
Are requests from all other networked home PC's done on behalf of
the router, so that my provider will only see requests from my router?
Or do I need some better (firewall?) configuration for this?

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


Re: changing directory permissions recursively

2004-04-09 Thread Uwe Doering
Bill Campbell wrote:
On Fri, Apr 09, 2004, dave wrote:

Hello,
  I've got a problem, a directory area has the wrong permissions, occurred

from a dump restore. Now my user's can't get to the files within the area. I

could go around and do chmod permissions directoryname, but i was wondering
if there was a perl or shell script that would do this?
cd $topdir
find . -type d | xargs chmod 755
In case (potentially) untrusted users have had write permission in this 
directory tree in the past, a safer alternative would be

  find /path/to/tree/root -type d -print0 | xargs -0 chmod 755

Better safe than sorry.

   Uwe
--
Uwe Doering |  EscapeBox - Managed On-Demand UNIX Servers
[EMAIL PROTECTED]  |  http://www.escapebox.net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD router: Can my internet provider detect my home network?

2004-04-09 Thread Viktor Lazlo
On Fri, 9 Apr 2004, Rob wrote:

 Is it correct, that the combination of firewall and natd divert
 all requests and thus hide the home network for my provider?
 Are requests from all other networked home PC's done on behalf of
 the router, so that my provider will only see requests from my router?

Your firewall and natd ensure that anyone outside of your network,
including your ISP, will only be aware of your external, routable IP
address.  What will be visible to the world are the ports accessible on
that IP that are being redirected to the RFC 1918 addresses on your local
network.  The only way to conceal those is to lock them down when you
don't need to allow a connection through them, or to reassign them to
non-standard ports, as most ISP's are only bothered about ports 25 and 80.
I'm not aware of any ISP's that have done any major crackdown on customers
merely for having those ports open, generally they monitor traffic and
check on ones generating a lot of throughput on the assumption they are
hosting porn, warez or a commercial site.

Cheers,

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


Re: enabling S.M.A.R.T on drives attached to Adaptec 2400A RAID controller

2004-04-09 Thread Uwe Doering
Guido Kollerie wrote:
In my server I have four 40GB IBM Deskstar 120GXP drives attached
to an Adaptec 2400A RAID controller in a RAID-5 configuration
with one of the drives configured as a hot spare.
According to Adaptec's raidutil utility the four drives do not
have the S.M.A.R.T. capability for detecting potential problems.
However according to the IBM/Hitachi datasheet for these drive
they _do_ have this capability:
http://ssddom01.hgst.com/tech/techlib.nsf/techdocs/E0B26749E1A7728C87256B290055ECA5/$file/D120GXP_ds.PDF

Is there a way to convince the 2400A that these drives do support
S.M.A.R.T, and if so how do I enable it?
In my experience the fact that 'raidutil -L all' doesn't flag the 
S.M.A.R.T capability is not really relevant.  I've seen 2400A 
controllers in the past that didn't flag that capability, either, and 
still disk drives (IBM) failed because of excessive S.M.A.R.T errors, 
according to the controller's event log.

I have no idea, though, how to check in advance whether S.M.A.R.T is 
enabled by default in a specific disk drive.  However, there is a check 
box for S.M.A.R.T in the controller's BIOS setup (if I remember 
correctly), and it was selected by default in all cases I've seen.

   Uwe
--
Uwe Doering |  EscapeBox - Managed On-Demand UNIX Servers
[EMAIL PROTECTED]  |  http://www.escapebox.net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


rc.firewall question on 'simple' and 'client' setup.

2004-04-09 Thread Rob


Hi,

In /etc/rc.firewall, the 'simple' and 'client' options
have following that needs adjusted:
# set these to your outside interface network and netmask and ip
oif=ed0
onet=192.0.2.0
omask=255.255.255.240
oip=192.0.2.1
# set these to your inside interface network and netmask and ip
iif=ed1
inet=192.0.2.16
imask=255.255.255.240
iip=192.0.2.17
What is the difference between onet and oip, and same for inet
and iip?
Or are they in most common router setups the same (I mean, onet = iop,
and inet = iip)?
Thanks,
Rob.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD router: Can my internet provider detect my home network?

2004-04-09 Thread Dirk-Willem van Gulik
On Apr 9, 2004, at 8:33 AM, Rob wrote:

I plan to have a FreeBSD (4.9 stable) system serving as a router
between my provider and a set of my home computers connected
via a home network.
My provider does not really like this, but I don't care so much,
as long as s/he cannot detect (too easily) my home network.
Most ISP's do not care a toss, expcept perhaps for port 25
and port 80.
However there is a fair chunk of software (we did some, and found
there was competition :-) which uses TCP sequence numbers to
detect NAT. Various forms of through-nat fingerprinting can also be
used to make a stab as to wether there is 1 or 1 machines behind
a router. (Note that for legal reasons only the case N=1 versus N1
is of interested; generally not the exact number) Even if the TCP
and signatures are cloaked there is some easy to run software which
will look at application level signatures (HTTP Agent strings) or things
as simple as two IM log in's in parallel. The objective is generally
to run such software over the 2-5% of your top bandwidth hoggers
to bring it down to a small number - and look at those in depth. What
you are really after is blatent abuse.
Dw

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


Re: Viewing pointer addresses...

2004-04-09 Thread Eric F Crist
On Thursday 08 April 2004 11:25 pm, Jamie wrote:
 I'm running FreeBSD 4.9REL. Is there a way to find the current value
 of the stack and instruction pointers of a running process with ps or
 something similiar?






 Greetings from Minneapolis, MN, United States

 A friend is someone who lets you have total freedom to be yourself.

St. Paul, MN here.  Have you thought of joining the TCBUG (Twin Cities BSD 
Users Group)?  We have a meeting on April 17th and you're welcome to join us.  
http://www.tcbug.org I believe for more information and to join our mailing 
list.
-- 
Eric F Crist
AdTech Integrated Systems, Inc
(612) 998-3588


pgp0.pgp
Description: signature


vmware trouble

2004-04-09 Thread Yuriy Gerasimov
I have FreeBSD 5.2-RELEASE and installed vmware vmware3-3.2.1.2242_6,1.

I cannot Power it On. I have just error

Cannot attach shared memory segment: Invalid argument.
Failed to initialize SVGA device.
I tryed to set up different OS there (DOS and Win98) but always I had 
this error.

Regards

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


Need advice on smbldap-passwd I/O Error when normal user want to change passwd

2004-04-09 Thread Suhaimi Jamalludin
Hi All,

Need some advise regarding smbldap-tools-0.8.4. I have configure this
tools and make it work with my LDAP server.
FYI ...ldap+samba is on the same server.
I manage to change normal user password when I a root. However if I'm
normal user I got I/O Error?
What can be wrong here?
Really appreciate if some can advice me. For detail please see below

my-svr# id
uid=0(root) gid=0(wheel) groups=0(wheel), 5(operator), 512(Domain Admins)
my-svr# smbldap-passwd sambauser2
Changing password for sambauser2
New password :
Retype new password :
my-svr# su sambauser2
%id
uid=1003(sambauser2) gid=513(Domain Users) groups=513(Domain Users)
%smbldap-passwd
I/O Error   at /usr/local/sbin//smbldap_tools.pm line 189, DATA line 283.
%
--
Regards,
Suhaimi,

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


Re: Viewing pointer addresses...

2004-04-09 Thread Jamie
On Fri, 9 Apr 2004, Eric F Crist wrote:

 On Thursday 08 April 2004 11:25 pm, Jamie wrote:
  I'm running FreeBSD 4.9REL. Is there a way to find the current value
  of the stack and instruction pointers of a running process with ps or
  something similiar?
 
 
 
 
 
 
  Greetings from Minneapolis, MN, United States
 
  A friend is someone who lets you have total freedom to be yourself.

 St. Paul, MN here.  Have you thought of joining the TCBUG (Twin Cities BSD
 Users Group)?  We have a meeting on April 17th and you're welcome to join us.
 http://www.tcbug.org I believe for more information and to join our mailing
 list.


   Yes, thanks! I actually joined the tcbug list a few weeks ago and plan
on attending the meetings. So, I'll probably see you there, then.


- Jamie



 --
 Eric F Crist
 AdTech Integrated Systems, Inc
 (612) 998-3588



Greetings from Minneapolis, MN, United States

A friend is someone who lets you have total freedom to be yourself.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to get memory usage for process?

2004-04-09 Thread Uwe Doering
Artem Koutchine wrote:
Hi!

I need to figure out how much memory process really takes.
For example, i am running 100 perl scripts, they are all the
same source and i guess some memory is shared among them
(mostly perl interperter i guess). So, i need to know how much
memory is shared and how much memory is used for each new
running script (including buffers, e.t.c.). What command shoud
do the trick and with what options?
In case you have the PROCFS mounted (usually under /proc) you can get a 
detailed listing of the memory map of a process, together with the 
relevant flags for the various memory segments that indicate memory 
sharing etc.  Try this:

  cat /proc/pid/map

'pid' is of course to be replaced by the PID of the process you want 
to examine.

   Uwe
--
Uwe Doering |  EscapeBox - Managed On-Demand UNIX Servers
[EMAIL PROTECTED]  |  http://www.escapebox.net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


newbie questions

2004-04-09 Thread Radu MOLNAR
I hope this is the right place to post this.Sorry if it isn't

Just some stupid newbie questions:
1) I have an alias made in my .profile alias vi='/usr/local/bin/vim' but
the alias is not made when i log in X. If a log in console or using ssh
from a remote host the alias is made but when i log in x it is not.
Anybody know why? As shell i use bash.

2)In /etc/syslogd.conf i have comented the line
#*.err;kern.debug;auth.notice;mail.crit /dev/console
so that i wouldn't get any logs on my first console. But there are some
logs that get printed on the first console. They're printed in bright
white :) and they appear for example when someone tries to scan for opened
ports on my computer. My question is who makes these logs?

3)Why does pine say:
[Folder vulnerable - directory /var/mail must have 1777 protection]
these are the rights on /var/mail/taipan where taipan is my user:

[EMAIL PROTECTED] mail]# ls -l /var/mail/taipan
-rw---  1 taipan  wheel  11089 Apr  9 11:08 /var/mail/taipan

and alsoe the rights on /var/mail:
drwxrwxr-x   2 rootmail 512 Apr  9 11:07 mail

That's about it for now.
Happy Easter to everybody!


Radu Molnar
Babes-Bolyai Comunication Center


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


Natd and natd_interface

2004-04-09 Thread Arek Czereszewski
Hi

I have configuration like this:

Intrenet - fxp0 (public IP) [freebsd box] - fxp1 (public IP) class /28 and
   some workstatins connected,
  mail daemon, www and others
- fxp1 alias 192.168.0.1/24 
  and LAN
And now what interface in rc.conf must be natd_interface, fxp1 or fxp0?
Secend question is: 
This rule for ipfw is OK for configuration what i have?
ipfw add 50 divert natd all from 192.168.0.0/24 to any via fxp1

I'm new in freebsd world. Can somebody help me?

Arek

P.S.
My english is awful, sorry.




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


Re: remote install of freebsd via ssh

2004-04-09 Thread Cory Petkovsek
 From: Brian
 Sent: April 8, 2004 05:21

 Hello,
 Is there a way (or what is the best way) for installing freebsd
 remotely?  I have a nontechnical person at the site that can put
 in a cd or enter a few commands, but the thought of walking
 through a full install via the phone is not fun.  I would prefer
 to be able to use ssh for configuring.  Any suggestions would be
 a great help.

Burn a freesbie[1] and mail it to them.  Have them boot up in it.  Have them
start sshd if it isn't.  You can log in and take over.


[1] http://www.freesbie.org/

Cory

-- 
Cory Petkovsek   Adapting Information
Adaptable IT ConsultingTechnology to Your
(858) 705-1655   Business
[EMAIL PROTECTED]  www.AdaptableIT.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: WebMail

2004-04-09 Thread eric
Shawn Guillemette wrote:

 From [EMAIL PROTECTED]  Thu Apr  8 19:59:55 2004
 From: Shawn Guillemette [EMAIL PROTECTED]
 To: Freebsd-Questions [EMAIL PROTECTED]
 Date: Thu, 8 Apr 2004 22:59:57 -0400
 Subject: WebMail

 I'm looking into options for webmail.. was looking for ideas... Looking for
 something with a good how to .. ;-)

I also looked into this recently. There are a number of options, and
they all work quite differently. Some are just a web-based mail client,
that expect to talk to an existing IMAP server (squirrelmail) which may
or may not live on the same server; others are a client AND mail server
in their own right and expect to directly manipulate mailboxes/maildirs
(openwebmail, sqwebmail).

In my case, we had users already with OE/Mozilla via IMAP/POP3 connecting
to a dovecot mail server. Since this already provides IMAP funcationality,
and maintains indexes etc, it didnt make sense to run something that
wanted to directly touch the maildirs - so I went with squirrelmail.

Currently, its installed on a different server to the mail server, and is
quite happy talking imaps (secure IMAP, port 993) to dovecot.

It was relatively easy to setup (hardest part was probably the PHP4
dependency, which I'd never touched before), and has good documentation
online (though not always easy to find what you're looking for). It
has a nice selection of plugins, too, which I've started to play around
with and customise.

Cheers,

Eric.

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


Re: Natd and natd_interface

2004-04-09 Thread Rob
Arek Czereszewski wrote:
Hi

I have configuration like this:

Intrenet - fxp0 (public IP) [freebsd box] - fxp1 (public IP) class /28 and
   some workstatins connected,
  mail daemon, www and others
- fxp1 alias 192.168.0.1/24 
  and LAN
And now what interface in rc.conf must be natd_interface, fxp1 or fxp0?
fxp0, the one that connects to the outside network.

Secend question is: 
This rule for ipfw is OK for configuration what i have?
ipfw add 50 divert natd all from 192.168.0.0/24 to any via fxp1
I don't think you have to do this yourself.
I believe by adding
natd_enable=YES
to your rc.conf, you get the following rule as a result:
   divert 8668 ip from any to any via fxp0
which does what you want (I think).
Rob.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: WebMail

2004-04-09 Thread Cory Petkovsek
On Thu, Apr 08, 2004 at 10:59:57PM -0400, Shawn Guillemette wrote:
 I'm looking into options for webmail.. was looking for ideas... Looking for
 something with a good how to .. ;-)

First pick a package, then worry about a howto.  Openwebmail is nice, it reads
mail directly off of the mail spool.  However it only works with mbox format.
If this doesn't mean much to you it's not a big deal.  Squirrelmail is also
good but works through an imap server.  This means it is independent
of the underlying format, but it is slower.

Cory 

-- 
Cory Petkovsek   Adapting Information
Adaptable IT ConsultingTechnology to Your
(858) 705-1655   Business
[EMAIL PROTECTED]  www.AdaptableIT.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: changing directory permissions recursively

2004-04-09 Thread Cory Petkovsek
On Fri, Apr 09, 2004 at 08:47:07AM +0200, Uwe Doering wrote:
 cd $topdir
 find . -type d | xargs chmod 755
 
 In case (potentially) untrusted users have had write permission in this 
 directory tree in the past, a safer alternative would be
 
   find /path/to/tree/root -type d -print0 | xargs -0 chmod 755

Please explain the safer difference in your eyes, Uwe.  Are you thinking the
admin might have ./ in their path?

Cory

-- 
Cory Petkovsek   Adapting Information
Adaptable IT ConsultingTechnology to Your
(858) 705-1655   Business
[EMAIL PROTECTED]  www.AdaptableIT.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: can I shrink an existing slice

2004-04-09 Thread Matthew Seaman
On Thu, Apr 08, 2004 at 11:53:35PM +0100, Tadimeti Keshav wrote:

 I know this might not be possible; but can I shrink a
 freeBSD slice to make room for linux?

Not easily.  You have to backup the data, change the slicing using
fdisk(8), rebuild the FreeBSD partitions using disklabel(8) or
bsdlabel(8), create new filesystems using newfs(8) and then restore
all of your data from the backup.  As you'll presumably be wiping out
the OS installation you usually boot from in the course of that,
you'll need a bootable CD Rom or somesuch to work from.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: Natd and natd_interface

2004-04-09 Thread Arek Czereszewski
Rob wrote:

fxp0, the one that connects to the outside network.
Yes. It is.

I don't think you have to do this yourself.
I believe by adding
natd_enable=YES
Yes, i have this. And gateway_enable, firewall_enable, firewall_type

to your rc.conf, you get the following rule as a result:
   divert 8668 ip from any to any via fxp0
which does what you want (I think).
But i have 10 workstations with public IP from my subnet 
213.216.67.80/28 connected to fxp1. Is this rule do NAT for this IP too?

Arek

--
Arkadiusz Czereszewski  |  gg: 1349941
arek(at)wup-katowice.pl | jid: [EMAIL PROTECTED]
*NIX is like wigwam - no windows, no gates
and apache inside.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail/strace hanging

2004-04-09 Thread Matthew Seaman
On Thu, Apr 08, 2004 at 04:08:39PM -0700, Cory Petkovsek wrote:

 Stopping sendmail with `sh /etc/rc.sendmail stop` works quickly.  Starting it
 takes about 3min.   Both sendmail-submit and sendmail-clientmqueue take a
 while before moving.  Booting also has this delay.

In the interests of eliminating the obvious: you have confirmed that
this is not some sort of DNS timeout?  Delays of that length on
starting up sendmail are usually due to waiting out the DNS timeouts.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Question about multipath patch for FreeBSD

2004-04-09 Thread hugle
Hello all.
I've just patched my kernel with option MULTIPATH
http://www.dsm.fordham.edu/~tanzer/multipath/mpath-48S.tgz

patch -p0  /usr/src/mpath/mpath-diff-sys
patch -p0  /usr/src/mpath/mpath-diff-route
patch -p0  /usr/src/mpath/mpath-diff-netstat
patch -p0  /usr/src/mpath/mpath-diff-man

#here made a backup of files ;)
cp /usr/include/net/route.h /home/hugle/multipath/route.h
cp /usr/include/net/if_var.h /home/hugle/multipath/if_var.h

cp /usr/src/sys/net/route.h /usr/include/net/route.h
cp /usr/src/sys/net/if_var.h /usr/include/net/if_var.h

did config
make depend

and while doing make
i get this error:
cast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I../../../include 
-I../../contrib/dev/acpica -I../../contrib/ipfilter  -D_KERNEL -include opt_global.h  
-mpreferred-stack-boundary=2  ../../netinet/if_ether.c
../../netinet/if_ether.c: In function `arplookup':
../../netinet/if_ether.c:923: too few arguments to function `rtrequest'
*** Error code 1

Stop in /usr/src/sys/compile/MULTIPATH.

can someone help me?
I've cvsupeed with RELENG_4 today on 2004-4-09
-- 
Best regards,Hugle


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


Re: changing directory permissions recursively

2004-04-09 Thread Uwe Doering
Cory Petkovsek wrote:
On Fri, Apr 09, 2004 at 08:47:07AM +0200, Uwe Doering wrote:

cd $topdir
find . -type d | xargs chmod 755
In case (potentially) untrusted users have had write permission in this 
directory tree in the past, a safer alternative would be

 find /path/to/tree/root -type d -print0 | xargs -0 chmod 755
Please explain the safer difference in your eyes, Uwe.  Are you thinking the
admin might have ./ in their path?
No, but specially crafted file names can contain spaces and newlines. 
Since xargs(1) by default considers whitespace to be argument separators 
users can easily inject absolute paths to files somewhere else in the 
filesystem and wreak havoc this way.  They just have to wait until 
'root' traverses over their files with 'find' and 'xargs'.

The '0' options for find(1) and xargs(1) have been introduced to counter 
these attacks.

   Uwe
--
Uwe Doering |  EscapeBox - Managed On-Demand UNIX Servers
[EMAIL PROTECTED]  |  http://www.escapebox.net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: changing directory permissions recursively

2004-04-09 Thread Matthew Seaman
On Fri, Apr 09, 2004 at 02:03:51AM -0700, Cory Petkovsek wrote:
 On Fri, Apr 09, 2004 at 08:47:07AM +0200, Uwe Doering wrote:
  cd $topdir
  find . -type d | xargs chmod 755
  
  In case (potentially) untrusted users have had write permission in this 
  directory tree in the past, a safer alternative would be
  
find /path/to/tree/root -type d -print0 | xargs -0 chmod 755
 
 Please explain the safer difference in your eyes, Uwe.  Are you thinking the
 admin might have ./ in their path?

But putting a space in a filename, or by several other means, you can
fake the first version of the command into working on directories
outside what was intended.  However the more usual effect is that the
command fails to change the permissions on the whole tree as desired. 

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: Install world fails, computer almost unusable

2004-04-09 Thread Artem Koutchine

From: Joshua Lokken [EMAIL PROTECTED]
 * Artem Koutchine [EMAIL PROTECTED] [2004-04-08 06:44]:
  IMHO the upgrade pricedure is unstable and wrong in either case.
  
  What do you think?
 
 I don't pretend to understand *all* of the reasoning behind the
 recommended upgrade procedure.  Since I began using FreeBSD, I have
 performed somewhere around 50 system upgrades on various machines, most
 of them 4.x, and have upgraded 5.1-5.2 on four machines.  Of those
 system upgrades, two have failed, or 'not worked.'  One of them was due
 to the fact that I didn't follow the recommended procedure (admittedly,
 supplemented with list wisdom), the other, because I didn't follow the
 recommended procedure.
 
 It just works.
 

Actually it failed only once for me since 1996. But! I alway fill
shaky when upgrading a remote server and rebootting it. Never failed
once but i CAN SEE a case when it will fail because some utility
does not match kernel at the time of installation. The ideal upgrade
procedure must allow fall back to the previous version. So, the
ideal upgrade must install everything into a temporary storage space and
after reboot,  try to replace existing files with the new onces and if after
that boot failes after the next reboot restore the originals while keeping log.
I don't think it is as hard to implement as 5.2 locking :) 

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


Re[2]: Natd and natd_interface

2004-04-09 Thread vasilkin
Hello Arek,

Write to /etc/natd.conf strings like:
redirect_address 192.168.0.10 213.216.67.80
redirect_address 192.168.0.11 213.216.67.81
...
redirect_address INSIDE_IP PUBLIC_IP

 and write into /etc/rc.conf :
natd_flags= -f /etc/natd.conf 


Friday, April 9, 2004, 1:13:18 PM, you wrote:

AC Rob wrote:

 fxp0, the one that connects to the outside network.

AC Yes. It is.

 I don't think you have to do this yourself.
 I believe by adding
 natd_enable=YES

AC Yes, i have this. And gateway_enable, firewall_enable, firewall_type

 to your rc.conf, you get the following rule as a result:
divert 8668 ip from any to any via fxp0
 which does what you want (I think).

AC But i have 10 workstations with public IP from my subnet 
AC 213.216.67.80/28 connected to fxp1. Is this rule do NAT for this IP too?

AC Arek




-- 
Best regards,
 vasilkinmailto:[EMAIL PROTECTED]

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


RE: WebMail

2004-04-09 Thread mark rowlands
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Josh Paetzel
 Sent: Friday, April 09, 2004 5:04 AM
 To: Shawn Guillemette
 Cc: Freebsd-Questions
 Subject: Re: WebMail
 
 On Thu, Apr 08, 2004 at 10:59:57PM -0400, Shawn Guillemette wrote:
  I'm looking into options for webmail.. was looking for ideas... 
  Looking for something with a good how to .. ;-)
  
  Shawn Guillemette
 
 I've had pretty good luck with openwebmail
 
 Josh Paetzel

ducking and covering...

I use Microsoft Exchange 2003 with postfix / spam-assassin / 
amavis-d as the mta / frontend and then reverse proxy the 
webmail through apache. Though I hate to say it I simply haven't
found any webmail / open source collaboration software that really
matches the functionality in OWA 2003  :-(. The cost sucks tho...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How can I remove this file ?

2004-04-09 Thread Supote Leelasupphakorn
Hi lists

  How can I delete file named prefix with - ?

TIA
Pote



Yahoo! Messenger - Communicate instantly...Ping 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How can I remove this file ?

2004-04-09 Thread Jonathan Chen
On Fri, Apr 09, 2004 at 12:40:35PM +0100, Supote Leelasupphakorn wrote:
 Hi lists
 
   How can I delete file named prefix with - ?

Use rm ./-
-- 
Jonathan Chen [EMAIL PROTECTED]
--
Only the meek get pinched. The bold survive.
  - Ferris Bueller
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How can I remove this file ?

2004-04-09 Thread Erik Trulsson
On Fri, Apr 09, 2004 at 12:40:35PM +0100, Supote Leelasupphakorn wrote:
 Hi lists
 
   How can I delete file named prefix with - ?

If you had bothered to read the manpage for rm(1) you would already
know that since the following paragraph appears there:

   The rm command uses getopt(3) to parse its arguments, which allows it to
   accept the --' option which will cause it to stop processing flag
   options at that point.  This will allow the removal of file names that
   begin with a dash (-').  For example:
 rm -- -filename
   The same behavior can be obtained by using an absolute or relative path
   reference.  For example:
 rm /home/user/-filename
 rm ./-filename



-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: changing directory permissions recursively

2004-04-09 Thread Kirk Strauser
At 2004-04-09T05:41:33Z, dave [EMAIL PROTECTED] writes:

 I've got a problem, a directory area has the wrong permissions, occurred
 from a dump restore.

Out of curiosity, how is it that your permissions were different after the
restore than before?
-- 
Kirk Strauser

94 outdated ports on the box,
 94 outdated ports.
 Portupgrade one, an hour 'til done,
 82 outdated ports on the box.


pgp0.pgp
Description: PGP signature


Why the 30-second pause after executing this script?

2004-04-09 Thread Kirk Strauser
One of my programs (plug: JailAdmin!  Stays crunchy in milk!) uses 'jexec'
to attach to a jail to execute /etc/rc.shutdown.  I've noticed that this
works as expected, unless its output is being piped into another program, in
which case 'sh' waits about 30 seconds after the 'exit 0' line is executed
before closing its end of the pipe.  For example:

  The command dumping to STDOUT:

[EMAIL PROTECTED]:/tmp# time jexec 8 sh -x /etc/rc.shutdown
+ stty status ^T
+ trap : 2
+ trap : 3

...

+ kill -TERM 80521
Terminated
+ echo .
.
+ exit 0

real0m0.575s
user0m0.043s
sys 0m0.195s

  The command dumping to a pipe:

[EMAIL PROTECTED]:/tmp# time jexec 8 sh -x /etc/rc.shutdown | cat
+ stty status ^T
+ trap : 2
+ trap : 3

...

+ kill -TERM 80638
Terminated
+ echo .
.
+ exit 0

real0m30.049s
user0m0.070s
sys 0m0.162s

I'm at a loss.  Why would this be?  Are there workarounds?
-- 
Kirk Strauser

94 outdated ports on the box,
 94 outdated ports.
 Portupgrade one, an hour 'til done,
 82 outdated ports on the box.


pgp0.pgp
Description: PGP signature


Re: When I'm all done..

2004-04-09 Thread Jonathan Arnold
Mark wrote:

For a small 'emergency' disk, I'd like to remove those directories, after
the 4.9R install has fully completed. Can it be safely done? Or is anything
needed, at runtime, from those directories?
You have a couple of options for creating small emergency disks:

1] The Live CD is precisely for that - booting from in an emergency.

2] See the following entries on my blog for links to small distros:

http://freebsd.amazingdev.com/blog/archives/37.html
http://freebsd.amazingdev.com/blog/archives/28.html
And PicoBSD, a 3.0 FreeBSD that can be put on a single floppy!

http://freebsd.amazingdev.com/blog/archives/43.html

--
Jonathan Arnold (mailto:[EMAIL PROTECTED])
Daemon Dancing in the Dark, a FreeBSD weblog:
http://freebsd.amazingdev.com/blog/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How can I remove this file ?

2004-04-09 Thread David Piniella
Erik Trulsson wrote:

On Fri, Apr 09, 2004 at 12:40:35PM +0100, Supote Leelasupphakorn wrote:
 

Hi lists

 How can I delete file named prefix with - ?
   

If you had bothered to read the manpage for rm(1) you would already
know that since the following paragraph appears there:
  The rm command uses getopt(3) to parse its arguments, which allows it to
  accept the --' option which will cause it to stop processing flag
  options at that point.  This will allow the removal of file names that
  begin with a dash (-').  For example:
rm -- -filename
  The same behavior can be obtained by using an absolute or relative path
  reference.  For example:
rm /home/user/-filename
rm ./-filename


 

I've never run across that.

% cd tmp
% ls
% touch -
% ls
-
% rm -
% ls
%
although if it was giving you trouble, I suppose you could do a
rm ./\-
--
David Piniella
University of Miami
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: FreeBSD router: Can my internet provider detect my home network?

2004-04-09 Thread JJB
Your assumption is correct. For all practical purposes ISP's can not
determine that an customer is using NAT or not. But like all things
on the internet, with special custom packet interrogation focused on
an particular customer it is possible to technically determine if
that customer is using NAT.

The cost and effort for an ISP to do that is cost prohibitive when
the only result is to terminate the customers account. ISP's have
more pressing security and usage abuse matters to invest money in
than to look for home users who use NAT.

Home Lan environments using Nat are very common, so feel free to
join the rest of us who are doing it now.





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Rob
Sent: Friday, April 09, 2004 2:33 AM
To: [EMAIL PROTECTED]
Subject: FreeBSD router: Can my internet provider detect my home
network?


Hi,

I plan to have a FreeBSD (4.9 stable) system serving as a router
between my provider and a set of my home computers connected
via a home network.

My provider does not really like this, but I don't care so much,
as long as s/he cannot detect (too easily) my home network.

My plan is to use the following setup in my rc.conf:
gateway_enable=YES
natd_enable=YES
natd_interface=rl0
firewall_enable=YES
firewall_type=open

(with, of course, the proper options compiled into the kernel).

Is it correct, that the combination of firewall and natd divert
all requests and thus hide the home network for my provider?
Are requests from all other networked home PC's done on behalf of
the router, so that my provider will only see requests from my
router?

Or do I need some better (firewall?) configuration for this?

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

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


Re: DMA limited to UDMA33, non-ATA66 cable or device

2004-04-09 Thread Jonathan Arnold
Me wrote:
---
When I try to change to udma100 
---
atacontrol mode 0 udma100 biosdma
Master = UDMA33
Slave  = BIOSPIO
-
console output after i use atacontrol
-
ad0: DMA limited to UDMA33, non-ATA66 cable or device
What does :

$ atacontrol list

say? It sure looks like you have a PIO device on the same cable as your
UDMA hard drive. And are you sure you have a UDMA 100 cable? It should
have a blue female plug for the motherboard side.
--
Jonathan Arnold (mailto:[EMAIL PROTECTED])
Daemon Dancing in the Dark, a FreeBSD weblog:
http://freebsd.amazingdev.com/blog/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: How can I remove this file ?

2004-04-09 Thread Troy Settle
 -Original Message-
 From: David Piniella
 Sent: Friday, April 09, 2004 10:02 AM
 
 
 I've never run across that.
 
 % cd tmp
 % ls
 % touch -
 % ls
 -
 % rm -
 % ls
 %
 
 although if it was giving you trouble, I suppose you could do a
 rm ./\-
 
 -- 
 David Piniella
 University of Miami
 

David, I think you missed the part where the hypen was the first character
of the filename, not the only character.

$ touch -file
touch: illegal option -- i
usage: touch [-acfm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]] file ...

$ touch -- -file

$ rm -file
rm: illegal option -- l
usage: rm [-f | -i] [-dPRrvW] file ...
   unlink file

$ rm -- -file

--
  Troy Settle
  Pulaski Networks
  http://www.psknet.com
  866.477.5638

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


Complete system restore software for FreeBSD?

2004-04-09 Thread fbsd_user
Has the Mondo method made it to the official Freebsd port system
yet?
How about an status update?

Thanks.

  I have used the Mondo Rescue backup and restore system before
   with my Linux machines with great success.  What Mondo allows
  one to do is a complete system backup and restore from a
bootable
  CD, meaning a system can survive a harddrive failure without a
  whole lot of fiddling around in reconfiguring software and such.
  What I'm wondering is, is there similar software available for
  FreeBSD (preferably free)?
 
  For reference, more info on Mondo Rescue can be found here:
 
  http://www.microwerks.net/~hugo/
 From the above pages:

 FreeBSD users - Joshua Oreman has ported Mondo to FreeBSD. Click
to
 download his Mondo[1] and Mindi[2] packages. They are standard
tarballs,
 so just use tar xzf and gmake  gmake install to build them. We
need
 testers. The FreeBSD port is a work-in-progress, not a stable
product
 (yet). We'll keep you posted.


Note that the FreeBSD support is still beta, in a sense. It has
not been
tested extensively on 4.x, so please send any problems (with
logfiles! -
read the Mondo support page) to me. Better yet, subscribe to the
mondo-devel
mailing list  send them there.

Thanks!
-- Josh



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


Re: DMA limited to UDMA33, non-ATA66 cable or device

2004-04-09 Thread Me
Hi,
Thanks for your response.
Yes, It is a ata cable attached.
This is a Averatec 3050HW Laptop.
with 2 IDE channels.
the HDD is in channel 0 and a CDRW-DVD drive is in
channel 1.
In the bios the drives are deteched on each channel.
the drive was running at UDMA100 in windows.
I have scsi emulation enabled.
could atapicam be causing this?
who knows, but now that I think about it, I will ssh
and recompile with out atapicam.
any suggestions are greatly appriciated.


--- Jonathan Arnold [EMAIL PROTECTED] wrote:
 Me wrote:
  ---
  When I try to change to udma100 
  ---
  atacontrol mode 0 udma100 biosdma
  Master = UDMA33
  Slave  = BIOSPIO
  -
  console output after i use atacontrol
  -
  ad0: DMA limited to UDMA33, non-ATA66 cable or
 device
 
 What does :
 
 $ atacontrol list
 
 say? It sure looks like you have a PIO device on the
 same cable as your
 UDMA hard drive. And are you sure you have a UDMA
 100 cable? It should
 have a blue female plug for the motherboard side.
 
 -- 
 Jonathan Arnold (mailto:[EMAIL PROTECTED])
 Daemon Dancing in the Dark, a FreeBSD weblog:
  http://freebsd.amazingdev.com/blog/
 
 ___
 [EMAIL PROTECTED] mailing list

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


__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


KMail seeing local maildirs differently than IMAP-server

2004-04-09 Thread Geert Hendrickx
Hi, 

i see some ambiguity in using maildirs through IMAP and directly through
the filesystem, especially when using KMail.  

The canonical directory for maildirs is ~/Maildir, where the inbox is
in the root of that directory, and any other mail-directory is a
subdirectory of it.  The IMAP-servers I tried (courier-imap, imap-uw
and dovecot, all in /usr/ports/mail) only use the subdirectories whose
name starts with a dot.  

KMail on the other hand, when using maildirs as local folders, always
assumes they are in ~/Mail, where every folder -including inbox- is a
subdirectory of it.  And only folders NOT starting with a dot are seen.  

So it can be pretty tough to handle your maildirs in both ways together, 
that is to say, through the filesystem and through IMAP.  I usually use 
Mutt for the latter case, as it is very flexible and it can handle most 
cases, but KMail seems to insist doing things its own way, which is not 
compatible with most IMAP-servers.  

Creating some symlinks to mirror the situation might be a usable
solution, but that's not very elegant.  Anyone knows a better solution?  

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


RE: remote install of freebsd via ssh

2004-04-09 Thread Me
hi,
I agree, best way would be to do as suggested. then
ssh that way,
the only thing you may have to do is walk the user on
entering single user mode to do a make installworld if
you're updating your system.

-Jose lima

--- JJB [EMAIL PROTECTED] wrote:
 Install FBSD on local pc and when completed, remove
 HD and send to
 remote site to be swapped with HD there. Then you
 can ssh into box
 and do what ever you want to fine tune install.
 Anything else is
 just asking for problems and down time.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Behalf Of Brian
 Sent: Thursday, April 08, 2004 7:21 AM
 To: [EMAIL PROTECTED]
 Subject: remote install of freebsd via ssh
 
 Hello,
 Is there a way (or what is the best way) for
 installing freebsd
 remotely?  I
 have a nontechnical person at the site that can put
 in a cd or enter
 a few
 commands, but the thought of walking through a full
 install via the
 phone is
 not fun.  I would prefer to be able to use ssh for
 configuring.  Any
 suggestions would be a great help.
 
 Thanks,
 Brian D.
 
 ___
 [EMAIL PROTECTED] mailing list

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

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


__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Disk Partition Sizing

2004-04-09 Thread Grant Peel
Hi all,

I want to change my backup strategy a bit. Please review:

Filesystem  Size   Used  Avail Capacity  Mounted on
/dev/amrd0s1a   484M   219M   227M49%/
/dev/amrd0s1d   3.8G   2.7G   764M78%/backup
/dev/amrd0s1h   7.6G   5.7G   1.3G81%/home
/dev/amrd0s1g   992M   444M   469M49%/mail
/dev/amrd0s1e   4.7G   2.3G   2.0G53%/usr
/dev/amrd0s1f14G   2.1G11G16%/var
procfs  4.0K   4.0K 0B   100%/proc


What I would like to do is:

downsize the /var part by 2.0 GB;
loose the /backup part alltogether;
add 1 GB to the /mail part;
add the remaining 4.8 GB to the /ome part.

Any ideas on strategy / directions for accomplishing this?

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


Re: Disk Partition Sizing

2004-04-09 Thread Josh Paetzel
 Any ideas on strategy / directions for accomplishing this?
 
 -Grant

Hope your familiar with the FreeBSD installer. ;)

Josh Paetzel

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


Re: newbie questions

2004-04-09 Thread Randy Pratt
On Fri, 9 Apr 2004 11:18:34 +0300 (EEST)
Radu MOLNAR [EMAIL PROTECTED] wrote:

 I hope this is the right place to post this.Sorry if it isn't
 
 Just some stupid newbie questions:
 1) I have an alias made in my .profile alias vi='/usr/local/bin/vim' but
 the alias is not made when i log in X. If a log in console or using ssh
 from a remote host the alias is made but when i log in x it is not.
 Anybody know why? As shell i use bash.

Its definitely the right place to ask questions.  I can only comment
on the first question.

Its more of a question of how your shell is being invoked in your
window manager.  It sounds as if the window manager is invoking the
shell as a non-login shell.  You can test this by using
xterm -ls and see if your alias settings are being read.  This
causes the xterm to act as a login shell and bash will act
accordingly.

Take a look at man page for bash in the section INVOCATION for
a complete description of how bash behaves depending on whether
or not its a login or non-login shell.

There are several different ways to address it.  You could simply
duplicate your alias settings in a ~/.bashrc file which bash will
read when invoked in a non-login shell.  I personally don't like
having more than one place for any configuration.

It would probably be easier to change the way your window manager
invokes a shell.  I use xterms and blackbox so it was easy to
change the menu configuration from xterm to xterm -ls.  If
you are using a different type of terminal window in XFree86, then
look in its documentation for a way to make it behave as a login.
If you're using some other terminal type, check its documentation
for similar things and change your window manager menus
accordingly.

HTH,

Randy


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


Re: Disk Partition Sizing

2004-04-09 Thread Matthew Seaman
On Fri, Apr 09, 2004 at 11:54:09AM -0400, Grant Peel wrote:
 Hi all,
 
 I want to change my backup strategy a bit. Please review:
 
 Filesystem  Size   Used  Avail Capacity  Mounted on
 /dev/amrd0s1a   484M   219M   227M49%/
 /dev/amrd0s1d   3.8G   2.7G   764M78%/backup
 /dev/amrd0s1h   7.6G   5.7G   1.3G81%/home
 /dev/amrd0s1g   992M   444M   469M49%/mail
 /dev/amrd0s1e   4.7G   2.3G   2.0G53%/usr
 /dev/amrd0s1f14G   2.1G11G16%/var
 procfs  4.0K   4.0K 0B   100%/proc
 
 
 What I would like to do is:
 
 downsize the /var part by 2.0 GB;
 loose the /backup part alltogether;
 add 1 GB to the /mail part;
 add the remaining 4.8 GB to the /ome part.
 
 Any ideas on strategy / directions for accomplishing this?

Well, you're going to modify 4 of your 6 partitions directly: many of
which modifications will involve moving the start of the partition.
You'll also end up moving the /usr partition which means that the only
untouched partition will be /

There's no point fiddling about with this sort of wholesale change:
backup the system (onto different media, clearly) and reinstall from
scratch, with your new partitioning scheme.  Then restore your backups
-- note that since you've taken out the /backup partition, the
partition numbering may change, so don't overwrite /etc/fstab.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: KMail seeing local maildirs differently than IMAP-server

2004-04-09 Thread Gary
On Fri, Apr 09, 2004 at 05:48:23PM +0200 or thereabouts, Geert Hendrickx wrote:
 
 i see some ambiguity in using maildirs through IMAP and directly through
 the filesystem, especially when using KMail.  

although I do not use Kmail, I do know it works perfectly using IMAP, but
you have to set up your Maildir as below.
 
 The canonical directory for maildirs is ~/Maildir, where the inbox is
 in the root of that directory, and any other mail-directory is a
 subdirectory of it. 

The proper format for Maildir is ~/Maildir/ not ~/Maildir .. in other
words it is a dir, not a file. This dir contains three dir, new, tmp, and
cur.  Courier will build this for you and subsequent folders inside the
main /Maildir/  Courier only works with /Maildir/ format. It will not work
with /Maildir format, that is to say a file format. 

  The IMAP-servers I tried (courier-imap, imap-uw and dovecot, all in
  /usr/ports/mail) only use the subdirectories whose name starts with a
  dot.  

this is typical of IMAP servers, and does not represent a problem. 
 
 KMail on the other hand, when using maildirs as local folders, always
 assumes they are in ~/Mail, where every folder -including inbox- is a
 subdirectory of it.  And only folders NOT starting with a dot are seen.  

Kmail will read both /Maildir/ POP folders, and read IMAP /Maildir/
folders, you just have to specify what type of protocol you are using
either POP or IMAP. It does read IMAP /Maildir/ folders that begin with a
dot, which are inside the main /Maildir/ without any problems. You must
also specify a default INBOX with IMAP which will be read in the /Maildir/
folder. 
 
 So it can be pretty tough to handle your maildirs in both ways together,
 that is to say, through the filesystem and through IMAP.  I usually use
 Mutt for the latter case, as it is very flexible and it can handle most
 cases, but KMail seems to insist doing things its own way, which is not
 compatible with most IMAP-servers.  

yes, it is, you just have to set it up properly as to the type of protocol
you are using. 

 Creating some symlinks to mirror the situation might be a usable
 solution, but that's not very elegant.  Anyone knows a better solution?  

as above. 
 
-- 
Gary

Your E-Mail has been returned due to insufficient voltage
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hard disk recover

2004-04-09 Thread Brad Waite
[EMAIL PROTECTED] wrote:
I'm getting the dreaded ad1s1a: hard error reading fsbn 524543 of 96-127
(ad1s1 bn 524543; cn 520 tn 6 sn 5) status=59 error=40 errors.  Based on
what I've read, it means my drive's going bye-bye.  As it is, it won't
even boot - fortunately I have another FBSD drive to boot from, and I get
these errors while trying fsck it.  Shame on me for not noticing the
errors sooner and an even bigger shame for not having a proper backup.
In any case, the milk is spilled and I need to mop it up as best I can. 
While I can mount the partition, I can't cd to it (more hard errors...),
and since fsck isn't apparently helping, what can I do to recover what's
left?  I'm thinking dd's the tool to use, but I'm not really sure how to
go about it.  Here's what I get when I try to read from the beginning on
the partition:

# dd if=/dev/ad1s1a bs=64k
dd: /dev/ad1s1a: Input/output error
However, when I add skip=1, the drive spits back data.  That leads me to
believe that if I skip over the bad sectors, I can read what's left.
I've got a spare drive I can use as a sandbox, but how should I dump the
data?  Should I label the second drive with the same partition size and
dd if=/dev/ad1s1a of=/dev/ad2s1a?  Is there any chance of recovering
filesystem data going this route?
[Quoting myself as it's been 2 weeks since the first post]

Here's what's new:

ad0: 21557MB IBM-DJNA-372200 [43800/16/63] at ata0-master UDMA66
ad1: 39083MB Maxtor 5T040H4 [79408/16/63] at ata0-slave UDMA100
ad2: 29311MB Maxtor 5T030H3 [59554/16/63] at ata1-master UDMA100
ad2 is the 30GB drive reporting errors; ad1 is the new 40GB drive I 
copied the partition to.

I tried to fdisk the 40G to be identical to the 30G, but I could never 
get the size to match exactly.  In the end, I just set up the 256M swap, 
and hoped the 524288 offset for the 'a' partition would work. Here's 
relevant disklabel output:

# disklabel -r /dev/ad1s1
# /dev/ad1s1:
type: ESDI
disk: ad0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 4981
sectors/unit: 80035767
[...]
8 partitions:
#size offset   fstype   [fsize bsize bps/cpg]
  a: 79511479 524288   4.2BSD 2048 1638489  # (Cyl. 32*- 4981*)
  b:   524288  0 swap   # (Cyl.  0 - 32*)
  c: 80035767  0   unused0 0# (Cyl.  0 - 4981*)
# disklabel -r /dev/ad2s1
# /dev/ad2s1:
type: ESDI
disk: ad0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 59553
sectors/unit: 60030369
[...]
8 partitions:
#size offsetfstype  [fsize bsize bps/cpg]
  a: 59506081 5242884.2BSD   2048 1638416  # (Cyl. 520*- 59553*)
  b:   524288  0  swap # (Cyl.   0 - 520*)
  c: 60030369  0unused  0 0# (Cyl.   0 - 59553*)
I used lewiz' suggestion to add 'conv=noerror,sync' to dd. I was able to 
copy the readable data from the bad drive to a new one.  I changed it to 
bs=512b (redundant, I know) since if the old disk was bad on 512-byte 
block 0, I figured dd would skip to the next 64k.  Here's what I used:

dd if=/dev/ad2s1a of=/dev/ad1s1a conv=noerror,sync bs=512b

Of course, I got about 165 ad2s1a: hard error reading fsbn ... errors, 
but it appeared to copy everything else okay.  The first 16 blocks of 
ad2s1a are null, but there is 16 blocks of data at block 32, so it 
appears the first backup superblock survived.

Is there a remote chance that I'll be able to fsck this fs and recover? 
 I know that fsck will complain about the first alternate superblock 
not matching because the last superblock won't be in the first 30GB.  Do 
the different sized partitions make this impossible?

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


Re: printing manpages

2004-04-09 Thread Shantanoo
+++ Chris Hill [freebsd] [08-04-04 19:40 -0400]:
| On Thu, 8 Apr 2004, Andrew Elmore wrote:
| 
|  [...] I can't for the life of me figure out how to print a manpage.
|  The closest man man gives me is:
| 
|  -t  Use /usr/bin/groff -S -man to format the manual page, passing the
|  output to stdout.  The output from /usr/bin/groff -S -man may need
|  to be passed through some filter or another before being printed.
| 
|  Any suggestions on what the command line for that filter looks like?
| 
| I get good-looking results using, for example,
| 
| man -t ipfw | lpr
| 
| ...or plain-vanilla (but readable) results using
| 
| man ipfw | lpr
| 
| FWIW, this is with a Postscript printer. HTH.
| 
| 
| --
| Chris Hill   [EMAIL PROTECTED]
| ** [ Busy Expunging | ]

man ipfw | col -bx | less
man ipfw | col -bx | lpr
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


5.2.1-RELEASE boot problem

2004-04-09 Thread 10,000 Screaming Monkeys
I know I'm going to regret asking this, because it's undoubtedly
something simple that I'm missing, but I can't for the life of me make
this work.

A little background: I have FreeBSD 5.2.1-RELEASE installed on an ATA133
drive, which is connected to a Soyo SY-P4S Dragon Ultra motherboard. The
motherboard has 4 onboard IDE ports -- two regular (slower) IDE ports
(labeled 1  2 on the board), controlled by the BIOS; and two faster
RAID ports (3  4), controlled by an onboard Highpoint HPT370/372
controller.

When installing from CD, everything works as expected with no errors,
regardless of which IDE channel/port I have the hard drive connected to.
And, just to note, when I have it connected to IDE port 3 (an
ATA133-capable port), FreeBSD addressed the drive as ad4 after booting.

When attempting to boot after the install, however, the boot loader is
apparently defaulting to a floppy drive, as this is all I get:

Verifying DMI Pool Data 
error 1 lba 0
error 1 lba 0
No /boot/loader

FreeBSD/i386 boot  
Default: 22:fd(22,a)/kernel
boot:

If I type 0:ad(0,a)/boot/loader at the boot: prompt, though, it
actually runs the loader and presents me with the ASCII daemon and the
boot menu.

I've tried putting that 0:ad statement in /boot.config, but it didn't
seem to have any effect on the boot process (i.e., it still defaulted to
22:fd and gave me the same errors).

Can anybody tell me what I might have missed, or what I might be doing
wrong? My head is getting a little sore from beating it on random hard,
flat surfaces.

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


Re: Portupgrade problem

2004-04-09 Thread Kevin D. Kinsey, DaleCo, S.P.
Andreas Davour wrote:

Hi!

I just decided to take a deep breath and cvsup some fresh ports. Now,
having done that I have run 'portupgrade -ar' and constantly found it to
stop some problems.
Some ports have failed and been flagged as configure error or install
error. Then I have tried to do a manual install of those ports and found
that a make deinstall; make reinstall have worked, just like the port
instructed me to do when it failed. I found it strange that portupgrade
didn't do that for me.
Having done that I restarted portupgrade and it would proceed a bit before
stumbling to a halt again.
Now I have reached the end of what I can fix manually, though. For some
reason portupgrade stubbornly complains that:
** Listing the failed packages (*:skipped / !:failed)
   ! accessibility/atk (atk-1.4.1_1)   (port directory error)
And it is correct in that there *is* no accessibility/atk port in my new
cvsup'ed ports tree. But why is it then telling me it needs it!?
Can I get the atk ports from somewhere? Is it really needed? Why has it
dissapeared and why is it still mentioned as a dependency then?
If anyone can shed some light on those matters, then I'm all ears. I can't
get a new version of Firefox to compile without atk so I'm very interested
in getting this to work.
I have run 'pkgdb -F' and tried to remove the dependecy, but have not
succeeded. I'm not even sure it would be wise to do it...
Help?

/andreas

 

It is best to have a ports tree that contains almost
everything except foreign languages when using BSD on
a workstation or in a desktop environment --- there are
so many dependancies.
That said, you haven't told us how old your ports tree
is; please look at /usr/ports/UPDATING and note that
in the last few months there have been a couple of big
issues, namely new versions of expat and gettext, IIRC,
that affect many, many of the commonly used 3rd party
sw packages/ports.
Kevin Kinsey
Daleco, S.P.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Portupgrade problem

2004-04-09 Thread Kent Stewart
On Friday 09 April 2004 11:55 am, Andreas Davour wrote:
 Hi!

 I just decided to take a deep breath and cvsup some fresh ports. Now,
 having done that I have run 'portupgrade -ar' and constantly found it
 to stop some problems.

 Some ports have failed and been flagged as configure error or
 install error. Then I have tried to do a manual install of those
 ports and found that a make deinstall; make reinstall have worked,
 just like the port instructed me to do when it failed. I found it
 strange that portupgrade didn't do that for me.

 Having done that I restarted portupgrade and it would proceed a bit
 before stumbling to a halt again.

 Now I have reached the end of what I can fix manually, though. For
 some reason portupgrade stubbornly complains that:

 ** Listing the failed packages (*:skipped / !:failed)
 ! accessibility/atk (atk-1.4.1_1)   (port directory
 error)

 And it is correct in that there *is* no accessibility/atk port in my
 new cvsup'ed ports tree. But why is it then telling me it needs it!?

 Can I get the atk ports from somewhere? Is it really needed? Why has
 it dissapeared and why is it still mentioned as a dependency then?

 If anyone can shed some light on those matters, then I'm all ears. I
 can't get a new version of Firefox to compile without atk so I'm very
 interested in getting this to work.

 I have run 'pkgdb -F' and tried to remove the dependecy, but have not
 succeeded. I'm not even sure it would be wise to do it...

 Help?

Firefox depends on gtk-2.4.0, which depends on atk. All of these 
problems relate back to updating dependancies of glib-2.4.0.

The question at this point is what you updated and the order. If you 
were starting out clean, a portupgrade -rR glib would have done most of 
this but I wouldn't bet money. I eventually did a -rf glib to get 
things built cleanly.

Kent

-- 
Kent Stewart
Richland, WA

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


Re: Portupgrade problem

2004-04-09 Thread Andreas Davour
On Fri, 9 Apr 2004, Andrew L. Gould wrote:

 On Friday 09 April 2004 01:55 pm, Andreas Davour wrote:
[snip]
  If anyone can shed some light on those matters, then I'm all ears. I can't
  get a new version of Firefox to compile without atk so I'm very interested
  in getting this to work.
 
  I have run 'pkgdb -F' and tried to remove the dependecy, but have not
  succeeded. I'm not even sure it would be wise to do it...

 Did you remember to execute 'pkgdb -Uu' after cvsup and before portupgrade?

So be quite frank, I have no idea! I think I followed all instructions
quite litterally. But portupgrade was mentioned in the handbook and the
cookbook examples I found on the web differed somewhat. I no longer
remembered if I did a 'pkgdb -Uu' or not.

I there any telltale signs showing in the narrative in my first post that
indicates I forgot it? Is it recommendable I run it now then?

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


Re: Portupgrade problem

2004-04-09 Thread Kevin D. Kinsey, DaleCo, S.P.
Andreas Davour wrote:

Hi!

And it is correct in that there *is* no accessibility/atk port in my new
cvsup'ed ports tree. But why is it then telling me it needs it!?
 

Because it's a dependancy of about 538 distinct
ports, at least one of which you must have
installed
GNOME, perhaps 

Kevin Kinsey

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


Re: Portupgrade problem

2004-04-09 Thread Martin Hudec
Hello,

I am using portupgrade -airR for a long long time without any signs
of trouble :), just for few days I am observing a message from portaudit
regarding of upgrading my Midnight Commander that due to bug in mc (as do
portaudit say) there will be no upgrade :). I thought that that bug was
fixed in 4.6.0_9 version, but portaudit still complains..


Cheers,


Martin

On Fri, Apr 09, 2004 at 12:12:47PM -0700 or thereabouts, Kent Stewart wrote:
 The question at this point is what you updated and the order. If you 
 were starting out clean, a portupgrade -rR glib would have done most of 
 this but I wouldn't bet money. I eventually did a -rf glib to get 
 things built cleanly.

-- 
=--
:
:. kind regards
:.. Martin Hudec
:.:
:.: :m: +421.907.303393
:.: :@: [EMAIL PROTECTED]
:.: :w: http://www.aeternal.net

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


Re: Portupgrade problem

2004-04-09 Thread Andreas Davour
On Fri, 9 Apr 2004, Kevin D. Kinsey, DaleCo, S.P. wrote:

 It is best to have a ports tree that contains almost
 everything except foreign languages when using BSD on
 a workstation or in a desktop environment --- there are
 so many dependancies.

So I thought. I edited away everything that was exotic languages ports and
kept the rest.

 That said, you haven't told us how old your ports tree
 is; please look at /usr/ports/UPDATING and note that
 in the last few months there have been a couple of big
 issues, namely new versions of expat and gettext, IIRC,
 that affect many, many of the commonly used 3rd party
 sw packages/ports.

Stupid me. I had 5.2-RELEASE installed, and did a cvsup 4 days ago. I have
followed all the instructions in the UPDATING file.

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


Rsync autologin over ssh question

2004-04-09 Thread Brent Wiese
Here is what I need to do:

I need to somehow automate an rsync from 1 box to several others.

I have set up SSH for RSAAuthentication, the method I'd prefer to use (over
RHostsRSA).

I am able to slogin to the other boxes w/o supplying the passphrase.

But here is where I'm stuck. How do I make a script run w/o the passphrase?

The goal is to put this script in the users crontab.

I've googled for help on this, which is how I got to the point I'm at, but
now I need some further guidance.

I am notified by email when the boxes reboot, so logging back into them to
add the passphrase back into memory isn't a problem. I'd rather not use
Rhosts if I can avoid it, and I also want to avoid running rsync daemon.

If anyone has suggestions on a better and/or more secure method to do this,
happy to hear it.

Ultimately, I'd also like to be able to trigger this sync from a webpage, so
if anyone has done that (using sudo I'd imagine), feel free to suggest
things there too.

Brent


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


Re: Portupgrade problem

2004-04-09 Thread Martin Hudec
Hi Andreas,

don't you really have atk in /usr/ports/accessibility/atk directory?
Perhaps look into ports-supfile.. do you have there ports-all enabled?

cheers,


Martin

On Fri, Apr 09, 2004 at 08:55:04PM +0200 or thereabouts, Andreas Davour wrote:
 And it is correct in that there *is* no accessibility/atk port in my new
 cvsup'ed ports tree. But why is it then telling me it needs it!?
 
 Can I get the atk ports from somewhere? Is it really needed? Why has it
 dissapeared and why is it still mentioned as a dependency then?

-- 
=--
:
:. kind regards
:.. Martin Hudec
:.:
:.: :m: +421.907.303393
:.: :@: [EMAIL PROTECTED]
:.: :w: http://www.aeternal.net

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


Re: Portupgrade problem

2004-04-09 Thread Andreas Davour
On Fri, 9 Apr 2004, Kent Stewart wrote:

 Firefox depends on gtk-2.4.0, which depends on atk. All of these
 problems relate back to updating dependancies of glib-2.4.0.

Ok, that at least explains why atk seems so important.

 The question at this point is what you updated and the order. If you
 were starting out clean, a portupgrade -rR glib would have done most of
 this but I wouldn't bet money. I eventually did a -rf glib to get
 things built cleanly.

Well, I started out with a clean 5.2-RELEASE and did cvsup 4 days ago. I
don't remember seeing glib being upgraded, but I guess I could always try
to '-rf glib' if it is a problem.

It still don't tell me why I have no directory for atk, though...

/andreas

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


Re: Portupgrade problem

2004-04-09 Thread Andreas Davour
On Fri, 9 Apr 2004, Kevin D. Kinsey, DaleCo, S.P. wrote:

 Andreas Davour wrote:

 Hi!
 
 And it is correct in that there *is* no accessibility/atk port in my new
 cvsup'ed ports tree. But why is it then telling me it needs it!?

 Because it's a dependancy of about 538 distinct
 ports, at least one of which you must have
 installed

 GNOME, perhaps 

538!!

Well, I haven't installed GNOME, but some other port might depend on some
GNOME component, I guess.

That sounds like an important port. I don't understand why I wasn't
getting it when I cvsup'ed then. Is there a line the the ports-supfile
which should read 'ports-accessibility'? Maybe I should add it and cvsup
again.

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


Re: Portupgrade problem

2004-04-09 Thread Andreas Davour
On Fri, 9 Apr 2004, Martin Hudec wrote:

 Hi Andreas,

   don't you really have atk in /usr/ports/accessibility/atk directory?

No.

 Perhaps look into ports-supfile.. do you have there ports-all enabled?

No, I have it commented out, since I left all the individual ports
collections in there instead, except for arabic, hebrew and some other
exotic languages.

Could it be I have made such a basic mistake as to not cvsup'ed a vital
dependedcy?! I kind of figured the newly cvsup'ed port of cvsup would have
included a new example file of ports-supfile if that had been the problem.

One should never *expect* a computer to do something I guess.

Would something strange happen now if I added a line for
'ports-accessability' in my ports-supfile and tried to cvsup again?

I guess I *really* should do a pkgdb -Uu then?

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


Re: Portupgrade problem

2004-04-09 Thread Erik Trulsson
On Fri, Apr 09, 2004 at 09:34:09PM +0200, Andreas Davour wrote:
 On Fri, 9 Apr 2004, Martin Hudec wrote:
 
  Hi Andreas,
 
  don't you really have atk in /usr/ports/accessibility/atk directory?
 
 No.
 
  Perhaps look into ports-supfile.. do you have there ports-all enabled?
 
 No, I have it commented out, since I left all the individual ports
 collections in there instead, except for arabic, hebrew and some other
 exotic languages.

That was a bad idea, since new collections are added from time to time.
If you really feel the need to avoid fetching some ports-categories it
is better to use a refuse file instead.
Personally I stopped doing even that some time ago, since some make
targets require a complete ports tree.
Unless you are seriously short on diskspace I would strongly recommend
using 'ports-all' to a complete ports tree.

 
 Could it be I have made such a basic mistake as to not cvsup'ed a vital
 dependedcy?! I kind of figured the newly cvsup'ed port of cvsup would have
 included a new example file of ports-supfile if that had been the problem.

It does seem as if your ports-supfile is at fault, yes.

 
 One should never *expect* a computer to do something I guess.
 
 Would something strange happen now if I added a line for
 'ports-accessability' in my ports-supfile and tried to cvsup again?

Probably not.

 
 I guess I *really* should do a pkgdb -Uu then?

-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Portupgrade problem

2004-04-09 Thread Kent Stewart
On Friday 09 April 2004 12:34 pm, Andreas Davour wrote:
 On Fri, 9 Apr 2004, Martin Hudec wrote:
  Hi Andreas,
 
  don't you really have atk in /usr/ports/accessibility/atk
  directory?

 No.

  Perhaps look into ports-supfile.. do you have there ports-all
  enabled?

 No, I have it commented out, since I left all the individual ports
 collections in there instead, except for arabic, hebrew and some
 other exotic languages.

 Could it be I have made such a basic mistake as to not cvsup'ed a
 vital dependedcy?! I kind of figured the newly cvsup'ed port of cvsup
 would have included a new example file of ports-supfile if that had
 been the problem.

 One should never *expect* a computer to do something I guess.

 Would something strange happen now if I added a line for
 'ports-accessability' in my ports-supfile and tried to cvsup again?

 I guess I *really* should do a pkgdb -Uu then?

You have to remember the INDEX is created by make and when you leave 
items out, things can go to hell very quickly. If you want an real 
INDEX, you cvsup ports-all and don't refuse anymore than ports/INDEX.

You never know when a new dependancy has been added that depends on 
something you don't think is important. Ports-all keeps you on top of 
it.

Kent

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

-- 
Kent Stewart
Richland, WA

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


Re: Portupgrade problem

2004-04-09 Thread Lowell Gilbert
Andreas Davour [EMAIL PROTECTED] writes:

 That sounds like an important port. I don't understand why I wasn't
 getting it when I cvsup'ed then. Is there a line the the ports-supfile
 which should read 'ports-accessibility'? Maybe I should add it and cvsup
 again.

There probably wasn't such a category when you created your supfile,
but there is now.  For the complete list, see
/usr/share/examples/cvsup/ports-supfile on a recently updated system
(or check cvsweb).  

I find it easier to to use the ports-all category, and then use a
refuse file for the categories I *don't* want.  That way new
categories are added by default, rather than left out by default.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


inode problems...

2004-04-09 Thread Gary Kline

Just to bring you (and the -questions list) up to date re
my 4.9-RELEASE snafu.  I did a upgrade last night.  I have
stable-supfile pointing to RELENG_4_9.  I was trying to 
get back to 4.9-STABLE.  No-joy.  I now have 

FreeBSD 4.9-RELEASE-p4 #4: Thu Apr  8 19:50:47 PDT 2004.

I don't know if this upgrade made any difference, but I
think I fixed my partially alloc'd and otherwise bad inode
by hand.  find / -inum [inode] -print  showed me what was
whhere and I dealt with each one.   Bottom line is that
fsck now runs clean; no errors.

I think I'll hack fsck to output a -L logfile in /var/log.
I could script it with  | tee logfile too.   In rare 
cases like these, having a log of inodes could be a great
help.

gary



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

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


Re: Rsync autologin over ssh question

2004-04-09 Thread Matthew Seaman
On Fri, Apr 09, 2004 at 12:21:33PM -0700, Brent Wiese wrote:
 Here is what I need to do:
 
 I need to somehow automate an rsync from 1 box to several others.
 
 I have set up SSH for RSAAuthentication, the method I'd prefer to use (over
 RHostsRSA).
 
 I am able to slogin to the other boxes w/o supplying the passphrase.
 
 But here is where I'm stuck. How do I make a script run w/o the passphrase?
 
 The goal is to put this script in the users crontab.
 
 I've googled for help on this, which is how I got to the point I'm at, but
 now I need some further guidance.
 
 I am notified by email when the boxes reboot, so logging back into them to
 add the passphrase back into memory isn't a problem. I'd rather not use
 Rhosts if I can avoid it, and I also want to avoid running rsync daemon.
 
 If anyone has suggestions on a better and/or more secure method to do this,
 happy to hear it.
 
 Ultimately, I'd also like to be able to trigger this sync from a webpage, so
 if anyone has done that (using sudo I'd imagine), feel free to suggest
 things there too.

This is covered in the SSH FAQ --
http://www.snailbook.com/faq/no-passphrase.auto.html

Since you have ruled out RhostsRSA, you're left with two options:

   i) SSH key with plaintext key file (ie. no passphrase).  If you
  choose this method, be sure to read the section in sshd(8) about
  the options you can use in the ~/.ssh/authorized_keys file, to
  minimize the possible damage that could occur if that key gets
  stolen.

  ii) Public key with SSH agent.  Read about ssh-agent(1) and
  ssh-add(1).  For scripting purposes, you can start up a
  long-running ssh-agent process, saving the output to a file:

# ssh-agent -s  ssh-agent-env

  Then manually ssh-add the key and passphrase to that agent:

# sh -c '. ssh-agent-env ; ssh-add my-remote-access-key'

  All your scripts need to do then is source the environment
  settings you saved:

#!/bin/sh

. ssh-agent-env

[... etc ...]

In either of these cases be sure that each machine has the ssh public
key of the other in the appropriate known-hosts files and that you
verify that you can use ssh with your key on the command line to get
into the machine without being challenged for a password.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: Portupgrade problem

2004-04-09 Thread Kevin D. Kinsey, DaleCo, S.P.
Andreas Davour wrote:

On Fri, 9 Apr 2004, Martin Hudec wrote:

 

Could it be I have made such a basic mistake as to not cvsup'ed a vital
dependedcy?! I kind of figured the newly cvsup'ed port of cvsup would have
included a new example file of ports-supfile if that had been the problem.
One should never *expect* a computer to do something I guess.

Would something strange happen now if I added a line for
'ports-accessability' in my ports-supfile and tried to cvsup again?
 

Your supfile must predate 1/24/2004, when the accessibility
category was added.  See:
http://www.freebsd.org/cgi/cvsweb.cgi/src/share/examples/cvsup/ports-supfile

If you've updated your source tree, a new copy should be in
/usr/src/share/examples/cvsup/.  If you've done a recent installworld
then it'd also be in /usr/share/examples/cvsup/.  Lastly, but not leastly,
you could grab the latest version from:
http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/share/examples/cvsup/ports-supfile?rev=1.31content-type=text/plain

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


Re: Portupgrade problem

2004-04-09 Thread Matthew Seaman
On Fri, Apr 09, 2004 at 08:55:04PM +0200, Andreas Davour wrote:

 ** Listing the failed packages (*:skipped / !:failed)
 ! accessibility/atk (atk-1.4.1_1)   (port directory error)
 
 And it is correct in that there *is* no accessibility/atk port in my new
 cvsup'ed ports tree. But why is it then telling me it needs it!?

You need to cvsup(1) again -- the accessibility/atk port is definitely
in the tree now:

% ls -la accessibility/atk/
total 11
drwxr-xr-x   3 root  wheel   512 Apr  5 09:49 ./
drwxr-xr-x  12 root  wheel   512 Apr  2 09:58 ../
-rw-r--r--   1 root  wheel   776 Apr  5 09:49 Makefile
-rw-r--r--   1 root  wheel   107 Apr  5 09:49 distinfo
drwxr-xr-x   2 root  wheel   512 Apr  5 09:49 files/
-rw-r--r--   1 root  wheel   252 Apr  5 09:49 pkg-descr
-rw-r--r--   1 root  wheel  4202 Apr  5 09:49 pkg-plist

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: Portupgrade problem

2004-04-09 Thread Robert Huff

Andreas Davour writes:

  Well, I started out with a clean 5.2-RELEASE and did cvsup 4 days
  ago. I don't remember seeing glib being upgraded, but I guess I
  could always try to '-rf glib' if it is a problem.

And on that day, your karma really sucked.
GNOME-of-the-myriad-compoments-which-are-used-by-non-GNOME-things
had a red flag day upgrade (2.4 - 2.6) right around then.  To
unbreak a whole bunch of ports, one had to do the whole GNOME
rebuild.  (Which, though time sunsuming,  was surprisingly painless
for something of that size.)


Robert Huff


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


Re: Portupgrade problem

2004-04-09 Thread Gary Kline
On Fri, Apr 09, 2004 at 09:14:07PM +0200, Andreas Davour wrote:
 On Fri, 9 Apr 2004, Andrew L. Gould wrote:
 
  On Friday 09 April 2004 01:55 pm, Andreas Davour wrote:
 [snip]
   If anyone can shed some light on those matters, then I'm all ears. I can't
   get a new version of Firefox to compile without atk so I'm very interested
   in getting this to work.
  
   I have run 'pkgdb -F' and tried to remove the dependecy, but have not
   succeeded. I'm not even sure it would be wise to do it...
 
  Did you remember to execute 'pkgdb -Uu' after cvsup and before portupgrade?
 
 So be quite frank, I have no idea! I think I followed all instructions
 quite litterally. But portupgrade was mentioned in the handbook and the
 cookbook examples I found on the web differed somewhat. I no longer
 remembered if I did a 'pkgdb -Uu' or not.
 
 I there any telltale signs showing in the narrative in my first post that
 indicates I forgot it? Is it recommendable I run it now then?
 
 /andreas


If I can offer a practical tip re cvsu'ing and running 'pkgdb
-Uu', why not script it and run it out of cron?  That's how I
make sure tht my ports tree is neat nd clean.

When I do a portupgrade, my script runs pkgdb -F as a first
steps.  ...Just my dime's worth.

cheers!

gary


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

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


Re: Portupgrade problem

2004-04-09 Thread Andreas Davour
On Fri, 9 Apr 2004, Gary Kline wrote:

   If I can offer a practical tip re cvsu'ing and running 'pkgdb
   -Uu', why not script it and run it out of cron?  That's how I
   make sure tht my ports tree is neat nd clean.

Well, when I have succeeded in doing a portupgrade by hand I think that
might be an option. I must feel confident that it works before I dare
script it by cron.

One thing confuses me, though. I refers to 'pkgdb -Uu', but the man page
for that program don't mention a -U flag. There is another program called
'portsdb' that have both a -u and a -U flag. Which one am I supposed to
use. Both?

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


Re: Portupgrade problem

2004-04-09 Thread Kent Stewart
On Friday 09 April 2004 01:00 pm, Gary Kline wrote:
 On Fri, Apr 09, 2004 at 09:14:07PM +0200, Andreas Davour wrote:
  On Fri, 9 Apr 2004, Andrew L. Gould wrote:
   On Friday 09 April 2004 01:55 pm, Andreas Davour wrote:
 
  [snip]
 
If anyone can shed some light on those matters, then I'm all
ears. I can't get a new version of Firefox to compile without
atk so I'm very interested in getting this to work.
   
I have run 'pkgdb -F' and tried to remove the dependecy, but
have not succeeded. I'm not even sure it would be wise to do
it...
  
   Did you remember to execute 'pkgdb -Uu' after cvsup and before
   portupgrade?
 
  So be quite frank, I have no idea! I think I followed all
  instructions quite litterally. But portupgrade was mentioned in the
  handbook and the cookbook examples I found on the web differed
  somewhat. I no longer remembered if I did a 'pkgdb -Uu' or not.
 
  I there any telltale signs showing in the narrative in my first
  post that indicates I forgot it? Is it recommendable I run it now
  then?
 
  /andreas

   If I can offer a practical tip re cvsu'ing and running 'pkgdb
   -Uu', why not script it and run it out of cron?  That's how I
   make sure tht my ports tree is neat nd clean.

I run a cvsup of ports-all on a machine I usually use for testing. If 
something breaks down, I have the other machines to recover it from. I 
log everything and convert it into html using Ben Smithurst's cvsuplog. 
Then, I upade my INDEX[-5] and INDEX.db; however, before I build the 
new INDEX, I convert the current INDEX into a bzip2'ed file and keep 3 
backups. A major disaster building INDEX is easily overcome by 
unzipping one of the backups and the appropriate INDEX.


   When I do a portupgrade, my script runs pkgdb -F as a first
   steps.  ...Just my dime's worth.


My dimes worth is that I won't run anything in a cronjob that may 
require an answer from me. I also don't run pkgdb -F until portupgrade 
tells me to do that. Since it updates the information when it is doing 
upgrades, you only need to do it when it really has to be done.

Kent


-- 
Kent Stewart
Richland, WA

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


Re: Portupgrade problem

2004-04-09 Thread Kent Stewart
On Friday 09 April 2004 01:08 pm, Andreas Davour wrote:
 On Fri, 9 Apr 2004, Gary Kline wrote:
  If I can offer a practical tip re cvsu'ing and running 'pkgdb
  -Uu', why not script it and run it out of cron?  That's how I
  make sure tht my ports tree is neat nd clean.

 Well, when I have succeeded in doing a portupgrade by hand I think
 that might be an option. I must feel confident that it works before I
 dare script it by cron.

 One thing confuses me, though. I refers to 'pkgdb -Uu', but the man
 page for that program don't mention a -U flag. There is another
 program called 'portsdb' that have both a -u and a -U flag. Which one
 am I supposed to use. Both?


You figured out the right one. I frequently mix the 2 up but only one 
has the -uU option :). I use make index instead of portsdb -u but 
portsdb now uses make index to build INDEX[-5]. So my way isn't 
different any more.

I also forgot to add that I use a cronjob to do the cvsup but I do it 
twice a day.

Kent

-- 
Kent Stewart
Richland, WA

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


Re: Portupgrade problem

2004-04-09 Thread Kent Stewart
On Friday 09 April 2004 01:31 pm, Kent Stewart wrote:
 On Friday 09 April 2004 01:08 pm, Andreas Davour wrote:
  On Fri, 9 Apr 2004, Gary Kline wrote:
 If I can offer a practical tip re cvsu'ing and running 'pkgdb
 -Uu', why not script it and run it out of cron?  That's how I
 make sure tht my ports tree is neat nd clean.
 
  Well, when I have succeeded in doing a portupgrade by hand I think
  that might be an option. I must feel confident that it works before
  I dare script it by cron.
 
  One thing confuses me, though. I refers to 'pkgdb -Uu', but the man
  page for that program don't mention a -U flag. There is another
  program called 'portsdb' that have both a -u and a -U flag. Which
  one am I supposed to use. Both?

 You figured out the right one. I frequently mix the 2 up but only one
 has the -uU option :). I use make index instead of portsdb -u but
 portsdb now uses make index to build INDEX[-5]. So my way isn't
 different any more.

One more correction. It is portsdb -U to build the INDEX. I do use 
portsdb -u to build INDEX.db.

Kent

 I also forgot to add that I use a cronjob to do the cvsup but I do it
 twice a day.

 Kent

-- 
Kent Stewart
Richland, WA

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


Syntax error in rc.conf - cannot fix

2004-04-09 Thread lrnobs
I am setting up a new server so I could just reinstall, but this is a
learning opportunity.

I was changing the hostname of the computer.  In rc.conf I apparently left
the leading  off the name.

BSD doesn't like this. It stops the boot and allows/forces me to a shell. So
I found that cat shows me the error of my ways.  vi apparently doesn't
exist or is stored somewhere that I cannot find because find does not work
either.

I did find ed and thought I would be learning how to use it, but alas
trying to launch it tells me that I have a readonly file system.

So, is there any way for me to fix my typo, or is reinstall my only option.

Thanks,

Larry Nobs



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


Re: Inexpensive wireless suggestions

2004-04-09 Thread Timothy Ham
On Tue, Apr 06, 2004 at 06:44:43PM +0100, Aleksandar Simic wrote:
: On Tue, Apr 06, 2004 at 12:31:52PM -0400, Bob Collins wrote:
:  On Tue, Apr  6, 2004, Jonathon McKitrick clacked the keyboard to
produce:
:  
:   I'm looking for a relatively inexpensive wireless setup for home
that
will
:   work with FreeBSD and an older laptop.  Does anyone have any
suggestions?
:  
:   NOTE: Please CC me, as I am not currently subscribed.  Thanks.

It is possible to use just the Access Point portion of consumer
broad-band Router devices.  I found this to be easier and cheaper than
purchasing stand-alone AP's.  Basically, disable all the router functions
(DHCPD, NAT), and leave the WAN port that connects to the cable modem
unconnected.  Connect the gateway to the LAN ports, and that's it.

I have written an Wifi-IPSEC guide here, the first portion of which has
some more info:
http://sahara.lbl.gov/~tham/wifi-ipsec.txt



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


Re: Syntax error in rc.conf - cannot fix

2004-04-09 Thread Erik Trulsson
On Fri, Apr 09, 2004 at 03:55:39PM -0500, lrnobs wrote:
 I am setting up a new server so I could just reinstall, but this is a
 learning opportunity.
 
 I was changing the hostname of the computer.  In rc.conf I apparently left
 the leading  off the name.
 
 BSD doesn't like this. It stops the boot and allows/forces me to a shell. So
 I found that cat shows me the error of my ways.  vi apparently doesn't
 exist or is stored somewhere that I cannot find because find does not work
 either.
 
 I did find ed and thought I would be learning how to use it, but alas
 trying to launch it tells me that I have a readonly file system.
 
 So, is there any way for me to fix my typo, or is reinstall my only option.

Your boot apparently halted before any filesystems had been mounted
yet (except for '/' which is mounted read-only.)

Do a 'mount -u /' to make sure that the root-filesystem is mounted
read/write, and then a 'mount /usr' to mount /usr where vi and find
lives.  Then you should be able to fix rc.conf without much trouble.




-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Syntax error in rc.conf - cannot fix

2004-04-09 Thread Josh Paetzel
On Fri, Apr 09, 2004 at 03:55:39PM -0500, lrnobs wrote:
 I am setting up a new server so I could just reinstall, but this is a
 learning opportunity.
 
 I was changing the hostname of the computer.  In rc.conf I apparently left
 the leading  off the name.
 
 BSD doesn't like this. It stops the boot and allows/forces me to a shell. So
 I found that cat shows me the error of my ways.  vi apparently doesn't
 exist or is stored somewhere that I cannot find because find does not work
 either.
 
 I did find ed and thought I would be learning how to use it, but alas
 trying to launch it tells me that I have a readonly file system.
 
 So, is there any way for me to fix my typo, or is reinstall my only option.
 
 Thanks,
 
 Larry Nobs
 

mount -rw /  mount -rw /usr and edit rc.conf as needed with vi

Josh Paetzel


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


Re: Fun with IPSEC and racoon - 5.2.1

2004-04-09 Thread Timothy Ham

Hi

I've been having some fun with IPSEC, owing to the need to put in a VPN
between two offices.  At the far end, they've got a PIX, and I was pretty
sure I could do this end with one of out FreeBSD boxen.  As an
experiment,
I set up IPSEC (with keying provided by Racoon) between my (linux)
desktop
and that FreeBSD machine.  That worked Just Fine.

Sounds like you're bitten  by the broken IPSEC in 5.2 which still hasn't
been fixed in 5.2.1.  For some reason the ISAKMP traffic that should go
around the ipsec policy isn't, and only on outgoing packets. Some info
here:
http://docs.freebsd.org/cgi/mid.cgi?20040203070435.GB46486

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


Re: Syntax error in rc.conf - cannot fix

2004-04-09 Thread Kevin D. Kinsey, DaleCo, S.P.
lrnobs wrote:

I am setting up a new server so I could just reinstall, but this is a
learning opportunity.
I was changing the hostname of the computer.  In rc.conf I apparently left
the leading  off the name.
BSD doesn't like this. It stops the boot and allows/forces me to a shell. So
I found that cat shows me the error of my ways.  vi apparently doesn't
exist or is stored somewhere that I cannot find because find does not work
either.
I did find ed and thought I would be learning how to use it, but alas
trying to launch it tells me that I have a readonly file system.
So, is there any way for me to fix my typo, or is reinstall my only option.

Thanks,

Larry Nobs

 

First thing to do would be to mount / as r/w so
you can use ed.  Your $PATH is shot to heck so
maybe:
   /sbin/mount -t ufs /dev/ad0s1a /

Of course, that should be the correct device
and slice for your machine...
Have you tried just /sbin/mount -a to get the
whole thing back?  Maybe then vi or emacs
or whatever would be accessible...
Either way, this is completely recoverable.
Don't wipe your HDD yet!!
Kevin Kinsey
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Syntax error in rc.conf - cannot fix

2004-04-09 Thread lrnobs
It works.  Thanks all.

XP recognizes my Samba Server now too.  Apparently XP did not like my old
hostname:
localhost, claimed someone else on the network was already using that
name, probably itself.

Larry Nobs

- Original Message -
From: Atom Powers [EMAIL PROTECTED]
To: lrnobs [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 3:59 PM
Subject: RE: Syntax error in rc.conf - cannot fix


 Yeah, I know this. :)
 You are obviously in single user mode so,

 'mount -a' will mount all your file systems according to fstab
 '/usr/bin/vi /etc/rc.conf' to correct your config
 save and reboot.

 --
 The meek will inherit the earth; the rest of us will go to the stars.

 Atom Powers
 Pyramid Brewery
 206.682.8322 x251

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of lrnobs
 Sent: Friday, April 09, 2004 1:56 PM
 To: [EMAIL PROTECTED]
 Subject: Syntax error in rc.conf - cannot fix

 I am setting up a new server so I could just reinstall, but this is a
 learning opportunity.

 I was changing the hostname of the computer.  In rc.conf I apparently
 left the leading  off the name.

 BSD doesn't like this. It stops the boot and allows/forces me to a
 shell. So I found that cat shows me the error of my ways.  vi
 apparently doesn't exist or is stored somewhere that I cannot find
 because find does not work either.

 I did find ed and thought I would be learning how to use it, but alas
 trying to launch it tells me that I have a readonly file system.

 So, is there any way for me to fix my typo, or is reinstall my only
 option.

 Thanks,

 Larry Nobs



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







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


Re: Portupgrade problem

2004-04-09 Thread Gary Kline
On Fri, Apr 09, 2004 at 01:19:47PM -0700, Kent Stewart wrote:
 On Friday 09 April 2004 01:00 pm, Gary Kline wrote:
  On Fri, Apr 09, 2004 at 09:14:07PM +0200, Andreas Davour wrote:
   On Fri, 9 Apr 2004, Andrew L. Gould wrote:
On Friday 09 April 2004 01:55 pm, Andreas Davour wrote:
  
   [snip]
  
 
 I run a cvsup of ports-all on a machine I usually use for testing. If 
 something breaks down, I have the other machines to recover it from. I 
 log everything and convert it into html using Ben Smithurst's cvsuplog. 
 Then, I upade my INDEX[-5] and INDEX.db; however, before I build the 
 new INDEX, I convert the current INDEX into a bzip2'ed file and keep 3 
 backups. A major disaster building INDEX is easily overcome by 
 unzipping one of the backups and the appropriate INDEX.
 

(Wisdom personified)

 
  When I do a portupgrade, my script runs pkgdb -F as a first
  steps.  ...Just my dime's worth.
 
 
 My dimes worth is that I won't run anything in a cronjob that may 
 require an answer from me. I also don't run pkgdb -F until portupgrade 
 tells me to do that. Since it updates the information when it is doing 
 upgrades, you only need to do it when it really has to be done.
 

To clear things up a bit, my upgrade scripts are not cron'd.
--Experience is a solid teacher.--  One script does basically
a portupgrade -ia, the other simply a -a; either way I have to
sit thru the pkgdb -F. The rest of the scripts do 
portclean and leave a log of what needs to be upgraded.

gary


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

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


2-machines IP network through user-ppp

2004-04-09 Thread Kyryll A Mirnenko
  Can anybody help to configure user(!)-ppp to make such an IP network. E.g. I 
need the next:

0) I'm not connected to any network
1) somebody calls me, I run ppp (not pppd) (in any way, I use getty)
2) he must log in through PAP with predefined login-password
3) I do !dynamically! assign him IP 10.0.0.2
4) now I need him to see me as 10.0.0.1  back I see him as 10.0.0.2 - so how 
to make ppp do such NAT? man says it can.

  If someone can send me such ppp.conf entry template?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Portupgrade problem

2004-04-09 Thread Kent Stewart
On Friday 09 April 2004 02:22 pm, Gary Kline wrote:
 On Fri, Apr 09, 2004 at 01:19:47PM -0700, Kent Stewart wrote:
  On Friday 09 April 2004 01:00 pm, Gary Kline wrote:
   On Fri, Apr 09, 2004 at 09:14:07PM +0200, Andreas Davour wrote:
On Fri, 9 Apr 2004, Andrew L. Gould wrote:
 On Friday 09 April 2004 01:55 pm, Andreas Davour wrote:
   
[snip]

   To clear things up a bit, my upgrade scripts are not cron'd.
   --Experience is a solid teacher.--  One script does basically
   a portupgrade -ia, the other simply a -a; either way I have to
   sit thru the pkgdb -F. The rest of the scripts do
   portclean and leave a log of what needs to be upgraded.


One of the things I don't log is the ports that need to be updated after 
I have new INDEX* files. That made redoing things after the glib-2.4.0 
update more difficult. The process I used had built something out of 
order and had a port that still wanted libglib-2.0.so.200 instead of 
the new .so.400. 

If I had the log, I could have just force rebuilt everything instead of 
letting ruby (an AMD 2400+) spend 13 hours doing a -rf glib. When I get 
back from dinner, I think I will create a script to log the portversion 
-c. Then, I will have a list of ports that need to be updated. 
Hindsight after a problem is a good teacher.

Kent

-- 
Kent Stewart
Richland, WA

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


Finding how the machine was rebooted

2004-04-09 Thread Hari Bhaskaran
Hi,

I am trying to trouble shoot a problem where one of the machines
got rebooted. I can see last shows a shutdown was done. How
do I know if it was a Cntrl-Alt-Del done from the console or
if it was a shutdown command executed via a ssh/remote login?
I would also like to know if it was some panic/bug etc also.

Also I have a dmesg.today that is couple of days older than
/var/run/dmesg.boot. How is that possible? Doesn't dmesg.today
mean the the dmesg of the last (current) boot?

BTW, /var/ is running on a vinum-ed partition (if that would 
help) 

Any help is appreciated.
Thanks for your time.
--
Hari Bhaskaran
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: deleting directories with ??? in name

2004-04-09 Thread Walter
Hi Parv,

   It looks like another directory structure has appeared
in the ftp directory that Lynx does not see and that
   find . -inum inode -delete
does not delete.  It does have a dot as the first character,
with some other non-printing characters, but no /.  I
haven't yet tried to delete it with emacs or Midnight
Commander.  Do you still want to look at it??  If so, as I'm
not overly conversant with tar (or too much else that's *nix),
please send me the 'tar' command you'd like me to archive the
directory structure with, and I'll send the result.
I'm not subscribed to the List, so please CC me.  Thanks.

Walter

Parv wrote:
in message [EMAIL PROTECTED],
wrote Walter thusly...
I apologize for the late reply.



Parv wrote:


# find . \( -inum inode-1 -o -inum inode-2 \) -print0 \
# | xargs -0 rm -rfv
Thanks, but when I did:
ls -i
and then typed in the inode in the command (saved in an old List
e-mail):
find . -inum inode -delete
it didn't delete them.  Do you think your way would work where
manual command wouldn't?  But, they are gone now, so I can't try
it anyway.


My _speculation_ is that if '-delete' option did not work from w/in
find(1), i doubt that above quoted command chain would cause any
difference.  I suppose, you also guessed the same.  OTOH, the
description of -delete option does say...
  -delete
  ... It will not attempt to delete a filename with a ``/''
  character in its pathname relative to ``.'' for security
  reasons.
...that is one thing to consider.

It would have been fun to experiment w/ the offending directory
structure.  Next time it happens, send me a sample/small tar'd copy,
will you?
  - Parv

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


Re: Finding how the machine was rebooted

2004-04-09 Thread Ion-Mihai Tetcu
On Fri, 9 Apr 2004 17:15:39 -0500
Hari Bhaskaran [EMAIL PROTECTED] wrote:

 Hi,
 
 I am trying to trouble shoot a problem where one of the machines
 got rebooted. I can see last shows a shutdown was done. How
 do I know if it was a Cntrl-Alt-Del done from the console or
 if it was a shutdown command executed via a ssh/remote login?

ssh (third column is the remote host):
itetcu   ttyp0it.buh   Tue Apr  6 09:06 - 18:23 (3+09:17)
reboot   ~ Tue Apr  6 08:56
shutdown ~ Tue Apr  6 08:54
itetcu   ttyp2it.buh   Tue Apr  6 08:51 - shutdown (00:02)

console:
root ttyv1 Fri Apr  9 18:44 - 18:48 (00:04)
reboot   ~ Fri Apr  9 18:44
shutdown ~ Fri Apr  9 18:43
root ttyv1 Fri Apr  9 18:41 - shutdown (00:01)

 I would also like to know if it was some panic/bug etc also.

You wouldn't get the last -shutdown line. You probably would have
something in the logs.
 
 Also I have a dmesg.today that is couple of days older than
 /var/run/dmesg.boot. How is that possible? Doesn't dmesg.today
 mean the the dmesg of the last (current) boot?

[EMAIL PROTECTED] /usr/local/etc/postfix [1:58:33] 0
 # ll /var/log/dmesg.* /var/run/dmesg.boot
-rw---  1 root  wheel  13784 Apr  9 03:08 /var/log/dmesg.today
-rw---  1 root  wheel  13600 Apr  8 03:06 /var/log/dmesg.yesterday
-rw-r--r--  1 root  wheel  21713 Apr  9 18:43 /var/run/dmesg.boot
[EMAIL PROTECTED] /usr/local/etc/postfix [1:58:34] 0
 # uptime
 1:58AM  up  7:15, 2 users, load averages: 0.02, 0.18, 0.25

 BTW, /var/ is running on a vinum-ed partition (if that would 
 help) 

Shouldn't mater.


-- 
IOnut
Unregistered ;) FreeBSD user

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


RE: KDM always starts failsafe (Philip Payne)

2004-04-09 Thread Larry Hammer
Now, whenever I try to login to KDE it always starts the failsafe i.e. a
single xterm.

It doesn't matter what session type I select in KDM, I always get failsafe
so no KDE for me.

If I start KDE using startx and a .xinitrc with exec startkde everything
is fine and KDE starts. However, multiple users on the machine so having KDM
working would be good.

Any ideas what could be wrong?... if you need output from certain logs etc.
just let me know.

Thanks,
Phil.

--
I just upgraded too, and ran into similar problem I couldn't even get to 
failsafe from kdm
I turned off /etc/ttys tty8(kdm) and rebooted and started with startx and it 
came up from root
acct
I typed in kdm and got the same problemb so I restarted the x server and 
noticed a couple of warnings about not being able to find files 
Xreset Xsetup in /usr/local/share/config/kdm
when I looked the files that used to be there were not there or empty except 
for read me.
I deleted all files in this dir then from a consol I ran;
genkdmconf --help
genkdmconf --no-old
all works well now hope this helps

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


How to get best results from FreeBSD-questions

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

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

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

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

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

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

=

Contents:

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

I: Introduction
===

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

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

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

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

II:  How to unsubscribe from FreeBSD-questions
==

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

  Welcome to the freebsd-questions mailing list!

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

  unsubscribe freebsd-questions Greg Lehey [EMAIL PROTECTED]

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

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

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

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

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

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

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

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

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

The Complete FreeBSD: errata and addenda

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

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

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

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


Re: Portupgrade problem

2004-04-09 Thread Lucas Holt
The freebsd gnome website suggests downloading their gnome upgrading 
script instead of using the standard portupgrade process.  In some 
cases, they claim that things may break if you don't do it with their 
script.

freebsd.org/gnome

Lucas Holt
[EMAIL PROTECTED]

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


Re: deleting directories with ??? in name

2004-04-09 Thread Parv
in message [EMAIL PROTECTED],
wrote Walter thusly...

 It looks like another directory structure has appeared in the ftp
 directory that Lynx does not see and that
find . -inum inode -delete
 does not delete.  It does have a dot as the first character, with
 some other non-printing characters, but no /.
...
 Do you still want to look at it??  If so, as I'm not overly
 conversant with tar
...

Wow, i didn't expect that to happen so soon.

Here is the tar command pipe...

  tar cf - parent of offending directory \
  | bzip2 -9  foul-name.tbz2

...tar will send the output on stdout (-f -) of tarball (-c) of the
parent directory of the offending directory name.  Bzip2 will then
compress the tar output (given on the stdout) to the fullest extent
(-9) possible.  Tar'ed  compressed output will then be stored in file
named 'foul-named.tbz2'.

If the size of foul-named.tbz2 is ~30 kB, send me this file as email
attachment.  Otherwise, please allow me to download it via FTP or
HTTP.  In all case, please keep the size less than a MB or so.


  - Parv

-- 

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


Re: sendmail/strace hanging

2004-04-09 Thread Cory Petkovsek
On Fri, Apr 09, 2004 at 10:16:42AM +0100, Matthew Seaman wrote:
 On Thu, Apr 08, 2004 at 04:08:39PM -0700, Cory Petkovsek wrote:
 
  Stopping sendmail with `sh /etc/rc.sendmail stop` works quickly.  Starting it
  takes about 3min.   Both sendmail-submit and sendmail-clientmqueue take a
  while before moving.  Booting also has this delay.
 
 In the interests of eliminating the obvious: you have confirmed that
 this is not some sort of DNS timeout?  Delays of that length on
 starting up sendmail are usually due to waiting out the DNS timeouts.

Would dns timeouts affect mailq?  My dns is setup correctly locally, which is
where I was trying to send my tests, to my local mailhub.  What is also
interesting is that it has started working again at a normal speed, without any
changes or restarts.  It was slow over config changes, make world, and
reboots.  But became slow, then became normal just by sitting idle.  I have a
p4 with HT and an SMP/HT kernel.  Could that have anything to do with it?

Cory



-- 
Cory Petkovsek   Adapting Information
Adaptable IT ConsultingTechnology to Your
(858) 705-1655   Business
[EMAIL PROTECTED]  www.AdaptableIT.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Newbie stuck with kernel config (well sysinstall seams to hang)

2004-04-09 Thread David Jones

Hello.  I’m struggling with my first install of FreeBSD
(4.9 from CDROM).

I can find my way around the kernel config (visual and cli)
but when I quit this, the sysinstall menu appears and my
keyboard is dead (reset button doesn't work either).  I
have tried to supply as much relevant information as
possible from Windows98 that is currently installed, and
put what I see from an “ls” in cli kernel config mode in
“[..]”.  I’m looking for some advice to move forward –
likely problem areas / other debug I can obtain that might
help.

I’m more experienced with redhat, and if I try booting that
in text mode it dies as soon as it tries to boot the
kernel.

Thanks for any help at all,
 Dave

Hardware;
PentiumIII MMX 500MHz, 128Mb RAM
ATAPI CDROM (Secondary slave)
Seagate 3GB Generic IDE Disk Type46 (Primary master)
NEC Multisync XV15 monitor

Standard PCI Graphics adaptor VGA (in AGP slot) – IRQ11
[vga0 0 0 ..
 (I set this with “irq sc0 11”)  Sc0 0 irq11 flags 0x100]

Hard disk controllers;
   Intel82371AB/EB PCI Bus Master IDE Controller – IRQ14
  Primary IDE Controller (dual fifo) – IRQ14
   [ata0 0x1f0 irq14]
  Secondary IDE Controller (dual fifo) – IRQ15
   [ata1 0x170 irq15]

Compaq Standard 101/102-key Keyboard – IRQ1
 [atkbdc0 0x60
  atkbd0  0 irq1 flags 0x1]

Standard serial mouse

Floppy drive – IRQ6 [fdc0 0x3f0 irq6 drq2]

Numeric data processor – IRQ13 [npx0 0xf0 irq13]

Programmable interrupt controller – IRQ2
   [nothing assigned irq2]

CMOS real time clock – IRQ8 [nothing assigned irq8]

System timer – IRQ0 [unset irqs appear as 0]

PCI to USB controller – IRQ12 [psm0 0 irq12]


Additional info;

Other drivers assigned irqs;
sio0 0x3f8 irq4
sio1 0x2f8 irq3
sio2 0x3e8 irq5
sio3 0x2e8 irq9
ppc0 0 irq7

ed0  0x280 irq10
ie0  0x300 irq10
lnc0 0x280 irq10
sn0  0x300 irq10

number of EISA slots to probe: 10

BIOS;
Award Modular BIOS v4.51PG
Award Plug and Play BIOS Extension v1.0A (PnP OS disabled
in BIOS).

When booting the BTX info looks like this;
BIOS drive A: is disk0
BIOS drive B: is disk1
BIOS drive C: is disk2
BIOS drive C: is disk3  ---??


















Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie stuck with kernel config (well sysinstall seams to hang)

2004-04-09 Thread Kevin D. Kinsey, DaleCo, S.P.
David Jones wrote:

Hello.  Im struggling with my first install of FreeBSD
(4.9 from CDROM).
I can find my way around the kernel config (visual and cli)
but when I quit this, the sysinstall menu appears and my
keyboard is dead (reset button doesn't work either).  I
have tried to supply as much relevant information as
possible from Windows98 that is currently installed, and
put what I see from an ls in cli kernel config mode in
[..].  Im looking for some advice to move forward 
likely problem areas / other debug I can obtain that might
help.
 

You *probably* should just skip the kernel configall those
drivers are legacy hardware (ISA stuff with jumpers for IRQ,
etc...) It could be that skipping it would solve an issue or
two, even.
I certainly see nothing in your list below that FreeBSD
can't handle with the GENERIC kernel ... it could be that
fudging with kernel config is breaking GENERIC 
Hmm, tell us about the CD 

Im more experienced with redhat, and if I try booting that
in text mode it dies as soon as it tries to boot the
kernel.
 

That doesn't sound too good. Does removing various
hardware components help at all?
Thanks for any help at all,
Dave
Hardware;
PentiumIII MMX 500MHz, 128Mb RAM
ATAPI CDROM (Secondary slave)
Seagate 3GB Generic IDE Disk Type46 (Primary master)
NEC Multisync XV15 monitor
Standard PCI Graphics adaptor VGA (in AGP slot)  IRQ11
   [vga0 0 0 ..
(I set this with irq sc0 11)  Sc0 0 irq11 flags 0x100]
Hard disk controllers;
  Intel82371AB/EB PCI Bus Master IDE Controller  IRQ14
 Primary IDE Controller (dual fifo)  IRQ14
  [ata0 0x1f0 irq14]
 Secondary IDE Controller (dual fifo)  IRQ15
  [ata1 0x170 irq15]
Compaq Standard 101/102-key Keyboard  IRQ1
[atkbdc0 0x60
 atkbd0  0 irq1 flags 0x1]
Standard serial mouse

Floppy drive  IRQ6 [fdc0 0x3f0 irq6 drq2]

Numeric data processor  IRQ13 [npx0 0xf0 irq13]

Programmable interrupt controller  IRQ2
  [nothing assigned irq2]
CMOS real time clock  IRQ8 [nothing assigned irq8]

System timer  IRQ0 [unset irqs appear as 0]

PCI to USB controller  IRQ12 [psm0 0 irq12]

Additional info;

Other drivers assigned irqs;
sio0 0x3f8 irq4
sio1 0x2f8 irq3
sio2 0x3e8 irq5
sio3 0x2e8 irq9
ppc0 0 irq7
ed0  0x280 irq10
ie0  0x300 irq10
lnc0 0x280 irq10
sn0  0x300 irq10
number of EISA slots to probe: 10

BIOS;
Award Modular BIOS v4.51PG
Award Plug and Play BIOS Extension v1.0A (PnP OS disabled
in BIOS).
When booting the BTX info looks like this;
BIOS drive A: is disk0
BIOS drive B: is disk1
BIOS drive C: is disk2
BIOS drive C: is disk3  ---??
 

That last is a tad unusual ... is the HDD partitioned
in two pieces?
Kevin Kinsey
DaleCo, S.P.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie stuck with kernel config (well sysinstall seams to hang)

2004-04-09 Thread David Jones

Responses inline.  I just tried an lsdev at the console and
it dies when accessing the disk;

cd@ 0xff5c
disk@ 0xef68
disk0:  BIOS drive A:
disk0a: FFS
disk0c: FFS
disk1:  BIOS drive B
disk2:  BIOS drive C

Any ideas?

 --- Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED]
wrote:  David Jones wrote:

snip

 You *probably* should just skip the kernel
 configall those
 drivers are legacy hardware (ISA stuff with jumpers for
 IRQ,
 etc...) It could be that skipping it would solve an issue
 or
 two, even.
 
 I certainly see nothing in your list below that FreeBSD
 can't handle with the GENERIC kernel ... it could be that
 fudging with kernel config is breaking GENERIC 

The install hangs at this point (just before sysinstall
screen)
 
 Hmm, tell us about the CD 

The CD or CDROM ;) ?
I've just booted a minimal install on vmware so the disk
seams ok.
I'll have to pull the cdrom out to find anymore about it.

 I’m more experienced with redhat, and if I try booting
 that
 in text mode it dies as soon as it tries to boot the
 kernel.
   
 
 
 That doesn't sound too good. Does removing various
 hardware components help at all?

There is nothing else to pull out except the floppy drive.

 Thanks for any help at all,
  Dave
 
 Hardware;
 PentiumIII MMX 500MHz, 128Mb RAM
 ATAPI CDROM (Secondary slave)
 Seagate 3GB Generic IDE Disk Type46 (Primary master)
 NEC Multisync XV15 monitor
 
 Standard PCI Graphics adaptor VGA (in AGP slot) – IRQ11
 [vga0 0 0 ..
  (I set this with “irq sc0 11”)  Sc0 0 irq11 flags
 0x100]
 
 Hard disk controllers;
Intel82371AB/EB PCI Bus Master IDE Controller – IRQ14
   Primary IDE Controller (dual fifo) – IRQ14
[ata0 0x1f0
 irq14]
   Secondary IDE Controller (dual fifo) – IRQ15
[ata1 0x170
 irq15]
 
 Compaq Standard 101/102-key Keyboard – IRQ1
  [atkbdc0 0x60
   atkbd0  0 irq1 flags
 0x1]
 
 Standard serial mouse
 
 Floppy drive – IRQ6 [fdc0 0x3f0 irq6 drq2]
 
 Numeric data processor – IRQ13 [npx0 0xf0 irq13]
 
 Programmable interrupt controller – IRQ2
[nothing assigned
 irq2]
 
 CMOS real time clock – IRQ8 [nothing assigned irq8]
 
 System timer – IRQ0 [unset irqs appear as 0]
 
 PCI to USB controller – IRQ12 [psm0 0 irq12]
 
 
 Additional info;
 
 Other drivers assigned irqs;
 sio0 0x3f8 irq4
 sio1 0x2f8 irq3
 sio2 0x3e8 irq5
 sio3 0x2e8 irq9
 ppc0 0 irq7
 
 ed0  0x280 irq10
 ie0  0x300 irq10
 lnc0 0x280 irq10
 sn0  0x300 irq10
 
 number of EISA slots to probe: 10
 
 BIOS;
 Award Modular BIOS v4.51PG
 Award Plug and Play BIOS Extension v1.0A (PnP OS
 disabled
 in BIOS).
 
 When booting the BTX info looks like this;
 BIOS drive A: is disk0
 BIOS drive B: is disk1
 BIOS drive C: is disk2
 BIOS drive C: is disk3  ---??
   
 
 
 That last is a tad unusual ... is the HDD partitioned
 in two pieces?

Not as far as I can see in windows - just 3.2GB FAT32



Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]