pkg_create and srcdir

2005-09-09 Thread James Goldsmith
Hi list :)

This is a two part question, but they are vaguely related, so bear with
me...

Firstly, using pkg_create in a sh script in the following way works
fine:
pkg_create -v -s $SRCDIR -d $DESC -c $COMMENT -I $POST_INSTALL -p
"$INSTALLDIR/$packagename" -f $PLIST -o "net/$packagename" $packagename

where $SRCDIR is defined as SRCDIR=`pwd`
and $INSTALLDIR is /usr/local

However, if I remove the -s $SRCDIR parameter, it fails claiming tar
"couldn't stat" my files. I was under the impression that if SRCDIR was
not specified, it would use the current working directory instead (which
is where my files to be packaged reside, and what I am defining anyway
using pwd). Is this correct?

Secondly, and along the same lines: When the above is run, in the
+CONTENTS file inside the package there is an @SRCDIR line, containing
the directory given in -s $SRCDIR. As far as my experimentation has
gone, the presence of this line does not make any difference to whether
the package installs successfully or not. 

I would like to hide any build environment details from the customers
this package is being sent to, and thus was wondering if it is possible
to remove the @SRCDIR line, or rather never have it be written to
+CONTENTS in the first place!

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


tar -u adds all files regardless of mod date

2005-09-09 Thread Gareth Bailey
Hi there,

I have a directory I want to backup at /usr/dir_a/dir_b.
I want to back the content of this dir to /usr/backups/dir_b
so I tried the following:

# cd /usr/backups/dir_b
# tar -cf dir_b.tar /usr/dir_a/dir_b

Now I have dir_b.tar which is 65MB in size.
If i then try to update modified files by doing this:

# tar -uf dir_b.tar /usr/dir_a/dir_b

and I end up with dir_b.tar being 130MB (double size) which
should not be the case since no files have been modified in
 /usr/dir_a/dir_b.

I do not get this problem if I do the same in the /usr/dir_a
directory. In the /usr/dir_a dir the tar file remains the same
size.

I would much appreciate some input!

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


Re: hi list

2005-09-09 Thread K Anderson
- Original Message - 
From: "Chezangla, Engineer, DrukNet" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, September 08, 2005 7:23 PM
Subject: hi list


> Can anyone give me the detail steps for installing and configuring mysql 
> server on freebsd.
>
> I have installed mysql from ports but some how could not start the mysql 
> daemoninstallation might be wrong .so can anyone who did the 
> same give me some suggestions plez..
>
> FreeBSD5.1
> mysql40-server
cd /usr/ports/databases/mysql40-server
make install clean
{Wait}
At some point the process may tell you to edit your rc.conf to add the item 
(I'm using mysql41-server so it might be different):
  mysql_enable="Yes"

Then you can try starting it up with:
/usr/local/etc/rc.d/mysql-server.sh start

The startup script might notice something is missing and go in and create 
the databases needed.

If all goes well you should be able to do:
 mysql

One of three things may happen:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket 
'/tmp/mysql.sock' (2)
  That means mysql didn't startup

- OR -

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using 
password: NO)
  That means you didn't tell mysql (the command from -- If all goes well you 
should... -- section) to prompt for a password so you can get in. If you 
don't know the password for the root account then you can head over to the 
mysql web site and find out how to start mysql daemon without checking 
priviliges. Also review user accounts and how they work.

No errors and you are in mysql and ready to go.


It's not much, but hope it helps.

Mr. Anderson

~Sir, put the mouse down and step away from the computer~ 


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


Recommendations on Proliant DL-360 server with FreeBSD?

2005-09-09 Thread Remy de Ruysscher

Hi,

We are about to invest in a new server farm, which will consist of the 
HP Proliant DL-360 (2Gb ram, 2x 3.0Ghz Xeon,
2x 73Gb SCSI 15k,  RAID-1, redundant powersupply, iLO). We have already 
2 of these beauties running, but the management
wants "proof" this server is robust and stable for FreeBSD 5.4 / MySQL / 
Apache 2 / PHP usage (webserver/mailserver).


I feel very confident about this machine, but they want some sort of 
customer recommendations, URLs, FreeBSD support/testen as "proof". Since 
it's i386 it has tier-1 support, but that is not enough. We have had 
very bad experiences with the HP Proliant DL-140's (which I rejected BTW).


Yes I have googled but found little useable links. If you have any URLs, 
or you use such a machine with FreeBSD 5.x please let me know!


Thanks for you help!

Regards,
Remy.


smime.p7s
Description: S/MIME Cryptographic Signature


GPIB support

2005-09-09 Thread Loren M. Lang
Recently, I discovered that FreeBSD supports at least one GPIB PCMCIA
card in it's kernel sources.  There also seems to be a userspace library
for accessing it.  I had done some work with GPIB in the past, but I
never realized FreeBSD had any support for it, so we stuck with windows.
How come this isn't listed in the hardware compatibility list for
freebsd?

-- 
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.

Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: CEE1 AAE2 F66C 59B5 34CA  C415 6D35 E847 0118 A3D2
 


pgpaVvEg4BUSi.pgp
Description: PGP signature


Re: Conflicting CDRW and DVDRW

2005-09-09 Thread Fabian Keil
Michael Sherman <[EMAIL PROTECTED]> wrote:

> I am trying to burn a DVD with my Pioneer DVD writer (usb), but when I
> open K3B, the device is not listed. In fact the IDE CD burner isn't
> listed there as well. The kernel is configured with SCSI and ATAPICAM
> devices. It seems to me that my writers IDE and USB are conflicting,
> since the output of the camcontrol devlist produces:
> 
>at scbus0 target 6 lun 0 (sa0,pass0)
>  at scbus1 target 0 lun 0 (pass1,cd0)
>  at scbus3 target 0 lun 0 (pass2,cd1)

Where do you see the conflict here?
 
> Any ideas? Any hint will be appreciated.

Do you run K3B as user? Does the user have write access to
the needed devs (acdX, passX, xptX) or are the underlying programs
running suid?

If you have cdrecord installed, try running cdrecord -scanbus as the user
you use for K3B and look at the error messages.

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


pgp0PGhWT6Mye.pgp
Description: PGP signature


sysinstall

2005-09-09 Thread mats . lindberg




How can I have an interactively invoked sysinstall to load a config-file
from something else than a floppy e.g. a CD-ROM?


___

This e-mail communication (and any attachment/s) may contain confidential
or privileged information and is intended only for the individual(s) or
entity named above and to others who have been specifically authorized to
receive it. If you are not the intended recipient, please do not read,
copy, use or disclose the contents of this communication to others. Please
notify the sender that you have received this e-mail in error by reply
e-mail, and delete the e-mail subsequently.
Thank you.
_


Ce message (ainsi que le(s) fichier/s), transmis par courriel, peut
contenir des renseignements confidentiels ou protégés et est destiné à
l’usage exclusif du destinataire ci-dessus. Toute autre personne est par
les présentes avisée qu’il est strictement interdit de le diffuser, le
distribuer ou le reproduire. Si vous l’avez reçu par inadvertance, veuillez
nous en aviser et détruire ce message.
Merci.
_

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

How to install Vmware5 in FreeBSD?

2005-09-09 Thread Kenny
Well, I have downloaded the official Vmware5 package from the official
site. However, it is a Gzipped tarball rather than a normal package.

I know how to install Linux RPMs in FreeBSD. But this time, I have no idea.


Quite puzzled, and needing help.

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


Fwd: Re: C program to write to the com port - RESOLVED

2005-09-09 Thread vittorio

As a C++ absolute beginner I'm trying to compile your testssc.c file with

g++ testssc.c -o testssc
(under freebsd 5.4, gcc version 3.4.2)

But...
I only get:

SerialPort.C: In function `int main(int, char*)':
SerialPort.C:62: error: invalid conversion from `unsigned char*' to `char*'
SerialPort.C:62: error:   initializing argument 1 of `int snprintf(char*, 
size_t, const char*, ...)'
SerialPort.C:66: error: `err' undeclared (first use this function)
SerialPort.C:66: error: (Each undeclared identifier is reported only once for 
each function it appears in.)
SerialPort.C:69:3: warning: no newline at end of file

Could you please help to straighten things up?

Vittorio

--  Messaggio inoltrato  --

Subject: Re: C program to write to the com port - RESOLVED
Date: 02:23, venerdì 09 settembre 2005
From: "Paul Hamilton" <[EMAIL PROTECTED]>
To: freebsd-questions@freebsd.org

.


/*  Name: testssc.c
 *  compile with:  gcc testssc.c -o testssc
 *
 *  Your serial cable should be plugged into com port 1.
 *  You only need the pin 3 and pin 5 (DB9) plugged into the controller.
 *  The servo should be plugged into the first servo channel/port.
 *  This test program when run will move the servo from midrange,
 *  to position 01.  This is for demonstrational use only.
 *  Tested with FreeBSD 5.4
 *  Paul Hamilton  8th Aug 2005
 */

#include 
#include 
#include 
#include 
#include  /*Originally it was termio.h*/
#include 
#include 
// Use serial port 0  (com port 1)
static char *opt_comport="/dev/cuaa0";

int main(int argc, char **argv)
{
int fd;
struct termios options;
unsigned char buf[4];

// ok, lets try opening the com port
printf("Opening Com port: %s\n\n", opt_comport);
if((fd = open(opt_comport, O_RDWR | O_NOCTTY )) < 0)
  {
 printf("Problems opening %s\n", opt_comport);
 return (-1);
  }
// set the required com port parrameters
options.c_cflag &= ~CSIZE;  /* Mask the character size bits */
options.c_cflag |= CS8; /* Select 8 data bits */
options.c_cflag &= ~PARENB; // set no parity
options.c_cflag &= ~CSTOPB; // set 1 stop bit
options.c_oflag &= ~OPOST;  // Raw output

tcgetattr(fd, &options);

/*
 * Set the baud rates to 9600...
 */
cfsetispeed(&options, B9600);
cfsetospeed(&options, B9600);

/*
 * Enable the receiver and set local mode...
 */
options.c_cflag |= (CLOCAL | CREAD);

/*
 * Set the new options for the port...
 */
tcsetattr(fd, TCSANOW, &options);

// ok, lets transmit our 3 bytes through com port 1
snprintf(buf,4,"%c%c%c%c",0xff,0x00,0x01,0);
printf("buf=%x,%x,%x,%x\n", buf[0],buf[1],buf[2],buf[3]);

  if (write(fd, buf, 3) != 3)
err(1, "write");

close(fd);
};



Cheers,

Paul Hamilton

PS.  I have three books on programming in C winging their way to Australia.
I have a lot to learn  :-)

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

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


Re: How to install Vmware5 in FreeBSD?

2005-09-09 Thread Frank Mueller - emendis GmbH
I'm sorry to have to inform you that vmware5 does not run on FreeBSD. 
Latest version available for FreeBSD is AFAIK 3.x.


Greetz,

Ice

Kenny schrieb:

Well, I have downloaded the official Vmware5 package from the official
site. However, it is a Gzipped tarball rather than a normal package.

I know how to install Linux RPMs in FreeBSD. But this time, I have no idea.


Quite puzzled, and needing help.

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


--
Frank Mueller
eMail: [EMAIL PROTECTED]
Mobil: +49.177.6858655
Fax: +49.951.3039342

emendis GmbH
Hofmannstr. 89, 91052 Erlangen, Germany
Fon: +49.9131.817361
Fax: +49.9131.817386

Geschaeftsfuehrer: Gunter Kroeber, Volker Wiesinger
Sitz Erlangen, Amtsgericht Fuerth HRB 10116
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Fwd: Re: C program to write to the com port - RESOLVED

2005-09-09 Thread Giorgos Keramidas
On 2005-09-09 13:53, vittorio <[EMAIL PROTECTED]> wrote:
>
> As a C++ absolute beginner I'm trying to compile your testssc.c file with
>
> g++ testssc.c -o testssc
> (under freebsd 5.4, gcc version 3.4.2)

It's not a C++ program.  You should use `cc', not `g++'.

> SerialPort.C: In function `int main(int, char*)':
> SerialPort.C:62: error: invalid conversion from `unsigned char*' to `char*'
> SerialPort.C:62: error:   initializing argument 1 of `int snprintf(char*,
> size_t, const char*, ...)'
> SerialPort.C:66: error: `err' undeclared (first use this function)
> SerialPort.C:66: error: (Each undeclared identifier is reported only once for
> each function it appears in.)
> SerialPort.C:69:3: warning: no newline at end of file
>
> Could you please help to straighten things up?

The snprintf() function is what's causing you trouble in this line:

snprintf(buf,4,"%c%c%c%c",0xff,0x00,0x01,0);

As I said to Paul, in personal email messages, when there is a structure that
the serial data has to conform too, I usually prefer using explicitly named
fields in structs, temporary buffers, and memcpy() or plain assignments
instead of printf()-family functions.

#define SERVO_CMD_MAXBUF4

struct servo_cmd {
unsigned char sc_id;
unsigned char sc_cmd;
unsigned char sc_arg;
};

int
servo_cmd_send(struct servo_cmd *sp)
{
unsigned char buf[SERVO_CMD_MAXBUF];

buf[0] = sp->sc_id;
buf[1] = sp->sc_cmd;
buf[2] = sp->sc_arg;
buf[3] = '\0';  /* Command end char. */

...
}

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


RE: Re: C program to write to the com port - RESOLVED

2005-09-09 Thread Paul Hamilton
Hi vittorio,

Hey I am just a beginner myself, but this is a C program, not a C++ program.
My gcc is version 3.4.2 too.

Hmm, did you cut and paste ALL of the source code, including the #include
statements?  I also see that it's mentioning code on lines 62, 66 and 69.
My testssc.c only has around 57 lines of code.  What else have you included?


Cheers,

Paul

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of vittorio
> Sent: Friday, 9 September 2005 7:54 PM
> To: freebsd-questions@freebsd.org
> Subject: Fwd: Re: C program to write to the com port - RESOLVED
> 
> 
> 
> As a C++ absolute beginner I'm trying to compile your 
> testssc.c file with
> 
> g++ testssc.c -o testssc
> (under freebsd 5.4, gcc version 3.4.2)
> 
> But...
> I only get:
> 
> SerialPort.C: In function `int main(int, char*)':
> SerialPort.C:62: error: invalid conversion from `unsigned 
> char*' to `char*'
> SerialPort.C:62: error:   initializing argument 1 of `int 
> snprintf(char*, 
> size_t, const char*, ...)'
> SerialPort.C:66: error: `err' undeclared (first use this function)
> SerialPort.C:66: error: (Each undeclared identifier is 
> reported only once for 
> each function it appears in.)
> SerialPort.C:69:3: warning: no newline at end of file
> 
> Could you please help to straighten things up?
> 
> Vittorio
> 
> --  Messaggio inoltrato  --
> 
> Subject: Re: C program to write to the com port - RESOLVED
> Date: 02:23, venerdì 09 settembre 2005
> From: "Paul Hamilton" <[EMAIL PROTECTED]>
> To: freebsd-questions@freebsd.org
> 
> .
> --
> --
> 
> /*  Name: testssc.c
>  *  compile with:  gcc testssc.c -o testssc
>  *
>  *  Your serial cable should be plugged into com port 1.
>  *  You only need the pin 3 and pin 5 (DB9) plugged into the 
> controller.
>  *  The servo should be plugged into the first servo channel/port.
>  *  This test program when run will move the servo from midrange,
>  *  to position 01.  This is for demonstrational use only.
>  *  Tested with FreeBSD 5.4
>  *  Paul Hamilton  8th Aug 2005
>  */
> 
> #include 
> #include 
> #include 
> #include 
> #include  /*Originally it was termio.h*/
> #include 
> #include 
> // Use serial port 0  (com port 1)
> static char *opt_comport="/dev/cuaa0";
> 
> int main(int argc, char **argv)
> {
> int fd;
> struct termios options;
> unsigned char buf[4];
> 
> // ok, lets try opening the com port
> printf("Opening Com port: %s\n\n", opt_comport);
> if((fd = open(opt_comport, O_RDWR | O_NOCTTY )) < 0)
>   {
>  printf("Problems opening %s\n", opt_comport);
>  return (-1);
>   }
> // set the required com port parrameters
> options.c_cflag &= ~CSIZE;  /* Mask the character size bits */
> options.c_cflag |= CS8; /* Select 8 data bits */
> options.c_cflag &= ~PARENB; // set no parity
> options.c_cflag &= ~CSTOPB; // set 1 stop bit
> options.c_oflag &= ~OPOST;  // Raw output
> 
> tcgetattr(fd, &options);
> 
> /*
>  * Set the baud rates to 9600...
>  */
> cfsetispeed(&options, B9600);
> cfsetospeed(&options, B9600);
> 
> /*
>  * Enable the receiver and set local mode...
>  */
> options.c_cflag |= (CLOCAL | CREAD);
> 
> /*
>  * Set the new options for the port...
>  */
> tcsetattr(fd, TCSANOW, &options);
> 
> // ok, lets transmit our 3 bytes through com port 1
> snprintf(buf,4,"%c%c%c%c",0xff,0x00,0x01,0);
> printf("buf=%x,%x,%x,%x\n", buf[0],buf[1],buf[2],buf[3]);
> 
>   if (write(fd, buf, 3) != 3)
> err(1, "write");
> 
> close(fd);
> };
> --
> --
> 
> 
> Cheers,
> 
> Paul Hamilton
> 
> PS.  I have three books on programming in C winging their way 
> to Australia. I have a lot to learn  :-)
> 
> ___
> freebsd-questions@freebsd.org mailing list 
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "[EMAIL PROTECTED]"
> 
> ---
> ___
> freebsd-questions@freebsd.org mailing list 
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "[EMAIL PROTECTED]"
> 
> 

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


Re: Conflicting CDRW and DVDRW

2005-09-09 Thread Michael Sherman
I must have been too tired last night. They are indeed on a different
scbus, I was just looking at target and lun IDs. The problem was the
permissions on the /dev/passX.
Thanks a lot.

On 9/9/05, Fabian Keil <[EMAIL PROTECTED]> wrote:
> Michael Sherman <[EMAIL PROTECTED]> wrote:
> 
> > I am trying to burn a DVD with my Pioneer DVD writer (usb), but when I
> > open K3B, the device is not listed. In fact the IDE CD burner isn't
> > listed there as well. The kernel is configured with SCSI and ATAPICAM
> > devices. It seems to me that my writers IDE and USB are conflicting,
> > since the output of the camcontrol devlist produces:
> >
> >at scbus0 target 6 lun 0 (sa0,pass0)
> >  at scbus1 target 0 lun 0 (pass1,cd0)
> >  at scbus3 target 0 lun 0 (pass2,cd1)
> 
> Where do you see the conflict here?
> 
> > Any ideas? Any hint will be appreciated.
> 
> Do you run K3B as user? Does the user have write access to
> the needed devs (acdX, passX, xptX) or are the underlying programs
> running suid?
> 
> If you have cdrecord installed, try running cdrecord -scanbus as the user
> you use for K3B and look at the error messages.
> 
> Fabian
> --
> http://www.fabiankeil.de/
> 
> 
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to install Vmware5 in FreeBSD?

2005-09-09 Thread Yance Kowara
have you tried qemu?

Frank Mueller - emendis GmbH <[EMAIL PROTECTED]> wrote:I'm sorry to have to 
inform you that vmware5 does not run on FreeBSD. 
Latest version available for FreeBSD is AFAIK 3.x.

Greetz,

Ice

Kenny schrieb:
> Well, I have downloaded the official Vmware5 package from the official
> site. However, it is a Gzipped tarball rather than a normal package.
> 
> I know how to install Linux RPMs in FreeBSD. But this time, I have no idea.
> 
> 
> Quite puzzled, and needing help.
> 
> Many thanks in advance.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 
Frank Mueller
eMail: [EMAIL PROTECTED]
Mobil: +49.177.6858655
Fax: +49.951.3039342

emendis GmbH
Hofmannstr. 89, 91052 Erlangen, Germany
Fon: +49.9131.817361
Fax: +49.9131.817386

Geschaeftsfuehrer: Gunter Kroeber, Volker Wiesinger
Sitz Erlangen, Amtsgericht Fuerth HRB 10116
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"



-
 Click here to donate to the Hurricane Katrina relief effort.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Fwd: Re: C program to write to the com port - RESOLVED

2005-09-09 Thread Roland Smith
On Fri, Sep 09, 2005 at 01:53:49PM +0200, vittorio wrote:
> 
> As a C++ absolute beginner I'm trying to compile your testssc.c file with
> 
> g++ testssc.c -o testssc
> (under freebsd 5.4, gcc version 3.4.2)

The C and C++ languages are different. Use cc or gcc instead of g++ to
compile C code.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpOtOStnYFks.pgp
Description: PGP signature


Help running shell script from cron

2005-09-09 Thread Sandy Knight
I am having trouble configuring my shell scripts to run under cron (user level, not root). I have 
set up a test.sh script which sends me an email, it works fine from the command line (ssh). the 
script is as follows:


#!/bin/sh
echo "helloworld" | mail -s "helloworld" [EMAIL PROTECTED]
php /home/a_user/cron/test.php


As you can see I am also trying to get a php script to run (this is my ultimate 
aim).

My crontab is as follows:

# /home/a_user
#
SHELL=/bin/sh
PATH=/home/a_user/cron
HOME=/home/a_user
#
#
#minute hourmdaymonth   wdaycommand
#
#
*/5 * * * *   /home/a_user/cron/test.sh


I have done the following:

$ pwd

/home/a_user

$ crontab cron/myCronTab

$ crontab -l

{output - see above}


Crontab is trying to run my script as I receive an email every 5 minutes saying:

/home/a_user/cron/test.sh: not found


The permissions for the scripts are:

$ ls -lt cron/

-rw-r--r--  1 a_user  vusers   322 Sep  9 12:27 myCronTab
-rwxr-xr-x  1 a_user  vusers   107 Sep  9 12:16 test.sh
-rwxr-xr-x  1 a_user  vusers99 Sep  4 17:58 test.php

Thank you in advance,

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


Re: moving everything except a directory

2005-09-09 Thread Loren M. Lang
On Fri, Sep 30, 2005 at 05:40:00PM -0500, Brian John wrote:
> Say I am at ~ and I have 10 directories inside named 1, 2, 3, 4 ,5, 6, 
> 7, 8, 9 and 10.  What command can I use to move everything but directory 
> 2?  What if I wanted to move everything but directories 2 and 7?
> 

find ~ -mindepth 1 -maxdepth 1 ! -name 2 -exec mv {} /path/to/new/place

find ~ -mindepth 1 -maxdepth 1 ! -name 2 ! -name 7 -exec mv {} 
/path/to/new/place

> I'm not sure how to use the mv command to do this in 1 comand.

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

-- 
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.

Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: CEE1 AAE2 F66C 59B5 34CA  C415 6D35 E847 0118 A3D2
 


pgplFCO3nt9k0.pgp
Description: PGP signature


Re: atacontrol

2005-09-09 Thread Loren M. Lang
On Thu, Sep 08, 2005 at 08:54:10PM +0200, G?ran Nilsson   wrote:
> Hi. I have recently installed Freebsd 5.4 . I have also installed a cheap
> raidcontroller . On the controller i put on a 200+120gb disk.
>  
> In the raidcontroller i create a JBOD raid, showing me that i now have 301gb
> of disk. That's a loss of 19gb, i can live with that.
> 
> After login I do a "atacontrol create JBOD ad5 ad6". It now creates ar0
> device with 223gb of space. That's nearly a 100gb of disk loss!
> If and how can i prevent the huge 100gb of storage loss?

I'd look at geom_ccd over atacontrol for this.

man ccd

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

-- 
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.

Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: CEE1 AAE2 F66C 59B5 34CA  C415 6D35 E847 0118 A3D2
 


pgpGmJmOGA5ii.pgp
Description: PGP signature


Re: Fwd: Re: C program to write to the com port - RESOLVED

2005-09-09 Thread Helge Preuss

vittorio wrote:


[...]
SerialPort.C: In function `int main(int, char*)':
SerialPort.C:62: error: invalid conversion from `unsigned char*' to `char*'
SerialPort.C:62: error:   initializing argument 1 of `int snprintf(char*, 
size_t, const char*, ...)'

SerialPort.C:66: error: `err' undeclared (first use this function)
SerialPort.C:66: error: (Each undeclared identifier is reported only once for 
each function it appears in.)

SerialPort.C:69:3: warning: no newline at end of file

Could you please help to straighten things up?
 


A relevant line from man snprintf:
> int snprintf(char *str, size_t size, const char *format, ...);
So you might want to change line 27 to
   char buf[4];
and perhaps line 62 too:

 snprintf(buf,4,"%c%c%c%c",(char)0xff,0x00,0x01,0);
another relevant line from man err:

 #include 


HTH, haven't tried it

Helge


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


Re: Help running shell script from cron

2005-09-09 Thread jdyke
there is a possibility that the 'not found' is coming from your call to php and 
not that it can't find test.sh


either comment out that php line, or use
/full/path/to/php /home/a_user/cron/test.php

HTH
Jeff

Sandy Knight wrote:
I am having trouble configuring my shell scripts to run under cron (user 
level, not root). I have set up a test.sh script which sends me an 
email, it works fine from the command line (ssh). the script is as follows:


#!/bin/sh
echo "helloworld" | mail -s "helloworld" [EMAIL PROTECTED]
php /home/a_user/cron/test.php


As you can see I am also trying to get a php script to run (this is my 
ultimate aim).


My crontab is as follows:

# /home/a_user
#
SHELL=/bin/sh
PATH=/home/a_user/cron
HOME=/home/a_user
#
#
#minute hourmdaymonth   wdaycommand
#
#
*/5 * * * *   /home/a_user/cron/test.sh


I have done the following:

$ pwd

/home/a_user

$ crontab cron/myCronTab

$ crontab -l

{output - see above}


Crontab is trying to run my script as I receive an email every 5 minutes 
saying:


/home/a_user/cron/test.sh: not found


The permissions for the scripts are:

$ ls -lt cron/

-rw-r--r--  1 a_user  vusers   322 Sep  9 12:27 myCronTab
-rwxr-xr-x  1 a_user  vusers   107 Sep  9 12:16 test.sh
-rwxr-xr-x  1 a_user  vusers99 Sep  4 17:58 test.php

Thank you in advance,

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



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


Re: Printing MAN pages

2005-09-09 Thread Warren Block

On Fri, 9 Sep 2005, Giorgos Keramidas wrote:


Stijn and everyone else, any particular preference for the text that we
add?  Would something like the following be ok?

-t  Use ``/usr/bin/groff -S -man'' to format the manual page,
passing the output to stdout.  The default output format of
groff(1) is Postscript, but see the manual page of groff(1)
for ways to pick an alternate format.

Depending on the selected format and the availability of
printing devices, the output may need to be passed through
some filter or another before being printed.


It's like the original version in that it doesn't come right out and say 
*why* it's formatting the manual page until the last word.  That 
information could be added to the first sentence:


Use ``/usr/bin/groff -S -man'' to format the manual page for printing,
passing the output to stdout.

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


Re: How to install Vmware5 in FreeBSD?

2005-09-09 Thread Frank Mueller - emendis GmbH

Qemu is running flawlessly on FreeBSD 5.4 here! ;)

Yance Kowara schrieb:

have you tried qemu?

Frank Mueller - emendis GmbH <[EMAIL PROTECTED]> wrote:I'm sorry to have to inform you that vmware5 does not run on FreeBSD. 
Latest version available for FreeBSD is AFAIK 3.x.


Greetz,

Ice

Kenny schrieb:


Well, I have downloaded the official Vmware5 package from the official
site. However, it is a Gzipped tarball rather than a normal package.

I know how to install Linux RPMs in FreeBSD. But this time, I have no idea.


Quite puzzled, and needing help.

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





--
Frank Mueller
eMail: [EMAIL PROTECTED]
Mobil: +49.177.6858655
Fax: +49.951.3039342

emendis GmbH
Hofmannstr. 89, 91052 Erlangen, Germany
Fon: +49.9131.817361
Fax: +49.9131.817386

Geschaeftsfuehrer: Gunter Kroeber, Volker Wiesinger
Sitz Erlangen, Amtsgericht Fuerth HRB 10116
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Help running shell script from cron

2005-09-09 Thread Frank Mueller - emendis GmbH

Always use full path in Scrips, e.g.

/bin/echo ...
/usr/local/bin/php ..

Greetz,

Ice


Sandy Knight schrieb:
I am having trouble configuring my shell scripts to run under cron (user 
level, not root). I have set up a test.sh script which sends me an 
email, it works fine from the command line (ssh). the script is as follows:


#!/bin/sh
echo "helloworld" | mail -s "helloworld" [EMAIL PROTECTED]
php /home/a_user/cron/test.php


As you can see I am also trying to get a php script to run (this is my 
ultimate aim).


My crontab is as follows:

# /home/a_user
#
SHELL=/bin/sh
PATH=/home/a_user/cron
HOME=/home/a_user
#
#
#minute hourmdaymonth   wdaycommand
#
#
*/5 * * * *   /home/a_user/cron/test.sh


I have done the following:

$ pwd

/home/a_user

$ crontab cron/myCronTab

$ crontab -l

{output - see above}


Crontab is trying to run my script as I receive an email every 5 minutes 
saying:


/home/a_user/cron/test.sh: not found


The permissions for the scripts are:

$ ls -lt cron/

-rw-r--r--  1 a_user  vusers   322 Sep  9 12:27 myCronTab
-rwxr-xr-x  1 a_user  vusers   107 Sep  9 12:16 test.sh
-rwxr-xr-x  1 a_user  vusers99 Sep  4 17:58 test.php

Thank you in advance,

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


--
Frank Mueller
eMail: [EMAIL PROTECTED]
Mobil: +49.177.6858655
Fax: +49.951.3039342

emendis GmbH
Hofmannstr. 89, 91052 Erlangen, Germany
Fon: +49.9131.817361
Fax: +49.9131.817386

Geschaeftsfuehrer: Gunter Kroeber, Volker Wiesinger
Sitz Erlangen, Amtsgericht Fuerth HRB 10116
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Printing MAN pages

2005-09-09 Thread Giorgos Keramidas
On 2005-09-09 07:36, Warren Block <[EMAIL PROTECTED]> wrote:
>On Fri, 9 Sep 2005, Giorgos Keramidas wrote:
>>Stijn and everyone else, any particular preference for the text that we
>>add?  Would something like the following be ok?
>>
>>  -t  Use ``/usr/bin/groff -S -man'' to format the manual page,
>>  passing the output to stdout.  The default output format of
>>  groff(1) is Postscript, but see the manual page of groff(1)
>>  for ways to pick an alternate format.
>>
>>  Depending on the selected format and the availability of
>>  printing devices, the output may need to be passed through
>>  some filter or another before being printed.
>
> It's like the original version in that it doesn't come right out and say
> *why* it's formatting the manual page until the last word.  That
> information could be added to the first sentence:
>
> Use ``/usr/bin/groff -S -man'' to format the manual page for printing,
> passing the output to stdout.

My most important concerns about mentioning "printing" in the first
sentence is that:

a) Postscript is not only for printing.

b) Some of the output formats that groff supports are *not*
   directly printable, i.e. DVI

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


Re: Help running shell script from cron

2005-09-09 Thread Kevin Kinsey

Sandy Knight wrote:


I am having trouble configuring my shell scripts to run under
cron (user level, not root). I have set up a test.sh script which
sends me an email, it works fine from the command line (ssh). the 
script is as follows:


#!/bin/sh
echo "helloworld" | mail -s "helloworld" [EMAIL PROTECTED]
php /home/a_user/cron/test.php


As you can see I am also trying to get a php script to run (this is my 
ultimate aim).


My crontab is as follows:

# /home/a_user
#
SHELL=/bin/sh
PATH=/home/a_user/cron
HOME=/home/a_user
#
#
#minute hourmdaymonth   wdaycommand
#
#
*/5 * * * *   /home/a_user/cron/test.sh


I have done the following:

$ pwd

/home/a_user

$ crontab cron/myCronTab

$ crontab -l

{output - see above}


Crontab is trying to run my script as I receive an email every 5 
minutes saying:


/home/a_user/cron/test.sh: not found


The permissions for the scripts are:

$ ls -lt cron/

-rw-r--r--  1 a_user  vusers   322 Sep  9 12:27 myCronTab
-rwxr-xr-x  1 a_user  vusers   107 Sep  9 12:16 test.sh
-rwxr-xr-x  1 a_user  vusers99 Sep  4 17:58 test.php

Thank you in advance,

Sandy




For starters, assume cron to be totally ignorant about
paths.  That means it doesn't know "whereis" anything,
etc.  Hard-code things, IOW.

That said, and I may be a bit confused, but why try
to supersede whatever limited environment cron
may already have by setting more env vars?

Specifically in this case, try using a crontab with
no env vars set (specifically) and hard code all the paths.
Simply run "crontab -e" and put /usr/local/bin/php -q /path/to/my/script.php
there and see what happens.

HTH,

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


Re: How to install Vmware5 in FreeBSD?

2005-09-09 Thread Matthias Apitz
El día viernes, septiembre 09, 2005 a las 03:41:47 +0200, Frank Mueller - 
emendis GmbH escribió:

> Qemu is running flawlessly on FreeBSD 5.4 here! ;)

Yes. I've qemu version qemu-0.7.0s.20050717 up as well in my 5.4R;
do you know if kqemu works as well and how I plug it in?

matthias

-- 
Matthias Apitz / Sisis Informationssysteme GmbH
Gruenwalder Weg 28g / D-82041 Oberhaching
Fon: ++49 89 / 61308-351, Fax: -399, Mobile ++49 170 4527211
http://www.sisis.de/~guru/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re:VMWare

2005-09-09 Thread Daniel Gonzalez
> Well, I have downloaded the official Vmware5 package from the official
> 
site. However, it is a Gzipped tarball rather than a normal package.

I know how to install Linux RPMs in FreeBSD. But this time, I have no idea.


Quite puzzled, and needing help.

Many thanks in advance.

Ken-

Assuming the package ends in .tar.gz or .tgz, you can extract the tarball 
via: tar -zxvf 

If the tarball ends in .tbz, extract it with the following;
tar -jxvf 

Once the file is extracted, there should be a README file that tells you how 
to install the binary. (Assuming this is not a package specifically built 
for FreeBSD)

Hope that helps, I'm a relative newb to BSD myself

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


Re: question about zlib security patch

2005-09-09 Thread Dan Nelson
In the last episode (Sep 09), Chantal Rosmuller said:
> Thanks everyone for the advice, I installed the sources and applied
> the patch, so I guess I took care of the zlib security issue The
> clamav error remained though but someone at the qmail rocks
> mailinglist suggested that clamav cannot see that zlib is patched so
> it is safe to ignore the error. To be on the safe side I will post
> the question about the error on the clamav mailing list.

Yes, clamav only checks the version number in the header; it doesn't
actually test the bug.

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


Re: How to install Vmware5 in FreeBSD?

2005-09-09 Thread Frank Mueller - emendis GmbH

Before installing the qemu port, just edit your make.conf and add
WITH_KQEMU="YES"
This will build and install the appropriate Module.
When install is finished u can use it as usual
kldload kqemu
That's it! ;)

GL,

Ice

Matthias Apitz schrieb:

El día viernes, septiembre 09, 2005 a las 03:41:47 +0200, Frank Mueller - 
emendis GmbH escribió:



Qemu is running flawlessly on FreeBSD 5.4 here! ;)



Yes. I've qemu version qemu-0.7.0s.20050717 up as well in my 5.4R;
do you know if kqemu works as well and how I plug it in?

matthias



--
Frank Mueller
eMail: [EMAIL PROTECTED]
Mobil: +49.177.6858655
Fax: +49.951.3039342

emendis GmbH
Hofmannstr. 89, 91052 Erlangen, Germany
Fon: +49.9131.817361
Fax: +49.9131.817386

Geschaeftsfuehrer: Gunter Kroeber, Volker Wiesinger
Sitz Erlangen, Amtsgericht Fuerth HRB 10116
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to install Vmware5 in FreeBSD?

2005-09-09 Thread Yuan Jue
On Friday 09 September 2005 22:06, Matthias Apitz wrote:
> El día viernes, septiembre 09, 2005 a las 03:41:47 +0200, Frank Mueller - 
emendis GmbH escribió:
> > Qemu is running flawlessly on FreeBSD 5.4 here! ;)
>
> Yes. I've qemu version qemu-0.7.0s.20050717 up as well in my 5.4R;
> do you know if kqemu works as well and how I plug it in?

kqemu works fine with FreeBSD 5.4.

first, you should install qemu from port so you can change the makefile with 
"with_kqemu=yes"
second, after you finish the compile thing, you should remember that kqemu is 
running as a kernel object (.ko). So either you can start it with "kldload 
kqemu.ko" or you can simply add "kqemu_load=yes" to your /boot/loader.conf to 
autostart it every time you boot your computer.

Good luck!
-- 
Best Regards.

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


Home Network Setup Problem

2005-09-09 Thread deltaski
Thank you all, who have considered this message!

I am learning BSD with 3 successful units. 1-100mhz pent. running 4.11
1-180mhz pent. running 5.4 and one 266mhz AMD running 5.4

I have learned the ins and outs of X, changing rc.conf and am quite good
at reinstalling the system after a few "learning" adjustments.

Just for fun and my own enjoyment in learning, I have now accepted the 
challenge of my own home network. I have been able to connect all boxes to my 
DSL router with DHCP and manual IP assignments and changed/setup NIC's with 
ifconfig. My reference materal is the Handbook from FreeBSD.org and "The 
Complete FreeBSD" by Greg Lehey.

Now the problem!

DSL is 192.168.1.1 - Box B has two NIC's rl0=192.168.1.100 netmask 
255.255.255.0 and is connected only to 192.168.1.1 ping works/outside 
internet works.
Box B second NIC rl1=172.16.1.1 netmask 255.255.255.0 and is connected to a 
standalone switch/router. 

Box A has one NIC eth0=172.16.1.35 and is connected to the standalone 
switch/router. Box A can ping 172.16.1.35 and 172.16.1.1 on box b. It can NOT 
ping 192.168.1.1 or access any outside internet.

From Box B keyboard, I can ping 
192.168.1.1/192.168.1.100/172.16.1.1/172.16.1.35

From Box A keyboard, I can ping only 172.16.1.35/172.16.1.1

I have tried ifconfig rl0 192.168.1.100 172.16.1.1 netmask 255.255.255.0 among 
many other configurations without success.

From my reading, I think the error of my ways is in the Box B between nic rl0 
and rl1. The data packets are not being forwarded from rl1 to rl0 or rl0 to 
rl1. Somewhere I have missed something. If anyone could point me in the 
correct direction, it would be greatly appreciated.

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


Re: Home Network Setup Problem

2005-09-09 Thread Greg Barniskis

[EMAIL PROTECTED] wrote:

Thank you all, who have considered this message!

I am learning BSD with 3 successful units. 1-100mhz pent. running 4.11
1-180mhz pent. running 5.4 and one 266mhz AMD running 5.4

I have learned the ins and outs of X, changing rc.conf and am quite good
at reinstalling the system after a few "learning" adjustments.

Just for fun and my own enjoyment in learning, I have now accepted the 
challenge of my own home network. I have been able to connect all boxes to my 
DSL router with DHCP and manual IP assignments and changed/setup NIC's with 
ifconfig. My reference materal is the Handbook from FreeBSD.org and "The 
Complete FreeBSD" by Greg Lehey.


Now the problem!

DSL is 192.168.1.1 - Box B has two NIC's rl0=192.168.1.100 netmask 
255.255.255.0 and is connected only to 192.168.1.1 ping works/outside 
internet works.
Box B second NIC rl1=172.16.1.1 netmask 255.255.255.0 and is connected to a 
standalone switch/router. 


Is it a switch, is it a router, or is it really both (high end 
thingy like Cisco 35xx?). Probably it is just a plain old switch 
with no routing capabilities. To avoid confusion, you should call it 
what it is.


Box A has one NIC eth0=172.16.1.35 and is connected to the standalone 
switch/router. Box A can ping 172.16.1.35 and 172.16.1.1 on box b. It can NOT 
ping 192.168.1.1 or access any outside internet.


From Box B keyboard, I can ping 

192.168.1.1/192.168.1.100/172.16.1.1/172.16.1.35


From Box A keyboard, I can ping only 172.16.1.35/172.16.1.1


I have tried ifconfig rl0 192.168.1.100 172.16.1.1 netmask 255.255.255.0 among 
many other configurations without success.


From my reading, I think the error of my ways is in the Box B between nic rl0 
and rl1. The data packets are not being forwarded from rl1 to rl0 or rl0 to 
rl1. Somewhere I have missed something. If anyone could point me in the 
correct direction, it would be greatly appreciated.


At a guess, I think what you are missing is to put

gateway_enable="YES"

into rc.conf of box B (between the Internet router and the inside 
network switch). Otherwise it will not hand packets from one network 
to another. However, you probably do NOT want to enable that without 
also enabling and configuring firewall features on this box as well, 
for which I will refer you to RTFM (the Really Tremendously Fine 
Manual ;).


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls.html

If you already have gateway and firewall functions going, does the 
inside box (A) have box B's 172 addr set as its default gateway 
router? If not, then it does not know to send packets destined for 
other networks in that direction for processing. If yes, is your 
firewall configured so tight that it's killing the packets you'd 
like to forward?


--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Home Network Setup Problem

2005-09-09 Thread Kent Stewart
On Friday 09 September 2005 07:39 am, [EMAIL PROTECTED] wrote:
> Thank you all, who have considered this message!
>
> I am learning BSD with 3 successful units. 1-100mhz pent. running
> 4.11 1-180mhz pent. running 5.4 and one 266mhz AMD running 5.4
>
> I have learned the ins and outs of X, changing rc.conf and am quite
> good at reinstalling the system after a few "learning" adjustments.
>
> Just for fun and my own enjoyment in learning, I have now accepted
> the challenge of my own home network. I have been able to connect all
> boxes to my DSL router with DHCP and manual IP assignments and
> changed/setup NIC's with ifconfig. My reference materal is the
> Handbook from FreeBSD.org and "The Complete FreeBSD" by Greg Lehey.
>
> Now the problem!
>
> DSL is 192.168.1.1 - Box B has two NIC's rl0=192.168.1.100 netmask
> 255.255.255.0 and is connected only to 192.168.1.1 ping works/outside
> internet works.
> Box B second NIC rl1=172.16.1.1 netmask 255.255.255.0 and is
> connected to a standalone switch/router.
>
> Box A has one NIC eth0=172.16.1.35 and is connected to the standalone
> switch/router. Box A can ping 172.16.1.35 and 172.16.1.1 on box b. It
> can NOT ping 192.168.1.1 or access any outside internet.
>
> >From Box B keyboard, I can ping
>
> 192.168.1.1/192.168.1.100/172.16.1.1/172.16.1.35
>
> >From Box A keyboard, I can ping only 172.16.1.35/172.16.1.1
>
> I have tried ifconfig rl0 192.168.1.100 172.16.1.1 netmask
> 255.255.255.0 among many other configurations without success.
>
> >From my reading, I think the error of my ways is in the Box B
> > between nic rl0
>
> and rl1. The data packets are not being forwarded from rl1 to rl0 or
> rl0 to rl1. Somewhere I have missed something. If anyone could point
> me in the correct direction, it would be greatly appreciated.
>

In your /etc/rc.conf, you need to tell machine B that it is a gateway. 
Since you are using RFC1918 IP addresses, you probably should turn on 
natd. It is much easier if the switch is right after your DSL because 
then, you don't need B to be a gateway and you don't need to run ipfw 
to get natd.

Kent

-- 
Kent Stewart
Richland, WA

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


Re: Porting from LInux to FreeBSD

2005-09-09 Thread RW
On Thursday 08 September 2005 11:25, Subhro wrote:
> Deepak Naidu sat at his 'puter and typed on 9/8/2005 15:16:
>>...
> >for mailing server. I used raiserfs in linux.  Which
> ...  
> Just something off topic, did you have any reasons for 
> using ReiserFS in Linux and not use EXT2/3?

See:

 

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


Recompiled freebsd 5.4 cannot boot up with geom_mirror

2005-09-09 Thread Ng Pek Yong
Hi,

I am having some problem with geom_mirror on a freebsd
5.4.

I followed the steps described in
http://people.freebsd.org/~rse/mirror/
and got geom_mirror up on a stock freebsd 5.4,
including / partition itself.

The problem came when I compiled the kernel. After
pulling in the latest source tree, compiling and
installing the new kernel, I find that the OS can no
longer bootup.

I did with 2 kernel configurations. The 1st is
completely identical to the stock kernel config. The
2nd has an extra  line "options GEOM_MIRROR".
Both failed to boot up although the errors are
different.

1st config
--
The boot process got stucked when it tries to mount /
The error message is something like this
Mount root from ufs:/dev/mirror/gm0s1a
setrootbyname failed
ffs_mountroot: can't find rootvp
Root mount failed: 6

This is despite the fact that /boot/loader.conf has
specified the loading of geom_mirror.ko module; the
console message also indicate geom_mirror was
successfully loaded.

2nd config (with kernel option GEOM_MIRROR)
---
The boot process got stucked before it tries to mount
/
The last lines of the messages are
Timecounter "TSC" frequency 1130454577 Hz
quality 800
Timecounters tick every 10.000 msec



Does anyone know what went wrong? Please reply me at
'npy @ vaccius . com'


Thanks!


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


Re: Stupid working too late..

2005-09-09 Thread Vizion
On Thursday 08 September 2005 21:35,  the author Glenn Dawson contributed to 
the dialogue on-
 Re: Stupid working too late..: 

>At 08:58 PM 9/8/2005, Vizion wrote:
>>OK
>>
>>Here is what I did before i packed up - having been working late
>>
>>just changed ownerships of files in a virtual web
>>
>>chown -R www ./*
>>
>>fine
>>
>>folllowed by change of group with the dreaded typo of:
>>
>>chown -R www /*
>>oops
>>
>>fortunately hit crt c pretty damn quick but some damage was done.
>>
>>While I limited the damage I wanted to double check which of the standard
>> os file hierarchies are meant to be in group "operator" and also owned by
>> root. That seems to be the only   doubt I have the rest was easily
>> recovered.
>>
>>Any help appreciated
>
>mtree -U -f foo
>where foo is the appropriate file(s) from /etc/mtree should do that
>trick for ya.
>
>-Glenn
Thank you so much

good one

david

-- 
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Porting from LInux to FreeBSD

2005-09-09 Thread RW
On Thursday 08 September 2005 10:46, Deepak Naidu wrote:

> 2)How to i find memory, cpu information in freebsd,
> apart from TOP. In linux we have free and
> /pro/cpuinfo.  I dont see any files under /proc
>
On the subject of /proc see:



but bear this in mind when looking at free memory:


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


Re: hi list

2005-09-09 Thread Miguel Cárdenas
hello

go to http://www.mysql.com and download the sources (4.1) and in the FreeBSD 
section in downloads take a look at FreeBSD downloads (platform notes), click 
on platform notes.

basicly, the only difference with compilation under FreeBSD is the way you 
configure the makefiles and environment variables:

CC=gcc CFLAGS="-O2 -fno-strength-reduce" \
CXX=gcc CXXFLAGS="-O2 -fno-rtti -fno-exceptions \
-felide-constructors -fno-strength-reduce" \

./configure --prefix=/usr/local/mysql --enable-assembler

gmake
gmake install

these are just the differences, you MUST follow ALL STEPS in the README and 
INSTALL-SOURCE guides, just use the environment variables I included and the 
parameters to the ./configure, otherwise the compilation WILL FAIL.

I installed it from source and works fine, but the special setup for FreeBSD 
gave me a terrible headache.

> Can anyone give me the detail steps for installing and
> configuring mysql server on freebsd.
>
> I have installed mysql from ports but some how could not
> start the mysql daemoninstallation might be wrong
> .so can anyone who did the same give me some
> suggestions plez..
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: dhcrelay is setting the relay ip address wrong

2005-09-09 Thread Lowell Gilbert
Ihsan Dogan <[EMAIL PROTECTED]> writes:

> 
> No, input from this socket is dropped.
> 
> See 'fallback_discard' in common/socket.c.
> 
> 
> You're railing against a very commonly reported problem.  The IO system
> was designed for the server and client (mostly for the server).  It is
> poorly suited to the relay.
> 
> Enhancements are on the wishlist for 3.1.
> 

Ouch.  That's a workaround for a pretty severe problem in the
relay agent.  

Try the relay agent from the WIDE project; it looks like it 
handles this properly (as specified in the protocol spec):
(/usr/ports/net-mgmt/wide-dhcp)

Good luck.
-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pptp using tun0 to work

2005-09-09 Thread Eric Schuele

Philip M. Gollucci wrote:

Hi,

I'm on FreeBSD 5.4-RELEASE i386

pptpclient-1.5.0 installed via pkg_add -r

GENERIC kernel for now.

cat /etc/ppp/ppp.conf
LSI:
 set authname pgollucci
 set authkey xxx
 set timeout 0
 set ifaddr 0 0
 add w.x.y.z/24
 alias enable yes

as root user:

route flush
route add default 192.168.0.1
pptp w.x.y.z LSI &
netstat -nf -finet
Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1UGS 0  289em0
10.0.0.1   10.0.0.174 UH  00   tun0
127.0.0.1  127.0.0.1  UH  0  230lo0
192.168.0  link#1 UC  00em0
192.168.0.100:0d:88:41:25:a1  UHLW1 2903em0   1074

FYI:
 10.0.0.1 is the gateway/router there 10.0.0.174 is the IP dolled out me 
automatically.


so the first problem is that the second line is not a Gateway (G)

so
route add -inet 10.0.0.0/24 10.0.0.174

netstat -nr -finet
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1UGS 1  385em0
10/24  10.0.0.174 UGS 00em0
10.0.0.1   10.0.0.174 UH  00   tun0
127.0.0.1  127.0.0.1  UH  0  230lo0
192.168.0  link#1 UC  00em0
192.168.0.100:0d:88:41:25:a1  UHLW1 2903em0963

Okay that worked, but its on the wrong interface em0 and not tun0 and 
even if its not, I can't

ping 10.0.0.1 or anything in the subnet.

The ROUTE(8) man page is AWFUL here which is very unusual for FreeBSD.
Could greatly benefit from some actual examples.
I'd contribute them, but I obviously don't quite get it yet.

Supposedly I'm supposed to use the -interface parameter but it doesn't 
work in this experience.


killall pptp
route flush
route add default 192.168.0.1
pptp w.x.y.z LSI &
route add -inet 10.0.0.0/24 -interface tun0 10.0.0.174
netstat -nr -finet
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1UGS 0   78em0
10&0xaae   tun0   US  00   tun0
10.0.0.1   10.0.0.174 UH  00   tun0
127.0.0.1  127.0.0.1  UH  0  230lo0
192.168.0  link#1 UC  00em0
192.168.0.100:0d:88:41:25:a1  UHLW1 2907em0   1006

So that gave me a static not what I wanted I don't think and I still 
can't ping anything.


Here's a traceroute to a computer in it
 traceroute 10.0.0.12
traceroute to 10.0.0.12 (10.0.0.12), 64 hops max, 40 byte packets
 1  192.168.0.1 (192.168.0.1)  0.861 ms  0.717 ms  0.733 ms

While I'm at it ... What the heck does 10&0xaae mean ?

Also, I've been told that going to other way, from the office-> me, I am 
pingable.


Any great ideas?


see if the following helps:
http://www.freebsd.org/cgi/getmsg.cgi?fetch=1290015+1295271+/usr/local/www/db/text/2005/freebsd-questions/20050904.freebsd-questions



Thanks in advance




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


software updating for multiple machines

2005-09-09 Thread dave
Hello,
I've got four physical machines, all running 5.4, three of them have
between 1 and 3 jails on them, and all have similar software installed.
Updating each box and jail manually is becoming tedious manually, even with
portupgrade saving my make options. I was wondering if anyone had a system
for packaging software then pushing the packages to the individual machines?
Thanks.
Dave.

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


Re: Home Network Setup Problem

2005-09-09 Thread deltaski
On Friday 09 September 2005 09:52 am, you wrote:
Answers to requested information:
> [EMAIL PROTECTED] wrote:
> > Thank you all, who have considered this message!
> >
> > I am learning BSD with 3 successful units. 1-100mhz pent. running 4.11
> > 1-180mhz pent. running 5.4 and one 266mhz AMD running 5.4
> >
> > I have learned the ins and outs of X, changing rc.conf and am quite good
> > at reinstalling the system after a few "learning" adjustments.
> >
> > Just for fun and my own enjoyment in learning, I have now accepted the
> > challenge of my own home network. I have been able to connect all boxes
> > to my DSL router with DHCP and manual IP assignments and changed/setup
> > NIC's with ifconfig. My reference materal is the Handbook from
> > FreeBSD.org and "The Complete FreeBSD" by Greg Lehey.
> >
> > Now the problem!
> >
> > DSL is 192.168.1.1 - Box B has two NIC's rl0=192.168.1.100 netmask
> > 255.255.255.0 and is connected only to 192.168.1.1 ping works/outside
> > internet works.
> > Box B second NIC rl1=172.16.1.1 netmask 255.255.255.0 and is connected to
> > a standalone switch/router.
>
> Is it a switch, is it a router, or is it really both (high end
> thingy like Cisco 35xx?). Probably it is just a plain old switch
> with no routing capabilities. To avoid confusion, you should call it
> what it is.
>
Oh my, sorry. It is an 8-port 10/100Mbps Ethernet Switch! How does that change 
anything?

> > Box A has one NIC eth0=172.16.1.35 and is connected to the standalone
> > switch/router. Box A can ping 172.16.1.35 and 172.16.1.1 on box b. It can
> > NOT ping 192.168.1.1 or access any outside internet.
> >
> >>From Box B keyboard, I can ping
> >
> > 192.168.1.1/192.168.1.100/172.16.1.1/172.16.1.35
> >
> >>From Box A keyboard, I can ping only 172.16.1.35/172.16.1.1
> >
> > I have tried ifconfig rl0 192.168.1.100 172.16.1.1 netmask 255.255.255.0
> > among many other configurations without success.
> >
> >>From my reading, I think the error of my ways is in the Box B between nic
> >> rl0
> >
> > and rl1. The data packets are not being forwarded from rl1 to rl0 or rl0
> > to rl1. Somewhere I have missed something. If anyone could point me in
> > the correct direction, it would be greatly appreciated.
>
> At a guess, I think what you are missing is to put
>
> gateway_enable="YES"

Oh, my sorry! gateway_enable="YES" is in rc.conf!

>
> into rc.conf of box B (between the Internet router and the inside
> network switch). Otherwise it will not hand packets from one network
> to another. However, you probably do NOT want to enable that without
> also enabling and configuring firewall features on this box as well,
> for which I will refer you to RTFM (the Really Tremendously Fine
> Manual ;).
>
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls.html
>

Oh, my sorry! There is no firewall to complicate the setup. (By the way, I do 
know what RTFM means.)

> If you already have gateway and firewall functions going, does the
> inside box (A) have box B's 172 addr set as its default gateway
> router? If not, then it does not know to send packets destined for
> other networks in that direction for processing. If yes, is your
> firewall configured so tight that it's killing the packets you'd
> like to forward?

Oh, my sorry!  Yes, the default gateway is set and I have no firewall to 
complicate matters.

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


Re: Home Network Setup Problem

2005-09-09 Thread deltaski
On Friday 09 September 2005 09:58 am, you wrote:
> On Friday 09 September 2005 07:39 am, [EMAIL PROTECTED] wrote:
> > Thank you all, who have considered this message!
> >
> > I am learning BSD with 3 successful units. 1-100mhz pent. running
> > 4.11 1-180mhz pent. running 5.4 and one 266mhz AMD running 5.4
> >
> > I have learned the ins and outs of X, changing rc.conf and am quite
> > good at reinstalling the system after a few "learning" adjustments.
> >
> > Just for fun and my own enjoyment in learning, I have now accepted
> > the challenge of my own home network. I have been able to connect all
> > boxes to my DSL router with DHCP and manual IP assignments and
> > changed/setup NIC's with ifconfig. My reference materal is the
> > Handbook from FreeBSD.org and "The Complete FreeBSD" by Greg Lehey.
> >
> > Now the problem!
> >
> > DSL is 192.168.1.1 - Box B has two NIC's rl0=192.168.1.100 netmask
> > 255.255.255.0 and is connected only to 192.168.1.1 ping works/outside
> > internet works.
> > Box B second NIC rl1=172.16.1.1 netmask 255.255.255.0 and is
> > connected to a standalone switch/router.
> >
> > Box A has one NIC eth0=172.16.1.35 and is connected to the standalone
> > switch/router. Box A can ping 172.16.1.35 and 172.16.1.1 on box b. It
> > can NOT ping 192.168.1.1 or access any outside internet.
> >
> > >From Box B keyboard, I can ping
> >
> > 192.168.1.1/192.168.1.100/172.16.1.1/172.16.1.35
> >
> > >From Box A keyboard, I can ping only 172.16.1.35/172.16.1.1
> >
> > I have tried ifconfig rl0 192.168.1.100 172.16.1.1 netmask
> > 255.255.255.0 among many other configurations without success.
> >
> > >From my reading, I think the error of my ways is in the Box B
> > > between nic rl0
> >
> > and rl1. The data packets are not being forwarded from rl1 to rl0 or
> > rl0 to rl1. Somewhere I have missed something. If anyone could point
> > me in the correct direction, it would be greatly appreciated.
>
> In your /etc/rc.conf, you need to tell machine B that it is a gateway.
> Since you are using RFC1918 IP addresses, you probably should turn on
> natd. It is much easier if the switch is right after your DSL because
> then, you don't need B to be a gateway and you don't need to run ipfw
> to get natd.
>
> Kent
Kent, natd is turned on, default gateway is set. I understand your suggestion 
of changing the location of the switch, but, I simply wish to learn the setup 
of a gateway machine. Thank you for your input.
Donald
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Recommendations on Proliant DL-360 server with FreeBSD?

2005-09-09 Thread Ted Mittelstaedt

Your not going to find much because when people don't have problems
with something they generally don't post about it.  Also, there's a
couple different hardware configurations for the DL360, that model
number is kind of a catchall.

The biggest complaint about these is with the SCSI RAID controller
there is lack of software for online management of the array - if
a disk dies your pretty much stuck at looking at the lights on the
front of the box to tell you that one's dead.

HP did write a raid management utility for these for Red Hat linux
perhaps if you went to HP and waved a lot of cash for a large purchase
of these servers around they might be convinced to release the
source code for that driver for it to be ported over.

I take it you have checked out http://www.testdrive.hp.com/

Ted

>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Remy de
>Ruysscher
>Sent: Friday, September 09, 2005 2:08 AM
>To: freebsd-questions@freebsd.org
>Subject: Recommendations on Proliant DL-360 server with FreeBSD?
>
>
>Hi,
>
>We are about to invest in a new server farm, which will consist of the
>HP Proliant DL-360 (2Gb ram, 2x 3.0Ghz Xeon,
>2x 73Gb SCSI 15k,  RAID-1, redundant powersupply, iLO). We have already
>2 of these beauties running, but the management
>wants "proof" this server is robust and stable for FreeBSD 5.4
>/ MySQL /
>Apache 2 / PHP usage (webserver/mailserver).
>
>I feel very confident about this machine, but they want some sort of
>customer recommendations, URLs, FreeBSD support/testen as
>"proof". Since
>it's i386 it has tier-1 support, but that is not enough. We have had
>very bad experiences with the HP Proliant DL-140's (which I
>rejected BTW).
>
>Yes I have googled but found little useable links. If you have
>any URLs,
>or you use such a machine with FreeBSD 5.x please let me know!
>
>Thanks for you help!
>
>Regards,
>Remy.
>
>--
>Internal Virus Database is out-of-date.
>Checked by AVG Anti-Virus.
>Version: 7.0.344 / Virus Database: 267.10.18/86 - Release Date:
>8/31/2005
>

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


Re: FreeBSD 5.4 sparc64 netboot install?

2005-09-09 Thread Robert Slade
On Fri, 2005-09-09 at 07:08, Aaron Glenn wrote:
> On 9/8/05, Kris Kennaway <[EMAIL PROTECTED]> wrote:
> > On Thu, Sep 08, 2005 at 10:48:56PM -0700, Aaron Glenn wrote:
> > > If you can point me to a resource I've overlooked, please do so. I
> > > would greatly appreciate a hit with the cluestick on this one.
> > 
> > You don't need a special bootloader any longer.  Just use the standard
> > one.
> > 
> > Kris
> 
> Fair enough, but that isn't mentioned or documented anywhere. Posting
> to a mailing list is *always* a last resort; and yet I had to because
> I could find nothing even remotely up to date on the subject. I've
> continued to use FreeBSD for the past five years because of the
> documentation. Why isn't the netboot installation method detailed
> definitively somewhere? Is it simply because no one has updated the
> previous one, or is there another reason? If it were supported,
> shouldn't it be listed in the installation notes?
> 
> aaron.glenn

Try this:

http://www.freebsd.org/releases/5.4R/installation-ia64.html

reachable from the home page - > installation notes _ > sparc64

Rob

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


Fingerprint Reader?

2005-09-09 Thread Bill Schmitt (SW)
Does anyone know of a fingerprint reader that has been successfully used 
with FBSD?


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


need more info

2005-09-09 Thread Nathansm
What exactly is FreeBSD? Can it be used by the computer beginner or do you  
need to be a very knowledgable computer user? Is it compatible with my 
computer?  It is a compaq presario 5000 series with an AMD Duron 750MHz  
processor.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to get best results from FreeBSD-questions

2005-09-09 Thread Greg Lehey

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

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

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

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

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

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

=

Contents:

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

I: Introduction
===

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

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

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

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

II:  How to unsubscribe from FreeBSD-questions
==

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

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

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

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

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

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

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

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

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

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

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

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

"The Complete FreeBSD": errata and addenda

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

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

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

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


php compile options

2005-09-09 Thread Vizion
Hi

Some compile configuration questions:

1. When php5 is compiled from ports I understand a file is generated to hold 
the compiled options. On my system there is a file with the following data:

dns1# cat /var/db/ports/php5/options
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for php5-5.0.5
_OPTIONS_READ=php5-5.0.5
WITH_APACHE2=true
WITHOUT_DEBUG=true
WITH_MULTIBYTE=true
WITH_IPV6=true

Am I correct in saying that the options from this file are read by the 
compiler at compile time?

If not this file which file?

2. Options expressed on the command line for php are normally in lower case. 
If I place them in this file should they be capitalized or does that not 
matter to the compiler?

3. Is there a complete list of options with the distribution?




-- 
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Will USB serial ever be fixed?

2005-09-09 Thread Paul Marciano

I have a general question on the status of USB to
serial support in FreeBSD (specifically the ucom and
ftdi drivers).

I need an extra serial port on my system and for
reasons outside the scope of this email I can't just
plug in a PCI card.  I'm trying to use USB, but it
seems that ucom is broken and no one is fixing it.

A tcflush() bug posted last year reports that USB
serial ports hang on a call to tcflush().  This can be
observed by using getty on one.

Another poster reported problems running PPP
(including a kernel crash).


Given the lack of movement in these bugs, it looks
like the FreeBSD developers don't care about ucom...
certainly not enough to fix it.

Now I could get up on a soapbox and say how
unacceptable it is for a fundamental peripheral like
serial ports (even though they're over USB) to be so
obviously broken for so long... but I won't, because
I'm not a developer and I understand that it's a
volunteer thing and overall FreeBSD is otherwise
excellent.


So without wanting to offend (whilst secretly being
pretty frustrated with the corner I find myself in) I
would like to know, hopefully from someone responsible
for the subsystem, if ucom/ftdi is likely to be fixed
in the next six months.


Sigh.  I really don't want to have to move to Linux
for something this small, but USB serial is a system
component I can't change.


Be honest.  Be brutal.  I need to know where FreeBSD
stands on this.

Thanks,
Paul.





__
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Beta-3 Install

2005-09-09 Thread Pablo Ruggia
Hi !!

Just a simple Question.
If I install Freebsd Beta 3, will I be allowed to update easyly all 
applications when freebsd 6.0 becomes final released.

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


Re: Beta-3 Install

2005-09-09 Thread Erik Nørgaard

Pablo Ruggia wrote:
If I install Freebsd Beta 3, will I be allowed to update easyly all 
applications when freebsd 6.0 becomes final released.


Beta 4 is out, so you might as well skip ahead to that. It is a well 
described process to upgrade, and only minor changes will be applided to 
the final release.


Cheers, Erik

--
Ph: +34.666334818   web: http://www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID:  A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: need more info

2005-09-09 Thread Roland Smith
On Fri, Sep 09, 2005 at 12:56:37PM -0400, [EMAIL PROTECTED] wrote:

> What exactly is FreeBSD? 

See the freeBSD homepage: http://www.freebsd.org/

> Can it be used by the computer beginner or do you  
> need to be a very knowledgable computer user?

Some knowledge definitely comes in handy. For an absolute beginner it
can be quite a learning curve. Reed the FreeBSD Handbook, especially the
section about installation:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install.html

> Is it compatible with my computer?  It is a compaq presario 5000
> series with an AMD Duron 750MHz processor.

Probably yes. The processor should not be a problem, but other devices
like network- or graphics chip tend to vary in brand name computers, so
it's impossible to tell.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpBfK53o3ufP.pgp
Description: PGP signature


Re: software updating for multiple machines

2005-09-09 Thread Roland Smith
On Fri, Sep 09, 2005 at 11:39:59AM -0400, dave wrote:
> Hello,
> I've got four physical machines, all running 5.4, three of them have
> between 1 and 3 jails on them, and all have similar software installed.
> Updating each box and jail manually is becoming tedious manually, even with
> portupgrade saving my make options. I was wondering if anyone had a system
> for packaging software then pushing the packages to the individual machines?

The -p option of portupgrade can be used to build a package from a
upgraded port. You can use this p[ackage to install on the other
machines, provided they have the same architecture.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpiQTjFYCLrf.pgp
Description: PGP signature


Re: php compile options

2005-09-09 Thread Vizion
On Friday 09 September 2005 09:59,  the author Vizion contributed to the 
dialogue on-
 php compile options: 

>Hi
>
>Some compile configuration questions:
>
>1. When php5 is compiled from ports I understand a file is generated to hold
>the compiled options. On my system there is a file with the following data:
>
>dns1# cat /var/db/ports/php5/options
># This file is auto-generated by 'make config'.
># No user-servicable parts inside!
># Options for php5-5.0.5
>_OPTIONS_READ=php5-5.0.5
>WITH_APACHE2=true
>WITHOUT_DEBUG=true
>WITH_MULTIBYTE=true
>WITH_IPV6=true
>
>Am I correct in saying that the options from this file are read by the
>compiler at compile time?
>
>If not this file which file?
>
>2. Options expressed on the command line for php are normally in lower case.
>If I place them in this file should they be capitalized or does that not
>matter to the compiler?
>
>3. Is there a complete list of options with the distribution?

Just to add to the questions 
Command line compile options:
It looks as though there has been some work (thank you) done to build an 
options dialogue:

dns1# make config options 
generates a screen dialogue with options:
Use apache 2.x instead of apache 1.3.
Enable debug
Enable zend multibyte support
Enable ipv6 support

However as this fialogue foes not contain the full set of php compile options 
how does one choose to compile with additional options? I tried using the 
following from the command line (as per PHP & MySQL by Luke welling & Laura 
Thoson) giving an illegal option error:

dns1# make config --with-mysqli=/usr/local/bin/mysql_config 
--with-apache=/usr/local/etc/apache2 --with-gd --with-jpeg-dir=/usr/local/lib 
--with-tiff-dir=/usr/local/lib
make: illegal option -- -

Thanks in advance for help

-- 
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: need more info

2005-09-09 Thread Jerry McAllister
> 
> What exactly is FreeBSD? Can it be used by the computer beginner or do you  
> need to be a very knowledgable computer user? Is it compatible with my 
> computer?  It is a compaq presario 5000 series with an AMD Duron 750MHz  
> processor.

FreeBSD is an operating system.
If you are familiar with something like MAC OS-X, it is somewhat
equivalent in sense to that.   It is sort of equivalent to MS Win-XP
except FreeBSD is a real operating system.

An operating system manages the resources of the computer and
provides an environment in which application programs can function.
Applications would be things like MS-Word, Powerpoint, Excel, CD
writer, etc in the MS world.

Beginners can use FreeBSD, but you need to know that it is not
set up to do all your thinking for you.   People who come from
an MS environment where decisions are made for you and you are
discouraged from having direct access to your machine or control
over resources often have early difficulty getting a handle on the 
concept of FreeBSD and other real operating systems.   For that
reason it is common to say that FreeBSD has a steep initial learning
curve.

But, it depends on what you want.   If you are happy with the limited
access and predetermined patterns of usage (and poor security) provided 
by MS systems then you might find FreeBSD difficult.  But, if you are
trying to gain closer control over your system, or create a secure
system or create your own types of uses you will begin to find that
FreeBSD is the easier one to use and that MS systems have a steep
learning curve.   

One more thing is that, if your intention is to use your machine as
a robust and reasonably secure server on the internet, FreeBSD is
a clearer path to success.

MAC OS competes well with FreeBSD in personal use, but less so as
a server.   MS stuff is a perpetual headache as a server.

Almost any "WinTel" PC-like machine will work well for FreeBSD.
Some oddball and/or weak devices that might be installed on a PC
do not have drivers in FreeBSD for them.   In most cases, that
is a good/fortunate thing, because those devices are not up to
the rigors of serious network server service.

Each Release version of the FreeBSD os has a list on the web page of 
known devices that are supported.   It is a long list.   Sometimes 
you have to extrapolate a little, in that the list names the main 
chip and not always every brand of device that uses the chip and in 
a few cases it names devices without naming the relevent chip and
you have to work it out.   But, mostly the information you need
is there.

So go to http://www.freebsd.org/

Now presuming you are thinking of installing  FreeBSD 5.4, look over on 
the right hand side of the page and you will see "Production Release 5.4"
Under that you will see a link named "Hardware Notes"  Click on it.
Then you will see a page with a list of CPU type platforms.  Chose the
right one and click on it.   Almost all, including regular AMD chips
and all the Intel ixxx series regardless of marketing name are the i386 type.   
Then you will see a page with all the hardware know to work on that
version of FreeBSD.   Generally, anything that is there and anything
that uses the same components as other things there will work.

The final thing to say is read the handbook and other documenation
and then just start trying it out.   There are several good book out
in addition to the handbook.  There area FAQs on many aspects and a
number of web sites with very good information, some conceptual 
documentation and some step by step howto-s. There are online publications
with very good articles and archives.   Most of these can be found 
easily by doing searches from the FreeBSD web site and/or from Google.  

The handbook starts at:  
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html

FAQs start at:  
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/index.html

In the beginning you will probably screw up some stuff.   Just go back 
and reinstall and try some more.  It will become more clear as you gain 
experience and by then you will know so much more about computers than 
any MS user that you will find it hard to limit yourself to the MS world.


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

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


sysctl or system tweak for symbolic links?

2005-09-09 Thread Forrest Aldrich

Hi,

Using FreeBSD_6.0_Beta4 (applies to Beta2, also).

I'm trying to track down a problem I've been having with apache-2.0.54 
not following symbolic links.


It's basically come down to my being able to follow the link if it's in 
the same directory structure (ie: .. or /path/to/..), but fails if the 
symbolic link is located elsewhere (ie: /usr/local/path/directory) or on 
another disk.


I wonder if there's a sysctl or other system variable that handles the 
behavior of or access to symbolic links in this fashion that I may have 
missed.   Seemed like a reasonable conclusion after these tests have 
been failing, though it could be something else, too.


Thanks.


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


Re: php compile options

2005-09-09 Thread Kevin Kinsey

Vizion wrote:


Hi

Some compile configuration questions:

1. When php5 is compiled from ports I understand a file is generated to hold 
the compiled options. On my system there is a file with the following data:


dns1# cat /var/db/ports/php5/options
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for php5-5.0.5
_OPTIONS_READ=php5-5.0.5
WITH_APACHE2=true
WITHOUT_DEBUG=true
WITH_MULTIBYTE=true
WITH_IPV6=true

Am I correct in saying that the options from this file are read by the 
compiler at compile time?


 



I'm willing to be corrected, but AFAIK the answer is "yes, you are correct".


If not this file which file?

2. Options expressed on the command line for php are normally in lower case. 
If I place them in this file should they be capitalized or does that not 
matter to the compiler?
 



You should not do anything to this file, which is why it says "no user-
servicable parts inside!"

If you wish to change the options use the "make config" (or "make
reconfig", if available) target in the ports's directory (in this case,
/usr/ports/lang/php5?)  The ports system handles all this stuff
automagically, and this is why we use and recommend it. 


For you to do everything by hand kinda makes
the great work of ale@ become redundant; of course,
it's your choice, but why make it harder than it is?


3. Is there a complete list of options with the distribution?
 



Every important option should be presented via the ncurses interface
used by "make config".  There may be other, little known options; for
these, I'd recommend searching php.net first, and then asking at
a PHP forum or mailing list; but if they were very useful, very common,
whatever, then they'd already be taken care of by the port maintainer.
IMHO, he does a great job with PHP.

Note that in the case of PHP, these four options are the only ones
available.  Support for the PHP "extensions" is available by installing
the seperate PHP extensions port; see /usr/ports/UPDATING, entry
from last summer, IIRC.

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


Re: Beta-3 Install

2005-09-09 Thread Kris Kennaway
On Fri, Sep 09, 2005 at 02:34:01PM -0300, Pablo Ruggia wrote:
> Hi !!
> 
> Just a simple Question.
> If I install Freebsd Beta 3, will I be allowed to update easyly all 
> applications when freebsd 6.0 becomes final released.

The only changes that will occur to the third-party applications
shipped with 6.0 between now and then are security fixes, and
upgrading is easy using portupgrade.

Kris


pgpE3aQ5AAFjc.pgp
Description: PGP signature


Re: tar -u adds all files regardless of mod date

2005-09-09 Thread Lowell Gilbert
Gareth Bailey <[EMAIL PROTECTED]> writes:

> I have a directory I want to backup at /usr/dir_a/dir_b.
> I want to back the content of this dir to /usr/backups/dir_b
> so I tried the following:
> 
> # cd /usr/backups/dir_b
> # tar -cf dir_b.tar /usr/dir_a/dir_b
> 
> Now I have dir_b.tar which is 65MB in size.
> If i then try to update modified files by doing this:
> 
> # tar -uf dir_b.tar /usr/dir_a/dir_b
> 
> and I end up with dir_b.tar being 130MB (double size) which
> should not be the case since no files have been modified in
>  /usr/dir_a/dir_b.
> 
> I do not get this problem if I do the same in the /usr/dir_a
> directory. In the /usr/dir_a dir the tar file remains the same
> size.
> 
> I would much appreciate some input!

[This essentially adds up to doing 
 # tar -cf foo.tar $target_path
and then immediately 
 # tar -uvf foo.tar $target_path
shows an update.]

You didn't list any information about your system, so I don't even
know whether you're using the Gnu tar or the libarchive one, which 
has been standard for a few months now.

However, I'm seeing something like that on RELENG_5, with the new
tar.  It isn't happening to all files, though, and I haven't 
figured out why it's picking the files it is...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: need more info

2005-09-09 Thread Kevin Kinsey

Roland Smith wrote:


On Fri, Sep 09, 2005 at 12:56:37PM -0400, [EMAIL PROTECTED] wrote:

 

What exactly is FreeBSD? 
   



See the freeBSD homepage: http://www.freebsd.org/

 

Can it be used by the computer beginner or do you  
need to be a very knowledgable computer user?
   



Some knowledge definitely comes in handy. For an absolute beginner it
can be quite a learning curve. Reed the FreeBSD Handbook, especially the
section about installation:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install.html

 



I would add that if you are able to climb the learning curve, you
will probably find it a rewarding experience.

FreeBSD is highly customizable and easily breakable if you
don't do things right.  OTOH, if you follow the (well-written!)
instructions, you end up with a highly reliable and usable
system for most general purposes.  If you need a computer
for a specific purpose, you should do a lot, I repeat, a lot
of research before deciding to use FreeBSD for your
purpose.

I'll clue you in: gaming machine?  not likely, especially for
a beginner and some games.  Web/Mail/File/DHCP/FTP/NAT/Firewall
server? Nothing better for the price, for the most part, religious
beliefs excepted, of course.  (Do you know what 'Linux' is?  FreeBSD
is _not_ Linux, although there are many similarities)


Is it compatible with my computer?  It is a compaq presario 5000
series with an AMD Duron 750MHz processor.
   



Probably yes. The processor should not be a problem, but other devices
like network- or graphics chip tend to vary in brand name computers, so
it's impossible to tell.

Roland
 



He's right, but he forgot to add "without your telling us
about all your hardware". 


If you read the website carefully, at some point you'll probably find
the page(s) that talk about hardware compatability.

Also, the most important URI for a FreeBSD user would be:

http://www.freebsd.org/handbook

(He did mention this, more or less).

Although the community is fairly friendly, we're a little
picky about who those friends are; and if you don't RTFM (Google
for it ;-) no one is going to shed too many tears with you when
things take a turn for the worse.  The good news is that there
is usually a light at the end of the tunnel, and with FreeBSD
it is not an oncoming Train (read "hefty license fee", "virus",
"blue screen of death", "need to reformat and reinstall the system".

If you want to try FreeBSD, be prepared to read the instruction pages. 
By the dozens


Respectfully,

Kevin Kinsey

P.S.  I would mention that in our office we have a
Presario 5150 running at 300 Mhz, with stock hardware
and no issues except we occasionally have a system "lock up"
which is not common in FreeBSD; we suspect a failing HDD
controller, but it could be an issue with XFree/Xorg and we
have yet to spend enough time on it to discover the real cause.
(The system is used by a part time employee as a workstation
and is not "mission critical", per se.  The hardware is a little
old, at least in our case.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


keyboard bug?

2005-09-09 Thread Lucas Galete
i have a nootebook toshiba satellite a20. i've installed the freebsd 
5.4-release with the X and enliigghtenment.. buut sometimes when I press 
a key, this''s show twice onn screen. (just readind this email you'll 
seen what's goinng wroonng here! ) i hhave no ideia whhat is going on... 
theree is some way to configg thhe keyboard repeat rate on X ?

ideias are weelcome.. thanks all..

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


Re: php compile options

2005-09-09 Thread Vizion
On Friday 09 September 2005 11:13,  the author Kevin Kinsey contributed to the 
dialogue on-
 Re: php compile options: 

>Vizion wrote:
>>Hi
>>
>>Some compile configuration questions:
>>
>>1. When php5 is compiled from ports I understand a file is generated to
>> hold the compiled options. On my system there is a file with the following
>> data:
>>
>>dns1# cat /var/db/ports/php5/options
>># This file is auto-generated by 'make config'.
>># No user-servicable parts inside!
>># Options for php5-5.0.5
>>_OPTIONS_READ=php5-5.0.5
>>WITH_APACHE2=true
>>WITHOUT_DEBUG=true
>>WITH_MULTIBYTE=true
>>WITH_IPV6=true
>>
>>Am I correct in saying that the options from this file are read by the
>>compiler at compile time?
>
>I'm willing to be corrected, but AFAIK the answer is "yes, you are correct".
>
>>If not this file which file?
>>
>>2. Options expressed on the command line for php are normally in lower
>> case. If I place them in this file should they be capitalized or does that
>> not matter to the compiler?
>
>You should not do anything to this file, which is why it says "no user-
>servicable parts inside!"
>
>If you wish to change the options use the "make config" (or "make
>reconfig", if available) target in the ports's directory (in this case,
>/usr/ports/lang/php5?)  The ports system handles all this stuff
>automagically, and this is why we use and recommend it.
>
>For you to do everything by hand kinda makes
>the great work of ale@ become redundant; of course,
>it's your choice, but why make it harder than it is?
>
>>3. Is there a complete list of options with the distribution?
>
>Every important option should be presented via the ncurses interface
>used by "make config".  
I do wish thiss kind of info was documented, for every port  in 
Port_Install.readme or something similar- I have spent ages trying to get to 
bottom of how to deal with this!

Different ports require different knowledge as to how they should be 
installed!

Ah well -- live and learn I gues -- but once someone has learnt can we not 
have a siomple means of passing the learning on without wasting the time of 
every learner!!

>There may be other, little known options; for 
>these, I'd recommend searching php.net first, and then asking at
>a PHP forum or mailing list; but if they were very useful, very common,
>whatever, then they'd already be taken care of by the port maintainer.
>IMHO, he does a great job with PHP.
>
>Note that in the case of PHP, these four options are the only ones
>available.  Support for the PHP "extensions" is available by installing
>the seperate PHP extensions port; see /usr/ports/UPDATING, entry
>from last summer, IIRC.
>
>Kevin Kinsey
>___
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


fwcontrol: unknown format 0x1e

2005-09-09 Thread Erik Nørgaard

Hi,

I am trying to transfer digital video over firewire from my camera
(Canon MXV200, PAL) to my laptop using fwcontrol, but whenever I try I 
get something like this:


# fwcontrol -R tmp/test.dv
(EAGAIN)
(EAGAIN)
fwcontrol: unknown format 0x1e

If I first press play then run the command I get:

# fwcontrol -R tmp/test.dv
PAL
0fwcontrol: unknown format 0x1e

The format code sometimes varies, and I have also got input/output 
error. Repeating can cause system to crash! or other applications to 
coredump.


Trying with "sysctl hw.firewire.try_bmr=0" as suggested in the man-page 
does not change anything.


I have tried to use dvrecv and it correctly identifies the camera/model 
but fails to read a single frame.


What am I missing?

Thanks, Erik

System:

FreeBSD 6.0-BETA4 #0: Tue Sep  6 21:16:56 CEST 2005
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC

Turning on the device results in the following in /var/log/messages:

kernel: fwohci0: BUS reset
kernel: fwohci0: node_id=0xc800ffc1, gen=2, CYCLEMASTER mode
kernel: firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
kernel: firewire0: bus manager 1 (me)
kernel: fwohci0: txd err= 3 miss Ack err
kernel: firewire0: bus_explore node=0 addr=0x400 resp=22 retry=1
kernel: fwohci0: txd err= 3 miss Ack err
kernel: firewire0: bus_explore node=0 addr=0x400 resp=22 retry=2
kernel: fwohci0: txd err= 3 miss Ack err
kernel: firewire0: bus_explore node=0 addr=0x400 resp=22 retry=3
kernel: fwohci0: txd err= 3 miss Ack err
kernel: firewire0: bus_explore node=0 addr=0x400 resp=22 retry=4
kernel: firewire0: bus_explore failed for 1 nodes
kernel: fwohci0: BUS reset
kernel: fwohci0: node_id=0xc800ffc0, gen=3, CYCLEMASTER mode
kernel: firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
kernel: firewire0: bus manager 0 (me)
kernel: fwohci0: BUS reset
kernel: fwohci0: node_id=0x8800ffc0, gen=4, non CYCLEMASTER mode
kernel: firewire0: 2 nodes, maxhop <= 1, cable IRM = 1
kernel: firewire0: bus manager 0 (me)
kernel: firewire0: New S100 device ID:859e1a7e


--
Ph: +34.666334818   web: http://www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID:  A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2


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


Fibre Channel disks to two Systems?

2005-09-09 Thread Danny Howard
[NOTE: If posting followup, please mind the
   cross-post to -questions and -scsi.]

Hello,

We host our PostgreSQL database on FreeBSD.  Until now, we have just
built the beefiest DB server we can spec, and then dump the data every
thirty minutes to a backup DB server, so if the primary DB server fails,
we load the database on the backup and fail over to the backup server.

But I'd rather offload the disk to an external storage device, then I
can have two identical DB servers, and if one fails, I swap the disks
over to the other DB server, mount the filesystem, possibly run data
consistency checks, and proceed from there.

>From my research, I am thus far most impressed with the SANbloc 2Gb,
which holds fourteen FC drives in a 3U rackmount.  It can be had with
redundant RAID controllers, or as a JBOD.  There are similar products
from other vendors as well.

I could concievably do the RAID in software by running a gstripe across a
set of gmirrors.

As I understand it, I can have an FC loop with one or more drives,
connected to two servers, and either server can talk to one or the other
drives exclusively.  My QUESTION is: how is the arbitration done in
FreeBSD?  You run camcontrol on either server and activate / deactivate
drives in the loop?

What happens if say, the primary server locks up in some weird manner?
Can it block the backup server from talking to the drives?  (We can
always have a NOC tech turn off a badly failed primary database, and
power-cycle the disk array, if needed ...)

A really far-out idea I had was that with fourteen drive bays I could
have two hot spares, and then set up a stripe across four mirrored pairs
(4x2 = 8-disk RAID10) and then with the remaining four drives assign
each to be a third component of the gmirrored pairs, let the gmirrors
sync up, then detach those drives from the gmirrors, mount them on the
backup database, gstripe those containers together, and have a
point-in-time "snapshot" of the drive array that could be mounted on the
backup server, from which I could run database dumps, or conduct
failover tests, etc.  (I could kick this around -geom. :)

Uhmmm, has anyone done similar?  Suggestions?  Feedback?  Advice?

Or, should I try to get a NetApp, or similar device, even though FreeBSD
does not support iSCSI, because NFS performance over GigE may still beat
FC?

Also, does anyone have a FreeBSD-friendly storage systems integrator or
other vendor they can reccomend, particularly one near the San Francisco
area?  I keep contacting various vendors who then fail to get back to
me. :(

Thanks for all feedback and suggestions!

Sincerely,
-danny

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


Re: Will USB serial ever be fixed?

2005-09-09 Thread Frank Mayhar
On Fri, 2005-09-09 at 10:09 -0700, Paul Marciano wrote:
> I have a general question on the status of USB to
> serial support in FreeBSD (specifically the ucom and
> ftdi drivers).
> 
> I need an extra serial port on my system and for
> reasons outside the scope of this email I can't just
> plug in a PCI card.  I'm trying to use USB, but it
> seems that ucom is broken and no one is fixing it.
> 
> A tcflush() bug posted last year reports that USB
> serial ports hang on a call to tcflush().  This can be
> observed by using getty on one.
> 
> Another poster reported problems running PPP
> (including a kernel crash).

Well, I've got a handful of such devices that appear to work just fine.
Now, mine are based on the Prolific PL-2303* chips but you don't mention
any specific hardware.  All I know is that I'm using them for consoles
(and am  running getty on them) with no hangs or crashes of any kind.

I'm also pretty sure that if you could provide fixes (or at least better
characterization of the problems you're seeing), your concerns might be
more likely to be addressed.  As you know, this is an all-volunteer
effort.
-- 
Frank Mayhar [EMAIL PROTECTED] http://www.exit.com/
Exit Consulting http://www.gpsclock.com/
http://www.exit.com/blog/frank/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Can't execute a script

2005-09-09 Thread bob self

I have a simple test script called 'scripttest' in /root/bin:

-rwxr-xr-x  1 root  wheel  121 Sep  9 14:55 scripttest

my $PATH IS
   
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:*/root/bin*



#!/bin/sh
echo "pinging"
#end of scripttest

If I run "which scripttest", I get /root/bin/scripttest

But if I try to run this test script I get "scripttest: Command not found."

Why is that happening?

thanks,
Bob Self




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


MYSQLD mysql-server for 5.2.1

2005-09-09 Thread John Do
I installed mysql-server and mysql-clients but can't
find the mysqld executable to start the mysql server.

What is it that I'm missing?

Thanks guys 






__ 
Find your next car at http://autos.yahoo.ca
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Can't access db with pgaccess

2005-09-09 Thread stan
I'm install postgress V7 on a 5..4-STABLE machine. I;ve installed it from
ports, and I've added myself as a user, and created a database. I can
access this database using "psql dbname" and all works fine.

I can't seem to get pgaccess to connect at all. I;ve checked and sockstat
reports:

pgsqlpostgres   485   3  stream /tmp/.s.PGSQL.5432

What am I doing wrong?

-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Serial Port data dumping program

2005-09-09 Thread Ian Smith
Hi Paul,

catching up on a week's digests .. and seeig no further messages on this
topic so far, I don't know whether you've sorted this out yet.  Anyway..

 > Message: 20
 > Date: Mon, 5 Sep 2005 17:32:41 +0800
 > From: "Paul Hamilton" <[EMAIL PROTECTED]>
 > Subject: RE: Serial Port data dumping program
 > To: "'Glenn Dawson'" <[EMAIL PROTECTED]>,
 >  
[..]
 > > -Original Message-
 > > From: [EMAIL PROTECTED] 
 > > [mailto:[EMAIL PROTECTED] On Behalf Of Glenn Dawson
 > > Sent: Monday, 5 September 2005 5:19 PM
 > > To: Paul Hamilton; freebsd-questions@freebsd.org
 > > Subject: Re: Serial Port data dumping program
 > > 
 > > 
 > > At 01:08 AM 9/5/2005, Paul Hamilton wrote:
 > > >Hi,
 > > >
 > > >I am trying to debug a Mini SSC FreeBSD program that I am trying to 
 > > >write. It would be nice to be able to be able to see what is being 
 > > >transmitted.  It would help in the debugging of my program.
 > > >
 > > >Here is a link to a Windows based Mini SSC program: 
 > > >http://www.rentron.com/Mini-ssc.htm  Using this, I can control the 
 > > >servo, so I know the hardware and cables work etc.
 > > >
 > > >I have been using the 'minicom' port to dump the received data.  

I guess you mean the _transmitted_ data, right?  I just grabbed the
manual at http://www.seetron.com/pdf/ssc2_mnl.pdf and note that the
board only _receives_ command data packets.

 > > >However, it doesn't seem to collect the data properly.  Data 
 > > coming in 
 > > >should be in accordance with the SSC protocol, ie:
 > > >
 > > >byte 1:0xFF// sync byte
 > > >
 > > >byte 2:   0x01 - 0x25f//servo address
 > > 
 > > How do you fit 0x25f into a single byte? (I count 10 bits required)
 > > 
 > 
 > Yep, a typo, should have been:  0xff

Well, it should be 0-7 (for 1 board, 8-15 for a second board, etc)

 > > >byte 3:   0x00 - 0x255   // servo position
 > > 
 > > Same question as above.
 > 
 > Brain thinking in hex, fingers working in decimal ;-)

Actually it's 0-254 (0x00 - 0xfe) .. 0xff would be another sync byte. 

 > > >Here is a dump of the collected data (via minicom):
 > > >
 > > >#hexdump  minicom.cap
 > > >000 45ff 49ff 4cff 50ff 53ff 57ff 5aff 57ff
 > > >010 53ff 50ff 4cff 49ff 45ff 45ff 01ff ff82
 > > >020 8101 01ff ff80 8202 02ff ff81 8002 03ff
 > > >030 ff83 8203 03ff ff81 8003 7fff 7fff 7eff
 > > >040 01ff ff7f 7f02 03ff ff7f ff7f 8001 02ff
 > > >050 ff80 8003 04ff ff80 ff80 8006 07ff 0080
 > > >
 > > >Looking at the first row of data, it is only showing two bytes, sync 
 > > >and servo position.  Rows 020 and 030, shows some servo 
 > > addresses, but 
 > > >sometimes, together!  Both the mini-ssc.exe and minicom program are 
 > > >using 9600 8n1, so why is it showing this?  Is there 
 > > something I have 
 > > >missed in the setup of minicom?  Looks like this is a serial buffer 
 > > >problem.

Maybe flow control?  Is the serial port's UART programmed to ignore
CTS/RTS, and/or DTR/DSR?  You say you've only wired signal ground, and
TxD to RxD, but you 'normally' can't transmit unless CTS is asserted
(say, by RTS), may need DTR/DSR too, and perhaps expect DCD to receive?
I don't really get what you're doing with minicom - are you receiving
the data on another port, or just echoing your transmitted data back?

 > > You probably have byte ordering issues.  Does something like this 
 > > look more reasonable?
 > > 
 > > 000 ff45 ff49 ff4c ff50 ff53 ff57 ff5a ff57
 > > 010 ff53 ff50 ff4c ff49 ff45 ff45 ff01 82ff
 > > 020 0181 ff01 80ff 0282 ff02 81ff 0280 ff03
 > > 030 83ff 0382 ff03 81ff 0380 ff7f ff7f ff7e
 > > 040 ff01 7fff 027f ff03 7fff 7fff 0180 ff02
 > > 050 80ff 0380 ff04 80ff 80ff 0680 ff07 8000
 > > 
 > > -Glenn
 > 
 > Yes, somewhat better, but still missing bytes here and there, ie. First
 > line, all the servo address bytes etc.
 > 
 > Why would the bytes be swapped around?

Seems that's just hexdump displaying 16-bit values byteswapped.  'hd'
may give you a more useful display order, as it's truly 8 bit data:

paqi% hexdump
fgjdg kj
^D
000 6766 646a 2067 6a6b 000a
009

paqi% hd
fgjdg kj
^D
  66 67 6a 64 67 20 6b 6a  0a   |fgjdg kj.|
0009

 > > >Is there a better program I could use to display the incoming serial 
 > > >data in hex?

hd :)  Again, you mean a reflection of your outgoing data, don't you?

 > > >NOTE:  I only use two wires, signal ground and Tx Data (connected to 
 > > >the Rx Data).  The servo does respond correctly, so I know 
 > > the serial 
 > > >data must be in the correct 3 byte format.

You could try 2 stop bits - they say one or more.

In the second example program in (good grief!) QBASIC in the above PDF
manual, they begin by initialising the serial port thus: 

 OPEN "com1:9600,N,8,1,CD0,CS0,DS0,OP0" FOR OUTPUT AS #1;

I gather CD0 means ignore DCD, CS0 ignore CTS, DS0 ignore DSR; don't
know about OP0.  Seems you need no flow control, or null-modem wiring?

Cheers, Ian


Re: Home Network Setup Problem

2005-09-09 Thread Greg Barniskis

[EMAIL PROTECTED] wrote:


Is it a switch, is it a router, or is it really both (high end
thingy like Cisco 35xx?). Probably it is just a plain old switch
with no routing capabilities. To avoid confusion, you should call it
what it is.



Oh my, sorry. It is an 8-port 10/100Mbps Ethernet Switch! How does that change 
anything?


It really doesn't (you don't want a router in that location, you 
want a switch). A router connects multiple IP subnets that otherwise 
cannot talk to one another. Turning on the gateway feature on your 
FreeBSD box makes it a two-interface router. A switch merely 
multiplexes packets on many ports (it's a signal repeater/amplifier).


[snip]

Oh, my sorry!  Yes, the default gateway is set and I have no firewall to 
complicate matters.


Ah... I see the problem now. You *MUST* do NAT on your BSD gateway, 
unless you personally control the configuration of your DSL router 
and can give it the necessary routing instructions to find your 172 
network.


You are trying to ping your DSL router from a private network 
address that the router does not know about. The ping will reach the 
DSL router and it will not know where to send the reply because your 
private address does not (cannot) exist in its routing table. So, it 
sends the reply on its default route, which is towards the Internet. 
Bye, bye ping reply!


Again, this is just very basic networking stuff. I didn't see it 
before because I route packets between private networks all the time 
and it works -- the difference is that all my routers are 
well-informed about the pathways to all nearby networks.


For the background information you need to know, buy this or find it 
at your local library:  http://www.oreilly.com/catalog/tcp3/


I'm sure there are other and even better titles.

--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Will USB serial ever be fixed?

2005-09-09 Thread Gary W. Swearingen
Paul Marciano <[EMAIL PROTECTED]> writes:

> So without wanting to offend (whilst secretly being
> pretty frustrated with the corner I find myself in) I
> would like to know, hopefully from someone responsible
> for the subsystem, if ucom/ftdi is likely to be fixed
> in the next six months.

You can probably learn something about who, if anyone, is responsible
by poking around http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/usb/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't execute a script

2005-09-09 Thread Glenn Dawson

At 12:01 PM 9/9/2005, bob self wrote:

I have a simple test script called 'scripttest' in /root/bin:

-rwxr-xr-x  1 root  wheel  121 Sep  9 14:55 scripttest

my $PATH IS

/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:*/root/bin*


#!/bin/sh
echo "pinging"
#end of scripttest

If I run "which scripttest", I get /root/bin/scripttest

But if I try to run this test script I get "scripttest: Command not found."

Why is that happening?


Assuming you're using csh, did you rehash after creating the script?
Did you try to execute it with it's full path? like:
/root/bin/scripttest

-Glenn



thanks,
Bob Self




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


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


Re: Will USB serial ever be fixed?

2005-09-09 Thread Warner Losh
> Be honest.  Be brutal.  I need to know where FreeBSD
> stands on this.

Personal opinion: You overstate the probelems, and have a bad
attitude.

More details:

I use umodem + ucom all the time for connecting to the internet on my
laptop.  I've had exactly 0 problems doing this for the past 4 years.
I run current every day on this laptop, and do substantial
development.  If the problems were as dire as you suggest, I'd be
unable to do this at all.

There may be other problems in the serial subsystem intersected with
usb, however I think you vastly overstate your case.  Even to the
point that it will be hard for you to effect change because people
don't take you seriously.

Warner


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


Re: Can't execute a script

2005-09-09 Thread bob self

Glenn Dawson wrote:


Assuming you're using csh, did you rehash after creating the script?
Did you try to execute it with it's full path? like:
/root/bin/scripttest

-Glenn


Yes, I did 'rehash'. I'm running tcsh as root, FreeBSD 6.0.

Also, I ran "/root/bin/scripttest" and I still get "command not found".




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


Re: Will USB serial ever be fixed?

2005-09-09 Thread Mike Tancsa

At 02:59 PM 09/09/2005, Frank Mayhar wrote:

On Fri, 2005-09-09 at 10:09 -0700, Paul Marciano wrote:
> I have a general question on the status of USB to
> serial support in FreeBSD (specifically the ucom and
> ftdi drivers).
>
> I need an extra serial port on my system and for
> reasons outside the scope of this email I can't just
> plug in a PCI card.  I'm trying to use USB, but it
> seems that ucom is broken and no one is fixing it.
>
> A tcflush() bug posted last year reports that USB
> serial ports hang on a call to tcflush().  This can be
> observed by using getty on one.
>
> Another poster reported problems running PPP
> (including a kernel crash).

Well, I've got a handful of such devices that appear to work just fine.
Now, mine are based on the Prolific PL-2303* chips but you don't mention
any specific hardware.  All I know is that I'm using them for consoles
(and am  running getty on them) with no hangs or crashes of any kind.


I am using the 2 port serial USB card from http://www.byterunner.com/ 
and it works quite well on RELENG_5 and RELENG_6


ucom0: FTDI USB FAST SERIAL ADAPTER, rev 2.00/5.00, addr 3
ucom1: FTDI USB FAST SERIAL ADAPTER, rev 2.00/5.00, addr 3

There were a number of fixes that went into RELENG_5 that fixed 
panics that I was seeing.  I use this ucom device presently to access 
2 servers without any issues


If you can provide more detail as to exactly what you were doing to 
trigger the panic, I can try and reproduce it on my gear here to see 
if its fixed or not.



---Mike 


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


Re: Home Network Setup Problem

2005-09-09 Thread deltaski
On Friday 09 September 2005 02:14 pm, Greg Barniskis wrote:
> [EMAIL PROTECTED] wrote:
> >>Is it a switch, is it a router, or is it really both (high end
> >>thingy like Cisco 35xx?). Probably it is just a plain old switch
> >>with no routing capabilities. To avoid confusion, you should call it
> >>what it is.
> >
> > Oh my, sorry. It is an 8-port 10/100Mbps Ethernet Switch! How does that
> > change anything?
>
> It really doesn't (you don't want a router in that location, you
> want a switch). A router connects multiple IP subnets that otherwise
> cannot talk to one another. Turning on the gateway feature on your
> FreeBSD box makes it a two-interface router. A switch merely
> multiplexes packets on many ports (it's a signal repeater/amplifier).
>
> [snip]
>
> > Oh, my sorry!  Yes, the default gateway is set and I have no firewall to
> > complicate matters.
>
> Ah... I see the problem now. You *MUST* do NAT on your BSD gateway,
> unless you personally control the configuration of your DSL router
> and can give it the necessary routing instructions to find your 172
> network.
>
> You are trying to ping your DSL router from a private network
> address that the router does not know about. The ping will reach the
> DSL router and it will not know where to send the reply because your
> private address does not (cannot) exist in its routing table. So, it
> sends the reply on its default route, which is towards the Internet.
> Bye, bye ping reply!
>
> Again, this is just very basic networking stuff. I didn't see it
> before because I route packets between private networks all the time
> and it works -- the difference is that all my routers are
> well-informed about the pathways to all nearby networks.
>
> For the background information you need to know, buy this or find it
> at your local library:  http://www.oreilly.com/catalog/tcp3/
>
> I'm sure there are other and even better titles.
Greg, thank you for the link.
But, I do have one problem with your analysis. If the DSL router 
(192.168.1.1) received a ping from 192.168.1.100 would it not respond to 
192.168.1.100 as that is a known address? If 192.168.1.100 can connect to the 
internet thru 192.168.1.1 it is indeed reachable from the DSL router 
192.168.1.1! As such, the problem would be no packets getting to 
192.168.1.100 from the other available network (172.16.1.xxx). Remember, NIC 
192.168.1.100 can ping and connect to the internet. 172.16.1.35 can ping 
192.168.1.100 BUT, 172.16.1.35 CANNOT ping 192.168.1.1 thru 192.168.1.100!

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


onboard sata raid & freebsd 5.4 need help

2005-09-09 Thread jstarng
I have the OS installed on an IDE and i want to add two drives for RAID-0 
striping (1 large drive).

They are two 200GB maxtor SATA HDD's

i plugged them in, and used the bios utility to create the array.

when i start Freebsd i can see the MB's onboard controller listed in dmesg 
as:

atapci0  port blah blah blah irq 20 at device 
15.0 on pci0

but then later it lists the drives seperately:

ad4: 194481MB  [395136/16/63] at ata2-master 
SATA150
ad6: 194481MB  [395136/16/63] at ata2-master 
SATA150

so i'm a little confused. was the raid array created? if so how do i get 
freebsd to view it as one drive because when i fdisk to create the 
partitions, i see both drives listed seperately. and if the array was not 
created, can someone please point me in the right direction?

i'm not finding much with google/freebsd handbook.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't execute a script

2005-09-09 Thread Peter A. Giessel
On 9/9/2005 11:01, bob self seems to have typed:
> If I run "which scripttest", I get /root/bin/scripttest
> 
> But if I try to run this test script I get "scripttest: Command not found."

Its a stupid thought, but could you run "which sh"?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't execute a script

2005-09-09 Thread Glenn Dawson

At 12:49 PM 9/9/2005, bob self wrote:

Glenn Dawson wrote:


Assuming you're using csh, did you rehash after creating the script?
Did you try to execute it with it's full path? like:
/root/bin/scripttest

-Glenn

Yes, I did 'rehash'. I'm running tcsh as root, FreeBSD 6.0.

Also, I ran "/root/bin/scripttest" and I still get "command not found".


with such a simple script, there's not much that can go wrong, but 
you'll see the same error message if the shell specified at the 
beginning of the script doesn't exist.


-Glenn






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


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


Re: onboard sata raid & freebsd 5.4 need help

2005-09-09 Thread jstarng
*mans atacontrol

then types: atacontrol RAID0 512 ad4 ad6

wowwy...

...

now will i have to do this each time i reboot or is there something i can do 
in fstab or something to have it start the raid automatically?

On 9/9/05, jstarng <[EMAIL PROTECTED]> wrote:
> 
> I have the OS installed on an IDE and i want to add two drives for RAID-0 
> striping (1 large drive).
> 
> They are two 200GB maxtor SATA HDD's
> 
> i plugged them in, and used the bios utility to create the array.
> 
> when i start Freebsd i can see the MB's onboard controller listed in dmesg 
> as:
> 
> atapci0  port blah blah blah irq 20 at device 
> 15.0 on pci0
> 
> but then later it lists the drives seperately:
> 
> ad4: 194481MB  [395136/16/63] at ata2-master 
> SATA150
> ad6: 194481MB  [395136/16/63] at ata2-master 
> SATA150
> 
> so i'm a little confused. was the raid array created? if so how do i get 
> freebsd to view it as one drive because when i fdisk to create the 
> partitions, i see both drives listed seperately. and if the array was not 
> created, can someone please point me in the right direction?
> 
> i'm not finding much with google/freebsd handbook.
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: onboard sata raid & freebsd 5.4 need help

2005-09-09 Thread jstarng
atacontrol create RAID0 512 ad4 ad6

..rather

On 9/9/05, jstarng <[EMAIL PROTECTED]> wrote:
> 
> *mans atacontrol
> 
> then types: atacontrol create RAID0 512 ad4 ad6
> 
> wowwy...
> 
> ...
> 
> now will i have to do this each time i reboot or is there something i can 
> do in fstab or something to have it start the raid automatically?
> 
> On 9/9/05, jstarng <[EMAIL PROTECTED]> wrote: 
> > 
> > I have the OS installed on an IDE and i want to add two drives for 
> > RAID-0 striping (1 large drive). 
> > 
> > They are two 200GB maxtor SATA HDD's
> > 
> > i plugged them in, and used the bios utility to create the array.
> > 
> > when i start Freebsd i can see the MB's onboard controller listed in 
> > dmesg as:
> > 
> > atapci0  port blah blah blah irq 20 at 
> > device 15.0 on pci0
> > 
> > but then later it lists the drives seperately:
> > 
> > ad4: 194481MB  [395136/16/63] at ata2-master 
> > SATA150
> > ad6: 194481MB  [395136/16/63] at ata2-master 
> > SATA150
> > 
> > so i'm a little confused. was the raid array created? if so how do i get 
> > freebsd to view it as one drive because when i fdisk to create the 
> > partitions, i see both drives listed seperately. and if the array was not 
> > created, can someone please point me in the right direction?
> > 
> > i'm not finding much with google/freebsd handbook.
> > 
> 
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't execute a script

2005-09-09 Thread bob self

Peter A. Giessel wrote:


On 9/9/2005 11:01, bob self seems to have typed:
 


If I run "which scripttest", I get /root/bin/scripttest

But if I try to run this test script I get "scripttest: Command not found."
   



Its a stupid thought, but could you run "which sh"?

 



[EMAIL PROTECTED]/bin# which sh
/bin/sh

oh yes, I'm running 6.0 BETA 4


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


Re: Can't execute a script

2005-09-09 Thread bob self

Peter A. Giessel wrote:


On 9/9/2005 11:01, bob self seems to have typed:
 


If I run "which scripttest", I get /root/bin/scripttest

But if I try to run this test script I get "scripttest: Command not found."
   



Its a stupid thought, but could you run "which sh"?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


 

I also should mention that I have many other shell scripts in /root/bin 
and most of them work.
I only have two that don't work besides this test script, but I can't 
see why they shouldn't work.


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


dhcp client in freebsd 6 beta

2005-09-09 Thread Osmany Guirola Cruz
Hi people
 i upgrade my system from 5.4 to 6 Beta 4 
 and i am using dhclient for my network card
 i boot without problems get my IP, etc etc 
but if i do /etc/rc.d/dhclient stop , or start
nothing happens . in 5.4 this works perfectly 
i Know that freebsd changes the dhclient but now how can i use the rc.d
script 

Thanks 

Osmany
  


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


Re: php compile options

2005-09-09 Thread Kevin Kinsey

Vizion wrote:

On Friday 09 September 2005 11:13,  the author Kevin Kinsey contributed to the 
dialogue on-
Re: php compile options: 

 


Vizion wrote:
   

I do wish thiss kind of info was documented, for every port  in 
Port_Install.readme or something similar- I have spent ages trying to get to 
bottom of how to deal with this!


 



AFAIK, it is documented; see ports(7).

Different ports require different knowledge as to how they should be 
installed!


 



`cd /usr/ports/category/fooport && sudo make install clean`
works in the general case for every port in the tree* (assuming
in this exact case, that you've already installed and configured
"sudo", and the directory /usr/ports/category/fooport exists and
contains a port skelton, of course).  Otherwise do it as root without
calling sudo.  The system does the work, and, in the general sense,
no particular expertise is required.

Ah well -- live and learn I gues -- but once someone has learnt can we not 
have a siomple means of passing the learning on without wasting the time of 
every learner!!
 



Ah, yes.  "I am Locutus of Borg. You will be assimilated. Resistance is 
futile."
But it only works that way in Star Trek ;-)  Real Life is more like Will 
Rogers:

"There are two ways of getting smarter.  One is reading, and the other is
hanging around with smarter people."

Between 'RTFM' and hanging around this list, I'm doing both :-D

Kevin Kinsey

* Occasionally a port is marked as "broken".  Occasionally one is broken,
and nobody else knows about it --- yet.  Both cases would be exceptions.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't execute a script

2005-09-09 Thread N.J. Thomas
* bob self <[EMAIL PROTECTED]> [2005-09-09 15:01:25 -0400]:
> #!/bin/sh
> echo "pinging"
> #end of scripttest
> 
> If I run "which scripttest", I get /root/bin/scripttest
> 
> But if I try to run this test script I get "scripttest: Command not found."
> 
> Why is that happening?

I've seen something like this happen when there is a non-printing
character on the shebang line (like a CTRL-G or similar). So instead of
running /bin/sh, your shell tries to run "/bin/sh^G" -- which obviously
doesn't exist.

Can you run "xxd /root/bin/scripttest" and show us the output? If you
don't have xxd on your system (it usually is packaged with Vim) you can
try "od -x /root/bin/scripttest".

xxd/od will show right away if there is anything funky on the shebang
line that shouldn't be there.

thanks,
Thomas

-- 
N.J. Thomas
[EMAIL PROTECTED]
Etiamsi occiderit me, in ipso sperabo
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: keyboard bug?

2005-09-09 Thread Roland Smith
On Fri, Sep 09, 2005 at 03:38:29PM +, Lucas Galete wrote:
> i have a nootebook toshiba satellite a20. i've installed the freebsd 
> 5.4-release with the X and enliigghtenment.. buut sometimes when I press 
> a key, this''s show twice onn screen. (just readind this email you'll 
> seen what's goinng wroonng here! ) i hhave no ideia whhat is going on... 
> theree is some way to configg thhe keyboard repeat rate on X ?
> ideias are weelcome.. thanks all..

The most permanent way to set the keyboard is to edit xorg.conf, and
add/change the AutoRepeat option in the keyboards InputDevice section.

To experiment with different rates you can use xset with the 'r rate'
option.

In both cases, you need to give two numbers; the first being the delay
in milliseconds before autorepeat starts, and the second being the
number of characters per second. So 'xset r rate 250 40' means a delay
of 250 ms and 40 characters/second.

To see the current settings: 'xset q|less'. The keyboard settings are
the first seven lines.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpidywbgyhsf.pgp
Description: PGP signature


lphp extensions compile error & libmagic

2005-09-09 Thread Vizion
Can anyone advise please

With so many "magic" packages I am uncertain which packages to reinstall when 
I get the following error in
# cd /usr/ports/lang/php5-extensions.

dns1# make config
.
.
. 
dns1# make
===>  Vulnerability check disabled, database not found
===>  Found saved configuration for php5-extensions-1.0
===>  Extracting for php5-extensions-1.0
===>  Patching for php5-extensions-1.0
===>  Configuring for php5-extensions-1.0
dns1# make install
===>  Installing for php5-extensions-1.0
.
.
.
checking for fileinfo support... yes, shared
checking for magic files in default path... not found
configure: error: Please reinstall the libmagic distribution
/* ^^^ */
/* ***/
===>  Script "configure" failed unexpectedly.
Please report the problem to [EMAIL PROTECTED] [maintainer] and attach the
"/usr/ports/sysutils/pecl-fileinfo/work/Fileinfo-1.0/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/sysutils/pecl-fileinfo.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
\*

I have made the detailed report, as requested, to the maintainer but would 
like to be sure that I am using the correct port for  libmagic.

The error report indicates absense of libmagic but:
dns1# pwd
/usr/lib
dns1# ls -l | grep magic
-r--r--r--   1 root  wheel65030 Nov  4  2004 libmagic.a
lrwxrwxrwx   1 root  wheel   13 Apr 28  2004 libmagic.so -> libmagic.so.1
-r--r--r--   1 root  wheel52848 Nov  4  2004 libmagic.so.1
-r--r--r--   1 root  wheel66438 Nov  4  2004 libmagic_p.a

Comments appreciated


Thanks

davdi
-- 
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: php compile options

2005-09-09 Thread Vizion
On Friday 09 September 2005 14:21,  the author Kevin Kinsey contributed to the 
dialogue on-
 Re: php compile options: 

>Vizion wrote:
>>On Friday 09 September 2005 11:13,  the author Kevin Kinsey contributed to
>> the dialogue on-
>>
>> Re: php compile options:
>>>Vizion wrote:
>>
>>I do wish thiss kind of info was documented, for every port  in
>>Port_Install.readme or something similar- I have spent ages trying to get
>> to bottom of how to deal with this!
>
>AFAIK, it is documented; see ports(7).
>
>>Different ports require different knowledge as to how they should be
>>installed!
>
>`cd /usr/ports/category/fooport && sudo make install clean`
>works in the general case for every port in the tree* (assuming
>in this exact case, that you've already installed and configured
>"sudo", and the directory /usr/ports/category/fooport exists and
>contains a port skelton, of course).  

Not quite true in this case you need to know to install extensions when all 
the written php manuals tell you to install php and declare options. It might 
have been helpful to have had a  Port_Install. readme file with that simple 
info in it - just for idiots like me!!

The idiots motto should be to encourage othwers to support one in the notion:

"You''ll not walk alone"

david

>Otherwise do it as root without 
>calling sudo.  The system does the work, and, in the general sense,
>no particular expertise is required.
>
>>Ah well -- live and learn I gues -- but once someone has learnt can we not
>>have a siomple means of passing the learning on without wasting the time of
>>every learner!!
>
>Ah, yes.  "I am Locutus of Borg. You will be assimilated. Resistance is
>futile."
>But it only works that way in Star Trek ;-)  Real Life is more like Will
>Rogers:
>"There are two ways of getting smarter.  One is reading, and the other is
>hanging around with smarter people."
>
>Between 'RTFM' and hanging around this list, I'm doing both :-D
>
>Kevin Kinsey
>
>* Occasionally a port is marked as "broken".  Occasionally one is broken,
>and nobody else knows about it --- yet.  Both cases would be exceptions.

-- 
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: MYSQLD mysql-server for 5.2.1

2005-09-09 Thread Miguel Cárdenas
Try to find mysql* using find command, maybe the location is not included into 
the PATH variable, so you should do it in ~/.profile or something like

regards

> I installed mysql-server and mysql-clients but can't
> find the mysqld executable to start the mysql server.
>
> What is it that I'm missing?
>
> Thanks guys
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: lphp extensions compile error & libmagic

2005-09-09 Thread Vizion
On Friday 09 September 2005 14:37,  the author Vizion contributed to the 
dialogue on-
 lphp extensions compile error & libmagic: 

>Can anyone advise please
>
>With so many "magic" packages I am uncertain which packages to reinstall
> when I get the following error in
># cd /usr/ports/lang/php5-extensions.
>
>dns1# make config
>.
>.
>.
>dns1# make
>===>  Vulnerability check disabled, database not found
>===>  Found saved configuration for php5-extensions-1.0
>===>  Extracting for php5-extensions-1.0
>===>  Patching for php5-extensions-1.0
>===>  Configuring for php5-extensions-1.0
>dns1# make install
>===>  Installing for php5-extensions-1.0
>.
>.
>.
>checking for fileinfo support... yes, shared
>checking for magic files in default path... not found
>configure: error: Please reinstall the libmagic distribution
>/* ^^^ */
>/* ***/
>===>  Script "configure" failed unexpectedly.
>Please report the problem to [EMAIL PROTECTED] [maintainer] and attach the
>"/usr/ports/sysutils/pecl-fileinfo/work/Fileinfo-1.0/config.log" including
>the output of the failure of your make command. Also, it might be a good
> idea to provide an overview of all packages installed on your system (e.g.
> an `ls /var/db/pkg`).
>*** Error code 1
>
>Stop in /usr/ports/sysutils/pecl-fileinfo.
>*** Error code 1
>
>Stop in /usr/ports/lang/php5-extensions.
>\*
>
>I have made the detailed report, as requested, to the maintainer but would
>like to be sure that I am using the correct port for  libmagic.
>
>The error report indicates absense of libmagic but:
>dns1# pwd
>/usr/lib
>dns1# ls -l | grep magic
>-r--r--r--   1 root  wheel65030 Nov  4  2004 libmagic.a
>lrwxrwxrwx   1 root  wheel   13 Apr 28  2004 libmagic.so ->
> libmagic.so.1 -r--r--r--   1 root  wheel52848 Nov  4  2004
> libmagic.so.1
>-r--r--r--   1 root  wheel66438 Nov  4  2004 libmagic_p.a
>
>Comments appreciated
>>
**
INCIDENTALLY 
I get the same result if I configure without ImageMagic support before make 
and make install

>
>Thanks
>
>davdi

-- 
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


/dev/mem /dev/kmem jails and using netstat -r and snmp

2005-09-09 Thread Ruben Bloemgarten
Hi all, 

 

I seem to be a bit stuck here. I seem  to need access to /dev/mem and
/dev/kmem from inside a jail . Specifically to be able to use netstat –r and
snmp in jailed environments. I’m running FBSD 5.4-RELEASE. Could anyone help
me shed some light on this problem ? Thanks. 

 

Regards, 

Ruben 


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.19/93 - Release Date: 09/08/2005
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


USB2 on 5.3 and 5.4

2005-09-09 Thread Shantanoo Mahajan
Hi,
Hardware:
A7N266 motherbord (USB1.1)
USB2 PCI card (USB2)
IDE-USB2 converter

OS:
FreeBSD 5.3 and 5.4

HDD is detected as da0.


I always get USB1.1. In dmesg speed is shown as 1 Mbps.

Did 'dd if=/dev/da0 of=/dev/null bs=10240' on one terminal and on other
one 'iostat -w 1 da0'. The speed shown was not more than 0.8 Mbps.

The same hardware tested on SuSE Linux 9.3 and Windows XP. Works fine.
High speed USB.

Is there any way to get USB2 working? After STFW, got pointers
suggesting that USB2 will be automatically used if the h/w supports
it. 

Regards,
Shantanoo



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


Re: dhcp client in freebsd 6 beta

2005-09-09 Thread Frank Mueller - emendis GmbH

The Script needs the Interface as second argument, e.g.
/etc/rc.d/dhclient stop fxp0

Greetz,

Ice

Osmany Guirola Cruz schrieb:

Hi people
 i upgrade my system from 5.4 to 6 Beta 4 
 and i am using dhclient for my network card
 i boot without problems get my IP, etc etc 
but if i do /etc/rc.d/dhclient stop , or start
nothing happens . in 5.4 this works perfectly 
i Know that freebsd changes the dhclient but now how can i use the rc.d

script 

Thanks 


Osmany
  



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


--
Frank Mueller
eMail: [EMAIL PROTECTED]
Mobil: +49.177.6858655
Fax: +49.951.3039342

emendis GmbH
Hofmannstr. 89, 91052 Erlangen, Germany
Fon: +49.9131.817361
Fax: +49.9131.817386

Geschaeftsfuehrer: Gunter Kroeber, Volker Wiesinger
Sitz Erlangen, Amtsgericht Fuerth HRB 10116
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Will USB serial ever be fixed?

2005-09-09 Thread Paul Marciano
--- Frank Mayhar <[EMAIL PROTECTED]> wrote:
> Well, I've got a handful of such devices that appear
> to work just fine.
> Now, mine are based on the Prolific PL-2303* chips
> but you don't mention
> any specific hardware.  All I know is that I'm using
> them for consoles
> (and am  running getty on them) with no hangs or
> crashes of any kind.

Thanks Frank.

I'm using a converter based on the FTDI232BM, on
FreeBSD 5.3-RELEASE.

ucom0: FTDI USB to Serial Cable, rev 1.10/4.00, addr 2

I am seeing the ucom0 work with normal input/output,
but not with getty.  With getting it prompts for the
login then, upon hitting return, freezes.  Without
getty I can send and receive characters all day long
without problems.  Once the freeze happens, I can stty
-f ucom0 -hup and data starts again.

Referencing the following:
http://lists.freebsd.org/pipermail/freebsd-questions/2004-June/049433.html

http://www.freebsd.org/cgi/query-pr.cgi?pr=65769



--- Warner Losh <[EMAIL PROTECTED]> wrote:
> Personal opinion: You overstate the probelems, and
> have a bad attitude.

Perhaps, at least on one count.


> I use umodem + ucom all the time for connecting to
> the internet on my laptop.  I've had exactly 0
> problems doing this for the past 4 years.

I'm happy for you.  I've been using FreeBSD since it
was called 386BSD + patches and there are many things
I've never had problems with too.  It seems we're both
happy people... mostly.


> There may be other problems in the serial subsystem
> intersected with usb [...]

That's precisely the area I'm interested in.


> Even to the point that it will be hard for you to
> effect change because people don't take you
> seriously.

I don't want to effect change, I just want a working
system.  If you're serious about supporting an
operating system you have to support all your uses,
even the assholes.


Thanks,
Paul.


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


Re: Can't execute a script

2005-09-09 Thread bob self

N.J. Thomas wrote:


I've seen something like this happen when there is a non-printing
character on the shebang line (like a CTRL-G or similar). So instead of
running /bin/sh, your shell tries to run "/bin/sh^G" -- which obviously
doesn't exist.

Can you run "xxd /root/bin/scripttest" and show us the output? If you
don't have xxd on your system (it usually is packaged with Vim) you can
try "od -x /root/bin/scripttest".

xxd/od will show right away if there is anything funky on the shebang
line that shouldn't be there.

thanks,
Thomas

 


xxd scripttest:

000: 2321 2f62 696e 2f73 680d 0a65 6368 6f20  #!/bin/sh..echo
010: 2270 696e 6769 6e67 2e2e 2e2e 220d 0a"pinging"..

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


Re: MYSQLD mysql-server for 5.2.1

2005-09-09 Thread John Do
It didn't find mysqld and I have searched before as
well

--- Miguel Cárdenas <[EMAIL PROTECTED]> wrote:

> Try to find mysql* using find command, maybe the
> location is not included into 
> the PATH variable, so you should do it in ~/.profile
> or something like
> 
> regards
> 
> > I installed mysql-server and mysql-clients but
> can't
> > find the mysqld executable to start the mysql
> server.
> >
> > What is it that I'm missing?
> >
> > Thanks guys
> ___
> freebsd-questions@freebsd.org mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
> 


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


libmagic files missing??

2005-09-09 Thread Vizion
Hi

Here is the listing of:
/usr/src/lib/libmagic
dns1# ls -l
total 1276
-rw-r--r--  1 root  wheel 1619 Dec 16  2004 Makefile
-r--r--r--  1 root  wheel 3859 Apr  2 22:28 Makefile,v
-rw-r--r--  1 root  wheel 5783 Aug  9  2004 config.h
-r--r--r--  1 root  wheel 6277 Apr  2 22:28 config.h,v
-rw-r--r--  1 root  wheel  1236221 Sep  9 15:34 magic
-rwxr-xr-x  1 root  wheel22879 Sep  9 15:34 mkmagic

I am getting compile problems over libmagic and am wondering how I can be 
certain that all libmagic files are on the system.

dns1# pwd
/usr/share/misc
dns1# ls -l | grep magic
-r--r--r--  1 root  wheel   360801 Nov  4  2004 magic
-r--r--r--  1 root  wheel   771456 Nov  4  2004 magic.mgc
-r--r--r--  1 root  wheel30231 Nov  4  2004 magic.mime
-r--r--r--  1 root  wheel41728 Nov  4  2004 magic.mime.mgc

/usr/ports/lang/php5-extensions compile reporting it cannot find libmagic

Can anyone please  point a fingure in the right direction

thanks

david

-- 
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


  1   2   >