Re: Newbie question about freebsd-update: single user mode is not needed anymore?

2013-01-02 Thread ASV
Well,
I understand your concern. I've been using the freebsd-update method
since several years now and mostly remotely. I've never encounter a
problem. I haven't recompiled everything many times as I didn't really
found a tangible advantage in this method but I've never thought about
this. I believe some developer around here can provide you a neat
explanation about that (which is going to be interesting to know).

Strictly about your concern I believe whatever way you use for your
upgrade you CANNOT be 100% sure that your upgrade will go smoothly and
things like loosing control of your remote box will not happen. Even
though jumping from close releases 9.0 = 9.1 is a low risk upgrade, a
console access to your remote server (via terminal server/KVM/other) is
imperative in these cases to avoid the worst.


On Mon, 2012-12-31 at 16:50 +0100, Jose Garcia Juanino wrote:
 El lunes 31 de diciembre a las 16:27:44 CET, ASV escribió:
  Hi Jose,
  
  with the freebsd-update method you don't need to pass through the make
  installworld as it's a binary patch/upgrade system.
  Using freebsd-update upgrade -r 9.1-RELEASE for example allows you to
  get your system patched directly without recompiling the kernel and the
  userland but getting binary patches from the repo and applying these
  directly on your system.
  Check the following page for a more detailed explanation and be aware
  that upgrading your ports/packages is required every time you upgrade
  your kernel to a major version (which would be your case).
  
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html
  
  Happy new year.
 
 Thanks for your response.
 
 The freebsd-update upgrade method is:
 1- freebsd-update install # will install a new kernel and modules
 2- reboot in multi user
 3- freebsd-update install # will install new userland
 4- reboot in multi user
 
 The src upgrade method is:
 1- make installkernel # will install a new kernel
 2- reboot in single user
 3- make installworld  # will install a new userland
 4- reboot in multiuser
 
 I think that the third step is essentially the same in both methods: it
 will install a new userland. But the second one require to be ran in
 single user, and the first one does not. Why?
 
 My unique concern is that step 2 in freebsd-update method goes
 smootly: it will boot kernel in 9.1-RELEASE but userland in 9.0-RELEASE.
 If the system hangs giving up the net or other essential service, I will
 not be able to reach the computer via ssh.
 
 Regards


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question about freebsd-update: single user mode is not needed anymore?

2013-01-02 Thread ASV
For some reason my email hasn't apparently been delivered so I'm re-sending it.

From:  ASV a...@inhio.eu
To: Jose Garcia Juanino jjuan...@gmail.com
Cc: freebsd-questions@freebsd.org
Subject:Re: Newbie question about freebsd-update: single user mode is 
not needed anymore?
Date:   Mon, 31 Dec 2012 17:19:19 +0100|

Well,
I understand your concern. I've been using the freebsd-update method
since several years now and mostly remotely. I've never encounter a
problem. I haven't recompiled everything many times as I didn't really
found a tangible advantage in this method but I've never thought about
this. I believe some developer around here can provide you a neat
explanation about that (which is going to be interesting to know).

Strictly about your concern I believe whatever way you use for your
upgrade you CANNOT be 100% sure that your upgrade will go smoothly and
things like loosing control of your remote box will not happen. Even
though jumping from close releases 9.0 = 9.1 is a low risk upgrade, a
console access to your remote server (via terminal server/KVM/other) is
imperative in these cases to avoid the worst.


On Mon, 2012-12-31 at 16:50 +0100, Jose Garcia Juanino wrote:
 El lunes 31 de diciembre a las 16:27:44 CET, ASV escribió:
  Hi Jose,
  
  with the freebsd-update method you don't need to pass through the make
  installworld as it's a binary patch/upgrade system.
  Using freebsd-update upgrade -r 9.1-RELEASE for example allows you to
  get your system patched directly without recompiling the kernel and the
  userland but getting binary patches from the repo and applying these
  directly on your system.
  Check the following page for a more detailed explanation and be aware
  that upgrading your ports/packages is required every time you upgrade
  your kernel to a major version (which would be your case).
  
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html
  
  Happy new year.
 
 Thanks for your response.
 
 The freebsd-update upgrade method is:
 1- freebsd-update install # will install a new kernel and modules
 2- reboot in multi user
 3- freebsd-update install # will install new userland
 4- reboot in multi user
 
 The src upgrade method is:
 1- make installkernel # will install a new kernel
 2- reboot in single user
 3- make installworld  # will install a new userland
 4- reboot in multiuser
 
 I think that the third step is essentially the same in both methods: it
 will install a new userland. But the second one require to be ran in
 single user, and the first one does not. Why?
 
 My unique concern is that step 2 in freebsd-update method goes
 smootly: it will boot kernel in 9.1-RELEASE but userland in 9.0-RELEASE.
 If the system hangs giving up the net or other essential service, I will
 not be able to reach the computer via ssh.
 
 Regards



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question about freebsd-update: single user mode is not needed anymore?

2013-01-02 Thread ASV
Hi Jose,

with the freebsd-update method you don't need to pass through the make
installworld as it's a binary patch/upgrade system.
Using freebsd-update upgrade -r 9.1-RELEASE for example allows you to
get your system patched directly without recompiling the kernel and the
userland but getting binary patches from the repo and applying these
directly on your system.
Check the following page for a more detailed explanation and be aware
that upgrading your ports/packages is required every time you upgrade
your kernel to a major version (which would be your case).

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html

Happy new year.



On Mon, 2012-12-31 at 13:13 +0100, Jose Garcia Juanino wrote:
 Hi,
 
 I am planning to upgrade from FreeBSD 9.0-RELEASE to
 FreeBSD-9.1-RELEASE. With upgrade source method, it is always needed to
 do the make installworld step in single user mode. But it seems to
 be that single user is not required with freebsd-update method, in the
 second freebsd-update install. Someone could explain the reason? Am I
 misunderstanding something? Can I run the upgrade enterely by mean a ssh
 connection in a safe way, or will I need a serial console?
 
 Best regards, and excuse my poor english.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question about freebsd-update: single user mode is not needed anymore?

2012-12-31 Thread Jose Garcia Juanino
El lunes 31 de diciembre a las 16:27:44 CET, ASV escribió:
 Hi Jose,
 
 with the freebsd-update method you don't need to pass through the make
 installworld as it's a binary patch/upgrade system.
 Using freebsd-update upgrade -r 9.1-RELEASE for example allows you to
 get your system patched directly without recompiling the kernel and the
 userland but getting binary patches from the repo and applying these
 directly on your system.
 Check the following page for a more detailed explanation and be aware
 that upgrading your ports/packages is required every time you upgrade
 your kernel to a major version (which would be your case).
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html
 
 Happy new year.

Thanks for your response.

The freebsd-update upgrade method is:
1- freebsd-update install # will install a new kernel and modules
2- reboot in multi user
3- freebsd-update install # will install new userland
4- reboot in multi user

The src upgrade method is:
1- make installkernel # will install a new kernel
2- reboot in single user
3- make installworld  # will install a new userland
4- reboot in multiuser

I think that the third step is essentially the same in both methods: it
will install a new userland. But the second one require to be ran in
single user, and the first one does not. Why?

My unique concern is that step 2 in freebsd-update method goes
smootly: it will boot kernel in 9.1-RELEASE but userland in 9.0-RELEASE.
If the system hangs giving up the net or other essential service, I will
not be able to reach the computer via ssh.

Regards


pgpbaloy3DIlu.pgp
Description: PGP signature


Re: Newbie question: Why aren't my cron jobs running?

2012-06-13 Thread Walter Hurry
On Tue, 12 Jun 2012 12:21:31 -0500, Dan Lists wrote:

 The syntax of his crontab file is correct.  Vixie cron does care about
 leading spaces, tabs, extra spaces, or leading zeros.  Earlier versions
 of cron are much pickier about the crontab file.   The cron logs show
 that it is starting his jobs at the correct times.
 
 It is far more likely that there is a problem with the scripts.  A very
 common cause of problems with scripts run from cron is that they do not
 inherit your environment.   Do the scripts run from the command line? 
 If the do, then the problem is most likely something in your environment
 that the scripts need.

I'm a complete idiot, and I feel embarrassed. Everything was fine, except 
that I had missed out '/bin' in the paths of the jobs.

I had:
/home/walterh/exports.sh
/home/walterh/backup_etc.sh
/home/walterh/systemcheck.sh
/home/walterh/backup_bsd.sh

which should of course have been:
/home/walterh/bin/exports.sh
/home/walterh/bin/backup_etc.sh
/home/walterh/bin/systemcheck.sh
/home/walterh/bin/backup_bsd.sh

What a stupid mistake! Thanks for all the replies, but I must say sorry 
for wasting your time. Sorry!

WH

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question: Why aren't my cron jobs running?

2012-06-13 Thread Chris
On 6/13/2012 6:23 PM, Walter Hurry wrote:
 On Tue, 12 Jun 2012 12:21:31 -0500, Dan Lists wrote:
 
 The syntax of his crontab file is correct.  Vixie cron does care about
 leading spaces, tabs, extra spaces, or leading zeros.  Earlier versions
 of cron are much pickier about the crontab file.   The cron logs show
 that it is starting his jobs at the correct times.

 It is far more likely that there is a problem with the scripts.  A very
 common cause of problems with scripts run from cron is that they do not
 inherit your environment.   Do the scripts run from the command line? 
 If the do, then the problem is most likely something in your environment
 that the scripts need.
 
 I'm a complete idiot, and I feel embarrassed. Everything was fine, except 
 that I had missed out '/bin' in the paths of the jobs.
 
 I had:
 /home/walterh/exports.sh
 /home/walterh/backup_etc.sh
 /home/walterh/systemcheck.sh
 /home/walterh/backup_bsd.sh
 
 which should of course have been:
 /home/walterh/bin/exports.sh
 /home/walterh/bin/backup_etc.sh
 /home/walterh/bin/systemcheck.sh
 /home/walterh/bin/backup_bsd.sh
 
 What a stupid mistake! Thanks for all the replies, but I must say sorry 
 for wasting your time. Sorry!
 
 WH

... Damned those full path names.


-- 
Keep well,

Chris
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question: Why aren't my cron jobs running?

2012-06-12 Thread Ramiro Caso

On 11/06/2012 23:10, Michael Sierchio wrote:

On Mon, Jun 11, 2012 at 7:04 PM, Walter Hurry walterhu...@gmail.com wrote:

As the subject says, this is probably a newbie question (I am new to
FreeBSD but quite experienced at Linux).

FreeBSD9 on x86_64.

Cron is running:

$ ps -ax|grep cron

  1513  ??  Is 0:00.01 /usr/sbin/cron -s

  2283   0  S+ 0:00.00 grep cron

$

I have a syntactically valid crontab:

$ crontab -l
#min hr dom month dow command

SHELL=/bin/bash


Pitfall: Even if bash is installed, it's not usually under /bin, but 
under /usr/local/bin




PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/
daddy/bin

HOME=/home/walterh

  00  02 *   * *   /home/walterh/exports.sh

  05  02 *   * *   /home/walterh/backup_etc.sh

  10  02 *   * *   /home/walterh/systemcheck.sh

  15  02 *   * *   /home/walterh/backup_bsd.sh

$

So what is wrong? Why is nothing happening? I have consulted the handbook
but see nothing.

Have you installed bash?  It's not in the system base.

What's in your shell scripts?

- M
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question: Why aren't my cron jobs running?

2012-06-12 Thread Mark Felder
On Tue, 12 Jun 2012 00:06:21 -0500, Robert Bonomi  
bon...@mail.r-bonomi.com wrote:


Comment: using a leading zero on the numeric fields is a BAD IDEA(tm) --  
you
are *strongly* encocuraged to remove them.  Yes, that means numbers will  
not
be column aligned, but it is a small price to pay to avoid the  
hair-tearing

that =will= ensue when using it bites you.


Any other info on this? I've never heard of this before and I've never  
seen an issue using leading zeroes on the minutes value.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question: Why aren't my cron jobs running?

2012-06-12 Thread Lowell Gilbert
Mark Felder f...@feld.me writes:

 On Tue, 12 Jun 2012 00:06:21 -0500, Robert Bonomi
 bon...@mail.r-bonomi.com wrote:

 Comment: using a leading zero on the numeric fields is a BAD IDEA(tm) -- 
 you
 are *strongly* encocuraged to remove them.  Yes, that means numbers
 will not
 be column aligned, but it is a small price to pay to avoid the
 hair-tearing
 that =will= ensue when using it bites you.

 Any other info on this? I've never heard of this before and I've never
 seen an issue using leading zeroes on the minutes value.

I don't have ready access to source at the moment, but I would expect
(like the normal C I/O functions) it will be interpreted as octal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question: Why aren't my cron jobs running?

2012-06-12 Thread Mark Felder
On Tue, 12 Jun 2012 09:36:37 -0500, Lowell Gilbert  
freebsd-questions-lo...@be-well.ilk.org wrote:



I don't have ready access to source at the moment, but I would expect
(like the normal C I/O functions) it will be interpreted as octal.


Suppose we could always ask Paul Vixie :-)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question: Why aren't my cron jobs running?

2012-06-12 Thread Polytropon
On Tue, 12 Jun 2012 08:29:02 -0500, Mark Felder wrote:
 On Tue, 12 Jun 2012 00:06:21 -0500, Robert Bonomi  
 bon...@mail.r-bonomi.com wrote:
 
  Comment: using a leading zero on the numeric fields is a BAD IDEA(tm) --  
  you
  are *strongly* encocuraged to remove them.  Yes, that means numbers will  
  not
  be column aligned, but it is a small price to pay to avoid the  
  hair-tearing
  that =will= ensue when using it bites you.
 
 Any other info on this? I've never heard of this before and I've never  
 seen an issue using leading zeroes on the minutes value.

There are some specific interpretations that _may_ be
interpreted according to the C rules, e. g. prefix 0x-
for hexadecimal or 08- for octal notation. For example,
083 != 83, just as 0x83 != 83. As it has been mentioned,
spaces also have a significant meaning in crontabs, so
they cannot be used everywhere to align data columns.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question: Why aren't my cron jobs running?

2012-06-12 Thread Dan Lists
On Tue, Jun 12, 2012 at 12:06 PM, Polytropon free...@edvax.de wrote:
 On Tue, 12 Jun 2012 08:29:02 -0500, Mark Felder wrote:
 On Tue, 12 Jun 2012 00:06:21 -0500, Robert Bonomi
 bon...@mail.r-bonomi.com wrote:

  Comment: using a leading zero on the numeric fields is a BAD IDEA(tm) --
  you
  are *strongly* encocuraged to remove them.  Yes, that means numbers will
  not
  be column aligned, but it is a small price to pay to avoid the
  hair-tearing
  that =will= ensue when using it bites you.

 Any other info on this? I've never heard of this before and I've never
 seen an issue using leading zeroes on the minutes value.

 There are some specific interpretations that _may_ be
 interpreted according to the C rules, e. g. prefix 0x-
 for hexadecimal or 08- for octal notation. For example,
 083 != 83, just as 0x83 != 83. As it has been mentioned,
 spaces also have a significant meaning in crontabs, so
 they cannot be used everywhere to align data columns.


The syntax of his crontab file is correct.  Vixie cron does care about
leading spaces, tabs, extra spaces, or leading zeros.  Earlier
versions of cron are much pickier about the crontab file.   The cron
logs show that it is starting his jobs at the correct times.

It is far more likely that there is a problem with the scripts.  A
very common cause of problems with scripts run from cron is that they
do not inherit your environment.   Do the scripts run from the command
line?  If the do, then the problem is most likely something in your
environment that the scripts need.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Michael Sierchio
On Mon, Jun 11, 2012 at 7:04 PM, Walter Hurry walterhu...@gmail.com wrote:
 As the subject says, this is probably a newbie question (I am new to

 FreeBSD but quite experienced at Linux).

 FreeBSD9 on x86_64.

 Cron is running:

 $ ps -ax|grep cron

  1513  ??  Is     0:00.01 /usr/sbin/cron -s

  2283   0  S+     0:00.00 grep cron

 $

 I have a syntactically valid crontab:

 $ crontab -l
 #min hr dom month dow command

 SHELL=/bin/bash

 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/
 daddy/bin

 HOME=/home/walterh

  00  02 *   *     *   /home/walterh/exports.sh

  05  02 *   *     *   /home/walterh/backup_etc.sh

  10  02 *   *     *   /home/walterh/systemcheck.sh

  15  02 *   *     *   /home/walterh/backup_bsd.sh

 $

 So what is wrong? Why is nothing happening? I have consulted the handbook
 but see nothing.

Have you installed bash?  It's not in the system base.

What's in your shell scripts?

- M
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Walter Hurry
On Mon, 11 Jun 2012 19:10:21 -0700, Michael Sierchio wrote:

 Have you installed bash?  It's not in the system base.
 
 What's in your shell scripts?

Thanks for the quick response.

$ pkg_info|grep bash

bash-4.2.28 The GNU Project's Bourne Again SHell

$ which bash

/bin/bash

$ 

$ less $HOME/bin/exports.sh

#!/bin/bash

LOG=$HOME/log/exports.log

logger -t walterh-cronjob Exports started

echo Exports started at `date`  $LOG

rm $HOME/postgresql/*

psql packages -f $HOME/sql/exports.sql

cd $HOME/postgresql

tar cfz postgresql.tgz *

rm *csv

echo Exports finished at `date`  $LOG

logger -t walterh-cronjob Exports finished

/home/walterh/bin/exports.sh (END)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Michael Sierchio
On Mon, Jun 11, 2012 at 7:25 PM, Walter Hurry walterhu...@gmail.com wrote:

cat /etc/shells
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Walter Hurry
On Mon, 11 Jun 2012 21:21:12 -0500, Adam Vande More wrote:

 You really have bash in /bin ?  Are your scripts executable?  What does
 /var/log/cron say?

$ file /bin/bash

/bin/bash: symbolic link to `/usr/local/bin/bash'

$ sudo tail -50 /var/log/cron (result snipped at 02:22:00 for brevity)

Jun 12 01:55:00 jupiter /usr/sbin/cron[1780]: (root) CMD (/usr/libexec/
atrun)

Jun 12 02:00:00 jupiter /usr/sbin/cron[1823]: (root) CMD (newsyslog)

Jun 12 02:00:00 jupiter /usr/sbin/cron[1825]: (operator) CMD (/usr/
libexec/save-entropy)

Jun 12 02:00:00 jupiter /usr/sbin/cron[1824]: (root) CMD (/usr/libexec/
atrun)

Jun 12 02:00:00 jupiter /usr/sbin/cron[1836]: (walterh) CMD (/home/
walterh/exports.sh)

Jun 12 02:01:00 jupiter /usr/sbin/cron[1849]: (root) CMD (adjkerntz -a)

Jun 12 02:05:00 jupiter /usr/sbin/cron[1874]: (root) CMD (/usr/libexec/
atrun)

Jun 12 02:05:00 jupiter /usr/sbin/cron[1875]: (walterh) CMD (/home/
walterh/backup_etc.sh)

Jun 12 02:10:00 jupiter /usr/sbin/cron[1912]: (root) CMD (/usr/libexec/
atrun)

Jun 12 02:10:00 jupiter /usr/sbin/cron[1913]: (walterh) CMD (/home/
walterh/systemcheck.sh)

Jun 12 02:11:00 jupiter /usr/sbin/cron[1924]: (operator) CMD (/usr/
libexec/save-entropy)

Jun 12 02:15:00 jupiter /usr/sbin/cron[1981]: (root) CMD (/usr/libexec/
atrun)

Jun 12 02:15:00 jupiter /usr/sbin/cron[1982]: (walterh) CMD (/home/
walterh/backup_bsd.sh)

Jun 12 02:20:00 jupiter /usr/sbin/cron[2013]: (root) CMD (/usr/libexec/
atrun)

Jun 12 02:22:00 jupiter /usr/sbin/cron[2025]: (operator) CMD (/usr/
libexec/save-entropy)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Walter Hurry
On Mon, 11 Jun 2012 19:36:28 -0700, Michael Sierchio wrote:

 cat /etc/shells

$ cat /etc/shells
# $FreeBSD: release/9.0.0/etc/shells 59717 2000-04-27 21:58:46Z ache $
#
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/sh
/bin/csh
/bin/tcsh
/usr/local/bin/bash
/usr/local/bin/rbash
$

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Chris
On 6/11/2012 9:25 PM, Walter Hurry wrote:
 On Mon, 11 Jun 2012 19:10:21 -0700, Michael Sierchio wrote:
 
 Have you installed bash?  It's not in the system base.

 What's in your shell scripts?
 
 Thanks for the quick response.
 
 $ pkg_info|grep bash
 
 bash-4.2.28 The GNU Project's Bourne Again SHell
 
 $ which bash
 
 /bin/bash
 
 $ 
 
 $ less $HOME/bin/exports.sh
 
 #!/bin/bash
 
 LOG=$HOME/log/exports.log
 
 logger -t walterh-cronjob Exports started
 
 echo Exports started at `date`  $LOG
 
 rm $HOME/postgresql/*
 
 psql packages -f $HOME/sql/exports.sql
 
 cd $HOME/postgresql
 
 tar cfz postgresql.tgz *
 
 rm *csv
 
 echo Exports finished at `date`  $LOG
 
 logger -t walterh-cronjob Exports finished
 
 /home/walterh/bin/exports.sh (END)
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
 
 


I tend to use full path names in my shell scripts.
So for shits n giggles, try that.
Instead of tar cfz postgresql.tgz *
Try /bin/tar cfz postgresql.tgz *  etc, etc, etc

Use the paths for all commands such as rm, psql, logger etc.

-- 
Keep well,

Chris
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Newbie question: Why aren't my cron jobs running?

2012-06-11 Thread Robert Bonomi

Walter Hurry walterhu...@gmail.com wrote:

 As the subject says, this is probably a newbie question (I am new to 
 FreeBSD but quite experienced at Linux).

 FreeBSD9 on x86_64.

 Cron is running:

 $ ps -ax|grep cron

  1513  ??  Is 0:00.01 /usr/sbin/cron -s

  2283   0  S+ 0:00.00 grep cron

 $

 I have a syntactically valid crontab:

'Syntactically valid', yes, but I believe it does not mean what you think
it does applies.  more below.

 $ crontab -l
 #min hr dom month dow command

 SHELL=/bin/bash

 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/
 daddy/bin

 HOME=/home/walterh

  00  02 *   * *   /home/walterh/exports.sh

  05  02 *   * *   /home/walterh/backup_etc.sh

  10  02 *   * *   /home/walterh/systemcheck.sh

  15  02 *   * *   /home/walterh/backup_bsd.sh

 $ 

 So what is wrong? Why is nothing happening? I have consulted the handbook 
 but see nothing.

It _appears_ that there is whitespace _before_ the purporte 'minutes' value 
on each line that you intend to invoke a command.  If so, -THAT- is probably
what is causinng the unexpected behavior.  I believe cron is looking for
the 'minutes' value _before_ any white space, and using a value of '0' when
it finds 'nothing' before the white-space Field-separator.  That, thus,
the all the commands run at 'zero minutes' past the various hours, on the
-second- day of the month, and that command-line that cron would -attempt-
to execute on the 2nd looks like, *   /home/walterh/systemcheck.sh, which,
of course will have *wildly* unexpected results, epecially if the first
element of the '*' expansion _is_ marked as executable.

Remove the leading white-space and things should work the way you 'expect'.

Comment: using a leading zero on the numeric fields is a BAD IDEA(tm) -- you
are *strongly* encocuraged to remove them.  Yes, that means numbers will not
be column aligned, but it is a small price to pay to avoid the hair-tearing
that =will= ensue when using it bites you.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


boot-time daemon startup (was Re: Newbie question)

2008-11-19 Thread Lowell Gilbert
Gary Hartl [EMAIL PROTECTED] writes:

 I've been out of the bsd loop for a bit, i'm trying to setup nagios which is
 fine 

  

 There are a couple of settings that I either don't remember or never
 remembered and forgot that I never knew it.

  

 Ok so nagios is asking me for an rc.d path, which if i recall FBSD doesn't
 use it is a linux script path for starting services at different run levels.

Any reason you're not installing it from the port?  Someone has already
done the porting effort for you.

FreeBSD doesn't use runlevels in that sense, but it does have a fairly
involved rc.d facility.  Try man rc.d.

 So does FBSD emulate it for certain packages cause Nagios finds it at
 /usr/local/etc/rc.d but the only thing i have in it is webmin.sh which is
 for my webmin interface (although I must confess I'm not sure why it is
 there or what it is doing).  

Presumably you installed webmin from the ports system?

 I must also admit i feel rather retarded, since I used to know this stuff
 like the back of my hand, but it's been 6-7 years since i've been actively
 using FBSD but am looking to get back into it.

That's okay; things haven't stayed static in the FreeBSD world anyway. 

 Rc.d anyone? 

On FreeBSD?  Everyone, pretty much.

 My assumption is that FBSD is using inetd for starting services correct?

No. inetd isn't even started these days unless you override FreeBSD's
defaults on purpose.

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


Re: Newbie question

2008-11-18 Thread matt donovan
On Tue, Nov 18, 2008 at 5:41 PM, Gary Hartl [EMAIL PROTECTED] wrote:

 Hi all;



 Quick newbie question.



 I've been out of the bsd loop for a bit, i'm trying to setup nagios which
 is
 fine



 There are a couple of settings that I either don't remember or never
 remembered and forgot that I never knew it.



 Ok so nagios is asking me for an rc.d path, which if i recall FBSD doesn't
 use it is a linux script path for starting services at different run
 levels.



 So does FBSD emulate it for certain packages cause Nagios finds it at
 /usr/local/etc/rc.d but the only thing i have in it is webmin.sh which is
 for my webmin interface (although I must confess I'm not sure why it is
 there or what it is doing).



 I must also admit i feel rather retarded, since I used to know this stuff
 like the back of my hand, but it's been 6-7 years since i've been actively
 using FBSD but am looking to get back into it.



 Rc.d anyone?



 My assumption is that FBSD is using inetd for starting services correct?



 Thanks



 Gary





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


No FreeBSD uses rc.d it's where the rc.d actually came from. for ports  it's
/usr/local/etc/rc.d for system scripts it's /etc/rc.d
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie question about pkg_add

2008-10-29 Thread Canhua
On Wed, Oct 29, 2008 at 1:07 PM, Steven Susbauer
[EMAIL PROTECTED] wrote:
 ports-mgmt/portupgrade is a useful tool for easily getting packages and
 ports, it includes the tool portinstall which does what it says it does.
 By running portinstall -P pkgname, it will install a port and
 dependencies with packages if available, otherwise they are built from
 source.

 portsman and portmanager are some other frontend tools that can help
 with package administration, it's really up to your own tastes.

 -Steve

I tried portinstall, although dependecies are install with port sources still.
It take me a whole afternoon to portinstall math/py-neworkx, and it
still doesn't complete as yet.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie question about pkg_add

2008-10-29 Thread Thiago R. Santos
On Wed, 2008-10-29 at 11:14 +0800, Canhua wrote:
 Hi, good day all. I am new to FreeBSD.
 I tried to pkg_add -r a package (py-networkx), which tell me that:
 Error: FTP Unable to get ftp://ftp.freebsd.org/pub/
 FreeBSD/ports/i386/packages-7.0-release/Latest/py-networkx.tbz:
 File unavailable (e.g., file not found, no access)
 
 although I know that py-network does exist in /usr/ports.
 Actually I could go to /usr/ports/math/py-networkx and make install
 using ports means.
 
 Then I could learn from this that there are softwares that could be
 install from ports while not able to be added from package system?
 Am I right?

The package name of this port is 'py25-networkx'. You can use the
Freshports.org search to find the package names.

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

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


Re: Newbie question about pkg_add

2008-10-29 Thread Canhua
On Wed, Oct 29, 2008 at 9:18 PM, Thiago R. Santos [EMAIL PROTECTED] wrote:
 On Wed, 2008-10-29 at 11:14 +0800, Canhua wrote:
 Hi, good day all. I am new to FreeBSD.
 I tried to pkg_add -r a package (py-networkx), which tell me that:
 Error: FTP Unable to get ftp://ftp.freebsd.org/pub/
 FreeBSD/ports/i386/packages-7.0-release/Latest/py-networkx.tbz:
 File unavailable (e.g., file not found, no access)

 although I know that py-network does exist in /usr/ports.
 Actually I could go to /usr/ports/math/py-networkx and make install
 using ports means.

 Then I could learn from this that there are softwares that could be
 install from ports while not able to be added from package system?
 Am I right?

 The package name of this port is 'py25-networkx'. You can use the
 Freshports.org search to find the package names.

Wonderful place~ thank you

However I could not pkg_add py25-networkx still, being told that
  pkg_add: unable to fetch
'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.0-release/Latest/py25-networkx.tbz'
by URL
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie question about pkg_add

2008-10-29 Thread Thiago R. Santos
On Wed, 2008-10-29 at 22:41 +0800, Canhua wrote:
 Wonderful place~ thank you
 
 However I could not pkg_add py25-networkx still, being told that
   pkg_add: unable to fetch
 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.0-release/Latest/py25-networkx.tbz'
 by URL

Oh, sorry. I didn't realize that you wanted a package built for
7.0-RELEASE. Indeed, there isn't a package of this port built for this
release, so you might want to get packages from the 'packages-7-stable'
directory[1][2]. This particular port seems to have been added to the
ports tree after the release of FreeBSD 7.0. Of course, you can build it
yourself from your ports tree.

[1]http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/packages-using.html
[2]ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/
-- 
Thiago R. Santos [EMAIL PROTECTED]

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


Re: Newbie question about pkg_add (Canhua)

2008-10-29 Thread Kayven Riese


 --

 Message: 2
 Date: Wed, 29 Oct 2008 18:12:52 +0800
 From: Canhua [EMAIL PROTECTED]
 Subject: Re: Newbie question about pkg_add
 To: Steven Susbauer [EMAIL PROTECTED]
 Cc: freebsd-questions@freebsd.org
 Message-ID:
[EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1

 On Wed, Oct 29, 2008 at 1:07 PM, Steven Susbauer
 [EMAIL PROTECTED] wrote:
  ports-mgmt/portupgrade is a useful tool for easily getting packages and
  ports, it includes the tool portinstall which does what it says it does.
  By running portinstall -P pkgname, it will install a port and
  dependencies with packages if available, otherwise they are built from
  source.
 
  portsman and portmanager are some other frontend tools that can help
  with package administration, it's really up to your own tastes.
 
  -Steve

 I tried portinstall, although dependecies are install with port sources
 still.
 It take me a whole afternoon to portinstall math/py-neworkx, and it
 still doesn't complete as yet.


Go to sleep! it will be ready in the morning maybe! {:)

*--*
 Kayven Riese, BSCS,
 MS  (Physiology and Biophysics)
 (415) 902 5513 cellular
 http://kayve.net
 Webmaster http://ChessYoga.org
*--*
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie question about pkg_add

2008-10-28 Thread Jeremy Chadwick
On Wed, Oct 29, 2008 at 11:14:34AM +0800, Canhua wrote:
 Hi, good day all. I am new to FreeBSD.
 I tried to pkg_add -r a package (py-networkx), which tell me that:
 Error: FTP Unable to get ftp://ftp.freebsd.org/pub/
 FreeBSD/ports/i386/packages-7.0-release/Latest/py-networkx.tbz:
 File unavailable (e.g., file not found, no access)
 
 although I know that py-network does exist in /usr/ports.
 Actually I could go to /usr/ports/math/py-networkx and make install
 using ports means.
 
 Then I could learn from this that there are softwares that could be
 install from ports while not able to be added from package system?
 Am I right?

Correct -- not every port has a package.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

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


Re: Newbie question about pkg_add

2008-10-28 Thread Steven Susbauer

Jeremy Chadwick wrote:

On Wed, Oct 29, 2008 at 11:14:34AM +0800, Canhua wrote:

Hi, good day all. I am new to FreeBSD.
I tried to pkg_add -r a package (py-networkx), which tell me that:
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/
FreeBSD/ports/i386/packages-7.0-release/Latest/py-networkx.tbz:
File unavailable (e.g., file not found, no access)

although I know that py-network does exist in /usr/ports.
Actually I could go to /usr/ports/math/py-networkx and make install
using ports means.

Then I could learn from this that there are softwares that could be
install from ports while not able to be added from package system?
Am I right?


Correct -- not every port has a package.


ports-mgmt/portupgrade is a useful tool for easily getting packages and
ports, it includes the tool portinstall which does what it says it does.
By running portinstall -P pkgname, it will install a port and
dependencies with packages if available, otherwise they are built from
source.

portsman and portmanager are some other frontend tools that can help
with package administration, it's really up to your own tastes.

-Steve


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


Re: Newbie Question: Mail from from cron jobs...

2007-05-16 Thread Oliver Peter
On Tue, May 15, 2007 at 05:38:15PM -0400, Jerry McAllister wrote:
 On Tue, May 15, 2007 at 11:26:03PM +0200, Oliver Peter wrote:
 
  On Tue, May 15, 2007 at 12:26:36PM -0400, Ian Lord wrote:
...
   
   Where can I change the address [EMAIL PROTECTED] to
   [EMAIL PROTECTED] ?
 
 Look in the file /etc/mail/aliases
 
 You can alias root to go to your favorite address.
 Don't forget to run   newaliases(1)   after editing the file.
 
 Of course, doing this will mean that all mail to root will
 go to you.   

Hhm. I thought the problem was that you would like to change the From:
of those e-mails not the To: ?

-- 
Oliver PETER, email: [EMAIL PROTECTED], ICQ# 113969174
Worker bees can leave. Even drones can fly away. The Queen is their slave.


pgpTl4XpfObMZ.pgp
Description: PGP signature


RE: Newbie Question: Mail from from cron jobs...

2007-05-16 Thread Ian Lord


-Original Message-
From: Oliver Peter [mailto:[EMAIL PROTECTED] 
Sent: 16 mai 2007 03:18
To: Jerry McAllister
Cc: Oliver Peter; Ian Lord; freebsd-questions@freebsd.org
Subject: Re: Newbie Question: Mail from from cron jobs...

On Tue, May 15, 2007 at 05:38:15PM -0400, Jerry McAllister wrote:
 On Tue, May 15, 2007 at 11:26:03PM +0200, Oliver Peter wrote:
 
  On Tue, May 15, 2007 at 12:26:36PM -0400, Ian Lord wrote:
...
   
   Where can I change the address [EMAIL PROTECTED] to
   [EMAIL PROTECTED] ?
 
 Look in the file /etc/mail/aliases
 
 You can alias root to go to your favorite address.
 Don't forget to run   newaliases(1)   after editing the file.
 
 Of course, doing this will mean that all mail to root will
 go to you.   

Hhm. I thought the problem was that you would like to change the From:
of those e-mails not the To: ?

-- 
Oliver PETER, email: [EMAIL PROTECTED], ICQ# 113969174
Worker bees can leave. Even drones can fly away. The Queen is their slave.

~~~
Exactly... I receive the emails since I correctly configured my aliases to
redirect all mails externally...

The problem I have is with the from...

Someone told me to change the hostname in rc.conf, that won't work since I
have 4 machines:

Machine1.mydomain.com
Machine2.mydomain.com
Machine3.mydomain.com
Machine4.mydomain.com

I want the mail from to be 
[EMAIL PROTECTED] not [EMAIL PROTECTED]
...

Not too sure where to look into to fix this

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


Re: Newbie Question: Mail from from cron jobs...

2007-05-16 Thread Schiz0

On 5/16/07, Ian Lord [EMAIL PROTECTED] wrote:



-Original Message-
From: Oliver Peter [mailto:[EMAIL PROTECTED]
Sent: 16 mai 2007 03:18
To: Jerry McAllister
Cc: Oliver Peter; Ian Lord; freebsd-questions@freebsd.org
Subject: Re: Newbie Question: Mail from from cron jobs...

On Tue, May 15, 2007 at 05:38:15PM -0400, Jerry McAllister wrote:
 On Tue, May 15, 2007 at 11:26:03PM +0200, Oliver Peter wrote:

  On Tue, May 15, 2007 at 12:26:36PM -0400, Ian Lord wrote:
...
  
   Where can I change the address [EMAIL PROTECTED] to
   [EMAIL PROTECTED] ?

 Look in the file /etc/mail/aliases

 You can alias root to go to your favorite address.
 Don't forget to run   newaliases(1)   after editing the file.

 Of course, doing this will mean that all mail to root will
 go to you.

Hhm. I thought the problem was that you would like to change the From:
of those e-mails not the To: ?

--
Oliver PETER, email: [EMAIL PROTECTED], ICQ# 113969174
Worker bees can leave. Even drones can fly away. The Queen is their slave.

~~~
Exactly... I receive the emails since I correctly configured my aliases to
redirect all mails externally...

The problem I have is with the from...

Someone told me to change the hostname in rc.conf, that won't work since I
have 4 machines:

Machine1.mydomain.com
Machine2.mydomain.com
Machine3.mydomain.com
Machine4.mydomain.com

I want the mail from to be
[EMAIL PROTECTED] not [EMAIL PROTECTED]
...

Not too sure where to look into to fix this

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



Try checking /etc/rc.conf for your hostname var. Also, /etc/hosts
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie Question: Mail from from cron jobs...

2007-05-16 Thread Giorgos Keramidas
On 2007-05-16 03:21, Ian Lord [EMAIL PROTECTED] wrote:
 -Original Message-
 From: Oliver Peter [mailto:[EMAIL PROTECTED] 
 Sent: 16 mai 2007 03:18
 To: Jerry McAllister
 Cc: Oliver Peter; Ian Lord; freebsd-questions@freebsd.org
 Subject: Re: Newbie Question: Mail from from cron jobs...
 
  Look in the file /etc/mail/aliases
   
   You can alias root to go to your favorite address.
   Don't forget to run   newaliases(1)   after editing the file.
   
   Of course, doing this will mean that all mail to root will
   go to you.   
  
  Hhm. I thought the problem was that you would like to change the From:
  of those e-mails not the To: ?
 
 Exactly... I receive the emails since I correctly configured my aliases to
 redirect all mails externally...
 
 The problem I have is with the from...
 
 Someone told me to change the hostname in rc.conf, that won't work since I
 have 4 machines:
 
   Machine1.mydomain.com
   Machine2.mydomain.com
   Machine3.mydomain.com
   Machine4.mydomain.com
 
 I want the mail from to be 
 [EMAIL PROTECTED] not [EMAIL PROTECTED]

You have to enable 'masquerading' and (optionally) `genericstable' for
this sort of email address rewriting to work.

Here's a commented/example sendmail.mc snippet for that:

dnl Address masquerading.
dnl
dnl Making sure that all email that passes through my desktop's
dnl Sendmail installation is masqueraded as coming from
dnl `kobe.laptop', even if its original address is something
dnl slightly different (i.e. `ftp.laptop' or `mail.laptop'), is ok
dnl here.  It ensures that address rewriting and translation through
dnl `genericstable' will also work for all `*.laptop' host names.
dnl
dnl To make sure that remote hosts don't get a MAIL FROM address
dnl from a hostname that doesn't resolve, envelope addresses are
dnl masqueraded here too, and then get rewritten by `genericstable'
dnl to real-world addresses.
dnl
MASQUERADE_AS(`kobe.laptop')
FEATURE(`masquerade_entire_domain')
FEATURE(`masquerade_envelope')

dnl Rewriting the envelope-from address of all outgoing messages
dnl through a `genericstable' lookup ensures that envelope-from
dnl addresses seen by relay hosts are real, i.e. have an address
dnl of [EMAIL PROTECTED]' instead of the default
dnl envelope-from of [EMAIL PROTECTED]' that Sendmail would use.
dnl
dnl This is required some times, to avoid getting bounces for
dnl messages from ISP mail relays that are misconfigured or are too
dnl strict about what can appear in a MAIL FROM command.
dnl
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN(`kobe.laptop')
FEATURE(`generics_entire_domain')

Here `kobe.laptop' is my laptop's hostname, and I have enabled address
rewriting for some local email addresses by:

% cat /etc/mail/genericstable
#
# Address rewriting of outgoing email messages.
#

[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED]  [EMAIL PROTECTED]
[EMAIL PROTECTED]  [EMAIL PROTECTED]
[EMAIL PROTECTED]   [EMAIL PROTECTED]

[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED]  [EMAIL PROTECTED]
[EMAIL PROTECTED]  [EMAIL PROTECTED]
[EMAIL PROTECTED]   [EMAIL PROTECTED]
%

You will have to use a similar setup to change the envelope-from and
header-from address of the outgoing messages your mail server sends.

- Giorgos

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


RE: Newbie Question: Mail from from cron jobs...

2007-05-16 Thread Ian Lord
Thanks a lot, it works perfectly.

I'm starting to think it was not that much of a newbie question since you
are the first one to give a working answer :)

Thanks again

-Original Message-
From: Giorgos Keramidas [mailto:[EMAIL PROTECTED] 
Sent: 16 mai 2007 12:22
To: Ian Lord
Cc: 'Oliver Peter'; 'Jerry McAllister'; freebsd-questions@freebsd.org
Subject: Re: Newbie Question: Mail from from cron jobs...

On 2007-05-16 03:21, Ian Lord [EMAIL PROTECTED] wrote:
 -Original Message-
 From: Oliver Peter [mailto:[EMAIL PROTECTED] 
 Sent: 16 mai 2007 03:18
 To: Jerry McAllister
 Cc: Oliver Peter; Ian Lord; freebsd-questions@freebsd.org
 Subject: Re: Newbie Question: Mail from from cron jobs...
 
  Look in the file /etc/mail/aliases
   
   You can alias root to go to your favorite address.
   Don't forget to run   newaliases(1)   after editing the file.
   
   Of course, doing this will mean that all mail to root will
   go to you.   
  
  Hhm. I thought the problem was that you would like to change the From:
  of those e-mails not the To: ?
 
 Exactly... I receive the emails since I correctly configured my aliases to
 redirect all mails externally...
 
 The problem I have is with the from...
 
 Someone told me to change the hostname in rc.conf, that won't work since I
 have 4 machines:
 
   Machine1.mydomain.com
   Machine2.mydomain.com
   Machine3.mydomain.com
   Machine4.mydomain.com
 
 I want the mail from to be 
 [EMAIL PROTECTED] not [EMAIL PROTECTED]

You have to enable 'masquerading' and (optionally) `genericstable' for
this sort of email address rewriting to work.

Here's a commented/example sendmail.mc snippet for that:

dnl Address masquerading.
dnl
dnl Making sure that all email that passes through my desktop's
dnl Sendmail installation is masqueraded as coming from
dnl `kobe.laptop', even if its original address is something
dnl slightly different (i.e. `ftp.laptop' or `mail.laptop'), is ok
dnl here.  It ensures that address rewriting and translation through
dnl `genericstable' will also work for all `*.laptop' host names.
dnl
dnl To make sure that remote hosts don't get a MAIL FROM address
dnl from a hostname that doesn't resolve, envelope addresses are
dnl masqueraded here too, and then get rewritten by `genericstable'
dnl to real-world addresses.
dnl
MASQUERADE_AS(`kobe.laptop')
FEATURE(`masquerade_entire_domain')
FEATURE(`masquerade_envelope')

dnl Rewriting the envelope-from address of all outgoing messages
dnl through a `genericstable' lookup ensures that envelope-from
dnl addresses seen by relay hosts are real, i.e. have an address
dnl of [EMAIL PROTECTED]' instead of the default
dnl envelope-from of [EMAIL PROTECTED]' that Sendmail would use.
dnl
dnl This is required some times, to avoid getting bounces for
dnl messages from ISP mail relays that are misconfigured or are too
dnl strict about what can appear in a MAIL FROM command.
dnl
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN(`kobe.laptop')
FEATURE(`generics_entire_domain')

Here `kobe.laptop' is my laptop's hostname, and I have enabled address
rewriting for some local email addresses by:

% cat /etc/mail/genericstable
#
# Address rewriting of outgoing email messages.
#

[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED]  [EMAIL PROTECTED]
[EMAIL PROTECTED]  [EMAIL PROTECTED]
[EMAIL PROTECTED]   [EMAIL PROTECTED]

[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED]  [EMAIL PROTECTED]
[EMAIL PROTECTED]  [EMAIL PROTECTED]
[EMAIL PROTECTED]   [EMAIL PROTECTED]
%

You will have to use a similar setup to change the envelope-from and
header-from address of the outgoing messages your mail server sends.

- Giorgos

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


Re: Newbie Question: Mail from from cron jobs...

2007-05-15 Thread Oliver Peter
On Tue, May 15, 2007 at 12:26:36PM -0400, Ian Lord wrote:
  ...
 
 Where can I change the address [EMAIL PROTECTED] to
 [EMAIL PROTECTED] ?

Did you set up your hostname correctly in /etc/rc.conf ?
Furthermore you need to tell your MTA how your hostname is called.

-- 
Oliver PETER, email: [EMAIL PROTECTED], ICQ# 113969174
Worker bees can leave. Even drones can fly away. The Queen is their slave.


pgpxSWBHHr9XK.pgp
Description: PGP signature


Re: Newbie Question: Mail from from cron jobs...

2007-05-15 Thread Jerry McAllister
On Tue, May 15, 2007 at 11:26:03PM +0200, Oliver Peter wrote:

 On Tue, May 15, 2007 at 12:26:36PM -0400, Ian Lord wrote:
   ...
  
  Where can I change the address [EMAIL PROTECTED] to
  [EMAIL PROTECTED] ?

Look in the file /etc/mail/aliases

You can alias root to go to your favorite address.
Don't forget to run   newaliases(1)   after editing the file.

Of course, doing this will mean that all mail to root will
go to you.   

jerry

 
 Did you set up your hostname correctly in /etc/rc.conf ?
 Furthermore you need to tell your MTA how your hostname is called.
 
 -- 
 Oliver PETER, email: [EMAIL PROTECTED], ICQ# 113969174
 Worker bees can leave. Even drones can fly away. The Queen is their slave.


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


Re: Newbie Question: Mail from from cron jobs...

2007-05-15 Thread Norberto Meijome
On Tue, 15 May 2007 12:26:36 -0400
Ian Lord [EMAIL PROTECTED] wrote:

[]
 The problem, is that the mail is coming from
 
 [EMAIL PROTECTED]
 
 We have a spamfirewall and it rejects the mail saying localhost.mydomain.com
 is invalid.
 
 Where can I change the address [EMAIL PROTECTED] to
 [EMAIL PROTECTED] ?

Hi Ian,
set your hostname in /etc/rc.conf:

it probably wouldn't hurt either to have name resolution properly setup (either 
via DNS or hosts file)

B
_
{Beto|Norberto|Numard} Meijome

He has Van Gogh's ear for music.
  Billy Wilder

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie Question - looking for suggestions of small ports to install on stand-alone system without internet connection

2006-10-07 Thread John Hoover

there's always the shells,

bash for example




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


Re: Newbie Question - looking for suggestions of small ports to install on stand-alone system without internet connection

2006-10-07 Thread Tyop?

On 10/6/06, John Hoover [EMAIL PROTECTED] wrote:

there's always the shells,

bash for example


asciiquarium is a good start.

*A Must*

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


Re: Newbie Question - looking for suggestions of small ports to install on stand-alone system without internet connection

2006-10-07 Thread Jim Stapleton

On 10/6/06, ograbme [EMAIL PROTECTED] wrote:


I would like a few recommendations for small ports to try to install
on my stand-alone machine.

The stand-alone machine does not have connection to the internet;
however, I do have a set of four (4)CD from the FreeBSD Mall and two
(2) of the CD's have 'ports' on them.  I would like to select one, two
or three ports to install on this machine ... to go through the steps
and experience of the ports process using the cdroms, so ... in
essence I'm looking for suggestions of ports of a small nature (if
there is such a thing).



I'm not sure how familiar you are with Unis operating systems or the
various tools available for all of it's incarnations, so, I'm listing
these with info as if you were completely new to it. If you are not, I
do not mean any insult or offense, I just don't know your level of
experience, so I'm going for something relatively low that would give
you a wide range of sights and sounds in the desktop *nix world. If
you aren't /that/ new, just look at my list, and pick and choose your
favorites.

Ideally, you would want to install ports that you could make use of
more than ports that are small. Even the larges ports rarely cause me
issues.

For small starts:
bash - already suggested, very good shell
nano - light weight and useful text editor
pico - like nano, but made before or after, can't remember which
vim - again, already suggested, good text editor, though not to my
taste. It is lightweight and fast, though not to the extent of
pico/nano.
sudoku - I prefer pencil and paper because you can make notes, but it's fun
naim - a console IM program

intermediate projects:
emacs - another popular editor, the largest (in size, not popularity
- don't know what is the most popular) of the bunch, but I know people
who get a lot of work done only starting one program *ever*, this is
that program. It uses a large amount of resources for just a text
editor, but you can do a lot more with it, and on a modern machine,
that large amount is still relatively neglegable.
xorg - an X (graphics) server, which will be extremely useful if you
want more than a console command prompt.
gaim - a multi-im client. quite useful, it could actually be in
small projects, but you need X installed before hand.
gnome - this is between intermediate and larger projects, a good and
popular desktop/session manager, again, not to my taste, for as much
smaller as it is, it runs slower than KDE on my systems. Nonetheless,
a lot of people like it, and you should give it a try.
* - Just about anything in the games directory


Big projects
KDE - like gnome, but more friendly to the people who like gui
configuration, less friendly to those who like text configuration. I
find it faster, but that could be because I have a lot of memory on
all my machines - it's definetly larger. Might be the whole space for
speed tradeoff that you can sometimes do, I don't know. Regardless, be
prepared for a challange, you may not (read: probably won't) be able
to get the full KDE running due to some apps not compiling. Read the
updating file, and you may have to try kde-lite.
openoffice.org-2.0 - a nice office suit, be prepared for a
challange! Now, you may need a few java packages that won't be on the
CDs for this - which you'll have to download elsewhere and put on
either a CD or a flash drive.



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


Re: Newbie Question - looking for suggestions of small ports to install on stand-alone system without internet connection

2006-10-06 Thread Jerry McAllister
On Fri, Oct 06, 2006 at 12:14:29PM -0400, ograbme wrote:

 
 I would like a few recommendations for small ports to try to install
 on my stand-alone machine.
 
 The stand-alone machine does not have connection to the internet;
 however, I do have a set of four (4)CD from the FreeBSD Mall and two
 (2) of the CD's have 'ports' on them.  I would like to select one, two
 or three ports to install on this machine ... to go through the steps
 and experience of the ports process using the cdroms, so ... in
 essence I'm looking for suggestions of ports of a small nature (if
 there is such a thing).

Geez,  what do you want to play with?   Pick anything.
Maybe a couple of simple games would be a good example or maybe
a text editor such as vim.   But, your lack of network connection
makes coming up with suggestions more difficult.

It is no problem if everything is on the CD set.  The problem is that 
so many things have dependancies that may want to go out to the network 
to get something else to build.  I always just have it pull in things 
over the net, so am not sure how much you can get away with for a 
just CD install.  So, it is hard to think of one without trying it 
to make sure everything it needs is on the CDs.

Some simple game such as xmahjongg or dontspace (a Freecell game) might 
work OK and not call in to much else.   A text editor such as vim may 
be OK.  They all require X, but that should be on the CDs.   

jerry

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


Re: Newbie Question - what does the ...-p6 mean?

2006-09-14 Thread Bill Moran
In response to ograbme [EMAIL PROTECTED]:

 
 Hello All.
 
 Thursday, September 14, 2006, 4:24:43 AM, RJ45 wrote in regards to his
 message titled Memory problem:
 
 snip
 
 R I am running FreeBSD 6.1-RELEASE-p6 build with buildworld.
 
 snip
 
 What does the -p6 nomenclature represent in the above statement?
 I've noticed some messages have contained various -pX's.  I recently
 just installed FreeBSD 6.1-RELEASE-p0 (according to -uname command)
 from a FreeBSD Mall 4-CD set, dated May 2006.  Does this -p number
 represent an updated ?Version? containing new patches or ...?

The 'p' is for patch level.
See any of the security advisories, for example:
http://security.freebsd.org/advisories/FreeBSD-SA-06:20.bind.asc

Patch releases are only made when there are security flaws found or
major stability problems fixed.

-- 
Bill Moran
Collaborative Fusion Inc.


IMPORTANT: This message contains confidential information and is
intended only for the individual named. If the reader of this
message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a
result of e-mail transmission.

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


Re: Newbie question: Is this something I should send to buglist?

2006-07-30 Thread Nicolas Blais
On Sunday 30 July 2006 13:09, Oliver Iberien wrote:
 After running portsnap this morning:

 bsd# pkg_version -v  /home/oliver/version.txt
 Makefile, line 54: Could not
 find /usr/ports/print/cups-lpr/../../print/cups/Makefile.common
 make: fatal errors encountered -- cannot continue
 pkg_version: Failed to get PKGNAME from /usr/ports/print/cups-lpr/Makefile!

 I take it that this means that there is something missing from this part of
 this port? I looked at
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-broken.html
 and tried querying the data base (and was confused by the options), and
 searched the mailing list for the string cups-lpr. Nothing -- I think.

 Anyhow, I'm happy to do my bit and post this somewhere but don't want to
 start sending badly formatted or unnecessary bug reports around. Any
 advice?

 Oliver

This message is normal. cups-lpr is a port that no longer exists since the 
update to 1.2.0 as it has been merged with cups-base. When you update to 
cups-base 1.2.0_2, you won't get that message. 

Whether I recommend you update to 1.2.0 is another thing though :)


-- 
FreeBSD 7.0-CURRENT #11: Sun Jul 30 12:12:59 EDT 2006 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/CLK01A 
PGP? : http://www.clkroot.net/security/nb_root.asc


pgpFfo9l04Ss6.pgp
Description: PGP signature


Re: Newbie question - cannot add new disk

2006-04-22 Thread Oliver Iberien
Thanks for your interest in this.

A large part of the problem was in fact a bad cable.

I went back and forth between the command line and sysinstall. They seem not 
to do the same things. It did seem to me that the disklabel in sysinstall and 
the disklabel command-line tool did not necessarily produce labels that were 
mutually intelligible. It looks also as if when writing with disklabel in 
sysinstall, one of the newly created slices has to be highlighted, something 
not made clear in the Handbook. I ended up making partitions instead of 
slices, as disklabel did not like what the sysinstall-disklabel produced. 
Also, the fdisk tool in sysinstall did not always wipe and create new 
partition entries -- it sometimes just appended new ones, although that is 
not what it displayed. I needed dd to actually wipe the table and start anew.

This seemed to continue despite the new cable. However, I am not exactly a 
reliable observer, being, as stated, very new to BSD. 

Oliver


On Monday 17 April 2006 09:14, Alex de Kruijff wrote:
 On Sun, Apr 16, 2006 at 01:40:09PM -0700, Oliver Iberien wrote:
  Hi,
 
  I have been trying to add a second IDE hard drive. I can't seem to get it
  mounted, or to get what I put into sysinstall and what comes out when I
  use the command line to agree.

 Are you using the command line interface or sysinstall to configure the
 disk? This is not clear to me. If you tried sysinstall did it give any
 errors about the geometry? What did you do at that point?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie question - cannot add new disk

2006-04-20 Thread Alex de Kruijff
On Sun, Apr 16, 2006 at 01:40:09PM -0700, Oliver Iberien wrote:
 Hi,
 
 I have been trying to add a second IDE hard drive. I can't seem to get it 
 mounted, or to get what I put into sysinstall and what comes out when I use 
 the command line to agree.

Are you using the command line interface or sysinstall to configure the
disk? This is not clear to me. If you tried sysinstall did it give any
errors about the geometry? What did you do at that point?

-- 
Alex

Please copy the original recipients, otherwise I may not read your reply.

Howto's based on my personal use, including information about 
setting up a firewall and creating traffic graphs with MRTG
http://alex.kruijff.org/FreeBSD/

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


Re: Newbie question -- which files to back up?

2006-04-18 Thread Derek Ragona
The short answer is to backup the files you want to save.  As a general 
rule, I suggest backing up:


/etc
/usr/local/etc
/usr/local/www

The last one assumes you have some website(s).

If you are also worried about email, if you are using the standard 
sendmail, also backup:


/var/mail

I would suggest you create separate compressed tar volumes for your 
backups, then you can restore them individually if you need to.


-Derek


At 02:53 AM 4/16/2006, Oliver Iberien wrote:

I'm running FreeBSD 6.0 on a home machine and backing up to a DVD Burner,
probably using kdar, the dar archiver that comes with KDE.

My question is : which system files to back up, along with my personal stuff?
I'm used to using linux distributions that do your system backups for you.
The capacity of the DVDs sets a practical limit on what I can reasonably back
up, so I need to pick and choose, basically to make recovery easier should
everything go south. Thanks!

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

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


Re: Newbie question -- which files to back up?

2006-04-18 Thread Eric Schuele

Oliver Iberien wrote:
I'm running FreeBSD 6.0 on a home machine and backing up to a DVD Burner, 
probably using kdar, the dar archiver that comes with KDE. 

My question is : which system files to back up, along with my personal stuff? 
I'm used to using linux distributions that do your system backups for you. 
The capacity of the DVDs sets a practical limit on what I can reasonably back 
up, so I need to pick and choose, basically to make recovery easier should 
everything go south. Thanks!


In addition to the:

/etc
/usr/local/etc
/home
/var/db

that others posted, I find the following useful too:

/usr/src/sys/i386/conf  - kernel configs
/usr/X11R6/lib/X11/xdm  - I customize xdm on occasion
/boot/device.hints
/boot/loader.conf

HTH


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




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


Re: Newbie question - using sysinstall Upgrade an existing system - easy?

2006-04-17 Thread Lowell Gilbert
Oliver Iberien [EMAIL PROTECTED] writes:

 What actually happens when you use Upgrade an existing system in
 sysinstall?  Do you end up with the X-server, etc., all functioning
 as before, or is there a lot of cleanup to do afterwards?

X doesn't get automatically updated by that path; just the base
system.  So your old X setup should work fine; it will be untouched.
Of course, upgrades are *always* a good reason to have an *extra* set
of backups.

 (In my case, this would be from 6.0 to 6.1, whenever the release version of 
 6.1 comes out. I am getting DMA errors in trying to install a second drive, 
 and posts from this list give the impression that changing versions may make 
 a difference.)

It's possible.  Not likely, though; among the several more-probable
fixes, the Most Likely would be a new IDE cable.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie question -- which files to back up?

2006-04-16 Thread Andy Reitz
Hi Oliver,

At a minimum, you will probably want to back up the following directories:

/etc
/usr/local/etc
/home

That will get all of the configuration files for FreeBSD and the software thar 
you installed from ports. The last directory will det all of your user's data. 
Some other applications might put data in other places, however, so you might 
want to research the applications that you are running to make sure you don't 
miss any important data.

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


Re: Newbie question -- which files to back up?

2006-04-16 Thread Glenn Dawson

At 09:58 PM 2/22/2006, Andy Reitz wrote:

Hi Oliver,

At a minimum, you will probably want to back up the following directories:

/etc
/usr/local/etc
/home

That will get all of the configuration files for FreeBSD and the 
software thar you installed from ports.


Actually, no.  If you want to backup the software installed from 
ports you will typically need /usr/local.


The contents of /var/db would also be desirable so that you know 
which ports are installed on the machine among other things.


-Glenn

 The last directory will det all of your user's data. Some other 
applications might put data in other places, however, so you might 
want to research the applications that you are running to make sure 
you don't miss any important data.


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


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


Re: Newbie question -- which files to back up?

2006-04-16 Thread Oliver Iberien
On Sunday 16 April 2006 09:00, Glenn Dawson wrote:
 At 09:58 PM 2/22/2006, Andy Reitz wrote:
 Hi Oliver,
 
 At a minimum, you will probably want to back up the following directories:
 
  /etc
  /usr/local/etc
  /home
 
 That will get all of the configuration files for FreeBSD and the
 software thar you installed from ports.

 Actually, no.  If you want to backup the software installed from
 ports you will typically need /usr/local.

 The contents of /var/db would also be desirable so that you know
 which ports are installed on the machine among other things.

 -Glenn

   The last directory will det all of your user's data. Some other
  applications might put data in other places, however, so you might
  want to research the applications that you are running to make sure
  you don't miss any important data.
 
 -Andy.

Thanks for all this information. Can /usr/local and /var/db just be copied 
directly back in after recovery, or (if it's more complicated that that) 
would there be a tutorial on this somewhere?

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


Re: Newbie question -- which files to back up?

2006-04-16 Thread Glenn Dawson

At 09:08 AM 4/16/2006, Oliver Iberien wrote:

On Sunday 16 April 2006 09:00, Glenn Dawson wrote:
 At 09:58 PM 2/22/2006, Andy Reitz wrote:
 Hi Oliver,
 
 At a minimum, you will probably want to back up the following directories:
 
  /etc
  /usr/local/etc
  /home
 
 That will get all of the configuration files for FreeBSD and the
 software thar you installed from ports.

 Actually, no.  If you want to backup the software installed from
 ports you will typically need /usr/local.

 The contents of /var/db would also be desirable so that you know
 which ports are installed on the machine among other things.

 -Glenn

   The last directory will det all of your user's data. Some other
  applications might put data in other places, however, so you might
  want to research the applications that you are running to make sure
  you don't miss any important data.
 
 -Andy.

Thanks for all this information. Can /usr/local and /var/db just be copied
directly back in after recovery, or (if it's more complicated that that)
would there be a tutorial on this somewhere?


Generally speaking, /usr/local is empty after a clean install, so 
simply replacing its contents should be ok.  Though keep in mind that 
some ports put things outside /usr/local so they may not work until 
other things are restored.


/var/db/pkg is the dir you want for restoring the database of 
installed ports/packages.  The other things in /var/db you will 
probably want to put back as needed instead of all at once.


-Glenn



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


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


Re: newbie question on upgrading GCC

2006-04-11 Thread Chuck Swiger

Jim Stapleton wrote:
[ ... ]

When it comes to changing the default compiler a good rule of thumb is
that if you need to ask how to do it, then you should not do it.


That seems to be a general *nix world rule of thumb for just about everything...


The UNIX world is willing to give you a loaded gun, but we try not to 
instruct people on how to shoot their own feet without at least giving them 
a warning that doing so will hurt.  :-)


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


Re: newbie question on upgrading GCC

2006-04-10 Thread Erik Trulsson
On Mon, Apr 10, 2006 at 10:43:51AM -0400, Jim Stapleton wrote:
 I did a make install clean in the lang/gcc40/ directory to get a
 newer version of GCC, and it seems happy, so the next thing I did was
 I replaced my /usr/bin/gcc, /usr/bin/g++, etc. binaries with hard
 links to the /usr/local/bin/gcc-freebsd-4.0,
 /usr/local/bin/g++-freebsd-4.0, etc. binaries.

That sounds like a bad idea.

 
 Now when I try to make things, I get a lot of errors and most compilation 
 fails.

Yes, a bad idea indeed.  Do not try to change the base compiler unless you
really know what you are doing.

 
 I backed up the original binaries (gcc - gcc-original), and things
 seem to be fixed, and compiles work. What should I do?

You should leave the standard compiler alone.  If you wish to use the
newer compiler invoke it as gcc40 (IIRC), but don't try use it to rebuild
FreeBSD itself.


 
 Also, the ports install does not make a cc-freebsd-4.0 binary, so
 I'm leary of replacing it with a hard link to the gcc-freebsd-4.0
 biary, although when I run cc --version, it tells me that it is gcc
 3.4.x, which is the default gcc install.



-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: newbie question on upgrading GCC

2006-04-10 Thread Jim Stapleton
how do I setup make.conf to automatically use the new compiler?

Is there any way to set this new compiler as the default (such as
building the OS), without causing issues? Or would that be just a
royal pain in the posterior that is not worth the effort?

On 4/10/06, Erik Trulsson [EMAIL PROTECTED] wrote:
 On Mon, Apr 10, 2006 at 10:43:51AM -0400, Jim Stapleton wrote:
  I did a make install clean in the lang/gcc40/ directory to get a
  newer version of GCC, and it seems happy, so the next thing I did was
  I replaced my /usr/bin/gcc, /usr/bin/g++, etc. binaries with hard
  links to the /usr/local/bin/gcc-freebsd-4.0,
  /usr/local/bin/g++-freebsd-4.0, etc. binaries.

 That sounds like a bad idea.

 
  Now when I try to make things, I get a lot of errors and most compilation 
  fails.

 Yes, a bad idea indeed.  Do not try to change the base compiler unless you
 really know what you are doing.

 
  I backed up the original binaries (gcc - gcc-original), and things
  seem to be fixed, and compiles work. What should I do?

 You should leave the standard compiler alone.  If you wish to use the
 newer compiler invoke it as gcc40 (IIRC), but don't try use it to rebuild
 FreeBSD itself.


 
  Also, the ports install does not make a cc-freebsd-4.0 binary, so
  I'm leary of replacing it with a hard link to the gcc-freebsd-4.0
  biary, although when I run cc --version, it tells me that it is gcc
  3.4.x, which is the default gcc install.



 --
 Insert your favourite quote here.
 Erik Trulsson
 [EMAIL PROTECTED]

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


Re: newbie question on upgrading GCC

2006-04-10 Thread Erik Trulsson
On Mon, Apr 10, 2006 at 11:01:21AM -0400, Jim Stapleton wrote:
 how do I setup make.conf to automatically use the new compiler?

Don't.  But if you insist on doing that you could try putting

CC=/usr/local/bin/gcc40
CXX=/usr/local/bin/g++40

into /etc/make.conf.  Just be aware that it will probably not work very
well.


 
 Is there any way to set this new compiler as the default (such as
 building the OS), without causing issues?

Not without causing issues, no.

 Or would that be just a
 royal pain in the posterior that is not worth the effort?

That does sound like a fairly accurate description.


When it comes to changing the default compiler a good rule of thumb is
that if you need to ask how to do it, then you should not do it.


 
 On 4/10/06, Erik Trulsson [EMAIL PROTECTED] wrote:
  On Mon, Apr 10, 2006 at 10:43:51AM -0400, Jim Stapleton wrote:
   I did a make install clean in the lang/gcc40/ directory to get a
   newer version of GCC, and it seems happy, so the next thing I did was
   I replaced my /usr/bin/gcc, /usr/bin/g++, etc. binaries with hard
   links to the /usr/local/bin/gcc-freebsd-4.0,
   /usr/local/bin/g++-freebsd-4.0, etc. binaries.
 
  That sounds like a bad idea.
 
  
   Now when I try to make things, I get a lot of errors and most compilation 
   fails.
 
  Yes, a bad idea indeed.  Do not try to change the base compiler unless you
  really know what you are doing.
 
  
   I backed up the original binaries (gcc - gcc-original), and things
   seem to be fixed, and compiles work. What should I do?
 
  You should leave the standard compiler alone.  If you wish to use the
  newer compiler invoke it as gcc40 (IIRC), but don't try use it to rebuild
  FreeBSD itself.
 
 
  
   Also, the ports install does not make a cc-freebsd-4.0 binary, so
   I'm leary of replacing it with a hard link to the gcc-freebsd-4.0
   biary, although when I run cc --version, it tells me that it is gcc
   3.4.x, which is the default gcc install.
 
 
 
  --
  Insert your favourite quote here.
  Erik Trulsson
  [EMAIL PROTECTED]
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: newbie question on upgrading GCC

2006-04-10 Thread Jim Stapleton

 When it comes to changing the default compiler a good rule of thumb is
 that if you need to ask how to do it, then you should not do it.



That seems to be a general *nix world rule of thumb for just about everything...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: newbie question on upgrading GCC

2006-04-10 Thread RW
On Monday 10 April 2006 16:01, Jim Stapleton wrote:
 how do I setup make.conf to automatically use the new compiler?

 Is there any way to set this new compiler as the default (such as
 building the OS), without causing issues? Or would that be just a
 royal pain in the posterior that is not worth the effort?

IIRC make buildworld  doesn't even use the default compiler directly. It just 
uses it to bootstrap the build of its own new compiler.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie question about ports.

2005-06-27 Thread RW
On Friday 24 June 2005 19:36, Alex Zbyslaw wrote:
 Sam Ip wrote:
 I'm trying out FreeBSD for the first time for use at work.  However,
 there is a corporate firewall and hence ftp traffic doesn't get
 through. I can access http sites.  So if a selling point of FreeBSD is
 its ports collection
 
 1.  Can you do a CVSup to update your ports via http?
 
 2.  Can you install ports via http?

 Cvsup does not support http, but neither does it use ftp (see man cvsup,
 especially the -p and -P options).  It requires that a single port be
 openable through your firewall (default 5999).  There is an alternative,
 which I have never used, called CTM (see handbook).

See also sysutils/portsnap which uses http
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie question about ports.

2005-06-24 Thread Alex Zbyslaw

Sam Ip wrote:


I'm trying out FreeBSD for the first time for use at work.  However,
there is a corporate firewall and hence ftp traffic doesn't get
through. I can access http sites.  So if a selling point of FreeBSD is
its ports collection

1.  Can you do a CVSup to update your ports via http? 


2.  Can you install ports via http?
 

Cvsup does not support http, but neither does it use ftp (see man cvsup, 
especially the -p and -P options).  It requires that a single port be 
openable through your firewall (default 5999).  There is an alternative, 
which I have never used, called CTM (see handbook).


Ftp is required to fetch the source code for ports, but this happens 
when you try and build a port and has nothing to do with cvsup.  The ftp 
connection used to fetch the sources will be a passive connection 
which is firewall friendly.  There is no reason, beyond pure paranoia or 
obscene mistrust of employees, for a firewall to block passive-style ftp 
connections.  If I were you, I would ask whoever is in charge of your 
corporate firewall if they do allow passive ftp, and  if they don't, 
then ask for an explanation why not.  If your FreeBSD requirement is 
business related, then they should be helping you get these basic 
services working.


The firewall can easily limit ftp and cvsup connections to be from a 
specified IP address, and to a specified IP address.  Security 
implications: none, since far more dangerous things can be carried in to 
the business on a CD.


*If* (and I have no idea about this) there is a server which has the 
port sources available via HTTP, then you could download them yourself 
either with a web browser or something like lwp-download (part of the 
p5-libwww-5.803 perl package, and quite possibly part of the standard 
perl port).  Every time a port fails to fetch a package via ftp, you 
would have to download it by hand.


The ports collection is *one* selling point for FreeBSD (stability, 
documentation, and just being better than anything else :-) are some 
others).  However, there is no way that you can expect anyone to waste 
their time to work around what can only be described as demented 
security restrictions.


You might be better off looking for a server which can supply you 
packages via HTTP.  Packages are pre-built ports comparable to Linux 
RPMs.  Just like Linux RPMs you get no choice about any configurations 
options which the port provides, and are stuck with whatever the package 
creator used.  That's one reason why the ports are so nice.  See the 
pkg_add manual page and the handbook section on ports and packages.


Just my 0.02,

--Alex






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


Re: Newbie question about ports.

2005-06-24 Thread Andrew L. Gould
On Friday 24 June 2005 01:01 pm, Sam Ip wrote:
 Hi,

 I'm trying out FreeBSD for the first time for use at work.  However,
 there is a corporate firewall and hence ftp traffic doesn't get
 through. I can access http sites.  So if a selling point of FreeBSD
 is its ports collection

 1.  Can you do a CVSup to update your ports via http?

 2.  Can you install ports via http?

 Thanks!

 Sam

Welcome to FreeBSD!  I hope it's a good experience; but be warned that 
it may be addictive.

I **think** the answer to both questions is no since the files you 
need are on ftp servers.

One (fairly expensive) option for you is to order a DVD of  binary 
packages for the release that you installed.  The 2 sources of FreeBSD 
DVD's  that I'm aware of are www.freebsdmall.com and bsdmall.com.

Best of luck,

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


Re: newbie question

2005-05-20 Thread Jerry McAllister
 
 last year i downloaded the miniinst iso disc 3 from the official ftp
 mirror, now i cant find it
 does 5.4 miniinst disc will be available only in the official 5.4
 release announcement? or it has been permanently removed

This has been well documented in the installation instruction.

The layout of the discs has been reorganized so now disk1 functions
the same as mini-inst or the former disk1 or the fixit disk.

jerry

 (ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/5.4/README.TXT)
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 

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


Re: newbie question

2005-04-18 Thread Paul Schmehl
--On Sunday, April 17, 2005 11:52:36 AM -0400 [EMAIL PROTECTED] wrote:
Can anyone give me a very rough estimate on how much time is required on
an   ongoing basis, after a server is set up with FreeBSD and Apache, to
maintain   everything.  By everything I am referring to everything
required to keep  the  server up, and host about 100 domains.  Thank you
in advance and I  apologize  if this question is not appropriate for this
list.
I'm maintaining a server with three domains, running apache, squirrelmail, 
postfix, cyrus imap and saslauthd, mailman, djbdns and a perl-based 
bulletin board, and I probably spend an average of 8 hours a month doing 
server-admin type stuff.

If you set it up right, the only maintenance you have is running 
portupgrade and freebsd-update periodically, to ensure your apps don't have 
known security holes.  Make sure you have a good backup system in case a 
drive fails, and that's about it.

You can write canary scripts that monitor processes and attempt to 
restart them if they fail, and send you email as well.  Most of the eight 
hours is spent reading mail from cron jobs that are monitoring the server. 
FreeBSD just runs.

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: newbie question

2005-04-18 Thread Chad Morland
On 4/17/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hello
 
 Can anyone give me a very rough estimate on how much time is required on an
 ongoing basis, after a server is set up with FreeBSD and Apache, to maintain
 everything.  By everything I am referring to everything required to keep  the
 server up, and host about 100 domains.  Thank you in advance and I  apologize
 if this question is not appropriate for this list.
 
 Sue

If you will be doing this as a business venture I HIGHLY recommend
that you either get a managed server or hire someone to help you admin
the server when you are stuck. There are many people out there that
offer this service. Go to any webhosting forum and ask for some
referrals.

The reason I say this is because it seems that A LOT of people think
they can make a quick buck off of webhosting without any real work.
These are usually the companies that fail quickly and give the hosting
industry a bad name. Running any type of business requires some
thought and experience.

There are a lot of minor issues that will stump a self described
newbie and having someone there to assist you will make your life
and the life of your clients that much easier.

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


Re: newbie question

2005-04-18 Thread Micheal Patterson




- Original Message - 
From: Chad Morland [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Monday, April 18, 2005 1:10 PM
Subject: Re: newbie question


On 4/17/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hello

 Can anyone give me a very rough estimate on how much time is required on
an
 ongoing basis, after a server is set up with FreeBSD and Apache, to
maintain
 everything.  By everything I am referring to everything required to keep
the
 server up, and host about 100 domains.  Thank you in advance and I
apologize
 if this question is not appropriate for this list.

 Sue

If you will be doing this as a business venture I HIGHLY recommend
that you either get a managed server or hire someone to help you admin
the server when you are stuck. There are many people out there that
offer this service. Go to any webhosting forum and ask for some
referrals.

The reason I say this is because it seems that A LOT of people think
they can make a quick buck off of webhosting without any real work.
These are usually the companies that fail quickly and give the hosting
industry a bad name. Running any type of business requires some
thought and experience.

There are a lot of minor issues that will stump a self described
newbie and having someone there to assist you will make your life
and the life of your clients that much easier.

-CM


Good advice Chad. Even for those that have been admin'ing *Nix boxes for
years get stumped by the most simplest of things at times. We rarely admit
it, but it happens.

Some additional things to consider if you plan on hosting sites as a
business.

oCGI access requirements of your clients.

oDNS, SMTP, POP3 requirements for your clients. These usually go hand in
hand with web hosting these days.

oThe ability for them to update pages properly on their own (ftp / front
page requirements / access)

oThe responsibility to ensure that the software is patched quickly as
needed (perl, php, mysql to name a few)

oSpam / AV filtering (do they want it? Do they not care?, Are they going
to trip out if you start filtering their mail?, etc)

oAre you going to host these on static IP's? If you're going to provide
SSL enabled sites, you have no choice since you can't use SSL on name based
virtual hosting.

oAre you going to need to do virtual domain maps for the users that
require / use email services?


A sundry of other items that are just too numerous to mention.

I'm not trying to scare anyone away from it, far from it, just trying to add
my .02 to the discussion of things to consider before you decide that
hosting is the thing for you.

--

Micheal Patterson
Senior Communications Systems Engineer
405-917-0600

Confidentiality Notice:  This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message.

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


Re: Time spent on server maintenance (was Re: newbie question)

2005-04-17 Thread Kevin Kinsey
[EMAIL PROTECTED] wrote:
Hello
Can anyone give me a very rough estimate on how much time is required on an  
ongoing basis, after a server is set up with FreeBSD and Apache, to maintain  
everything.  By everything I am referring to everything required to keep  the 
server up, and host about 100 domains.  Thank you in advance and I  apologize 
if this question is not appropriate for this list.

Sue
 

This varies with experience, as an earlier post noted.  As much as possible,
one should attempt automation of daily chores, addition of domains,
mailusers, etc.  I certainly be willing to guess that one could spend
an hour or more of vigilant inspection and checking on the server system
daily, but as mentioned, if your system is fairly bulletproof (e.g., your
plan takes into account every possible emergency, your automation is
tested, retested, retested again, and then tested some more prior to
deployment (and well-documented), then you could probably cut that
down.
I'd think that the time would really be spent in supporting 100 client's
webmasters when they have issues; communicating with them in the
event you should have to do (un- or) scheduled maintenance, etc.
I'd also estimate that it's not a job for a rookie, per se, unless these
100 clients are very forgiving, patient, and understanding individuals...
On the plus side, know that this is very much a thing that FreeBSD
is good at
My $.02, YMMV, include #disclaimer.h and all that
Kevin Kinsey
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie question regarding Virtual Hosts setup

2004-05-05 Thread Kevin D. Kinsey, DaleCo, S.P.
David H. Ingham wrote:

Hopefully, a simple question.



I have set up a FreeBSD server to develop a web app for a client.

my system is:



   FreeBSD   Version 5.2

   Apache Version 2.0.47

   MySQL Version 4.0.16

   MySQLCC Version 0.9.3

   PHP Version 4.3.3



Now I am able to create the pages, (using Quanta 3.1.4).but I cannot view
them 

from anywhere except the FreeBSD box.

 

Before I upgraded from FreeBSD 4.9 to 5.2, I could get to the site from my
W2K system, 

using a VirtualHost setting and browsing to http://10.0.0.27:5000/login.php

 

Forgive me for not answering your question directly;
I'm going to suggest something else; it's possibly better,
and will eliminate a few issues regarding your network
setup in general:
Why not try name-based virtual hosting?  Set up
the following in httpd.conf and restart Apache:
   #
   # Use name-based virtual hosting.
   #
   NameVirtualHost *:80
   # VirtualHost example:
   # Almost any Apache directive may go into a VirtualHost container.
   # The first VirtualHost section is used for requests without a known
   # server name.
   #
   VirtualHost *
   ServerName my.examplesite.net
   DocumentRoot /path/to/mydocs
   ServerAdmin [EMAIL PROTECTED]
   # whatever else, log files, etc
  /VirtualHost
Then set the hosts files on both server and
clients (esp. clients) something like:
   # Dummy entries for intranet and test sites

   10.0.0.27   my.examplesite.net
   10.0.0.27   my.otherexample.org
Access the sites using the names you've
assigned...
   http://my.examplesite.net/login.php

HTH,

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


Re: Newbie question regarding Virtual Hosts setup

2004-05-05 Thread mark
On May 5, 2004, at 11:54 AM, Kevin D. Kinsey, DaleCo, S.P. wrote:

David H. Ingham wrote:

Hopefully, a simple question.

I have set up a FreeBSD server to develop a web app for a client.

my system is:

   FreeBSD   Version 5.2

   Apache Version 2.0.47

   MySQL Version 4.0.16

   MySQLCC Version 0.9.3

   PHP Version 4.3.3

In your httpd.conf, set

Listen 0.0.0.0:80

I think its defaulting to only listen for localhost.

Now I am able to create the pages, (using Quanta 3.1.4).but I cannot 
view
them
from anywhere except the FreeBSD box.

Before I upgraded from FreeBSD 4.9 to 5.2, I could get to the site 
from my
W2K system,
using a VirtualHost setting and browsing to 
http://10.0.0.27:5000/login.php


Forgive me for not answering your question directly;
I'm going to suggest something else; it's possibly better,
and will eliminate a few issues regarding your network
setup in general:
Why not try name-based virtual hosting?  Set up
the following in httpd.conf and restart Apache:
   #
   # Use name-based virtual hosting.
   #
   NameVirtualHost *:80
   # VirtualHost example:
   # Almost any Apache directive may go into a VirtualHost container.
   # The first VirtualHost section is used for requests without a known
   # server name.
   #
   VirtualHost *
   ServerName my.examplesite.net
   DocumentRoot /path/to/mydocs
   ServerAdmin [EMAIL PROTECTED]
   # whatever else, log files, etc
  /VirtualHost
Then set the hosts files on both server and
clients (esp. clients) something like:
   # Dummy entries for intranet and test sites

   10.0.0.27   my.examplesite.net
   10.0.0.27   my.otherexample.org
Access the sites using the names you've
assigned...
   http://my.examplesite.net/login.php

HTH,

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

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


Re: Newbie question regarding Virtual Hosts setup

2004-05-05 Thread Kevin D. Kinsey, DaleCo, S.P.
mark wrote:

On May 5, 2004, at 11:54 AM, Kevin D. Kinsey, DaleCo, S.P. wrote:

David H. Ingham wrote:

Hopefully, a simple question.

I have set up a FreeBSD server to develop a web app for a client.

my system is:

   FreeBSD   Version 5.2

   Apache Version 2.0.47

   MySQL Version 4.0.16

   MySQLCC Version 0.9.3

   PHP Version 4.3.3

In your httpd.conf, set

Listen 0.0.0.0:80

I think its defaulting to only listen for localhost.

Worth a shot, I suppose; every Apache I've ever set up
defaulted to *:80, though.
Trying:  'netstat -anf inet ' should clue him in on that
possibility...
KDK
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: newbie question: Gnome 2.6 upgrade

2004-04-23 Thread Joshua Lokken
* Lucas Holt [EMAIL PROTECTED] [2004-04-22 11:32]:
  
 
 The problem only seems to be with X11.  I tried running several commands in
 console mode that I can normally run from any location and they all worked
 fine.  so far startx seems to be the only thing that won't run like it used

This could be for naught, but what does 'xinit' do for you?

 to.  I read something about shells having to be rehashed to update the PATH
 lines?  I run in bash if that makes a difference.
 
 
 
 If I'm not mistaken, you only need to run rehash with a csh not sh/bash.
 Besides, you said the machine rebooted.  The path should be correct then.

Right and right.  Rehash is a [t]csh builtin, not present in Bourne
shells, and yep, if the machine was rebooted (or the user logged out),
then the point is moot.
 
-- 
Joshua

You can't treat the working man this way! One day we'll form
 a union, and get the fair and equitable treatment we deserve!
 Then, we'll get corrupt and shiftless, and the Japanese will
 eat us alive!--Anonymous Simpsons character

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


Re: newbie question: Gnome 2.6 upgrade

2004-04-23 Thread Joe Altman
On Fri, Apr 23, 2004 at 01:03:16AM -0700, Joshua Lokken wrote:
 * Lucas Holt [EMAIL PROTECTED] [2004-04-22 11:32]:
  
  The problem only seems to be with X11.  I tried running several commands in
  console mode that I can normally run from any location and they all worked
  fine.  so far startx seems to be the only thing that won't run like it used
 
 This could be for naught, but what does 'xinit' do for you?
 
  to.  I read something about shells having to be rehashed to update the PATH
  lines?  I run in bash if that makes a difference.
 
  If I'm not mistaken, you only need to run rehash with a csh not sh/bash.
  Besides, you said the machine rebooted.  The path should be correct then.
 
 Right and right.  Rehash is a [t]csh builtin, not present in Bourne
 shells, and yep, if the machine was rebooted (or the user logged out),
 then the point is moot.

hash is in bash.

There's a slogan in there, somewhere...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: newbie question: Gnome 2.6 upgrade

2004-04-22 Thread Lucas Holt
 
I would run portversion -v | grep  and make sure everything was upgraded
to start with.  If all the gnome and X11 related stuff appears to be
upgraded, it might be hard to track down which build was at fault.  I think
the gnome upgrade script made a logfile in tmp.  I would check to see if
there is one there and if so see what happened.  Did you have x11 running
when you tried the upgrade?  Did the machine reboot or simply logout?  

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

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


Re: newbie question: Gnome 2.6 upgrade

2004-04-22 Thread Ewald Jenisch

On Thu, Apr 22, 2004 at 10:16:25AM -0400, Ian Bowers wrote:

 I'm having trouble upgrading to gnome 2.6.  I had gnome 2.4
 installed and running just fine.  I cvsup'd with the ports-supfile,
 and ran the gnome_upgrade.sh file.  

Maybe dumb question: Did you upgrade ruby as instructed in
/usr/ports/UPDATING before upgrading Gnome? (I ran into that trap a
while ago)


 Since running cvsup and the upgrade, I can't run startx like I used
 to.  

Are your problems only related to X11 - or do you have the problems
when running in console-mode too?

Try switching virtual terminals with AltCtrlF-key (like
AltCtrlF2). First of all this switches you out to a
console-terminal leaving X running and thus gives to the ability to
track things down further.

-ewald

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


RE: newbie question: Gnome 2.6 upgrade

2004-04-22 Thread Ian Bowers
I'll track down that logfile and check it out.  I didn't have X11 running at 
the time, since I figured it might have to upgrade some components that X11 
runs on.  It rebooted the machine, and when I scrolled up to check out all 
the startup text, everything looked in order.  Hopefully something will jump 
out in the logfile.


From: Lucas Holt [EMAIL PROTECTED]
To: 'Ian Bowers' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: newbie question:  Gnome 2.6 upgrade
Date: Thu, 22 Apr 2004 10:44:22 -0400
I would run portversion -v | grep  and make sure everything was upgraded
to start with.  If all the gnome and X11 related stuff appears to be
upgraded, it might be hard to track down which build was at fault.  I think
the gnome upgrade script made a logfile in tmp.  I would check to see if
there is one there and if so see what happened.  Did you have x11 running
when you tried the upgrade?  Did the machine reboot or simply logout?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]

_
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! 
http://join.msn.com/?page=features/mlbpgmarket=en-us/go/onm00200439ave/direct/01/

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


Re: newbie question: Gnome 2.6 upgrade

2004-04-22 Thread Ian Bowers



From: Ewald Jenisch [EMAIL PROTECTED]
To: Ian Bowers [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: newbie question:  Gnome 2.6 upgrade
Date: Thu, 22 Apr 2004 17:16:14 +0200
On Thu, Apr 22, 2004 at 10:16:25AM -0400, Ian Bowers wrote:

 I'm having trouble upgrading to gnome 2.6.  I had gnome 2.4
 installed and running just fine.  I cvsup'd with the ports-supfile,
 and ran the gnome_upgrade.sh file.
Maybe dumb question: Did you upgrade ruby as instructed in
/usr/ports/UPDATING before upgrading Gnome? (I ran into that trap a
while ago)
Like a proper n00b, I didn't even know there was such a directory.  I 
followed the upgrade FAQ at freebsd.org on the assumption that it was a full 
set of instructions.  Thank you very much for this tidbit.  I'll upgrade 
ruby and check out that dir.

 Since running cvsup and the upgrade, I can't run startx like I used
 to.
Are your problems only related to X11 - or do you have the problems
when running in console-mode too?
Try switching virtual terminals with AltCtrlF-key (like
AltCtrlF2). First of all this switches you out to a
console-terminal leaving X running and thus gives to the ability to
track things down further.
-ewald



The problem only seems to be with X11.  I tried running several commands in 
console mode that I can normally run from any location and they all worked 
fine.  so far startx seems to be the only thing that won't run like it used 
to.  I read something about shells having to be rehashed to update the PATH 
lines?  I run in bash if that makes a difference.

Thank you very much for your help so far.

_
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


RE: newbie question: Gnome 2.6 upgrade

2004-04-22 Thread Lucas Holt
 

The problem only seems to be with X11.  I tried running several commands in
console mode that I can normally run from any location and they all worked
fine.  so far startx seems to be the only thing that won't run like it used
to.  I read something about shells having to be rehashed to update the PATH
lines?  I run in bash if that makes a difference.



If I'm not mistaken, you only need to run rehash with a csh not sh/bash.
Besides, you said the machine rebooted.  The path should be correct then.

You could type env and look at your environment variables. Make sure X11 is
still in your path.

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


Re: Newbie Question

2004-04-19 Thread Remko Lodder

 Hello All,

How do I uninstall or disable snmpd. I have spent too many days
 trying to find this info.

pkg_info |grep -i snmp

Check which snmpd you have installed.

then do pkg_delete $return_information_from_pkg_info_command

HTH!,


 Thank you.

 Jeff




-- 
Kind regards,

Remko Lodder
Elvandar.org/DSINet.org
Www.mostly-harmless.nl Dutch Community about helping newcomers on the
hackerscene


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


Re: Newbie Question

2004-04-18 Thread freebsduser
 Hello All,
 
How do I uninstall or disable snmpd. I have spent too many days 
 trying to find this info.
 
 Thank you.
 
 Jeff
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
Places to look for startup items that I know about:
 1) rc.conf in your /etc
 2) /usr/local/etc/rc.d
You may want to check your /var/db/pkg directory to see if you installed anything like 
that as I don't have it running on my system. If you do find something in /var/db/pkg 
all you have to do is uninstall it either with pkg_delete or make deinstall (might be 
make uninstall) from the directory that snmp port was installed from.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie question: Imager module and p5-Imager in /usr/ports/

2004-01-27 Thread Lowell Gilbert
meimi [EMAIL PROTECTED] writes:

   I have tried to add Perl module Imager using CPAN. However, it failed.
 Then, I find a p5-Imager port. I think they are the same thing, isn't it?

The port includes, but is a bit more than the CPAN module; 
it also includes solutions to the problems you had 
installing the module on your own.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie question

2004-01-20 Thread Matthew Seaman
On Mon, Jan 19, 2004 at 12:37:05AM +0100, Gafgo wrote:
 Hello there! I am a newbie to FreeBSD but have read a lot of handbooks.
 I have also installed different versions on my old computer just to
 practice (incl 4.8, 4.9, 5.0, 5.1). Now I have bought a new computer and
 wanted to install 4.9 for real. But during boot up this happened:
 ad0: REAL command timeout tag=0 serv=0 - resetting
 ata0: resetting devices...
 and there it hangs. When I tried 5.1 I had no problem. Could it be a
 hardware problem??

It sounds to me as if your new machine has hardware which is supported
under 5.x but not 4.9.  That's a very good reason to install 5.2 --
caveats about early adopters notwithstanding, by all accounts 5.2 is
turning out nicely.  I'd worry about using it for a system that was
mission critical to a business (read: financial consequences if it
isn't up and running), but for a home system I think it would do very
well.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: Newbie question

2004-01-20 Thread Gafgo
Matthew Seaman wrote:

On Mon, Jan 19, 2004 at 12:37:05AM +0100, Gafgo wrote:
 

Hello there! I am a newbie to FreeBSD but have read a lot of handbooks.
I have also installed different versions on my old computer just to
practice (incl 4.8, 4.9, 5.0, 5.1). Now I have bought a new computer and
wanted to install 4.9 for real. But during boot up this happened:
ad0: REAL command timeout tag=0 serv=0 - resetting
ata0: resetting devices...
and there it hangs. When I tried 5.1 I had no problem. Could it be a
hardware problem??
   

It sounds to me as if your new machine has hardware which is supported
under 5.x but not 4.9.  That's a very good reason to install 5.2 --
caveats about early adopters notwithstanding, by all accounts 5.2 is
turning out nicely.  I'd worry about using it for a system that was
mission critical to a business (read: financial consequences if it
isn't up and running), but for a home system I think it would do very
well.
	Cheers,

	Matthew

 

Thank you both for your help. I´ll go for 5.2.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Related Q: (was) Re: Newbie question

2004-01-20 Thread Gary Kline
On Tue, Jan 20, 2004 at 08:59:25AM +, Matthew Seaman wrote:
 
 It sounds to me as if your new machine has hardware which is supported
 under 5.x but not 4.9.  That's a very good reason to install 5.2 --
 caveats about early adopters notwithstanding, by all accounts 5.2 is
 turning out nicely.  I'd worry about using it for a system that was
 mission critical to a business (read: financial consequences if it
 isn't up and running), but for a home system I think it would do very
 well.
 

I'm going toput 5.2 on my new DNS server; but from scratch.
SWondering how dificult it is to upgrade from 4.[78] to 5.[latest].
Is the UPGRADING file suffieient?  I've heard the 5.X is the
cat's meow

tia,

gary
 


-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

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


Re: Related Q: (was) Re: Newbie question

2004-01-20 Thread Matthew Seaman
On Tue, Jan 20, 2004 at 10:23:57AM -0800, Gary Kline wrote:
 On Tue, Jan 20, 2004 at 08:59:25AM +, Matthew Seaman wrote:
  
  It sounds to me as if your new machine has hardware which is supported
  under 5.x but not 4.9.  That's a very good reason to install 5.2 --
  caveats about early adopters notwithstanding, by all accounts 5.2 is
  turning out nicely.  I'd worry about using it for a system that was
  mission critical to a business (read: financial consequences if it
  isn't up and running), but for a home system I think it would do very
  well.
  
 
   I'm going toput 5.2 on my new DNS server; but from scratch.
   SWondering how dificult it is to upgrade from 4.[78] to 5.[latest].
   Is the UPGRADING file suffieient?  I've heard the 5.X is the
   cat's meow

UPGRADING should be sufficient if you are an experienced user.
However, you will miss out on the ability to do various things, like
create UFS2 filesystems or repartition your drives -- the shared root
feature makes quite a difference.  I think a wipe and re-install is
generally a good idea over a major version bump, but if you can't do
that, then update in place is the next best thing.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: newbie question

2004-01-19 Thread Larry Rosenman


--On Monday, January 19, 2004 15:24:18 + marlon corleone 
[EMAIL PROTECTED] wrote:

forgive me if ever this is a off topic, how do i create this sample
message, i want to change my motd default to this one, thanks
:##:#  :### :# :#:#  :#:#:### :###:##
:# :# :# # :# :#:# :#:#  :#:#:# :#:#  :# :#
:# :#:#  :#:# :#:# # :#  :#:#:# :#:#  :# :#
:# :#:#  :#:### :### :#:#:#:#:### :###:# :#
:# :#:#:# :#:# :#:#:#:#:#:# :#:#  :# :#
:### :#  :#:# :#:# :# :#:# :#:# :#:###:###
vi /etc/motd

edit to your hearts content.

LER

_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]


--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED]
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749


pgp0.pgp
Description: PGP signature


Re: newbie question

2004-01-19 Thread Andrew L. Gould
On Monday 19 January 2004 09:25 am, Larry Rosenman wrote:
 --On Monday, January 19, 2004 15:24:18 + marlon corleone

 [EMAIL PROTECTED] wrote:
  forgive me if ever this is a off topic, how do i create this sample
  message, i want to change my motd default to this one, thanks
 
  :##:#  :### :# :#:#  :#:#:### :###:##
  :# :# :# # :# :#:# :#:#  :#:#:# :#:#  :# :#
  :# :#:#  :#:# :#:# # :#  :#:#:# :#:#  :# :#
  :# :#:#  :#:### :### :#:#:#:#:### :###:# :#
  :# :#:#:# :#:# :#:#:#:#:#:# :#:#  :# :#
  :### :#  :#:# :#:# :# :#:# :#:# :#:###:###

 vi /etc/motd


 edit to your hearts content.

 LER

As /etc/motd may get overwritten during an upgrade, you may want to keep a 
backup copy somewhere.

Best regards,

Andrew Gould

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


RE: newbie question

2004-01-19 Thread Didier WIROTH
You may also add this to /etc/rc.conf or it will update the version info
after every reboot:
update_motd=NO



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew L. Gould
Sent: lundi 19 janvier 2004 16:36
To: Larry Rosenman; marlon corleone; [EMAIL PROTECTED]
Subject: Re: newbie question

On Monday 19 January 2004 09:25 am, Larry Rosenman wrote:
 --On Monday, January 19, 2004 15:24:18 + marlon corleone

 [EMAIL PROTECTED] wrote:
  forgive me if ever this is a off topic, how do i create this sample 
  message, i want to change my motd default to this one, thanks
 
  :##:#  :### :# :#:#  :#:#:### :###:##
  :# :# :# # :# :#:# :#:#  :#:#:# :#:#  :# :# :# :#:#  :#:# :#:# # :#  
  :#:#:# :#:#  :# :# :# :#:#  :#:### :### :#:#:#:#:### :###:# :# :# 
  :#:#:# :#:# :#:#:#:#:#:# :#:#  :# :# :### :#  :#:# :#:# :# :#:# 
  :#:# :#:###:###

 vi /etc/motd


 edit to your hearts content.

 LER

As /etc/motd may get overwritten during an upgrade, you may want to keep a
backup copy somewhere.

Best regards,

Andrew Gould

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

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


Re: NEWBIE QUESTION

2004-01-15 Thread Rus Foster
On Thu, 15 Jan 2004, Donald Turnbull wrote:

 I'm a newbie to your OS, Does Free BSD have the KDE and Gnome GUI already
 installed? Do you have plans in making the installation more user friendly
 in the future?

cd /usr/ports
make search name=kde
cd /usr/ports/x11/kdebase3
make install

wait..

Rus
-- 
e: [EMAIL PROTECTED]
t: 1-888-327-6330
www.jvds.com - Root on your own box
www.vpscolo.com - Your next hosting company
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NEWBIE QUESTION

2004-01-15 Thread Scott I. Remick
On Thu, 15 Jan 2004 15:47:08 +, Donald Turnbull wrote:

 I'm a newbie to your OS, Does Free BSD have the KDE and Gnome GUI already 
 installed? 

Already installed? No. A large number people want to run FreeBSD on their
servers, and having a GUI on a server isn't usually a good or desired
thing. Another large number of people want a GUI but don't want KDE or
Gnome, so forcing this onto them would also be a disservice.

FreeBSD is partially about choice. The same as it promotes OS choice in a
world dominated by Windows, it also allows and encourages choice in its
components, notably the window manager or (in the case of Gnome and KDE)
the desktop environment. Or the use of one altogether, as in the case for
servers.

HOWEVER... it is insanely easy to install, with one command, via ports. The
ports tree is your friend, and perhaps one of FreeBSD's most notable
advantages over all other OSes. There are over 10,000 items in the ports
tree that are no more than a make clean install away. You can take a
vanilla FreeBSD install, install Gnome and have it install all it's
bazillion dependencies (and XFree86 and all ITS dependencies) all in one
swoop with a single command.

 Do you have plans in making the installation more user friendly 
 in the future?

It really isn't all that bad now. I'm guessing you'd prefer a GUI
installer, but there are a number of reasons this would Bad Idea and make
more people unhappy than the current system (again, take the case of
servers, or the ability of the current installer to work on pretty much
anything). The biggest problem people have with the FreeBSD installer is
that it is different than what they're used to. Don't condemn it because
you haven't learned the (valid) reasons for its differences, and how to
make use of it. I've spent most my computing life with Windows, but I can
blow through a FreeBSD install within 3-5 mins. Do THAT with Windows. ;-)

Welcome to FreeBSD... hope your stay is a long one!

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


RE: NEWBIE QUESTION

2004-01-15 Thread Philip Payne
 I'm a newbie to your OS, Does Free BSD have the KDE and Gnome 
 GUI already 
 installed? Do you have plans in making the installation more 
 user friendly 
 in the future?

Like any newbie I heartily recommend reading through the handbook under
the documentation section of www.freebsd.org . I believe this has a good
section on installing X and selecting a window manager. Also read the
sections on updating source and buildworld, this will keep your system up to
date.

There's some good FreeBSD tutorials at http://www.onlamp.com/pub/ct/15 worth
working through.

Also, as well as ports being your friend I've found the utility
portupgrade under /usr/ports/sysutils/portupgrade highly useful for
managing my installed packages.

Lastly, this list has always been welcoming when I've asked dumb questions
and not full of trolls or people with superiority complexes unlike other
open source lists (thanks).

Good luck,
Phil.



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


Re: NEWBIE QUESTION

2004-01-15 Thread Andrew L. Gould
On Thursday 15 January 2004 09:47 am, Donald Turnbull wrote:
 I'm a newbie to your OS, Does Free BSD have the KDE and Gnome GUI already
 installed? Do you have plans in making the installation more user friendly
 in the future?



 Donald M. Turnbull  MCSE, MCDBA

KDE and Gnome are on the installation CD.  During installation, you can select 
one of these as your default desktop.  The chosen default desktop will then 
be installed.

My **opinions** regarding the installation/configuration process:

(Caveat:  I am just a user, not a developer.)

1.  I think it would be very difficult to make the installation easier without 
reducing the number of options or the amount of control the user has during 
installation.  For many FreeBSD users, control is more important than ease.  
Easy Unix is called Mac OSX.  I talked my 11 year old nephew through a 
complete Mac OSX installation, including wireless access with WEP, over the 
phone.  That has to be the epitome of easy.

2.  The installation/configuration of FreeBSD is part of a newbie's learning 
curve.  That's not to say it should be looked upon as hazing or a rite of 
passage; but it requires newbies to become familiar with their hardware and 
the operating system at a level that non-IS MS Windows users are not 
accustomed.  This new level of familiarity will benefit the newbie down the 
road, particularly during his/her first emails for help.  Embrace the 
challenge!  You will not regret it.

3.  I think the installation is difficult, but manageable, if you are familiar 
with the hardware in your computer and read the available documentation prior 
to installation.  Documentation exists online and in several books available 
at retail bookstores.  (I think it is prudent for anyone/everyone who is 
installing an operating system to be familiar with their hardware and to read 
the available documentation.)

4.  Don't get overwhelmed by the entire installation process.  Plan what you 
want to do, then focus on one step at a time.

Best of luck,

Andrew Gould

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


Re: Newbie question with Squirrelmail 1.41 and IMAP

2003-11-24 Thread Scott Mitchell
On Mon, Nov 24, 2003 at 10:34:40AM -0500, Matthew A. Lee wrote:
 I just recently installed 4.9 on a fresh server.  I was also 
 installing squirrelmail 1.41 from the ports directory and also imap-uw
 (imap4rev1).  I pointed my virtual server to the squirrelmail 
 directory.  I can get the login prompt, but when I login with a 
 username and password, I receive an error message that says unknown 
 user or incorrect password.  On my console, it tells me the login
 has been disabled with whatever username I use and auth=username
 and host=127.0.0.1.  It prefaces the error with imapd[151].
 
 I looked at the pkg-message in imap-uw and it says that by default 
 imap will not accept unencrypted logins.  Since this is just a test 
 server, I dont mind using unencrypted logins, but I dont know how to 
 install it so it will work without them.  Or, I am not certain of 
 what I need to do in order for it work with encrypted logins.  I 
 looked at both the squirrelmail site and washington.edu's site on 
 imap, but I dont really see the solution.  It is probably something 
 very simple that I am missing or that I am doing incorrectly.  Still, 
 any light someone may be able to shed on this or to point me in th 
 right direction would be greatly appreciated.

If you read right to the end of /usr/ports/mail/imap-uw/pkg-message you
should have seen this:


===   NB: IMAP-UW now rejects non-encrypted logins by default. To change this
===   behaviour, recompile and reinstall cclient and imap-uw ports with one of
===   the following make variables defined:

WITHOUT_SSL - build without SSL/encryption support.
WITH_SSL_AND_PLAINTEXT - build with SSL/encryption support, but allow
non-encrypted logins.


So the answer is that you need to rebuild/reinstall the cclient and imap-uw
ports with either '-DWITHOUT_SSL' or '-DWITH_SSL_AND_PLAINTEXT' on the make
command line.  I believe either of these will give you a server that will
accept plaintext logins, but I don't have my notes from when I did this to
check for sure.  At least one of them should work, anyway.

Scott

-- 
===
Scott Mitchell   | PGP Key ID | Eagles may soar, but weasels
Cambridge, England   | 0x54B171B9 |  don't get sucked into jet engines
scott at fishballoon.org | 0xAA775B8B |  -- Anon
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie question - package versions in FreeBSD 5.1

2003-10-01 Thread Matthew Seaman
On Wed, Oct 01, 2003 at 01:53:35PM +0100, Darren Phillips wrote:
 Sorry for the dumb-sounding question - is having multiple package versions installed 
 in 5.1 going to burn me ?
 
 I (think I) understand the install process but not the consequences. How do all the 
 versions coexist ?
 eg. install another linux base package.

Most of the time, this appears to work, but it's not at all desirable.
Generally, if you install a more recent version of a package you've
already installed, then the files from the newer package just
overwrite the files from the older one.

According to pkg_info(1) you'll have both packages installed, but
that's not really the case.  The best way to sort out this sort of
problem is to pkg_delete both versions of the port, and then
re-install the version that you actually want.

In order to avoid getting into this situation in the first place, use
portupgrade(1) and friends to manage your installed ports.

While that's a good way of handling multiple installations of the same
port (even if they are different revisions), it doesn't really help
when you have two different ports that both lay claim to the same
files.  While port maintainers go to great lengths to make their ports
co-exist happily with any other ports, sometimes it just isn't
possible.  There is a (relatively) new 'CONFLICTS' variable in the
port Makefiles which should go a long way towards preventing such
problems.  Unfortunately, use of the CONFLICTS variable is nowhere
near ubiquitous yet.

In the specific case of the various linux_base ports you ask about:

/usr/ports/emulators:% foreach m (linux_base*/Makefile)
foreach? echo $m
foreach? make -f $m -V CONFLICTS
foreach? end
linux_base-6/Makefile
linux_base-*
linux_base-8/Makefile
linux_base-*
linux_base-debian/Makefile
linux_base-*
linux_base/Makefile
linux_base-*

ie. all of the different linux_base ports conflict with each other. So
the short answer to your question is yes.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: Newbie question - package versions in FreeBSD 5.1

2003-10-01 Thread Felix 'buebo' Kakrow
Darren Phillips schrieb:

Sorry for the dumb-sounding question - is having multiple package versions installed in 5.1 going to burn me ?

I (think I) understand the install process but not the consequences. How do all the 
versions coexist ?
eg. install another linux base package.
Normally coexistence of new and old versions is not the way to go, and 
pkg_add or 'make install' in the port-directory will refuse to work.
If you want to upgrade 'make deinstall  make reinstall' or pkg_delete 
and pkg_install (with the new version) should be the way to go.
For a more comfortable way you should have a look into portupgrade, wich 
can upgrade all you outdated ports via the ports-system or packages.
I never tried this with FreeBSD, but from my linux-experiments I can 
tell that having multible Versions of the same Programm is usually going 
to give you trouble if you've not been really carefully in terms of 
install and libary Paths. It's even more trouble to do this with libarys.

Many thanks

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


Re: newbie question - how to pass textfile as an argument

2003-10-01 Thread Dan Nelson
In the last episode (Oct 01), Martin Vana said:
 I was just wondering if there is a way how to pass a text file with
 list of path/files to programs like cp/mv.

If the list is small (less than 65000 characters total):

  cp $(cat myfile) /otherdir/

If the list is large:

  xargs  myfile -J% cp % /otherdir/

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


Re: newbie question - how to pass textfile as an argument

2003-10-01 Thread Andy Harrison
-BEGIN PGP SIGNED MESSAGE-


~
On 01-Oct-2003, Martin Vana wrote message newbie question - how to pass
textfile as an argument
~
 I was just wondering if there is a way how to pass a text file with list of
 path/files to 
 programs like cp/mv.

AFAIK, you can't.  You can, however, use something like the find command.  

find /somedir -type f -name '*pattern*' -maxdepth 1 -exec mv {} newdir \;
(maxdepth 1 limits it to the current directory, otherwise it is recursive.)

~~ 
Andy Harrison
(full headers for details)


-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8

iQCVAwUBP3s6GVPEkLgodAWVAQHWhAQAij/sg4mNSJzdHn0ISnHF3tgdd7FVgbe0
lIHbNBZn6jFrhrd8QXSv22cHKftN/1kDsoAywB7bLVeXHgzKKek/NuWt98qE3/Rp
osVwgGOj8S2c/sBm8tPjHlkcxAdQxM7MlNcMc29sDlQ+smdKYCIjKn0Nv1jPqzeP
W3PmyqXefOE=
=wuMG
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: newbie question - how to pass textfile as an argument

2003-10-01 Thread Viktor Lazlo


On Wed, 1 Oct 2003, Dan Nelson wrote:

 In the last episode (Oct 01), Martin Vana said:
  I was just wondering if there is a way how to pass a text file with
  list of path/files to programs like cp/mv.

 If the list is small (less than 65000 characters total):

   cp $(cat myfile) /otherdir/

 If the list is large:

   xargs  myfile -J% cp % /otherdir/


You could also run it through a for loop:

for i in $(cat myfile); do mv $i ~/mydir; done

Or if the files can be grouped by a pattern:

for i in *.mp3; do mv $i ~/mymp3s; done

Or if the files are scattered all over your hard drive and you haven't
created a list yet:

find / -type f -name *.mp3 -exec mv {} ~/mymp3s \;

Cheers,

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


Re: Newbie question

2003-08-03 Thread B.Bonev
Thanks, for all. And... i have another question!
On 3rd subnet that must be used for internet connection(192.168.0.x) have a
small Internet Server (DLink - 192.168.0.1) who listening for http
connections (192.168.0.0/24 Dial on Demand) and have NAT, FreeBSD gateway is
on 192.168.0.2. What I want to do is all Win boxes to have a connection to
internet (from 192.168.1 and 192.168.2 subnets) Should I setup Internet
server to listening for 192.168.0.0/16 or redirect adress from 192.168.1.1
and 192.168.2.1 to 192.168.0.1 with natd? Or may be have other answer?


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


RE: Newbie question

2003-07-29 Thread Derrick Ryalls
 What I need to change on a PC with FreeBSD4.8 with 2 NICs, so 
 that for Win computers must see each other on different 
 subnets - 192.168.1/24 and 192.168.2/24? I want Win clients 
 to be just like they are on a Win network? Or maybe i must do 
 anything on those Win machines?


Need more info.  What are the ips on the two nics on FreeBSD?

If only one nic has a private ip (192.168.x.x) while the other is
public, then depending on your network setup, you should just be able to
change the netmask of the winboxen so they are part of both the
192.168.1 and 192.168.2 subnets.  This might not be the best solution,
but it might work.

If both nics have private ips, then I am at a loss and am unsure of what
your network looks like.


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


Re: Newbie question

2003-07-29 Thread B.Bonev
Just I want Shared resources from 192.168.1 to use on 192.168.2

Thanks.
I try and tell yo back is everything OK.


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


Re: Newbie question

2003-07-29 Thread B.Bonev
OK. But 192.168.1 can't connect to shared resorces on 192.168.2?
Any suggestion?


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


Re: Newbie question

2003-07-29 Thread JacobRhoden
On Wed, 30 Jul 2003 03:12 pm, B.Bonev wrote:
 OK. But 192.168.1 can't connect to shared resorces on 192.168.2?
 Any suggestion?

I am no expert, but I can think of a few things:
  - both machines have the proper gateway ip set (as just mentioned in email)
  - the freebsd box rc.conf not setup properl
- should be setup to be defaultrouter=YES and gateway=YES
  or something like that
  - the windows machines with the resources might not allow
connections from machines on other subnets (there is a security setting 
which blocks connections from 'the internet')

You should try pinging from one subnet to the other to make sure it works!
Lastly, if pinging does work:

Do you have samba on the freebsd machine, if you are sharing printers/hard 
disks, I am fairly sure you need the gateway machine to have samba running, 
because you need to setup samba on the gateway to collect a 'list' of all the 
resources on both networks, so that the machines on both side know where your 
resources are.  This is because windows detects shared resources using a 
network broadcast, that is it sends a message to x.y.z.* to work out what 
mahines have shared resources.


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


  1   2   >