Re: script help

2011-02-14 Thread Jarrod Slick

On 2/14/11 3:34 PM, Jack L. Stone wrote:

Hello folks:

No doubt this will be easy for those with scritping abilities.

I have a gazillion files by the same name and each contains the same line
requiring the same change. But the problem is that they are in many
different directories on a server with numerous domains. While I could
handle the change using a single directory within my abilities, I'm unsure
how to do a search and replace throughout the many domains and their
directories. Don't want to mess up. Here's what I'm trying to do:

# find all of the same filenames (copyright.htm) and then replace the year
2010 with 2011 in each file. Once I have a working script, I should be able
to add it as a cron job to run on the first day of each new year.

Any help appreciated.

Thanks!
Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
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"

Something like this should work (*UNTESTED*):

#!/usr/bin/perl
use strict;
use warnings;
use File::Find;

my @directories = qw(/var/www/html /var/www/html2 /etc); #if you don't 
know all the directories and are okay with the script running for a 
while you could just specify /
my $line = quotemeta("Copyright 2010"); # Or whatever your line actually 
is . . .

my $copyright_file = quotemeta("copyright.htm");
find(\&wanted, @directories);

sub wanted {
if($_ =~ $copyright_file) {
open(my $fh, '<', $File::Find::dir.'/'.$copyright_file) or die 
"Couldn't create read handle: $!\n";

my $new_file = undef;
while(<$fh>) {
if($_ =~ /^$line$/) {
$_ =~ s/2010/2011/;
}
$new_file .= $_."\n";
}
close($fh);
open($fh, '>', $File::Find::dir.'/'.$copyright_file) or die 
"Couldn't create write handle: $!\n";

print $fh $new_file;
close($fh);
}
}
___
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: Invitation

2011-02-14 Thread Jarrod Slick

On 2/14/11 2:12 PM, David Kelly wrote:

On Mon, Feb 14, 2011 at 08:54:59PM +, Simon Tibble wrote:

Now, see, I can't help thinking that if we all just abandoned money
then the motivation for people to do this sort of thing would then
disappear - would it not?

Without money, how would we keep score to know who is winning?


David,

Simon Tibble has thus far shown himself to be a spammer; let's not give 
him any more space to plug his completely OT site than he's already had 
on this list.


Simon,

If you want to plug your site in a legitimate manner why not put a link 
to it in your signature, learn about FreeBSD, and contribute to on topic 
discussion?

___
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: qmail or postfix?

2011-02-01 Thread Jarrod Slick
Calling qmail more secure is pretty much just echoing conjecture at this
point.  Sure, it was designed to be secure (years and years ago) and the
original author even held a contest with a monetary reward for anyone who
could find a vulnerability -- that said, AFAIK that person no longer
maintains the project.  It requires lots of third party patches to be as
functional as postfix, so to what extent these patches counteract the
original coder's (apparent) secure coding practices is open to debate.

If you know of any specific problems with postfix that would substantiate
your claim I encourage you to inform the project's maintainers.  From
personal experience I can say that I've run a postfix config for years
without problems.  Also, in most networks I don't think the MTA is a very
prominent attack vector; people are probably much more likely to get in
through that old wordpress installation you've been meaning to upgrade for 6
months (for instance).

On Tue, Feb 1, 2011 at 7:11 PM, Andres Perera  wrote:

> On Tue, Feb 1, 2011 at 10:02 AM, Alessandro Baggi
>  wrote:
> > Hi list. Who is better, qmail or postfix?
>
> qmail is more secure... but the design is just as alien to unix as sendmail
> is
>
> for example, the fact that qmail uses custom libc, or at least did so on
> the
> version i tried. that turns off certain maintainers, and it would put me
> off
> aswell
>
> postfix on the other hand is more in tune with the rest of the system
>
> >
> > thanks in advance
> > ___
> > 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"
>
___
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: Any package for surveys?

2011-01-27 Thread Jarrod Slick

On 1/27/11 12:08 PM, elbbit wrote:

I am not going
>>  anywhere and the world will become self-aware in my presence.  It
>>  is why I have been born.

You sound like a sociopath.

I am on the outside of the matrix.  You have no idea how great it is out
here.  Unplug, and free your mind, just like Neo does in the famous
movie.  Only, try to understand, the real fiction we deal with is money
and those who make it.  They use it to control you.  Do your own
research.  Don't believe the crazy man - because I am crazy...or am I?


Nevermind, you actually just sound like a normal 14 year old with 
Hollywood inspired delusions of grandeur.


Hope your website works out for you and ends social injustice.
___
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: wine questions

2011-01-27 Thread Jarrod Slick

On 1/27/11 11:48 AM, Fred wrote:

Hello,

I need to buy an expensive logic device programmer that connects to a 
PC through USB.  Unfortunately, the user software that make it go only 
runs on Bill Gates' cancerous, virus-infested, scourge of the Earth 
excuse for an OS which I do not use.  Is it likely to work ok using 
wine?  What type of programs do not work well with wine?  There is a 
supported, commercial version of wine that runs on Linux.  Would I be 
better off buying that and running it on the FBSD Linux emulation?


Best regards,
Fred

___
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"
Chaining emulators just sounds like a bad idea; I would guess that your 
risk of complications increases exponentially when doing this, and I 
would bet anything that your performance decreases exponentially as 
well.  Also, I doubt the company that sells the commercial version of 
wine would support their software when running on untested platforms 
(e.g., FBSD w/ Linux Emulation).  Further, that company probably has a 
list of supported software and won't vouch for their product's ability 
to run anything outside of that list.


If you absolutely must run it under a *nix, I would go with Linux for 
this project.


If you'd set dogma aside, though, you would probably see that Windows is 
your best bet for this project.  A close second (if you had all the time 
in the world) would be writing drivers yourself for your desired platform.

___
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: questions on bind9-3.6-P1

2011-01-24 Thread Jarrod Slick

On 1/24/11 1:48 PM, Gary Kline wrote:

On Mon, Jan 24, 2011 at 12:39:46PM -0700, Jarrod Slick wrote:

On 1/24/11 12:33 PM, Gary Kline wrote:

oKay, since my prev question caught no wixards, how about looking at
the errors from bind-9.3.6? [I rebuilt this from the src tarball; it
finally installed; I fixed some obvious errors, but several remain.

Here is the log file where bind9 fails on "em0", my NIC in my server.
This is one failure that is simply over my head.

+++

Jan 24 11:14:55 ethic named[59747]: starting BIND 9.3.6-P1 -c
/var/named/etc/namedb/named.conf
Jan 24 11:14:55 ethic named[59747]: could not listen on UDP socket:
address in use
Jan 24 11:14:55 ethic named[59747]: creating IPv4 interface em0 failed;
interface ignored
Jan 24 11:14:55 ethic named[59747]: could not listen on UDP socket:
address in use
Jan 24 11:14:55 ethic named[59747]: creating IPv4 interface lo0 failed;
interface ignored
Jan 24 11:14:55 ethic named[59747]: not listening on any interfaces
Jan 24 11:14:55 ethic named[59747]: couldn't add command channel
127.0.0.1#953: address in use
Jan 24 11:14:55 ethic named[59747]: couldn't add command channel ::1#953:
address in use
Jan 24 11:14:55 ethic named[59747]: could not listen on UDP socket:
address in use
Jan 24 11:14:55 ethic named[59747]: creating IPv4 interface em0 failed;
interface ignored
Jan 24 11:14:55 ethic named[59747]: could not listen on UDP socket:
address in use
Jan 24 11:14:55 ethic named[59747]: creating IPv4 interface lo0 failed;
interface ignored
Jan 24 11:14:55 ethic named[59747]: running
+++

Can anybody explain why (eg) the lo0 failed or was ignored.  And
why bind9--now offically at its EOLife--has trouble creating an
IPv4 interface with my NIC, em0?  Do I have to do some very simple?
like rebooting?






I think the issue probably lies in the "address in use" part of your
error output.  Try a sockstat/netstat to see what's bound on port 953.
If it's an old instance of bind, kill it and then try restarting.



HMMM: Here's what the log shows:

--sorry for the overage; i cannot cut/paste here on ethic].  Looks like same
thing.


Jan 24 12:14:56 ethic named[59747]: creating IPv4 interface lo0 failed; 
interface ignored
Jan 24 12:14:56 ethic named[59747]: not listening on any interfaces
Jan 24 12:15:09 ethic root: Unknown USB device: vendor 0x17f6 product 0x0709 
bus uhub4
Jan 24 12:15:09 ethic kernel: ukbd1:  on uhub4
Jan 24 12:15:09 ethic kernel: kbd3 at ukbd1
Jan 24 12:15:39 ethic sm-mta[60106]: p0OKD6D2060106: SYSERR(root): collect: I/O error 
on connection from mx2.freebsd.org, from=
Jan 24 12:33:50 ethic ntpd[862]: kernel time sync status change 6001
Jan 24 12:37:04 ethic named[60266]: starting BIND 9.3.6-P1 -c 
/var/named/etc/namedb/named.conf
Jan 24 12:37:04 ethic named[60266]: could not listen on UDP socket: address in 
use
Jan 24 12:37:04 ethic named[60266]: creating IPv4 interface em0 failed; 
interface ignored
Jan 24 12:37:04 ethic named[60266]: could not listen on UDP socket: address in 
use
Jan 24 12:37:04 ethic named[60266]: creating IPv4 interface lo0 failed; 
interface ignored
Jan 24 12:37:04 ethic named[60266]: not listening on any interfaces
Jan 24 12:37:04 ethic named[60266]: couldn't add command channel 127.0.0.1#953: 
address in use
Jan 24 12:37:04 ethic named[60266]: couldn't add command channel ::1#953: 
address in use
Jan 24 12:37:04 ethic named[60266]: could not listen on UDP socket: address in 
use
Jan 24 12:37:04 ethic named[60266]: creating IPv4 interface em0 failed; 
interface ignored
Jan 24 12:37:04 ethic named[60266]: could not listen on UDP socket: address in 
use
Jan 24 12:37:04 ethic named[60266]: creating IPv4 interface lo0 failed; 
interface ignored
Jan 24 12:37:04 ethic named[60266]: running


___
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"
Okay, but what exactly did you do?  I guess my instruction to, 
"restart," was a bit ambiguous.  I meant after killing whatever is 
running on port 953 you should restart __bind__, preferably by executing 
your desired binary manually, not the system itself.  You may be 
executing two instances of bind at startup as another respondent suggested.


To recap, see what's bound on port 953:

netstat -ntpl | grep 953

kill whatever is bound on 953 (you should be able to get the pid from 
the netstat output)


kill -9 

start your desired named:

/path/to/bind 

If that leaves you with a working named installation, remove the 
extraneous startup script and reboot to confirm that your issue is fixed.

___
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: questions on bind9-3.6-P1

2011-01-24 Thread Jarrod Slick

On 1/24/11 12:33 PM, Gary Kline wrote:

oKay, since my prev question caught no wixards, how about looking at
the errors from bind-9.3.6? [I rebuilt this from the src tarball; it
finally installed; I fixed some obvious errors, but several remain.

Here is the log file where bind9 fails on "em0", my NIC in my server.
This is one failure that is simply over my head.

+++

Jan 24 11:14:55 ethic named[59747]: starting BIND 9.3.6-P1 -c 
/var/named/etc/namedb/named.conf
Jan 24 11:14:55 ethic named[59747]: could not listen on UDP socket: address in 
use
Jan 24 11:14:55 ethic named[59747]: creating IPv4 interface em0 failed; 
interface ignored
Jan 24 11:14:55 ethic named[59747]: could not listen on UDP socket: address in 
use
Jan 24 11:14:55 ethic named[59747]: creating IPv4 interface lo0 failed; 
interface ignored
Jan 24 11:14:55 ethic named[59747]: not listening on any interfaces
Jan 24 11:14:55 ethic named[59747]: couldn't add command channel 127.0.0.1#953: 
address in use
Jan 24 11:14:55 ethic named[59747]: couldn't add command channel ::1#953: 
address in use
Jan 24 11:14:55 ethic named[59747]: could not listen on UDP socket: address in 
use
Jan 24 11:14:55 ethic named[59747]: creating IPv4 interface em0 failed; 
interface ignored
Jan 24 11:14:55 ethic named[59747]: could not listen on UDP socket: address in 
use
Jan 24 11:14:55 ethic named[59747]: creating IPv4 interface lo0 failed; 
interface ignored
Jan 24 11:14:55 ethic named[59747]: running
+++

Can anybody explain why (eg) the lo0 failed or was ignored.  And
why bind9--now offically at its EOLife--has trouble creating an
IPv4 interface with my NIC, em0?  Do I have to do some very simple?
like rebooting?





I think the issue probably lies in the "address in use" part of your 
error output.  Try a sockstat/netstat to see what's bound on port 953.  
If it's an old instance of bind, kill it and then try restarting.


___
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: Like it or not, Theo is having a good laugh ..

2010-10-08 Thread Jarrod Slick

 On 10/8/10 9:33 PM, Rob Farmer wrote:

On Fri, Oct 8, 2010 at 10:31, Ian Smith  wrote:

We've had a clear explanation of why it's still there - an historical
oversight at worst, pre present levels of paranoia and litigiousness -
by Jung-uk Kim, who's been importing Intel ACPICA code into FreeBSD for
five or so years, among large works on other core aspects of FreeBSD.

He stated that it will be dealt with in the next import of the code.
End of story?  Let facts get in the way of such a splendid beat-up?]

What do you mean by "dealt with"? Just drop clauses from the license?
Has someone who legally represents the copyright holder approved that
in writing?


If anyone finds any State Secrets or vaguely crypto code in Intel's free
(in both senses) ACPICA code implementation of open ACPI specifications,
I'm sure we'll get to hear about it.  Meanwhile, please shut the FUD up.

Export restrictions apply to more than crypto, and removing the
license terms saying this doesn't actually remove the restrictions -
they are a law.

The only people spreading FUD here are those who are have an
anti-American attitude and are unwilling to accept that since key
parts of FreeBSD are contributions by people in the US and are then
exported, it just might actually be affected by what US lawmakers say
about exports.


@rob,

Kinda wish you would make a video wherein you read your above statement 
from a teleprompter with a green-screened American flag billowing in the 
background.  You might want to add in a statement about your deep 
respect and admiration for the troops, though.  To add in even more of 
that good ol' fashioned American [self-]righteousness you could even, in 
a senseless spat of litigiousness, DMCA yourself and have the video 
removed from whatever third-party site you decide to post it on.


Oh, and disclaimer . . . I'm an American.

Anyhow, I'll go back to lurking.
___
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: postfix + cyrus sasl: no go

2009-09-19 Thread Jarrod Slick
use dovecot . . . I spent days trying to get postfix configured with cyrus
sasl, tweaking everything I could think of multiple times, and I still
couldn't get it to work.  Tried dovecot and had everything working in 10
minutes.

On Sat, Sep 19, 2009 at 12:44 PM, Jerry  wrote:

> On Sat, 19 Sep 2009 10:12:40 -0700 (PDT)
> Colin Brace  wrote:
>
> >
> >
> > Jerry-107 wrote:
> > >
> > > 2) Post the contents of: /usr/local/lib/sasl2/smtpd.conf
> > >
> >
> > Jerry, this file doesn't exist on my system.
>
> Please, check the URL I sent previously. You have SASL2
> configured incorrectly. It needs the smtpd.conf file to work correctly.
> There is an abundance of documentation of the Postfix site describing
> how to configure the file. Start with the URL I sent you.
>
> You really should post on the Postfix forum for best results also.
>
> --
> Jerry
> ges...@yahoo.com
>
> Why you say you no bunny rabbit when you have little powder-puff tail?
>
>The Tasmanian Devil
> ___
> 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: Nagios + 6.3-RELEASE == Hung Process

2008-02-04 Thread Jarrod Sayers

On 03/01/2008, at 11:56 AM, Marc G. Fournier wrote:
As noted in my original report, this isn't a nagios issue per se ...  
my first
experience with this issue was with Azureus/java ... so its a  
'threading issue

in general' ...


A patch to force the package to link against libthr() has been  
committed [1] and should be available once mirrors update as net-mgmt/ 
nagios 2.10_1.  This has been tested since this conversation stated in  
the net-mgmt/nagios-devel port [2] without any negative feedback being  
received.  Bundled in the update is the inclusion of libltdl as  
requested by Tom Judge.


I'd be interested to know how people go with the updated port.  Thanks  
for your patience.


[1] http://www.freebsd.org/cgi/query-pr.cgi?pr=120150
[2] http://www.freebsd.org/cgi/query-pr.cgi?pr=119246

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


Re: Nagios + 6.3-RELEASE == Hung Process

2008-01-02 Thread Jarrod Sayers

On Wed, 2 Jan 2008, Tom Judge wrote:

Jarrod Sayers wrote:
I hope I can confirm your frustrations.  There is a threading issue 
with Nagios when it's binaries are linked against libpthread(3) 
threading library, the default on recent FreeBSD 5.x releases and all 
6.x releases. The issue is random and extremely difficult to track down 
with the symptoms being a second Nagios process sitting on the system 
hanging a CPU.  Be rest assured that I have been working on it, and 
have seen it on one system of mine.


Not sure if this is related at all but out of the 3 nagios deployments 
we have here I have only ever seen it on one (It currently has 2 nagios 
threads spinning CPU time atm).


The differences on that server are:

* It is amd64 compared to i386
* It also runs ndo2db from ndoutils 1.4b7

All the systems run 6.2-RELEASE-p5 and nagios-2.9_1, they are also all 
patched with gnu libltdl patch below.


Don't know if that info is of any use to you.


That's actually good to know, as you're now (unless I am mistaken) the 
first user to contact me about this problem on non-i386 systems.  One 
user, plus myself, have also seen the issue under Nagios 3.x, both on i386 
systems though.


I also have a net-mgmt/ndoutils port in the works (less the database 
support for now) which also has the same issue so using broker modules 
doesn't seem to affect the outcome.


My gut feeling is that it's not an architecture issue but more an 
interoperability issue between the Nagios threading code and the 
libpthread() threading library.


[yoink]

I did receive that email and the changes went in with the last commit 
of net-mgmt/nagios-devel to test.  No issues have arisen so i'll be 
back-porting it to net-mgmt/nagios soon for you.  There also has been a 
rather large ports freeze which delayed the upgrade to Nagios 2.10, 
that PR was submitted on the 1st of November and committed on the 13th 
of December. Unfortunately your email fell somewhere in the middle, 
apologies for not letting you know.


Thanks for this, I currently maintain the patch on our build servers.


No worries, I will look at bundling in the change with the libthr() fix 
over the next few days.  Thanks for pointing that out too as it was a bug 
instead of a feature request, as on systems where the library was 
available, the build process would link to it.  Hmm...


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


Re: Nagios + 6.3-RELEASE == Hung Process

2008-01-02 Thread Jarrod Sayers

On 03/01/2008, at 1:56 AM, Tom Judge wrote:
I have also seen this issue, but have always put it down to the way  
that

we manage our nagios deployments with cfengine.  I will try to deploy
this change and monitor for the problem to see if it persists.


I hope I can confirm your frustrations.  There is a threading issue  
with Nagios when it's binaries are linked against libpthread(3)  
threading library, the default on recent FreeBSD 5.x releases and all  
6.x releases. The issue is random and extremely difficult to track  
down with the symptoms being a second Nagios process sitting on the  
system hanging a CPU.  Be rest assured that I have been working on it,  
and have seen it on one system of mine.


Changes have been submitted for net-mgmt/nagios-devel (aka Nagios  
3.0.r1)) to force the build process to link against libthr(3) where  
available, removing the need to map libpthread() out with /etc/ 
libmap.conf.  If this goes well, as stated in the PR, i'll back-port  
it to net-mgmt/nagios (aka Nagios 2.10) in the next few days.


If anyone out there is running net-mgmt/nagios-devel and feels like  
trying it for me, see ports/119246 and drop me an email with a before  
and after "ldd /usr/local/bin/nagios".



On a side note if you want to use broker modules with nagios from port
you need to change the following in the port Makefile in order to make
them load properly:

From:
USE_AUTOTOOLS=  autoconf:259
To:
SE_AUTOTOOLS=  autoconf:259 libltdl:15

I sent an email to the maintainer but got no response and my email did
not seem to have affected the last commit to upgrade to 2.10


I did receive that email and the changes went in with the last commit  
of net-mgmt/nagios-devel to test.  No issues have arisen so i'll be  
back-porting it to net-mgmt/nagios soon for you.  There also has been  
a rather large ports freeze which delayed the upgrade to Nagios 2.10,  
that PR was submitted on the 1st of November and committed on the 13th  
of December.  Unfortunately your email fell somewhere in the middle,  
apologies for not letting you know.


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


FreeBSD 6.2 Mail Retrieval Configuration

2007-06-22 Thread Jarrod Hildebrand

Hi all,
I am working as a temp co-op student for a small business, and was given my
first project. Email responses are part our daily duties in my work
environment. We currently use gmail for our three email accounts. One is
internal, and the other two are not. Seeing as how gmail doesnt sync with
the other addresses, we have to constantly use gmails fetch settings to
retrieve mail from the other two addresses. Im in the midst of setting up
FreeBSD POP3 and IMAP4 for retrieving e-mail, and (LDAP) for directory
services. I need advice on how to configure the clients to retrieve there 2
email addresses from there XP machines using FreeBSD. There are so many
ports and packages to use Im not sure which ones to pick, and where to
start. Ive got Procmail & Fetchmail installed on FrreBSD. I want to have
Exim to hand off the email addressed to [EMAIL PROTECTED] to procmail , which in
turn will run it thru SpamAssassin. Then to send a copy to GMail and deliver
one locally. Also archives a copy on the server in monthly mbox files as a
secondary backup
I got 5 days to have it up and running!

Any configuration ideas for Postfix, Procmail, Fetchmail
The setup will only be used for retrieval only, with no need to use it as
an SMTP relay server. Im not looking for a large response, but if anyone
could give me some info on what to install (in what order) and how to
configure the protocols would be greatly appreciated.
There is no registered domain for our company, so my goal is to just receive
emails, and store them locally
Resource recommendations would help too.

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


SSL and Thunderbird 2.0.0.0 on FreeBSD 6.0

2007-06-20 Thread Jarrod

Hi All,

Can anyone tell me whether they have experienced any problems with SSL
under Thunderbird 2.0.0.0 (20070612) on FreeBSD 6.0?

I used portupgrade to download and install the pkg the other day, along
with Firefox 2.0.0.4, I might add, and I am now unable to use SSL to
connect to my mail server.

Fortunately, I can use a normal connection, so it is not a major issue,
but all the same...

Initially I thought it might be caused by the same problem which stopped
the new Firefox from being able to access sites using https. I solved
this, after much digging around on the internet, by adding the path:

"/usr/local/lib/nss"

to the ldconfig setup in my rc.conf.

Unfortunately, Thunderbird remains broken. Has anyone experienced
something similar?

Alternatively, does anyone know how Thunderbird goes about finding the
nss package? Would it be possible that even with ldconfig ok,
Thunderbird still can't locate the nss libraries?

I actually have another issue, quite possibly connected, which is that
since the upgrade I haven't been able to set Thunderbird's master
password. It is storing my account passwords fine I should add.

I've tried every trick I could find on the internet, including using
"modutil" to recreate the .db files and things, but nothing has worked
so far.

Any and all help would be appreciated.

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


NOT Threading Messages Correctly on Thunderbird

2006-03-24 Thread Jarrod


Hi Sergey,


Hint: it's not a solution at all:)



Well I did test the process in the freebsd-test group and managed to
get my messages threading ok, but perhaps something else was at
play?

I may have to check sylpheed out.

Thanks and apologies for the mis-information.

Regards,
Jarrod.


Sergey Zaharchenko wrote:


Hello Jarrod!

Fri, Mar 24, 2006 at 08:16:26PM +0900 you wrote:

 


Hi Sergey,

Thanks for your help! I experimented with Thunderbird (v1.0.7 -- which 
does not have an "In-Reply-To" field) and found that Reply-To apparently 
worked, though, as you point out, it is not a perfect solution!
   



Hint: it's not a solution at all:)

 

Perhaps Thunderbird 1.5 allows the setting of an "In-Reply-To" field? 
Have to give it a try. Out of interest, what mailing program do you use?
   



Mutt. You can look in the User-Agent field of a message to see what
program the poster is using (sometimes, at least).

I also used Sylpheed-claws, which is graphical, when Mutt isn't, but I
don't know it it allows you to insert custom header fields, when Mutt
does.

HTH,

 



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


Re: FYI: Threading Messages Correctly on Thunderbird

2006-03-24 Thread Jarrod


Hi Sergey,

Thanks for your help! I experimented with Thunderbird (v1.0.7 -- which 
does not have an "In-Reply-To" field) and found that Reply-To apparently 
worked, though, as you point out, it is not a perfect solution!


Perhaps Thunderbird 1.5 allows the setting of an "In-Reply-To" field? 
Have to give it a try. Out of interest, what mailing program do you use?


Thanks & Cheers,
Jarrod.

PS. freebsd-questions gets too much traffic to turn off digest mode! :)


Sergey Zaharchenko wrote:


Hello Jarrod!

Tue, Mar 21, 2006 at 09:46:53AM +0900 you wrote:

 


Reply-To: [EMAIL PROTECTED]
   



You need to put the threading info in the `In-Reply-To' field, not in
`Reply-To' field:)

Or, if possible at all, disable digest mode.

 



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


Re: FYI: Threading Messages Correctly on Thunderbird

2006-03-20 Thread Jarrod

Hi Ken & David,

Ken, can you tell me if you are receiving FreeBSD mail messages
individually, or in the digest format?

I think the problems I was having with threading my replies
properly were related to the fact I receive my messages in
digest format. 


Cheers,
Jarrod.


--
Message: 29
Date: Sun, 19 Mar 2006 16:41:58 -0500
From: "David Stanford" <[EMAIL PROTECTED]>
Subject: Re: FYI: Threading Messages Correctly on Thunderbird
To: "Ken Stevenson" <[EMAIL PROTECTED]>
Cc: Jarrod <[EMAIL PROTECTED]>, freebsd-questions@freebsd.org
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

Yes it is.

-David

On 3/19/06, Ken Stevenson <[EMAIL PROTECTED]> wrote:


Is this reply threaded correctly? I sent it using Thunderbird doing
nothing more than clicking Reply All.


--



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


FYI: Threading Messages Correctly on Thunderbird

2006-03-18 Thread Jarrod


Dear All,

Just a quick one for the benefit of anyone who might be using Thunderbird
to send emails to the freebsd mailing lists.
Thanks to the postmaster for his/her help on this one.

It seems that in order to have your replies to a topic threaded 
correctly you

need to add a second field to your message header block labelled "Reply-To".
This can be selected from the drop down list that appears if you click "To"
on the left side of a header block entry. (Same as making CC, BCC
fields, etc.)

On the right side of the "Reply-To" entry, paste the "Message-ID" of the
message you wish to reply to. This is present for every message when 
receiving

in the "digest form".

(Not sure about receiving messages one-by-one. You might need to go
View -> Headers -> All in order to see the Message-ID?)

Be sure to include the leading and trailing angle brackets
(ie. the less-than and greater-than signs) !!

Cheers,
Jarrod.



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


RE: Help with lost MBR on USB HDD

2006-03-12 Thread Jarrod O'Flaherty

Hi fbsd_user,

Happy to help!

The tools I used were:
> dd (pre-installed in FreeBSD)
> chexedit (available under /usr/ports/editors/chexedit)

In terms of literature I read a great deal, all of which was helpful.

Perhaps the most helpful links though were:

o http://www.ata-atapi.com/hiwchs.htm

o http://support.microsoft.com/kb/q140418/

o http://www.ranish.com/part/primer.htm
o http://cnlart.web.cern.ch/cnlart/236/disk_partition.html

o http://www.faqs.org/docs/Linux-HOWTO/Large-Disk-HOWTO.html#s6

o http://mirror.href.com/thestarman/asm/mbr/DiskTerms.htm

o http://home.att.net/~rayknights/pc_boot/w95b_mbr.htm

o http://www.linuxjournal.com/article/8661

o http://www.digit-life.com/articles/bootman/index.html

o http://www.uneraser.com/mbr-damaged.htm

o http://www.storagereview.com/guide2000/ref/hdd/file/part.html

o http://linux.com.hk/penguin/man/8/gpart.html

You might also like to look into the tool "gpart", the last link in the
list above. I didn't need anything that sophisticated fortunately.

Good luck!!

Regards,
Jarrod.


> -Original Message-
> From: fbsd_user [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, March 11, 2006 2:41 AM
> To: Jarrod O'Flaherty
> Subject: RE: Help with lost MBR on USB HDD
> 
> 
> I am having problem with my mbr.
> Interested in knowing what tool you used to manipulate the 
> mbr. Also would like to receive your bookmarks on this 
> subject. Any other tips or things you learned would be helpful.
> 
> Thanks
> 
> 

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


Re: Help with lost MBR on USB HDD

2006-03-09 Thread Jarrod O'Flaherty
> 
> Message: 26
> Date: Sun, 05 Mar 2006 13:46:30 -0500
> From: Gerard Seibert <[EMAIL PROTECTED]>
> Subject: Re: Help with lost MBR on USB HDD
> To: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="UTF-8"
> 
> 
> I know you do not want to hear this, but why on earth did you 
> attempt to
> mess with the HD without a full backup in place first?
> 
> I am not sure if you can recover the lost data. If not, this 
> would be a
> good time to wipe the disk clean and partition it to your liking. I
> believe that you will have to install Windows before 
> installing FreeBSD.
> 
> Good Luck!
> -- 
> Gerard

I accidentally posted a reply to this which didn't appear in the thread.
Check it out on Mar 07 in freebsd-questions.
(How do I ensure my replies get "threaded" btw?)
Please see that one for a few details on what I did to find a solution
to the problem.

You'll all be happy to know ;) that everything turned out ok in the end!
I got my disks back and my MP3s.

It turned out that it was just a single partition entry in the MBR that
had been erased.
Once I calculated what it should have been and restored it things were
good to go.

The handy tools were:
- dd
- chexedit (available in /port/editors/chexedit )

Plus I read a ton of stuff on the internet, the bookmarks for which I
will be happy
to share with anyone who needs them. 

Cheers,
Jarrod.




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


Re: Help with lost MBR on USB HDD

2006-03-09 Thread Jarrod O'Flaherty

[Apologies. Posting again with thread header.]
 

For those who might be interested...


> Message: 26
> Date: Sun, 05 Mar 2006 13:46:30 -0500
> From: Gerard Seibert <[EMAIL PROTECTED]>
> Subject: Re: Help with lost MBR on USB HDD
> To: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="UTF-8"
> 
> Jarrod O'Flaherty wrote:
> 
> > And last but not least, I really hope someone can tell me how I can 
> > salvage my MBR & other 3 partitions. If that is not possible, then 
> > perhaps you can point me in the direction of a tool which will 
> > salvage the files on the lost slices? There's not heaps of data 
> > there, only around 20 GB or so across all three. But if I can, I'd 
> > really like to get it back. I'm hoping NTFS is robust enough to 
> > allow salvaging like this?
> > 
> > Any and all help GREATLY appreciated!!
> > 
> > Thankyou,
> > Jarrod.
> 
> I know you do not want to hear this, but why on earth did you
> attempt to mess with the HD without a full backup in place first?
> 
> I am not sure if you can recover the lost data. If not, this would be 
> a good time to wipe the disk clean and partition it to your liking. I 
> believe that you will have to install Windows before installing 
> FreeBSD.
> 
> Good Luck!
> --
> Gerard
> 


I've done a lot of reading the last couple of days into the MBR and the
like.
Have to say it's a tad tough going, but quite a bit of fun at the same
time. ;)

Gerard, yes, this would be a good opportunity to wipe it and start
again.
If only it wasn't for those MP3s. ;)

For those who couldn't read my last email because it was rather a bit 
too long, the short of it is that FDISK fried my USB HDD's MBR when 
I asked it to change a partition type's from NTFS to FreeBSD.

Why did this happen? 

Does anyone have a large (blank!) USB HDD that they could experiment
with? It would be great to see if this problem is replicable on FreeBSD.

If so, I would suggest that a PR needs to be raised against FDISK.

For anyone in the distant future who perhaps has trouble with their MBR
and/or partitions I've found a stack of great literature on the web I'd
be more 
than happy to post up.

Also, tools that you might be interested in in order to "investigate"
things are:

- dskprobe.exe (WinNT / XP "Support Tool" for hex viewing disk)
- dd  (Data [File] dumping tool in Linux / BSD)
- hd  (Pretty print tool -- used with dd it apparently gets similar
results to Dskprobe.exe)
- gpart  (Partition search and retrieval tool -- not yet tried myself)
- part.exe  (Ranish Partition Manager tool -- runs under DOS)

They would be the main ones thus far. Anyone know of anything else I
should be
checking out?

As it is, now that I am armed to the teeth, I hope to find out how much
damage my 
USB HDD suffered, and then hopefully patch up the MBR and/or Logical
Drives I lost.

Keep you all posted.

Cheers,
Jarrod.


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


Re: Help with lost MBR on USB HDD

2006-03-07 Thread Jarrod O'Flaherty

For anyone who might be interested...

> Jarrod O'Flaherty wrote:
> 
> > And last but not least, I really hope someone can tell me how I can
> > salvage my MBR & other 3 partitions. If that is not possible, then
> > perhaps you can point me in the direction of a tool which will
salvage
> > the files on the lost slices? There's not heaps of data there, only
> > around 20 GB or so across all three. But if I can, I'd really like
to
> > get it back. I'm hoping NTFS is robust enough to allow salvaging
like
> > this?
> > 
> > Any and all help GREATLY appreciated!!
> > 
> > Thankyou,
> > Jarrod.
> 
> I know you do not want to hear this, but why on earth did you 
> attempt to mess with the HD without a full backup in place first?
> 
> I am not sure if you can recover the lost data. If not, this would be
a
> good time to wipe the disk clean and partition it to your liking. I
> believe that you will have to install Windows before 
> installing FreeBSD.
> 
> Good Luck!
> -- 
> Gerard
> 

I've done a lot of reading the last couple of days into the MBR and the
like.
Have to say it's a tad tough going, but quite a bit of fun at the same
time. ;)

Gerard, yes, this would be a good opportunity to wipe it and start
again.
If only it wasn't for those MP3s. ;)

For those who couldn't read my last email because it was rather a bit 
too long, the short of it is that FDISK fried my USB HDD's MBR when 
I asked it to change a partition type's from NTFS to FreeBSD.

Why did this happen? 

Does anyone have a large (blank!) USB HDD that they could experiment
with? It would be great to see if this problem is replicable on FreeBSD.

If so, I would suggest that a PR needs to be raised against FDISK.

For anyone in the distant future who perhaps has trouble with their MBR
and/or partitions I've found a stack of great literature on the web I'd
be more 
than happy to post up.

Also, tools that you might be interested in in order to "investigate"
things are:

- dskprobe.exe (WinNT / XP "Support Tool" for hex viewing disk)
- dd  (Data [File] dumping tool in Linux / BSD)
- hd  (Pretty print tool -- used with dd it apparently gets similar
results to Dskprobe.exe)
- gpart  (Partition search and retrieval tool -- not yet tried myself)
- part.exe  (Ranish Partition Manager tool -- runs under DOS)

They would be the main ones thus far. Anyone know of anything else I
should be
checking out?

As it is, now that I am armed to the teeth, I hope to find out how much
damage my 
USB HDD suffered, and then hopefully patch up the MBR and/or Logical
Drives I lost.

Keep you all posted.

Cheers,
Jarrod.

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


Help with lost MBR on USB HDD

2006-03-05 Thread Jarrod O'Flaherty

Hi All,

I have a dual boot system going with WinXP and FreeBSD on my laptop.
Just before I installed FreeBSD I bought a USB HDD to plug in so I could
transfer some files off my laptop's internal HDD and make space for it. 

Alas, even with doing that I could only get a measly 7 GB free, which I
used up pretty quickly building the JRE for OpenOffice. When I got my
USB HDD I split it into 4 x 60GB slices (partitions), changing one of
them from the default NTFS to FAT32, so I could share it with FreeBSD.

While the sharing was ok, unfortunately FAT32 doesn't support symlinks
and this led to errors when I tried to use that slice for building stuff
in ports.

I decided I needed a native UFS2 slice instead of a FAT32 one and set to
work. 

Firstly, I have "Acronis PartitionExpert Personal" and according to
that, all the slices apparently existed (past tense!) in a single
logical partition. I used the program to change my *THIRD* slice
(between 120GB and 180GB) from existing in the logical partition to
being a physical partition in its own right. Was this a bad move, not
being at the end of the disk? Acronis never complained and it all seemed
to work ok.

I then proceeded to try to change its type from 7 (NTFS) to 165
(FreeBSD). Acronis said it needed to reboot to do this, you know that
odd, special WinXP (safe?) mode? When it did so though it said my drive
was not present. Was this because the USB drivers aren't loaded in that
odd WinXP pseudo-DOS "blocky character" mode? Or was this because I had
my USB drive on auto power-off and it took too long to windup? 

Anyway, whichever it may be, PartitionExpert said that it couldn't find
the drive so it couldn't change the type.

I then thought well surely if I can't do it under XP then I can do this
under FreeBSD. I looked at the MBR under fdisk and it had 2 entries, one
for the logical partition and one for the new physical partition I had
setup with PartExp.

I must admit I was more comfortable with the fdisk in sysinstall, since
I had used that when installing FreeBSD, so I changed to that one. The
display seemed a little odd because it had about 8 entries, my four 60
GB slices, plus four other very small slices between each 60GB slice. A
couple were "63" in size, but the one just above the partition I wanted
to change (da0s2) was "7" in size. I wrote down the lines around the
partition I wanted to change, but didn't write the whole table out as it
was rather long winded. Aerrr, bummer!

Anyway, I changed the Type from 7 to 165. And that's ALL I did. I then
Wrote the table out and exited. I went into the labelling tool (also in
sysinstall) and set the slice as one big FreeBSD partition. The
labelling tool automatically newfs'ed it for me, and things were good to
go. 

Next I exited sysinstall and mounted my partition under FreeBSD.
Everything was great.

Past tense.

When I next booted into WinXP a few minutes later, all my NTFS drives
were gone. A quick look under Acronis told me only my FreeBSD slice
remained. 

Ummm, so what had gone wrong? Any ideas? 

I went back into FreeBSD and had a look at the MBR under fdisk (the
command line version this time) and now there was no entry 1, just an
entry 2, pointing to the FreeBSD slice. So I had lost my 3 other slices,
from 0 - 60 GB (NTFS), 60 - 120 GB (NTFS), and 180 GB - end_of_disk
(FAT32).

Can anyone please tell me what happened when I ran sysinstall's fdisk?
Can anyone also perhaps tell me where the slice (partition) info is kept
for a logical partition? Since the MBR only had 1 entry for the other 3
partitions their info is obviously not stored there. Where and how is it
stored? 

And last but not least, I really hope someone can tell me how I can
salvage my MBR & other 3 partitions. If that is not possible, then
perhaps you can point me in the direction of a tool which will salvage
the files on the lost slices? There's not heaps of data there, only
around 20 GB or so across all three. But if I can, I'd really like to
get it back. I'm hoping NTFS is robust enough to allow salvaging like
this?

Any and all help GREATLY appreciated!!

Thankyou,
Jarrod.



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


Re: user account changes lost on reboot

2005-09-27 Thread Jarrod Harch
Hi Lowell, yes the home directory is intact.

I built and installed a new kernel, and after the reboot the accounts are
now staying intact. So it's a mystery. Perhaps it was some unfinished
sysinstall business, somehow overwriting the password database with the
defaults?

I'll reboot again tonight and check vipw, but hopefully the problem is now
behind me.

Thanks

On 27 Sep 2005 09:53:38 -0400, Lowell Gilbert <
[EMAIL PROTECTED]> wrote:
>
> Jarrod Harch <[EMAIL PROTECTED]> writes:
>
> Jarrod Harch <[EMAIL PROTECTED]> writes:
>
> > Hi, I just setup a new 5.4 install, which went fairly well. I added
> > some accounts - I used adduser to do one account, and logged on as the
> > user OK. The other account was created when I installed gdm as the
> > display manager.
> >
> > On rebooting the root password is missing, the user account I created
> > is also gone (but the home directory and files are still there). gdm
> > won't start, complaining that the gdm user doesn't exist.
> >
> > I recreated the user again but it vanished after the next boot.
> >
> > Does anyone know what might cause these account changes to be lost?
> > Sorry if this has been answered already, I couldn't find anything on
> > Google or mailing lists.
>
> This is pretty weird all right. Is the user's home directory still
> present? If you run vipw(8), do you see the user there?
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


user account changes lost on reboot

2005-09-25 Thread Jarrod Harch
Hi, I just setup a new 5.4 install, which went fairly well. I added some
accounts - I used
adduser to do one account, and logged on as the user OK. The other account
was
created when I installed gdm as the display manager.

On rebooting the root password is missing, the user account I created is
also gone (but
the home directory and files are still there). gdm won't start, complaining
that the gdm
user doesn't exist.

I recreated the user again but it vanished after the next boot.

Does anyone know what might cause these account changes to be lost? Sorry if
this has
been answered already, I couldn't find anything on Google or mailing lists.

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


Re: SMP and networking under FreeBSD 5.3

2005-06-14 Thread Jarrod Martin

Joe wrote:

Okay, I've figure it out.  


natd is not starting via rc.conf, or if it is, it dies.  I can
start it manually, and it works okay.

Also it seems that for some reason some of my ipfw rules don't
get set, so I have to rerun ipfw also to make things work.  


I'll just hack the rc scripts to get this machine up.

Joe

--- Dmitry Mityugov <[EMAIL PROTECTED]> wrote:

 

rc_debug="YES" in rc.conf, then run 'dmesg -a | grep natd' and see if 
anything pops up.  This should tell you everything that's goin on with 
natd at boot.

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


Re: rcNG script problems

2005-06-14 Thread Jarrod Martin

Alex Zbyslaw wrote:


Chad Leigh -- Shire.Net LLC wrote:



On Jun 14, 2005, at 1:39 PM, JM wrote:


Kirk Strauser wrote:



On Tuesday 14 June 2005 12:07, JM wrote:



i've written an rcNG script but i'm having some issues.



Step one: set rc_debug="YES" in /etc/rc.conf to see what's  
actually happening when you attempt to run your script.  That  
seems to uncover about 95% of the problems I've had.


turned on the option rc_debug="YES" and ran 'dmesg -a'... the  
script doesn't even show up in the list anywhere.  are we not  
supposed to be able to write custom rcNG scripts?  is there  
something i'm overlooking where i need to register httpd_start in  
the rc stuff?  here's my newbie impression of how rc works:

- rc i run by init
- rc runs rcorder on all script directories.
- rc reads rc.conf and runs all scripts found by rcorder
rcorder recognizes the script i wrote without any errors... yet  
when i boot the system, there is no "checkyesno" for httpd_start.   
there's nothing that references the script at all... WHY? >.<


why did FreeBSD have to adopt this standard anyhow?  it seems  
unnecessarily complicated to write custom scripts now.





Where does your script live?  You can use rcNG style scripts in /usr/ 
local/etc  but they must end in .sh and are done in lexographic 
order  without  the rcorder and stuff (unless you write your own 
ueber- script to do it)


I battled this for a long while before I figured out the /usr/local/ 
etc does not get full rcNG support



I did the same, wondering why scripts weren't even running etc, until 
I read what the manual page actually said rather than what I wanted it 
to say :-)


Does anyone know why this is?  Will /usr/local/etc et al. be getting 
proper rcNG support?  Otherwise port and locally installed software 
are effectively second class citizens and don't get to benefit 
especially from the dependency stuff.  Currently I'm stuffing local 
(not port) startups in /etc/rc.d, which I don't like doing (and 
mergemaster complains about them being obsolete -- I guess trying to 
spot stuff left over from 4.X).  It would be great to know what the 
plans are.


--Alex





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


yea that's the whole reason i was attempting to get this done right.  i 
hate doing work that will be deprecated or fondled or otherwise abused 
in later releases.

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


Re: rcNG script problems

2005-06-14 Thread Jarrod Martin

Chad Leigh -- Shire.Net LLC wrote:



On Jun 14, 2005, at 1:39 PM, JM wrote:


Kirk Strauser wrote:



On Tuesday 14 June 2005 12:07, JM wrote:



i've written an rcNG script but i'm having some issues.




Step one: set rc_debug="YES" in /etc/rc.conf to see what's  actually 
happening when you attempt to run your script.  That  seems to 
uncover about 95% of the problems I've had.



turned on the option rc_debug="YES" and ran 'dmesg -a'... the  script 
doesn't even show up in the list anywhere.  are we not  supposed to 
be able to write custom rcNG scripts?  is there  something i'm 
overlooking where i need to register httpd_start in  the rc stuff?  
here's my newbie impression of how rc works:

- rc i run by init
- rc runs rcorder on all script directories.
- rc reads rc.conf and runs all scripts found by rcorder
rcorder recognizes the script i wrote without any errors... yet  when 
i boot the system, there is no "checkyesno" for httpd_start.   
there's nothing that references the script at all... WHY? >.<


why did FreeBSD have to adopt this standard anyhow?  it seems  
unnecessarily complicated to write custom scripts now.




Where does your script live?  You can use rcNG style scripts in /usr/ 
local/etc  but they must end in .sh and are done in lexographic order  
without  the rcorder and stuff (unless you write your own ueber- 
script to do it)


I battled this for a long while before I figured out the /usr/local/ 
etc does not get full rcNG support


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


yea i've figured it out.  this really should be better documented 
though... i'll be sending all the info to the documentation mailing 
list.  here's the proper way to do it.  the filename is 'httpd_start.sh' 
with 555 mode.  rc scripts, both rcNG and the old *.sh styles must have 
the .sh extension to be recognized (source: bsdforums.org).  the script 
was placed in '/usr/local/etc/rc.d'.  and here is the code:

[code]
#!/bin/sh

#
# PROVIDE: httpd_start
# REQUIRE: LOGIN

. /etc/rc.subr

name="httpd_start"
rcvar=`set_rcvar`
command="/var/www/bin/apachectl"
args="start"

start_cmd="${command} ${args}"
stop_cmd="/var/www/bin/apachectl stop"

httpd_start_enable=${httpd_start_enable-"NO"}
httpd_start_flags=${httpd_start_flags-""}

load_rc_config $name
run_rc_command "$1"
[/code]

the line 'httpd_start_enable="YES"' was added to rc.conf and this fixed 
everything.

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


RE: referencing in files

2005-03-02 Thread Jarrod - Cybertek
Ok sorry.

Precisely. I have a file (actually a script, sorry) that has a lot of the
settings for a client in, eg IP addresses, interface they connect on etc.
and I use the motd to keep all this together, just to make things easier
when I log into my server. Now I want the motd to update (if at all
possible) to the settings in this file when I change it. Maybe a script IS
the only way to go.

Here is an example:

Say i have a file /root/setup.client.sh, and it has this line:
IFACE=ng10
Now I want to have the motd, when it is displayed after login, to go fetch
the current value of that IFACE, and display that value.

Is it a bit clearer?


Jarrod Meyer | Technical | C Y B E R T E K
Tel: 031-2075287  Fax: 031-2082210
E-mail: [EMAIL PROTECTED] 
Website: www.cybertek.co.za
 
 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:owner-freebsd-
> [EMAIL PROTECTED] On Behalf Of Kris Kennaway
> Sent: Wednesday, March 02, 2005 12:29 PM
> To: Jarrod - Cybertek
> Cc: [EMAIL PROTECTED]; 'Kris Kennaway'
> Subject: Re: referencing in files
> 
> On Wed, Mar 02, 2005 at 11:43:13AM +0200, Jarrod - Cybertek wrote:
> > First, thanks. What I just wanted to try out is to have my /etc/motd
> updated
> > automatically from a changing value in another text file. So that way I
> > wouldn't have to update both every time. No way for that? Thanks.
> 
> You keep going around in circles saying the same thing.  Be specific.
> What, *precisely* do you want your motd to do?
> 
> Kris

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


RE: referencing in files

2005-03-02 Thread Jarrod - Cybertek
First, thanks. What I just wanted to try out is to have my /etc/motd updated
automatically from a changing value in another text file. So that way I
wouldn't have to update both every time. No way for that? Thanks.


Jarrod Meyer | Technical | C Y B E R T E K
Tel: 031-2075287  Fax: 031-2082210
E-mail: [EMAIL PROTECTED] 
Website: www.cybertek.co.za
 
 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:owner-freebsd-
> [EMAIL PROTECTED] On Behalf Of Kris Kennaway
> Sent: Wednesday, March 02, 2005 9:58 AM
> To: Jarrod Meyer
> Cc: freebsd-questions@freebsd.org
> Subject: Re: referencing in files
> 
> On Wed, Mar 02, 2005 at 09:23:35AM +0200, Jarrod Meyer wrote:
> > What I meant was, kinda like if you have a changing value in one file,
> > right? And you want it to automatically update in another file without
> > having to always manually do it yourself and without writing a script,
> can
> > you just link/reference the changing value in the first file to a point
in
> > the second so that it becomes automated?
> 
> As I said, no, but if you tell us what you're specifically trying to
> achieve there might be another way.
> 
> Kris

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


RE: referencing in files

2005-03-01 Thread Jarrod Meyer
What I meant was, kinda like if you have a changing value in one file,
right? And you want it to automatically update in another file without
having to always manually do it yourself and without writing a script, can
you just link/reference the changing value in the first file to a point in
the second so that it becomes automated?

Does anyone know where I can just find some info on this? Thanks for the
help in advance

 

 

--

If more of us valued food and cheer and song above hoarded gold, it would be
a merrier world. 

 

J. R. R. Tolkien (1892 - 1973)

 

 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:owner-freebsd-
> [EMAIL PROTECTED] On Behalf Of Jarrod Meyer
> Sent: Tuesday, March 01, 2005 12:23 PM
> To: freebsd-questions@freebsd.org
> Subject: referencing in files
> 
> 
> 
> Just a quick question, is there a way to tell a normal text file (for
> instance: /etc/motd) to get a value from another file when it displays?
> And
> what would be the syntax if this is possible? Thank you to whomever
> replies.
> 
> --
> If more of us valued food and cheer and song above hoarded gold, it
> would be
> a merrier world.
> 
> J. R. R. Tolkien (1892 - 1973)
> 
> 
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-
> [EMAIL PROTECTED]"

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


referencing in files

2005-03-01 Thread Jarrod Meyer
 
 
Just a quick question, is there a way to tell a normal text file (for
instance: /etc/motd) to get a value from another file when it displays? And
what would be the syntax if this is possible? Thank you to whomever replies.
 
--
If more of us valued food and cheer and song above hoarded gold, it would be
a merrier world. 
 
J. R. R. Tolkien (1892 - 1973)
 
 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: usingh ssh

2005-02-28 Thread Jarrod - Cybertek
On the remote system, set in the /etc/rc.conf file the line
"sshd_enable="YES""

Does that work? 

----
Jarrod Meyer | Technical | C Y B E R T E K
Tel: 031-2075287  Fax: 031-2082210
E-mail: [EMAIL PROTECTED] 
Website: www.cybertek.co.za
 
 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:owner-freebsd-
> [EMAIL PROTECTED] On Behalf Of Bhaban Singh
> Sent: Tuesday, March 01, 2005 9:32 AM
> To: [EMAIL PROTECTED]
> Subject: usingh ssh
> 
> i try to connect freebsd system from another freebsd system by using
> ssh command. but the connect refuse in port 22. i try using port 21
> but it also fail.
> 
> please suggest me how to connect to another freebsd system
> 
> i have install freebsd 5.3 (kernel development, port collection) and i
> also compile my kernel.
> 
> thanks
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-
> [EMAIL PROTECTED]"

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


portupgrade -a question

2004-06-03 Thread Jarrod Wageman
Hello, I have a freebsd box I just set up and I am wondering about some things. I just 
ran `make buildworld` installworld
and all that after an extensive cvsup. I still have perl version 5.6 something. The 
new version according to perl.com is 5.8
I ran portupgrade -a and it didn't upgrade anything. Do I need to move to the CURRENT 
source tree to get these new packages
installed? It seems I have many dated packages on this freebsd box. Here is the steps 
I take to update...

cvsup -g -L 2  I am using the stable tree.

portsdb -Uu

portversion -l "<"
(nothing ever returns)

portupgrade -a
(this says something like: No need to upgrade fvwm-blahversion)

(according to a freebsd site I found off of google, this is the proper way to go about 
updating)

pkgdb -Fu

My kernel is updated, my source tree is updated. But perl is an old version, openssh 
is an old version.

Maybe I do not understand how the stable tree works, or ports in itself works, are the 
security and bug fixes patched 
and the version numbers maintained? That seems a bit odd to me. Anyhow I am a noob. 
Thanks for your time and
patience.

J.W.
-- 
Friends don't let friends support microsoft. www.gentoo.org


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


portupgrade problem

2004-06-02 Thread Jarrod Wageman
when running portversion -v -l "<" Nothing returns so I assume this means no errors, 
but, after cvsup -v -L 2 
updating the index and the database of ports, and then running portupgrade -a (which 
after reading the man page I assume

that it updates all out dated ports) nothing happens, ssh -V returns 3.6p1 which is an 
old version, and nothing else will
update. I have read through the ports guide in the handbook and after reading through 
that and following the steps 
I get to make buildworld and I cannot make buildworld. I want to test the freeBSD 
evironment and it's serving capabilities
and I have heard nothing but good things about it. Thanks for your time. 

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


Re: Why would drive run at UDMA33? (Segate 80GB)

2003-12-07 Thread Jarrod
As some others said, put both the hard drives on the same channel and see what that 
does, also to change the speeds it is 'atacontrol mode (number of channel ie 0 or 1) 
UDMA(#) UDMA(#)' if you have 2 things on the same channel.  But switch the cd-rw and 
the hard drive and put the 2 drives on the same channel and you might not have to mess 
with setting the speeds.  and another good command to check what speeds are on the 
same channel 'atacontrol mode (number of channel)' of course dont use parenthesis on 
any of that, and if you already know about what i said oh well, spreading my limited 
knowledge

Jarrod
[EMAIL PROTECTED]

On Mon, 8 Dec 2003 17:07:29 +1100
JacobRhoden <[EMAIL PROTECTED]> wrote:

> > JacobRhoden <[EMAIL PROTECTED]> wrote:
> > > I have just purchased a new 80GB drive, howerver i noticed it is running
> > > significantly slower than my current 80gb drive.
> 
> On Mon, 8 Dec 2003 04:38 pm, Jarrod wrote:
> > Try 'man atacontrol'
> 
> I typed 'man atacontrol' and it didnt seem to help! (grin). Seriously, i had a 
> look and worked out how to list/display the modes of drives,  and i am not 
> sure what commands i would type to help fix the speed? I can now show people 
> this though:
> 
> ATA channel 0:
> Master:  ad0  ATA/ATAPI rev 5
> Slave:  acd0  ATA/ATAPI rev 0
> ATA channel 1:
> Master:  ad2  ATA/ATAPI rev 6
> Slave:   no device present
> 
> 
> 
> (The cable is the right way around, and the drive is the only drive on the 
> cable, thanks for suggestions though).
> 
> 
> Jacob RhodenPhone: +61 3 8344 4478
> ITS DivisionEmail: [EMAIL PROTECTED]
> Melbourne University   Mobile: +61 403 788 386
> ___
> [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: Why would drive run at UDMA33? (Segate 80GB)

2003-12-07 Thread Jarrod
Try 'man atacontrol'

Jarrod
[EMAIL PROTECTED]


On Mon, 8 Dec 2003 16:21:52 +1100
JacobRhoden <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I have just purchased a new 80GB drive, howerver i noticed it is running 
> significantly slower than my current 80gb drive. 
> 
> Dmesg says this:
>   ad0: 76319MB  [155061/16/63] at ata0-master UDMA100
>   ad2: 76319MB  [155061/16/63] at ata1-master UDMA33
> 
> Why is one running at udma100 and my new one running at udma33? iosys reports 
> it as 4 times slower! Is there any special tuning or kernel option i need to 
> set?
> 
> The segate website reports the following details aobut it:
>   Model Number:ST380011A
>   Capacity:80 GB
>   Speed:7200 rpm
>   Seek time:8.5 ms avg
>   Interface:Ultra ATA/100
> 
> 
> Jacob RhodenPhone: +61 3 8344 4478
> ITS DivisionEmail: [EMAIL PROTECTED]
> Melbourne University   Mobile: +61 403 788 386
> ___
> [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]"