[CentOS] Define an alias with an embeded awk command error ?

2010-03-06 Thread sync
Hi, guys:

   I'm trying to define an alias in .cshrc  with the embeded awk command,
like this :

alias checketh0  "ip add ls eth0 |awk '/inet/{print $2}' |sed -n '1p' "

Then i run "source ~/.cshrc" and run "checketh0" command in the terminal ,
but the result is the following :

   " inet 192.168.18.18/24 brd 192.168.18.255 scope global eth0"

but i want  this result :
192.168.18.18/24


How do I do it ? Any help will be highly appreciated.


Thanks for you help ~
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Is parralel processing automatically done on multi-core CPU's?

2010-03-06 Thread Rudi Ahlers
Hi,

I just noticed this article,
http://www.howtoforge.net/fully-utilizing-your-x-core-cpu which uses
http://code.google.com/p/ppss/ for parralel processing.

So, can anyone tell me if parralel processing happens automatically on
CentOS, or would I need to use this script as well? We mainly have Dual Core
& Dual CPU, Dual Core (i.e. 8 cores) servers and it would be benefitial to
know whether any applications on the server could automatically use all 8
cores, or whether I need todo something on the servers to get this working?


-- 
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] Is parralel processing automatically done on multi-core CPU's?

2010-03-06 Thread MHR
On Sat, Mar 6, 2010 at 1:51 AM, Rudi Ahlers  wrote:
> Hi,
>
> I just noticed this article,
> http://www.howtoforge.net/fully-utilizing-your-x-core-cpu which uses
> http://code.google.com/p/ppss/ for parralel processing.
>
> So, can anyone tell me if parralel processing happens automatically on
> CentOS, or would I need to use this script as well? We mainly have Dual Core
> & Dual CPU, Dual Core (i.e. 8 cores) servers and it would be benefitial to
> know whether any applications on the server could automatically use all 8
> cores, or whether I need todo something on the servers to get this working?
>

I haven't read the articles, but in general the answer is yes and no.

Linux is a multiprocessor capable OS that will automatically use as
many processors as are available and needed to run whatever is in the
running process mix.

However, if your application is single-threaded, it can't be
multi-processed because the OS has no way of knowing how that should
be done.

In order to be run in parallel (note spelling, pls), an application
has to be written to run multiple threads of control be they Linux
threads, multiple processes or whatever.  Most modern OSs are
inherently capable of parallel operation because they will use as many
processes and threads as they need to run the hardware and support
system and user processes that are enabled to do the same.

So, if you want an application to run in parallel, it must be written
to be parallel capable - multiple threads that operate at least
partially independently with appropriate controls to synchronize
critical resources without livelocks or deadlocks.  I don't know the
internal structure of apps I haven't written or worked on, but I'm
pretty sure OOO and probably a fair number of the graphical and
multimedia apps are multiprocessor capable.

The big advantage to having multiple CPUs is being able to run
multiple processes simultaneously, whether that's one multithreaded
app or <#-of-CPUs> different apps, multithreaded or not.

There are other performance issues that also need to be taken into
account, but that can get fairly complex and is not necessarily on
point.

Mark Hull-Richter
Expert Software Developer
Registered Linux User #472807
- sign up at http://counter.li.org/
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] iptables bugs going untended?

2010-03-06 Thread Kai Schaetzl
You should be aware that such bugs will not get fixed in CentOS, they have 
to get fixed in RHEL. You cannot rely that if you put a bug in the CentOS 
bugtracker that is reentered by someone else in the RHEL bugtracker. So, 
if you want to have this resolved you should file it on the RHEL bugzilla 
as well.

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] Define an alias with an embeded awk command error ?

2010-03-06 Thread Alexander Dalloz
Am 06.03.2010 09:47, schrieb sync:
> Hi, guys:
> 
>I'm trying to define an alias in .cshrc  with the embeded awk command,
> like this :
> 
> alias checketh0  "ip add ls eth0 |awk '/inet/{print $2}' |sed -n '1p' "
> 
> Then i run "source ~/.cshrc" and run "checketh0" command in the terminal ,
> but the result is the following :
> 
>" inet 192.168.18.18/24 brd 192.168.18.255 scope global eth0"
> 
> but i want  this result :
> 192.168.18.18/24
> 
> 
> How do I do it ? Any help will be highly appreciated.
> 
> 
> Thanks for you help ~

Within your awk statement the "$2" is eaten and thus awk prints the
whole line.

You can bypass this using following in your .cshrc

set eth0=`/sbin/ip addr ls eth0 | awk '/inet/ { print $2; exit }'`
alias checketh0 "echo $eth0"

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


[CentOS] SNI Apache

2010-03-06 Thread Developer
Hello, 
Anyone knows a repository with apache + mod_ssl + openssl + (other
openssl programs) with SNI support.

I have tried someone but obtain brutal production server crash, because
(now!!! I  remember) ssh uses openssl...

Anyone knows CentOS compatible posible update?

Thanks in advance.




-- 














--
--
http://www.pas-world.com/
http://www.precioventa.com/
http://www.1pc.es/
--
--

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


Re: [CentOS] [Solved] BMC IPMI configuration on centos 5.4 64 BIT Server

2010-03-06 Thread linux-crazy
hI all ,


  I configured the IPMI Setting with the help of Intel management cd
no my imitool as well fence_ipmilan works like an charm on all the 25
nodes.



On Thu, Mar 4, 2010 at 9:52 AM, Rajagopal Swaminathan
 wrote:
> Greetings,
>
> On Thu, Mar 4, 2010 at 12:39 AM, Joseph L. Casale
>  wrote:
>>>Really its very urgent i have to handover the server in next 12 hours.
>
> If you are in India, get somehow the APC or any other power fencing or
> put the authorities on to me I will tell and educate them.
>
> I don't trust HCL much.
>
> Regards,
>
> Rajagopal
> ___
> 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


[CentOS] Linux printing server?

2010-03-06 Thread Roland Roland
hello all,

is there any other way to setup some kind of service that converts user's 
printed jobs to pdf files other than ghostscript + samba?
if theres none, can any1 help me set ghostscript + samba up?




__ Information from ESET Smart Security, version of virus signature 
database 4755 (20100108) __

The message was checked by ESET Smart Security.

http://www.eset.com

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


Re: [CentOS] Linux printing server?

2010-03-06 Thread Frank Cox

On Sat, 2010-03-06 at 21:33 +0200, Roland Roland wrote:
> is there any other way to setup some kind of service that converts
> user's printed jobs to pdf files other than ghostscript + samba?

cups-pdf
-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com

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


[CentOS] compilers a security risk?

2010-03-06 Thread Dave Stevens
I manage a web hosting server that we've recently upgraded, in part so  
we could accommodate a domain that will enable community mapping. In a  
recent exchange of mails one developer said:


"I could build the package directly on the server machine you have,
provided that the potential security risk posed by having compilers
installed is not an issue."

and another said:

"What sort of security risk is there in having compilers installed on a
working server?

"Obviously we can remove the compilers, however when Mapserver or postgis
get updated, we will need to build new packages somewhere. One option:
create a second VM for mapchat. We'll put the build environment on it,
and only turn it on to make new packages."

I don't have enough experience to assess the security issues. Does  
anyone have an opinion on this? It would be simple and feasible to  
allocate another domain as suggested above.

Dave


-- 
"It is no measure of health to be well adjusted to a profoundly sick society."
   Krishnamurti

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


Re: [CentOS] compilers a security risk?

2010-03-06 Thread nate
Dave Stevens wrote:

> I don't have enough experience to assess the security issues. Does
> anyone have an opinion on this? It would be simple and feasible to
> allocate another domain as suggested above.

Unless your running an obscure platform having a compiler on the
system shouldn't be a big deal, if you can upload source code,
you can upload a precompiled binary

nate


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



Re: [CentOS] compilers a security risk?

2010-03-06 Thread Jim Perrin
On Sat, Mar 6, 2010 at 6:02 PM, Dave Stevens  wrote:

> I don't have enough experience to assess the security issues. Does
> anyone have an opinion on this? It would be simple and feasible to
> allocate another domain as suggested above.

The compilers themselves aren't really a security risk, but IF someone
gets into your system, there's no need to provide them with tools they
can use to do their dastardly deeds. I'm a minimalist when it comes to
my production systems. Not having extraneous packages on the system
means (ostensibly) less patching, less applications with potential
holes which in turn means less surface area to attack, etc.


-- 
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] is it possible to recover LVM drive from accidental Fdisk?

2010-03-06 Thread Rudi Ahlers
Hi all,

Does anyone know if it's possible to recover an LVM partition from a drive
that was fdisked? I accidently fdisk'd the wrong drive (had to fdisk a lot
of 160GB drivers from old servers and one still has important data on that
client now wants) by running fdisk /dev/sdc & deleting the partitions. The
drive is still in a another machine and hasn't been rebooted yet, but
there's no no partition on it.



-- 
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] is it possible to recover LVM drive from accidental Fdisk?

2010-03-06 Thread nate
Rudi Ahlers wrote:
> Hi all,
>
> Does anyone know if it's possible to recover an LVM partition from a drive
> that was fdisked? I accidently fdisk'd the wrong drive (had to fdisk a lot
> of 160GB drivers from old servers and one still has important data on that
> client now wants) by running fdisk /dev/sdc & deleting the partitions. The
> drive is still in a another machine and hasn't been rebooted yet, but
> there's no no partition on it.

re-create the original partition table, which is just a map, as long
as you haven't formatted or overwritten data everything should still
be there

Also suggest if your not already doing it set your LVm partitons to
type 8e so it's obvious they are LVM

[r...@dc1-mysql001b:~]# fdisk -l /dev/sdc

Disk /dev/sdc: 2197.9 GB, 2197949513728 bytes
255 heads, 63 sectors/track, 267218 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/sdc1   1  267218  2146428553+  8e  Linux LVM


nate

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