Re: apache php3 question

2003-10-02 Thread Marc Ramirez
On Thu, Oct 02, 2003 at 03:21:09PM +0200, H. Bartel wrote:
 On 10/02/2003 02:58 PM [EMAIL PROTECTED] (Nico Meijer) wrote:
 
 Change:
 
   AddType application/x-httpd-php .php
 
 To:
 
   AddType application/x-httpd-php .php .php3
 
 And you should be dandy again... Nico
 
 This looks like it does make a lot of sense. After changing and restarting apache, 
 it only works partially. Most pages get parsed, but for some reason, my index.php3 
 gets downloaded when called from the browser. 

1) Make sure it's not in browser/squid cache.

2) In your httpd.conf, you'll probably need to add index.php3 to your
DirectoryIndex directive, if you haven't already.

DirectoryIndex index.html index.html.var index.php index.php3

Marc.

-- 
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port install to jail root from host system

2003-10-01 Thread Marc Ramirez
On Wed, Oct 01, 2003 at 02:48:29PM +0200, Aragon Gouveia wrote:
 Hi,
 
 I've compiled a port as normal (apache13 in this case).  I'd like to run
 'make install' now and tell it to install the package to the base of the
 root filesystem of a jail from the jail's host.  Possibly also to skip
 registering it in the host's package database.
 
 Does anyone know an easy way to do this with the ports system?
 
 I realise apache is dependant on various libraries that may not be in the
 jail, but these dependancies I will resolve manually.

Just off the top of my head, certainly not guaranteed to be the
optimal solution, never tested, etc...

# assuming /jailfs is the root of your jail:
# install in /jailfs/bin, /jailfs/data, etc...

cd /usr/ports/www/apache13
make PREFIX=/jailfs install 

# now in your jail, you'll have /bin/apachectl, but it'll be looking
# for /jailfs/sbin/httpd, so create a symlink

ln -s / /jailfs/jailfs

-- 
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Got a problem, need to enlarge /tmp

2003-10-01 Thread Marc Ramirez
On Wed, Oct 01, 2003 at 10:30:41PM -0400, Dragoncrest wrote:
   I've got a sight problem I need help with.  Trying to install WolfET 
   on my Freebsd workstation and it requires something like 286 megs of free 
 space on /tmp.  My /tmp is only 256.  So I'm kinda sunk.  Any way I can 
 enlarge this short of a complete wipe and repartition of the drive?  Or can 
 I temporarily mount another drive to /tmp, install the game, then 
 umount/mount back to what it was?  I know I probubly should have made my 
 /tmp 512megs, but when I was originally installing this box I didn't think 
 about that at the time.  Is there a way to work around this problem or am I 
 kinda screwed in general?

If you have another partition with gobs of space, create a temp
directory in that one and point your TEMPDIR environment variable at
it.  If the install script doesn't know TEMPDIR, you could temporarily
not mount /tmp, and change it to be a symlink to your 'temp' temp
dir...

Marc.

-- 
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Got a problem, need to enlarge /tmp

2003-10-01 Thread Marc Ramirez
On Wed, Oct 01, 2003 at 11:33:49PM -0400, Marc Ramirez wrote:
 If you have another partition with gobs of space, create a temp
 directory in that one and point your TEMPDIR environment variable at
 it.  If the install script doesn't know TEMPDIR, you could temporarily
 not mount /tmp, and change it to be a symlink to your 'temp' temp
 dir...

Sorry - that should be TMPDIR.

Marc.

-- 
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NFS server and files 2G (STABLE)

2003-09-30 Thread Marc Ramirez
On Tue, Sep 30, 2003 at 09:10:23AM -0400, stan wrote:
 I'm having a bit of a problem using a FeeBSD STABLE machine as an NFS
 server for an HP-UXa box. I'm able to mount the FreeBSD box, abd see the
 files, but take a look at this:

...

 So, I'm thinking that I've got a problem with files 2G Does this make
 sense?

...

 Sugestions?

I'm not that familiar with HP-UX, but this is from the FreeBSD
mount_nfs man page:

...
 The options are:

 -2  Use the NFS Version 2 protocol (the default is to try version 3
 first then version 2).  Note that NFS version 2 has a file size
 limit of 2 gigabytes.

 -3  Use the NFS Version 3 protocol.
...

Seems you'll want to use v3... :)

Marc.

-- 
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Comprehensive list of error codes?

2003-09-30 Thread Marc Ramirez
On Tue, Sep 30, 2003 at 02:29:33PM +0200, Francesco Casadei wrote:
 On Tue, Sep 30, 2003 at 02:45:10AM -0500, Dr. Smoke wrote:
  Is there a comprehensive list of error codes for FreeBSD?  I can find 
  nothing related to this in the Handbook or other online documentation.
  
  Thanks!
  
  Be Seeing You...
  
  Dr. Smoke
  http://www.thexlab.com
  
  ___
  [EMAIL PROTECTED] mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]
  end of the original message
 
 Not sure this is what you want, but take a look at sysexits(3) manpage.

You might also want to look at errno(2) for a lot of the more common
errors.  This includes most errors that are not utility-specific.

Marc.

-- 
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Best way to modify /etc/ppp/ppp.secrets on the fly?

2003-09-27 Thread Marc Ramirez
On Sat, Sep 27, 2003 at 10:36:59AM -0600, Brett Glass wrote:

 I need to write a program or script that modifies
 /etc/ppp/ppp.secrets on the fly to add, change, and remove
 passwords. One thing I do NOT want is for replacement of the file to
 interfere with a login that's occurring at the same time. What's the
 best way to slip a new version of the file in without messing up an
 instance of userland PPP that might check it at just the wrong
 moment?

This is the way I do things like this; note that this does not do any
locking on the file (man 1 lockf).

#!/bin/sh -e

REALNAME=/etc/ppp/secrets
TEMPNAME=/etc/ppp/secrets.$$

trap echo Error occurred 12; rm -f $TEMPNAME EXIT INT

cp $REALNAME $TEMPNAME

# do your stuff to $TEMPNAME

trap  INT # don't interrupt the FS ops
unlink $REALNAME
ln $TEMPNAME $REALNAME
unlink $TEMPNAME

trap EXIT INT

-- 
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Why do you prefer FreeBSD???? Maybe Windows is more comfortable than FBSD?

2003-09-24 Thread Marc Ramirez
On Wed, Sep 24, 2003 at 11:05:47PM +0400, Denis wrote:

   This mailing list is dedicated to FreeBSD. I know that users of
   FreeBSD more than users of Windows

Yes, we more than users of Windows, and we will continue to more until
users of Windows less than us!

That is why we use FreeBSD.

Marc.

-- 
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to determine the version of sshd

2003-09-17 Thread Marc Ramirez
On Wed, 17 Sep 2003, Bill Moran wrote:

 ssh has the -V switch to display the version.

 sshd does not appear to have similar functionality.  Is there a way to verify
 the version of sshd running on a FreeBSD system?

[EMAIL PROTECTED]/usr/src]
$ sshd -v
sshd: illegal option -- v
sshd version OpenSSH_3.5p1 FreeBSD-20030201
Usage: sshd [options]
Options:
  -f fileConfiguration file (default /etc/ssh/sshd_config)
  -d Debugging mode (multiple -d means more debugging)
  -i Started from inetd
  -D Do not fork into daemon mode
  -t Only test configuration file and keys
  -q Quiet (no logging)
  -p portListen on the specified port (default: 22)
  -k seconds Regenerate server key every this many seconds (default: 3600)
  -g seconds Grace period for authentication (default: 600)
  -b bitsSize of server RSA key (default: 768 bits)
  -h fileFile from which to read host key (default:
/etc/ssh/ssh_host_key)
  -u len Maximum hostname length for utmp recording
  -4 Use IPv4 only
  -6 Use IPv6 only
  -o option  Process the option as if it was read from a configuration
file.
[EMAIL PROTECTED]/usr/src]
$

Although, apparently, it's not entirely accurate WRT the patch... This is
what I get after having supped and only rebuilt sshd... I'm doing a
buildworld right now, which might give different results.

Marc.


--
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Vim and C code

2003-09-06 Thread Marc Ramirez
On Sat, 6 Sep 2003, Martin Vana wrote:

 Hi,
 I would like to do some more advanced editing of my C programs in Vim,
 like to go through program step by step or to have 'watch' on some of
 variables. All I've achieved now is syntax highlighting and Quickfix with
 :make command. I know there is EMACS somewhere out there, and
 other more complex enviroments, but I would like to stay with Vim, which
 I presonally like.
 A link to some tutorial would be exactly what I need.
 Thanx

This would not be a function of Vim, you'll need to move to another
program, like gdb:

http://www.delorie.com/gnu/docs/gdb/gdb_toc.html

--
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: what is a tinderbox?

2003-09-05 Thread Marc Ramirez
On Fri, 5 Sep 2003, Jonathon McKitrick wrote:


 What is a tinderbox, in the context of computers?

 NOTE: Please CC me, as I am not currently subscribed.  Thanks.

In general, it's a sandbox to do build testing and find build errors.

More specifically, there's also this:

http://www.mozilla.org/projects/tinderbox/


--
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: virus scan programs

2003-09-05 Thread Marc Ramirez
On Fri, 5 Sep 2003 [EMAIL PROTECTED] wrote:

 Dear freeBSD enthusiast,
  Greetings.  I am a newcomer to the BSD/Unix world.  My place of
 employment is a large agency with thousands of client machines.  Most of
 the clients use Microsoft Windows 2000 Professional operating system.  Most
 of the servers use either Novell operating system, or I.B.M. Domino
 operating system.  A very important ritual that each client computer
 performs every morning at boot-up time is to run a virus scan application
 program.  This program is run whether or not the user desires it, because
 it runs before the user us granted a log-on screen.  In my reading of Unix
 and BSD literature, I have found no mention of virus scan programs for
 these operating systems.  Do such programs not exist? Alternately, is the
 Unix/BSD approach to this problem in a different philosophical and/or
 procedural sphere?  If so, could you describe the Unix/BSD approach to
 locating and eradicating these invaders of one's hard drive?  If the issue
 is already explained in either printed literature, or posted at a world
 wide web site, it is sufficient to cite the location.  Many thanks for your
 response.

Viruses usually aren't the problem on UNIX; you usually find things
like root kits, where someone has broken into the system and
replaced some common programs with sinister ones. But the effect
isn't that much different from a virus.

This kind of thing is usually monitored on UNIX systems by comparing some
attribute of the system binaries (usually a checksum or some such) to a
set of known good values.  For example, there is a tool called
'chkrootkit' in the ports tree that tests a set of common utilities for
evidence of tampering in certain ways.

My personal theory on the top reason why viruses are not popular on UNIX
is that most people run their software from a non-priveleged account,
which means if they ever did run a binary with a virus, it probably
wouldn't get very far.  It's much more worthwhile to concentrate your
attacks (and therefore your defenses) on worms.

And the defense for worms is simple: turn off every service you don't
need, put the ones you do need in their own jails, and patch, patch,
patch! (see http://windowsupdate.microsoft.com for an example of those
last three steps)

As an aside, there are products for Linux/FreeBSD that will scan e-mail
for Windows viruses, but I don't think that's what you're talking about...

Marc.

--
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Necessary code or trash?

2003-08-28 Thread Marc Ramirez
On Thu, 28 Aug 2003, Dan Nelson wrote:

 In the last episode (Aug 28), Marc Wiz said:
  Sticking with /bin/sh is a good idea.
 
  What I have done is build a static version of bash and put it /bin
 
  I changed root's shell to /bin/bash and run just fine.
 
  Has anyone noticed what a pain it is to build bash statically and
  install it in /bin?

 I don't use bash, but the bash2 port Makefile looks like it builds a
 static binary by default:

 CONFIGURE_ENV=  LDFLAGS=-static


You seem to be correct:

$ ldd /bin/bash
ldd: /bin/bash: not a dynamic executable

I took no special pains - just built the port.

--
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Swappng in?

2003-08-20 Thread Marc Ramirez
On Wed, 20 Aug 2003, Mark wrote:

 Is there a way to swap a program back in, after it has been swapped out?
 (FreeBSD 4.7R).

 I had a rather huge task, and now my ps shows entries like:

 ... 9480  v2  IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv2

 I'd like to have it swapped back in, please. :) I read somewhere that if the
 memory strain has subsided, it would automatically be swapped in again. I do
 not see that happen automagically, though.

To note:

1) Swapped out does not mean inoperative.  For every executable, there
usually some portion that does not reside in memory (paged out).  Swapped
out just means that *everything* is paged out.  Swapped out is an old
term, back in the days before virtual memory.  Back then, when there were
two processes going, when it was time to run a different one, the running
program would be *entirely* written to disk, and the second one would be
loaded.  That's swapping.

2) The process will remain swapped out until it has something to do.  When
it does have something to do, it will swap back in again.  If the process
has nothing to do, there's not much point in wasting the RAM, when you
might run that huge task again.

Marc.

--
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Arp cache needs clearing or machine stops responding

2003-08-19 Thread Marc Ramirez
On Tue, 19 Aug 2003, Belinda wrote:

 Does any one know where to find the arp cache? Mine keeps telling me it needs 
 flushed. Where is it? HELP

To flush the ARP cache:

arp -d -a

(must be done as root)

Marc.

--
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Flood of infected emails

2003-08-19 Thread Marc Ramirez
On Tue, 19 Aug 2003, Chris wrote:

 On Tuesday 19 August 2003 11:43 am, Matt Heath wrote:
  Has anyone besides me been receiving a flood of infected emails?
 
  could it be that the blaster patch opens up the sobig vector?

 Wouldn't that just be a kick!

It appears different...  but who knows.

http://news.com.com/2100-1002_3-5065494.html

  I think my address is being used for parts of a flood of virus or spam
  mail. It seems plausible the harvesting was done from 'freebsd-questions'.
  all mine have come from my mailing list which doesn't have this address
 
 
 
  ___
  [EMAIL PROTECTED] mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]




--
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
http://www.bluecirclesoft.com
http://www.mrami.com (personal)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Advise needed to write a script

2003-07-21 Thread Marc Ramirez
On Sun, 20 Jul 2003, Jimmy wrote:

 Hi
 Good day to you. I need your advice to wrte a script
 1) stores the sum of A plus B in variable C
 2)Stores the difference of B minus A in variable C

 If A is 5 and B is 10. Please advice me on this issue pls .
 Hope to hear from you soon.


#!/bin/sh

# set A to 5
# set B to 10
# set C to A plus B
# set C to B minus A


Tree falling in the woods...  Tree falling in the woods...


 Cheers

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




--
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
www.bluecirclesoft.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ctrl+alt+del shutdown/reboot

2003-07-21 Thread Marc Ramirez
On Mon, 21 Jul 2003, Pierrick Brossin wrote:


  you're discouraged to use halt and reboot cauz it's not a good way to
  stop FreeBSD,... also there command fasthalt, fastboot...

 Why isn't it a good way?

It's not that halt(8) and reboot(8) aren't safe, they're just rude if
you're running a multi-user system. :)  If you have multiple users, you
can use the shutdown(8) command, which will let you specify a time till
reboot.  For example

shutdown -r +5

will reboot in five minutes, and it will send out countdown messages to
everyone.

Marc.


--
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
www.bluecirclesoft.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Kernel - daemon communication

2003-07-17 Thread Marc Ramirez

I'm writing a kernel module that needs to make requests of a userland
daemon.  What's the preferred communicaiton method in 5.1R and 4.8R?
Unix-domain sockets?

Thanks,
Marc.

--
Marc Ramirez
Blue Circle Software Corporation
513-688-1070 (main)
513-382-1270 (direct)
www.bluecirclesoft.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]