PHP Command Line

2010-11-29 Thread David Allen
I'm new to PHP, and I'm trying to make use of the interactive commandline, but I'm finding 'php -a' isn't working. More specifically, no 'php' prompt, no output, nada. I've found comments on the intarwebs making mention of the need for readline support, but past that, I'm at a loss. Thanks!

Multiple Machines

2010-09-24 Thread David Allen
Multiple Machines This is sort of a best practices kind of question so all comments are welcome. I'm wondering what folks are doing when setting up multiple (more than 1, but less than 10) machines. Consider, for example, some ordinary files such as the following: /root/.cshrc

sendmail, queue intervals and ETRN

2010-08-18 Thread David Allen
I've had the following setup at home for a number of years: mailhub smarthost --- intarwebs Everything works as intended, of course, but I'd like to change the setup to accomodate the mailhub host being powered off at night. After it's restarted in the morning (or whenever), the mailhub

Re: How to connect a jail to the web ?

2010-08-11 Thread David Allen
I meant that you could block access to private servers which need to listen on public network ports by just using firewall rules, as opposed to making the whole jail hang off a private interface and just forwarding selected traffic to it. For the second case, you would need pf to do the

Installkernel Failure

2010-08-03 Thread David Allen
I recently upgraded a system from 8.0 to 8.1. I'm now trying to install FreeBSD 8.1 to a second system by performing a minimal install, and then NFS mounting /usr/src and /usr/obj from the just-upgraded system. Simple enough, right? Well, the installkernel target is bombing out with an error

Re: Installkernel Failure

2010-08-03 Thread David Allen
and Christer. On 8/3/10, Pieter de Goeje pie...@degoeje.nl wrote: On Tuesday 03 August 2010 12:33:04 David Allen wrote: I recently upgraded a system from 8.0 to 8.1. I'm now trying to install FreeBSD 8.1 to a second system by performing a minimal install, and then NFS mounting /usr/src and /usr/obj

Re: UPGRADE TO RELEASE 8.0-P3/SAMBA HELP REQUIRED

2010-06-03 Thread David Allen
On 6/3/10, Andy Hiscock andyjhisc...@yahoo.com wrote: After being advised to upgrade after a freebsd-update I have successfully upgraded from 7.2 to 8.0-p3. OK but have come across a major problem for me. OK time for a BIG rant this has been going on for 2 days (very sorry) After the install

md5(1) and cal(1)

2010-05-10 Thread David Allen
1. Why doesn't cal(1) hilight the current day? Hell, some days I'm not even sure what day or week it is, so after typing 'cal', I have to type in 'date', and then sit there for a few seconds to interpret what I'm looking at. Of course, that isn't always successful, so I typically end up

Re: How customized can an mfsroot be?

2010-04-07 Thread David Allen
On 4/6/10, Matthew Seaman m.sea...@infracaninophile.co.uk wrote: On 07/04/2010 06:28:40, Peter Steele wrote: I found something else that's missing--/var/db/pkg is empty. It looks like what the auto-var process does is a construct basic directory structure but no data. Is there a solution to

Re: Sendmail Five Second Greeting Delay

2010-04-02 Thread David Allen
On 4/1/10, Matthew Seaman wrote: On 02/04/2010 01:51:27, Norbert Papke wrote: When I connect to sendmail on a local interface, sendmail responds to the connection with its 220 greeting immediately. If I connect to sendmail from another machine on my (home) LAN, sendmail delays five seconds

Re: Sendmail Five Second Greeting Delay

2010-04-02 Thread David Allen
On 4/2/10, Jon Radel j...@radel.com wrote: On 4/2/10 8:33 AM, David Allen wrote: Secondly, it seems the cause of the OP's problem was a delay associated with an IDENT query. Specificially confTO_IDENT Timeout.ident [5s] The timeout waiting for a response to an IDENT query

Fax Solutions

2009-12-31 Thread David Allen
This is a wide open question, but if anyone has any experience or comments with respect to using FreeBSD for sending/receiving faxes, I'd be grateful to hear them. Hylafax is available in ports, and the website makes mention of some compatible hardware, but I thought I'd ask here first. Thanks.

Partition naming, fstab, and geli

2009-11-15 Thread David Allen
Say I have performed a standard installation of FreeBSD onto a single IDE drive with the following entries in /etc/fstab: /dev/ad0s1b none swap sw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/ad0s1d /var ufs rw 2 2 /dev/ad0s1e /tmp ufs rw 2 2 /dev/ad0s1f /usr

Re: Partition naming, fstab, and geli

2009-11-15 Thread David Allen
On 11/15/09, Polytropon wrote: On Sun, 15 Nov 2009 19:23:15 -0700, David Allen wrote: 1. The Handbook suggests there is a convention that when partitioning a a drive that's been added, to label the first new partition on that drive as 'e' as opposed to 'a' (which is reserved for the /root

Re: APM

2009-11-13 Thread David Allen
On 11/13/09, Chuck Swiger cswi...@mac.com wrote: Hi-- On Nov 13, 2009, at 12:15 PM, James Phillips wrote: I initially set the time-out to 60 seconds, then 300 seconds in a vain attempt to see the actual power savings. With a 900 second time- out, the drive only spun down once in the past 12

Re: APM

2009-11-13 Thread David Allen
On 11/13/09, Chuck Swiger cswi...@mac.com wrote: Hi, David-- On Nov 13, 2009, at 2:48 PM, David Allen wrote: There are options available in /etc/defaults/rc.conf to do just that, but how does one copy over the contents of /var at system boot? I'd consider adding something to /etc/rc.d

Re: APM

2009-11-13 Thread David Allen
On 11/13/09, Chuck Swiger cswi...@mac.com wrote: Hi-- On Nov 13, 2009, at 3:54 PM, David Allen wrote: I'd consider adding something to /etc/rc.d/mountcritlocal (which normally mounts the local filesystems) to setup a RAMdisk on /var and then do rsync -a /var_template /var (or use a dump

A general sed question

2009-10-07 Thread David Allen
I keep bumping up against this, so I thought I'd throw this question out to those who understand sed better than I do. What I'm trying to do is to clean up the contents of some files (/sys/i386/conf/GENERIC would be a good example) to get more readable diffs. To that end, I'm trying to use sed

Re: Manual Installations on Flash Media

2009-08-04 Thread David Allen
On 8/3/09, Polytropon free...@edvax.de wrote: On Sat, 1 Aug 2009 14:21:02 -0700, David Allen the.real.david.al...@gmail.com wrote: I need to create a FreeBSD installation on an SSD drive (connected via a USB adaptor), and would like to do so manually so as to avoid the use

Manual Installations on Flash Media

2009-08-01 Thread David Allen
I need to create a FreeBSD installation on an SSD drive (connected via a USB adaptor), and would like to do so manually so as to avoid the use of an installation CD, PXE or sysinstall. 1. When creating an /etc/fstab file, does the order in which entries appear have any significance?

Serial Communications

2009-04-03 Thread David Allen
Sorry to have to ask a dumb question ... I need to connect my notebook to another system using a serial connection. Simple enough, but my notebook, unsurprisingly, has a USB port, but no serial. Is there such a thing as a USB-DB9(M) null modem cable? If not, would a USB-DB9 adapter stuck on

Upgrading Jails

2009-01-16 Thread David Allen
I have a test system where I've accumulated a large number of jails. To update them (I'm not using the method outlined in the Handbook), I'd like to avoid mounting /usr/src and /usr/obj within each and then jexec-ing a shell but instead, perform everything on the host system directly. Would the

Using csup

2008-11-03 Thread David Allen
I'd like to move to using csup(1) and there's an error in the manpage that's raising some questions for me: OPTIONS base=base The default base directory is /usr/local/etc/csup. FILES /usr/local/etc/cvsupDefault base directory. sup

OT: Shell Script using Awk

2008-11-01 Thread David Allen
My apologies for asking on this list, but I'm stuck without Perl and need to use awk to generate a report. I'm working with a large data set spread across multiple files, but to keep things simple, say I have A Very Long String that containing records, each delimited by a single space. I need to

Re: OT: Shell Script using Awk

2008-11-01 Thread David Allen
On 11/1/08, Jeremy Chadwick [EMAIL PROTECTED] wrote: On Sat, Nov 01, 2008 at 06:21:55PM -0700, David Allen wrote: My apologies for asking on this list, but I'm stuck without Perl and need to use awk to generate a report. I'm working with a large data set spread across multiple files

Re: OT: Shell Script using Awk

2008-11-01 Thread David Allen
On 11/1/08, Gary Newcombe [EMAIL PROTECTED] wrote: On Sat, 1 Nov 2008 18:21:55 -0700, David Allen [EMAIL PROTECTED] wrote: My apologies for asking on this list, but I'm stuck without Perl and need to use awk to generate a report. I'm working with a large data set spread across multiple

Re: OT: Shell Script using Awk

2008-11-01 Thread David Allen
On 11/1/08, Sahil Tandon [EMAIL PROTECTED] wrote: David Allen [EMAIL PROTECTED] wrote: My apologies for asking on this list, but I'm stuck without Perl and need to use awk to generate a report. I'm working with a large data set spread across multiple files, but to keep things simple, say I

Dealing with portscans

2008-09-22 Thread David Allen
Over the last few weeks I've been getting numerous ports scans, each from unique hosts. The situation is more of an annoyance than anything else, but I would prefer not seeing or having to deal with an extra 20-30K entries in my logs as was the case recently. I use pf for firewalling, and while

Re: Dealing with portscans

2008-09-22 Thread David Allen
On 9/22/08, Ghirai [EMAIL PROTECTED] wrote: On Mon, 22 Sep 2008 08:17:02 -0700 David Allen [EMAIL PROTECTED] wrote: Over the last few weeks I've been getting numerous ports scans, each from unique hosts. The situation is more of an annoyance than anything else, but I would prefer not seeing

Re: Dealing with portscans

2008-09-22 Thread David Allen
On 9/22/08, Greg Larkin [EMAIL PROTECTED] wrote: David Allen wrote: Over the last few weeks I've been getting numerous ports scans, each from unique hosts. The situation is more of an annoyance than anything else, but I would prefer not seeing or having to deal with an extra 20-30K entries

Re: Dealing with portscans

2008-09-22 Thread David Allen
On 9/22/08, Matthew Seaman [EMAIL PROTECTED] wrote: David Allen wrote: On 9/22/08, Ghirai [EMAIL PROTECTED] wrote: On Mon, 22 Sep 2008 08:17:02 -0700 David Allen [EMAIL PROTECTED] wrote: However, receiving SYN packets to ports 1024-4 isn't going to match anything than a default block

Re: IP alias/routing question

2008-07-25 Thread David Allen
On Fri, Jul 25, 2008 at 10:12 AM, Matthew Seaman [EMAIL PROTECTED] wrote: Chris Pratt wrote: I'm now setting up a bind server in which the third alias is the address for incoming DNS queries. It appears it's responding but even though the queries come in on the third alias, they go out

Re: quick question regarding jails.

2008-07-18 Thread David Allen
On Fri, Jul 18, 2008 at 1:46 AM, Wojciech Puchar [EMAIL PROTECTED] wrote: Just wondering if a box has 2 Ethernet cards with each card going to a different gateway/network, is it possible to stick a jail on the machine listening on one network interface and routing data out one

Re: ntpd(8) - bind only to specified interfaces?

2008-07-09 Thread David Allen
On Wed, Jul 9, 2008 at 9:44 PM, Fraser Tweedale [EMAIL PROTECTED] wrote: Having read the man page (also, ntp.conf(5)), it is not apparent that there is a way to tell it to bind only to a particular interface (or particular interfaces). It would be nice if there is actually such a feature, so

Re: Jails and IP Aliasing

2008-07-08 Thread David Allen
On Mon, Jul 7, 2008 at 2:01 PM, George Hartzell [EMAIL PROTECTED] wrote: Did you take the necessary steps to restrict the IP addresses on which sendmail on the host and the jail listen? The jail man page only says: I don't think anyone would get too far with jails in general if the jail host

Re: Jails and IP Aliasing

2008-07-08 Thread David Allen
On Tue, Jul 8, 2008 at 2:24 AM, Mel [EMAIL PROTECTED] wrote: On Monday 07 July 2008 18:51:33 David Allen wrote: Granted, everything is really happening over the loopback address, but a connection originating from the jailhost to a jail should appear to be using the jailhost's IP address

Re: Jails and IP Aliasing

2008-07-08 Thread David Allen
On Tue, Jul 8, 2008 at 9:35 AM, Matthew Seaman [EMAIL PROTECTED] wrote: David Allen wrote: There was a post recently (Matthew Seaman's name comes to mind) that suggested binding jails to addresses in the loopback range and then using firewall rules to redirect the traffic accordingly

Re: ports

2008-07-08 Thread David Allen
On Tue, Jul 8, 2008 at 11:04 AM, Mel [EMAIL PROTECTED] wrote: On Tuesday 08 July 2008 19:07:02 Matthew Seaman wrote: You can configure named to always send packets using a fixed port number (which can be helpful for firewalling) Purely outof interest, which (useful) firewall/nat rules cannot

Re: Reconfiguring network interfaces

2008-07-07 Thread David Allen
On Sun, Jul 6, 2008 at 8:12 AM, Mel [EMAIL PROTECTED] wrote: On Sunday 06 July 2008 16:06:49 David Allen wrote: I need to make several wholesale changes to a few different systems, and I'd prefer to do it over SSH without losing connectivity where possible. I know I can use ifconfig, or edit

Jails and IP Aliasing

2008-07-07 Thread David Allen
Unless I'm losing my mind, I'm encountering what seems to yet another gotcha with jails. The following has been dumbed down for clarity and brevity. - # hostname jailhost.example.org # host jailhost jailhost.example.org has

Re: Jails and IP Aliasing

2008-07-07 Thread David Allen
On Mon, Jul 7, 2008 at 10:54 AM, Jason Morgan [EMAIL PROTECTED] wrote: On 2008.07.07 09:51:33, David Allen wrote: Unless I'm losing my mind, I'm encountering what seems to yet another gotcha with jails. The following has been dumbed down for clarity and brevity

Reconfiguring network interfaces

2008-07-06 Thread David Allen
I need to make several wholesale changes to a few different systems, and I'd prefer to do it over SSH without losing connectivity where possible. I know I can use ifconfig, or edit /etc/rc.conf directly and reboot, but is there a canonical way to make the changes in /etc/rc.conf and reload those

Re: calcru: runtime went backwards errors

2008-07-05 Thread David Allen
On Mon, Jun 30, 2008 at 7:38 AM, Bob Johnson [EMAIL PROTECTED] wrote: On 6/30/08, David Allen [EMAIL PROTECTED] wrote: I've been seeing errors like the following appearing: Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 261 usec to 258 usec for pid 516 (devd) [...] Jun 30

Re: rc scripts

2008-06-30 Thread David Allen
On Fri, Jun 27, 2008 at 3:01 PM, Derek Ragona [EMAIL PROTECTED] wrote: At 04:11 PM 6/27/2008, David Allen wrote: I need to an '-s' flag to the execution of openntpd's rc script: The problems I'm having are multiple. First, the program doesn't offer any logging, and running it with the do

Re: rc scripts

2008-06-30 Thread David Allen
On 6/27/08, Paul Schmehl [EMAIL PROTECTED] wrote: --On Friday, June 27, 2008 14:11:55 -0700 David Allen [EMAIL PROTECTED] wrote: I need to an '-s' flag to the execution of openntpd's rc script: # PROVIDE: openntpd # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: nojail

calcru: runtime went backwards errors

2008-06-30 Thread David Allen
I've been seeing errors like the following appearing: Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 261 usec to 258 usec for pid 516 (devd) Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 4976 usec to 4926 usec for pid 367 (pflogd) Jun 30 03:13:57 ford kernel:

rc scripts

2008-06-27 Thread David Allen
I need to an '-s' flag to the execution of openntpd's rc script: # PROVIDE: openntpd # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: nojail . /etc/rc.subr name=openntpd rcvar=`set_rcvar` command=/usr/local/sbin/ntpd required_files=/usr/local/etc/ntpd.conf

IP Aliasing

2008-04-10 Thread David Allen
This may be a dumb question, but I'm puzzled by the following (taken from the Virtual Hosts section in the Handbook): For example, consider the case where the fxp0 interface is connected to two networks, the 10.1.1.0 network with a netmask of 255.255.255.0 and the

Re: Setting CPUTYPE and CFLAGS in make.conf

2008-04-09 Thread David Allen
On Wed, Apr 9, 2008 at 10:44 AM, RW wrote: On Tue, 8 Apr 2008 13:14:45 -0700 David Allen wrote: The advice I've read in several posts on the subject involve everything from setting one, setting both, to ignoring both, sometimes with the =? notation and sometimes without. And then, I've

Setting CPUTYPE and CFLAGS in make.conf

2008-04-08 Thread David Allen
The advice I've read in several posts on the subject involve everything from setting one, setting both, to ignoring both, sometimes with the =? notation and sometimes without. And then, I've read comments that suggest when compiling the kernel, for example, both are ignored, and default values

A few jail questions

2008-03-22 Thread David Allen
I've recently been examining the use of jails in FreeBSD, and I have some questions I hope someone can shed some light on with respect to running virtual servers in jails. 1. Upgrading. This probably a It Depends question, but if a host system is upgraded (within version numbers), will the new