Re: ports-supfile config

2003-07-25 Thread Francesco Casadei
On Fri, Jul 25, 2003 at 06:55:40AM -0700, marlon corleone wrote:
> thanks for the reply guys, i reconfigure my
> "ports-supfile" here's my new config:
> 
> 
> *default host=cvsup.sk.freebsd.org
> *default base=/usr prefix=/usr
> *default release=cvs 
> *default delete use-rel-suffix compress
> 
> ports-alltag=.
> 
> i delete srcl-all entry.
> 
>  here's my second question, its about the refuse file.
> 
> i copy refuse file from /usr/share/examples/cvsup to
> 
> /usr/ports/net/sup .
> 
> is this the correct path to copy refuse file into that
> directory? if YES. the should i edit this line:
> 
> FROM:
> 
> *default base=/usr
> 
> TO
> 
> *default base=/usr/ports/net/sup
>  
> or i should leave the default base config path?
> 
> thanks and more power
> 
[snip]
> end of the original message

Files under /usr/ports that do not belong to the Ports Collection will
be deleted when you run cvsup, so /usr/ports/net/sup is not a good
choice.

Quoting cvsup(1) manpage:

[...]
  As many as three refuse files are examined for each supfile line.  There
  can be a global refuse file named base/collDir/refuse which applies to
  all collections and releases.  There can be a per-collection refuse file
  named base/collDir/collection/refuse which applies to a specific collec-
  tion.  Finally, there can be a per-release and tag refuse file which
  applies only to a given release/tag combination within a collection.  The
  name of the latter is formed by suffixing the name of the per-collection
  refuse file in the same manner as described above for the list file.
  None of the refuse files are required to exist.

  cvsup has a built-in default value of /usr/local/etc/cvsup for base and
  sup for collDir but it is possible to override both of these. The value
  of base can be changed using the -b option or a base=pathname entry in
  the supfile.  (If both are used the -b option will override the supfile
  entry.)  The value of collDir can only be changed with the -c option;
  there is no supfile command to change it.

  As an example, suppose that the base and collDir both have their default
  values, and that the collection and release are `src-all' and `cvs',
  respectively.  Assume further that checkout mode is being used with
  `tag=RELENG_3'.  The three possible refuse files would then be named:

/usr/local/etc/cvsup/sup/refuse
/usr/local/etc/cvsup/sup/src-all/refuse
/usr/local/etc/cvsup/sup/src-all/refuse.cvs:RELENG_3

  If the supfile includes the command base=/foo the refuse files would be:

/foo/sup/refuse
/foo/sup/src-all/refuse
/foo/sup/src-all/refuse.cvs:RELENG_3

  If -b /bar is used (even with base=/foo in the supfile):

/bar/sup/refuse
/bar/sup/src-all/refuse
/bar/sup/src-all/refuse.cvs:RELENG_3

  and with -c stool as well:

/bar/stool/refuse
/bar/stool/src-all/refuse
/bar/stool/src-all/refuse.cvs:RELENG_3
[...]


Personally, I use /usr/local/etc/cvsup as the base dir and /usr as the
prefix dir, i.e.

*default base=/usr/local/etc/cvsup
*default prefix=/usr

The refuse file I use for the entire Ports Collection is located at
/usr/local/etc/cvsup/sup/ports-all/refuse.

Francesco Casadei
-- 
You can download my public key from http://digilander.libero.it/fcasadei/
or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...)

Key fingerprint is: 1671 9A23 ACB4 520A E7EE  00B0 7EC3 375F 164E B17B



pgp0.pgp
Description: PGP signature


Re: NEED HELP! on how to import new Xdesktop to .xinitcrc

2003-07-25 Thread Matthew Graybosch
On Friday 25 July 2003 10:09 pm, marlon corleone wrote:
> hi guys, download fluxbox how do i import it to my
> .xinitrc? so i can use two X desktop at a time. here's
> my .xinitrc looks like.
> im running FreeBSd 5.1-RELEASE

Two desktops? If you really want to run both Window Maker and Fluxbox 
at the same time, then you need to run two X servers, one on screen 
:0 and one on screen :1. You'll have to refer to the X Window section 
of the Handbook.

If you want to run Fluxbox instead of Window Maker, just replace "exec 
/usr/X11R6/bin/wmaker" with "exec /usr/X11R6/bin/fluxbox".

-- 
Matthew Graybosch
http://www.starbreaker.net
"I am become root, shatterer of kernels."

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


Setting up OpenLDAP

2003-07-25 Thread Bob Hall
OpenLDAP 2.1.22, FBSD 4.8

I'm trying to set up LDAP to store passwords. Eventually I will 
want to store addresses and do general authentication, but right 
now I just want to do something really simple: add passwords.

I installed from the ports using portintall, couldn't get it to 
work, and went back and reinstalled doing
# make depend
# make
# make test 
The install didn't fail any of the tests, although make kept looping
through the tests until I hit ^C. But I still have the same problems. 
If anyone has succeeded in installing OpenLDAP from the ports, I'd 
be grateful for any pointers.

I'm trying to do the Quick Install described at www.openldap.org. The 
first problem is that the doc claims that this is supposed to be a 
non-referring set up, which is what I want, but OpenLDAP complains that 
there's no referral. So I've uncommented the referral line in slapd.conf. 
But attempts to add records still fail. 

When I do search prior to adding records, I get
# /usr/local/bin/ldapsearch -x -b '' -s base '(objectclass=*)'
dn:
objectClass: top
objectClass: OpenLDAProotDSE
When I try to add records without a referral, I get 
# ldapadd -x -v -D "cn=Manager,dc=domain,dc=net" -W -f domain.ldif
additional info: referral missing
With the referral, I get
ldapadd: update failed: dc=domain, dc=net   objectclass: dcObject   
objectclass: organization   o: SNAFU   
dc: domain 
ldap_add: Referral (10)
referrals:

ldap://root.openldap.org/dc=domain,dc=net%20%20%20objectclass:%20dcObject%20%20%20objectclass:%20organization%20%20%20o:%20SNAFU%20%20%20dc:%20domain

Configuration
# less slap.conf
include /usr/local/etc/openldap/schema/core.schema
referral   ldap://root.openldap.org
pidfile /var/run/ldap/slapd.pid
argsfile/var/run/ldap/slapd.args
databasebdb
suffix  "dc=domain, dc=net"
rootdn  "cn=Manager, dc=domain, dc=net"
rootpw  
directory   /var/db/openldap-data
index   objectClass eq

# less domain.ldif
dn: dc=domain, dc=net
objectclass: dcObject
objectclass: organization
o: SNAFU
dc: domain
dn: cn=Manager, dc=domain, dc=net
objectclass: organizationalRole
cn: Manager

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


Re: Cannot install any port

2003-07-25 Thread Leonardo Lazarte
On Sat, 26 Jul 2003, Joe Marcus Clarke wrote:
>
> On Sat, 26 Jul 2003, Leonardo Lazarte wrote:
> >Unfortunately you have found a problem which those
> > in the know prefer to ignore.

On Sat, 26 Jul 2003, Joe Marcus Clarke wrote:
> This is not true.  Patches to fix this problem are currently being tested
> on the ports build cluster.  I am also testing an alternate set of
> patches.

   My apologies, I shouldn't generalize. Some people replied
in the following lines "your system is old, you are lucky it
is working", or "the solution is so simple it does not deserve
to be mentioned".

   After seeing, in this and other lists, several people like me,
trying to find what was happening, I thought it would be helpful
if someone could post a fix (if available, even if a "dirty"
solution).

> >The ports system has been broken with the last
> > upgrade, and many of us which have found the same
> > problem could not find a solution.
>
> Only for older versions of FreeBSD.  FreeBSD 4.7 and greater do not have
> this problem.

   Yes, that seems to be the case. And of couse there are
many people using old versions. Myself, I am still using 3.4
on some older machines due to hardware incompatibility with
newer versions.

> >It has been suggested by some that you could copy
> > pkg_info from some newer version. Other person suggested
> > re-building pkg_install (in fact, it was incorrectly
> > suggested to build pkg_info), after cvsuping src.
>
> Assuming that was done correctly, it should have worked.  You would have
> needed to cvsup a version of pkg_install that had -O support for pkg_info.
>
> >I tried both, with no luck.
> >
> >I will go the hard way, re-installing the system, with
> > a new version.
>
> There are other options that were enumerated on this list as well as
> [EMAIL PROTECTED]  You could have reverted bsd.port.mk to an earlier version where
> pkg_info -O was not used.

   Thanks for your suggestion. Unfortunately, I update automatically
my ports, so I don't know where I could find an old version of
bsd.port.mk.

   Regards,
   Leonardo

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


Re: Cannot install any port

2003-07-25 Thread Dan Nelson
In the last episode (Jul 26), Leonardo Lazarte said:
>Unfortunately you have found a problem which those in the know
> prefer to ignore.
>
>The ports system has been broken with the last upgrade, and many
> of us which have found the same problem could not find a solution.

Hm?  I've seen lots of responses explaining the problem and multiple
solutions (upgrade system to 4.7 or later, upgrade pkg_* tools).  You
are running an old version of FreeBSD which the ports tree no longer
supports (although someone mentioned they were looking at a workaround,
I think).
 
>It has been suggested by some that you could copy pkg_info from
> some newer version.  Other person suggested re-building pkg_install
> (in fact, it was incorrectly suggested to build pkg_info), after
> cvsuping src.

Building and installing in /usr/src/pkg_install installs pkg_add,
pkg_check, pkg_create, pkg_delete, pkg_info, pkg_sign, and pkg_version. 
 
>I tried both, with no luck.

You sure?  Are you failing with this error:

 ===>  Checking if portd/portname already installed
 *** Error code 1

This is almost certainly caused by an old pkg_info command that does
not understand -O.  To disprove me:

cd /usr/ports/devel/portlint 
ktrace -di make install
kdump | tail -60

and let us see those 60 lines, plus the output of "pkg_info -O" and
"ident /usr/sbin/pkg_info | grep info"

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


Re: Cannot install any port

2003-07-25 Thread Joe Marcus Clarke
On Sat, 26 Jul 2003, Leonardo Lazarte wrote:

>
> Dear Tom,
>
>Unfortunately you have found a problem which those
> in the know prefer to ignore.

This is not true.  Patches to fix this problem are currently being tested
on the ports build cluster.  I am also testing an alternate set of
patches.

>
>The ports system has been broken with the last
> upgrade, and many of us which have found the same
> problem could not find a solution.

Only for older versions of FreeBSD.  FreeBSD 4.7 and greater do not have
this problem.

>
>It has been suggested by some that you could copy
> pkg_info from some newer version. Other person suggested
> re-building pkg_install (in fact, it was incorrectly
> suggested to build pkg_info), after cvsuping src.
>

Assuming that was done correctly, it should have worked.  You would have
needed to cvsup a version of pkg_install that had -O support for pkg_info.

>I tried both, with no luck.
>
>I will go the hard way, re-installing the system, with
> a new version.

There are other options that were enumerated on this list as well as
[EMAIL PROTECTED]  You could have reverted bsd.port.mk to an earlier version where
pkg_info -O was not used.

Joe

>
>As a side note, I mentioned that I have been using
> FreeBSD for a decade (of course a rough estimate), and
> have been corrected by very knowledgeble (sp?) people
> in opposite directions. One said that FreeBSD was not
> yet ten years old, other said it was ten years three
> months. But still no help with a solution.
>
>Regards,
>Leonardo
>
> Tom Kraus wrote:
> > when I try to install any port, everything is looking OK, but after
> > while I got message like this:
> >
> > ===>  Checking if net/apinger already installed
> > *** Error code 1
> >
> > Stop in /usr/ports/net/apinger.
> >
> > ===>  Checking if databases/mysql40-client already installed
> > *** Error code 1
> >
> > Stop in /usr/ports/databases/mysql40-client.
> >
> > Where could be problem?
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
>

PGP Key : http://www.marcuscom.com/pgp.asc
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Cannot install any port

2003-07-25 Thread Leonardo Lazarte

Dear Tom,

   Unfortunately you have found a problem which those
in the know prefer to ignore.

   The ports system has been broken with the last
upgrade, and many of us which have found the same
problem could not find a solution.

   It has been suggested by some that you could copy
pkg_info from some newer version. Other person suggested
re-building pkg_install (in fact, it was incorrectly
suggested to build pkg_info), after cvsuping src.

   I tried both, with no luck.

   I will go the hard way, re-installing the system, with
a new version.

   As a side note, I mentioned that I have been using
FreeBSD for a decade (of course a rough estimate), and
have been corrected by very knowledgeble (sp?) people
in opposite directions. One said that FreeBSD was not
yet ten years old, other said it was ten years three
months. But still no help with a solution.

   Regards,
   Leonardo

Tom Kraus wrote:
> when I try to install any port, everything is looking OK, but after
> while I got message like this:
>
> ===>  Checking if net/apinger already installed
> *** Error code 1
>
> Stop in /usr/ports/net/apinger.
>
> ===>  Checking if databases/mysql40-client already installed
> *** Error code 1
>
> Stop in /usr/ports/databases/mysql40-client.
>
> Where could be problem?

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


RE: PPP Dial-in Server NOW WORKS

2003-07-25 Thread Stephen
First, thank you a million times over fbsd_user!  This has been bugging
me for a LONG time.  Quite kind of you to include all that information. 
Following the advice below and with some additional info I am able to
dial in, although I haven't gotten to the routing stuff yet.  Some
things I found that might be helpful to someone else:  

I found the /etc/gettytab file had to specifically be as follows:

default:\
:pp=/etc/ppp/ppplogin:\
   then the rest here..

In other words, adding the pp line to the end of the default section
didn't work for me.

My bare minimum /etc/ppp/ppp.conf file contains only:

default:
 set log Phase Chat LCP IPCP CCP tun command
 set speed 115200
 set timeout 180

incoming:
 allow users   
 enable chap#will use ppp.secret
 set ifaddr 10.0.0.1 10.0.0.74 255.255.255.255

I also issued the following commands for my modem:

cu -l cuaa0  (use your appropriate number, cuaa1, etc)
ATZ
ATS0=1  (the 0 is zero, 1 tells modem to pick up on first ring)
AT&W
~.

And then:

ppp
ppp on yourcomputername > set device /dev/cuaa0
ppp on yourcomputername > set speed 115200
ppp on yourcomputername > term
AT
AT
~.
ppp on yourcomputername > quit

I discovered the necessary modem commands on the mailing lists while
googling.  On to the the routing...

-Steve



On Thu, 2003-07-24 at 13:48, fbsd_user wrote:
> I had the same problem with the FBSD documentation when I set up
> dial in service to my FBSD box.  But after writeing emails to the
> maintainer of user ppp I finally got a understanding of how it
> worked and got it working. I am post my ppp.conf file that has my
> notes about what has to be done.
> 
> Notes.  First of all, in the USA the fastest line connection you
> will be able to get is 33.5.K because you are using an analog voice
> line to connect the remote PC to the FBSD dial in service. 56k
> speeds can only be achieved by ISP's who use digital lines and that
> is not the case with your FBSD box. You will have to have a modem on
> FBSD for each concurrent dial in connection you want. All modems
> default to no auto answer on inbound calls so you have to use the
> FBSD 'TIP' command to connect to modem and them use the Hayes 'AT'
> commands to enable auto answer.
> 
> Here is my ppp.conf file that contains notes about configuring dial
> in connection. Follow imbedded instruction to enable dial in
> connections.
> 
> 
> ##
> # /etc/ppp/ppp.conf File for dial out modem to ISP and Dial in modem
> for
> # connection to this FBSD system.
> # Written by Joe Barbish 12/10/2001
> #
> # This is a working ppp.conf file I use to dial in to my ISP and to
> connect
> # my Win98 box by dialing in to this FBSD box and accessing the
> internet.
> # There are options in this ppp.conf file that I do not use, But
> present them
> # here for you to turn on by un-commenting the statements to meet
> your needs.
> #
> # For Nic to DSL configuration see www.daemonnews/200101/pppoe.html
> #
> # This ppp.conf documentation is based on a fresh install of FBSD
> 4.8 with
> # all file content as delivered with no user changes.
> #
> # NOTE  Any FBSD documentation that says that the physical modem has
> to have
> # it's default options profile set to, NO command echo ATE0 and NO
> results
> # string ATQ1 and saved to the physical modems onboard non-volatile
> memory
> # (NVRAM)  or any references to using programs kermit, mgetty, or
> minicom
> # to perform the dial function is obsolete and out dated as of FBSD
> 4.0.
> #
> # Setup Instructions.
> #   Note  steps 4 through 7 are only for dial in setup.
> # 1. Recompile kernel and change pseudo-device  tun 1  to  tun 4
> #GENERIC kernel defaults to 1 and you need 1 tun device for each
> com port
> # 2. Add gateway_enable="YES" to /etc/rc.conf so dialin connection
> can gain
> #access to internet.
> # 3. Since a private internal IP address numbering scheme is used
> for IP
> #addresses behind this FBSD box the -nat option must be included
> on the
> #ppp command that starts the  ppp task to dial the ISP.
> #NAT = Network Address Translation. Changes your private
> internal IP
> #address to your public IP address that you get from your ISP
> for
> #outbound messages and does the reverse for inbound messages.
> #From the command line example  ppp -background -nat dialisp
> # 4. Using root create file /etc/ppp/ppplogin
> 
> #Create file ppplogin  with following 2 statements
> ##! /bin/sh
> #exec /usr/sbin/ppp -direct incoming
> #
> #incoming is the section label name in ppp.conf to be processed
> when
> #ppp is started by this script's exec command.
> #
> #This script will be launched by getty when it detects a ppp
> dialin
> #connection attempt. Program ppp belongs to group network, so
> you have to
> #change file ppplogin group to network and it's permissions to
> read/write
> #for th

proxim

2003-07-25 Thread Mark Lapointe
I recently purchased a orinoco gold 802.11b card,  and the wi driver 
isn't picking it up.

I was just wondering if anyone has a soloution?

thanks,

Mark.

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


Re: Fw: Problem with periodically done scripts

2003-07-25 Thread Malcolm Kay
On Sat, 26 Jul 2003 06:42, Peter Rosa wrote:
> > Well, I have tried it. When I type exactly the same command
> > awk -F: '$3==0 {print $1,$3}' /etc/master.passwd | tee /dev/stderr |
>
> sed -e
>
> > '/^root 0$/d' -e '/^toor 0$/d' | wc -l
> > at prompt, it works well. So the error must be around [ -gt 0 -a -lt 1 ]
>

Of course ...[ -gt 0 -a -lt 1 ] is not a valid test!
Its not valid because $n expanded to blank in source:
  [ $n -gt 0 -a $rc -lt 1 ]

Also something wrong with $rc

[snip]

> >
> > separator
> > echo 'Checking for uids of 0:'
> > n=$(awk -F: '$3==0 {print $1,$3}' /etc/master.passwd |
> > tee /dev/stderr |
> > sed -e '/^root 0$/d' -e '/^toor 0$/d' |
> > wc -l)
> > [ $n -gt 0 -a $rc -lt 1 ] && rc=1
> >
 
Malcolm Kay
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: What version of BSD should I use

2003-07-25 Thread Anti
On Fri, 25 Jul 2003 14:03:05 -0400
Lucas Holt <[EMAIL PROTECTED]> wrote:

> lol.
> 
> Sendmail configuration is terrible.
> 
> Some days i dream of a mail server that integrates smtp, pop and imap 
> into one server that is easy to configure with built in spam filtering. 
>   (oh and it has to work).



except for built-in spam filtering, courier-mta is exactly that :)

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


Re: linux-emulator problem

2003-07-25 Thread Kris Kennaway
On Fri, Jul 25, 2003 at 09:42:06PM -0500, Shawn wrote:
> On Fri, 2003-07-25 at 17:10, Kris Kennaway wrote: 
> > It certainly could!  Patches should be sent to [EMAIL PROTECTED]
> > for review :-)
> 
> Doesn't that error basically mean unimplemented linux syscall or
> something like that?

Right, it needs to be implemented.

Kris

pgp0.pgp
Description: PGP signature


Re: Kernel Compile Error

2003-07-25 Thread Kris Kennaway
On Sat, Jul 26, 2003 at 12:53:34AM +0200, A. Gillissen wrote:
> Hi,
> 
> While I was builing a custom kernel the following error occured during the 
> "make depend" (FreeBSD 5.0 RELEASE):

Sounds like you don't have a consistent source tree.

Kris


pgp0.pgp
Description: PGP signature


Re: Dynamic Hostname Assignment

2003-07-25 Thread Rod Person
On 25 Jul 2003 03:49:15 +
Shawn <[EMAIL PROTECTED]> wrote:

> On Fri, 2003-07-25 at 03:37, Rod Person wrote:
> > I assume your isp uses DHCP. If so, did you try ifconfig_xl0="DHCP" in your 
> > /etc/rc.conf.
> 
> First that's already set, I selected DHCP configuration of the network
> interface during setup and installation. That's how my IP address gets
> assigned. It's only the hostname that isn't being dynamically assigned
> for some reason. This is what puzzles me because previous Linux
> distributions I've used have all done this without any extra
> intervention on my part.

Does you host name get set to anything at all? Did you accidently set the hostname in 
your rc.conf in /etc or /etc/defaults? If that not set may host name becomes a 
hostname set by DHCP which is a long string containing the ip address. Only if I've 
set hostname to something else do it give me something else.


-- 
Rod

@ Home So No Cool Signature
http://opensourcebeef.bsd.st

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


Re: Writing to parallel port

2003-07-25 Thread Malcolm Kay
On Sat, 26 Jul 2003 03:12, Daan Vreeken [PA4DAN] wrote:
> On Friday 25 July 2003 19:22, Mark wrote:
> > Hello,
> >
> > Has anyone an idea how to set/unset a bit on a parallel port in freebsd
> > 4.7? I installed Device::ParallelPort from CPAN (Perl 5.8.0), but that
> > does nothing (seems made for linux).
> >
> > Or if someone could point me to a little c-source, that would be helpful
> > too; all I need is to toggle a bit to switch a relay.
>
> Have a look at this piece of code if wrote :
> http://vitsch.net/cgi-bin/gpl/cat.cgi/lampd/v1.0?lampd.c
> It's a very small udp network daemon to control my roomlights over the LAN.
>
> Basically you need to open /dev/io to get io read/write permission, after
> that you are free to bang all IO-ports you want.
>

Generally you still need to be root or have root privilege to do this; but 
might vary with different FreeBSD releases.

An alternative that may or may not suit your needs is ppi device access to
parallel ports eg /dev/ppi0; try:
# man ppi

> grtz,
> Daan

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


Re: linux-emulator problem

2003-07-25 Thread Shawn
On Fri, 2003-07-25 at 17:10, Kris Kennaway wrote: 
> It certainly could!  Patches should be sent to [EMAIL PROTECTED]
> for review :-)

Doesn't that error basically mean unimplemented linux syscall or
something like that?

-- 
Shawn <[EMAIL PROTECTED]>
http://drevil.warpcore.org/

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


Re: Host name for sendmail.

2003-07-25 Thread Constantine
Olaf Hoyer wrote:

On Fri, 25 Jul 2003, Constantine wrote:

 

Ok, you should in those cases register with a freemail-service, or any
other independent mail-provider, which gives you the possibility to:
a) Identify yourself with SMTP-Auth with his server
b) and send mails with any from: address
In the FreeBSD-handbook there is a chapter for using sendmail with
SMTP-Auth as a client, shall work then.
Olaf

 

Okay, that seems to be too complicated to do, and my idea is not to use
any third-party smtp-servers...
The provider is Earthlink DSL, and the problem I was having, is that
some mail-servers in Russia do not want to accept any mail from one of
the Earthlinks' smtp-servers (207.217.120.122).
The IP-address of my modem (the address of the FreeBSD box visible to
the internet) stays constant usually within a week or so, so I believe
there should be some more neat solutions for the problem...
   

Hi!

Well, the IP 207.217.120.122 is not in rbl Lists, as I checked it
quickly, so there must be another problem.
Do you have a copy of those messages, resp. the mailerdeamon?



When its a private IP, then it is regardless of being several minutes or
a week, because the remote system only sees the public IP of the
system...
Olaf
 

The message was

 [EMAIL PROTECTED]
   SMTP error from remote mailer after MAIL FROM:<[EMAIL PROTECTED]>:
   host rusonyx.ru [212.24.38.14]: 550 5.7.1 Mail from 207.217.120.122 refused by 
blackhole site work.drbl.rusonyx.ru
It is some Russian spam-list, and since the server we are talking about is Earthlinks' server in the US, nobody really cares about it... The web-site of drbl can be found at http://www.drbl.ofisp.org/eng/

Indeed, my private ips stay the same all the time, it is the public ip 
that changes from week to week.

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


Re: Installing FreeBSD onto Vinum-volumes?

2003-07-25 Thread Kirk Strauser
At 2003-07-26T00:27:20Z, "Greg 'groggy' Lehey" <[EMAIL PROTECTED]> writes:

> OK, missed that.  The whole intention of the exercise I describe in the
> book is to have a mirrored root file system.  This has been consistently
> the most demanded new feature in Vinum.

Understood.  I had no desire to do that on my systems, but I can see why
some people would want to.

> A much better approach, which I'll describe in the next edition of the
> book, is to maintain all config files under RCS.  This gives you more than
> one backup.

I look forward to reading about it.  I've considered importing /etc into my
main CVS repository, but I hadn't really given it a whole lot of thought
yet.
-- 
Kirk Strauser


pgp0.pgp
Description: PGP signature


NEED HELP! on how to import new Xdesktop to .xinitcrc

2003-07-25 Thread marlon corleone
hi guys, download fluxbox how do i import it to my
.xinitrc? so i can use two X desktop at a time. here's
my .xinitrc looks like.
im running FreeBSd 5.1-RELEASE

thanks!

Akira# cat .xinitrc
xterm &
[ ! -d $HOME/GNUstep/Library/WindowMaker ] &&
/usr/X11R6/bin/wmaker.inst
exec /usr/X11R6/bin/wmaker




__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Adaptec AIC-7902 SCSI HostRAID Installation

2003-07-25 Thread Nigel Wohlers
Hello,

I am having some issues installing FreeBSD (4.8 and 5.1) onto a server which has
a SCSI HostRAID (http://www.intel.com/design/servers/se7501wv2/index.htm) mirror
partition setup.

FreeBSD 4.8>  manages to get the installation menu, after choosing standard
installation - reports no hard drives found.

FreeBSD 5.1>  halts at first menu (Probing devices) then errors - reports write
failure, hard disc full and begins rebooting process.

I managed to catch a glipse at load time which reports finding the host adapter
but has (Driver not attached) next to it.

After a bit of searching I found that this device is supported and uses the
'ahd' driver, I attempted to load this driver at boot time (and others) 'load
ahd' but to no avail.

I also noted this pr (http://www.freebsd.org/cgi/query-pr.cgi?pr=51970) for
4.8-REL dated May 8th 2003.

Basically I would like to know whether it is possible to use this configuration
at present preferably on FreeBSD 5.1, or if not, would appreciate an alternative
to this, perhaps software RAID?

Thanks in advance, please let me know if any more information is required.

Regards,
Nigel.

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


Re: Host name for sendmail.

2003-07-25 Thread Olaf Hoyer
On Fri, 25 Jul 2003, Constantine wrote:

> >Ok, you should in those cases register with a freemail-service, or any
> >other independent mail-provider, which gives you the possibility to:
> >
> >a) Identify yourself with SMTP-Auth with his server
> >b) and send mails with any from: address
> >
> >
> >In the FreeBSD-handbook there is a chapter for using sendmail with
> >SMTP-Auth as a client, shall work then.
> >
> >Olaf
> >
> Okay, that seems to be too complicated to do, and my idea is not to use
> any third-party smtp-servers...
>
> The provider is Earthlink DSL, and the problem I was having, is that
> some mail-servers in Russia do not want to accept any mail from one of
> the Earthlinks' smtp-servers (207.217.120.122).
>
> The IP-address of my modem (the address of the FreeBSD box visible to
> the internet) stays constant usually within a week or so, so I believe
> there should be some more neat solutions for the problem...
>

Hi!

Well, the IP 207.217.120.122 is not in rbl Lists, as I checked it
quickly, so there must be another problem.

Do you have a copy of those messages, resp. the mailerdeamon?



When its a private IP, then it is regardless of being several minutes or
a week, because the remote system only sees the public IP of the
system...

Olaf

-- 
Olaf Hoyer[EMAIL PROTECTED]
Fuerchterliche Erlebniss geben zu raten,
ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
(Nietzsche, Jenseits von Gut und Boese)

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


Re: Host name for sendmail.

2003-07-25 Thread Constantine
Olaf Hoyer wrote:

On Fri, 25 Jul 2003, Constantine wrote:

 

Olaf Hoyer wrote:

   

I also use a 4.8 box as DSL Router via PPPoE, and there is a sendmail on
it. Ok, I'd have to check whether he can relay directly, and what IP in
the HELO appears, but the box itself can identify its IP without probs.
I'm also using the tunnel interface to connect...
But I'd recommend using a smarthost. Is better and cleaner.

Olaf

 

I have a cable modem with nat, so the FreeBSD box itself does not has
any routable ip-address (the ip, that is connects the box to the
internet is 192.168.1.2). What can I do in this case?
And actually, I started up my own SMTP-server, because the one that was
provided by my ISP was in some spam-blocking programmes, so I was unable
to send some messages through it. So, as I understood, smarthost will
not work for me.
   

Uups.

Well, ok, you get a private IP.
Ok, AOL users get this too, for surfing only its ok, but for anything
else its debateable.
The question is, why was the mailserver of your ISP rejected?
Was it on any blacklists, and why?
When the Mailserver of an ISP is for a longer period, or repeatedly, on
some rbl lists, this is a sign of very poor service.
In that case, I'd change my provider...
Ok, you should in those cases register with a freemail-service, or any
other independent mail-provider, which gives you the possibility to:
a) Identify yourself with SMTP-Auth with his server
b) and send mails with any from: address
In the FreeBSD-handbook there is a chapter for using sendmail with
SMTP-Auth as a client, shall work then.
Olaf

Okay, that seems to be too complicated to do, and my idea is not to use 
any third-party smtp-servers...

The provider is Earthlink DSL, and the problem I was having, is that 
some mail-servers in Russia do not want to accept any mail from one of 
the Earthlinks' smtp-servers (207.217.120.122).

The IP-address of my modem (the address of the FreeBSD box visible to 
the internet) stays constant usually within a week or so, so I believe 
there should be some more neat solutions for the problem...

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


Re: Newbie...

2003-07-25 Thread anubis
On Fri, 25 Jul 2003 06:45 am, Robert wrote:
> I've been messing around with the installion of Freebsd and think I've got
> it after a few tries (I think). I'm at the "username #" command line. It
> also says "I got mail". But now I'm so lost. I've downloaded Doc's,
> handbooks and other information but I don't know where to go next. If
> anyone could give me a few pointers, it's would be greatly appreciated!
>  
>
> Thank You,
> Robert Colon
> Network Administrator
> http://www.lakeluregolf.com
>
>  
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

There are several excellent books around that will give you a helping hand.  
It is well worth going and paying the cash and making your life a bit easier.  

There is Absoulte BSD by Michael Lucas which I can personally vouch for and 
there is The Complete FreeBSD by Greg Lehey which I am told is also and 
excellent book.  

Absolute BSD covers version 4 and the latest version of Complete FreeBSD 
covers verison 5.  Either will be suitable for your needs.  You cant go 
wrong.



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


Re: Host name for sendmail.

2003-07-25 Thread Olaf Hoyer
On Fri, 25 Jul 2003, Constantine wrote:

> Olaf Hoyer wrote:
>
> >I also use a 4.8 box as DSL Router via PPPoE, and there is a sendmail on
> >it. Ok, I'd have to check whether he can relay directly, and what IP in
> >the HELO appears, but the box itself can identify its IP without probs.
> >I'm also using the tunnel interface to connect...
> >
> >But I'd recommend using a smarthost. Is better and cleaner.
> >
> >Olaf
> >
> I have a cable modem with nat, so the FreeBSD box itself does not has
> any routable ip-address (the ip, that is connects the box to the
> internet is 192.168.1.2). What can I do in this case?
>
> And actually, I started up my own SMTP-server, because the one that was
> provided by my ISP was in some spam-blocking programmes, so I was unable
> to send some messages through it. So, as I understood, smarthost will
> not work for me.

Uups.

Well, ok, you get a private IP.
Ok, AOL users get this too, for surfing only its ok, but for anything
else its debateable.

The question is, why was the mailserver of your ISP rejected?
Was it on any blacklists, and why?

When the Mailserver of an ISP is for a longer period, or repeatedly, on
some rbl lists, this is a sign of very poor service.
In that case, I'd change my provider...

Ok, you should in those cases register with a freemail-service, or any
other independent mail-provider, which gives you the possibility to:

a) Identify yourself with SMTP-Auth with his server
b) and send mails with any from: address


In the FreeBSD-handbook there is a chapter for using sendmail with
SMTP-Auth as a client, shall work then.

Olaf

-- 
Olaf Hoyer[EMAIL PROTECTED]
Fuerchterliche Erlebniss geben zu raten,
ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
(Nietzsche, Jenseits von Gut und Boese)

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


Re: Host name for sendmail.

2003-07-25 Thread Constantine
Olaf Hoyer wrote:

On Fri, 25 Jul 2003, Constantine wrote:

 

Olaf Hoyer wrote:

   

On Fri, 25 Jul 2003, Constantine wrote:

Hi!

Well, do the following:

in /etc/hosts, enter your domain name.

then, edit the file: /etc/mail/service.switch (or the corresponding file
location defined in sendmail.cf) with the values :
files dns
to make sendmail first look in /etc/hosts and then try to resolve via
DNS.
Alternatively, in sendmail.cf there is the option to specify the own
host name in case sendmail cannot determine it automagically.
BTW: sendmail wants some FQDN, like cnts.local or something. Missing
dots are iritating to sendmail.
HTH
Olaf


 

Well, thank you. And the other problem I got, is that when I tried to
use my sendmail to send the previous message to this FreeBSD.org postal
list, I got these errors in my maillog:
Jul 24 17:18:11 cnst sm-mta[1101]: h6OImYZI000711:
to=<[EMAIL PROTECTED]>, delay=02:29:36, xdelay=00:00:11,
mailer=esmtp, pri=510414, relay=mx1.freebsd.org. [216.136.204.125],
dsn=4.2.0, stat=Deferred: 450 : Helo command rejected: Host not found
   

Hi!

Well, thats clear: Your box comes with the fake FQDN of cnst in the HELO
command, which cannot be resolved by the remote host, in this case
mx1.freebsd.org, so it rejects the mail.
(Basic SPAM protection)
Solutions:

- The box gets the hostname corresponding to the IP that is
assigned at dialup.
So, if you get 1.2.3.4 as IP, which resolves to:
1-2-3-4.dial.provider.com   you would take care that this appears in the
HELO message.
- you use your providers MTA as smarthost.
In sendmail.cf it shall be the DS macro, IIRC.
Is the better way, because Dial-up-IP-ranges are often blocked due to
spammers and often misconfigured MTA...


I also use a 4.8 box as DSL Router via PPPoE, and there is a sendmail on
it. Ok, I'd have to check whether he can relay directly, and what IP in
the HELO appears, but the box itself can identify its IP without probs.
I'm also using the tunnel interface to connect...
But I'd recommend using a smarthost. Is better and cleaner.

Olaf

I have a cable modem with nat, so the FreeBSD box itself does not has 
any routable ip-address (the ip, that is connects the box to the 
internet is 192.168.1.2). What can I do in this case?

And actually, I started up my own SMTP-server, because the one that was 
provided by my ISP was in some spam-blocking programmes, so I was unable 
to send some messages through it. So, as I understood, smarthost will 
not work for me.

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


Re: Installing FreeBSD onto Vinum-volumes?

2003-07-25 Thread Greg 'groggy' Lehey
On Wednesday, 23 July 2003 at 14:11:31 -0500, Kirk Strauser wrote:
> At 2003-07-23T18:21:42Z, Eivind Olsen <[EMAIL PROTECTED]> writes:
>
>> Are you able to have a mirrored root-device (/) with this approach? Or
>> will you end up with having a single copy of / on one drive?
>
> I end up with a single copy of '/'. 

OK, missed that.  The whole intention of the exercise I describe in
the book is to have a mirrored root file system.  This has been
consistently the most demanded new feature in Vinum.

> The reasons I do this are that:
>
> 1) Any old FreeBSD boot floppy/CD can read the "mirrors" of '/' in the event
>that the root drive dies, regardless of the state of vinum.  Makes
>disaster recovery that much easier.

The way I describe works as well in this situation.

> 2) You get a little bit of versioning for free.  Accidentally overwrite
>/etc/master.passwd with mergemaster?  Just grab the copy from
>/rootbackup.

A much better approach, which I'll describe in the next edition of the
book, is to maintain all config files under RCS.  This gives you more
than one backup.

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


pgp0.pgp
Description: PGP signature


Re: Installing FreeBSD onto Vinum-volumes?

2003-07-25 Thread Greg 'groggy' Lehey
On Wednesday, 23 July 2003 at  9:19:16 -0500, Kirk Strauser wrote:
> At 2003-07-23T13:51:28Z, Eivind Olsen <[EMAIL PROTECTED]> writes:
>
>> There's no data on the disks that I want/have to keep. Is it at all
>> possible to configure Vinum and then install FreeBSD or will I have to
>> install FreeBSD first and then "convert" to Vinum-volumes by manually
>> editing the disklabel (with bsdlabel), calculating offsets etc.?
>
> I've had great success with configuring an initial tiny partition as '/' and
> doing a minimal installation (and I mean *minimal*, as in, there's nothing
> else you can remove and still have it boot).  The first step after booting
> the new system is then configuring vinum, adding volumes for /usr, /var, and
> so on, and moving the (small!) amount of data from the "physical" filesystem
> to their vinum counterparts.  Once that's up, I do a more complete install
> with /stand/sysinstall.

And how do you reuse the space taken up by your initial tiny
partition, in the order of 150 MB?

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


pgp0.pgp
Description: PGP signature


Re: Installing FreeBSD onto Vinum-volumes?

2003-07-25 Thread Greg 'groggy' Lehey
On Wednesday, 23 July 2003 at 14:11:31 -0500, Kirk Strauser wrote:
> At 2003-07-23T18:21:42Z, Eivind Olsen <[EMAIL PROTECTED]> writes:
>>> Out of curiosity, what offsets have you had to calculate?
>
>> I've read a bit of a chapter from the 4th edition of The Complete FreeBSD:
>>  (or, as text
>> ).  It suggests to install the
>> swap-partition first on the drive, setup a slice for vinum to cover the
>> entire drive and then run bsdlabel and change the offset and size for the
>> swap and vinum partitions.
>
> Weird.  I've never bothered with any of that.  I always just call "create"
> with:
>
>   sd length 0 drive myDrive1
>
> and let vinum calculate the correct sizes.

Then you're missing the point.  "length 0" just gives you the rest of
the volume.  Here you need to find the data which is already on disk.

There was an error in the first cut of this document.  Under some
circumstances it could lead to overwriting the bootstrap, thus making
the disk unbootable.  For further reference: the space required at the
beginning of the disk is 281 sectors, not 265 as originally
documented.  See the document for more details.

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


pgp0.pgp
Description: PGP signature


RE: question on cups

2003-07-25 Thread Derrick Ryalls
> Hi,
> 
> I am running freebsd 4.8 stable, and have cups installed.
> 
> # pkg_info | grep cups
> cups-1.1.19.0   The Common UNIX Printing System: Metaport 
> to install
> comple
> cups-base-1.1.19.0  The Common UNIX Printing System: headers, 
> libs, & daemons
> cups-lpr-1.1.19.0   The CUPS BSD and system V compatibility binaries
> (lp* comma
> cups-pstoraster-7.07 GNU Postscript interpreter for CUPS 
> printing to non-PS prin
> 
> I copied /usr/local/etc/rc.d/cups.sh.sample to cups.sh, and 
> then ran /usr/local/etc/rc.d/cups.sh start
> 
> # /usr/local/etc/rc.d/cups.sh start
> cups: started scheduler.
> However when I ran ps, I got:
> # ps aux | grep cups
> #
> I can not find cupsd process. Why? Any suggestion? 

What does /var/log/cups/error_log say?

If that doesn't exist, create it and access_log with these permissions:

-rw-r--r--  1 root  daemon58323 Jul 23 18:28 access_log
-rw-r--r--  1 root  daemon   117363 Jul 23 18:28 error_log

Then run cups.sh again and check error log, you will probably need to
create more directories.


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


Re: Host name for sendmail.]

2003-07-25 Thread Steve Devine


Quite often this happens because you dont have a valid hostname that maps
to  a ip address. This is a problem when you are using a dsl or cable
modem with Dynamis ips. I suggest you look into a Dynamic dns service. I
use dyndns.org for a free hostname / dns service. They run on the Freebsd
platform.
/sd
> On Fri, 25 Jul 2003, Constantine wrote:
>
>> Hello,
>>
>> I have a FreeBSD 4.8 box, I run it for my local small home network  I
use it as a router. My DSL-modem has a NAT feature, and FreeBSD does
not have any routable ip-address, only the modem does.
>>
>> My sendmail always complains about the domain name every time I start
my FreeBSD, and the system is hanging for 2 minutes, until the sendmail
finally starts. What I want to do, is to keep my own sendmail (I use it
as my smtp-server), but I do not want the system to wait 2 minutes
until the sendmail starts. What can I do?
>>
>
>
> Hi!
>
> Well, do the following:
>
> in /etc/hosts, enter your domain name.
>
> then, edit the file: /etc/mail/service.switch (or the corresponding file
location defined in sendmail.cf) with the values :
> files dns
>
> to make sendmail first look in /etc/hosts and then try to resolve via DNS.
>
> Alternatively, in sendmail.cf there is the option to specify the own
host name in case sendmail cannot determine it automagically.
>
> BTW: sendmail wants some FQDN, like cnts.local or something. Missing
dots are iritating to sendmail.
>
> HTH
> Olaf
>
> --
> Olaf Hoyer[EMAIL PROTECTED]
> Fuerchterliche Erlebniss geben zu raten,
> ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
> (Nietzsche, Jenseits von Gut und Boese)
>
> ___
> [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]"


"The Complete FreeBSD": errata and addenda

2003-07-25 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]"


How to get best results from FreeBSD-questions

2003-07-25 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 l

Re: suid files

2003-07-25 Thread Chuck Swiger
Peter Rosa wrote:
Some another question I wanted to ask a long time ago:

1. Is there some list of files, that REALLY need suid-bit set ?
2. Is there some list of files, installed from FreeBSD, which HAVE suid-bit
set ?
See /var/log/setuid.today for the latter, and maybe 
/etc/periodic/daily/450.status-security which performs a daily check on setuid 
files, if that is of interest to you...

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


Cannot install any port

2003-07-25 Thread Tom Kraus
Please help,

when I try to install any port, everything is looking OK, but after
while I got message like this:

===>  Checking if net/apinger already installed
*** Error code 1

Stop in /usr/ports/net/apinger.

===>  Checking if databases/mysql40-client already installed
*** Error code 1

Stop in /usr/ports/databases/mysql40-client.

Where could be problem?

Petr

__
Reklama:
Sexy leto naplno!  Jednodenni kontaktní cocky Focus Dailies. Akcni nabidka! 
http://ad2.seznam.cz/redir.cgi?instance=57292%26url=http://www.cz.cibavision.com/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Host name for sendmail.

2003-07-25 Thread Olaf Hoyer
On Fri, 25 Jul 2003, Constantine wrote:

> Hello,
>
> I have a FreeBSD 4.8 box, I run it for my local small home network  I
> use it as a router. My DSL-modem has a NAT feature, and FreeBSD does not
> have any routable ip-address, only the modem does.
>
> My sendmail always complains about the domain name every time I start my
> FreeBSD, and the system is hanging for 2 minutes, until the sendmail
> finally starts. What I want to do, is to keep my own sendmail (I use it
> as my smtp-server), but I do not want the system to wait 2 minutes until
> the sendmail starts. What can I do?
>


Hi!

Well, do the following:

in /etc/hosts, enter your domain name.

then, edit the file: /etc/mail/service.switch (or the corresponding file
location defined in sendmail.cf) with the values :
files dns

to make sendmail first look in /etc/hosts and then try to resolve via
DNS.

Alternatively, in sendmail.cf there is the option to specify the own
host name in case sendmail cannot determine it automagically.

BTW: sendmail wants some FQDN, like cnts.local or something. Missing
dots are iritating to sendmail.

HTH
Olaf

-- 
Olaf Hoyer[EMAIL PROTECTED]
Fuerchterliche Erlebniss geben zu raten,
ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
(Nietzsche, Jenseits von Gut und Boese)

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


Re: Apache help

2003-07-25 Thread Jez Hancock
On Fri, Jul 25, 2003 at 12:27:01PM +0530, Sunil Sunder Raj wrote:
> Hi,
> There is an error in the shell script apache provides.
> 
> The line no.105 should be
> 
>if [ -z "${apache_start}" ]; then
> 
> check that the double codes are proper.
Which file is this, my rc script for apache only goes up to line 10 or
so... I thought you might have meant apachectl but there's no reference
to that line in there either...
-- 
Jez

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


Re: Problem with periodically done scripts

2003-07-25 Thread Peter Rosa
Well, well, well. We have done it.

I just tried sh /etc/security and it REALLY works well.
I have tried my changes in small fragment of /etc/security where I forgot to
define $rc in the beginning.
There was an really error in wc command - it did not count lines, so $n was
never set properly.
Thanks for everybody, who helped me with this strange thing. I have learned
a lot of new.

Even more to investigate who and how changed my wc file


Last changes I made:

cd /usr/src/bin/test
make
make install
make clean

cd /usr/src/usr.bin/wc
make
make install
make clean

And all works  :-))

Peter Rosa


P.S. Again, thank you, guys :-)))

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


suid files

2003-07-25 Thread Peter Rosa
Some another question I wanted to ask a long time ago:

1. Is there some list of files, that REALLY need suid-bit set ?
2. Is there some list of files, installed from FreeBSD, which HAVE suid-bit
set ?

Peter Rosa


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


Host name for sendmail.

2003-07-25 Thread Constantine
Hello,

I have a FreeBSD 4.8 box, I run it for my local small home network  I
use it as a router. My DSL-modem has a NAT feature, and FreeBSD does not
have any routable ip-address, only the modem does.
My sendmail always complains about the domain name every time I start my
FreeBSD, and the system is hanging for 2 minutes, until the sendmail
finally starts. What I want to do, is to keep my own sendmail (I use it
as my smtp-server), but I do not want the system to wait 2 minutes until
the sendmail starts. What can I do?
In /var/log/maillog I have:
Jul 24 12:46:59 cnst sm-mta[99]: My unqualified host name (cnst)
unknown; sleeping for retry
Jul 24 12:47:59 cnst sm-mta[99]: unable to qualify my own domain name
(cnst) -- using short name
Jul 24 12:47:59 cnst sm-mta[100]: starting daemon (8.12.8p1):
[EMAIL PROTECTED]:30:00
Jul 24 12:47:59 cnst sm-msp-queue[101]: My unqualified host name (cnst)
unknown; sleeping for retry
Jul 24 12:49:00 cnst sm-msp-queue[101]: unable to qualify my own domain
name (cnst) -- using short name
Jul 24 12:49:00 cnst sm-msp-queue[103]: starting daemon (8.12.8p1):
[EMAIL PROTECTED]:30:00
In /var/log/messages I have:
Jul 24 12:46:58 cnst ntpdate[85]: step time server 198.82.161.227 offset
-0.104211 sec
Jul 24 12:46:59 cnst sm-mta[99]: My unqualified host name (cnst)
unknown; sleeping for retry
Jul 24 12:47:59 cnst sm-mta[99]: unable to qualify my own domain name
(cnst) -- using short name
Jul 24 12:47:59 cnst sm-msp-queue[101]: My unqualified host name (cnst)
unknown; sleeping for retry
Jul 24 12:49:00 cnst sm-msp-queue[101]: unable to qualify my own domain
name (cnst) -- using short name
Jul 24 12:49:00 cnst apmd[117]: start
Thank you,
Constantine.


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


Kernel Compile Error

2003-07-25 Thread A. Gillissen
Hi,

While I was builing a custom kernel the following error occured during the 
"make depend" (FreeBSD 5.0 RELEASE):

--
mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -I- -I. -I@ -I@/dev 
-I@/../in
clude -I/usr/include /usr/src/sys/modules/aha/../../dev/aha/aha.c 
/usr/src/sys/modu
les/aha/../../dev/aha/aha_isa.c
===> aic7xxx
===> aic7xxx/aicasm
===> aic7xxx/ahc
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
( cd /usr/src/sys/modules/aic7xxx/ahc/../aicasm; make aicasm; )
cc -O -pipe -mcpu=pentiumpro -nostdinc -I/usr/include -I. 
-I/usr/src/sys/modules/aic
7xxx/aicasm/../../../dev/aic7xxx/aicasm -c 
/usr/src/sys/modules/aic7xxx/aicasm/..
/../../dev/aic7xxx/aicasm/aicasm.c
cc -O -pipe -mcpu=pentiumpro -nostdinc -I/usr/include -I. 
-I/usr/src/sys/modules/aic
7xxx/aicasm/../../../dev/aic7xxx/aicasm -c 
/usr/src/sys/modules/aic7xxx/aicasm/..
/../../dev/aic7xxx/aicasm/aicasm_symbol.c
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:52:19: fcntl.h: No such 
file or dire
ctory
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function `symtable_open':
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:134: `O_CREAT' undeclared 
(first use
in this function)
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:134: (Each undeclared 
identifier is
reported only once
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:134: for each function it 
appears in
.)
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:134: `O_NONBLOCK' 
undeclared (first
use in this function)
/usr/src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:134: `O_RDWR' undeclared 
(first use
in this function)
*** Error code 1

Stop in /usr/src/sys/modules/aic7xxx/aicasm.
*** Error code 1
Stop in /usr/src/sys/modules/aic7xxx/ahc.
*** Error code 1
Stop in /usr/src/sys/modules/aic7xxx.
*** Error code 1
Stop in /usr/src/sys/modules.
*** Error code 1
Stop in /usr/src/sys/i386/compile/MYKERNEL.
bsdbox#
--
This happens with any configuration file - even with the GENERIC kernel 
config.
I've tried to comment out several options / devices but nothing worked.
Does anybody know a solution to this problem?

Best Regards,
Alexander Gillissen
Tel: +49 ( 0 ) 214 / 20 29 239
Mobil: +49 ( 0 ) 179 / 73 25 616
e-mail: [EMAIL PROTECTED]
icq uin: 62304741
www: http://drdoo.mine.nu
gpg public key: http://drdoo.mine.nu/ag_public_key.gpg  

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


Re: Problem with periodically done scripts

2003-07-25 Thread Peter Rosa
You are right. We are so close the solution...

But WHY is $rc empty ? As you can see in my previous mail I send whole
security script, it is set in the beginning of script and then it is set
along whole script at least 10 times (using && or =). So it should not be
empty...

Peter


- Original Message -
From: "Dan Nelson" <[EMAIL PROTECTED]>
To: "Peter Rosa" <[EMAIL PROTECTED]>
Cc: "freebsd-questions" <[EMAIL PROTECTED]>
Sent: Saturday, July 26, 2003 12:33 AM
Subject: Re: Problem with periodically done scripts


> In the last episode (Jul 26), Peter Rosa said:
> > And what's wrong on [ 0 -gt 0 -a -lt 0].
>
> -lt needs a number in front of it, since it does a less-than comparison.
>
> > > > Could you, please, explain the following line: [ $n -gt 0 -a $rc -lt
1 ]
>
> ... which means that $rc is probably empty.
>
> --
> Dan Nelson
> [EMAIL PROTECTED]
> ___
> [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]"


question on cups

2003-07-25 Thread Zhang, Peng
Hi,

I am running freebsd 4.8 stable, and have cups installed.

# pkg_info | grep cups
cups-1.1.19.0   The Common UNIX Printing System: Metaport to install
comple
cups-base-1.1.19.0  The Common UNIX Printing System: headers, libs, &
daemons
cups-lpr-1.1.19.0   The CUPS BSD and system V compatibility binaries
(lp* comma
cups-pstoraster-7.07 GNU Postscript interpreter for CUPS printing to
non-PS prin

I copied /usr/local/etc/rc.d/cups.sh.sample to cups.sh, and then ran
/usr/local/etc/rc.d/cups.sh start

# /usr/local/etc/rc.d/cups.sh start
cups: started scheduler.
However when I ran ps, I got:
# ps aux | grep cups
#
I can not find cupsd process. Why? Any suggestion? 

Thanks in advance!

Peng


-- 
Zhang, Peng <[EMAIL PROTECTED]>

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


Re: Problem with NVIDIA drivers

2003-07-25 Thread sweetleaf
On Fri, 25 Jul 2003 15:54:24 -0400
Marc LeMaire <[EMAIL PROTECTED]> wrote:

> Hello,
> I've installed the nvidia drivers from the ports. I've followed the 
> instructions, and all the files are in their directory. But when I'm 
> trying to start X, the machine crash and reboot. I've looked into the 
> archives to see if someone had this problem but they are presently 
> unavailable.
> 
> p.s.: Could it be possible that this line that I received everytime that 
> I fired up X be the culprit ?
> "bad display name "gryphon.krockmitaine.org:0" in "remove" command. How 
> can I correct this ?
> 
> This is a fresh install, 4.8, with the latest cvsup. Also, the equipment 
> is a GeForce 256 with a ViewSonic E790. I've included my XF86Config and 
> the config file for my kernel.
> 
> Thanks in advance
> 
> Marc
> 


Nvidia just released a new freebsd drivers tar ball. I am using it fine, just go to 
their website and d/l the freebsd tar.gz untar it and type make setup.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem with NVIDIA drivers

2003-07-25 Thread Vulpes Velox
After installing it run XFree86 -configure and that should create a config file.
Test that. If it still crashes it is most likely a driver problem.

On Fri, 25 Jul 2003 15:54:24 -0400
Marc LeMaire <[EMAIL PROTECTED]> wrote:

> Hello,
> I've installed the nvidia drivers from the ports. I've followed the 
> instructions, and all the files are in their directory. But when I'm 
> trying to start X, the machine crash and reboot. I've looked into the 
> archives to see if someone had this problem but they are presently 
> unavailable.
> 
> p.s.: Could it be possible that this line that I received everytime that 
> I fired up X be the culprit ?
> "bad display name "gryphon.krockmitaine.org:0" in "remove" command. How 
> can I correct this ?
> 
> This is a fresh install, 4.8, with the latest cvsup. Also, the equipment 
> is a GeForce 256 with a ViewSonic E790. I've included my XF86Config and 
> the config file for my kernel.
> 
> Thanks in advance
> 
> Marc
> 

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


Re: Problem with periodically done scripts

2003-07-25 Thread Dan Nelson
In the last episode (Jul 26), Peter Rosa said:
> And what's wrong on [ 0 -gt 0 -a -lt 0].

-lt needs a number in front of it, since it does a less-than comparison.

> > > Could you, please, explain the following line: [ $n -gt 0 -a $rc -lt 1 ]

... which means that $rc is probably empty.

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


Re: Problem with periodically done scripts

2003-07-25 Thread Peter Rosa
And what's wrong on [ 0 -gt 0 -a -lt 0].


Peter



- Original Message -
From: "Dan Nelson" <[EMAIL PROTECTED]>
To: "Peter Rosa" <[EMAIL PROTECTED]>
Cc: "freebsd-questions" <[EMAIL PROTECTED]>
Sent: Saturday, July 26, 2003 12:22 AM
Subject: Re: Problem with periodically done scripts


> In the last episode (Jul 26), Peter Rosa said:
> > Dear Gilbert,
> >
> > I have replaced wc with make install from /usr/src/usr.bin/wc and now it
> > works. Up now wc -l gave no results, now it give proper number.
> >
> > Could you, please, explain the following line: [ $n -gt 0 -a $rc -lt 1 ]
???
> > Why are there [] ? When I write it at prompt as
> > [0 -gt 0 -a - lt 0] it writes [: 0: unexpected operator, but
> > [0 -gt 0 -a -lt ] writes nothing.
>
> [ is another way to run the "test" command.  "man test" for more info.
>
> --
> Dan Nelson
> [EMAIL PROTECTED]
> ___
> [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: Problem with periodically done scripts

2003-07-25 Thread Dan Nelson
In the last episode (Jul 26), Peter Rosa said:
> But inside /bin is command named [
> 
> Is it what do you mean ? Or it should not be there and act only as an alias
> ?

/bin/[ and /bin/test are hardlinked together.  It's supposed to be
like that.

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


Re: Problem with periodically done scripts

2003-07-25 Thread Peter Rosa
But inside /bin is command named [

Is it what do you mean ? Or it should not be there and act only as an alias
?

Peter Rosa



- Original Message -
From: "Dan Nelson" <[EMAIL PROTECTED]>
To: "Peter Rosa" <[EMAIL PROTECTED]>
Cc: "freebsd-questions" <[EMAIL PROTECTED]>
Sent: Saturday, July 26, 2003 12:22 AM
Subject: Re: Problem with periodically done scripts


> In the last episode (Jul 26), Peter Rosa said:
> > Dear Gilbert,
> >
> > I have replaced wc with make install from /usr/src/usr.bin/wc and now it
> > works. Up now wc -l gave no results, now it give proper number.
> >
> > Could you, please, explain the following line: [ $n -gt 0 -a $rc -lt 1 ]
???
> > Why are there [] ? When I write it at prompt as
> > [0 -gt 0 -a - lt 0] it writes [: 0: unexpected operator, but
> > [0 -gt 0 -a -lt ] writes nothing.
>
> [ is another way to run the "test" command.  "man test" for more info.
>
> --
> Dan Nelson
> [EMAIL PROTECTED]
> ___
> [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: Problem with periodically done scripts

2003-07-25 Thread Dan Nelson
In the last episode (Jul 26), Peter Rosa said:
> Dear Gilbert,
> 
> I have replaced wc with make install from /usr/src/usr.bin/wc and now it
> works. Up now wc -l gave no results, now it give proper number.
> 
> Could you, please, explain the following line: [ $n -gt 0 -a $rc -lt 1 ] ???
> Why are there [] ? When I write it at prompt as
> [0 -gt 0 -a - lt 0] it writes [: 0: unexpected operator, but
> [0 -gt 0 -a -lt ] writes nothing.

[ is another way to run the "test" command.  "man test" for more info.

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


Re: Problem with periodically done scripts

2003-07-25 Thread Peter Rosa
Dear Gilbert,

I have replaced wc with make install from /usr/src/usr.bin/wc and now it
works. Up now wc -l gave no results, now it give proper number.

Could you, please, explain the following line: [ $n -gt 0 -a $rc -lt 1 ] ???
Why are there [] ? When I write it at prompt as
[0 -gt 0 -a - lt 0] it writes [: 0: unexpected operator, but
[0 -gt 0 -a -lt ] writes nothing.
What is it ? What type of command is written such kind ?

Peter Rosa

P.S. Now awk -F: '$3==0 {print $1,$3}' /etc/master.passwd | tee /dev/stderr
| sed -e '/^root 0$/d' -e '/^toor 0$/d' | wc -l returns
root 0
toor 0
 1

PR


- Original Message -
From: "Lowell Gilbert" <[EMAIL PROTECTED]>
To: "Peter Rosa" <[EMAIL PROTECTED]>
Sent: Friday, July 25, 2003 11:51 PM
Subject: Re: Problem with periodically done scripts


> "Peter Rosa" <[EMAIL PROTECTED]> writes:
>
> > Well, I have tried it. When I type exactly the same command
> > awk -F: '$3==0 {print $1,$3}' /etc/master.passwd | tee /dev/stderr |
sed -e
> > '/^root 0$/d' -e '/^toor 0$/d' | wc -l
> > at prompt, it works well. So the error must be around [ -gt 0 -a -lt 1 ]
&&
> > rc==1
>
> > echo 'Checking for uids of 0:'
> > n=$(awk -F: '$3==0 {print $1,$3}' /etc/master.passwd |
> > tee /dev/stderr |
> > sed -e '/^root 0$/d' -e '/^toor 0$/d' |
> > wc -l)
> > [ $n -gt 0 -a $rc -lt 1 ] && rc=1
>
> Note the $n.
> n should be zero after the previous command.
>

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


Re: I want using FreeBSD, but...

2003-07-25 Thread James Long
On Fri, Jul 25, 2003 at 04:57:12PM +0200, Paul Everlund wrote:
>
> [EMAIL PROTECTED] wrote:
> > Nothing in the Bible says you cannot use FreeBSD.
> 
> When the bible was written I don't think anyone had heard about
> servers and FreeBSD, hence there's nothing there to say you should
> not use FreeBSD. :-)

What about the bit where it says thou shalt not covet thy neighbor's OS?

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


Re: Announce Broken Ports

2003-07-25 Thread Kris Kennaway
On Fri, Jul 25, 2003 at 02:00:07PM -0300, Leonardo Lazarte wrote:
> 
> As seen in several messages to this and other lists, the PORTS
> mecanism has been broken.
> 
> I have read about some patches and possible solutions, but I
> could not find an easy way to overcome the problem.
> 
> Shouldn't it be announced clearly, on the FreeBSD site, that
> there is a problem with PORTS, perhaps pointing to some
> temporary solution, until the problem is solved?

It is announced clearly on the FreeBSD website that old FreeBSD
releases are unsupported.

  http://www.freebsd.org/ports/

> I have used FreeBSD for a decade, and it is the first time
> that I have to change the OS version due to problems broght
> from the distributions.

You've been fortunate, but if your claim is true (the FreeBSD project
has existed for 10 years and 3 weeks, so you must have been one of the
very first users), then you've presumably got the skills to cope.

Kris


pgp0.pgp
Description: PGP signature


Re: file table is full - but not...?

2003-07-25 Thread Jez Hancock
On Fri, Jul 25, 2003 at 12:59:11AM -0400, Dave [Hawk-Systems] wrote:
> Jul 24 23:11:50 web1 /kernel: le: table is full
> Jul 24 23:11:50 web1 /kernel: file: table is full
File table in this context refers to the table that keeps track of open
files I believe, not how full your disk is or how many inodes are used
up.

For more info checking out the tuning(7) manpage, particularly the
section starting 'LOADER TUNABLES' (although it's all good stuff:):

 kern.maxusers controls the scaling of a number of static system tables,
 including defaults for the maximum number of open files, sizing of net-
 work memory resources, etc.  As of FreeBSD 4.5, kern.maxusers is automat-
 ically sized at boot based on the amount of memory available in the sys-
 tem, and may be determined at run-time by inspecting the value of the
 read-only kern.maxusers sysctl.  Some sites will require larger or
 smaller values of kern.maxusers and may set it as a loader tunable; val-
 ues of 64, 128, and 256 are not uncommon.  We do not recommend going
 above 256 unless you need a huge number of file descriptors; many of the
 tunable values set to their defaults by kern.maxusers may be individually
 overridden at boot-time or run-time as described elsewhere in this docu-
 ment.  Systems older than FreeBSD 4.4 must set this value via the kernel
 config(8) option maxusers instead.

You can check the number of files open, max number of files available
etc etc by running 'sysctl -a | grep file':

kern.maxfiles: 8168
kern.maxfilesperproc: 7351
kern.openfiles: 419

-- 
Jez

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


Re: linux-emulator problem

2003-07-25 Thread Kris Kennaway
On Fri, Jul 25, 2003 at 12:51:28PM +0200, Joachim Jaeckel wrote:
> Hello,
> 
> I'm trying to use a linux application under a FreeBSD 4.8-STABLE.
> 
> Most things works fine, but sometimes I get the following error message:
> 
>   linux: 'ipc' typ=258 not implemented
> 
> and the selected function in the linux program does not work.
> 
> Can someone tell me, if this (unsupported?) function in the emulator could be fixed?

It certainly could!  Patches should be sent to [EMAIL PROTECTED]
for review :-)

Kris


pgp0.pgp
Description: PGP signature


HD problem, softupdates issue or nothing to be concerned?

2003-07-25 Thread Vladimir Kushnir
Hi,
Several times under heavy disk load (copy/delete large directories, the
last stage of CVS update) I got the messages like this last

free inode /usr/96318 had -765900 blocks
handle_workitem_freeblocks: block count

(with different inodes), and then during reboot something about mount
pending errors. After reboot fsck didn't show anything wrong, though.
Should I be concerned about my HD?

This is -CURRENT, with 60Gb IDE HD (WDC WD600JB) on an external CMD649
card.

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


Re: Defragment HDD

2003-07-25 Thread Dan Nelson
In the last episode (Jul 25), Jez Hancock said:
> On Thu, Jul 24, 2003 at 03:12:42PM -0500, Dan Nelson wrote:
> > I think he was joking :)  The FFS filesystem reserves 8% of the
> > disk space so that it can allocate contiguous blocks for files.  In
> > general, you don't have to worry about file fragmentation.  There
> > are no tools for optimizing the layout of a disk (putting files in
> > a directory next to each other on disk, for example) like SpeedDisk
> > does, though.
>
> Is this why occasionally a df call shows that a filesystem is over
> 100% full out of curiousity?

Yep.  When that happens, users cannot write anything until root removes
enough files to lower the freespace back below 100%.

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


Re: Defragment HDD

2003-07-25 Thread Jez Hancock
On Thu, Jul 24, 2003 at 03:12:42PM -0500, Dan Nelson wrote:
> I think he was joking :)  The FFS filesystem reserves 8% of the disk
> space so that it can allocate contiguous blocks for files.  In general,
> you don't have to worry about file fragmentation.  There are no tools
> for optimizing the layout of a disk (putting files in a directory next
> to each other on disk, for example) like SpeedDisk does, though.
Is this why occasionally a df call shows that a filesystem is over 100% 
full out of curiousity?
tuning
-- 
Jez

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


Fw: Problem with periodically done scripts

2003-07-25 Thread Peter Rosa
> Well, I have tried it. When I type exactly the same command
> awk -F: '$3==0 {print $1,$3}' /etc/master.passwd | tee /dev/stderr |
sed -e
> '/^root 0$/d' -e '/^toor 0$/d' | wc -l
> at prompt, it works well. So the error must be around [ -gt 0 -a -lt 1 ]
&&
> rc==1
>
> Of course, I *have* /etc/master.passwd.
>
> The whole /etc/security script follows:
> #!/bin/sh -
>
> PATH=/sbin:/bin:/usr/bin
> LC_ALL=C; export LC_ALL
> rc=0
> LOG=/var/log
> TMP=/var/run/_secure.$$
>
> separator () {
>  echo ''
>  echo ''
> }
>
> catmsgs() {
>  find $LOG -name 'messages.*' -mtime -2 |
>  sort -t. -r -n +1 -2 |
>  xargs zcat -f
>  [ -f $LOG/messages ] && cat $LOG/messages
> }
>
> sflag=FALSE ignore=
> while getopts ams c
> do
>  case "$c" in
>   a) ignore="$ignore|^amd:";;
>   m) ignore="$ignore|^mfs:";;
>   s) sflag=TRUE;;
>  esac
> done
>
> yesterday=`date -v-1d "+%b %e "`
>
> host=`hostname`
> [ $sflag = FALSE ] && echo "Subject: ${host} security check output"
>
> umask 027
>
> echo 'Checking setuid files and devices:'
>
> # Don't have ncheck, but this does the equivalent of the commented out
> block.
> # Note that one of the original problems, the possibility of overrunning
> # the args to ls, is still here...
> #
> MP=`mount -t ufs | grep -v " nosuid" | awk '{ print $3 }' | sort`
> set ${MP}
> while [ $# -ge 1 ]; do
>  mount=$1
>  shift
>  find $mount -xdev -type f \
>   \( -perm -u+x -or -perm -g+x -or -perm -o+x \) \
>   \( -perm -u+s -or -perm -g+s \) -print0
> done | xargs -0 -n 20 ls -liTd | sort +10 > ${TMP}
>
> if [ ! -f ${LOG}/setuid.today ]; then
>  [ $rc -lt 1 ] && rc=1
>  separator
>  echo "No ${LOG}/setuid.today"
>  cp ${TMP} ${LOG}/setuid.today || rc=3
> fi
>
> if ! cmp ${LOG}/setuid.today ${TMP} >/dev/null; then
>  [ $rc -lt 1 ] && rc=1
>  separator
>  echo "${host} setuid diffs:"
>  diff -w ${LOG}/setuid.today ${TMP}
>  mv ${LOG}/setuid.today ${LOG}/setuid.yesterday || rc=3
>  mv ${TMP} ${LOG}/setuid.today || rc=3
> fi
>
> # Show changes in the way filesystems are mounted
> #
> [ -n "$ignore" ] && cmd="egrep -v ${ignore#|}" || cmd=cat
> if mount -p | $cmd > $TMP; then
>  if [ ! -f $LOG/mount.today ]; then
>   [ $rc -lt 1 ] && rc=1
>   separator
>   echo "No $LOG/mount.today"
>   cp $TMP $LOG/mount.today || rc=3
>  fi
>  if ! cmp $LOG/mount.today $TMP >/dev/null 2>&1; then
>   [ $rc -lt 1 ] && rc=1
>   separator
>   echo "$host changes in mounted filesystems:"
>   diff -b $LOG/mount.today $TMP
>   mv $LOG/mount.today $LOG/mount.yesterday || rc=3
>   mv $TMP $LOG/mount.today || rc=3
>  fi
> fi
>
> separator
> echo 'Checking for uids of 0:'
> n=$(awk -F: '$3==0 {print $1,$3}' /etc/master.passwd |
> tee /dev/stderr |
> sed -e '/^root 0$/d' -e '/^toor 0$/d' |
> wc -l)
> [ $n -gt 0 -a $rc -lt 1 ] && rc=1
>
> separator
> echo 'Checking for passwordless accounts:'
> n=$(awk -F: 'NF > 1 && $1 !~ /^[#+-]/ && $2=="" {print $0}'
> /etc/master.passwd |
> tee /dev/stderr | wc -l)
> [ $n -gt 0 -a $rc -lt 1 ] && rc=1
>
> # Show denied packets
> #
> if ipfw -a l 2>/dev/null | egrep "deny|reset|unreach" > ${TMP}; then
>  if [ ! -f ${LOG}/ipfw.today ]; then
>   [ $rc -lt 1 ] && rc=1
>   separator
>   echo "No ${LOG}/ipfw.today"
>   cp ${TMP} ${LOG}/ipfw.today || rc=3
>  fi
>
>  if ! cmp ${LOG}/ipfw.today ${TMP} >/dev/null; then
>   [ $rc -lt 1 ] && rc=1
>   separator
>   echo "${host} denied packets:"
>   diff -b ${LOG}/ipfw.today ${TMP} | egrep "^>"
>   mv ${LOG}/ipfw.today ${LOG}/ipfw.yesterday || rc=3
>   mv ${TMP} ${LOG}/ipfw.today || rc=3
>  fi
> fi
>
> # Show ipfw rules which have reached the log limit
> #
> IPFW_LOG_LIMIT=`sysctl -n net.inet.ip.fw.verbose_limit 2> /dev/null`
> if [ $? -eq 0 -a "${IPFW_LOG_LIMIT}" -ne 0 ]; then
>  ipfw -a l | grep " log " | perl -n -e \
>   '/^\d+\s+(\d+)/; print if ($1 >= '$IPFW_LOG_LIMIT')' > ${TMP}
>  if [ -s "${TMP}" ]; then
>   [ $rc -lt 1 ] && rc=1
>   separator
>   echo 'ipfw log limit reached:'
>   cat ${TMP}
>  fi
> fi
>
> # Show kernel log messages
> #
> if dmesg 2>/dev/null > ${TMP}; then
>  if [ ! -f ${LOG}/dmesg.today ]; then
>   [ $rc -lt 1 ] && rc=1
>   separator
>   echo "No ${LOG}/dmesg.today"
>   cp ${TMP} ${LOG}/dmesg.today || rc=3
>  fi
>
>  if ! cmp ${LOG}/dmesg.today ${TMP} >/dev/null 2>&1; then
>   [ $rc -lt 1 ] && rc=1
>   separator
>   echo "${host} kernel log messages:"
>   diff -b ${LOG}/dmesg.today ${TMP} | egrep "^>"
>   mv ${LOG}/dmesg.today ${LOG}/dmesg.yesterday || rc=3
>   mv ${TMP} ${LOG}/dmesg.today || rc=3
>  fi
> fi
>
> # Show login failures
> #
> separator
> echo "${host} login failures:"
> n=$(catmsgs | grep -i "^$yesterday.*login failure" | tee /dev/stderr |
> wc -l)
> [ $n -gt 0 -a $rc -lt 1 ] && rc=1
>
> # Show tcp_wrapper warning messages
> #
> separator
> echo "${host} refused connections:"
> n=$(catmsgs | grep -i "^$yesterday.*refused connect" | tee /dev/stderr |
> wc -l)
> [ $n -gt 0 -a $rc -lt 1 ] && rc=1
>
> # Show denied secondary bind transfer attempts
> #
> separator
> echo "$host checking for denied seconda

Re: Postfix/receiving mail through router problem

2003-07-25 Thread Simon J Mudd
[EMAIL PROTECTED] (pat bey) writes:

> FreeBSD 4.8 Release  hijra.homeunix.com
> 
> Checking all the postfix conf files and everything seems to be in
> the right place.  Thou this is my first time setting up a mail
> server so it's a learning experience for me.  There are no errors in
> any of the log files anywhere. Telneting to port 143 and 25
> everything is working fine.

Postfix only listens on port 25 (as does every mail server).  Port 143
is for the imap server.

> So I figured it must be a problem with my router I think.  Checking
> maillog shows that mail is being queued coming in and I can send
> with no problem.

Show us the log files.  If mail comes in ok, and mail goes out ok then
I'm not sure what problem you have. [Where's it being queued?]

> Hope this is enough information. Always thanks for your time and
> consideration :)

Show the output of postconf -n (non default configuration items) and
tell us which version of Postfix you are using.

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


Re: Problem with periodically done scripts

2003-07-25 Thread Lowell Gilbert
"Peter Rosa" <[EMAIL PROTECTED]> writes:

> > > From: "Peter Rosa" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Cc: "freebsd-questions" <[EMAIL PROTECTED]>
> > > Sent: Friday, July 25, 2003 6:59 PM
> > > Subject: Re: Problem with periodically done scripts
> > >
> > >
> > > > Here is complete listing. Do you have any idea ?
> > > >
> > > > + echo Checking for uids of 0:
> > > > Checking for uids of 0:
> > > > + awk -F: $3==0 {print $1,$3} /etc/master.passwd
> > > > + tee /dev/stderr
> > > > root 0
> > > > toor 0
> > > > + sed -e /^root 0$/d -e /^toor 0$/d
> > > > + wc -l
> > > > + n=
> > > > + [ -gt 0 -a -lt 1 ]

'n' isn't getting set at all.  

Try the awk script by hand, and see what happens.  
[You do *have* an /etc/master.passwd, right?]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem with periodically done scripts

2003-07-25 Thread Lowell Gilbert
"Peter Rosa" <[EMAIL PROTECTED]> writes:

> It seems now, that my /etc/master.passwd is really broken.

How so?

> Have anybody an idea, how to recreate it ?

>From backups, of course.
Failing that, rebuild it one entry at a time; /usr/src/etc/master.passwd
is the original template.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Laptop keyboard maps wrong keys during install

2003-07-25 Thread Kirk Strauser
At 2003-07-25T20:44:33Z, Kirk Strauser <[EMAIL PROTECTED]> writes:

Just found the FAQ.  Never mind.
-- 
Kirk Strauser


pgp0.pgp
Description: PGP signature


Laptop keyboard maps wrong keys during install

2003-07-25 Thread Kirk Strauser
I'm attempting to install 4.8 on an old IBM 340CSE laptop.  I'm running into
a roadblock, though: although the keyboard works fine all the way through
the kernel configuration part at the beginning (moving around with arrow
keys, deleting modules, saving, etc.), the keymap seems to get corrupted as
soon as I get to the main menu.  That is, most keys don't work at all.  I
*think* that pressing "J" actually gets "Enter".  "K" gets "X" (I think).
No keycode seems to correspond to the key actually being pressed.

Again, the keyboard works perfectly *before* getting to the main menu, and
I've had Linux installed and running on it with no apparent idiosyncracies
before.  Any ideas of what might be going wrong?
-- 
Kirk Strauser


pgp0.pgp
Description: PGP signature


Re: Problem with periodically done scripts

2003-07-25 Thread Daniel Bye
On Fri, Jul 25, 2003 at 10:10:24PM +0200, Peter Rosa wrote:
> Yes, in /var/backups was 2 old copies of master.passwd. One from Feb 9,
> second from Feb 24 (the last time I changed something). I tried both, but
> problem persists.

Rats!  :-(

> Thank you, but have you still any idea?

No, I'm done now.  Sorry.  If it were a problem with awk, sed, tee or wc,
you would expect to see errors generated by any script that uses them, so it
seems not to be related to that.

Now might be a good time to backup all your data, and upgrade to 4.8, as was
discussed in your previous thread.  Not a solution, as such, but at least
you'll end up with a nice shiny new install to look after!

Good luck,

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgp0.pgp
Description: PGP signature


[RTFM response] Re: o uid

2003-07-25 Thread Lowell Gilbert
Leonard Zettel <[EMAIL PROTECTED]> writes:

> Nestled among the messages on startup I am getting something
> like the following:
> 0 uids:
> root # (which I expect)
> toor # (which I didn't)
> 
> Is toor something to worry about? If not, any idea where
> it came from?

This is a FAQ, and has already been answered for your convenience.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/security.html#TOOR-ACCOUNT
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem with periodically done scripts

2003-07-25 Thread Peter Rosa
Yes, in /var/backups was 2 old copies of master.passwd. One from Feb 9,
second from Feb 24 (the last time I changed something). I tried both, but
problem persists.

Thank you, but have you still any idea?

Peter Rosa


- Original Message -
From: "Daniel Bye" <[EMAIL PROTECTED]>
To: "freebsd-questions" <[EMAIL PROTECTED]>
Sent: Friday, July 25, 2003 9:51 PM
Subject: Re: Problem with periodically done scripts


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


Problem with NVIDIA drivers

2003-07-25 Thread Marc LeMaire
Hello,
I've installed the nvidia drivers from the ports. I've followed the 
instructions, and all the files are in their directory. But when I'm 
trying to start X, the machine crash and reboot. I've looked into the 
archives to see if someone had this problem but they are presently 
unavailable.

p.s.: Could it be possible that this line that I received everytime that 
I fired up X be the culprit ?
"bad display name "gryphon.krockmitaine.org:0" in "remove" command. How 
can I correct this ?

This is a fresh install, 4.8, with the latest cvsup. Also, the equipment 
is a GeForce 256 with a ViewSonic E790. I've included my XF86Config and 
the config file for my kernel.

Thanks in advance

Marc
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen  0  "Screen0" 0 0
InputDevice"Mouse0" "CorePointer"
InputDevice"Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath  "/usr/X11R6/lib/X11/rgb"
ModulePath   "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load  "dbe"
Load  "dri"
Load  "extmod"
Load  "glx"
Load  "record"
Load  "xtrap"
Load  "speedo"
Load  "type1"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver  "keyboard"
Option  "XkbRules" "xfree86"
Option  "XkbModel" "pc101"
Option  "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver  "mouse"
Option  "Protocol" "Auto"
Option  "Device" "/dev/sysmouse"
Option  "Buttons" "5"
Option  "ZAxisMapping" "4 5"
EndSection

Section "Monitor"

#DisplaySize  360   270 # mm
Identifier   "Mon Moniteur"
VendorName   "VSC"
ModelName"E790-3"
HorizSync30.0 - 95.0
VertRefresh  50.0 - 160.0
Option  "DPMS"
EndSection

Section "Device"

### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz"
### [arg]: arg optional
#Option "SWcursor"  # []
#Option "HWcursor"  # []
#Option "NoAccel"   # []
#Option "ShowCache" # []
#Option "ShadowFB"  # []
#Option "UseFBDev"  # []
#Option "Rotate"# []
#Option "VideoKey"  # 
#Option "FlatPanel" # []
#Option "FPDither"  # []
#Option "CrtcNumber"# 
Identifier  "Ma Carte"
Driver  "nvidia"
VendorName  "nVidia Corporation"
BoardName   "NV10 [GeForce 256 SDR]"
#ChipSet "GeForce 256"
BusID   "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Ma Carte"
Monitor"Mon Moniteur"
DefaultDepth 24
SubSection "Display"
Depth 1
Virtual 1152 864
Virtual 1024 768
EndSubSection
SubSection "Display"
Depth 4
Virtual 1152 864
Virtual 1024 768
EndSubSection
SubSection "Display"
Depth 8
Virtual 1152 864
Virtual 1024 768
EndSubSection
SubSection "Display"
Depth 15
Virtual 1152 864
Virtual 1024 768
EndSubSection
SubSection "Display"
Depth 16
Virtual 1152 864
Virtual 1024 768
EndSubSection
SubSection "Display"
Depth 24
Virtual 1152 864
Virtual 1024 768
EndSubSection
EndSection

#
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ./LINT configuration file. If you are
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.51.2.2 2003/03/25 23:35:15 jhb Exp $

machine   

Re: Problem with periodically done scripts

2003-07-25 Thread Daniel Bye
On Fri, Jul 25, 2003 at 10:28:30PM +0300, Vitali Malicky wrote:
> 
> 
> > It seems now, that my /etc/master.passwd is really broken.
> > Have anybody an idea, how to recreate it ?
> 
> if you have a backup in /var/backups then you might extricate yourself of
> the situation. but there are backups only for two days...

I thought it was two edits' worth of backups?  As long as Peter hasn't made
more than two edits on the master file since the problem first occurred, he
should be OK.

Peter - if the backup copies were made before you first noticed the problem,
I think you can copy one of them back to /etc/master.passwd (but make a copy
of the current one first!) and run `vipw' to rebuild the database.

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgp0.pgp
Description: PGP signature


Re: Problem with periodically done scripts

2003-07-25 Thread Peter Rosa
Impossible to do. It continues from April 20... :-(((


Peter Rosa


- Original Message -
From: "Dan Nelson" <[EMAIL PROTECTED]>
To: "Peter Rosa" <[EMAIL PROTECTED]>
Cc: "freebsd-questions" <[EMAIL PROTECTED]>
Sent: Friday, July 25, 2003 9:28 PM
Subject: Re: Problem with periodically done scripts


> In the last episode (Jul 25), Peter Rosa said:
> > It seems now, that my /etc/master.passwd is really broken.
> > Have anybody an idea, how to recreate it ?
>
> Your last 2 previous versions should be in /var/backups.
>
> --
> Dan Nelson
> [EMAIL PROTECTED]
> ___
> [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: Writing to parallel port

2003-07-25 Thread Mark
- Original Message - 
From: "Daan Vreeken [PA4DAN]" <[EMAIL PROTECTED]>
To: "Mark" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 25, 2003 7:41 PM
Subject: Re: Writing to parallel port


> On Friday 25 July 2003 19:22, Mark wrote:
> > Hello,
> >
> > Has anyone an idea how to set/unset a bit on a parallel port in
> > freebsd 4.7? I installed Device::ParallelPort from CPAN
> > (Perl 5.8.0), but that does nothing (seems made for linux).
> >
> > Or if someone could point me to a little c-source, that would be
> > helpful too; all I need is to toggle a bit to switch a relay.

> Have a look at this piece of code if wrote :
> http://vitsch.net/cgi-bin/gpl/cat.cgi/lampd/v1.0?lampd.c
> It's a very small udp network daemon to control my roomlights over the
> LAN.
>
> Basically you need to open /dev/io to get io read/write permission,
> after that you are free to bang all IO-ports you want.


Thank you! :) Opening /dev/io did the trick.

- Mark

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


Re: Problem with periodically done scripts

2003-07-25 Thread Vitali Malicky


> It seems now, that my /etc/master.passwd is really broken.
> Have anybody an idea, how to recreate it ?

if you have a backup in /var/backups then you might extricate yourself of
the situation. but there are backups only for two days...

>
> Pls, help.
>
> Peter Rosa
>
> ___
> [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: Problem with periodically done scripts

2003-07-25 Thread Dan Nelson
In the last episode (Jul 25), Peter Rosa said:
> It seems now, that my /etc/master.passwd is really broken.
> Have anybody an idea, how to recreate it ?

Your last 2 previous versions should be in /var/backups. 

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


Re: Problem with periodically done scripts

2003-07-25 Thread Peter Rosa
It seems now, that my /etc/master.passwd is really broken.
Have anybody an idea, how to recreate it ?

Pls, help.

Peter Rosa

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


kernel panic with ? List valid disk boot devices, even tho the diskis listed?

2003-07-25 Thread Jaye Mathisen


Trying to boot from a CF card.

Kernel loads, but root mount fails.

Nothing I try at the "mountroot>" prompt seems to work.

pccard: card inserted, slot 0
pccard: card removed, slot 0
IPsec: Initialized Security Association Processing.
ad0: 122MB  [980/8/32] at ata0-master BIOSPIO
Mounting root from ufs:/dev/ad0s1a
Root mount failed: 6

Manual root filesystem specification:
  :  Mount  using filesystem 
   eg. ufs:/dev/da0s1a
  ?  List valid disk boot devices
 Abort manual input

mountroot> ?
panic: Root mount failed, startup aborted.

syncing disks... 
done
Uptime: 3s


This is with 4.8-stable, supped as of last night.

Thanks for any advice.

A disklabel -r shows the partitions as being there...

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


Re: Problem with periodically done scripts

2003-07-25 Thread Peter Rosa
It is doing xactly the same as my scripts (unexpected operator).

Everything gone well until April 20. Scripts my machine use are from
standard FBSD installation, so why they are not working now ?

Peter Rosa


- Original Message -
From: "Vitali Malicky" <[EMAIL PROTECTED]>
To: "freebsd-questions" <[EMAIL PROTECTED]>
Sent: Friday, July 25, 2003 8:52 PM
Subject: Re: Problem with periodically done scripts


>
>
> > I'm asking again, as there is no response up now.
>
> You forgot to say "please", sir...  8-|
>
> >
> > As for me, now it seems as I don't know what's the error here, I
have
> > never seen that listings (using -x switch).
>
> try my scripts, I never have any problems with them, so don't even
understan
> what you're about...
>
> 300.chkuid0
> =
> #!/bin/sh -
> if [ -r /etc/defaults/periodic.conf ]
> then
> . /etc/defaults/periodic.conf
> source_periodic_confs
> fi
>
> case "$daily_status_security_chkuid0_enable" in
> [Yy][Ee][Ss])
> echo ""
> echo 'Checking for uids of 0:'
> n=$(awk -F: '/^#/ {next} $3==0 {print $1,$3}' /etc/master.passwd |
> tee /dev/stderr |
> sed -e '/^root 0$/d' -e '/^toor 0$/d' |
> wc -l)
> [ $n -gt 0 ] && rc=1 || rc=0;;
> *)  rc=0;;
> 
>
> 400.passwdless
> 
> #!/bin/sh -
> if [ -r /etc/defaults/periodic.conf ]
> then
> . /etc/defaults/periodic.conf
> source_periodic_confs
> fi
>
> case "$daily_status_security_passwdless_enable" in
> [Yy][Ee][Ss])
> echo ""
> echo 'Checking for passwordless accounts:'
> n=$(awk -F: 'NF > 1 && $1 !~ /^[#+-]/ && $2=="" {print $0}'
> /etc/master.passwd |
> tee /dev/stderr | wc -l)
> [ $n -gt 0 ] && rc=1 || rc=0;;
> *)  rc=0;;
> esac
>
> exit "$rc"
>
>
> ===
>
>
>
>
> >
> > Peter Rosa
> >
> >
> >
> > - Original Message -
> > From: "Peter Rosa" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Cc: "freebsd-questions" <[EMAIL PROTECTED]>
> > Sent: Friday, July 25, 2003 6:59 PM
> > Subject: Re: Problem with periodically done scripts
> >
> >
> > > Here is complete listing. Do you have any idea ?
> > >
> > > + echo Checking for uids of 0:
> > > Checking for uids of 0:
> > > + awk -F: $3==0 {print $1,$3} /etc/master.passwd
> > > + tee /dev/stderr
> > > root 0
> > > toor 0
> > > + sed -e /^root 0$/d -e /^toor 0$/d
> > > + wc -l
> > > + n=
> > > + [ -gt 0 -a -lt 1 ]
> > > [: 0: unexpected operator
> > > + echo Checking for passwordless accounts:
> > > Checking for passwordless accounts:
> > > + awk -F: NF > 1 && $1 !~ /^[#+-]/ && $2=="" {print $0}
> /etc/master.passwd
> > > + tee /dev/stderr
> > > + wc -l
> > > + n=
> > > + [ -gt 0 -a -lt 1 ]
> > > [: 0: unexpected operator
> > >
> > >
> > > Peter Rosa
> >
> > ___
> > [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]"
>

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


dri falling back to software in 4.8-stable

2003-07-25 Thread lreid
I've been noticing that GL performance has been really awful on my system lately, so I 
did some digging around. Here's a glxinfo:

name of display: :0.0
libGL error: 
Radeon DRI driver expected DRM driver version 1.3.x or newer but got version 1.1.1
libGL error: InitDriver failed
display: :0  screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp, 
GL_ARB_texture_cube_map, GL_ARB_texture_env_add, 
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3, 
GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color, 
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add, 
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, 
GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

Now, the drm driver works correctly, and the radeon drier is loading fine. After 
turning on verbose debugging output in the libGL library, I get this:

libGL error: 
Radeon DRI driver expected DRM driver version 1.3.x or newer but got version 1.1.1
libGL error: InitDriver failed

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


Re: Problem with periodically done scripts

2003-07-25 Thread Peter Rosa
> > I'm asking again, as there is no response up now.
> 
> You forgot to say "please", sir...  8-|
> 

Sorry, sorry and one more sorry.
You know, I'm currently about 14 hours at work

SoP L E A S E


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


Re: What version of BSD should I use

2003-07-25 Thread David Benfell
On Fri, 25 Jul 2003 14:00:47 -0500, george donnelly wrote:
> [David Benfell wrote ([EMAIL PROTECTED]) on 7/25/03 12:44 PM]
> 
> > It does other things as well.  A starting place for more information
> > would be http://www.djbdns.org/
> 
> actually that's now http://www.tinydns.org/ now.
> 
My bad.  djbdns.org doesn't even work anymore.

Thanks George.

-- 
David Benfell, LCP
[EMAIL PROTECTED]
---
Resume available at http://www.parts-unknown.org/resume.html


pgp0.pgp
Description: PGP signature


Re: What version of BSD should I use

2003-07-25 Thread george donnelly
[Lucas Holt wrote ([EMAIL PROTECTED]) on 7/25/03 1:03 PM]

> Some days i dream of a mail server that integrates smtp, pop and imap
> into one server that is easy to configure with built in spam filtering.
> (oh and it has to work).  Then I realize I'm stuck with 6 different
> programs to handle essentially 1 service (user perspective).  All well,
> beats Exchange or imail.

such a program would be a sendmail-like monster and would violate the
principal of modularity.

<-->
george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting"
Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites
Yahoo, AIM: zettainet ~ MSN: [EMAIL PROTECTED] ~ ICQ: 51907738

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


Re: What version of BSD should I use

2003-07-25 Thread george donnelly
[David Benfell wrote ([EMAIL PROTECTED]) on 7/25/03 12:44 PM]

> It does other things as well.  A starting place for more information
> would be http://www.djbdns.org/

actually that's now http://www.tinydns.org/ now.

<-->
george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting"
Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites
Yahoo, AIM: zettainet ~ MSN: [EMAIL PROTECTED] ~ ICQ: 51907738

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


Re: Problem with periodically done scripts

2003-07-25 Thread Vitali Malicky


> I'm asking again, as there is no response up now.

You forgot to say "please", sir...  8-|

>
> As for me, now it seems as I don't know what's the error here, I have
> never seen that listings (using -x switch).

try my scripts, I never have any problems with them, so don't even understan
what you're about...

300.chkuid0
=
#!/bin/sh -
if [ -r /etc/defaults/periodic.conf ]
then
. /etc/defaults/periodic.conf
source_periodic_confs
fi

case "$daily_status_security_chkuid0_enable" in
[Yy][Ee][Ss])
echo ""
echo 'Checking for uids of 0:'
n=$(awk -F: '/^#/ {next} $3==0 {print $1,$3}' /etc/master.passwd |
tee /dev/stderr |
sed -e '/^root 0$/d' -e '/^toor 0$/d' |
wc -l)
[ $n -gt 0 ] && rc=1 || rc=0;;
*)  rc=0;;


400.passwdless

#!/bin/sh -
if [ -r /etc/defaults/periodic.conf ]
then
. /etc/defaults/periodic.conf
source_periodic_confs
fi

case "$daily_status_security_passwdless_enable" in
[Yy][Ee][Ss])
echo ""
echo 'Checking for passwordless accounts:'
n=$(awk -F: 'NF > 1 && $1 !~ /^[#+-]/ && $2=="" {print $0}'
/etc/master.passwd |
tee /dev/stderr | wc -l)
[ $n -gt 0 ] && rc=1 || rc=0;;
*)  rc=0;;
esac

exit "$rc"


===




>
> Peter Rosa
>
>
>
> - Original Message -
> From: "Peter Rosa" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: "freebsd-questions" <[EMAIL PROTECTED]>
> Sent: Friday, July 25, 2003 6:59 PM
> Subject: Re: Problem with periodically done scripts
>
>
> > Here is complete listing. Do you have any idea ?
> >
> > + echo Checking for uids of 0:
> > Checking for uids of 0:
> > + awk -F: $3==0 {print $1,$3} /etc/master.passwd
> > + tee /dev/stderr
> > root 0
> > toor 0
> > + sed -e /^root 0$/d -e /^toor 0$/d
> > + wc -l
> > + n=
> > + [ -gt 0 -a -lt 1 ]
> > [: 0: unexpected operator
> > + echo Checking for passwordless accounts:
> > Checking for passwordless accounts:
> > + awk -F: NF > 1 && $1 !~ /^[#+-]/ && $2=="" {print $0}
/etc/master.passwd
> > + tee /dev/stderr
> > + wc -l
> > + n=
> > + [ -gt 0 -a -lt 1 ]
> > [: 0: unexpected operator
> >
> >
> > Peter Rosa
>
> ___
> [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:

2003-07-25 Thread Shawn
On Fri, 2003-07-25 at 12:53, Per Nilsson wrote:
> Hi..
> My name is Per, and I have a problem. I wanna use my p3 2,4 as workstation 
> running under FreeBSD 5.1, but I cant get my videocard working.. The card 
> type is : ATI radeon 9700 TX

Could you be more specific or post the contents of your XFree86 log
somewhere?

You should be using XFree86 4.3.0 if you want the 9700 to work.
You should also be using the "radeon" driver.
In my case, I also had to override the chipid using:

Section "Device"
Identifier  "Radeon 9800 Pro"
Driver  "radeon"
VideoRam131072
ChipID  0x4e46
# ChipRev
# Insert Clocks lines here if appropriate
EndSection

-- 
Shawn <[EMAIL PROTECTED]>
http://drevil.warpcore.org/

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


Fw: Problem with periodically done scripts

2003-07-25 Thread Peter Rosa
I'm asking again, as there is no response up now.

As for me, now it seems as I don't know what's the error here, I have
never seen that listings (using -x switch).

Peter Rosa



- Original Message -
From: "Peter Rosa" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "freebsd-questions" <[EMAIL PROTECTED]>
Sent: Friday, July 25, 2003 6:59 PM
Subject: Re: Problem with periodically done scripts


> Here is complete listing. Do you have any idea ?
>
> + echo Checking for uids of 0:
> Checking for uids of 0:
> + awk -F: $3==0 {print $1,$3} /etc/master.passwd
> + tee /dev/stderr
> root 0
> toor 0
> + sed -e /^root 0$/d -e /^toor 0$/d
> + wc -l
> + n=
> + [ -gt 0 -a -lt 1 ]
> [: 0: unexpected operator
> + echo Checking for passwordless accounts:
> Checking for passwordless accounts:
> + awk -F: NF > 1 && $1 !~ /^[#+-]/ && $2=="" {print $0} /etc/master.passwd
> + tee /dev/stderr
> + wc -l
> + n=
> + [ -gt 0 -a -lt 1 ]
> [: 0: unexpected operator
>
>
> Peter Rosa

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


Re: What version of BSD should I use

2003-07-25 Thread David Benfell
On Fri, 25 Jul 2003 19:54:15 +0200, Peter Rosa wrote:
> >> And what should I do with my new book 
> >> (900 pages about configuring this mega program) ?
> >
> >900 pages about configuring which mega program?
> 
> Of course, it is about sendmail.
> 
To my knowledge, the only reason for using sendmail is that so many
people have used it for so long.  As others have noted, the
configuration is horrible and it has a disastrous security history.

My experience with sendmail is that every time I wind up using it, it
soon starts misbehaving.

I know some people who like postfix.  I like qmail.  I don't know
anyone who actually chooses sendmail -- it's just part of the package
they get when they install an operating system.

And, obviously, there are people out there who have successfully used
Sendmail for (seems like) decades.  There are also, obviously, people
who manage to avoid mucking up its configuration and breaking it.  I
happen not to fall into either of these categories.

Given the security history and configuration difficulties, I don't
know how anyone can argue that sendmail is a reliable and safe tool,
except perhaps in the hands of a rather expensive expert.  I also
don't know anyone who considers it particularly efficient.

So I don't know why anyone would choose sendmail.

-- 
David Benfell, LCP
[EMAIL PROTECTED]
---
Resume available at http://www.parts-unknown.org/resume.html


pgp0.pgp
Description: PGP signature


RE: DVD/CD-RW not recognized (was: Re:)

2003-07-25 Thread Fierman
On Fri, 2003-07-25 at 16:48, Joshua Lokken wrote:

> >
> > this problem sounds like the exact one as i am having, (see
> > my mail to
> > this list:
> >
> >   Subject:
> > ATA identify retries exceeded
> > (still!)
> >  Date:
> > 24 Jul 2003 23:59:57 +
> >
> >
> > jumpersettings are all ok, no possible signs of hardware
> > itself being faulty.
> > dmesg :
> 
> > ata0: at 0x1f0 irq 14 on atapci0
> > ata1: at 0x170 irq 15 on atapci0
> > ata0-slave: ATA identify retries exceeded
> > ad0: 38172MB  [77557/16/63] at ata0-master UDMA33
> > Mounting root from ufs:/dev/ad0s1a
> 
> 
> ???  Except that the board won't detect it?  I think, if you've
> checked
> cables and jumpers (and they're proper), that the likely possibility
> is
> hardware damage.  I don't know whether or not the drive is new, but
> new certainly doesn't equal good.  Maybe at least consider it.  If you
> can find another drive to test, try that.  HTH,
> 
> Joshua
> 

dont know if you didn't send this mail to the list intentionally, but
thanx for the reply anyway :)

yes, like I said in my previous mail to this list as well, I DID try
other DVD players.. all with the same result. Also, the POST never gives
any error message, as I suppose it should do with broken hardware.

there are 2 possible solutions in my mind:
1. ATA driver is still somewhat broken,
2. There should be a way to adjust the time-out in the authentification
routine in the ATA driver (if there is any, that is). 


cheers, Fierman


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


Re: Crash with bpf

2003-07-25 Thread Lowell Gilbert
Andrea Venturoli <[EMAIL PROTECTED]> writes:

> The problem has started to show after an upgrade to 4.6 or 4.7 I believe (but I 
> cannot recall exactly).
> I might as well try an upgrade to 4.8, but I'd rather have more insight.

It's more work to try to track the problem if you're using different
code than (for example, I am on my) system, so upgrading is a help to
the person trying to track it.

I don't have enough time to go into this in depth, but see if the
problem is affected by increasing the number of mbufs.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mod_perl

2003-07-25 Thread Lowell Gilbert
Andy Harrison <[EMAIL PROTECTED]> writes:

> I'd like to install mod_perl from ports on freebsd, but even if I do something
> as simple as 'make extract' it complains:
> 
> Error: you don't have the right version of perl in /usr/bin.
> 
> This is correct, I want to install it against the version of perl in
> /usr/local/bin *not* against the version in /usr/bin.
> 
> Any advice?
> 
> I cannot use the 'use.perl' script because that takes over the /usr/bin/perl
> binary which I must leave untouched.

So use use.perl temporarily, and make sure you specify full paths
later.  [I *think* that will work...]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: DVD/CD-RW not recognized (was: Re:)

2003-07-25 Thread Mica Telodico
Yes , your message is identical to mine .
 
And the dmesg is also similar too ( but the drives are
different)

What is your HW? (CPU , MoBo and drive with problems) 

Bye

Marcello


--- Fierman <[EMAIL PROTECTED]> ha scritto: > On Fri,
2003-07-25 at 15:03, Volker Kindermann
> wrote:
> > > ACD0 is only the DVD , CD-RW (a Liteon 52x 24x
> 52x)
> > > isn't found at all!! Literally from DMESG:
> > > 
> > > ata0-slave: ATA identify retries excedeed
> > > 
> > > and sometimes it doesn't find my DVD too , with
> the
> > > message :
> > > 
> > > ata1-slave: ATA identify retries excedeed
> > > 
> > > so, I'm without CD and DVD :cry:
> > > 
> > > What I can do??
> > 
> > first, you should check if the jumpers on all (!)
> ATA devices are set
> > correctly:
> > 
> > Set the masters to "master" and the DVD and CDRW
> to "slave" (not
> > cable-select).
> > 
> > If that doesn't help, check the cables. Perhaps
> you have some spare
> > cables and you can change them.
> > 
> > If that doesn't help, provide us with your
> complete dmesg.
> >  -volker
> > ___
> 
> this problem sounds like the exact one as i am
> having, (see my mail to
> this list:
> 
>   Subject: 
> ATA identify retries exceeded
> (still!)
>  Date: 
> 24 Jul 2003 23:59:57 +
> 
> 
> jumpersettings are all ok, no possible signs of
> hardware itself being
> faulty.
> 
> dmesg :
> 
> Copyright (c) 1992-2003 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989,
> 1991, 1992, 1993, 1994
> The Regents of the University of California.
> All rights
> reserved.
> FreeBSD 4.8-STABLE #0: Wed Jul  9 15:27:44 CEST 2003
>
>
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/kernel100703
> Timecounter "i8254"  frequency 1193182 Hz
> CPU: Intel Celeron (1002.28-MHz 686-class CPU)
>   Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
>  
>
Features=0x383f9ff
> real memory  = 133169152 (130048K bytes)
> config> di bt0
> config> di aic0
> config> di aha0
> config> di adv0
> config> q
> avail memory = 123887616 (120984K bytes)
> Preloaded elf kernel "kernel" at 0xc058f000.
> Preloaded userconfig_script "/boot/kernel.conf" at
> 0xc058f09c.
> Pentium Pro MTRR support enabled
> md0: Malloc disk
> Using $PIR table, 4 entries at 0xc00fdf30
> npx0:  on motherboard
> npx0: INT 16 interface
> pcib0:  bridge> on motherboard
> pci0:  on pcib0
> agp0: 
> mem
> 0xd600-0xd607,0xd000-0xd3ff irq 11
> at device 1.0 on pci0
> pcib1:  at
> device 30.0 on pci0
> pci1:  on pcib1
> sis0:  port 0xc000-0xc0ff mem
> 0xd500-0xd5000fff irq 11 at device 4.0 on pci1
> sis0: Ethernet address: 00:d0:09:84:d3:2c
> miibus0:  on sis0
> ukphy0:  on
> miibus0
> ukphy0:  10baseT, 10baseT-FDX, 100baseTX,
> 100baseTX-FDX, auto
> pcm0:  port 0xc400-0xc4ff irq 10 at
> device 5.0 on pci1
> pci1:  (vendor=0x13f6, dev=0x0211) at
> 5.1 irq 3
> isab0:  at
> device 31.0 on pci0
> isa0:  on isab0
> atapci0:  port
> 0xf000-0xf00f at device 31.1
> on pci0
> ata0: at 0x1f0 irq 14 on atapci0
> ata1: at 0x170 irq 15 on atapci0
> uhci0:  port
> 0xd000-0xd01f irq 4 at
> device 31.2 on pci0
> usb0:  on uhci0
> usb0: USB revision 1.0
> uhub0: Intel UHCI root hub, class 9/0, rev
> 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> orm0:  at iomem
> 0xc-0xc9fff,0xcc000-0xc on isa0
> fdc0:  at port
> 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on
> isa0
> fdc0: FIFO enabled, 8 bytes threshold
> fd0: <1440-KB 3.5" drive> on fdc0 drive 0
> atkbdc0:  at port
> 0x60,0x64 on isa0
> atkbd0:  flags 0x1 irq 1 on atkbdc0
> kbd0 at atkbd0
> psm0:  irq 12 on atkbdc0
> psm0: model Generic PS/2 mouse, device ID 0
> vga0:  at port 0x3c0-0x3df iomem
> 0xa-0xb on
> isa0
> sc0:  at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=0x300>
> sio0: configured irq 4 not in bitmap of probed irqs
> 0
> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
> sio0: type 8250
> sio1: configured irq 3 not in bitmap of probed irqs
> 0
> ppc0:  at port 0x378-0x37f irq 7 on
> isa0
> ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE
> mode
> ppc0: FIFO with 16/16/16 bytes threshold
> plip0:  on ppbus0
> lpt0:  on ppbus0
> lpt0: Interrupt-driven port
> ppi0:  on ppbus0
> ata0-slave: ATA identify retries exceeded
> ad0: 38172MB  [77557/16/63] at
> ata0-master UDMA33
> Mounting root from ufs:/dev/ad0s1a
> 
> 
> 
> thnx in advance, 
> fierman
> 
> 
> 
> ___
> [EMAIL PROTECTED] mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]" 

__
Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il filtro 
Anti-spam
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMA

Re: udp packets dropping

2003-07-25 Thread Vitali Malicky
> Hello,
Hi.

try to assign sysctl vars like mine...

net.local.dgram.maxdgram=4096
net.local.dgram.recvspace=8192
net.inet.udp.maxdgram=9216
net.inet.udp.recvspace=41600
net.inet.raw.maxdgram=32767
net.inet.raw.recvspace=16384
net.inet.udp.log_in_vain=1

check if you netcard works in full duplex (though i think is's a stupid
remark of mine... ;)),
try to rebuild the kernel and add extra network buffering. with extra
buffering it all might work much better.

sorry if I was of no help...

--
Error Code=-1 Continue?
  Yes | No
--




>
> I have a DNS server with a lot of traffic. After just a couple of
> minutes of resetting the netstat -s counters, I get the following output:
>
>  130670 datagrams received
>  0 with incomplete header
>  0 with bad data length field
>  1 with bad checksum
>  30 with no checksum
>  0 dropped due to no socket
>  12 broadcast/multicast datagrams dropped due to no socket
>  4226 dropped due to full socket buffers
>  0 not for hashed pcb
>  126431 delivered
>  136753 datagrams output
>
> As time goes by, the "dropped due to full socket buffers" number goes up.
>
> I have increased the sysctl variable net.inet.udp.recvspace to 10,

I don't think I might solve the problem...


> up from about 4. This did not make any difference, the number goes
> up with time.
>
> The server is running FreeBSD 4.6 RELEASE with Bind 9.2.2.
>
> I went through the newsgroups and did not find any solutions to this
> problem.
>
> Any help will be greatly appreciated.
>
> Arie Kachler
> SysAdmin/Telcom.Net
>
>
>
> ___
> [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: problems do configure monitor in my notebook

2003-07-25 Thread Lowell Gilbert
"EDISON PIGNATON DE FREITAS" <[EMAIL PROTECTED]> writes:

> XF86Config, and after in text mode with the vi. I think that the
> problem is with
> the is the configuration of the monitor, in the horizsync and vertRefresh
> parameters I tryed many confs that I found in the internet... h:

You need to use parameters that are correct *for*your*display*.
If you can't get those from the manufacturer (often you can't, 
with laptops), then you should try to find a setting that
someone uses with similar laptop...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Dynamic Hostname Assignment

2003-07-25 Thread Kenneth Culver
> The standard dhclient-script sets the hostname. At least, it sure
> *looks* like it does... [line 97 of
> src/contrib/isc-dhcp/client/scripts/freebsd,v 1.9.2.6]

OK, yeah, it does, so there must be some other configuration that needs to
be done.

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


Re: trouble installing

2003-07-25 Thread Lowell Gilbert
Ted Unangst <[EMAIL PROTECTED]> writes:

> I tried to install FreeBSD 5.1 today, and ran into several issues.

Please bear in mind that it is a bleeding-edge release.
http://www.freebsd.org/releases/5.1R/early-adopter.html

> 1.  why do i need to create a swap partition?  (i can deal with it, just a
> little extra aggravation.)

You shouldn't need to; certainly I don't remember needing to on
earlier releases, although it will go "boom" pretty decisively if the
install does run out of virtual memory.

> 2.  why does sysinstall pick disklabel values that clearly can't work?

Those are the values that typically do work...

> 3.  why is there no /dev/ad0s2b node?  how do i create it, since i
> need a swap partition?

That's in the partitioning step.

> 4.  what do i enter into the file system box?  the DOS partition isn't
> mounted, and i have no idea how to mount it.

Hmm.  I don't have a system I can currently use to play with 5.x, so I
can't really tell...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: What version of BSD should I use

2003-07-25 Thread Lucas Holt
lol.

Sendmail configuration is terrible.

Some days i dream of a mail server that integrates smtp, pop and imap 
into one server that is easy to configure with built in spam filtering. 
 (oh and it has to work).  Then I realize I'm stuck with 6 different 
programs to handle essentially 1 service (user perspective).  All well, 
beats Exchange or imail.

On Friday, July 25, 2003, at 01:54  PM, Peter Rosa wrote:

And what should I do with my new book
(900 pages about configuring this mega program) ?
900 pages about configuring which mega program?
Of course, it is about sendmail.

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


Lucas Holt
[EMAIL PROTECTED]

FoolishGames.com  (Jewel Fan Site)
JustJournal.com (Free blogging)
"Only two things are infinite, the universe and human stupidity, and 
I'm not sure about the former."
- Albert Einstein (1879-1955)

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


Re: Virus Scanners

2003-07-25 Thread Jeremy Gaddis
On Fri, 2003-07-25 at 06:38, Johan Paul wrote:

> It just seems that I don't have that file and the latest version in 
> ports for FreeBSD 4.8 of clamav is 0.54. Damn. Any ideas how I can 
> install version 0.60 the smartest way on my 4.8 box? :)

cvsup your ports tree and install it?

j.

-- 
Jeremy L. Gaddis   <[EMAIL PROTECTED]>   

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


Re: What version of BSD should I use

2003-07-25 Thread Peter Rosa
>> And what should I do with my new book 
>> (900 pages about configuring this mega program) ?
>
>900 pages about configuring which mega program?

Of course, it is about sendmail.

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


Re: What version of BSD should I use

2003-07-25 Thread Lucas Holt
When I posted earlier, I was referring to bind 9.  It is a complete 
rewrite..

bind 4 was terrible.

As for sendmail, from my understanding the biggest problem in the past 
was that the entire thing ran as root.  Didn't they setup the delivery 
agent in 8.12 to run as a different user with lower privileges?

Lucas Holt
[EMAIL PROTECTED]

FoolishGames.com  (Jewel Fan Site)
JustJournal.com (Free blogging)
"Only two things are infinite, the universe and human stupidity, and 
I'm not sure about the former."
- Albert Einstein (1879-1955)

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


[no subject]

2003-07-25 Thread Per Nilsson
Hi..
My name is Per, and I have a problem. I wanna use my p3 2,4 as workstation 
running under FreeBSD 5.1, but I cant get my videocard working.. The card 
type is : ATI radeon 9700 TX

I was wondering if the 5.1 release do not support it, or if i have done 
something wrong.. please help!!

// Per Nilsson

_
Hitta rätt köpare på MSN Köp & Sälj http://www.msn.se/koposalj
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Dynamic Hostname Assignment

2003-07-25 Thread Lowell Gilbert
Kenneth Culver <[EMAIL PROTECTED]> writes:

> Like I said before, you might want to look around in redhat's dhcp
> scripts. If I understand correctly, dhclient calls a script that does the
> actual ifconfig, etc... FreeBSD's probably doesn't use set the hostname
> from the script, while redhat does.

The standard dhclient-script sets the hostname.
At least, it sure *looks* like it does...
[line 97 of src/contrib/isc-dhcp/client/scripts/freebsd,v 1.9.2.6]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: What version of BSD should I use

2003-07-25 Thread Kenneth Culver
> > Well, but what about djbdns ?
> > Is it fully compatible with BIND ?
> > I think it is, as you use it :-)
> > I have never heard about it.
>
>
> no, try powerdns instead :)

Depends on what he means by compatible. I took this to mean "will it
communicate with bind servers" and the answer is "yes it can be configured
to." Configuration is nothing like bind, which I find is one of its
strengths.

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


Re: What version of BSD should I use

2003-07-25 Thread David Benfell
On Fri, 25 Jul 2003 19:06:50 +0200, Peter Rosa wrote:
> Well, but what about djbdns ?
> Is it fully compatible with BIND ?
> I think it is, as you use it :-)
> I have never heard about it.
> 
djbdns does two things which may be of interest to you:

1) It is a secure, rock-solid alternative to BIND, able to offer DNS
pretty much like BIND does, conforming pretty much to Internet
standards, just as BIND pretty much conforms to Internet standards.
I didn't see this function on your list of requirements.

2) It offers name service cacheing, as a secure rock-solid alternative
to named.  It works fine with Internet standard name servers.

It does other things as well.  A starting place for more information
would be http://www.djbdns.org/

Speaking a little bit about Dan Bernstein and safety and security:
There are lots of people who disagree with Dan.  Very few, if any,
have broken his security scheme.  I have used his software for quite
some time and found it to be reliable and efficient.

I also prefer the configuration model -- it suits my style.  And style
is a key word here, because I also know people who find Dan's
configuration styles impenetrable.

In my case, I found BIND impenetrable.

So the configuration argument is about style and what your admins will
be comfortable with.

A thornier issue is one of licensing.  Dan Bernstein offers his
software and the source for free.  He limits the distribution of
binaries and does not allow modified versions to be distributed
without his approval.  Therefore most distributions (Linux and BSD) do
not include it.

> And what should I do with my new book 
> (900 pages about configuring this mega program) ?

900 pages about configuring which mega program?

-- 
David Benfell, LCP
[EMAIL PROTECTED]
---
Resume available at http://www.parts-unknown.org/resume.html


pgp0.pgp
Description: PGP signature


  1   2   >