Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Matej Cepl
Dne 14.12.2010 00:20, Warren Young napsal(a):
> Nothing is truly intuitive 
> in computing.  ("The only intuitive interface is the nipple.")

As a father of two kids, I can testify that even the nipple is hardly
intuitive. Every kid (and mom) needs to learn how to use it. Just to
clear one myth.

Best,

Matěj

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Gabriel Tabares
> Hi folks
>
> I have more than 12 years experience with UNIX system administration,
> but I am too stupid for programming. My only programming experience is
> shell scripting. I tried to learn Java, but don't understand it
> because it is too complicated for my limited brainpower.
>
> What programming language should I learn?
>

First of all, what's the reason you want to learn to program? For the 
enjoyment of it? To be able to write more complex admin tools? To create 
front-end applications?

If you already know shell scripting, Perl should be easy for you, as the 
syntax is similar (a hybrid of Shell, awk and C, if I remember 
correctly) and is very easy to learn. It also is installed on every Unix 
I've used in the last decade and has an extremely large repository of 
libraries, CPAN, which covers everything you may need and more (writing 
Perl in latin, really?). On the other hand, the OO syntax is awkward, to 
say the least, and reading other people's code can be difficult 
sometimes, as "there is more than one way to it".

Python is quite simple. The syntax is quite alien, compared to most 
"C-based" languages, but it seems to be simple and straightforward for 
most people. It also is included with most modern Unix-like OS.

Both, Python and Perl are widely used in CentOS, so you should be able 
to open a tool and see how it works.

PHP can also be useful and it's easy to learn, but it is mostly oriented 
towards web development so, unless that is the way you want to go, I 
would ignore it. It also tends to be a bit of a mess, API wise.

Ruby is another language that seems to be gaining a lot of traction but 
I just can't stand the syntax, and that comes from someone who used to 
be a Perl developer. It also seems to be less in use as a systems 
language, as opposed to a web development language with Ruby on Rails.

C can be a good language if you want to start "from the bottom", learn 
how to use pointers, to manage memory without help and to be able to 
write low-level stuff. The syntax is extremely simple, but it's a 
difficult language to master, as it is quite low-level, compared to 
other languages.

If you didn't get Java, I would stay well away from C# (it's mostly a 
Java clone, despite the fact that it now seems to have a nicer syntax a 
a few extra bits that Java misses) and C++ (far too complex... it does 
everything you may want to do but that power comes at the cost of 
simplicity).

My personal preference would be to go for Python. While the issue with 
meaningful whitespace can be REALLY annoying, especially if you copy and 
paste from a terminal (tabs will get converted to spaces and Python 
doesn't like mixed tabs/spaces, indentation is meaningful), the language 
itself is quite clean and straightforward, there are plenty of books and 
tutorials online and, if you're desperate, most sysadmins seem to be 
picking it up as part of their arsenal these days.

Even if you don't end up using Python as your main language, I see it as 
a very good way of learning to program.

Whatever you choose, good luck and let us know what you decide.

Gabriel

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Issues with stat() call on CentOS5 vs CentOS4

2010-12-14 Thread James Pearson
Dougal Ballantyne wrote:
> James,
> 
> Thank you. This is very helpful. It does seem like a very strange
> change in behavior between CentOS/RHEL4,5 & 6.
> 
> I am rebuilding a kernel with only i_blksize restored for NFS. Don't
> like having to change the kernel but might be needed to keep
> consistency accross releases.

Maybe you should open a Bugzilla report with Red Hat?

James Pearson
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Installing Centos 5.5 64 bit issues

2010-12-14 Thread John Hodrien
On Mon, 13 Dec 2010, m.r...@5-cent.us wrote:

> Neither. I'll ignore the fact that I, and the folks I work with, *always*
> use linux text (though pxeboot is starting up), and point out that once
> you've run the installation, you usually have more stuff to do: update
> everything from install source to current, dhcp, mail, etc.

Problem with linux text is that it's not as capable as the graphical installer
anymore, as Nico commented.  It's definitely taken on the role of a fall back
option rather than a genuine alternative to the normal X based installer.

jh
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Issues with CentOS in enterprise

2010-12-14 Thread David Sommerseth
On 14/12/10 02:15, Nico Kadel-Garcia wrote:
> On Mon, Dec 13, 2010 at 1:37 PM, Gé Weijers  wrote:
>>
>>
>> On Mon, 13 Dec 2010, Nico Kadel-Garcia wrote:
>>
>>> RHEL is much better about that, although by now  the "production" RHEL
>>> 5 is 4 years out of date, the "leading edge" RHEL 6 is now one year
>>> out of date after the lengthy release testing, and CentOS will always
>>> lag that.
>>
>> I believe "out of date" is the wrong wording. RHEL/CentOS 5 is maintained,
>> i.e. security issues and bugs are fixed. There's nothing "out of date"
>> about a tool that works and is cost-effective. RHEL 6 still has to prove
>> itself.
> 
> From harsh experience, I'm afraid it's the right wording. You can only
> go so far with "backporting", and critical feature additions (such as
> the availability of GSSAPI in OpenSSH, warnings of local password
> storage in Subversion, git emacs macros incompatible with the out of
> date Emacs, and PHP dependencies unfulfilled for contemporary tools
> make it quite stale.
> 
>> In my day job I support dozens of developer desktops that run CentOS 5 with
>> a modified kernel supporting non-standard devices. It takes a few hours a
>> week. Trying to track the bleeding edge supporting, say, Ubuntu would take
>> much more time.
> 
> Well, yes. But the edge on RHEL 5 is 4 years old,a nd RHEL 6 (end
> eventually CentOS 6) will have been blunted for a year by the time
> it's published. It's a problem if you try to backport contemporary
> tools (which I do).

RHEL/CentOS isn't supposed to be cutting-edge.  That has never been the
intention.  It's supposed to be stable for 7-10 years.  And I believe
CentOS strives for the same, as they basically just re-wrap and re-brand
RHEL packages.

That means that some of the software will stay behind, especially if
there are no nasty bugs and security issues with them.  Other critical
software pieces will be updated, especially when it is related to bugs
which endangers the stability or security of the system.  But for an
update of the software to happen, developers and tester strive to make
sure it won't break compatibility or cause instabilities.

The kernel itself is a brilliant example.  It's based on 2.6.18, but it
contains a lot of features and hardware support which even came as late
as in the 2.6.3x series.  Just look at the KVM support which came in
RHEL/CentOS 5.4. KVM was first introduced officially in the 2.6.20
kernel, IIRC.  In addition, security issues which has been located in
all kernel versions which also affects the 2.6.18 based kernel is
backported.

See this link for a more info:


What makes some of these backports tricky is that they work hard to
maintain ABI (Application Binary Interface).  That means that if you
have an application using a specific library on RHEL/CentOS, that
application should not need to be rebuilt at all if an updated library
is installed.  This gets even more difficult when looking at kABI
(Kernel ABI), where the kernel can not change things in a way which
breaks user space tools or libraries.

And this stability has its cost ... that you will not find bleeding edge
versions on most of the software.  There are some exceptions, but that
is very seldom (Upgrading from Firefox 1.5 in RHEL5 to a 3.x based one,
comes to mind).

When it comes to git support in Emacs, that is most probably due to that
you try to install a newer git module in Emacs than what is supported.
And IIRC, you even need to pull in git via EPEL, as git is not even a
part of the standard RHEL5 package set.  So in this case, git support
isn't even expected in a standard RHEL/CentOS installation.  Like it or
not, but that's how the RHEL/CentOS world is defined.

And also take into consideration that RHEL6 is shipped with approx.
2.000 packages.  And there are over 10.000 packages available for
Fedora.  Such a limited package scope is needed to be able to provide
stability.  And this stability is why so many loves to run
RHEL/CentOS/ScientificLinux instead of many other Linux distros on their
servers.

For the desktop side, I personally do see this restricted package list
and long lasting package support (7-10 years) as a much more difficult
barrier.  But for the server side, I'm happy it is as it is.  It gives
me less to worry about.

So if you want a bleeding edge environment, go for Fedora.  What goes in
here might go into RHEL and then CentOS with time.  What's not going
into a new RHEL release might show up in EPEL, especially if you take
care of that to happen.  You can have that power if you want to.


kind regards,

David Sommerseth

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread John Hodrien
On Mon, 13 Dec 2010, cornel panceac wrote:

> my first language was pascal. if i'd had the opportunity, i'd start with c.
> herbert schildt's teach yourself c was great for me.

Ahh Schildt.  Yes, I learnt from that book too.  A tad dry, and it tends to
teach you syntax more than real program design, but it's an excellent starting
point, and if you work through it properly doing all the examples you do get a
good base level of understanding.  I'd definitely recommend it.

jh
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread John Doe
From: Sven Aluoor 

> I have more than 12 years experience with UNIX system  administration,
> but I am too stupid for programming. My only programming  experience is
> shell scripting. I tried to learn Java, but don't understand  it
> because it is too complicated for my limited brainpower.
> What  programming language should I learn?
> A friend said that C-Sharp (Mono) is  very simple. Is this true?

Depends on what you want to develop (web/system/...).
But if you want "simple": php, python, ruby, perl... logo... ;D
Free books:
http://www.mindview.net/Books/
http://greenteapress.com/

JD


  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread David Sommerseth
On 13/12/10 17:32, Lamar Owen wrote:
> On Monday, December 13, 2010 11:14:24 am Sven Aluoor wrote:
>> What programming language should I learn?
> 
> Python.  You can find useful examples of python code throughout CentOS, 
> beginning the yum itself.  Get yourself a copy of 'Dive into Python' (can be 
> had as a free download, legalling) and, well, dive into python!

I completely agree!  Python is really worth looking at.  And a lot of
the tools on RHEL/CentOS are written in Python.



I see quite some people suggest Perl.  I've been in that camp as well,
but I personally find Python much more intuitive than Perl, and also a
lot more consistent.  Perl is truly like paint, you can splash the
colours around just like you want.  The learning curve for Perl is quite
higher than Python in my experience.

"Dive into Python" helped me to really get started, and it went fast
with this book.

Python enforces you to be more consistent, which is not a bad thing if
you want to understand better what you are doing in the very beginning.
 Later on Perl, Ruby, C#, Java, C/C++ might be a good alternatives, as
they probably are much stronger in a lot of fields for more complex tasks.

But remember each tool has its own use case.  You don't need a hammer
when you have screws.  It's the same with programming languages.  And
Python and Perl are often used as the "Swiss Army Knife".  Useful for a
lot of ad-hoc and not too heavy routine tasks, but you won't rely on it
when going hunting in the wilderness.


kind regards,

David Sommerseth

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS cluster solution

2010-12-14 Thread Timo Schoeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

thus David S. spake:
> Dear All,
> I got a new project to build cloud computing base on centos clustering
> (clustering and cluster storage). whether failover, load balancing can
> be applied?
> 
> I've read about CentOS clustering and cluster storage but I'm still
> confused, any help or advice in this thread will be appreciate.

Hi David,

what exactly are you trying to achieve? Is it just 'plain loadbalancing'
of services (such as HTTP requests, IMAP or similar) or massively
parallel cloud computing stuff?

> Cheers...

Timo
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFNB0XHfg746kcGBOwRAqBAAKC11JooEJZeA9lDgYld3TaGc9vpcgCgtwfP
NEdrHcr1VxyGdVago11E9dM=
=MDB3
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Natxo Asenjo
On Mon, Dec 13, 2010 at 11:02 PM, Adam Tauno Williams
 wrote:
> On Mon, 2010-12-13 at 14:49 -0700, Warren Young wrote:
>> On 12/13/2010 9:37 AM, Les Mikesell wrote:
>> > On 12/13/2010 10:14 AM, Sven Aluoor wrote:



>> > Perl is probably the easiest next step for someone who has shell
>> > scripting experience.
>> Seconded.
>
> -1 Perl is a withering dinosaur.

Comments like this one show you know nothing about modern Perl.

>> Don't be distracted by the Perl 6 noise.  Perl 6 has been "coming" for a
>> decade now,
>
> +1
>
> I expect by the time P6 arrives very few people will care;  Perl has
> been fading for a long time.

http://blog.timbunce.org/2008/03/08/perl-myths/

now, are we done spreading FUD about Perl yet? If you do not like it,
do not use it. A lot more people like it than you think possible,
shocking ain't it.

-- 
natxo
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread David Sommerseth
On 14/12/10 00:20, Warren Young wrote:
> On 12/13/2010 3:02 PM, Adam Tauno Williams wrote:
>> On Mon, 2010-12-13 at 14:49 -0700, Warren Young wrote:
>>> C# exists more for political and business
>>> reasons than technical ones; it fills the same space Java could fill, in
>>> a platform-agnostic world.
>>
>> False.  C# has significant technical advantages over Java - good
>> Generics and LINQ just being two.
> 
> I meant to say it was *created* more for political and business reasons 
> than technical ones.  Yes, the two have diverged since that time.
> 
>> Another advantage over Java is the namespaces were not created by a
>> addled drug addict.
> 
> I don't think naming arguments hold much water.  Memorization is a key 
> part of learning any programming language.  Nothing is truly intuitive 
> in computing.  ("The only intuitive interface is the nipple.")  You may 
> like your set of names more than another, but they all have to be 
> memorized if you want to use them.
> 
> To the OP's complaint, I think both languages have a similar problem, 
> that being the depth and scope of each platform's namespaces.  They're 
> both elephantine.  With Perl, at least, you can start by ignoring CPAN 
> and everything they added in Perl 5.  The Perl 4 core is a powerful but 
> readily grasped step up from shell scripting.
> 
> Besides, you shouldn't be throwing stones.  There's another "mono" that 
> is currently more common, according to Google.
> 
>>> Another poster mentioned a documentation advantage, but I imagine a lot
>>> of that advantage is eroded by being Windows and Microsoft centric.
>>
>> ...The portability is extremely good
> 
> "Extremely?"  http://www.mono-project.com/Compatibility
> 
> Mono is an impressive project, but you can't tell me someone wouldn't 
> get into trouble by developing using Microsoft's documentation only.
> 
> Besides, CentOS doesn't come with a CLR, so I suspect it's not portable 
> enough for the OP.

Mono is a Intellectual Property and licence minefield.



And considering what's happening with Novell these days as well, I would
be concerned relying on Mono until things gets clearer.  The Microsoft
agreement and Novell had is about to expire soon as well, iirc.


kind regards,

David Sommerseth

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS cluster solution

2010-12-14 Thread David S.
Hi Timo,
I mean parallel cloud computing, do you have solution for this case?

-
--
Best regards,
David
http://blog.pnyet.web.id


On 12/14/2010 05:24 PM, Timo Schoeler wrote:
> thus David S. spake:
> > Dear All,
> > I got a new project to build cloud computing base on centos clustering
> > (clustering and cluster storage). whether failover, load balancing can
> > be applied?
>
> > I've read about CentOS clustering and cluster storage but I'm still
> > confused, any help or advice in this thread will be appreciate.
>
> Hi David,
>
> what exactly are you trying to achieve? Is it just 'plain loadbalancing'
> of services (such as HTTP requests, IMAP or similar) or massively
> parallel cloud computing stuff?
>
> > Cheers...
>
> Timo
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Natxo Asenjo
On Tue, Dec 14, 2010 at 11:18 AM, David Sommerseth
 wrote:
> On 13/12/10 17:32, Lamar Owen wrote:
>> On Monday, December 13, 2010 11:14:24 am Sven Aluoor wrote:
>>> What programming language should I learn?
>>
>> Python.  You can find useful examples of python code throughout CentOS, 
>> beginning the yum itself.  Get yourself a copy of 'Dive into Python' (can be 
>> had as a free download, legalling) and, well, dive into python!
>
> I completely agree!  Python is really worth looking at.  And a lot of
> the tools on RHEL/CentOS are written in Python.
>
> 
>
> I see quite some people suggest Perl.  I've been in that camp as well,
> but I personally find Python much more intuitive than Perl, and also a
> lot more consistent.  Perl is truly like paint, you can splash the
> colours around just like you want.  The learning curve for Perl is quite
> higher than Python in my experience.

Did you learn Perl first? Then learning something else on top of that
is easier. Programming languages share lots of concepts.

>
> "Dive into Python" helped me to really get started, and it went fast
> with this book.

Modern Perl: http://www.onyxneon.com/books/modern_perl/ is also free
to download as a pdf file. Great book to get started.

> Python enforces you to be more consistent, which is not a bad thing if
> you want to understand better what you are doing in the very beginning.
>  Later on Perl, Ruby, C#, Java, C/C++ might be a good alternatives, as
> they probably are much stronger in a lot of fields for more complex tasks.

use strict;
use warnings;

if you write Perl and do not use that, you will have problems, yes.

> But remember each tool has its own use case.  You don't need a hammer
> when you have screws.  It's the same with programming languages.  And
> Python and Perl are often used as the "Swiss Army Knife".  Useful for a
> lot of ad-hoc and not too heavy routine tasks, but you won't rely on it
> when going hunting in the wilderness.

well, Perl helps me daily on the wilderness of my job. I do not
understand the analogy, but it probably is my fault ;-)

>
> kind regards,
>
> David Sommerseth

-- 
regards,
natxo
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread David Sommerseth
On 14/12/10 05:46, Nico Kadel-Garcia wrote:
> On Mon, Dec 13, 2010 at 11:14 AM, Sven Aluoor  wrote:
>> Hi folks
>>
>> I have more than 12 years experience with UNIX system administration,
>> but I am too stupid for programming. My only programming experience is
>> shell scripting. I tried to learn Java, but don't understand it
>> because it is too complicated for my limited brainpower.
>>
>> What programming language should I learn?
>>
>> A friend said that C-Sharp (Mono) is very simple. Is this true?
> 
> Learn Perl. 

That's not so hard

> Learn it well

This is a lot harder

>: it's far more flexible and more scalable
> than shell, but doesn't ignore your hardwon lessons completely.

Most scripting languages are more scalable than shell, despite shell
being quite comprehensive.  But most other scripting languages (than
shell) can do the same advanced tasks quite simpler.

> A competent Perl programmer who has learned to *check their error
> conditions* is worth their weight oyster-crafted gemstones.

Quite so true.


kind regards,

David Sommerseth

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS cluster solution

2010-12-14 Thread Timo Schoeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

thus David S. spake:
> Hi Timo,
> I mean parallel cloud computing, do you have solution for this case?

First thing that comes to my mind is

http://hadoop.apache.org/

which we use ourself for cloud computing. There's a nice tutorial here:

http://www.ibm.com/developerworks/aix/library/au-cloud_apache/

(don't let 'AIX' shock you, it's about Linux).

HTH,

Timo

> -
> --
> Best regards,
> David
> http://blog.pnyet.web.id
> 
> 
> On 12/14/2010 05:24 PM, Timo Schoeler wrote:
>> thus David S. spake:
>>> Dear All,
>>> I got a new project to build cloud computing base on centos clustering
>>> (clustering and cluster storage). whether failover, load balancing can
>>> be applied?
>>> I've read about CentOS clustering and cluster storage but I'm still
>>> confused, any help or advice in this thread will be appreciate.
>> Hi David,
>>
>> what exactly are you trying to achieve? Is it just 'plain loadbalancing'
>> of services (such as HTTP requests, IMAP or similar) or massively
>> parallel cloud computing stuff?
>>
>>> Cheers...
>> Timo

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFNB0rOfg746kcGBOwRAlkGAKC8FVHHkda+HyBXob3ea/tJSfPSfwCePs6I
Ice41YqzstcU9MKNIfnaIS0=
=2CwS
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS cluster solution

2010-12-14 Thread David S.
Very nice article, thank you...

Cheers...

-
--
Best regards,
David
http://blog.pnyet.web.id


On 12/14/2010 05:45 PM, Timo Schoeler wrote:
> thus David S. spake:
> > Hi Timo,
> > I mean parallel cloud computing, do you have solution for this case?
>
> First thing that comes to my mind is
>
> http://hadoop.apache.org/
>
> which we use ourself for cloud computing. There's a nice tutorial here:
>
> http://www.ibm.com/developerworks/aix/library/au-cloud_apache/
>
> (don't let 'AIX' shock you, it's about Linux).
>
> HTH,
>
> Timo
>
> > -
> > --
> > Best regards,
> > David
> > http://blog.pnyet.web.id
>
>
> > On 12/14/2010 05:24 PM, Timo Schoeler wrote:
> >> thus David S. spake:
> >>> Dear All,
> >>> I got a new project to build cloud computing base on centos clustering
> >>> (clustering and cluster storage). whether failover, load balancing can
> >>> be applied?
> >>> I've read about CentOS clustering and cluster storage but I'm still
> >>> confused, any help or advice in this thread will be appreciate.
> >> Hi David,
> >>
> >> what exactly are you trying to achieve? Is it just 'plain
> loadbalancing'
> >> of services (such as HTTP requests, IMAP or similar) or massively
> >> parallel cloud computing stuff?
> >>
> >>> Cheers...
> >> Timo
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Issues with CentOS in enterprise

2010-12-14 Thread Mathieu Baudier
> And also take into consideration that RHEL6 is shipped with approx.
> 2.000 packages.  And there are over 10.000 packages available for
> Fedora.  Such a limited package scope is needed to be able to provide
> stability.  And this stability is why so many loves to run
> RHEL/CentOS/ScientificLinux instead of many other Linux distros on their
> servers.

The fact that the number of packages is pretty limited in core
RHEL/CentOS also makes that with additional repos such as EPEL (or
RPMForge) you can have a lot of recent software. EPEL additionally
guarantees that the base OS won't be updated.

Then you can always decide to backport some software for a given
field, using the rest as a stable basis.
As Karanbir Singh pointed out in a recent interview in DistroWatch, it
can be much easier to innovate and be cutting edge in a given field if
the rest stays stable, instead of doing so when the whole distribution
is a moving target as in Fedora.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] {SOLVED}Re: Yum Updates dependencies missing (rpmforge)

2010-12-14 Thread Lanny Marcus
On Sun, Dec 5, 2010 at 8:43 AM, Lanny Marcus  wrote:
> There are updates available, for the below multimedia packages (CentOS
> 5.5, 32 bit), but I'm getting missing dependency errors from yum
> update for these.

>From the time the problem began, it had to do with

Error: Missing Dependency: libx264.so.68 is needed by package
cinelerra-2.1-0.15.20070108.el5.rf.i386 (installed)

However, cinelerra was *never* one of the packages set to be updated.
It always hung, on the Missing Dependency: libx264.so.68  for
cinelerra

I am not using cinelerra at this time, so I removed it this morning:

  cinelerra.i386 0:2.1-0.15.20070108.el5.rf

After that, I was able to yum update the box, with no issues.

There is probably a much more proper way to have gotten around this
issue, but this box is fully updated again. Thanks to everyone who
replied in this thread!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Sven Aluoor
Thanks for all the answers. I try to learn Perl (as suggested by many of you)

cheers Sven
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Binding rsyslogd to specific ip address

2010-12-14 Thread carlopmart
Hi all,

  Somebody knows how can I bind rsyslogd to a specific ip adress?? I have two 
different interfaces on a centos5.5 host and I need to bind rsyslog to only one.

Thanks.

-- 
CL Martinez
carlopmart {at} gmail {d0t} com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] MegaRAID SAS 9280-24i4e -- Centos support.

2010-12-14 Thread Lisandro Grullon
Dear centos community,
I was in the process of installing centos in a machine however during the 
install the OS is unable to see the controller "MegaRAID SAS 9280-24i4e", i 
noticed that LSI has some drivers for centos. Can someone guide me on how to 
load the drivers so the OS can see the controller as it loads. Thank you in 
advance. Lisandro

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] what is device dm-2?

2010-12-14 Thread Kai Schaetzl
According to some searches and the LVM documentation on centos.org a 
"dmsetup ls" should give me more info. But it doesn't list devices with 
dm- numbers. Only like so:

lv-name   (major, minor)

The minor numbers seem to be the same numbers that I can see as dm- 
numbers in an iostat. Is this by chance the dm- number, so that minor 2 
would be dm-2?



Kai

-- 
Get your web at Conactive Internet Services: http://www.conactive.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Binding rsyslogd to specific ip address

2010-12-14 Thread Bob Beers
On Tue, Dec 14, 2010 at 8:22 AM, carlopmart  wrote:
> Hi all,
>
>  Somebody knows how can I bind rsyslogd to a specific ip adress?? I have two
> different interfaces on a centos5.5 host and I need to bind rsyslog to only 
> one.
>

Hi CL,

I looked here: 

and read this:

-=-=-=-=-=-=-=-=-
# -- Loading modules

$ModLoad immark
$ModLoad imudp
$ModLoad imtcp
$ModLoad imuxsock
$ModLoad imklog

# I also wanted to be able to receive syslog traffic

$UDPServerAddress 0.0.0.0
$UDPServerRun 514
-=-=-=-=-=-=-=-=-


Over here :
I read this:

-=-=-=-=-=-=-=-=-
The following example configures an UDP syslog server at the local
address 192.0.2.1 on port 514:

$ModLoad imudp
$UDPServerAddress 192.0.2.1 # this MUST be before the $UDPServerRun directive!
$UDPServerRun 514

"$UDPServerAddress *" means listen on all local interfaces. This is
the default if no directive is specified.

Please note that now multiple listeners are supported. For example,
you can do the following:

$ModLoad imudp
$UDPServerAddress 192.0.2.1 # this MUST be before the $UDPServerRun directive!
$UDPServerRun 514
$UDPServerAddress * # all local interfaces
$UDPServerRun 1514

These config file settings run two listeners: one at 192.0.2.1:514 and
one on port 1514, which listens on all local interfaces.
-=-=-=-=-=-=-=-=-

HTH,
-Bob
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to install CentOS onto a USB flash drive from Windows?

2010-12-14 Thread John Doe
From: Rudi Ahlers 

> Can anyone please point me to a link with instructions on how  to
> install CentOS 5 onto a USB flash drive, preferably from Windows?
> I  would like to create a full running CentOS installation (with
> minimal  packages obviously) that runs off a USB flash drive, and I
> don't have a Linux  machine to use for this installation right now.

Why not just boot from the CentOS DVD and do a normal install on the USB drive?
But watch out not to "burn out" you USB drive (limited number of writes).

JD


  
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Antwort: MegaRAID SAS 9280-24i4e -- Centos support.

2010-12-14 Thread Andreas Reschke
Hi Lisandro,

just look at 
http://www.lsi.de.com/channel/products/raid_controllers/sata_sas/9280-24i4e/index.html
 
and read the readme.txt. 

1. download the megaraid_sas-v00.00.04.31-CentOs5.5-all.img
2. insert a floppy
3. dd if= megaraid_sas-v00.00.04.31-CentOs5.5-all.img of=/dev/floppy
and type at the boot-prompt "linux dd" 

That's all

Andreas




"Lisandro Grullon"  
Gesendet von: centos-boun...@centos.org
14.12.2010 14:26
Bitte antworten an
CentOS mailing list 


An

Kopie

Thema
[CentOS] MegaRAID SAS 9280-24i4e -- Centos support.





Dear centos community,
I was in the process of installing centos in a machine however during the 
install the OS is unable to see the controller "MegaRAID SAS 9280-24i4e", 
i noticed that LSI has some drivers for centos. Can someone guide me on 
how to load the drivers so the OS can see the controller as it loads. 
Thank you in advance. Lisandro

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Antwort: MegaRAID SAS 9280-24i4e -- Centos support.

2010-12-14 Thread Timo Schoeler
thus Andreas Reschke spake:
> Hi Lisandro,
> 
> just look at 
> http://www.lsi.de.com/channel/products/raid_controllers/sata_sas/9280-24i4e/index.html
>  
> and read the readme.txt. 
> 
> 1. download the megaraid_sas-v00.00.04.31-CentOs5.5-all.img
> 2. insert a floppy
> 3. dd if= megaraid_sas-v00.00.04.31-CentOs5.5-all.img of=/dev/floppy
> and type at the boot-prompt "linux dd" 

(It should work using an USB stick, too...

Timo)

> That's all
> 
> Andreas
> 
> 
> 
> 
> "Lisandro Grullon"  
> Gesendet von: centos-boun...@centos.org
> 14.12.2010 14:26
> Bitte antworten an
> CentOS mailing list 
> 
> 
> An
> 
> Kopie
> 
> Thema
> [CentOS] MegaRAID SAS 9280-24i4e -- Centos support.
> 
> 
> 
> 
> 
> Dear centos community,
> I was in the process of installing centos in a machine however during the 
> install the OS is unable to see the controller "MegaRAID SAS 9280-24i4e", 
> i noticed that LSI has some drivers for centos. Can someone guide me on 
> how to load the drivers so the OS can see the controller as it loads. 
> Thank you in advance. Lisandro

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] BIND and latest update (max open files WARNING)

2010-12-14 Thread Jorge Fábregas
Hi all,

After the latest security update for bind (which came out last night), now
there's a new message on syslog, (facility: daemon, severity: warning) every
time you restart named:

max open files (1024) is smaller than max sockets (4096)

After googling for a while the solution seems to be to add this to
/etc/security/limits.conf:

namedsoftnofile4096

...and mofity /etc/named.conf in order to add, under the options section:

files 4096;

That seems to work.  Of course, you may raise the 4096 but I guess that's
the default in BIND and I was good with that.

I'm not sure why this happend. Maybe before the update bind had a value of
1024 for max.sockets and now it was raised to 4096.

 --
Jorge
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Binding rsyslogd to specific ip address

2010-12-14 Thread carlopmart
On 12/14/2010 02:41 PM, Bob Beers wrote:
> On Tue, Dec 14, 2010 at 8:22 AM, carlopmart  wrote:
>> Hi all,
>>
>>   Somebody knows how can I bind rsyslogd to a specific ip adress?? I have two
>> different interfaces on a centos5.5 host and I need to bind rsyslog to only 
>> one.
>>
>
> Hi CL,
>
> I looked 
> here:
> and read this:
>
> -=-=-=-=-=-=-=-=-
> # -- Loading modules
>
> $ModLoad immark
> $ModLoad imudp
> $ModLoad imtcp
> $ModLoad imuxsock
> $ModLoad imklog
>
> # I also wanted to be able to receive syslog traffic
>
> $UDPServerAddress 0.0.0.0
> $UDPServerRun 514
> -=-=-=-=-=-=-=-=-
>
>
> Over here:
> I read this:
>
> -=-=-=-=-=-=-=-=-
> The following example configures an UDP syslog server at the local
> address 192.0.2.1 on port 514:
>
> $ModLoad imudp
> $UDPServerAddress 192.0.2.1 # this MUST be before the $UDPServerRun directive!
> $UDPServerRun 514
>
> "$UDPServerAddress *" means listen on all local interfaces. This is
> the default if no directive is specified.
>
> Please note that now multiple listeners are supported. For example,
> you can do the following:
>
> $ModLoad imudp
> $UDPServerAddress 192.0.2.1 # this MUST be before the $UDPServerRun directive!
> $UDPServerRun 514
> $UDPServerAddress * # all local interfaces
> $UDPServerRun 1514
>
> These config file settings run two listeners: one at 192.0.2.1:514 and
> one on port 1514, which listens on all local interfaces.
> -=-=-=-=-=-=-=-=-
>
> HTH,
> -Bob

Oops sorry. I prefer to bind via tcp port, if it is possible... is it?

Thanks.



-- 
CL Martinez
carlopmart {at} gmail {d0t} com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Installing Centos 5.5 64 bit issues

2010-12-14 Thread Ross Walker
On Dec 13, 2010, at 11:49 PM, Nico Kadel-Garcia  wrote:

> On Mon, Dec 13, 2010 at 10:01 AM, benedict dcunha
>  wrote:
>> Dear All,
>> 
>> We have a new SUN BLADE X6270 SERVER MODULES and i am trying to install
>> centos 5.5 64 bit . the installations starts fine but when it reaches the
>> point inialthe X server it says initialization done but then gives a fatal
>> error and stops
> 
> Install in text mode: type "linux text" at the installation init
> screen. It's not as flexible, but it avoids this failed detection of
> your graphics chipset or video card.

Or use the 'vnc' option to make it available over vnc instead then connect from 
any vnc capable device to do the installation.

-Ross

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Issues with CentOS in enterprise

2010-12-14 Thread Kevin Thorpe
On 13/12/2010 19:03, Eero Volotinen wrote:
> 2010/12/13 Gé Weijers:
>> On Mon, 13 Dec 2010, Nico Kadel-Garcia wrote:
>>> RHEL is much better about that, although by now  the "production" RHEL
>>> 5 is 4 years out of date, the "leading edge" RHEL 6 is now one year
>>> out of date after the lengthy release testing, and CentOS will always
>>> lag that.
>> I believe "out of date" is the wrong wording. RHEL/CentOS 5 is maintained,
>> i.e. security issues and bugs are fixed. There's nothing "out of date"
>> about a tool that works and is cost-effective. RHEL 6 still has to prove
>> itself.
> RHEL provides 10 year support cycle, I hope Centos can do same :)
>
Not a problem. CentOS dies then you just change the repositories in yum 
and force update.
RedHat have knowingly provided support for 'adopted' servers in the past 
for us.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Antwort: MegaRAID SAS 9280-24i4e -- Centos support.

2010-12-14 Thread Lisandro Grullon
Thank u andrea for the response, but unfortunately  a floppy its not an option 
in my box. Can u guide me using a usb flash drive. Much appreciated. Lisandro

Sent on the Sprint® Now Network from my BlackBerry®

-Original Message-
From: Andreas Reschke 
Sender: centos-boun...@centos.org
Date: Tue, 14 Dec 2010 15:06:13 
To: CentOS mailing list
Reply-To: CentOS mailing list 
Subject: [CentOS] Antwort:  MegaRAID SAS 9280-24i4e -- Centos support.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Antwort: MegaRAID SAS 9280-24i4e -- Centos support.

2010-12-14 Thread Lisandro Grullon
Thank u andrea for the response, but unfortunately  a floppy its not an option 
in my box. Can u guide me using a usb flash drive. Much appreciated. Lisandro

Sent on the Sprint® Now Network from my BlackBerry®

-Original Message-
From: Andreas Reschke 
Sender: centos-boun...@centos.org
Date: Tue, 14 Dec 2010 15:06:13 
To: CentOS mailing list
Reply-To: CentOS mailing list 
Subject: [CentOS] Antwort:  MegaRAID SAS 9280-24i4e -- Centos support.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Antwort: MegaRAID SAS 9280-24i4e -- Centos support.

2010-12-14 Thread Timo Schoeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

thus Lisandro Grullon spake:
> Thank u andrea for the response, but unfortunately  a floppy its not
> an option in my box. Can u guide me using a usb flash drive. Much
> appreciated. Lisandro

Should work similar to writing to a FDD.

Maybe you have to experiment if plugging the stick into the machine
*before* booting or when anaconda requests the driver disk works -- I
have seen machines behave differently in this regard.

Timo

> Sent on the Sprint® Now Network from my BlackBerry®
> 
> -Original Message- From: Andreas Reschke
>  Sender: centos-boun...@centos.org 
> Date: Tue, 14 Dec 2010 15:06:13 To: CentOS mailing
> list Reply-To: CentOS mailing list
>  Subject: [CentOS] Antwort:  MegaRAID SAS
> 9280-24i4e -- Centos support.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFNB4Ayfg746kcGBOwRAnODAJ9wmH1zTe5edz/HelIn2dvRc3wwAwCgndmB
SEha9HK3BDiE5k/WQ32KcYs=
=sP4U
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Antwort: MegaRAID SAS 9280-24i4e -- Centos support.

2010-12-14 Thread Lisandro Grullon
Thank u timo,
I will test this further when I get home. I have been having nightmares getting 
this card working from an OS iso, it appears that the card is very new and the 
drivers have not been integrated into the distributions or kernel. The 
alternative is to load the driver via console using any of the modules supply 
by LSI. Thank you again Timo for your guidance. Lisandro


Sent on the Sprint® Now Network from my BlackBerry®

-Original Message-
From: Timo Schoeler 
Sender: centos-boun...@centos.org
Date: Tue, 14 Dec 2010 15:33:22 
To: CentOS mailing list
Reply-To: CentOS mailing list 
Subject: Re: [CentOS] Antwort:  MegaRAID SAS 9280-24i4e -- Centos support.

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

thus Lisandro Grullon spake:
> Thank u andrea for the response, but unfortunately  a floppy its not
> an option in my box. Can u guide me using a usb flash drive. Much
> appreciated. Lisandro

Should work similar to writing to a FDD.

Maybe you have to experiment if plugging the stick into the machine
*before* booting or when anaconda requests the driver disk works -- I
have seen machines behave differently in this regard.

Timo

> Sent on the Sprint® Now Network from my BlackBerry®
> 
> -Original Message- From: Andreas Reschke
>  Sender: centos-boun...@centos.org 
> Date: Tue, 14 Dec 2010 15:06:13 To: CentOS mailing
> list Reply-To: CentOS mailing list
>  Subject: [CentOS] Antwort:  MegaRAID SAS
> 9280-24i4e -- Centos support.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFNB4Ayfg746kcGBOwRAnODAJ9wmH1zTe5edz/HelIn2dvRc3wwAwCgndmB
SEha9HK3BDiE5k/WQ32KcYs=
=sP4U
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Antwort: MegaRAID SAS 9280-24i4e -- Centos support.

2010-12-14 Thread Timo Schoeler
thus Lisandro Grullon spake:
> Thank u timo,
> I will test this further when I get home. I have been having nightmares 
> getting this card working from an OS iso, it appears that the card is very 
> new and the drivers have not been integrated into the distributions or 
> kernel. The alternative is to load the driver via console using any of the 
> modules supply by LSI. Thank you again Timo for your guidance. Lisandro

You're welcome.

Ah, and welcome to the world of proprietary drivers. This is something
that the OpenBSD guys do right: They ignore them. ;)

Timo

> Sent on the Sprint® Now Network from my BlackBerry®
> 
> -Original Message-
> From: Timo Schoeler 
> Sender: centos-boun...@centos.org
> Date: Tue, 14 Dec 2010 15:33:22 
> To: CentOS mailing list
> Reply-To: CentOS mailing list 
> Subject: Re: [CentOS] Antwort:  MegaRAID SAS 9280-24i4e -- Centos support.
> 
> thus Lisandro Grullon spake:
>> Thank u andrea for the response, but unfortunately  a floppy its not
>> an option in my box. Can u guide me using a usb flash drive. Much
>> appreciated. Lisandro
> 
> Should work similar to writing to a FDD.
> 
> Maybe you have to experiment if plugging the stick into the machine
> *before* booting or when anaconda requests the driver disk works -- I
> have seen machines behave differently in this regard.
> 
> Timo
> 
>> Sent on the Sprint® Now Network from my BlackBerry®
> 
>> -Original Message- From: Andreas Reschke
>>  Sender: centos-boun...@centos.org 
>> Date: Tue, 14 Dec 2010 15:06:13 To: CentOS mailing
>> list Reply-To: CentOS mailing list
>>  Subject: [CentOS] Antwort:  MegaRAID SAS
>> 9280-24i4e -- Centos support.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to install CentOS onto a USB flash drive from Windows?

2010-12-14 Thread Rudi Ahlers
On Tue, Dec 14, 2010 at 3:50 PM, John Doe  wrote:
> From: Rudi Ahlers 
>
>> Can anyone please point me to a link with instructions on how  to
>> install CentOS 5 onto a USB flash drive, preferably from Windows?
>> I  would like to create a full running CentOS installation (with
>> minimal  packages obviously) that runs off a USB flash drive, and I
>> don't have a Linux  machine to use for this installation right now.
>
> Why not just boot from the CentOS DVD and do a normal install on the USB 
> drive?
> But watch out not to "burn out" you USB drive (limited number of writes).
>
> JD
>


I don't have a DVD, nor any blank DVD's to write it to, but only an ISO :)
But it's fine, I've setup a Linux server with PXE and will (when i
have time again) do the install over the network.



-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Binding rsyslogd to specific ip address

2010-12-14 Thread James Pearson
carlopmart wrote:

> Oops sorry. I prefer to bind via tcp port, if it is possible... is it?

The rsyslog.conf man page describes what you need to do.

James Pearson
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Binding rsyslogd to specific ip address

2010-12-14 Thread Bob Beers
On Tue, Dec 14, 2010 at 9:16 AM, carlopmart  wrote:
> Oops sorry. I prefer to bind via tcp port, if it is possible... is it?

I guess so ... you couldn't reach the links I provided?  Try in rsyslog.conf:

$ModLoad imtcp
$TCPServerAddress 192.0.2.1
$InputTCPServerRun 514

-Bob
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Installing Centos 5.5 64 bit issues

2010-12-14 Thread sylvan . dcunha

Dear All,

Thanks for all the help.

By the way I did install centos 5.5 in text mode and everything went  
fine .cthe server to the network and then found that i was not able to ping  
the gateway


when i do a network restart i see that eth0 comes up normally

also when i do a modprobe eth0 im returened back to prompt with no errors

the switch port shows the link up

ifconfig shows the interface is up and running

how could I know that the driver is installed correctly .. or any way i  
could know that my interface is up and working correctly




thanks and regards


if you need more details i would highly apprecite if you could ask please


regards

simon



On Dec 14, 2010 5:18pm, Ross Walker  wrote:

On Dec 13, 2010, at 11:49 PM, Nico Kadel-Garcia nka...@gmail.com> wrote:







> On Mon, Dec 13, 2010 at 10:01 AM, benedict dcunha




> sylvan.dcu...@gmail.com> wrote:




>> Dear All,




>>




>> We have a new SUN BLADE X6270 SERVER MODULES and i am trying to install



>> centos 5.5 64 bit . the installations starts fine but when it reaches  
the



>> point inialthe X server it says initialization done but then gives a  
fatal




>> error and stops




>




> Install in text mode: type "linux text" at the installation init




> screen. It's not as flexible, but it avoids this failed detection of




> your graphics chipset or video card.






Or use the 'vnc' option to make it available over vnc instead then  
connect from any vnc capable device to do the installation.







-Ross







___




CentOS mailing list




CentOS@centos.org




http://lists.centos.org/mailman/listinfo/centos




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] BIND and latest update (max open files WARNING)

2010-12-14 Thread Radu Gheorghiu

Hi all,

I can confirm this has happened to all my CentOS boxes in production.

Regards,
Radu

On 12/14/2010 03:15 PM, Jorge Fábregas wrote:

Hi all,

After the latest security update for bind (which came out last night), 
now there's a new message on syslog, (facility: daemon, severity: 
warning) every time you restart named:


max open files (1024) is smaller than max sockets (4096)

After googling for a while the solution seems to be to add this to 
/etc/security/limits.conf:


namedsoftnofile4096

...and mofity /etc/named.conf in order to add, under the options section:

files 4096;

That seems to work.  Of course, you may raise the 4096 but I guess 
that's the default in BIND and I was good with that.


I'm not sure why this happend. Maybe before the update bind had a 
value of 1024 for max.sockets and now it was raised to 4096.


 --
Jorge


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Binding rsyslogd to specific ip address

2010-12-14 Thread carlopmart
On 12/14/2010 04:01 PM, Bob Beers wrote:
> On Tue, Dec 14, 2010 at 9:16 AM, carlopmart  wrote:
>> Oops sorry. I prefer to bind via tcp port, if it is possible... is it?
>
> I guess so ... you couldn't reach the links I provided?  Try in rsyslog.conf:
>
> $ModLoad imtcp
> $TCPServerAddress 192.0.2.1
> $InputTCPServerRun 514
>

Yes, I have tried, and doesn't works:

 MODULES 

#$ModLoad imuxsock.so   # provides support for local system logging (e.g. via 
logger 
command)
#$ModLoad imklog.so # provides kernel logging support (previously done by 
rklogd)
#$ModLoad immark.so # provides --MARK-- message capability

# Provides UDP syslog reception
#$ModLoad imudp.so
#$UDPServerAddress 172.25.50.26
#$UDPServerRun 514

# Provides TCP syslog reception
$ModLoad imtcp.so
$TCPServerAddress 172.25.50.26
$InputTCPServerRun 514


and netstat output:

[r...@loghost librelp-0.1.1]# netstat -anp |grep rsyslog
tcp0  0 0.0.0.0:514 0.0.0.0:*   
LISTEN 
 4446/rsyslogd
unix  3  [ ] DGRAM543447 1001/rsyslogd   
/dev/log

-- 
CL Martinez
carlopmart {at} gmail {d0t} com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Binding rsyslogd to specific ip address

2010-12-14 Thread carlopmart
On 12/14/2010 04:01 PM, James Pearson wrote:
> carlopmart wrote:
>
>> Oops sorry. I prefer to bind via tcp port, if it is possible... is it?
>
> The rsyslog.conf man page describes what you need to do.
>

Where?? I have read it and I didn't find anything about this ...


-- 
CL Martinez
carlopmart {at} gmail {d0t} com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Steve Lindemann
Jerry Franz wrote:
> Thinking the code belongs to the data just a mental model. One of many 
> that may be used or not used at need for the exact same code.   But 
> never make the mistake of thinking any of them are "The Truth". A good 
> programmer switches mental models as needed and is not wedded to any of 
> them as "The Truth" - merely as *convenient to the task*.
> 

+10

...and I started programming in binary, then moved up to assembler. 
When I finally got to FORTRAN IV I thought I'd reached nirvana.

As teaching languages go I still like Pascal and it's not bad as a 
general purpose language.  For practical work I lean towards PERL and 
PHP, but then I do sys admin for work and websites for fun.

Define your task then -

Use the tool that fits the task... not the other way around!

--
Steve Lindemann, MSIS   __
Network Administrator  //\\  ASCII Ribbon Campaign
Marmot Library Network \\//  against HTML/RTF email,
+1.970.242.3331 x116   //\\  vCards & M$ attachments
http://www.marmot.org

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Les Mikesell
On 12/14/2010 4:43 AM, Natxo Asenjo wrote:
>>  Python enforces you to be more consistent, which is not a bad thing if
>> you want to understand better what you are doing in the very beginning.
>>   Later on Perl, Ruby, C#, Java, C/C++ might be a good alternatives, as
>> they probably are much stronger in a lot of fields for more complex tasks.
>
> use strict;
> use warnings;
>
> if you write Perl and do not use that, you will have problems, yes.
>
>> But remember each tool has its own use case.  You don't need a hammer
>> when you have screws.  It's the same with programming languages.  And
>> Python and Perl are often used as the "Swiss Army Knife".  Useful for a
>> lot of ad-hoc and not too heavy routine tasks, but you won't rely on it
>> when going hunting in the wilderness.
>
> well, Perl helps me daily on the wilderness of my job. I do not
> understand the analogy, but it probably is my fault ;-)

Perl is easy to write, starts up relatively quickly, and has a lot of 
available modules for specific operations.  Since it interpreted as 
plain text, you can include a file with the full syntax available for 
configuration instead of having to writing your own parser with 
yet-another-syntax for config files.   But, it is somewhat hard to scale 
and maintain because people write in different styles and things that 
start small tend to have a lot of global variables that are hard to 
remember as the code grows.  And perl is not great for GUI programs. 
I'd consider backuppc (which contains a nearly complete rsync 
implementation) and RT (a trouble-ticket system) to be ambitious 
projects for perl.

For larger scale things, look at java.  Examples might be OpenNMS, 
Hudson, OpenGrok, or Alfresco.  These are long-running servers where the 
startup time is not a problem and in Hudson's case the cross-platform 
compatibility is a big plus because a master program can schedule and 
distribute jobs across many different types of machines.

-- 
   Les Mikesell
 lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Antwort: MegaRAID SAS 9280-24i4e -- Centos support.

2010-12-14 Thread Lisandro Grullon
Timo,
Its interesting, I am presently attending a conference in NYC and in one
of the tables I saw the redhat vendor. My first question to them was "
What do you think about centos", they reply "You are using a
distribution without support and that is prompt to failure..." I don't
think this is an accurate statement is it? Anyway to make the story
short, they keep telling how bad centos is for our datacenter and that I
should consider adopting redhat which is more "robust", offers
"virtualization" and nearly real-time support for its customers. I
didn't go the extra mile to ask for pricing but would appreciate  your
input about what they said about centos. Lisandro

>>> Timo Schoeler  12/14/10 9:44 AM >>>
thus Lisandro Grullon spake:
> Thank u timo,
> I will test this further when I get home. I have been having
nightmares getting this card working from an OS iso, it appears that the
card is very new and the drivers have not been integrated into the
distributions or kernel. The alternative is to load the driver via
console using any of the modules supply by LSI. Thank you again Timo for
your guidance. Lisandro

You're welcome.

Ah, and welcome to the world of proprietary drivers. This is something
that the OpenBSD guys do right: They ignore them. ;)

Timo

> Sent on the Sprint® Now Network from my BlackBerry®
> 
> -Original Message-
> From: Timo Schoeler 
> Sender: centos-boun...@centos.org
> Date: Tue, 14 Dec 2010 15:33:22 
> To: CentOS mailing list
> Reply-To: CentOS mailing list 
> Subject: Re: [CentOS] Antwort:  MegaRAID SAS 9280-24i4e -- Centos
support.
> 
> thus Lisandro Grullon spake:
>> Thank u andrea for the response, but unfortunately  a floppy its not
>> an option in my box. Can u guide me using a usb flash drive. Much
>> appreciated. Lisandro
> 
> Should work similar to writing to a FDD.
> 
> Maybe you have to experiment if plugging the stick into the machine
> *before* booting or when anaconda requests the driver disk works -- I
> have seen machines behave differently in this regard.
> 
> Timo
> 
>> Sent on the Sprint® Now Network from my BlackBerry®
> 
>> -Original Message- From: Andreas Reschke
>>  Sender: centos-boun...@centos.org 
>> Date: Tue, 14 Dec 2010 15:06:13 To: CentOS mailing
>> list Reply-To: CentOS mailing list
>>  Subject: [CentOS] Antwort:  MegaRAID SAS
>> 9280-24i4e -- Centos support.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS cluster solution

2010-12-14 Thread Les Mikesell
On 12/14/2010 4:41 AM, David S. wrote:
> Hi Timo,
> I mean parallel cloud computing, do you have solution for this case?
>

There are many different meanings for terms like that.  One is a set of 
resources that you can easily carve into virtual machines that then act 
like unrelated physical machines except for the ease of cloning and 
migrating them.  Another is a scientific supercomputer that can solve 
certain types of problems with specialized libraries that can divide 
that task into work units that run on different hosts and collate the 
results.  This tends to be limitied and difficult, so another approach 
is to use a scalable database where you push everything that needs to 
run in parallel into a 'map/reduce' function.  That tends to be 
difficult by itself, and handled differently by the different 
implementations.  If that's what you are interested in, I'd look at 
'riak' first (http://wiki.basho.com/display/RIAK/Riak)and their 
comparisons to others to understand the tradeoffs in approaches.

-- 
   Les Mikesell
lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Antwort: MegaRAID SAS 9280-24i4e -- Centos support.

2010-12-14 Thread Brunner, Brian T.
 
 >> Timo,
>> Its interesting, I am presently attending a conference in NYC and in
one of the tables I saw the redhat vendor.  
>>  My first question to them was " What do you think about centos",
they reply "You are using a distribution  
>>  without support and that is prompt to failure..." I don't think this
is an accurate statement is it? Anyway to  
>>  make the story short, they keep telling how bad centos is for our
datacenter and that I should consider  
>>  adopting redhat which is more "robust", offers "virtualization" and
nearly real-time support for its customers.  
>>  I didn't go the extra mile to ask for pricing but would appreciate
your input about what they said about centos.  
>>  Lisandro
 
CentOS == RedHat.
CentOS has every bug that RedHat has.
CentOS has every bug fix that RedHat has. 
When RedHat rolls out a new version (e.g. RHEL6.0) there is a lag of a
few months rolling out the CentOS release of the same version; for bug
fixes the lag is a few days.
 
So, the price of RedHat is money, the price for CentOS is patience.
The product sold by RedHat is support, the product 'sold by' CentOS is
self-support.
The relative value of the two arises from your ability to support your
systems.

***
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the system manager. This footnote also confirms that this
email message has been swept for the presence of computer viruses.
www.Hubbell.com - Hubbell Incorporated**

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread m . roth
Les Mikesell wrote:
> On 12/14/2010 4:43 AM, Natxo Asenjo wrote:
>>>  Python enforces you to be more consistent, which is not a bad thing if
>>> you want to understand better what you are doing in the very beginning.
>>>   Later on Perl, Ruby, C#, Java, C/C++ might be a good alternatives, as
>>> they probably are much stronger in a lot of fields for more complex
>>> tasks.
>>
>> use strict;
>> use warnings;
>>
>> if you write Perl and do not use that, you will have problems, yes.
>>
>>> But remember each tool has its own use case.  You don't need a hammer
>>> when you have screws.  It's the same with programming languages.  And
>>> Python and Perl are often used as the "Swiss Army Knife".  Useful for a
>>> lot of ad-hoc and not too heavy routine tasks, but you won't rely on it
>>> when going hunting in the wilderness.

There was an article in Dr. Dobbs' about 10 years ago, where perl was
referred to as the Swiss Army chainsaw. 

> Perl is easy to write, starts up relatively quickly, and has a lot of
> available modules for specific operations.  Since it interpreted as

Yup.

> yet-another-syntax for config files.   But, it is somewhat hard to scale
> and maintain because people write in different styles and things that
> start small tend to have a lot of global variables that are hard to
> remember as the code grows.  And perl is not great for GUI programs.

*snarl*
There is *no* excuse for lots of globals. Pass your stuff. The most
complicated programs I've ever written in perl (I guess that was the
billing system for a very small telecom, 600-700 lines or more) had less
than 10 globals, and maybe less than five (it's been 6 years since I was
there, so I don't remember). Using globals is *lousy*, *lazy* programming,
and I wouldn't trust folks that write anything more than a 20 or 30 line
script to program *anything* until they'd gone back and internalized
modular coding. And then I'd review their code for the next six months

mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS-announce Digest, Vol 70, Issue 3

2010-12-14 Thread centos-announce-request
Send CentOS-announce mailing list submissions to
centos-annou...@centos.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-requ...@centos.org

You can reach the person managing the list at
centos-announce-ow...@centos.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of CentOS-announce digest..."


Today's Topics:

   1. CESA-2010:0976 Important CentOS 5 i386 bind Update
  (Karanbir Singh)
   2. CESA-2010:0976 Important CentOS 5 x86_64 bind Update
  (Karanbir Singh)
   3. CESA-2010:0978 Moderate CentOS 5 i386 openssl Update
  (Karanbir Singh)
   4. CESA-2010:0978 Moderate CentOS 5 x86_64 openssl   Update
  (Karanbir Singh)
   5. CESA-2010:0898 Moderate CentOS 5 i386 kvm Update (Karanbir Singh)
   6. CESA-2010:0898 Moderate CentOS 5 x86_64 kvm Update
  (Karanbir Singh)
   7. CEBA-2010:0944 CentOS 5 i386 gnome-screensaverUpdate
  (Karanbir Singh)
   8. CEBA-2010:0944 CentOS 5 x86_64 gnome-screensaver  Update
  (Karanbir Singh)
   9. CEBA-2010:0933 CentOS 5 i386 NetworkManager Update
  (Karanbir Singh)
  10. CEBA-2010:0933 CentOS 5 x86_64 NetworkManager Update
  (Karanbir Singh)
  11. CEBA-2010:0980  CentOS 5 x86_64 rsyslog Update (Karanbir Singh)
  12. CEBA-2010:0980  CentOS 5 i386 rsyslog Update (Karanbir Singh)


--

Message: 1
Date: Tue, 14 Dec 2010 01:18:10 +
From: Karanbir Singh 
Subject: [CentOS-announce] CESA-2010:0976 Important CentOS 5 i386 bind
Update
To: centos-annou...@centos.org
Message-ID: <20101214011810.ga2...@chakra.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Security Advisory 2010:0976 Important

Upstream details at : https://rhn.redhat.com/errata/RHSA-2010-0976.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( md5sum Filename ) 

i386:
ee98ccdb3c68b1a3c8142bce1989da82  bind-9.3.6-4.P1.el5_5.3.i386.rpm
f573713425dcaf00d176c1bd3e7693c4  bind-chroot-9.3.6-4.P1.el5_5.3.i386.rpm
2e5b3614216d3212e4fbee919ecbabbc  bind-devel-9.3.6-4.P1.el5_5.3.i386.rpm
300c420f39707b56e51d03823d46510d  bind-libbind-devel-9.3.6-4.P1.el5_5.3.i386.rpm
f44f3e934959afed54a772b5d31fb22d  bind-libs-9.3.6-4.P1.el5_5.3.i386.rpm
b2879ca1fe27f4577e13bba0e4fe9d93  bind-sdb-9.3.6-4.P1.el5_5.3.i386.rpm
da3ca87aa9be864bb61fe20302e8b563  bind-utils-9.3.6-4.P1.el5_5.3.i386.rpm
c1bff8d793ffdac9ab12fa0d3c7c5240  caching-nameserver-9.3.6-4.P1.el5_5.3.i386.rpm

Source:
446bee6be10b6120de04e343c80e67e5  bind-9.3.6-4.P1.el5_5.3.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, #cen...@irc.freenode.net



--

Message: 2
Date: Tue, 14 Dec 2010 01:18:10 +
From: Karanbir Singh 
Subject: [CentOS-announce] CESA-2010:0976 Important CentOS 5 x86_64
bindUpdate
To: centos-annou...@centos.org
Message-ID: <20101214011810.ga2...@chakra.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Security Advisory 2010:0976 Important

Upstream details at : https://rhn.redhat.com/errata/RHSA-2010-0976.html

The following updated files have been uploaded and are currently 
syncing to the mirrors: ( md5sum Filename ) 

x86_64:
5cf34e317a52e095db1b4ba8ceb76a4c  bind-9.3.6-4.P1.el5_5.3.x86_64.rpm
1d87fc23171d334f1bde5713aa134314  bind-chroot-9.3.6-4.P1.el5_5.3.x86_64.rpm
178e2cecdc5596d6a9ece3ad62a00bd6  bind-devel-9.3.6-4.P1.el5_5.3.i386.rpm
0f9a2038cd7ac42ce9f2f127b06687e5  bind-devel-9.3.6-4.P1.el5_5.3.x86_64.rpm
b50527f6790923d1a89b6f857cfd1211  bind-libbind-devel-9.3.6-4.P1.el5_5.3.i386.rpm
2f59e2b6f212d956d0784752ac47d8ec  
bind-libbind-devel-9.3.6-4.P1.el5_5.3.x86_64.rpm
c07ddb0a7f8a5e8a0030efab9bbfca00  bind-libs-9.3.6-4.P1.el5_5.3.i386.rpm
b2ecb5b28ed6a7bf38fdcf0784a81908  bind-libs-9.3.6-4.P1.el5_5.3.x86_64.rpm
cad3e75264c4e930b3687e5cf3a15f40  bind-sdb-9.3.6-4.P1.el5_5.3.x86_64.rpm
2acdde13384171be93baf568106f77b4  bind-utils-9.3.6-4.P1.el5_5.3.x86_64.rpm
9312526a59fbb7a0f275c523fdfd6382  
caching-nameserver-9.3.6-4.P1.el5_5.3.x86_64.rpm

Source:
446bee6be10b6120de04e343c80e67e5  bind-9.3.6-4.P1.el5_5.3.src.rpm


-- 
Karanbir Singh
CentOS Project { http://www.centos.org/ }
irc: z00dax, #cen...@irc.freenode.net



--

Message: 3
Date: Tue, 14 Dec 2010 01:19:08 +
From: Karanbir Singh 
Subject: [CentOS-announce] CESA-2010:0978 Moderate CentOS 5 i386
openssl Update
To: centos-annou...@centos.org
Message-ID: <20101214011908.ga2...@chakra.karan.org>
Content-Type: text/plain; charset=us-ascii


CentOS Errata and Security Advisory 2010:0978 Moderate

Upstream details at : https://rhn.redhat.com/errata/RHSA-2010-0978.html

The following updated files have been uploaded and are currently 
syncing to the

Re: [CentOS] {SOLVED}Re: Yum Updates dependencies missing (rpmforge)

2010-12-14 Thread Bart Schaefer
On Tue, Dec 14, 2010 at 3:46 AM, Lanny Marcus  wrote:
> From the time the problem began, it had to do with
>
> Error: Missing Dependency: libx264.so.68 is needed by package
> cinelerra-2.1-0.15.20070108.el5.rf.i386 (installed)
>
> However, cinelerra was *never* one of the packages set to be updated.

The problem may be that libx264 was set to be updated, but could not
be because installed package cinelerra had an absolute dependency on
an older version (rather than an "at least" dependency).

> I am not using cinelerra at this time, so I removed it this morning:
>
>  cinelerra.i386 0:2.1-0.15.20070108.el5.rf
>
> After that, I was able to yum update the box, with no issues.

I seem to recall having to drop several packages that depended on a
specific libx264 version a while ago, but I no longer remember which
ones (lua related, possibly?).
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Les Mikesell
On 12/14/2010 10:46 AM, m.r...@5-cent.us wrote:
>
> Yup.
> 
>> yet-another-syntax for config files.   But, it is somewhat hard to scale
>> and maintain because people write in different styles and things that
>> start small tend to have a lot of global variables that are hard to
>> remember as the code grows.  And perl is not great for GUI programs.
>
> *snarl*
> There is *no* excuse for lots of globals. Pass your stuff. The most
> complicated programs I've ever written in perl (I guess that was the
> billing system for a very small telecom, 600-700 lines or more) had less
> than 10 globals, and maybe less than five (it's been 6 years since I was
> there, so I don't remember). Using globals is *lousy*, *lazy* programming,
> and I wouldn't trust folks that write anything more than a 20 or 30 line
> script to program *anything* until they'd gone back and internalized
> modular coding. And then I'd review their code for the next six months
> 

Keep in mind that you can do some amazing things with a 30 line perl 
script that uses an assortment of modules to to the real work (try 
something like breaking email attachments out into files with some other 
approach to appreciate it).

But, there is a line of thought that says programming (perhaps not 
including text munging...) is really all about designing data structures 
and after that the code is obvious.  I don't have a problem with the 
concept of globals in general. Perl's namespaces aren't really private 
after all, but for practical reasons you would usually want to put 
things in an array of hashes or some similar arrangement that you can 
loop over instead of having a bazillion variable names.

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] wireless not working

2010-12-14 Thread Ritika Garg
I have CentOS5.5 installed on a DELL laptop. Wireless is not working.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] wireless not working

2010-12-14 Thread m . roth
Ritika Garg wrote:
> I have CentOS5.5 installed on a DELL laptop. Wireless is not working.

What tests have you done? Have you checked dmesg and /var/log/messages as
to why? Have you enabled it?

 mark, who's getting paid for what he does at work, not for answering
  questions on the list from folks who say "it's broken", and
  appear to expect SLA-type response

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] adobe flash

2010-12-14 Thread Ritika Garg
Was wondering why that occurred. Earlier I had installed adobe flash but
still videos didn't play.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] RAID help

2010-12-14 Thread Jason T. Slack-Moehrle
Hi All,

I have a new system with 2 Seagate 1TB SATA Enterprise level drives in it.

I want to RAID1 (mirror) these drives. 

This machine will be a web-server in my apartment hosting an HTML video fan 
site I am creating. Apache, MySQL, PHP etc. This site will easily be 300+ gigs 
with all the versions of each video, the MySQL won't be huge, but will grow as 
data for each video is added (i.e location on the server, keyframe name, etc)

I am a bit confused by: 
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-raid-config.html

So if I simplify, I must:
1. Create a software raid partition on each drive
2. Create a RAID 1 out of that partition and use a mount point of /boot

3. Create other mount points I might want i.e swap, /home, etc
4. Create RAID1 out of these partitions

5. rinse and repeat this for each mount point I want

A few questions:

1. This system support 16gb of RAM. I have 9gb in it, but I will max it out 
over the next few months as I find great deals on RAM, what should my SWAP 
space be? I recall a long while ago that SWAP should match physical RAM.

2. Any reason I can't just create a single mount point taking up the entire 
drive and RAID1 the entire thing? Can anyone recommend some ideal mount points 
and sizes? 

3. What should I account for if my /var/www/html will be very large?

Best,
-Jason
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] how to install CentOS onto a USB flash drive from Windows?

2010-12-14 Thread Keith Roberts
On Tue, 14 Dec 2010, John Doe wrote:

> To: CentOS mailing list 
> From: John Doe 
> Subject: Re: [CentOS] how to install CentOS onto a USB flash drive from
> Windows?
> 
> From: Rudi Ahlers 
>
>> Can anyone please point me to a link with instructions on how  to
>> install CentOS 5 onto a USB flash drive, preferably from Windows?
>> I  would like to create a full running CentOS installation (with
>> minimal  packages obviously) that runs off a USB flash drive, and I
>> don't have a Linux  machine to use for this installation right now.
>
> Why not just boot from the CentOS DVD and do a normal install on the USB 
> drive?
> But watch out not to "burn out" you USB drive (limited number of writes).

Not tried that yet, but when using a USB drive for doing a 
kickstart installation, the USB drive is recognised by 
anaconda as sda1, and offered as an installation option in 
the partitioner dialogue.

Kind Regards,

Keith Roberts

-- 
In theory, theory and practice are the same;
in practice they are not.

This email was sent from my laptop with Centos 5.5
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] monetary donations to centos

2010-12-14 Thread Keith Keller
On Mon, Dec 13, 2010 at 07:48:51AM -0500, Nico Kadel-Garcia wrote:
> 
> Also, don't forgot to contribute or actually *purchase* the licenses
> for the one you use.

http://www.centos.org/modules/tinycontent/index.php?id=23

"CentOS is currently reviewing our cash donation program. In the mean
time we are not accepting any financial donations. We hope to have a
process in place by the middle of 2010 that allows us to change this and
go back to accepting cash donations, so do check back later."

Does anyone know what the main issues are that need to be addressed
before CentOS can accept cash donations?  Are the issues mainly
technical, mainly administrative, or an almost even split?

--keith

-- 
kkel...@wombat.san-francisco.ca.us



pgpPBsxuGBoWA.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID help

2010-12-14 Thread m . roth
Hey, Jason,

Jason T. Slack-Moehrle wrote:
>
> I have a new system with 2 Seagate 1TB SATA Enterprise level drives in it.
>
> I want to RAID1 (mirror) these drives.

> So if I simplify, I must:
> 1. Create a software raid partition on each drive
> 2. Create a RAID 1 out of that partition and use a mount point of /boot

Only if you want to mirror the boot partition.
>
> 3. Create other mount points I might want i.e swap, /home, etc
> 4. Create RAID1 out of these partitions

Only if you want each directory RAIDed. DO NOT mirror swap. Bad idea.

> A few questions:
>
> 1. This system support 16gb of RAM. I have 9gb in it, but I will max it
> out over the next few months as I find great deals on RAM, what should my
> SWAP space be? I recall a long while ago that SWAP should match physical
> RAM.

Nope. Received Wisdom said 2-2.5 times RAM. However, in these days of in
insanely huge amounts of RAM, it's not really important. At work, I just
make swap 2G for everything (and trust me, we've got servers that make
your memory look piddly).
>
> 2. Any reason I can't just create a single mount point taking up the
> entire drive and RAID1 the entire thing? Can anyone recommend some ideal
> mount points and sizes?

Nope, no reason.
>
> 3. What should I account for if my /var/www/html will be very large?

My manager here doesn't like LVM; but if it were me, I'd make that
/var/www an LVM virtual partition. That way, you can always add another
drive and thow more space into it.

   mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] heartbeat configuration for lb

2010-12-14 Thread bluethundr
hey guys thanks for the tip.. I haven't had a chance to play with
heartbeat as we decided to go with keepalived as per Emmet's
suggestion. It works beautifully with two keepalived/haproxy load
balancers. I really appreciate emmet's advice and sorry I didn't let
you know it was working sooner.

 At any rate, I was told to add a 3rd load balancer to the mix and
that adds a new wrinkle. I need to add a new keepalived instance and I
can't quite figure out how that's done.

 It would seem to me to be an issue of the priorities as that is the
only thing I altered in the files.  Initially, nodes A and B were set
to 101 and 100 respectively. I set node A to 102, node B to 101 and
node C to 100... keepalived restarts and the virtual IP is pingable.
But the website goes down! :(

 SO then I tried Node A set to 101, node B to 100 and node C to 99.
Same thing, I restated keepalived and the site goes down, tho the
virtual IP remains pinagble and keepalived and haproxy are running.

Does anyone know how to address this issue?

Thanks!!

On Mon, Dec 13, 2010 at 3:04 AM, Juergen Gotteswinter  wrote:
> Not 100% On Topic, but perhaps you should try keepalived for vrrp
> failover on Loadbalancers. Much more reliable, easier to setup and
> faster switch to the standby host
>
> keepalived.org
>
> Am 13.12.10 04:50, schrieb Emmett Culley:
>> On 12/11/2010 07:26 PM, bluethundr wrote:
>>> Sorry I forgot to finish the story!!! :)
>>>
>>> And the interface doesn't appear to be sharing the address:
>>>
>>> [r...@virtcent01:~]#ip addr sh eth0
>>> 2: eth0:   mtu 1500 qdisc pfifo_fast qlen 
>>> 1000
>>>       link/ether 00:16:36:22:92:70 brd ff:ff:ff:ff:ff:ff
>>>       inet 192.168.1.23/24 brd 192.168.1.255 scope global eth0
>>>       inet6 fe80::216:36ff:fe22:9270/64 scope link
>>>          valid_lft forever preferred_lft forever
>>>
>>>
>>> And I can't ping the virtual address I had tried to setup using heartbeat:
>>>
>>> [r...@virtcent01:~]#ping 192.168.1.200
>>> PING 192.168.1.200 (192.168.1.200) 56(84) bytes of data.
  From 192.168.1.23 icmp_seq=1 Destination Host Unreachable
  From 192.168.1.23 icmp_seq=2 Destination Host Unreachable
  From 192.168.1.23 icmp_seq=3 Destination Host Unreachable
>>>
>>> thanks again!!!
>>>
>>>
>>>
>>> On Sat, Dec 11, 2010 at 10:13 PM, bluethundr   wrote:
 hello list!

    I am attempting to setup haproxy using a shared up I am trying to
 setup using the heartbeat package that I currently have installed:

    [r...@virtcent01:~]#rpm -qa | grep heartbeat | grep -v -e stonith -e 
 pils
 heartbeat-2.1.4-11.el5
 heartbeat-2.1.4-11.el5


 I have /etc/ha/.d authkeys setup this way:

 #
 auth 2
 #1 crc
 2 sha1 {SHA}secret

 I have /etc/ha.d/resources setup like this:

 VIRTCENT01.summitnjhome.com 192.168.1.23

 And I have /etc/ha.cf setup like this:

    #       What UDP port to use for udp or ppp-udp communication?
 #
 udpport        694
 bcast  eth0
 mcast eth0 225.0.0.1 694 1 0
 ucast eth0 192.168.1.200
 #       What interfaces to heartbeat over?
 udp     eth0
 #
 #       Facility to use for syslog()/logger (alternative to log/debugfile)
 #
 logfacility     local0
 #
 #       Tell what machines are in the cluster
 #       node    nodename ...    -- must match uname -n
 node    lb1.summitnjhome.com
 node    lb2.summitnjhome.com


 The service seems to start ok:

 [r...@virtcent01:~]#service heartbeat restart
 Stopping High-Availability services:
                                                             [  OK  ]
 Waiting to allow resource takeover to complete:
                                                             [  OK  ]
 Starting High-Availability services:
 2010/12/11_22:03:55 INFO:  Resource is stopped
                                                             [  OK  ]

 (tho I am unsure of that the INFO notice is of the resource being stopped).

 And I have verified that it is running with ps:

 [r...@virtcent01:~]#ps auxwww | grep heartbeat
 root      3646  0.1  4.6  12260 12256 ?        SLs  22:03   0:00
 heartbeat: master control process
 nobody    3648  0.0  2.1   5664  5660 ?        SL   22:03   0:00
 heartbeat: FIFO reader
 nobody    3649  0.0  2.1   5660  5656 ?        SL   22:03   0:00
 heartbeat: write: bcast eth0
 nobody    3650  0.0  2.1   5660  5656 ?        SL   22:03   0:00
 heartbeat: read: bcast eth0
 root      3653  0.0  0.2  61180   736 pts/1    S+   22:04   0:00 grep 
 heartbeat


 And verified that the box is listening on port 694 (the port that I
 have set for heartbeat):


 [r...@virtcent01:~]#netstat -tulpn | grep heartbeat
 udp        0      0 0.0.0.0:694                 0.0.0.0:*
                   3649/heartbeat: wri
 udp        0      0 0.0.

Re: [CentOS] RAID help

2010-12-14 Thread Paul Heinlein
On Tue, 14 Dec 2010, Jason T. Slack-Moehrle wrote:

> Hi All,
>
> I have a new system with 2 Seagate 1TB SATA Enterprise level drives 
> in it.
>
> I want to RAID1 (mirror) these drives. 
>
> So if I simplify, I must:
> 1. Create a software raid partition on each drive
> 2. Create a RAID 1 out of that partition and use a mount point of /boot
>
> 3. Create other mount points I might want i.e swap, /home, etc
> 4. Create RAID1 out of these partitions
>
> 5. rinse and repeat this for each mount point I want
>
> A few questions:
>
> 1. This system support 16gb of RAM. I have 9gb in it, but I will max
>it out over the next few months as I find great deals on RAM,
>what should my SWAP space be? I recall a long while ago that SWAP
>should match physical RAM.
>
> 2. Any reason I can't just create a single mount point taking up the
>entire drive and RAID1 the entire thing? Can anyone recommend
>some ideal mount points and sizes?
>
> 3. What should I account for if my /var/www/html will be very large?

If you have time to experiment a bit, I'd highly suggest encapsulating 
your RAID design in a kickstart file. You'll need to do some up-front 
work to get it ready, but once it's done you can re-do your 
arrangement easily (and repeat as necessary). Here's a sample (that 
requires two identical drives):

# disk work
bootloader --location=mbr
clearpart --all --initlabel
part raid.01 --size=300--ondisk=hda --asprimary
part raid.02 --size=300--ondisk=hdb --asprimary
part raid.11 --size=1024   --ondisk=hda --asprimary
part raid.12 --size=1024   --ondisk=hdb --asprimary
part raid.21 --size=2  --ondisk=hda --asprimary
part raid.22 --size=2  --ondisk=hdb --asprimary
part raid.31 --size=1  --ondisk=hda --asprimary --grow
part raid.32 --size=1  --ondisk=hdb --asprimary --grow
# mirrored mountpoints
raid /boot --fstype ext3 --level=RAID1 --device=md0 raid.01 raid.02
raid swap  --fstype swap --level=RAID1 --device=md1 raid.11 raid.12
raid / --fstype ext3 --level=RAID1 --device=md2 raid.21 raid.22
raid /srv  --fstype ext3 --level=RAID1 --device=md3 raid.31 raid.32

There are many, many ways to alter this setup (e.g., using LVM, using 
a different set of mount points, not relying on primary partitions).

The reason that /srv gets the lion's share of the disk is that I try 
to differentiate between files

  * created/maintained by running processes (e.g., MySQL)
  * installed by RPM (e.g., /var/www/error)

both of which belong in /var, and

  * data created elsewhere and "fed" to a process (e.g., your
video files or HTML pages)

which goes into /srv.

-- 
Paul Heinlein <> heinl...@madboa.com <> http://www.madboa.com/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID help

2010-12-14 Thread Ryan Wagoner
On Tue, Dec 14, 2010 at 1:49 PM,   wrote:
> Jason T. Slack-Moehrle wrote:

> Only if you want to mirror the boot partition.
>>
>> 3. Create other mount points I might want i.e swap, /home, etc
>> 4. Create RAID1 out of these partitions
>
> Only if you want each directory RAIDed. DO NOT mirror swap. Bad idea.

You want to mirror swap. If a drive fails your swap immediately goes
offline. If an application had memory in swap it is now lost.

>> A few questions:
>>
>> 1. This system support 16gb of RAM. I have 9gb in it, but I will max it
>> out over the next few months as I find great deals on RAM, what should my
>> SWAP space be? I recall a long while ago that SWAP should match physical
>> RAM.
>
> Nope. Received Wisdom said 2-2.5 times RAM. However, in these days of in
> insanely huge amounts of RAM, it's not really important. At work, I just
> make swap 2G for everything (and trust me, we've got servers that make
> your memory look piddly).

I do the same 1-2GB for swap. The servers hardly every touch swap as
they have enough memory.

>>
>> 2. Any reason I can't just create a single mount point taking up the
>> entire drive and RAID1 the entire thing? Can anyone recommend some ideal
>> mount points and sizes?
>
> Nope, no reason.
>>
>> 3. What should I account for if my /var/www/html will be very large?
>
> My manager here doesn't like LVM; but if it were me, I'd make that
> /var/www an LVM virtual partition. That way, you can always add another
> drive and thow more space into it.

I only use LVM if I need the features if offers. Otherwise it is just
extra overhead.

Ryan
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID help

2010-12-14 Thread Jason T. Slack-Moehrle
Hi Mark,

Thanks for the reply.

>> 2. Create a RAID 1 out of that partition and use a mount point of /boot
> 
> Only if you want to mirror the boot partition.

Doesn't one want to mirror that partition?

>> 
>> 3. Create other mount points I might want i.e swap, /home, etc
>> 4. Create RAID1 out of these partitions
> 
> Only if you want each directory RAIDed. DO NOT mirror swap. Bad idea.
> 

Right, I get that, but what is fuzzy is it you, say have a drive with a few 
partitions that you don't mirror and a few that you do, doesn't the drive you 
are mirroring to have unused space equal to the amount of the partitions you 
are not mirroring?


>> A few questions:
>> 
>> 1. This system support 16gb of RAM. I have 9gb in it, but I will max it
>> out over the next few months as I find great deals on RAM, what should my
>> SWAP space be? I recall a long while ago that SWAP should match physical
>> RAM.
> 
> Nope. Received Wisdom said 2-2.5 times RAM. However, in these days of in
> insanely huge amounts of RAM, it's not really important. At work, I just
> make swap 2G for everything (and trust me, we've got servers that make
> your memory look piddly).

Thanks.

> My manager here doesn't like LVM; but if it were me, I'd make that
> /var/www an LVM virtual partition. That way, you can always add another
> drive and thow more space into it.

I am not as familiar with LVM as I should be, do you have a link to 
info/tutorial?

-Jason
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID help

2010-12-14 Thread m . roth
Ryan Wagoner wrote:
> On Tue, Dec 14, 2010 at 1:49 PM,   wrote:
>> Jason T. Slack-Moehrle wrote:

>>> 3. Create other mount points I might want i.e swap, /home, etc
>>> 4. Create RAID1 out of these partitions
>>
>> Only if you want each directory RAIDed. DO NOT mirror swap. Bad idea.
>
> You want to mirror swap. If a drive fails your swap immediately goes
> offline. If an application had memory in swap it is now lost.

Mmmm... but if a drive goes down, then swap could quite easily be in an
undefined state, part-way through the mirroring.

   mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID help

2010-12-14 Thread Jason T. Slack-Moehrle

> My manager here doesn't like LVM; but if it were me, I'd make that
> /var/www an LVM virtual partition. That way, you can always add another
> drive and thow more space into it.

Ah I found this: 
http://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/

-Jason
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Adam Tauno Williams
On Tue, 2010-12-14 at 11:04 -0600, Les Mikesell wrote:
> On 12/14/2010 10:46 AM, m.r...@5-cent.us wrote:
> > Yup.
> > 
> >> yet-another-syntax for config files.   But, it is somewhat hard to scale
> >> and maintain because people write in different styles and things that
> >> start small tend to have a lot of global variables that are hard to
> >> remember as the code grows.  And perl is not great for GUI programs.
> > *snarl*
> > There is *no* excuse for lots of globals. Pass your stuff. The most
> > complicated programs I've ever written in perl (I guess that was the
> > billing system for a very small telecom, 600-700 lines or more) had less
> > than 10 globals, and maybe less than five (it's been 6 years since I was
> > there, so I don't remember). Using globals is *lousy*, *lazy* programming,
> > and I wouldn't trust folks that write anything more than a 20 or 30 line
> > script to program *anything* until they'd gone back and internalized
> > modular coding. And then I'd review their code for the next six months
> > 
> Keep in mind that you can do some amazing things with a 30 line...

in just about any language [funny, Perl, Python, PHP, people all trot
this one out to advocate their favorite language].  It is true in all of
them.

Personally I've banned Perl from the network primarily because of the
maintenance disaster that is CPAN.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID help

2010-12-14 Thread Ryan Wagoner
On Tue, Dec 14, 2010 at 2:11 PM,   wrote:
> Ryan Wagoner wrote:
>> On Tue, Dec 14, 2010 at 1:49 PM,   wrote:
>>> Jason T. Slack-Moehrle wrote:
> 
 3. Create other mount points I might want i.e swap, /home, etc
 4. Create RAID1 out of these partitions
>>>
>>> Only if you want each directory RAIDed. DO NOT mirror swap. Bad idea.
>>
>> You want to mirror swap. If a drive fails your swap immediately goes
>> offline. If an application had memory in swap it is now lost.
> 
> Mmmm... but if a drive goes down, then swap could quite easily be in an
> undefined state, part-way through the mirroring.

How is it in an undefined state? The mirror is created with mdadm,
then mkswap is run. At this point when data is written mdadm writes
the data to both drives. Even if a drive failed when the mirror was
initially syncing, both drives would have the same data for any writes
that occurred. Sure the unused space could be out of sync, but that
doesn't matter.

Ryan
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID help

2010-12-14 Thread Ryan Wagoner
On Tue, Dec 14, 2010 at 2:08 PM, Jason T. Slack-Moehrle
 wrote:
> Hi Mark,
>
> Thanks for the reply.
>
>>> 2. Create a RAID 1 out of that partition and use a mount point of /boot
>>
>> Only if you want to mirror the boot partition.
>
> Doesn't one want to mirror that partition?

Yes you want to mirror boot. Otherwise if one drive fails you won't be
able to boot from the other drive. Also make sure you install grub on
both drives.

>
>>>
>>> 3. Create other mount points I might want i.e swap, /home, etc
>>> 4. Create RAID1 out of these partitions
>>
>> Only if you want each directory RAIDed. DO NOT mirror swap. Bad idea.
>> 
>
> Right, I get that, but what is fuzzy is it you, say have a drive with a few 
> partitions that you don't mirror and a few that you do, doesn't the drive you 
> are mirroring to have unused space equal to the amount of the partitions you 
> are not mirroring?

I think you are over complicating this. If you just want / in one
partition or want to use LVM to split / then do the following.

Partition both drives like

sd[ab]1 100M for boot
sd[ab]2 Fill entire space
sd[ab]3 2GB for swap

Create three mdadm RAID 1 mirrors

md0 sd[ab]1 /boot
md1 sd[ab]2 / OR LVM PV
md2 sd[ab]3 swap

If you want your data separate you can use LVM to carve out the space.
Or make one more mdadm mirror for your data.

I do know that RHEL 6 creates boot by default as larger than 100M so
you might want to determine the size to feature proof your setup.

Ryan
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID help

2010-12-14 Thread m . roth
Ryan Wagoner wrote:
> On Tue, Dec 14, 2010 at 2:08 PM, Jason T. Slack-Moehrle
>  wrote:

> I do know that RHEL 6 creates boot by default as larger than 100M so
> you might want to determine the size to feature proof your setup.

*sigh*
I assume that's because Fedora, at least as of 13, needs at *least* 250M,
because it dumps something ridiculous there during its preupgrade, and
then runs from it.

   mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Stripping silent periods from MP3s

2010-12-14 Thread Keith Roberts
On Mon, 13 Dec 2010, John Hodrien wrote:

> To: CentOS mailing list 
> From: John Hodrien 
> Subject: Re: [CentOS] Stripping silent periods from MP3s
> 
> On Mon, 13 Dec 2010, Keith Roberts wrote:
>
>> I know about audacity, but I want a command line tool that
>> will work overnight, on a batch of mp3 files, each about
>> 15MB per hour.
>
> You've got a command line tool that does what you need, it just needs
> rebuilding with mp3 support.  I'm with John Doe's suggestion on this one.
>
> Install lame-devel from rpmforge, download the src.rpm for sox, rpmbuild
> --rebuild it, install it, mp3 support is now in.

Hi all.

Sorry for my lame email replies, (please excuse the pun), 
but I had problems with my email recently.

I've just had to clear out ~6,000 SPAM messages from my new 
hosting providers web mail account :(

Yes - I definately !!!HATE SPAM!!!

I had set up mail redirection to my ISP's webmail. 
It appears that instead of being redirected, the mail was 
accumulating on the new webmail account, and I was getting a 
*copy* sent to my ISP mail account. The spam filtering at my 
ISP is excellent, and this was blocking out the spam being 
sent to my domain name, which was then building up on the 
new webmail account, where I moved my hosting to.

I had to d/l the spam in batches of 1,000, and then delete 
then delete the mail spool inbox, to clear it all.

I'm monitoring this web mail account now, to see if 
SpamAssasin is doing it's job OK.

This was OFF at the karsites domain name web mail account.

It's on now though ;)

Anyway, without hijacking my original post I have the 
following question.

If a package is installed, eg sox, the repo it came from is 
no longer showing. It just says 'installed' which is not 
that helpfull. Maybe the repo should be shown in an 
immutable field, that does not get updated when the package 
is installed?

How can I find out the repo sox is in, so I can enable the 
source code for that particular repo, to rebuild this 
package?

Is there an rpm or yum command I need to tell me where an 
installed package came from?

Kind Regards,

Keith Roberts

-- 
In theory, theory and practice are the same;
in practice they are not.

This email was sent from my laptop with Centos 5.5
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Stripping silent periods from MP3s

2010-12-14 Thread m . roth
Keith Roberts wrote:

> Sorry for my lame email replies, (please excuse the pun),
> but I had problems with my email recently.
>
> I've just had to clear out ~6,000 SPAM messages from my new
> hosting providers web mail account :(
>
*sigh*

I've been getting bounces, because some spambot appears to be forging my
address as a Reply-To, or maybe even as a From. I'm hoping for a bounce
from a legitimate ISP, with a tech support/abuse contact, so I can at
least see the full headers of the crap.

mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Les Mikesell
On 12/14/2010 1:16 PM, Adam Tauno Williams wrote:
>
>
> Personally I've banned Perl from the network primarily because of the
> maintenance disaster that is CPAN.

And your perfectly maintained public source of equivalent functionality 
is in what language?

But, you should rarely if ever use CPAN code directly in Centos for the 
same reasons you wouldn't drop a stock upstream kernel every few days. 
Most of what you are likely to need are packaged - and maintained - in 
EPEL or rpmforge.

--
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Stripping silent periods from MP3s

2010-12-14 Thread Keith Roberts
On Tue, 14 Dec 2010, m.r...@5-cent.us wrote:

> To: CentOS mailing list 
> From: m.r...@5-cent.us
> Subject: Re: [CentOS] Stripping silent periods from MP3s
> 
> Keith Roberts wrote:
> 
>> Sorry for my lame email replies, (please excuse the pun),
>> but I had problems with my email recently.
>>
>> I've just had to clear out ~6,000 SPAM messages from my new
>> hosting providers web mail account :(
>>
> *sigh*
>
> I've been getting bounces, because some spambot appears to be forging my
> address as a Reply-To, or maybe even as a From. I'm hoping for a bounce
> from a legitimate ISP, with a tech support/abuse contact, so I can at
> least see the full headers of the crap.
> 
>mark

I gave up with things like that ages ago Mark.

It takes too much time, even using a tool like 
http://tmda.net

If I can manage to get plain email redirection working on my 
new hosting accounts, then I'll redirect the email again to 
my ISP webmail account. I use fetchmail to download it 
anyway, as waiting for the webmail pages to load is far to 
painfull and time consuming. I'd rather watch paint dry.

Regards,

Keith

-- 
In theory, theory and practice are the same;
in practice they are not.

This email was sent from my laptop with Centos 5.5
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] MegaRAID SAS 9280-24i4e -- Centos support.

2010-12-14 Thread Joseph L. Casale
>Can someone guide me on how to load the drivers so the OS can see the 
>controller as it loads.

Download the driver, you get a dd disk for new installs when your root boots 
off the controller
and an rpm can you use after, and or if the controller is not backing your root.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Stripping silent periods from MP3s

2010-12-14 Thread Bowie Bailey
On 12/14/2010 2:38 PM, m.r...@5-cent.us wrote:
> Keith Roberts wrote:
> 
>> Sorry for my lame email replies, (please excuse the pun),
>> but I had problems with my email recently.
>>
>> I've just had to clear out ~6,000 SPAM messages from my new
>> hosting providers web mail account :(
>>
> *sigh*
>
> I've been getting bounces, because some spambot appears to be forging my
> address as a Reply-To, or maybe even as a From. I'm hoping for a bounce
> from a legitimate ISP, with a tech support/abuse contact, so I can at
> least see the full headers of the crap.

One of my addresses is getting about 500 bounces per day from some
Russian spammer forging the address.  Quite annoying.  This has been
going on for ages now.  Not much I can do about it.

-- 
Bowie
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] was, Re: Stripping silent periods from MP3s, is: forged spam

2010-12-14 Thread m . roth
Bowie Bailey wrote:
> On 12/14/2010 2:38 PM, m.r...@5-cent.us wrote:
>> Keith Roberts wrote:
>> 
>>> Sorry for my lame email replies, (please excuse the pun),
>>> but I had problems with my email recently.
>>>
>>> I've just had to clear out ~6,000 SPAM messages from my new
>>> hosting providers web mail account :(
>>>
>> *sigh*
>>
>> I've been getting bounces, because some spambot appears to be forging my
>> address as a Reply-To, or maybe even as a From. I'm hoping for a bounce
>> from a legitimate ISP, with a tech support/abuse contact, so I can at
>> least see the full headers of the crap.
>
> One of my addresses is getting about 500 bounces per day from some
> Russian spammer forging the address.  Quite annoying.  This has been
> going on for ages now.  Not much I can do about it.

I'd like to see the actual spam. For example, I just got an ordinary
spam... with a phone number in Utah to call. I'm seriously considering
doing something I've been thinking of for a while: finding out who the
number belongs to, and suing *them* under the CAN-SPAM act. I mean, the
spammers are being paid to send out that crap, and I bet a *lot* of it is
for people in the US scamming for $$$.

I could hope that the spam being sent under the bounced notices is the same.

  mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] MegaRAID SAS 9280-24i4e -- Centos support.

2010-12-14 Thread Lisandro Grullon
Joseph,
I am sorry but I didn't understood much of your comment, can you brake it down 
further step by step...I am doing baby steps in centos.

>>> "Joseph L. Casale"  12/14/10 2:52 PM >>>
>Can someone guide me on how to load the drivers so the OS can see the 
>controller as it loads.

Download the driver, you get a dd disk for new installs when your root boots 
off the controller
and an rpm can you use after, and or if the controller is not backing your root.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] was, Re: Stripping silent periods from MP3s, is: forged spam

2010-12-14 Thread Bowie Bailey
On 12/14/2010 3:32 PM, m.r...@5-cent.us wrote:
> Bowie Bailey wrote:
>> On 12/14/2010 2:38 PM, m.r...@5-cent.us wrote:
>>> Keith Roberts wrote:
>>> 
 Sorry for my lame email replies, (please excuse the pun),
 but I had problems with my email recently.

 I've just had to clear out ~6,000 SPAM messages from my new
 hosting providers web mail account :(

>>> *sigh*
>>>
>>> I've been getting bounces, because some spambot appears to be forging my
>>> address as a Reply-To, or maybe even as a From. I'm hoping for a bounce
>>> from a legitimate ISP, with a tech support/abuse contact, so I can at
>>> least see the full headers of the crap.
>> One of my addresses is getting about 500 bounces per day from some
>> Russian spammer forging the address.  Quite annoying.  This has been
>> going on for ages now.  Not much I can do about it.
> I'd like to see the actual spam. For example, I just got an ordinary
> spam... with a phone number in Utah to call. I'm seriously considering
> doing something I've been thinking of for a while: finding out who the
> number belongs to, and suing *them* under the CAN-SPAM act. I mean, the
> spammers are being paid to send out that crap, and I bet a *lot* of it is
> for people in the US scamming for $$$.
>
> I could hope that the spam being sent under the bounced notices is the same.

Most of the bounces I get include the text from the spam, but they are
in russian, so I have no idea what they are selling.  Honestly, I don't
even look at them anymore.  I have a few rules that sort them off into a
folder that I scan through occasionally just to check that nothing
legitimate managed to get in there.

-- 
Bowie
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Spam Email - was Stripping silent periods from MP3s

2010-12-14 Thread Keith Roberts
On Tue, 14 Dec 2010, Bowie Bailey wrote:

> To: CentOS mailing list 
> From: Bowie Bailey 
> Subject: Re: [CentOS] Stripping silent periods from MP3s
> 
> On 12/14/2010 2:38 PM, m.r...@5-cent.us wrote:
>> Keith Roberts wrote:
>> 
>>> Sorry for my lame email replies, (please excuse the pun),
>>> but I had problems with my email recently.
>>>
>>> I've just had to clear out ~6,000 SPAM messages from my new
>>> hosting providers web mail account :(
>>>
>> *sigh*
>>
>> I've been getting bounces, because some spambot appears to be forging my
>> address as a Reply-To, or maybe even as a From. I'm hoping for a bounce
>> from a legitimate ISP, with a tech support/abuse contact, so I can at
>> least see the full headers of the crap.
>
> One of my addresses is getting about 500 bounces per day from some
> Russian spammer forging the address.  Quite annoying.  This has been
> going on for ages now.  Not much I can do about it.

Well you can try tmda as mentioned in an earlier post.

YOu can configure it to DROP any bounced messages, so they 
do not appear in your inbox.

Also if you have a catch-all email address, ie 
whate...@karsites.net, then the spamers just love those, as 
they can make up any user they like for your domain, and 
then spam you till their hearts are content!

tmda also allows you to generate special time-limited email 
addresses, that are checked for their validity as they come 
into your machine.

It can do lots more as well.

I just gave up fiddling with it, as my IPS's spam measures 
have been upgraded, and there was hardly any spam getting 
through when my domain was on their DNS.

Now I have my domain on another DNS, and I'm currently 
collecting my email from their mail server, I need to manage 
the email and spam setings differently.

Kind Regards,

Keith Roberts

---

In theory, theory and practice are the same;
in practice they are not.

This email was sent from my laptop with Centos 5.5
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] was, Re: Stripping silent periods from MP3s, is: forged spam

2010-12-14 Thread Keith Roberts
On Tue, 14 Dec 2010, m.r...@5-cent.us wrote:

> To: CentOS mailing list 
> From: m.r...@5-cent.us
> Subject: [CentOS] was, Re:  Stripping silent periods from MP3s,
> is: forged spam
> 
> Bowie Bailey wrote:
>> On 12/14/2010 2:38 PM, m.r...@5-cent.us wrote:
>>> Keith Roberts wrote:
>>> 
 Sorry for my lame email replies, (please excuse the pun),
 but I had problems with my email recently.

 I've just had to clear out ~6,000 SPAM messages from my new
 hosting providers web mail account :(

>>> *sigh*
>>>
>>> I've been getting bounces, because some spambot appears to be forging my
>>> address as a Reply-To, or maybe even as a From. I'm hoping for a bounce
>>> from a legitimate ISP, with a tech support/abuse contact, so I can at
>>> least see the full headers of the crap.
>>
>> One of my addresses is getting about 500 bounces per day from some
>> Russian spammer forging the address.  Quite annoying.  This has been
>> going on for ages now.  Not much I can do about it.
>
> I'd like to see the actual spam. For example, I just got an ordinary
> spam... with a phone number in Utah to call. I'm seriously considering
> doing something I've been thinking of for a while: finding out who the
> number belongs to, and suing *them* under the CAN-SPAM act. I mean, the
> spammers are being paid to send out that crap, and I bet a *lot* of it is
> for people in the US scamming for $$$.
>
> I could hope that the spam being sent under the bounced notices is the same.
>

Well that's another thing you can do with tmda.

I have written some filters for extracting the subject line 
from spam, and then getting tmda to read those subject lines 
and reject mail with any matching subjects, or part 
thereof.

Keith

>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

-- 
In theory, theory and practice are the same;
in practice they are not.

This email was sent from my laptop with Centos 5.5
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Kwan Lowe
On Tue, Dec 14, 2010 at 2:41 PM, Les Mikesell  wrote:
> On 12/14/2010 1:16 PM, Adam Tauno Williams wrote:
>>
>>
>> Personally I've banned Perl from the network primarily because of the
>> maintenance disaster that is CPAN.
>
> And your perfectly maintained public source of equivalent functionality
> is in what language?
>
> But, you should rarely if ever use CPAN code directly in Centos for the
> same reasons you wouldn't drop a stock upstream kernel every few days.
> Most of what you are likely to need are packaged - and maintained - in
> EPEL or rpmforge.

:)
Thank goodness for CPAN2RPM.  I use it quite often for the occasional
package that is not in the default repos.

As to Perl.. though it still is my preferred language for getting
things done (mainly because I understand it that I first think out
problems in Perl then convert to other languages), I have seen some
bad, really bad Perl code..
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] MegaRAID SAS 9280-24i4e -- Centos support.

2010-12-14 Thread Joseph L. Casale
>I am sorry but I didn't understood much of your comment, can you brake it down 
>further step by step...I am doing baby steps in centos.

Are you installing CentOS to boot off this controller, yes or no?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread m . roth
Kwan Lowe wrote:
> On Tue, Dec 14, 2010 at 2:41 PM, Les Mikesell 
> wrote:
>> On 12/14/2010 1:16 PM, Adam Tauno Williams wrote:
>>>
>>>
>>> Personally I've banned Perl from the network primarily because of the
>>> maintenance disaster that is CPAN.
>>
>> And your perfectly maintained public source of equivalent functionality
>> is in what language?
>>
>> But, you should rarely if ever use CPAN code directly in Centos for the
>> same reasons you wouldn't drop a stock upstream kernel every few days.
>> Most of what you are likely to need are packaged - and maintained - in
>> EPEL or rpmforge.
>
> :)
> Thank goodness for CPAN2RPM.  I use it quite often for the occasional
> package that is not in the default repos.
>
> As to Perl.. though it still is my preferred language for getting
> things done (mainly because I understand it that I first think out
> problems in Perl then convert to other languages), I have seen some
> bad, really bad Perl code..

And your point is? I consider the fact that *every* *single* *time* tomcat
crashes ("you cannot have null pointer exceptions in java", the books all
said), the stack trace is 150 or 200 calls deep. Show me something written
in C, or C++, or perl, or php, or... that's that bad.

And then there was the guy I worked with in the late eighties, who
converted a 3000-line RPGIII program to a 600 line RPGII program, while I
went from a 2200-line COBOL program to 600+ lines

mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID help

2010-12-14 Thread Markus Falb
On 14.12.2010 19:49, m.r...@5-cent.us wrote:
> Hey, Jason,
> 
> Jason T. Slack-Moehrle wrote:
>>
>> I have a new system with 2 Seagate 1TB SATA Enterprise level drives in it.
>>
>> I want to RAID1 (mirror) these drives.
> 
>> So if I simplify, I must:
>> 1. Create a software raid partition on each drive
>> 2. Create a RAID 1 out of that partition and use a mount point of /boot
> 
> Only if you want to mirror the boot partition.
>>
>> 3. Create other mount points I might want i.e swap, /home, etc
>> 4. Create RAID1 out of these partitions
> 
> Only if you want each directory RAIDed. DO NOT mirror swap. Bad idea.
> 

I am surprised. I always done /boot partitions as raid 1 and I always
did swap as raid 1 and therefore I would be interested about any
arguments (well better facts) against doing so.

-- 
Best Regards,
Markus Falb



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Les Mikesell
On 12/14/2010 2:55 PM, Kwan Lowe wrote:
> On Tue, Dec 14, 2010 at 2:41 PM, Les Mikesell  wrote:
>>
>>> Personally I've banned Perl from the network primarily because of the
>>> maintenance disaster that is CPAN.
>>
>> And your perfectly maintained public source of equivalent functionality
>> is in what language?
>>
>> But, you should rarely if ever use CPAN code directly in Centos for the
>> same reasons you wouldn't drop a stock upstream kernel every few days.
>> Most of what you are likely to need are packaged - and maintained - in
>> EPEL or rpmforge.
>
> :)
> Thank goodness for CPAN2RPM.  I use it quite often for the occasional
> package that is not in the default repos.

That keeps sanity in your RPM database, but doesn't help much with the 
situation where functionality in the modules is refactored and you need 
to update (or not) certain versions of different modules together. If 
you are pulling from someone else's repo, they will hopefully have 
tested the versions they've packaged already.

> As to Perl.. though it still is my preferred language for getting
> things done (mainly because I understand it that I first think out
> problems in Perl then convert to other languages), I have seen some
> bad, really bad Perl code..

Yes, perl doesn't stop you from doing bad things.  If it did, it would 
likely stop you from doing good things that no one considered before. 
But, how likely do you think it is that someone who writes bad perl code 
would do better (or maybe even anything...) in a language with more 
annoying syntax rules?

-- 
   Les Mikesell
lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID help

2010-12-14 Thread Markus Falb
On 14.12.2010 19:37, Jason T. Slack-Moehrle wrote:
> Hi All,
> 
> I have a new system with 2 Seagate 1TB SATA Enterprise level drives in it.
> 
> I want to RAID1 (mirror) these drives. 

...

> 1. This system support 16gb of RAM. I have 9gb in it, but I will max it out 
> over the next few months as I find great deals on RAM, what should my SWAP 
> space be? I recall a long while ago that SWAP should match physical RAM.

lvm, see below.

> 
> 2. Any reason I can't just create a single mount point taking up the entire 
> drive and RAID1 the entire thing? Can anyone recommend some ideal mount 
> points and sizes? 
> 
> 3. What should I account for if my /var/www/html will be very large?

If you dont know in advance how your storage is allocated the best way,
use lvm. The space you dont need today is in the pool and be it
/var/www/html or swap or whatever assign it as needed in the future.

Note that its maybe better to not put /boot into lvm.

I would suggest

/dev/md0 -> /boot
/dev/md1 -> lvm with all other partitions including swap

-- 
Best Regards,
Markus Falb



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Natxo Asenjo
On Tue, Dec 14, 2010 at 9:55 PM, Kwan Lowe  wrote:
> On Tue, Dec 14, 2010 at 2:41 PM, Les Mikesell  wrote:
>> On 12/14/2010 1:16 PM, Adam Tauno Williams wrote:
>>>
>>>
>>> Personally I've banned Perl from the network primarily because of the
>>> maintenance disaster that is CPAN.
>>
>> And your perfectly maintained public source of equivalent functionality
>> is in what language?
>>
>> But, you should rarely if ever use CPAN code directly in Centos for the
>> same reasons you wouldn't drop a stock upstream kernel every few days.
>> Most of what you are likely to need are packaged - and maintained - in
>> EPEL or rpmforge.
>
> :)
> Thank goodness for CPAN2RPM.  I use it quite often for the occasional
> package that is not in the default repos.

shhh, do not spoil the ideas that Perl and the CPAN are dreadful beasts
and horrible to maintain ;-)

http://www.slideshare.net/davorg/perl-in-rpmland-presentation

As to debian based distributions, the Perl support there is excellent
and if a module is not available from the repositories, creating your
own package is quite trivial with dh-make-perl.

It kind of gets boring to see Perl attacked for no reason. The problem
is: if you do not counter the claims, they show up in Google and then
people will think Perl is bad. So this is why one has to set it
straight.

It is quite funny that when pythonistas come accross 'bad python', they
say: oh, they *clearly* do not understand the language, that is why this
code is bad. So: why would it be different in any other language?

> As to Perl.. though it still is my preferred language for getting
> things done (mainly because I understand it that I first think out
> problems in Perl then convert to other languages), I have seen some
> bad, really bad Perl code..

of course. Have you seen really bad (C|Python|Visual Basic|shell|.*)? I
guess so too. Will that have to do with the coder of with the language?

-- 
natxo
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Les Mikesell
On 12/14/2010 3:01 PM, m.r...@5-cent.us wrote:
>
>> As to Perl.. though it still is my preferred language for getting
>> things done (mainly because I understand it that I first think out
>> problems in Perl then convert to other languages), I have seen some
>> bad, really bad Perl code..
>
> And your point is? I consider the fact that *every* *single* *time* tomcat
> crashes ("you cannot have null pointer exceptions in java", the books all
> said), the stack trace is 150 or 200 calls deep. Show me something written
> in C, or C++, or perl, or php, or... that's that bad.

That's not really a language problem - that's a programmer assuming that 
exceptions won't happen and not bothering to catch them in appropriate 
places.  But when does tomcat crash anyway?

> And then there was the guy I worked with in the late eighties, who
> converted a 3000-line RPGIII program to a 600 line RPGII program, while I
> went from a 2200-line COBOL program to 600+ lines

If you don't like java's verbosity, you might like groovy.  You can, for 
example, print items from a database in about 3 lines. 
http://docs.codehaus.org/display/GROOVY/Tutorial+6+-+Groovy+SQL
(and from any database type that has a jdbc driver, and from any 
platform that runs java).

-- 
   Les Mikesell
lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] MegaRAID SAS 9280-24i4e -- Centos support.

2010-12-14 Thread Lisandro Grullon
Yes, the entire install will be done from a box using this controller and 10 
SATA HDDs. Probably will load a mirror from two disks partitions to have some 
fault tolerance them do the rest of my partitions using LVM. Just having a 
difficult time loading the LSi driver from the loading process. I wish this can 
be done from a USB stick since the machine does not have a floppy.

>>> "Joseph L. Casale"  12/14/10 3:56 PM >>>
>I am sorry but I didn't understood much of your comment, can you brake it down 
>further step by step...I am doing baby steps in centos.

Are you installing CentOS to boot off this controller, yes or no?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID help

2010-12-14 Thread John R Pierce
On 12/14/10 1:08 PM, Markus Falb wrote:
>> Only if you want each directory RAIDed. DO NOT mirror swap. Bad idea.
>> >  
> I am surprised. I always done /boot partitions as raid 1 and I always
> did swap as raid 1 and therefore I would be interested about any
> arguments (well better facts) against doing so.

if you don't mirror swap, when any swap volume fails your system hard 
crashes, negating the entire purpose of RAID.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Adam Tauno Williams
On Tue, 2010-12-14 at 15:33 -0600, Les Mikesell wrote:
> On 12/14/2010 3:01 PM, m.r...@5-cent.us wrote:
> >> As to Perl.. though it still is my preferred language for getting
> >> things done (mainly because I understand it that I first think out
> >> problems in Perl then convert to other languages), I have seen some
> >> bad, really bad Perl code..
> > And your point is? I consider the fact that *every* *single* *time* tomcat
> > crashes ("you cannot have null pointer exceptions in java", the books all
> > said), the stack trace is 150 or 200 calls deep. Show me something written
> > in C, or C++, or perl, or php, or... that's that bad.
> That's not really a language problem - that's a programmer assuming that 
> exceptions won't happen and not bothering to catch them in appropriate 
> places.  But when does tomcat crash anyway?
> > And then there was the guy I worked with in the late eighties, who
> > converted a 3000-line RPGIII program to a 600 line RPGII program, while I
> > went from a 2200-line COBOL program to 600+ lines
> If you don't like java's verbosity, you might like groovy.  You can, for 
> example, print items from a database in about 3 lines. 
> http://docs.codehaus.org/display/GROOVY/Tutorial+6+-+Groovy+SQL
> (and from any database type that has a jdbc driver, and from any 
> platform that runs java).

Yes, but reference the preceding paragraph "programmer assuming that
exceptions won't happen".  The i-can-do-it-in-three-lines [a real
favorite of Pythonistas] claim should always make one shiver - because
it means the code doesn't manage errors (and is thus bad code).


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread m . roth
Les Mikesell wrote:
> On 12/14/2010 3:01 PM, m.r...@5-cent.us wrote:
>>
>>> As to Perl.. though it still is my preferred language for getting
>>> things done (mainly because I understand it that I first think out
>>> problems in Perl then convert to other languages), I have seen some
>>> bad, really bad Perl code..
>>
>> And your point is? I consider the fact that *every* *single* *time*
>> tomcat crashes ("you cannot have null pointer exceptions in java", the
books
>> all said), the stack trace is 150 or 200 calls deep. Show me something
>> written in C, or C++, or perl, or php, or... that's that bad.
>
> That's not really a language problem - that's a programmer assuming that
> exceptions won't happen and not bothering to catch them in appropriate
> places.  But when does tomcat crash anyway?

 But it *is* a language problem, because any pretty much any
other language, you don't have function calls (oh, sorry, "methods")
hundreds of calls deep.
>
>> And then there was the guy I worked with in the late eighties, who
>> converted a 3000-line RPGIII program to a 600 line RPGII program, while
>> I went from a 2200-line COBOL program to 600+ lines
>
> If you don't like java's verbosity, you might like groovy.  You can, for

OO in general, and java in particular, IMO, is trying to enforce good
coding standards by compiler... except, of course, that it doesn't work.

> example, print items from a database in about 3 lines.

Really? I can do that in one:
sqlplus (or mysql, or whatever)
select * from mytable;

Or from C, using, say, Pro*C:
Exec SQL
  select 
End-Exec

mark, being difficult

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread m . roth
Adam Tauno Williams wrote:
> On Tue, 2010-12-14 at 15:33 -0600, Les Mikesell wrote:
>> On 12/14/2010 3:01 PM, m.r...@5-cent.us wrote:
>> >> As to Perl.. though it still is my preferred language for getting
>> >> things done (mainly because I understand it that I first think out
>> >> problems in Perl then convert to other languages), I have seen some
>> >> bad, really bad Perl code..
>> > And your point is? I consider the fact that *every* *single* *time*
>> > tomcat crashes ("you cannot have null pointer exceptions in java",
the books
>> > all said), the stack trace is 150 or 200 calls deep. Show me something
>> > written in C, or C++, or perl, or php, or... that's that bad.
>> That's not really a language problem - that's a programmer assuming that
>> exceptions won't happen and not bothering to catch them in appropriate
>> places.  But when does tomcat crash anyway?

>> If you don't like java's verbosity, you might like groovy.  You can, for
>> example, print items from a database in about 3 lines.
>> http://docs.codehaus.org/display/GROOVY/Tutorial+6+-+Groovy+SQL
>> (and from any database type that has a jdbc driver, and from any
>> platform that runs java).
>
> Yes, but reference the preceding paragraph "programmer assuming that
> exceptions won't happen".  The i-can-do-it-in-three-lines [a real
> favorite of Pythonistas] claim should always make one shiver - because
> it means the code doesn't manage errors (and is thus bad code).

Um, yeah - that's suitable for a hack, but *never* beyond that. As I said,
nothing stops bad/inexperienced programmers from writing dreadful code,
other than training and experience... including the experience of having
someone else jump on them for writing crap.

  mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Kwan Lowe
On Tue, Dec 14, 2010 at 4:20 PM, Natxo Asenjo  wrote:
>
> It kind of gets boring to see Perl attacked for no reason. The problem
> is: if you do not counter the claims, they show up in Google and then
> people will think Perl is bad. So this is why one has to set it
> straight.
>
> It is quite funny that when pythonistas come accross 'bad python', they
> say: oh, they *clearly* do not understand the language, that is why this
> code is bad. So: why would it be different in any other language?
>
>> As to Perl.. though it still is my preferred language for getting
>> things done (mainly because I understand it that I first think out
>> problems in Perl then convert to other languages), I have seen some
>> bad, really bad Perl code..
>
> of course. Have you seen really bad (C|Python|Visual Basic|shell|.*)? I
> guess so too. Will that have to do with the coder of with the language?
>
It's a balance, certainly...

My experience is that the quicker you can get things done in a
language, the more likely that you will find bad code examples.  I've
seen Perl code that does a system 'ls' then counts characters in the
string to extract the size information.

Some years ago I saw a piece of code that generated code... The
generated code would individually load every element of an array with
a zipcode for lookups.  Yes... Rather than load the array directly,
the code generated a perl script that, on each line, loaded a number
into a new element of the array. The generated code was thousands of
lines long, took an hour to start up, and needed a E250 to run. At the
time my first thought was that the developer got paid based on the
number of lines of code... Still can't imagine why he would take such
an approach.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID help

2010-12-14 Thread Jason T. Slack-Moehrle
Hi,

> If you dont know in advance how your storage is allocated the best way,
> use lvm. The space you dont need today is in the pool and be it
> /var/www/html or swap or whatever assign it as needed in the future.
> 
> Note that its maybe better to not put /boot into lvm.
> 
> I would suggest
> 
> /dev/md0 -> /boot
> /dev/md1 -> lvm with all other partitions including swap

OK, I have done this, I need to create mount points and I am not sure how to 
initially size.

How does everyone size /?

Since I know my /var/www/html will be large, say 300GB, I can create a mount 
point for at least that, but with LVM you are saying I can change the size 
later to increase it?

What other mount points should one have (besides swap)? No users will be 
storing sata on this box.

-Jason
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread m . roth
Kwan Lowe wrote:
> On Tue, Dec 14, 2010 at 4:20 PM, Natxo Asenjo 
> wrote:
>>
>> It kind of gets boring to see Perl attacked for no reason. The problem

>>> As to Perl.. though it still is my preferred language for getting
>>> things done (mainly because I understand it that I first think out
>>> problems in Perl then convert to other languages), I have seen some
>>> bad, really bad Perl code..

> Some years ago I saw a piece of code that generated code... The
> generated code would individually load every element of an array with
> a zipcode for lookups.  Yes... Rather than load the array directly,
> the code generated a perl script that, on each line, loaded a number
> into a new element of the array. The generated code was thousands of
> lines long, took an hour to start up, and needed a E250 to run. At the
> time my first thought was that the developer got paid based on the
> number of lines of code... Still can't imagine why he would take such
> an approach.

Um, that COBOL code I fixed? The program did nothing other than print
labels, about 6 or 8 chars high, of six digits. Y'know,
  44   44
  44   44
  444
   44
   44
? So the previous programmer had written ->36<- (or was it 54?!) seperate
data structures, *each* of which had 0-9. She didn't understand arrays at
all I made one set up numbers, of course, and moved each structure in,
which was how I cut about 1500 lines from the program

  mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID help

2010-12-14 Thread m . roth
Jason T. Slack-Moehrle wrote:
>
>> If you dont know in advance how your storage is allocated the best way,
>> use lvm. The space you dont need today is in the pool and be it
>> /var/www/html or swap or whatever assign it as needed in the future.
>>
>> Note that its maybe better to not put /boot into lvm.

I agree - I'd never boot /boot into lvm. If there's some problem, and I've
seen them, it may not have the lvm driver loaded, and then you're hosed.

> OK, I have done this, I need to create mount points and I am not sure how
> to initially size.
>
> How does everyone size /?

Take a clue from the default partition layout that install wants to use.
Remember, in / will be *all* of your o/s, and third party software, and
updates And /var, unless that's a separate partition, with all your
logs, which can sometimes get *very* big. If you've got the space, give it
100G or 200G.

I like /usr as a partition, and I used to like /var as one.

mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Les Mikesell
On 12/14/2010 3:38 PM, m.r...@5-cent.us wrote:
>
>> If you don't like java's verbosity, you might like groovy.  You can, for
>
> OO in general, and java in particular, IMO, is trying to enforce good
> coding standards by compiler... except, of course, that it doesn't work.
>
>> example, print items from a database in about 3 lines.
>
> Really? I can do that in one:
> sqlplus (or mysql, or whatever)
> select * from mytable;
>
> Or from C, using, say, Pro*C:
> Exec SQL
>select 
> End-Exec
>
>  mark, being difficult

I think besides being difficult you are missing the point - you can't do 
anything else with those values from a sql server's own monitor tool - 
and the way you do even that will vary with the sql server flavor.  With 
groovy you can use any jdbc interface the same way and hand off the 
values to any other java jars or code you have around - maybe use 
jfreereport to graph them with a few more lines, etc.  I suppose you 
could do that in C if you wanted to spend the rest of your life writing it.

-- 
   Les Mikesell
lesmikes...@gmail.com


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread m . roth
Les Mikesell wrote:
> On 12/14/2010 3:38 PM, m.r...@5-cent.us wrote:
>>
>>> If you don't like java's verbosity, you might like groovy.  You can,
>>> for
>>
>> OO in general, and java in particular, IMO, is trying to enforce good
>> coding standards by compiler... except, of course, that it doesn't work.
>>
>>> example, print items from a database in about 3 lines.
>>
>> Really? I can do that in one:
>> sqlplus (or mysql, or whatever)
>> select * from mytable;
>>
>> Or from C, using, say, Pro*C:
>> Exec SQL
>>select 
>> End-Exec
>>
>>  mark, being difficult
>
> I think besides being difficult you are missing the point - you can't do
> anything else with those values from a sql server's own monitor tool -
> and the way you do even that will vary with the sql server flavor.  With
> groovy you can use any jdbc interface the same way and hand off the
> values to any other java jars or code you have around - maybe use
> jfreereport to graph them with a few more lines, etc.  I suppose you
> could do that in C if you wanted to spend the rest of your life writing
> it.

Sure I can, but then, I know a good bit of sql as a language (bleah!). Why
"the rest of my life"? Through the nineties, a *lot* of folks wrote a
*lot* of C with embedded SQL as it's called.

But I think the real point of this thread is that perl isn't bad, bad
programmers (sorry, "developers") will write bad code in any language.

   mark

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT: programming language for morons (newbie friendly language in Open Source world)

2010-12-14 Thread Les Mikesell
On 12/14/2010 3:45 PM, Kwan Lowe wrote:
>
> My experience is that the quicker you can get things done in a
> language, the more likely that you will find bad code examples.  I've
> seen Perl code that does a system 'ls' then counts characters in the
> string to extract the size information.

But that's probably someone who learned to code in C.  If you started 
with perl you'd almost never do character by character operations.

> Some years ago I saw a piece of code that generated code... The
> generated code would individually load every element of an array with
> a zipcode for lookups.  Yes... Rather than load the array directly,
> the code generated a perl script that, on each line, loaded a number
> into a new element of the array. The generated code was thousands of
> lines long, took an hour to start up, and needed a E250 to run. At the
> time my first thought was that the developer got paid based on the
> number of lines of code... Still can't imagine why he would take such
> an approach.

I don't think there is any explanation for that one.

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RAID help

2010-12-14 Thread Markus Falb
On 14.12.2010 22:49, Jason T. Slack-Moehrle wrote:
> Hi,
> 
>> If you dont know in advance how your storage is allocated the best way,
>> use lvm. The space you dont need today is in the pool and be it
>> /var/www/html or swap or whatever assign it as needed in the future.
>>
>> Note that its maybe better to not put /boot into lvm.
>>
>> I would suggest
>>
>> /dev/md0 -> /boot
>> /dev/md1 -> lvm with all other partitions including swap
> 
> OK, I have done this, I need to create mount points and I am not sure how to 
> initially size.

My idea was to assign minimum at now. It could go like this:

lvm volume group -> 1000GB

for the system:
lvm logical volume for / -> 1GB
lvm logical volume for /var -> 1GB
lvm logical volume for /usr -> 1GB

lvm logical volume for /var/www/html -> 50GB

Now you have assigned 53GB out of the 1000 and the other 947GB remains
dynamically assignable from the lvm volume group.

If you need more space in one of the partitions, just grow it, out of
the pool of 947GB. Logical Volumes can be resized online and many
filesystems can be grown online (mounted) too. If the initial 1GB for
some partition proves to be to low, e.g. it has to be increased on every
server you have than adjust it to initial 2GB or whatever size is
adequat for you. I am not after numbers at all. My point is: If you dont
know how to partition, assign at minimum, allowing for future flexibility.

-- 
Best Regards,
Markus



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


  1   2   >