5.3 /etc/rc.network

2005-02-20 Thread Gerard Samuel
Im reading an older article that refers to
/etc/rc.network
Is there an equivalent to /etc/rc.network
in FreeBSD 5.3?
Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Split DNS [was]: 5.3 /etc/rc.network

2005-02-20 Thread Gerard Samuel
Erik Norgaard wrote:
Gerard Samuel wrote:
Im reading an older article that refers to
/etc/rc.network
Is there an equivalent to /etc/rc.network
in FreeBSD 5.3?

Not a single script. Instead varios scripts for varios tasks, scripts 
are in /etc/rc.d names should be sufficient explanation. 
Yeah I was looking at the files in /etc/rc.d, but Im not sure on how to 
do what I
was hoping to do...
Im attempting to setup split dns, using instructions from
http://www.cfcl.com/rdm/split_DNS.html
(Specifically under the heading /etc/rc.network)

Can anyone point me as to what can be done to run 2 instances of bind,
using freebsd 5.3 rc system???
Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Split DNS [was]: 5.3 /etc/rc.network

2005-02-20 Thread Gerard Samuel
Bill Moran wrote:
Gerard Samuel [EMAIL PROTECTED] wrote:
[...]
 

Im attempting to setup split dns, using instructions from
http://www.cfcl.com/rdm/split_DNS.html
(Specifically under the heading /etc/rc.network)
Can anyone point me as to what can be done to run 2 instances of bind,
using freebsd 5.3 rc system???
   

This is not necessary with FreeBSD 5.3
5.3 ships with bind 9.  Bind 9 supports DNS zones that receive different
results.  Thus you can set up split DNS with a single instance of
bind.  I expect this will be easier/better than trying to run two
seperate bind instances.  See the bind docs.
According to http://www.bind9.net/Bv9ARM.ch04.html#AEN753
It mentions 2 sets of name servers.
Im about to re-read the chapter to make sure I didn't miss anything...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Split DNS [was]: 5.3 /etc/rc.network

2005-02-20 Thread Gerard Samuel
Gerard Samuel wrote:
Bill Moran wrote:
Gerard Samuel [EMAIL PROTECTED] wrote:
[...]
 

Im attempting to setup split dns, using instructions from
http://www.cfcl.com/rdm/split_DNS.html
(Specifically under the heading /etc/rc.network)
Can anyone point me as to what can be done to run 2 instances of bind,
using freebsd 5.3 rc system???
  

This is not necessary with FreeBSD 5.3
5.3 ships with bind 9.  Bind 9 supports DNS zones that receive different
results.  Thus you can set up split DNS with a single instance of
bind.  I expect this will be easier/better than trying to run two
seperate bind instances.  See the bind docs.
According to http://www.bind9.net/Bv9ARM.ch04.html#AEN753
It mentions 2 sets of name servers.
Im about to re-read the chapter to make sure I didn't miss anything... 

Ah.
I just came across 
http://www.bind9.net/Bv9ARM.ch06.html#view_statement_grammar
which mentions that its not neccessary to have multiple servers with
split dns, when using the view statement.
So I'll see what I can do from here...

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


Re: PEAR Search Path (PHP's include_path)

2005-02-20 Thread Gerard Samuel
[EMAIL PROTECTED] wrote:
I am running fBSD 5.3-Release and have installed Horde via ports and am having
trouble finding the pear search path to put in the php.ini include_path.  When
Horde was installed it installed PHP 4.  If I bring up the Horde test.php page
it shows the following under pear:
PEAR Search Path (PHP's include_path): 
/usr/local/www/horde/lib:.:/usr/local/share/pear/bootstrap:/usr/local/lib/php/pear:/usr/local/lib/php/pear/data
PEAR: Yes
Recent PEAR: Yes
Mail_RFC822: No
Make sure you are using a recent version of PEAR which includes the Mail_RFC822
class. 
Mail_Mime: No
You do not have the Mail_Mime package installed on your system. See the INSTALL
file for instructions on how to install the package. THIS IS A REQUIRED MODULE!

Log: No
Make sure you are using a version of PEAR which includes the Log classes, or
that you have installed the Log package seperately. See the INSTALL file for
instructions on installing Log. THIS IS A REQUIRED MODULE! 
DB: Yes
Net_Socket: No
Make sure you are using a version of PEAR which includes the Net_Socket class,
or that you have installed the Net_Socket package seperately. See the INSTALL
file for instructions on installing Net_Socket. 
Date: No
Horde requires the Date_Calc class for Kronolith to calculate dates. 
Auth_SASL: No
Horde will work without the Auth_SASL class, but if you use Access Control Lists
in IMP you should be aware that without this class passwords will be sent to
the IMAP server in plain text when retrieving ACLs. 
HTTP_Request: No
Parts of Horde (Jonah, the XML-RPC client/server) use the HTTP_Request library
to retrieve URLs and do other HTTP requests. 
File: No
Horde will work without the File_CSV class, but there may be errors when
importing some CSV files. 
Net_SMTP: No
Make sure you are using the Net_SMTP module if you want smtp to work as a
mailer option. 
Services_Weather: No
Services_Weather is used by the weather applet/block on the portal page.

I know these pear addons are installed because if i use the command line install
command I am told they are installed.  Also, the pear ports were installed. 
What should the correct path be under include_path in the php.ini to set this
up correctly?  Thanks

For me (php 5.0.3), this is what I have for include_path in php.ini
include_path = .:/usr/local/share/pear
PEAR works fine for me.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Reconfiguring my network

2005-02-19 Thread Gerard Samuel
I currently own my own domain name, and run a dns server that services
only the lan (i.e. It just forwards requests to my ISP's dns server, and 
resolves
computers on the lan).
Other services, (i.e. www/mail/cvs/etc) are port forwarded through the 
firewall.
The setup is ok, but I have it in my mind, that I can *grow* the setup
beyond what it is currently (its been this way for the past
4-5 years, and Im looking to see if it can change).
Today, I've been trying to see if it was possible to get the dns 
server/lan,
more accessible to the internet, so that I can do away with port forwarding
(maybe not completely).
Where other dns servers can query my dns server, so
that the lan is more accessible (maybe not the right word), with
some voodoo to get around a *real* single ip, and internal virtual ip 
addresss.
Is it even possible with a setup like mine (psuedo diagram below)?
If so, can you give a synopsis on what to do, and or any resources on 
the net
that can guide me?
Thanks for your time.

INTERNET
  |
  |
FIREWALL (FreeBSD running DNS/DHCP/IPF/IPNAT)
  |
  |
SWITCH
  |
  |
   LAN (Various servers  workstations)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PHP

2005-02-19 Thread Gerard Samuel
Andrei Iarus wrote:
I have installed apache-1.3.33_1, php5-5.0.3_1. And I
tried to run simple scripts like: 
html
head
 titlePHP Test/title
/head
body
?php echo 'pHello World/p'; ?
/body
/html
and the output was an unexpected one: 

Hello World
'; ?
It also doesn`t outputs anything when using the
phpversion() function. A possible bug? Before
reporting this as a bug, I wanted to check if there
was someone else with similar problems(or may be I did
something wrong). 

First guess.  Apache doesn't know about ?php tags.
If you installed php via the port, apache is configured automatically.
So I have to ask.  Did you restart apache??
Just create a file (index.php), and in it put
?php phpinfo(); ?
And see what it does...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PHP

2005-02-19 Thread Gerard Samuel
Jeffery Fernandez wrote:
Gerard Samuel wrote:
Andrei Iarus wrote:
I have installed apache-1.3.33_1, php5-5.0.3_1. And I
tried to run simple scripts like: html
head
 titlePHP Test/title
/head
body
?php echo 'pHello World/p'; ?
/body
/html
and the output was an unexpected one:
Hello World
'; ?
It also doesn`t outputs anything when using the
phpversion() function. A possible bug? Before
reporting this as a bug, I wanted to check if there
was someone else with similar problems(or may be I did
something wrong).

First guess.  Apache doesn't know about ?php tags.
If you installed php via the port, apache is configured automatically.
So I have to ask.  Did you restart apache??
Just create a file (index.php), and in it put
?php phpinfo(); ?
And see what it does...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


You will have to add the following entries to the httpd.conf file for 
apache to understand its a php file

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
I don't know if its any different for PHP5 but for PHP4 thats what you 
need to add.

Forgot about that.
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
is what I have (php 5.0.2), so I guess you are correct..
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Shabang executable path

2005-02-14 Thread Gerard Samuel
A bit off topic, but I figure someone in here, may be able to point
me in the right direction.
!#/path/to/php
Im wondering, if its possible for the /path/to/php can be made dynamic.
i.e.  Have the file still look as if it is a shell script, but
the path to the executable is determined at run time,
to make it more portable.
Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shabang executable path

2005-02-14 Thread Gerard Samuel
Jordan Michaels wrote:
Gerard Samuel wrote:
Jordan Michaels wrote:
Gerard Samuel wrote:
A bit off topic, but I figure someone in here, may be able to point
me in the right direction.
!#/path/to/php
Im wondering, if its possible for the /path/to/php can be made 
dynamic.
i.e.  Have the file still look as if it is a shell script, but
the path to the executable is determined at run time,
to make it more portable.

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


Have you tried it?
# script.sh /path/to/php
--script.sh--
#! $1
echo This is a test
--script.sh--
... or something to that effect. 


You've misunderstood, what I'm asking, or Im not understanding your 
example.
In your example, the path to php, is still hardcoded.
What Im ulitimately trying to achieve, is a script,
that can determine the path to php, where ever it may be...
Thanks


Ah, yeah, my example was just a way to pass the path on to the script 
- not determine the path automatically. If you want to determine the 
path automatically, the only way I can see that you could do that 
would be to run two separate scripts (including the method I used above.)

Something like this:
--script_caller.sh--
$DYNAMICPATH = find / -name php | grep php
script.sh $DYNAMICPATH
--script_caller.sh--
The idea being that the script_caller.sh file would find the path to 
php on that system, then pass that path on to the script that will be 
executing the php commands.

Now... don't get me wrong. I'm not an expert script writer or 
anything. I haven't tested these scripts. However, the logic behind 
them is still valid, and should work if properly executed. (with the 
correct shell commands, etc)

HTH 

Ok.  I'll see what I can do, with what you explained...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shabang executable path

2005-02-14 Thread Gerard Samuel
Clint Gilders wrote:
Gerard Samuel wrote:
A bit off topic, but I figure someone in here, may be able to point
me in the right direction.
!#/path/to/php
Im wondering, if its possible for the /path/to/php can be made dynamic.
i.e.  Have the file still look as if it is a shell script, but
the path to the executable is determined at run time,
to make it more portable.

Seems to me you could use:
#!/usr/bin/env php
Much like people often recommend for perl scripts.

Very nice...
#!/usr/bin/env php
?php
var_dump($argv);
?
$ ./z.php -foo bar
array(3) {
 [0]=
 string(7) ./z.php
 [1]=
 string(4) -foo
 [2]=
 string(3) bar
}
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Simulating webserver load balancing

2005-02-11 Thread Gerard Samuel
Nick Pavlica wrote:
Here are a couple of other solutions to look at:
http://www.inlab.de/balance.html
http://pythondirector.sourceforge.net/
--Nick
On Thu, 10 Feb 2005 22:07:20 -0500, Gerard Samuel
[EMAIL PROTECTED] wrote:
 

Im looking for suggestions for a port and/or tips that would assist me in
setting up a webserver cluster.
But the catch is, I only have one physical webserver.
I want to simulate an environment to test some code
that I wrote.
Thanks for anything that you can provide...
Thanks for the links
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Simulating webserver load balancing

2005-02-10 Thread Gerard Samuel
Im looking for suggestions for a port and/or tips that would assist me in
setting up a webserver cluster.
But the catch is, I only have one physical webserver.
I want to simulate an environment to test some code
that I wrote.
Thanks for anything that you can provide...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Simulating webserver load balancing

2005-02-10 Thread Gerard Samuel
Gerard Samuel wrote:
Im looking for suggestions for a port and/or tips that would assist me in
setting up a webserver cluster.
But the catch is, I only have one physical webserver.
I want to simulate an environment to test some code
that I wrote.
Thanks for anything that you can provide... 

I just came across this
http://lists.freebsd.org/pipermail/freebsd-stable/2004-March/006701.html
that should get me started to available options to try out.
If there is anything else that you can add, feel free to do so.
Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Generating Backtrace on FBSD 5.3

2005-02-08 Thread Gerard Samuel
Slightly off-topic.
Im trying to figure out how to generate a
backtrace from a core dump of subversion, to send
to subversion developers.
What tools are available to read a core dump file,
to generate this backtrace on FreeBSD 5.3?
I'm trying to understand gdb, but Im not sure if
this is what I'm looking for.
$ gdb -c svn.core
Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Generating Backtrace on FBSD 5.3

2005-02-08 Thread Gerard Samuel
Miguel Mendez wrote:
On Tue, 08 Feb 2005 10:13:32 -0500
Gerard Samuel [EMAIL PROTECTED] wrote:
 

Im trying to figure out how to generate a
backtrace from a core dump of subversion, to send
to subversion developers.
What tools are available to read a core dump file,
to generate this backtrace on FreeBSD 5.3?
I'm trying to understand gdb, but Im not sure if
this is what I'm looking for.
$ gdb -c svn.core
   

gdb /path/to/svn svn.core is what you want. But for that to be useful
you need a svn executable built with debugging info. This can be done by
building the port with CFLAGS having the '-g' option and STRIP set to
null, so you don't lose that info while installing.
(deinstall svn first)
e.g.: cd /usr/ports/devel/subversion  env CFLAGS=-g STRIP= make
install
Then try to reproduce the error and run gdb. Once in gdb use the command
'bt' to get a backtrace.
I'll give that a shot.  Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [Repost] Logging to custom file via syslog [was]: php log to own syslog file

2005-01-27 Thread Gerard Samuel
Ruben de Groot wrote:
On Tue, Jan 25, 2005 at 11:28:06AM -0500, Gerard Samuel typed:
...
 

This will only log user.info messages coming from the ppp program to
/var/log/php.log. Either move the user.=info line up or finish the
!ppp block with a !* line (see manpage).
 

I went over the man page, and I dont see any references about finishing
program blocks.  So Im taking your word for it.
   


From syslog.conf(5):
  A program or hostname specification may be reset by giving the program or
  hostname as `*'.
Thanks.  Yes I saw that, but wasn't sure of its usage
i.e. '*' or '!*'
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [Repost] Logging to custom file via syslog [was]: php log to own syslog file

2005-01-25 Thread Gerard Samuel
Ruben de Groot wrote:
On Mon, Jan 24, 2005 at 12:18:46PM -0500, Gerard Samuel typed:
 

I think this is a FreeBSD problem.
   

It's not.
 

Here is what I have.
1.  I removed my initial modification of /etc/syslog.conf, and added -
user.=info  /var/log/php.log
According to syslog.conf man page, that should mean, any syslog events that
come is as LOG_USER, and only LOG_INFO, should be appended to
/var/log/php.log
2.  I HUPped syslogd.
3.  Im using logger to try to add a message to the log file like -
gladiator# logger -s -p user.info test
gsam: test
But unfortunately, the message test doesn't appear in /var/log/php.log OR
/var/log/messages.
I currently have the file /var/log/php.log chmodded to 777.
Im including my syslog.conf file.
Can anyone tell me, as to why, Im unable to log these tests?
Thanks
/etc/syslog.conf

# $FreeBSD: src/etc/syslog.conf,v 1.26 2003/04/23 13:08:31 des Exp $
#
#   Spaces ARE valid field separators in this file. However,
#   other *nix-like systems still insist on using tabs as field
#   separators. If you are sharing this file between systems, you
#   may want to use only tabs as field separators here.
#   Consult the syslog.conf(5) manpage.
   

-- snip --
user.=info  /var/log/php.log
   

This will only log user.info messages coming from the ppp program to
/var/log/php.log. Either move the user.=info line up or finish the
!ppp block with a !* line (see manpage).
I went over the man page, and I dont see any references about finishing
program blocks.  So Im taking your word for it.
So after some trial runs, I've appended my syslog.conf like so -
!*
httpd
user.=info  /var/log/php.log
Now I can use the logger command to log to the file now.
Plus, I can log to the file via php's syslog() function.
The only thing bothering me, is the syntax of the program.
If I use !httpd, it doesn't log to the file.
If anyone else has any input on this, I would be grateful.
Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[Repost] Logging to custom file via syslog [was]: php log to own syslog file

2005-01-24 Thread Gerard Samuel
Kevin Kinsey wrote:
Gerard Samuel wrote:
Im trying to figure out how to setup FreeBSD 5.3 to log
php events to its own log file via syslog.
In /etc/syslog.conf, I added -
# php logs
!httpd
*.* /var/log/php.log
I created a empty file for the log -
gladiator# touch /var/log/php.log
gladiator# ls -l /var/log/php*
-rw-r--r--  1 root  wheel  0 Jan 20 16:37 /var/log/php.log
Then I HUPped syslogd -
gladiator# ps aux | grep syslogd
root 277  0.0  0.2  1316  908  ??  Is4:14PM   0:00.01
/usr/sbin/syslogd -s
gladiator# kill -HUP 277
In my php script, Im using -
define_syslog_variables();
openlog('TESTING', LOG_NDELAY, LOG_USER);
syslog(LOG_INFO, $message);
closelog();
But nothing is being logged to the file.
Am I doing something wrong on the FreeBSD side of things??
Thanks


PHP as an Apache module?  IANAE, but wouldn't
you have to change log settings in httpd.conf? 

I dont think so.  These errors, that I want to log, are initiated by
the php function syslog() (look at the example above).
These messages are supposed to go to the syslogd daemon, not to 
httpd's log file.
In the example above, if I change the priority from LOG_INFO to 
LOG_WARNING,
the error messages go to /var/log/messages.
I just need it to start going to its own file.
The ultimate goal, is that I want to have a cluster of webservers,
logging to a central server. 

I think this is a FreeBSD problem.
Here is what I have.
1.  I removed my initial modification of /etc/syslog.conf, and added -
user.=info  /var/log/php.log
According to syslog.conf man page, that should mean, any syslog events that
come is as LOG_USER, and only LOG_INFO, should be appended to
/var/log/php.log
2.  I HUPped syslogd.
3.  Im using logger to try to add a message to the log file like -
gladiator# logger -s -p user.info test
gsam: test
But unfortunately, the message test doesn't appear in /var/log/php.log OR
/var/log/messages.
I currently have the file /var/log/php.log chmodded to 777.
Im including my syslog.conf file.
Can anyone tell me, as to why, Im unable to log these tests?
Thanks
/etc/syslog.conf

# $FreeBSD: src/etc/syslog.conf,v 1.26 2003/04/23 13:08:31 des Exp $
#
#   Spaces ARE valid field separators in this file. However,
#   other *nix-like systems still insist on using tabs as field
#   separators. If you are sharing this file between systems, you
#   may want to use only tabs as field separators here.
#   Consult the syslog.conf(5) manpage.
*.err;kern.debug;auth.notice;mail.crit  /dev/console
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err
/var/log/messages
security.*  /var/log/security
auth.info;authpriv.info /var/log/auth.log
mail.info   /var/log/maillog
lpr.info/var/log/lpd-errs
ftp.info/var/log/xferlog
cron.*  /var/log/cron
*.=debug/var/log/debug.log
*.emerg *
# uncomment this to log all writes to /dev/console to /var/log/console.log
#console.info   /var/log/console.log
# uncomment this to enable logging of all log messages to /var/log/all.log
# touch /var/log/all.log and chmod it to mode 600 before it will work
#*.*/var/log/all.log
# uncomment this to enable logging to a remote loghost named loghost
#*.*@loghost
# uncomment these if you're running inn
# news.crit /var/log/news/news.crit
# news.err  /var/log/news/news.err
# news.notice   /var/log/news/news.notice
!startslip
*.* /var/log/slip.log
!ppp
*.* /var/log/ppp.log
user.=info  /var/log/php.log
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Logging to custom file via syslog [was]: [Repost] php log to own syslog file

2005-01-22 Thread Gerard Samuel

Kevin Kinsey wrote:
Gerard Samuel wrote:
Im trying to figure out how to setup FreeBSD 5.3 to log
php events to its own log file via syslog.
In /etc/syslog.conf, I added -
# php logs
!httpd
*.* /var/log/php.log
I created a empty file for the log -
gladiator# touch /var/log/php.log
gladiator# ls -l /var/log/php*
-rw-r--r--  1 root  wheel  0 Jan 20 16:37 /var/log/php.log
Then I HUPped syslogd -
gladiator# ps aux | grep syslogd
root 277  0.0  0.2  1316  908  ??  Is4:14PM   0:00.01
/usr/sbin/syslogd -s
gladiator# kill -HUP 277
In my php script, Im using -
define_syslog_variables();
openlog('TESTING', LOG_NDELAY, LOG_USER);
syslog(LOG_INFO, $message);
closelog();
But nothing is being logged to the file.
Am I doing something wrong on the FreeBSD side of things??
Thanks


PHP as an Apache module?  IANAE, but wouldn't
you have to change log settings in httpd.conf? 

I dont think so.  These errors, that I want to log, are initiated by
the php function syslog() (look at the example above).
These messages are supposed to go to the syslogd daemon, not to 
httpd's log file.
In the example above, if I change the priority from LOG_INFO to 
LOG_WARNING,
the error messages go to /var/log/messages.
I just need it to start going to its own file.
The ultimate goal, is that I want to have a cluster of webservers,
logging to a central server. 

I think this is a FreeBSD problem.
Here is what I have.
1.  I removed my initial modification of /etc/syslog.conf, and added -
user.=info  /var/log/php.log
According to syslog.conf man page, that should mean, any syslog events that
come is as LOG_USER, and only LOG_INFO, should be appended to 
/var/log/php.log
2.  I HUPped syslogd.
3.  Im using logger to try to add a message to the log file like -
gladiator# logger -s -p user.info test
gsam: test

But unfortunately, the message test doesn't appear in /var/log/php.log OR
/var/log/messages.
I currently have the file /var/log/php.log chmodded to 777.
Im including my syslog.conf file.
Can anyone tell me, as to why, Im unable to log these tests?
Thanks
/etc/syslog.conf

# $FreeBSD: src/etc/syslog.conf,v 1.26 2003/04/23 13:08:31 des Exp $
#
#   Spaces ARE valid field separators in this file. However,
#   other *nix-like systems still insist on using tabs as field
#   separators. If you are sharing this file between systems, you
#   may want to use only tabs as field separators here.
#   Consult the syslog.conf(5) manpage.
*.err;kern.debug;auth.notice;mail.crit  /dev/console
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   
/var/log/messages
security.*  /var/log/security
auth.info;authpriv.info /var/log/auth.log
mail.info   /var/log/maillog
lpr.info/var/log/lpd-errs
ftp.info/var/log/xferlog
cron.*  /var/log/cron
*.=debug/var/log/debug.log
*.emerg *
# uncomment this to log all writes to /dev/console to /var/log/console.log
#console.info   /var/log/console.log
# uncomment this to enable logging of all log messages to /var/log/all.log
# touch /var/log/all.log and chmod it to mode 600 before it will work
#*.*/var/log/all.log
# uncomment this to enable logging to a remote loghost named loghost
#*.*@loghost
# uncomment these if you're running inn
# news.crit /var/log/news/news.crit
# news.err  /var/log/news/news.err
# news.notice   /var/log/news/news.notice
!startslip
*.* /var/log/slip.log
!ppp
*.* /var/log/ppp.log

user.=info  /var/log/php.log
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Network Printing - Please put me out of my misery

2005-01-22 Thread Gerard Samuel
gabriel wrote:
I'm not sure what you mean by try the jetdirect,
 

PORT STATE SERVICE
9100/tcp open  jetdirect  === This One
Jetdirect is HP's print server
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[Repost] php log to own syslog file

2005-01-21 Thread Gerard Samuel
Im trying to figure out how to setup FreeBSD 5.3 to log
php events to its own log file via syslog.
In /etc/syslog.conf, I added -
# php logs
!httpd
*.* /var/log/php.log
I created a empty file for the log -
gladiator# touch /var/log/php.log
gladiator# ls -l /var/log/php*
-rw-r--r--  1 root  wheel  0 Jan 20 16:37 /var/log/php.log
Then I HUPped syslogd -
gladiator# ps aux | grep syslogd
root 277  0.0  0.2  1316  908  ??  Is4:14PM   0:00.01
/usr/sbin/syslogd -s
gladiator# kill -HUP 277
In my php script, Im using -
define_syslog_variables();
openlog('TESTING', LOG_NDELAY, LOG_USER);
syslog(LOG_INFO, $message);
closelog();
But nothing is being logged to the file.
Am I doing something wrong on the FreeBSD side of things??
Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [Repost] php log to own syslog file

2005-01-21 Thread Gerard Samuel
Kevin Kinsey wrote:
Gerard Samuel wrote:
Im trying to figure out how to setup FreeBSD 5.3 to log
php events to its own log file via syslog.
In /etc/syslog.conf, I added -
# php logs
!httpd
*.* /var/log/php.log
I created a empty file for the log -
gladiator# touch /var/log/php.log
gladiator# ls -l /var/log/php*
-rw-r--r--  1 root  wheel  0 Jan 20 16:37 /var/log/php.log
Then I HUPped syslogd -
gladiator# ps aux | grep syslogd
root 277  0.0  0.2  1316  908  ??  Is4:14PM   0:00.01
/usr/sbin/syslogd -s
gladiator# kill -HUP 277
In my php script, Im using -
define_syslog_variables();
openlog('TESTING', LOG_NDELAY, LOG_USER);
syslog(LOG_INFO, $message);
closelog();
But nothing is being logged to the file.
Am I doing something wrong on the FreeBSD side of things??
Thanks

PHP as an Apache module?  IANAE, but wouldn't
you have to change log settings in httpd.conf? 
I dont think so.  These errors, that I want to log, are initiated by
the php function syslog() (look at the example above).
These messages are supposed to go to the syslogd daemon, not to httpd's 
log file.
In the example above, if I change the priority from LOG_INFO to 
LOG_WARNING,
the error messages go to /var/log/messages.
I just need it to start going to its own file.
The ultimate goal, is that I want to have a cluster of webservers,
logging to a central server.

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


php log to own syslog file

2005-01-20 Thread Gerard Samuel
Im trying to figure out how to setup FreeBSD 5.3 to log
php events to its own log file via syslog.
In /etc/syslog.conf, I added -
# php logs
!httpd
*.* /var/log/php.log
I created a empty file for the log -
gladiator# touch /var/log/php.log
gladiator# ls -l /var/log/php*
-rw-r--r--  1 root  wheel  0 Jan 20 16:37 /var/log/php.log
Then I HUPped syslogd -
gladiator# ps aux | grep syslogd
root 277  0.0  0.2  1316  908  ??  Is4:14PM   0:00.01 
/usr/sbin/syslogd -s
gladiator# kill -HUP 277

In my php script, Im using -
define_syslog_variables();
openlog('TESTING', LOG_NDELAY, LOG_USER);
syslog(LOG_INFO, $message);
closelog();
But nothing is being logged to the file.
Am I doing something wrong on the FreeBSD side of things??
Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


NFS File Locking on FBSD 5.3

2005-01-11 Thread Gerard Samuel
Whats needed to enable file locking on FBSD 5.3?
I already had NFS running, so I added this to the
server's rc.conf file -
rpc_lockd_enable=YES
and rebooted.
Im just checking to see if that is all that I should be doing.
Thanks for your time
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NFS File Locking on FBSD 5.3

2005-01-11 Thread Gerard Samuel
Gerard Samuel wrote:
Whats needed to enable file locking on FBSD 5.3?
I already had NFS running, so I added this to the
server's rc.conf file -
rpc_lockd_enable=YES
and rebooted.
Im just checking to see if that is all that I should be doing.
Thanks for your time 

I just noticed this in the logs -
Jan 11 15:23:37 hivemind rpcbind: cannot create socket for udp6
Jan 11 15:23:38 hivemind rpc.lockd: 100024 RPC: Program not registered
I've googled a bit, and Im coming up with references that
IP6 doesn't have to built into the kernel, of which I do not have it
built in the kernel anyway.
Im not sure of what else to do to get lockd running.
Any advise would be appreciated.
Thanks
Here is my rc.conf file
-
defaultrouter=xxx.xxx.xxx.xxx
hostname=name.domain.tld
ifconfig_bge0=inet xxx.xxx.xxx.xxx  netmask 255.255.255.0
keyrate=fast
sshd_enable=YES
sendmail_enable=NONE
inetd_enable=YES
mysql_enable=YES
apache2_enable=YES
ntpd_enable=YES
ntpd_flags=-c /etc/ntp.conf -p /var/run/ntpd.pid -g
samba_enable=YES
rpcbind_enable=YES
nfs_server_enable=YES
mountd_flags=-r
rpc_lockd_enable=YES
Here is my kernel config
--
machine i386
cpu I686_CPU
ident   HIVEMIND
options SCHED_4BSD  # 4BSD scheduler
options INET# InterNETworking
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big 
directories
options NFSSERVER   # Network Filesystem Server
options GEOM_GPT# GUID Partition Tables.
options COMPAT_43   # Compatible with BSD 4.3 [KEEP 
THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options SCSI_DELAY=8000 # Delay (in ms) before probing SCSI

# PostgreSQL stuff
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options SHMMAXPGS=65536
options SEMMNI=40
options SEMMNS=240
options SEMUME=40
options SEMMNU=120
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
# Bus support.  Do not remove isa, even if you have no isa slots
device  isa
device  pci
# Floppy drives
device  fdc
# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
options ATA_STATIC_ID   # Static device numbering
# SCSI Controllers
device  ahc # AHA2940 and onboard AIC7xxx devices
# SCSI peripherals
device  scbus   # SCSI bus (required for SCSI)
device  da  # Direct Access (disks)
device  pass# Passthrough device (direct SCSI access)
# atkbdc0 controls both the keyboard and the PS/2 mouse
device  atkbdc  # AT keyboard controller
device  atkbd   # AT keyboard
device  vga # VGA video card driver
# syscons is the default console driver, resembling an SCO console
device  sc
# Floating point support - do not disable.
device  npx
# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device  miibus  # MII bus support
device  bge # Broadcom BCM570xx Gigabit Ethernet
# Pseudo devices.
device  loop# Network loopback
device  mem # Memory and kernel memory devices
device  io  # I/O device
device  random  # Entropy device
device  ether   # Ethernet support
device  pty # Pseudo-ttys (telnet etc)
device  ccd # Concatenated disk driver
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NFS File Locking on FBSD 5.3

2005-01-11 Thread Gerard Samuel
Erik Norgaard wrote:
Gerard Samuel wrote:
Gerard Samuel wrote:
Whats needed to enable file locking on FBSD 5.3?
I already had NFS running, so I added this to the
server's rc.conf file -
rpc_lockd_enable=YES
and rebooted.

I just noticed this in the logs -
Jan 11 15:23:37 hivemind rpcbind: cannot create socket for udp6
Jan 11 15:23:38 hivemind rpc.lockd: 100024 RPC: Program not registered
I've googled a bit, and Im coming up with references that
IP6 doesn't have to built into the kernel, of which I do not have it
built in the kernel anyway.
Im not sure of what else to do to get lockd running.

Well, I guess google haven't searched the archives resently. I wrote 
just yesterday (NFS export of evolution-thread) that you need to 
enable statd _and_ lockd. lockd will not start without statd enabled. 
You don't need to reboot, just

/etc/rc.d/nfslocking restart

Thanks for the tip.  It seems to be running now.
$ ps aux | grep lockd
root  361  0.0  0.2  1632 1292  ??  Ss4:23PM   0:00.01 
/usr/sbin/rpc.lockd
daemon372  0.0  0.2  1632 1292  ??  S 4:23PM   0:00.00 
/usr/sbin/rpc.lockd


rpcbind_enable=YES
nfs_server_enable=YES
mountd_flags=-r
rpc_lockd_enable=YES

I don't see you have enabled mountd, but you had nfs running and 
mounted succesfully? - or maybe just a typo copy/paste? 

The config is correct, according to the manual.
Never had a problem with it (knocks on wood)
Now to go test if php will work now...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 9.3.0 on FreeBSD 5.3

2004-12-31 Thread Gerard Samuel
J.D. Bronson wrote:
At 09:07 AM 12/31/2004, Richard Cotrina wrote:
Is there any reason for not using bind 9.3.0 that comes with FreeBSD 
5.3 ?
It can be run chrooted with the same flags you are using.

I deleted it by accident. I dont know how to re-make the OEM version 
that comes with 5.3I posted it and no one replied. Google has not 
been much help... 

I may be wrong, but wouldn't a fresh pull from cvsup, and a 
build/installworld,
restore bind and friends???
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sleepy fxp0

2004-12-11 Thread Gerard Samuel
Im currently using FreeBSD 5.3, using the fxp driver for
my network card.
$ dmesg | grep fxp0
fxp0: Intel 82557 Pro/100 Ethernet port 0xec00-0xec1f mem 
0xdff0-0xdfff,0xdd9ff000-0xdd9f irq 10 at device 8.0 on pci0

This box currently uses DHCP to get its IP address.
When it boots up, and I log in, and immediately try to
initiate any network activity from this box, it takes about
2-3 seconds for said network activity to start.
For example, if I were to ping, or startx, it takes
about 2-3 seconds for either ping or startx to actually start.
During the boot sequence I notice this -
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   inet 192.168.0.16 netmask 0xff00 broadcast 192.168.0.255
   ether 00:80:29:65:e2:96
   media: Ethernet autoselect (none)
   status: no carrier
After the 2-3 seconds after the OS has booted up, it changes to -
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   inet 192.168.0.16 netmask 0xff00 broadcast 192.168.0.255
   ether 00:80:29:65:e2:96
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
Is this normal?
If you need any other information, please, feel free to ask.
Thanks for any information that you can provide...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[Solved] Re: sleepy fxp0

2004-12-11 Thread Gerard Samuel
Chuck Swiger wrote:
Gerard Samuel wrote:
[ ... ]
This box currently uses DHCP to get its IP address.
When it boots up, and I log in, and immediately try to
initiate any network activity from this box, it takes about
2-3 seconds for said network activity to start.
For example, if I were to ping, or startx, it takes
about 2-3 seconds for either ping or startx to actually start.
[ ... ]
Is this normal?

That sounds more like the puase associated with doing IPv6 versus a 
IPv4 DNS lookup, assuming it happens when you are trying to ping some 
remote IP...?

You might also be seeing a pause due to ethernet autoselection; if you 
manually configure the interface and the switch port to manual 100/FD, 
doing so might also remove a brief pause.  [Fixing the speed is 
impractical for a roaming laptop, but it might be worth trying as a 
test... ]

Well you pushed me in the right direction to solve this.
Looking over the man pages for ifconfig and rc.conf, here is what I did.
1.  Figure out what media options are available for the card
$ ifconfig -m fxp0
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   capability list:
   =8VLAN_MTU
   inet 192.168.0.16 netmask 0xff00 broadcast 192.168.0.255
   ether 00:80:29:65:e2:96
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
   supported media:
   media autoselect
   media 100baseTX mediaopt full-duplex
   media 100baseTX
   media 10baseT/UTP mediaopt full-duplex
   media 10baseT/UTP
   media 100baseTX mediaopt hw-loopback
2.  According to the rc.conf man page, I added a file /etc/start_if.fxp0 
with -
ifconfig fxp0 media 100baseTX mediaopt full-duplex
To manually set media and media options at bootup.

Thats it.  I rebooted, and the network is available immediately at bootup,
instead of waiting a few seconds to auto configure.
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Wildcard syntax in newsyslog.conf

2004-12-10 Thread Gerard Samuel
Paul Schmehl wrote:
--On Friday, December 10, 2004 09:03:47 AM -0500 Gerard Samuel 
[EMAIL PROTECTED] wrote:

Is it possible to use wildcards in newsyslog.conf?
For example, my current apache setup, I have a few virtual hosts
logging into their own file.
And instead of specifying each file in newsyslog.conf, Im trying -
/var/log/httpd-*.logroot:wheel  640  1 *@T00  B
/var/run/httpd.run
man newsyslog(8)
G   indicates that the specified logfile_name is a shell pattern, 
and that newsyslog should archive all filenames matching that pattern, 
using the other options specified on this line.  See glob(3) for 
details on syntax and matching rules.

The short answer is yes, *if* you use the G flag. 

Thanks.  The G flag made it work.
That should have clicked with me, with [EMAIL PROTECTED] suggestion.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Wildcard syntax in newsyslog.conf

2004-12-10 Thread Gerard Samuel
Is it possible to use wildcards in newsyslog.conf?
For example, my current apache setup, I have a few virtual hosts
logging into their own file.
And instead of specifying each file in newsyslog.conf, Im trying -
/var/log/httpd-*.logroot:wheel  640  1 *@T00  B 
/var/run/httpd.run

It doesn't seem to work.  So Im double checking with the list to
see if what Im trying to do is possible (but Im going about it the wrong 
way).

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


Re: Wildcard syntax in newsyslog.conf

2004-12-10 Thread Gerard Samuel
Panagiotis Christias wrote:
On Fri, 10 Dec 2004 09:03:47 -0500, Gerard Samuel
[EMAIL PROTECTED] wrote:
 

Is it possible to use wildcards in newsyslog.conf?
For example, my current apache setup, I have a few virtual hosts
logging into their own file.
And instead of specifying each file in newsyslog.conf, Im trying -
/var/log/httpd-*.logroot:wheel  640  1 *@T00  B
/var/run/httpd.run
It doesn't seem to work.  So Im double checking with the list to
see if what Im trying to do is possible (but Im going about it the wrong
way).
   

It should work. I have a similar entry in my newsyslog.conf:
/var/log/apache/*-access_log664  1 *@01T00 G
/var/run/httpd.pid
/var/log/apache/*-error_log 664  1 *@01T00 G
/var/run/httpd.pid
Try running newsyslog manually using the -v and -n options.
 

Here is what I got by running newsyslog manually -
hivemind# newsyslog -vn
--snip--
/var/log/httpd-*.log 1: does not exist, skipped.
Even though, the files do exist -
hivemind# ls -al /var/log/httpd-*.log
-rw-r--r--  1 root  wheel  7052038 Dec 10 10:43 /var/log/httpd-access.log
-rw-r--r--  1 root  wheel  212 Dec  9 20:07 /var/log/httpd-cvs_error.log
-rw-r--r--  1 root  wheel90363 Dec  9 15:25 /var/log/httpd-error.log
-rw-r--r--  1 root  wheel  208 Dec 10 01:26 
/var/log/httpd-test1_error.log
-rw-r--r--  1 root  wheel 2332 Dec  9 15:28 /var/log/httpd-www_error.log

Im currently running FreeBSD 5.3-RELEASE-p1, if that means anything.
Any other ideas???
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PostgreSQL 8

2004-12-07 Thread Gerard Samuel
Mário Gamito wrote:
Hi,
I'm running 5.3 and i'm looking for a port of PostgreSQL, even if it 
is not stable yet. A beta or RC will do the job for now.

Does anyone knows where i can find one, or if there's none, what can i 
do to install it ?

Any help would be apreciated. 

If you're looking for postgresql 8, install the postgresql-devel port.
Its currently at version 8 beta 4.
I have it working without any problems so far on fbsd 5.3
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev 5.3 vs 4.x, additional rights for user, reboot

2004-11-30 Thread Gerard Samuel
[EMAIL PROTECTED] wrote:
Hi
I started to move some of my machines from 4.x to 5.3.
Using amanda (www.amanda.org) for backups I ran into a problem:
The user operator is used by amanda for all stuff, for example
questioning /dev/ch0 to change the tape.
5.3: ls -la /dev/ch0
crw---  1 root  operator  232,   0 Nov 30 14:35 /dev/ch0
While using 4.x I just did chmod g+rw /dev/ch0 during installation
of amanda and everything was fine, now rebooting a 5.3 machine
everything is not fine as the additional rights are gone...
Is there a way to grant additional rights surviving reboots?
I can write a little script for /usr/local/etc/rc.d/ but I do not think
that would be very cute :-(
On 5.3, look at the file /etc/devfs.conf
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Virtual IP/DNS test results

2004-11-19 Thread Gerard Samuel
Im trying to setup virtual IPs/DNS/Apache, and it seems to be
working within the LAN so far.
Box 1:  Firewall/Router/DNS/DHCP Server
Box 2:  Virtual IPs
Box 3:  DHCP client.  This is where Im getting an oddity (see below).
If I were to ping a hostname that is using a virtual IP address,
or if I ping a virtual IP address from just this one of the machines on 
the LAN,
I get this -
$ ping -c1 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
36 bytes from gatekeeper.trini0.org (192.168.0.1): Redirect Host(New 
addr: 192.168.1.1)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks  Src  Dst
4  5  00 0054 03ae   0   40  01 f499 192.168.0.16  192.168.1.1

64 bytes from 192.168.1.1: icmp_seq=0 ttl=64 time=0.807 ms
--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.807/0.807/0.807/0.000 ms
Is this indicative that there is a problem with the setup???
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: BIND 9.3.0 not restarting

2004-11-19 Thread Gerard Samuel
Cezar Fistik wrote:
Hello group,
I have a problem with BIND 9.3.0. Everything works just fine until i try to 
restart the service. When sending to it kill -HUP, named daemon just gets 
killed and not restarted. Does any body have an idea why this happens?
If you're using 5.3 (or at least a version that uses rcNG), use
/etc/rc.d/named restart
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Corrupted Disk? [Was: Re: FreeBSD 5.x CCD]

2004-11-18 Thread Gerard Samuel
Gerard Samuel wrote:
Kris Kennaway wrote:
On Wed, Nov 17, 2004 at 09:22:51PM -0500, Gerard Samuel wrote:
 

Well you just burst my bubble.
I was hoping I was missing a node.  Im trying to figure out a 
problem Im
having -
http://lists.freebsd.org/pipermail/freebsd-questions/2004-November/064973.html 

Thanks
  

Just mount /dev/ccd0 instead of /dev/ccd0c since the latter refers to
the entire disk anyway.
Here is what I did...
1.  Unconfigured ccd
hivemind# ccdconfig -U -f /etc/ccd.conf
2.  Reconfigured it
hivemind# ccdconfig -C -f /etc/ccd.conf
3.  Tried mount the drive the way you recommended, and got
hivemind# mount /dev/ccd0 /storage
mount: /dev/ccd0: Operation not permitted
Im going to try googling to see what I can find out.
But if anyone knows why I cannot mount this, then by all means,
let me know.
Thanks 
I noticed this in the logs when I was trying to mount the disk -
Nov 18 09:05:20 hivemind kernel: WARNING: R/W mount of /storage denied.  
Filesystem is not clean - run fsck

I ran fsck a few times, but it could fix the drive.
hivemind# fsck -t ffs -y /dev/ccd0
--snip--
** Phase 2 - Check Pathnames
MISSING '.'  I=896624  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:18 2004
DIR=?
CANNOT FIX, FIRST ENTRY IN DIRECTORY CONTAINS mesg.27.2.jar
MISSING '..'  I=896624  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:18 2004
DIR=?
CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS mesg.28.2.jar
DIRECTORY CORRUPTED  I=941361  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:19 2004
DIR=?
SALVAGE? yes
MISSING '.'  I=941361  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:19 2004
DIR=?
FIX? yes
DIRECTORY CORRUPTED  I=941362  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:19 2004
DIR=?
SALVAGE? yes
MISSING '.'  I=941362  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:19 2004
DIR=?
FIX? yes
DIRECTORY CORRUPTED  I=941365  OWNER=nobody MODE=40755
SIZE=1024 MTIME=Jun 11 23:19 2004
DIR=?
SALVAGE? yes
MISSING '.'  I=941365  OWNER=nobody MODE=40755
SIZE=1024 MTIME=Jun 11 23:19 2004
DIR=?
FIX? yes
DIRECTORY CORRUPTED  I=941393  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:19 2004
DIR=?
SALVAGE? yes
MISSING '.'  I=941393  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:19 2004
DIR=?
CANNOT FIX, FIRST ENTRY IN DIRECTORY CONTAINS
fsck_ffs: inoinfo: inumber -2115204267 out of range
My question.  If fsck cannot repair a drive, does it mean that all hope 
is lost?
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


List of unofficial 5.3 make.conf options

2004-11-18 Thread Gerard Samuel
Is there a list of *unofficial* make.conf options saved somewhere?
For example, WITHOUT_X11=yes isn't listed in 
/usr/share/examples/etc/make.conf,
and the option seems to work on a box, that I don't want X11 pieces built.
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Corrupted Disk? [Was: Re: FreeBSD 5.x CCD]

2004-11-18 Thread Gerard Samuel
Gerard Samuel wrote:
Gerard Samuel wrote:
Kris Kennaway wrote:
On Wed, Nov 17, 2004 at 09:22:51PM -0500, Gerard Samuel wrote:
 

Well you just burst my bubble.
I was hoping I was missing a node.  Im trying to figure out a 
problem Im
having -
http://lists.freebsd.org/pipermail/freebsd-questions/2004-November/064973.html 

Thanks
  

Just mount /dev/ccd0 instead of /dev/ccd0c since the latter refers to
the entire disk anyway.
Here is what I did...
1.  Unconfigured ccd
hivemind# ccdconfig -U -f /etc/ccd.conf
2.  Reconfigured it
hivemind# ccdconfig -C -f /etc/ccd.conf
3.  Tried mount the drive the way you recommended, and got
hivemind# mount /dev/ccd0 /storage
mount: /dev/ccd0: Operation not permitted
Im going to try googling to see what I can find out.
But if anyone knows why I cannot mount this, then by all means,
let me know.
Thanks 

I noticed this in the logs when I was trying to mount the disk -
Nov 18 09:05:20 hivemind kernel: WARNING: R/W mount of /storage 
denied.  Filesystem is not clean - run fsck

I ran fsck a few times, but it could fix the drive.
hivemind# fsck -t ffs -y /dev/ccd0
--snip--
** Phase 2 - Check Pathnames
MISSING '.'  I=896624  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:18 2004
DIR=?
CANNOT FIX, FIRST ENTRY IN DIRECTORY CONTAINS mesg.27.2.jar
MISSING '..'  I=896624  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:18 2004
DIR=?
CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS mesg.28.2.jar
DIRECTORY CORRUPTED  I=941361  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:19 2004
DIR=?
SALVAGE? yes
MISSING '.'  I=941361  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:19 2004
DIR=?
FIX? yes
DIRECTORY CORRUPTED  I=941362  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:19 2004
DIR=?
SALVAGE? yes
MISSING '.'  I=941362  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:19 2004
DIR=?
FIX? yes
DIRECTORY CORRUPTED  I=941365  OWNER=nobody MODE=40755
SIZE=1024 MTIME=Jun 11 23:19 2004
DIR=?
SALVAGE? yes
MISSING '.'  I=941365  OWNER=nobody MODE=40755
SIZE=1024 MTIME=Jun 11 23:19 2004
DIR=?
FIX? yes
DIRECTORY CORRUPTED  I=941393  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:19 2004
DIR=?
SALVAGE? yes
MISSING '.'  I=941393  OWNER=nobody MODE=40755
SIZE=512 MTIME=Jun 11 23:19 2004
DIR=?
CANNOT FIX, FIRST ENTRY IN DIRECTORY CONTAINS
fsck_ffs: inoinfo: inumber -2115204267 out of range
My question.  If fsck cannot repair a drive, does it mean that all 
hope is lost?
Thanks 

Ah forget it.
I bit the bullet, and newfs'ed the ccd, and now it mounts without any 
complaints.
So all that data went to /dev/null
Note to self (and hopefully to others):  Back up your ccd arrays before 
reinstalling the OS...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: List of unofficial 5.3 make.conf options

2004-11-18 Thread Gerard Samuel
Subhro wrote:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gerard Samuel
Sent: Thursday, November 18, 2004 20:41
To: freebsd-questions
Subject: List of unofficial 5.3 make.conf options
Is there a list of *unofficial* make.conf options saved somewhere?
For example, WITHOUT_X11=yes isn't listed in 
/usr/share/examples/etc/make.conf,
and the option seems to work on a box, that I don't want X11 pieces built.
Thanks

Checked man make.conf?
WITHOUT_X11 isn't in the man page...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Getting back my CCD Raid

2004-11-17 Thread Gerard Samuel
Gerard Samuel wrote:
I had a ccd raid 0 drive setup under 4.10.
I did a fresh install of 5.3, with the thought, that I could just
reenable the settings for the ccd drive, to bring it back to life
with its data intact.
1.  Added device  ccd to the kernel and rebuilt it.
2.  Verified that the disklabels are intact for the drives ad0/ad2
# /dev/ad0:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
 c: 534643200unused0 0 # raw part, 
don't edit
 e: 5346432004.2BSD0 0 0

# /dev/ad2:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
 c: 534643200unused0 0 # raw part, 
don't edit
 e: 5346432004.2BSD0 0 0

3.  Ran ccdconfig ccd0 32 0 /dev/ad0e /dev/ad2e
4.  Ran ccdconfig -g  /etc/ccd.conf
5.  Try mounting the ccd with mount /dev/ccd0c /storage and I get
mount: /dev/ccd0c: No such file or directory
The device does exist -
hivemind# ls -al /dev/ccd*
crw-r-  1 root  operator4,  49 Nov 16 19:16 /dev/ccd0
I even tried configuring the drive before mounting but -
hivemind# ccdconfig -C
ccdconfig: Unit 0 already configured
or possibly kernel and ccdconfig out of sync
Could someone point out to me, what Im doing wrong?
Or is it even possible to achieve the results that Im looking for?
Should I be reconstructing the raid from scratch, deleting the data on 
them?

Thanks 

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


FreeBSD 5.x CCD

2004-11-17 Thread Gerard Samuel
This is to anyone who is successfully running a CCD raid under
5.x.
I want to compare your ccd* device nodes under /dev to what I have.
This is what I have.
hivemind# ls -al /dev/ccd*
crw-r-  1 root  operator4,  38 Nov 17 10:53 /dev/ccd0
I want to see if Im missing the ccd0c node.
Thanks for your time.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 5.x CCD

2004-11-17 Thread Gerard Samuel
Kris Kennaway wrote:
On Wed, Nov 17, 2004 at 12:22:57PM -0500, Gerard Samuel wrote:
 

This is to anyone who is successfully running a CCD raid under
5.x.
I want to compare your ccd* device nodes under /dev to what I have.
This is what I have.
hivemind# ls -al /dev/ccd*
crw-r-  1 root  operator4,  38 Nov 17 10:53 /dev/ccd0
I want to see if Im missing the ccd0c node.
Thanks for your time.
   

I have 

$ ls -l /dev/ccd*
crw-r-  1 root  operator4,  28 Oct 28 19:14 /dev/ccd0
crw-r-  1 root  operator4,  29 Oct 28 19:14 /dev/ccd1
which I use for swap and a single fs partition, respectively.
Well you just burst my bubble.
I was hoping I was missing a node.  Im trying to figure out a problem Im
having -
http://lists.freebsd.org/pipermail/freebsd-questions/2004-November/064973.html
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 5.x CCD

2004-11-17 Thread Gerard Samuel
Kris Kennaway wrote:
On Wed, Nov 17, 2004 at 09:22:51PM -0500, Gerard Samuel wrote:
 

Well you just burst my bubble.
I was hoping I was missing a node.  Im trying to figure out a problem Im
having -
http://lists.freebsd.org/pipermail/freebsd-questions/2004-November/064973.html
Thanks
   

Just mount /dev/ccd0 instead of /dev/ccd0c since the latter refers to
the entire disk anyway.
Here is what I did...
1.  Unconfigured ccd
hivemind# ccdconfig -U -f /etc/ccd.conf
2.  Reconfigured it
hivemind# ccdconfig -C -f /etc/ccd.conf
3.  Tried mount the drive the way you recommended, and got
hivemind# mount /dev/ccd0 /storage
mount: /dev/ccd0: Operation not permitted
Im going to try googling to see what I can find out.
But if anyone knows why I cannot mount this, then by all means,
let me know.
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Do I need to worry about these logs?

2004-11-16 Thread Gerard Samuel
This is a fresh install of 5.3 from last week.
Granted the script-kiddies has been working to break in via ssh,
when I was running 4.10, I've never seen these types of logs before.
Any clues, would be appreciated.
Thanks.
-- snip of /var/logs/auth.log --
Nov 16 09:06:56 hivemind sshd[7611]: reverse mapping checking 
getaddrinfo for 203-150-17-44.inter.net.th failed - POSSIBLE BREAKIN 
ATTEMPT!
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Getting back my CCD Raid

2004-11-16 Thread Gerard Samuel
I had a ccd raid 0 drive setup under 4.10.
I did a fresh install of 5.3, with the thought, that I could just
reenable the settings for the ccd drive, to bring it back to life
with its data intact.
1.  Added device  ccd to the kernel and rebuilt it.
2.  Verified that the disklabels are intact for the drives ad0/ad2
# /dev/ad0:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
 c: 534643200unused0 0 # raw part, 
don't edit
 e: 5346432004.2BSD0 0 0

# /dev/ad2:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
 c: 534643200unused0 0 # raw part, 
don't edit
 e: 5346432004.2BSD0 0 0

3.  Ran ccdconfig ccd0 32 0 /dev/ad0e /dev/ad2e
4.  Ran ccdconfig -g  /etc/ccd.conf
5.  Try mounting the ccd with mount /dev/ccd0c /storage and I get
mount: /dev/ccd0c: No such file or directory
The device does exist -
hivemind# ls -al /dev/ccd*
crw-r-  1 root  operator4,  49 Nov 16 19:16 /dev/ccd0
I even tried configuring the drive before mounting but -
hivemind# ccdconfig -C
ccdconfig: Unit 0 already configured
or possibly kernel and ccdconfig out of sync
Could someone point out to me, what Im doing wrong?
Or is it even possible to achieve the results that Im looking for?
Should I be reconstructing the raid from scratch, deleting the data on them?
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Getting back my CCD Raid

2004-11-16 Thread Gerard Samuel
Olivier Nicole wrote:
mount: /dev/ccd0c: No such file or directory
hivemind# ls -al /dev/ccd*
crw-r-  1 root  operator4,  49 Nov 16 19:16 /dev/ccd0
   

It seems that the device does not exists rather :)
You have /dev/ccd0 but not /dev/ccd0C !
First of all I'd try MAKEDEV
Im running 5.3 (maybe that wasn't clear in the original email).
I shouldn't have to run MAKEDEV
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Standard to Minimal FreeBSD 5.3

2004-11-15 Thread Gerard Samuel
Was just wondering if its possible to move from
a standard installation, to the minimal installation (as defined by the 
install process).
Just looking to see how small I can get my installation.
So far I removed all html files (that alone was about 128M).
Currently Im using about 315Mb.
Looking for ideas on where to cut corners, hopefully to get in the 100M 
- 200M range.
I've read http://neon1.net/misc/minibsd.html, but that is too small (I'd
use it as a last resort if I think I need to go smaller).
Thanks for your ideas...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Disabling ata device in 5.3?

2004-11-12 Thread Gerard Samuel
I have an ASUS A7V8X that has ATA SATA RAID options.
There are no drives hooked up to it.
When the box boots it hangs (not for too long) when its probing
the SATA interface.
I dont remember if there was any options in the bios to disable it, but
is it possible to turn it off via a hint or kernel option...
Thanks
dmesg snip
--
atapci0: Promise PDC20376 SATA150 controller port 
0xb800-0xb87f,0xd000-0xd00f,0xd400-0xd43f mem 
0xf200-0xf201,0xf280-0xf2800fff irq 11 at device 8.0 on pci0
atapci0: failed: rid 0x20 is memory, requested 4
ata2: channel #0 on atapci0
ata3: channel #1 on atapci0
ata4: channel #2 on atapci0
-- snip --
atapci1: VIA 8235 UDMA133 controller port 
0xa000-0xa00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 17.1 on pci0
ata0: channel #0 on atapci1
ata1: channel #1 on atapci1

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


Re: Out of Office AutoReply: Sex

2004-11-12 Thread Gerard Samuel
Chris wrote:
Lea Faso
Public Relations Manager
Motorola iDEN Subscriber Group
954-723-6333
Part-time; in office Mondays and Tuesdays
   

Why do users do this? Good Gawd. This one ought to be slapped, then reported 
to his superiors for burning corporate resources...

Hmm.  (954) is my neck of the woods, and I can assume its from the
big Motorola building about 15 mins away from me.
I have a hand ready for slappin'... ;)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/io problem in 5.3

2004-11-11 Thread Gerard Samuel
Nelis Lamprecht wrote:
On Wed, 10 Nov 2004 23:22:59 -0500, Gerard Samuel
[EMAIL PROTECTED] wrote:
 

Louis LeBlanc wrote:

   

Just got through buildworld/kernel on 5.3.  Strange problem I can't
find the solution to.
Xorg won't start:
Fatal server error:
xf86EnableIO: Failed to open /dev/io for extended I/O
Please consult the The x.org Foundation support at http://wiki.X.org
for help.
Yada Yada Yada.
Only one hit on Google, and it's just a bug report.  Anyone else have
any ideas?  I know /dev/is supposed to be more dynamic in 5.3, but
this isn't working.
 

Make sure your kernel has device   io.
X needs it in 5.3.
   

Out of curiosity does 5.3 have this in the Generic kernel ? I don't
have a copy installed yet to check but if it doesn't then it certainly
should IMO. I've seen this problem reported a few times already.
Yes its part of the 5.3 GENERIC kernel.
Also (I ran into this with X also), you also need device mem if you dont 
already have it.
--
device  mem # Memory and kernel memory devices
device  io  # I/O device
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Maybe a bug in 5.3 [Was: Re: BIND9 dump file]

2004-11-11 Thread Gerard Samuel
Erik Norgaard wrote:
Gerard Samuel wrote:
 

Im getting a bunch of these in the logs -
Nov 10 10:30:48 gatekeeper named[312]: dumping master file:
master/tmp-SLtSQEmBBK: open: permission denied
So I figured a filesystem permissions problem.  I chowned
Thanks for any info that you may provide...
 

Im confused.  I've read the named and rc.conf man pages, and didn't find
out
why named is behaving as it is.
   

I don't know if this will help or is related. I had a problem with named
not creating the pid-file with a permision denied error (see other thread).
I eventually solved it by creating a new chroot-dir and setting
permissions on that. It still remains a mystery to me why I ever got
that problem or why this worked.
I dont think recreating the chroot will fix it.
According to the docs, the chroot process is automatic in 5.3.
And since, I have no idea where these *automatic* instructions live,
I dont think moving/recreating the chroot will fix it.
I believe the problem lies within the *automatic* instructions.
Even in the docs for DNS in the handbook states that -
   *
 Create all directories that named expects to see:
# cd /etc/namedb
# mkdir -p bin dev etc var/tmp var/run master slave
# chown bind:bind slave var/*
   

 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-dns.html#CHOWN-SLAVE
 named only needs write access to these directories, so that is
 all we give it.
Im not sure why the author assumes that named shouldn't write to the 
master directory.
In my case, DHCP can only update master zones (DHCP updates DNS within 
the LAN),
not slave zones, so master should be writeable by named.

What Im going to try is this.
Since the slave directory never seems to change permissions, I'll move the
LAN's zone files to the slave directory instead of the master directory.
And change named.conf -
zone trini0.org {
   type master;
   file slave/trini0.org;
   allow-update { key DHCP_UPDATER; };
};
zone 0.168.192.in-addr.arpa {
   type master;
   file slave/trini0.org.rev;
   allow-update { key DHCP_UPDATER; };
};
Kind of a contradiction if you're a stickler on the naming convention.
Hopefully if this *automatic* process doesn't recreate the directories 
at boot time,
this should work out.
I'll try this, and report any findings.

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


Re: Maybe a bug in 5.3 [Was: Re: BIND9 dump file]

2004-11-11 Thread Gerard Samuel
Gerard Samuel wrote:
Erik Norgaard wrote:
Gerard Samuel wrote:
 

Im getting a bunch of these in the logs -
Nov 10 10:30:48 gatekeeper named[312]: dumping master file:
master/tmp-SLtSQEmBBK: open: permission denied
So I figured a filesystem permissions problem.  I chowned
Thanks for any info that you may provide...

Im confused.  I've read the named and rc.conf man pages, and didn't 
find
out
why named is behaving as it is.
  

I don't know if this will help or is related. I had a problem with named
not creating the pid-file with a permision denied error (see other 
thread).

I eventually solved it by creating a new chroot-dir and setting
permissions on that. It still remains a mystery to me why I ever got
that problem or why this worked.
I dont think recreating the chroot will fix it.
According to the docs, the chroot process is automatic in 5.3.
And since, I have no idea where these *automatic* instructions live,
I dont think moving/recreating the chroot will fix it.
I believe the problem lies within the *automatic* instructions.
Even in the docs for DNS in the handbook states that -
   *
 Create all directories that named expects to see:
# cd /etc/namedb
# mkdir -p bin dev etc var/tmp var/run master slave
# chown bind:bind slave var/*
  

 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-dns.html#CHOWN-SLAVE 

 named only needs write access to these directories, so that is
 all we give it.
Im not sure why the author assumes that named shouldn't write to the 
master directory.
In my case, DHCP can only update master zones (DHCP updates DNS within 
the LAN),
not slave zones, so master should be writeable by named.

What Im going to try is this.
Since the slave directory never seems to change permissions, I'll move 
the
LAN's zone files to the slave directory instead of the master directory.
And change named.conf -
zone trini0.org {
   type master;
   file slave/trini0.org;
   allow-update { key DHCP_UPDATER; };
};

zone 0.168.192.in-addr.arpa {
   type master;
   file slave/trini0.org.rev;
   allow-update { key DHCP_UPDATER; };
};
Kind of a contradiction if you're a stickler on the naming convention.
Hopefully if this *automatic* process doesn't recreate the directories 
at boot time,
this should work out.
I'll try this, and report any findings.

Well its been over 2 hours, and its not reporting any problems in the logs.
So Im going to leave it as it is.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


BIND9 dump file

2004-11-10 Thread Gerard Samuel
Im getting a bunch of these in the logs -
Nov 10 10:30:48 gatekeeper named[312]: dumping master file: 
master/tmp-SLtSQEmBBK: open: permission denied

So I figured a filesystem permissions problem.  I chowned
/var/named/etc/namedb/master to bind:wheel.
But when the box gets rebooted, the directory goes back to root:wheel.
Im currently using BIND9 only for the LAN (cacheing dns).
Thanks for any info that you may provide...
/etc/rc.conf
--
named_enable=YES
named_chrootdir=/var/named
/var/named/etc/namedb/named.conf
--
options {
   directory   /etc/namedb;
   pid-file/var/run/named/pid;
   dump-file   /var/dump/named_dump.db;
   statistics-file /var/stats/named.stats;
   forward only;
   forwarders {
   w.x.y.z; a.b.c.d;
   };
};
key DHCP_UPDATER {
   algorithm HMAC-MD5.SIG-ALG.REG.INT;
   secret my_key_here;
};
zone . {
   type hint;
   file named.root;
};
zone 0.0.127.IN-ADDR.ARPA {
   type master;
   file master/localhost.rev;
};
zone trini0.org {
   type master;
   file master/trini0.org;
   allow-update { key DHCP_UPDATER; };
};
zone 0.168.192.in-addr.arpa {
   type master;
   file master/trini0.org.rev;
   allow-update { key DHCP_UPDATER; };
};
// RFC 3152
zone 
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA {
   type master;
   file master/localhost-v6.rev;
};

// RFC 1886 -- deprecated
zone 
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT {
   type master;
   file master/localhost-v6.rev;
};
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: BIND9 dump file

2004-11-10 Thread Gerard Samuel
Gerard Samuel wrote:
Im getting a bunch of these in the logs -
Nov 10 10:30:48 gatekeeper named[312]: dumping master file: 
master/tmp-SLtSQEmBBK: open: permission denied

So I figured a filesystem permissions problem.  I chowned
/var/named/etc/namedb/master to bind:wheel.
But when the box gets rebooted, the directory goes back to root:wheel.
Im currently using BIND9 only for the LAN (cacheing dns).
Thanks for any info that you may provide...
Im confused.  I've read the named and rc.conf man pages, and didn't find out
why named is behaving as it is.
I've tried adding -
named_chroot_autoupdate=NO
to /etc/rc.conf, but its still generating those logs.
/etc/rc.conf
--
named_enable=YES
named_chrootdir=/var/named
/var/named/etc/namedb/named.conf
--
options {
   directory   /etc/namedb;
   pid-file/var/run/named/pid;
   dump-file   /var/dump/named_dump.db;
   statistics-file /var/stats/named.stats;
   forward only;
   forwarders {
   w.x.y.z; a.b.c.d;
   };
};
key DHCP_UPDATER {
   algorithm HMAC-MD5.SIG-ALG.REG.INT;
   secret my_key_here;
};
zone . {
   type hint;
   file named.root;
};
zone 0.0.127.IN-ADDR.ARPA {
   type master;
   file master/localhost.rev;
};
zone trini0.org {
   type master;
   file master/trini0.org;
   allow-update { key DHCP_UPDATER; };
};
zone 0.168.192.in-addr.arpa {
   type master;
   file master/trini0.org.rev;
   allow-update { key DHCP_UPDATER; };
};
// RFC 3152
zone 
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA 
{
   type master;
   file master/localhost-v6.rev;
};

// RFC 1886 -- deprecated
zone 
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT 
{
   type master;
   file master/localhost-v6.rev;
}; 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /dev/io problem in 5.3

2004-11-10 Thread Gerard Samuel
Louis LeBlanc wrote:
Just got through buildworld/kernel on 5.3.  Strange problem I can't
find the solution to.
Xorg won't start:
Fatal server error:
xf86EnableIO: Failed to open /dev/io for extended I/O
Please consult the The x.org Foundation support at http://wiki.X.org
for help.
Yada Yada Yada.
Only one hit on Google, and it's just a bug report.  Anyone else have
any ideas?  I know /dev/is supposed to be more dynamic in 5.3, but
this isn't working.
Make sure your kernel has device   io.
X needs it in 5.3.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/usr/src/sys/i386/compile

2004-11-09 Thread Gerard Samuel
Is there a correct way of emptying this directory.
I've made a custom kernel, and Im looking to save disk space.
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /usr/src/sys/i386/compile

2004-11-09 Thread Gerard Samuel
Lowell Gilbert wrote:
Gerard Samuel [EMAIL PROTECTED] writes:
 

Is there a correct way of emptying this directory.
I've made a custom kernel, and Im looking to save disk space.
   

rm(1) will work.
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/dhclient.conf syntax?

2004-11-08 Thread Gerard Samuel
Bob Tito wrote:
Gerard Samuel wrote:
I cant seem to get a custom version of /etc/resolv.conf to stick.
dhclient keeps overwriting it with data from my ISP's dhcp server.
This is what I have in /etc/dhclient.conf -
interface ed0 {
   supercede domain-name trini0.org;
   prepend domain-name-servers 127.0.0.1;
}

This is mine,
interface xl0 {
prepend domain-name-servers 127.0.0.1;
supersede domain-name btito.local;
media media 10baseT/UTP;
}
resulting in:
mail# cat /etc/resolv.conf
search btito.local
nameserver 127.0.0.1
nameserver 194.xxx.xxx.xxx
nameserver 194.xxx.xxx.xxx
Fix the typo in supersede if this is a try copy and paste form the file.
Best regards, Bob
Thanks.  Fixing the spelling error, makes it work as expected.
Maybe lack of sleep.
Thanks once again...
And for some reason, /etc/resolv.conf *always* comes back as -
search some_name.attbi.com
nameserver www.xxx.yyy.zzz
nameserver www.xxx.yyy.zzz
Is there anyway to make /etc/resolv.conf stick??
Thanks 

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


FreeBSD DHCP client not working with dynamic DNS

2004-11-08 Thread Gerard Samuel
Box 1:  Firewall/DHCP Server/DNS (FreeBSD 5.3)
Box 2:  DHCP Client (FreeBSD 5.3R2)
When I boot Box 2, it gets its IP address, but DNS doesn't
get updated, so Box 2 is unknown to the LAN via its hostname.
If I boot a windows box (tested with 2000/XP), and I've tested with a
networked printer, they get an IP address, and DNS is updated
for those devices.
Any help would be appreciated.
Thanks
---
Box 1
/usr/local/etc/dhcpd.conf
--
option domain-name trini0.org;
option domain-name-servers 192.168.0.1;
option subnet-mask 255.255.255.0;
default-lease-time 3600;
max-lease-time 86400;
subnet 192.168.0.0 netmask 255.255.255.0 {
 range 192.168.0.10 192.168.0.20;
 option routers 192.168.0.1;
}
# DNS
ddns-update-style interim;
ddns-domainname trini0.org;
ddns-rev-domainname in-addr.arpa;
key DHCP_UPDATER {
 algorithm HMAC-MD5.SIG-ALG.REG.INT;
 secret my_key;
};
zone trini0.org. {
 primary 192.168.0.1;
 key DHCP_UPDATER;
}
zone 0.168.192.in-addr.arpa. {
 primary 192.168.0.1;
 key DHCP_UPDATER;
}
--
/var/named/etc/namedb/named.conf
-- snip --
key DHCP_UPDATER {
   algorithm HMAC-MD5.SIG-ALG.REG.INT;
   secret my_key;
};
zone . {
   type hint;
   file named.root;
};
zone 0.0.127.IN-ADDR.ARPA {
   type master;
   file master/localhost.rev;
};
zone trini0.org {
   type master;
   file master/trini0.org;
   allow-update { key DHCP_UPDATER; };
};
zone 0.168.192.in-addr.arpa {
   type master;
   file master/trini0.org.rev;
   allow-update { key DHCP_UPDATER; };
};
-- snip --
Box 2
--
/etc/rc.conf
-- snip --
ifconfig_fxp0=DHCP
-- snip --
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD DHCP client not working with dynamic DNS

2004-11-08 Thread Gerard Samuel
Gerard Samuel wrote:
Box 1:  Firewall/DHCP Server/DNS (FreeBSD 5.3)
Box 2:  DHCP Client (FreeBSD 5.3R2)
When I boot Box 2, it gets its IP address, but DNS doesn't
get updated, so Box 2 is unknown to the LAN via its hostname.
If I boot a windows box (tested with 2000/XP), and I've tested with a
networked printer, they get an IP address, and DNS is updated
for those devices.
Any help would be appreciated.
Thanks
---
Box 1
/usr/local/etc/dhcpd.conf
--
option domain-name trini0.org;
option domain-name-servers 192.168.0.1;
option subnet-mask 255.255.255.0;
default-lease-time 3600;
max-lease-time 86400;
subnet 192.168.0.0 netmask 255.255.255.0 {
 range 192.168.0.10 192.168.0.20;
 option routers 192.168.0.1;
}
# DNS
ddns-update-style interim;
ddns-domainname trini0.org;
ddns-rev-domainname in-addr.arpa;
key DHCP_UPDATER {
 algorithm HMAC-MD5.SIG-ALG.REG.INT;
 secret my_key;
};
zone trini0.org. {
 primary 192.168.0.1;
 key DHCP_UPDATER;
}
zone 0.168.192.in-addr.arpa. {
 primary 192.168.0.1;
 key DHCP_UPDATER;
}
--
/var/named/etc/namedb/named.conf
-- snip --
key DHCP_UPDATER {
   algorithm HMAC-MD5.SIG-ALG.REG.INT;
   secret my_key;
};
zone . {
   type hint;
   file named.root;
};
zone 0.0.127.IN-ADDR.ARPA {
   type master;
   file master/localhost.rev;
};
zone trini0.org {
   type master;
   file master/trini0.org;
   allow-update { key DHCP_UPDATER; };
};
zone 0.168.192.in-addr.arpa {
   type master;
   file master/trini0.org.rev;
   allow-update { key DHCP_UPDATER; };
};
-- snip --
Box 2
--
/etc/rc.conf
-- snip --
ifconfig_fxp0=DHCP
-- snip -- 

Im changing my example of Box 2's /etc/rc.conf as its pertinent -
hostname=gladiator.trini0.org
ifconfig_fxp0=DHCP
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD DHCP client not working with dynamic DNS

2004-11-08 Thread Gerard Samuel
Emanuel Strobl wrote:
Am Montag, 8. November 2004 18:32 schrieb Gerard Samuel:
 

Box 1:  Firewall/DHCP Server/DNS (FreeBSD 5.3)
Box 2:  DHCP Client (FreeBSD 5.3R2)
When I boot Box 2, it gets its IP address, but DNS doesn't
get updated, so Box 2 is unknown to the LAN via its hostname.
If I boot a windows box (tested with 2000/XP), and I've tested with a
networked printer, they get an IP address, and DNS is updated
for those devices.
   

Add 'send host-name gladiator;' to /etc/dhclient.conf or if you want to be 
more correct:
interface em0 {
   send host-name gladiator;
}

Dont forget to change the em0 interface to what your interface really is.
Worked like a charm.
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 5.3 and ed0 [SOLVED]

2004-11-07 Thread Gerard Samuel
Gerard Samuel wrote:
Gerard Samuel wrote:
Gerard Samuel wrote:
Kris Kennaway wrote:
On Sat, Nov 06, 2004 at 09:29:27PM -0500, Gerard Samuel wrote:
 

Im trying to move from FreeBSD 4.10 to 5.3.
When I used to install 3.x/4.x on this box, I would configure
the network card during the install process.
According to the manual, the device config part of the install,
was taken out, but the network card doesnt get identified by 
FreeBSD 5.3.
I tried selecting #6 during the install boot menu,
and entered -
boot -c
in the hopes to get the device config screen, but I didn't get that.
Is it possible to get that pre FBSD 5.x device config screen,
or is there some way to configure that network card during the 
install process??
  


I believe you can set a hint variable from the loader prompt.  The
defaults are:
hint.ed.0.at=isa
hint.ed.0.disabled=1

While reading the manual at 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/device-hints.html 

it says -
disabled: if set to 1 the device is disabled.
So that maybe my problem.
I'll give it a shot tomorrow, and report back... 
Ok.  setting
hint.ed.0.disabled=0
hint.ed.0.port=0x300
Solved my problem.
And as a side note, to make the change permanent, modify
/boot/device.hints for the ed0 driver (or I believe it can be
done via a custom kernel).
Thanks for pointing me in the right direction...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


/etc/dhclient.conf syntax?

2004-11-07 Thread Gerard Samuel
I cant seem to get a custom version of /etc/resolv.conf to stick.
dhclient keeps overwriting it with data from my ISP's dhcp server.
This is what I have in /etc/dhclient.conf -
interface ed0 {
   supercede domain-name trini0.org;
   prepend domain-name-servers 127.0.0.1;
}
And for some reason, /etc/resolv.conf *always* comes back as -
search some_name.attbi.com
nameserver www.xxx.yyy.zzz
nameserver www.xxx.yyy.zzz
Is there anyway to make /etc/resolv.conf stick??
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD 5.3 and ed0

2004-11-06 Thread Gerard Samuel
Im trying to move from FreeBSD 4.10 to 5.3.
When I used to install 3.x/4.x on this box, I would configure
the network card during the install process.
According to the manual, the device config part of the install,
was taken out, but the network card doesnt get identified by FreeBSD 5.3.
I tried selecting #6 during the install boot menu,
and entered -
boot -c
in the hopes to get the device config screen, but I didn't get that.
Is it possible to get that pre FBSD 5.x device config screen,
or is there some way to configure that network card during the install 
process??

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


Re: FreeBSD 5.3 and ed0

2004-11-06 Thread Gerard Samuel
Kris Kennaway wrote:
On Sat, Nov 06, 2004 at 09:29:27PM -0500, Gerard Samuel wrote:
 

Im trying to move from FreeBSD 4.10 to 5.3.
When I used to install 3.x/4.x on this box, I would configure
the network card during the install process.
According to the manual, the device config part of the install,
was taken out, but the network card doesnt get identified by FreeBSD 5.3.
I tried selecting #6 during the install boot menu,
and entered -
boot -c
in the hopes to get the device config screen, but I didn't get that.
Is it possible to get that pre FBSD 5.x device config screen,
or is there some way to configure that network card during the install 
process??
   

I believe you can set a hint variable from the loader prompt.  The
defaults are:
hint.ed.0.at=isa
hint.ed.0.disabled=1
hint.ed.0.port=0x280
hint.ed.0.irq=10
hint.ed.0.maddr=0xd8000
Kris
 

I'll give this a shot.
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 5.3 and ed0

2004-11-06 Thread Gerard Samuel
Gerard Samuel wrote:
Kris Kennaway wrote:
On Sat, Nov 06, 2004 at 09:29:27PM -0500, Gerard Samuel wrote:
 

Im trying to move from FreeBSD 4.10 to 5.3.
When I used to install 3.x/4.x on this box, I would configure
the network card during the install process.
According to the manual, the device config part of the install,
was taken out, but the network card doesnt get identified by FreeBSD 
5.3.
I tried selecting #6 during the install boot menu,
and entered -
boot -c
in the hopes to get the device config screen, but I didn't get that.
Is it possible to get that pre FBSD 5.x device config screen,
or is there some way to configure that network card during the 
install process??
  

I believe you can set a hint variable from the loader prompt.  The
defaults are:
hint.ed.0.at=isa
hint.ed.0.disabled=1
hint.ed.0.port=0x280
hint.ed.0.irq=10
hint.ed.0.maddr=0xd8000
Kris
 

I'll give this a shot.
Thanks 
Ok.  I didnt get any further.  Not sure if Im doing the correct thing.
1.  I chose #6 from the boot menu
2.  I entered show to see all the hints
3.  I entered `set hint.ed.0.port=0x300`  (without the ``; see below 
for why I did this)
4.  I entered show again to verify the change
5.  I entered boot

The dmesg goes by, and I didn't see ed0 load up.  I scrolled back, and its
definately not in the list.
I tried continuing the install, and I dont have a choice to use ed0 in 
the network setup,
to pull sources off the internet to install FBSD.
So Im not sure what is going on...

For the reason why I only modified ed0's hint port is because its the 
only setting
different from what Im currently using (settings wise) under 4.10 (and 
all the
versions since 3.4 if I remember correctly).

gatekeeper# uname -a
FreeBSD gatekeeper.trini0.org 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Mon 
May 31 06:25:01 EDT 2004 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GATEKEEPER  i386

gatekeeper# dmesg | grep ed0
ed0 at port 0x300-0x31f iomem 0xd8000-0xdbfff irq 10 on isa0
ed0: address 00:00:c0:29:52:48, type WD8013EPC (16 bit)
gatekeeper# ifconfig | grep ed0
ed0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
gatekeeper# more /usr/src/sys/i386/conf/GATEKEEPER | grep ed0
device  ed0 at isa? port 0x300 irq 10 iomem 0xd8000
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: First questions: rebuilding world

2004-11-06 Thread Gerard Samuel
Joseph H. Fry wrote:
Hello everyone!
Seeing as how this is my first post to this fine mailing list, I first
want to make sure that my message is formatted properly.  I'm using MS
Outlook (cringe) and don't want to offend anyone if it's formatted
incorrectly.
 

Looks fine to me in Thunderbird...
Anyway, on to my real question.  I have my system installed, and have
CVSup-ed my source... So I think I'm ready to rebuild the world.
However, considering that my BSD box is in a remote out of the way
location in my basement, I am using ssh to do as much as possible on the
box.  Can I rebuild my system via ssh, or do I NEED to work directly on
the machine?  Can I drop into single user mode and still access the
system via ssh (I know, sounds like I answered my own question, but hey
we newbies never know)
 

Once in single user mode, ssh is out of the question.  In single user 
mode, only
*person* can login, and that is at the actual terminal.
Depending on the situation, for example.  My firewall is at the other 
side of the
house, without a keyboard/monitor.
Since the box doesn't have any other logged in users, I normally
build world in multi user mode.
Doing so is taking a chance with the success of the build world,
but like I said, it depends on the situation...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 5.3 and ed0

2004-11-06 Thread Gerard Samuel
Gerard Samuel wrote:
Gerard Samuel wrote:
Kris Kennaway wrote:
On Sat, Nov 06, 2004 at 09:29:27PM -0500, Gerard Samuel wrote:
 

Im trying to move from FreeBSD 4.10 to 5.3.
When I used to install 3.x/4.x on this box, I would configure
the network card during the install process.
According to the manual, the device config part of the install,
was taken out, but the network card doesnt get identified by 
FreeBSD 5.3.
I tried selecting #6 during the install boot menu,
and entered -
boot -c
in the hopes to get the device config screen, but I didn't get that.
Is it possible to get that pre FBSD 5.x device config screen,
or is there some way to configure that network card during the 
install process??
  

I believe you can set a hint variable from the loader prompt.  The
defaults are:
hint.ed.0.at=isa
hint.ed.0.disabled=1

While reading the manual at 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/device-hints.html
it says -
disabled: if set to 1 the device is disabled.
So that maybe my problem.
I'll give it a shot tomorrow, and report back...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: First questions: rebuilding world

2004-11-06 Thread Gerard Samuel
Joseph H. Fry wrote:
Once in single user mode, ssh is out of the question.  In single user
mode, only
*person* can login, and that is at the actual terminal.
Depending on the situation, for example.  My firewall is at the other
side of the
house, without a keyboard/monitor.
Since the box doesn't have any other logged in users, I
normally build world in multi user mode. Doing so is taking a
chance with the success of the build world, but like I said,
it depends on the situation...
   

Thanks!  So you can do everything in multiuser mode, or do you still
have to drop to single user mode to actually install the new kernel and
new system binaries?
 

I've done everything in multiuser mode on more than one occasion.
Also, does doing all of this bring me to the most recent stable release?
(I noticed that 5.3 was released yesterday, presumably just after I
downloaded 5.2.1).
You probably will have 5.3 sources if you used RELENG_5.3.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD 5.3 and XFree86

2004-11-03 Thread Gerard Samuel
I just upgraded from 5.2.1 to 5.3.  When running startx, it ends up with 
this error -

Fatal server error:
xf86EnableIO: Failed to open /dev/io for extended I/O
So I uninstalled XFree86, and reinstalled it, while including this in 
/etc/make.conf -

X_WINDOW_SYSTEM=xfree86-4
XFree86 installed successfully, but Im still getting the error above.
Any suggestions???
Thanks

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


Re: FreeBSD 5.3 and XFree86

2004-11-03 Thread Gerard Samuel
Marc Fonvieille wrote:
On Wed, Nov 03, 2004 at 09:32:07AM -0500, Gerard Samuel wrote:
 

I just upgraded from 5.2.1 to 5.3.  When running startx, it ends up with 
this error -

Fatal server error:
xf86EnableIO: Failed to open /dev/io for extended I/O
   

[...]
device io etc.
are not in your kernel config or are not loaded.
 

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


Upgrading 5.2.1 to 5.3R2

2004-11-02 Thread Gerard Samuel
Ok, so I upgraded, ran mergemaster, and merged /etc/group (and 
/etc/master.passwd I think) via mergemaster.
I merged those files to retain my non root user account.
I rebooted, and I haven't been able to log into my non root account.
I tried to readd the account via adduser, but it says that the user 
already exists.
So I tried rmuser, and it says that the user doesn't exist.
So I manually removed the account name from /etc/group, 
/etc/master.passwd, /etc/passwd,
and tried to add the user, via adduser.
When it tries to add the user, it fails (dont remember the message right 
now).
Anyone has any suggestions on how I can get the old user account back??
N.B. I did back up /etc before mergemaster...
Thanks

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


Re: Upgrading 5.2.1 to 5.3R2 (Maybe a problem adding a user)

2004-11-02 Thread Gerard Samuel
Gerard Samuel wrote:
Ok, so I upgraded, ran mergemaster, and merged /etc/group (and 
/etc/master.passwd I think) via mergemaster.
I merged those files to retain my non root user account.
I rebooted, and I haven't been able to log into my non root account.
I tried to readd the account via adduser, but it says that the user 
already exists.
So I tried rmuser, and it says that the user doesn't exist.
So I manually removed the account name from /etc/group, 
/etc/master.passwd, /etc/passwd,
and tried to add the user, via adduser.
When it tries to add the user, it fails (dont remember the message 
right now).
I tried adding another account on the box, and the Im getting the same 
error...
This time I got the error message from adduser


OK? (yes/no): yes
pw: user 'test' disappeared during update
adduser: ERROR: There was an error adding user (test).
Add another user? (yes/no): no

Anyone has any suggestions on how I can get the old user account back??
N.B. I did back up /etc before mergemaster...
Thanks

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


Re: Upgrading 5.2.1 to 5.3R2 (Maybe a problem adding a user) [SOLVED]

2004-11-02 Thread Gerard Samuel
Gerard Samuel wrote:
Gerard Samuel wrote:
Ok, so I upgraded, ran mergemaster, and merged /etc/group (and 
/etc/master.passwd I think) via mergemaster.
I merged those files to retain my non root user account.
I rebooted, and I haven't been able to log into my non root account.
I tried to readd the account via adduser, but it says that the user 
already exists.
So I tried rmuser, and it says that the user doesn't exist.
So I manually removed the account name from /etc/group, 
/etc/master.passwd, /etc/passwd,
and tried to add the user, via adduser.
When it tries to add the user, it fails (dont remember the message 
right now).

I tried adding another account on the box, and the Im getting the same 
error...
This time I got the error message from adduser


OK? (yes/no): yes
pw: user 'test' disappeared during update
adduser: ERROR: There was an error adding user (test).
Add another user? (yes/no): no

Anyone has any suggestions on how I can get the old user account back??
N.B. I did back up /etc before mergemaster...
Thanks 

Well I got it working again.  Im not sure what fixed it, but I believe 
running vipw fixed what was wrong with it...

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


Determining original FBSD version

2004-10-31 Thread Gerard Samuel
I plan on making the move to 5.3 on boxes running 4.10
via a fresh install.
The thought came to me as to what was the original version of
FreeBSD did I install on those boxes.
Usually I upgrade the boxes via build/install world.
If there is way to find out, that it would be interesting to know.
If not, no big deal, as its an absent minded thought...
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Determining original FBSD version

2004-10-31 Thread Gerard Samuel
jason wrote:
Gerard Samuel wrote:
I plan on making the move to 5.3 on boxes running 4.10
via a fresh install.
The thought came to me as to what was the original version of
FreeBSD did I install on those boxes.
Usually I upgrade the boxes via build/install world.
If there is way to find out, that it would be interesting to know.
If not, no big deal, as its an absent minded thought...
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]

I think all you can do is know what version you have now(uname -a).  
Other thatn that search for the oldest file on your computer. 
That gave me an idea.  I looked at the date of kernel.GENERIC, and a few 
other files
in /etc.  They have a date of April 21 2001.
All I have to do to find out the exact version, is to boot the GENERIC 
kernel.
I dont have a keyboard/monitor hooked up to it right now, but I'll check 
it out,
before I destroy it when I install 5.3.

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


Re: Determining original FBSD version

2004-10-31 Thread Gerard Samuel
Jeremy Faulkner wrote:
On Sun, 2004-10-31 at 18:59, Gerard Samuel wrote:
 

jason wrote:
   

Gerard Samuel wrote:
 

I plan on making the move to 5.3 on boxes running 4.10
via a fresh install.
The thought came to me as to what was the original version of
FreeBSD did I install on those boxes.
Usually I upgrade the boxes via build/install world.
If there is way to find out, that it would be interesting to know.
If not, no big deal, as its an absent minded thought...
Thanks
   

I think all you can do is know what version you have now(uname -a).  
Other thatn that search for the oldest file on your computer. 
 

That gave me an idea.  I looked at the date of kernel.GENERIC, and a few 
other files
in /etc.  They have a date of April 21 2001.
All I have to do to find out the exact version, is to boot the GENERIC 
kernel.
I dont have a keyboard/monitor hooked up to it right now, but I'll check 
it out,
before I destroy it when I install 5.3.
   

strings kernel.GENERIC | grep RELEASE
 

Excellent...
hivemind# strings kernel.GENERIC | grep RELEASE
BUS_RELEASE_RESOURCE
RELEASE ELEMENT(10)
RELEASE(10
RELEASE ELEMENT(06)
RELEASE(06)
@(#)FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001
4.3-RELEASE
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: starting apache2 just hangs

2004-10-29 Thread Gerard Samuel
asolomon15 wrote:
I am having a problem starting my apache webserver.   I had it running 
just fine but a few days ago I had a power outage.  When trying to 
start the apache it will just hang there and not start at all.  Anyone 
have any ideas?
Is some form of dns running?
Usually, when my internal dns is down, programs like apache/kde
will seem like they are hung at boot/start time...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Fatal trap??

2004-10-21 Thread Gerard Samuel
The box usually runs without any problems, but anyone have any idea what
caused the box to reboot with this error?  Hardware maybe?
FreeBSD 4.10-RELEASE-p3
Thanks
-
Oct 21 17:27:34 hivemind /kernel: Fatal trap 12: page fault while in 
kernel mode
Oct 21 17:27:34 hivemind /kernel: fault virtual address = 0x12
Oct 21 17:27:34 hivemind /kernel: fault code= supervisor 
read, page not present
Oct 21 17:27:34 hivemind /kernel: instruction pointer   = 0x8:0xc0212c7c
Oct 21 17:27:34 hivemind /kernel: stack pointer = 0x10:0xd4815e7c
Oct 21 17:27:34 hivemind /kernel: frame pointer = 0x10:0xd4815e84
Oct 21 17:27:34 hivemind /kernel: code segment  = base 0x0, 
limit 0xf, type 0x1b
Oct 21 17:27:34 hivemind /kernel: = DPL 0, pres 1, def32 1, gran 1
Oct 21 17:27:34 hivemind /kernel: processor eflags  = interrupt 
enabled, resume, IOPL = 0
Oct 21 17:27:34 hivemind /kernel: current process   = 3235 
(postgres)
Oct 21 17:27:34 hivemind /kernel: interrupt mask= none
Oct 21 17:27:34 hivemind /kernel: trap number   = 12
Oct 21 17:27:34 hivemind /kernel: panic: page fault
Oct 21 17:27:34 hivemind /kernel:
Oct 21 17:27:34 hivemind /kernel: syncing disks... 38 1
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What version of FBSD does Yahoo run?

2004-10-06 Thread Gerard Samuel
Jonathon McKitrick wrote:
On Tue, Oct 05, 2004 at 09:07:44AM -0700, Kris Kennaway wrote:
: On Tue, Oct 05, 2004 at 05:01:32PM +0100, Jonathon McKitrick wrote:
:  
:  I would expect they are running 4.x, but does anyone know if they have
:  migrated any production boxes to 5.x?  Are they contributing any code to
:  either branch?
: 
: Yes, a number of committers work for Yahoo.

Any idea if they are running 5.x in production yet?
Here is a thought.
Why would they be running a pre-production release as a production 
server
I have no idea what yahoo does, but I think it would be irrespondsible
for them to attempt using 5.x on a production machine...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Port Freeze

2004-10-03 Thread Gerard Samuel
Raman wrote:
Hi, I thought this port freeze was only supposed to last 2 weeks from
Sept 3rd.  Just wondering what is taking so long.
Until portmanager says so.
5.3 is still being tested, so when things settle down,
things are as they are for the time being...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Starting apache at boot with SSL.

2004-10-02 Thread Gerard Samuel
Eric Crist wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello all,
I must be missing something.  I have apache starting correctly during 
boot, but without SSL.  I have to log in and type apachectl startssl to 
get it to work correctly.  What did I miss?


From /usr/ports/UPDATING
20040605:
  AFFECTS: users of www/apache2
  AUTHOR: [EMAIL PROTECTED]
  The apache2 port must now be enabled / disabled and configured in
  rc.conf.  See the pkg-message or script for details.
Im not sure about apache13
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mini-itx posting.

2004-09-17 Thread Gerard Samuel
borg wrote:
Greetings,
I want to post some info on a mini-itx mobo I bought,
so other users can benefit from that. can I post that
to freebsd-questions@ ? If not what's the right list ?

My guess is it probably would be better to post to -hardware.
http://lists.freebsd.org/mailman/listinfo/freebsd-hardware
Good luck with the mini-itx.  I plan on getting one in the very
near future - 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: BIND9 REPLACE BASE BIND8

2004-09-14 Thread Gerard Samuel
Joshua Lewis wrote:
I have been having been having some issues with BIND that have been
driving me up the wall. I believe I may have located the problem. I
believe I had both BIND8 and BIND9 installed on the same system. So I am
reinstalling from the ports collection and overwriting BIND8 completely.
I wish to avoid this issue in the future. I found this in a how to
online and was wondering if it is accurate. 
 
if you plan on upgrading your base system, add NO_BIND= true to /
etc/make.conf to keep 'buildworld' from blowing away your current BIND
install.
 
 
For one thing there was no make.conf in /etc. Then the other thing is
the syntax looks odd to me. I would have thought it would be
NO_BIND=TRUE as this is the syntax I have seen in rc.conf. Could
someone set me strait?
 

First things first.  Please there is no need to shout your title..
Depending on which FBSD your're using -
4.x.x - /etc/defaults/make.conf
5.x.x - /usr/share/examples/etc/make.conf
These are the options that you can put into your custom /etc/make.conf file.
Hopefully that should clear things up...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: linux-flash6 crashes firefox on 5.3BETA

2004-09-14 Thread Gerard Samuel
Jason Porter wrote:
so I deleted the plugin
I think you answered your self here.
You can also look at - 
http://www.packetwatch.net/documents/guides/freebsd/flash6.php
I haven't tried this method...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Renaming files using find

2004-08-31 Thread Gerard Samuel
Im trying to rename a few files with the .dist extension.
Im trying -
hivemind# find . -name '*.dist' -exec cp {} `basename {} .dist` \;
And Im getting -
cp: ./html.php.dist and ./html.php.dist are identical (not copied).
cp: ./horde.php.dist and ./horde.php.dist are identical (not copied).
cp: ./motd.php.dist and ./motd.php.dist are identical (not copied).
cp: ./mime_mapping.php.dist and ./mime_mapping.php.dist are identical 
(not copied).
cp: ./prefs.php.dist and ./prefs.php.dist are identical (not copied).
cp: ./registry.php.dist and ./registry.php.dist are identical (not copied).
cp: ./lang.php.dist and ./lang.php.dist are identical (not copied).
cp: ./mime_drivers.php.dist and ./mime_drivers.php.dist are identical 
(not copied).

What is wrong with the command that I issued.
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Renaming files using find

2004-08-31 Thread Gerard Samuel
Giorgos Keramidas wrote:
On 2004-08-31 11:15, Gerard Samuel [EMAIL PROTECTED] wrote:
Im trying to rename a few files with the .dist extension.
Im trying -
hivemind# find . -name '*.dist' -exec cp {} `basename {} .dist` \;
And Im getting -
cp: ./html.php.dist and ./html.php.dist are identical (not copied).
cp: ./horde.php.dist and ./horde.php.dist are identical (not copied).
cp: ./motd.php.dist and ./motd.php.dist are identical (not copied).
cp: ./mime_mapping.php.dist and ./mime_mapping.php.dist are identical (not copied).
cp: ./prefs.php.dist and ./prefs.php.dist are identical (not copied).
cp: ./registry.php.dist and ./registry.php.dist are identical (not copied).
cp: ./lang.php.dist and ./lang.php.dist are identical (not copied).
cp: ./mime_drivers.php.dist and ./mime_drivers.php.dist are identical (not copied).
What is wrong with the command that I issued.

The basename command gets expanded by the shell you use *BEFORE* find
has a change to run.
You can try playing tricks with escaping the backquotes, which is
probably going to result very quickly in ugliness like \\\`foo\\\` or
you can use find to generate a list of filenames which will be
processed by the rest of the command-line to spit out the rename
commands, and feed them to sh(1) for execution, i.e.:
$ ls -l
total 0
-rw-rw-r--  1 keramida  wheel  - 0 Aug 31 18:33 koko.dist
-rw-rw-r--  1 keramida  wheel  - 0 Aug 31 18:33 lala.dist
$ find . -name \*.dist | \
  awk '{ printf mv \%s\ `basename \%s\ .dist`\n,$0,$0; }'
mv ./lala.dist `basename ./lala.dist .dist`
mv ./koko.dist `basename ./koko.dist .dist`
$ find . -name \*.dist | \
  awk '{ printf mv \%s\ `basename \%s\ .dist`\n,$0,$0; }' | sh
$ ls -l
total 0
-rw-rw-r--  1 keramida  wheel  - 0 Aug 31 18:33 koko
-rw-rw-r--  1 keramida  wheel  - 0 Aug 31 18:33 lala
Thanks for the explanation...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Embedded freebsd How to?

2004-08-24 Thread Gerard Samuel
Andrew L. Gould wrote:
On Monday 23 August 2004 11:21 pm, Gerard Samuel wrote:
Andrew L. Gould wrote:
On Monday 23 August 2004 07:41 pm, Gerard Samuel wrote:
Well I've been using FBSD since 3.4, and I would like to
try my hand at trying to put together an embedded FBSD system.
I browsed the -small mailing list, but there doesnt seem to be
any relevant up to date data there (I may be mistaken).
I did a bit of googling, but Im not finding what Im looking
for.
I kept running into Embedded FreeBSD Cookbook.  Anyone thoughts
on this book.
But other than that, are there any online how to tutorial,
that would show an almost beginner on how to get started.
Thanks for any input you may provide...
Go to http://soekris.com/ and click on Support.  You'll find some
tutorials on installing FreeBSD on their embedded boards.  One of
the tutorials is miniBSD - reducing FreeBSD.
Also, Michael Lucas has an article on installing OpenBSD on one of
their boards:
http://www.onlamp.com/pub/a/bsd/2004/03/11/Big_Scary_Daemons.html
Best of luck,
Seems my options are limited, but thanks for the links...

I don't think you're options are limited.  These are just examples that 
have come to the attention of someone who does NOT do embedded stuff.


Understood.  What I meant by limited was that it seems (with respect 
to hardware), it seems like the hardware side of things isn't as 
widespread as I thought it would have been (compared to *normal* 
hardware, aka AT/ATX etc).
I was previously aware of soekris through mOrOwall (which gave me the 
idea of putting one together myself).
But then again, I've only begun searching yesterday, so what do I know :)

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


Re: Embedded freebsd How to?

2004-08-24 Thread Gerard Samuel
Murray Taylor wrote:
On Tue, 2004-08-24 at 23:26, Gerard Samuel wrote:
Andrew L. Gould wrote:
On Monday 23 August 2004 11:21 pm, Gerard Samuel wrote:

Andrew L. Gould wrote:

On Monday 23 August 2004 07:41 pm, Gerard Samuel wrote:

Well I've been using FBSD since 3.4, and I would like to
try my hand at trying to put together an embedded FBSD system.
I browsed the -small mailing list, but there doesnt seem to be
any relevant up to date data there (I may be mistaken).
I did a bit of googling, but Im not finding what Im looking
for.
I kept running into Embedded FreeBSD Cookbook.  Anyone thoughts
on this book.
But other than that, are there any online how to tutorial,
that would show an almost beginner on how to get started.
Thanks for any input you may provide...
Go to http://soekris.com/ and click on Support.  You'll find some
tutorials on installing FreeBSD on their embedded boards.  One of
the tutorials is miniBSD - reducing FreeBSD.
Also, Michael Lucas has an article on installing OpenBSD on one of
their boards:
http://www.onlamp.com/pub/a/bsd/2004/03/11/Big_Scary_Daemons.html
Best of luck,
Seems my options are limited, but thanks for the links...

I don't think you're options are limited.  These are just examples that 
have come to the attention of someone who does NOT do embedded stuff.


Understood.  What I meant by limited was that it seems (with respect 
to hardware), it seems like the hardware side of things isn't as 
widespread as I thought it would have been (compared to *normal* 
hardware, aka AT/ATX etc).
I was previously aware of soekris through mOrOwall (which gave me the 
idea of putting one together myself).
But then again, I've only begun searching yesterday, so what do I know :)

Thanks once again...
miniBSD runs fine on the Advantech WEB-2143 (and probably also on the
later cousins). We run it in 14Mb of a 32Mb CF card as a bridging
firewall among other things.
http://neon1.net/misc/minibsd.html
for the 'recipe' .. be very aware of the static / dynamic libraries
on the development box .. sigh
Thanks.  I got the Advantech page bookmarked.
After some searching around, I came across this -
http://www.via.com.tw/en/VInternet/mini_itx.jsp as a platform.
So the research continues...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Embedded freebsd How to?

2004-08-23 Thread Gerard Samuel
Well I've been using FBSD since 3.4, and I would like to
try my hand at trying to put together an embedded FBSD system.
I browsed the -small mailing list, but there doesnt seem to be
any relevant up to date data there (I may be mistaken).
I did a bit of googling, but Im not finding what Im looking
for.
I kept running into Embedded FreeBSD Cookbook.  Anyone thoughts on 
this book.
But other than that, are there any online how to tutorial,
that would show an almost beginner on how to get started.

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


Re: Embedded freebsd How to?

2004-08-23 Thread Gerard Samuel
Andrew L. Gould wrote:
On Monday 23 August 2004 07:41 pm, Gerard Samuel wrote:
Well I've been using FBSD since 3.4, and I would like to
try my hand at trying to put together an embedded FBSD system.
I browsed the -small mailing list, but there doesnt seem to be
any relevant up to date data there (I may be mistaken).
I did a bit of googling, but Im not finding what Im looking
for.
I kept running into Embedded FreeBSD Cookbook.  Anyone thoughts on
this book.
But other than that, are there any online how to tutorial,
that would show an almost beginner on how to get started.
Thanks for any input you may provide...

Go to http://soekris.com/ and click on Support.  You'll find some 
tutorials on installing FreeBSD on their embedded boards.  One of the 
tutorials is miniBSD - reducing FreeBSD.

Also, Michael Lucas has an article on installing OpenBSD on one of their 
boards:
http://www.onlamp.com/pub/a/bsd/2004/03/11/Big_Scary_Daemons.html

Best of luck,
Seems my options are limited, but thanks for the links...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Means of trimming files

2004-06-29 Thread Gerard Samuel
When editing php files, via the command line, there is a newline character 
after the closing ?
Im looking for a command that would trim files, so that I can append it to the 
find command.

find ./ -name '*.php' -exec SOME_COMMAND {} \;

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


Re: Means of trimming files

2004-06-29 Thread Gerard Samuel
On Tuesday 29 June 2004 01:07 pm, Bill Moran wrote:
 Gerard Samuel [EMAIL PROTECTED] wrote:
  When editing php files, via the command line, there is a newline
  character after the closing ?
  Im looking for a command that would trim files, so that I can append it
  to the find command.
 
  find ./ -name '*.php' -exec SOME_COMMAND {} \;

 If you're absolutely sure of the number of characters you're removing from
 the end of the file, you could use truncate(1).

 Otherwise, you'll probably want sed or perl to check that it's not removing
 important characters.

Thanks.  I'll see what I can come up with...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Means of trimming files

2004-06-29 Thread Gerard Samuel
On Tuesday 29 June 2004 01:07 pm, Bill Moran wrote:
 Gerard Samuel [EMAIL PROTECTED] wrote:
  When editing php files, via the command line, there is a newline
  character after the closing ?
  Im looking for a command that would trim files, so that I can append it
  to the find command.
 
  find ./ -name '*.php' -exec SOME_COMMAND {} \;

 If you're absolutely sure of the number of characters you're removing from
 the end of the file, you could use truncate(1).

 Otherwise, you'll probably want sed or perl to check that it's not removing
 important characters.

Trying to use truncate is not working on my end.
Does anyone see a syntax error with it???
Ran on 5.2.1-RELEASE-p6 FreeBSD.

$ pwd
/usr/home/gsam
$ ls ~/z.php
/home/gsam/z.php
$ truncate -r ~/z.php
usage: truncate [-c] -s [+|-]size[K|M|G] file ...
   truncate [-c] -r rfile file ...

I tried $ truncate -r rfile ~/z.php but that didn't work either.
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Means of trimming files

2004-06-29 Thread Gerard Samuel
On Tuesday 29 June 2004 04:04 pm, Jerry McAllister wrote:
  On Tuesday 29 June 2004 01:07 pm, Bill Moran wrote:
   Gerard Samuel [EMAIL PROTECTED] wrote:
When editing php files, via the command line, there is a newline
character after the closing ?
Im looking for a command that would trim files, so that I can append
it to the find command.
   
find ./ -name '*.php' -exec SOME_COMMAND {} \;
  
   If you're absolutely sure of the number of characters you're removing
   from the end of the file, you could use truncate(1).
  
   Otherwise, you'll probably want sed or perl to check that it's not
   removing important characters.
 
  Trying to use truncate is not working on my end.
  Does anyone see a syntax error with it???
  Ran on 5.2.1-RELEASE-p6 FreeBSD.
 
  $ pwd
  /usr/home/gsam
  $ ls ~/z.php
  /home/gsam/z.php
  $ truncate -r ~/z.php
  usage: truncate [-c] -s [+|-]size[K|M|G] file ...
 truncate [-c] -r rfile file ...
 
  I tried $ truncate -r rfile ~/z.php but that didn't work either.

 Well is 'rfile' the exact length you want and is it always going to
 be exactly a newline character shorter than z.php?

 Maybe you want something more like   'truncate -s -1 z.php'
 presuming it is always just one newline character at the end.


 Do you need to take the character only from the last line of the file or
 from any line in the file that has it?

 If it is from any line, check out tr(1).
 tr -d \n  z.php  z.php-clean
 rm z.php
 mv z.php-clean z.php

 Otherwise, I would be inclined to break out perl.

 jerry


Well although I can use a bit of perl within php, trying it via the command 
line is a bit of a learning curve, that I try to attempt to master it another 
day (after reading all those man pages :) ).
Maybe if someone can suggest a how to page on the net, would be appreciated.
But your suggestion on using 'truncate -s -1 z.php' worked as I would like it.
The scenario Im trying to clean up is, if I were to create a file like this on 
the command line -
--
?php

phpinfo();

?
--

is actually

--
?php\n
\n
phpinfo();\n
\n
?\n
--

on the file system.  Which is normal.
But Im trying to clean up the files to eliminate the trailing \n from the 
file, so that its consistent on the command line, and GUI editors, and to 
keep the hard core nuts off my back about having trailing space after the 
closing ?

So Ill start using truncate() for now, and start investigating perl.
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Means of trimming files

2004-06-29 Thread Gerard Samuel
On Tuesday 29 June 2004 04:21 pm, Gerard Samuel wrote:
 So Ill start using truncate() for now, and start investigating perl.
 Thanks
 

As I was writing the previous email, I thought about combining find with php's 
cli interface and came up with this dirty command (all in one line) -

find ./ -name '*.php' -exec php -r '$f = file_get_contents({}); $h = 
fopen({}, wb); fwrite($h, trim($f)); fclose($h);' \;

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


Re: atapi/cam driver

2004-06-22 Thread Gerard Samuel
On Tuesday 22 June 2004 08:28 am, Simon Barner wrote:
 Hi,

 your kernel configuration looks good:
  # ATA and ATAPI devices
  device  ata
  device  atadisk # ATA disk drives
  device  atapicd # ATAPI CDROM drives
  options ATA_STATIC_ID   #Static device numbering

 [...]

  # Yes they are for SCSI but umass needs them
  device  scbus   # SCSI bus (required)
  device  da  # Direct Access (disks)

 [...]

  # To access IDE devices via scsi system
  device atapicam
  device cd
  device pass

 Perhaps there is some strange conflict between your CDROM devices. Did
 you try and unplug one of them, use a different IDE channel, etc.

 You should see cd0/cd1 devices when you boot.


I'll try your suggestions and see what I can come up with...
Thanks
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


atapi/cam driver

2004-06-21 Thread Gerard Samuel
Im trying to set it up, and Im not getting any real output from camcontrol 
devlist.  Im following instructions from
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html#ATAPICAM.
dmesg only shows the devices as atapi devices, and not scsi.
Does anyone have an idea where Im going wrong.
Thanks

-- camcontrol devlist --
gladiator# camcontrol devlist -v
scbus-1 on xpt0 bus 0:
 at scbus-1 target -1 lun -1 (xpt0)
--

-- OS version --
gladiator# uname -a
FreeBSD gladiator.trini0.org 5.2.1-RELEASE-p6 FreeBSD 5.2.1-RELEASE-p6 #0: Fri 
May  7 22:43:47 EDT 2004 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GLADIATOR  i386
--

-- dmesg snip --
ad0: 19473MB Maxtor 52049H3 [39566/16/63] at ata0-master UDMA100
acd0: CDROM LTN403 at ata1-master PIO4
acd1: CDRW CW038D ATAPI CD-R/RW at ata1-slave PIO4
--

-- fstab snip --
/dev/cd0/cdrom  cd9660  ro,noauto   0   0
/dev/cd1/cdrom1 cd9660  ro,noauto   0   0
--

-- kernel --
machine i386
cpu I686_CPU
ident   GLADIATOR
maxusers0

#To statically compile in device wiring instead of /boot/device.hints
#hints  GENERIC.hints #Default places to look for devices.

#makeoptionsDEBUG=-g#Build kernel with gdb(1) debug 
symbols

options SCHED_4BSD  #4BSD scheduler
options INET#InterNETworking
options FFS #Berkeley Fast Filesystem
options SOFTUPDATES #Enable FFS soft updates support
options UFS_ACL #Support for access control lists
options UFS_DIRHASH #Improve performance on big 
directories
options NFSCLIENT   #Network Filesystem Client
options CD9660  #ISO 9660 Filesystem
options PROCFS  #Process filesystem (requires 
PSEUDOFS)
options PSEUDOFS#Pseudo-filesystem framework
options COMPAT_43   #Compatible with BSD 4.3 [KEEP THIS!]
options COMPAT_FREEBSD4 #Compatible with FreeBSD4
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time 
extensions

device  isa
device  pci

# Floppy drives
device  fdc

# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
device  atapicd # ATAPI CDROM drives
options ATA_STATIC_ID   #Static device numbering

# atkbdc0 controls both the keyboard and the PS/2 mouse
device  atkbdc  # AT keyboard controller
device  atkbd   # AT keyboard
device  psm # PS/2 mouse

device  vga # VGA video card driver

# syscons is the default console driver, resembling an SCO console
device  sc

device  agp # support several AGP chipsets

# Floating point support - do not disable.
device  npx

# Power management support (see NOTES for more options)
#device apm
# Add suspend/resume support for the i8254.
device  pmtimer

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device  miibus  # MII bus support
device  fxp # Intel EtherExpress PRO/100B (82557, 82558)

# Pseudo devices - the number indicates how many units to allocate.
device  random  # Entropy device
device  loop# Network loopback
device  ether   # Ethernet support
device  pty # Pseudo-ttys (telnet etc)

# USB support
device  uhci# UHCI PCI-USB interface
device  usb # USB Bus (required)
device  ugen# Generic
device umass# Disks/Mass storage - Requires scbus and da

# Yes they are for SCSI but umass needs them
device  scbus   # SCSI bus (required)
device  da  # Direct Access (disks)

# To access IDE devices via scsi system
device atapicam
device cd
device pass

# Audio
device  pcm

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
device  bpf # Berkeley packet filter
--
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  1   2   3   >