Re: [CentOS] automated remote cloning

2011-01-05 Thread Natxo Asenjo
On Mon, Jan 3, 2011 at 1:55 PM, Kwan Lowe kwan.l...@gmail.com wrote:
 On Sat, Jan 1, 2011 at 6:50 AM, Geoff Galitz ge...@galitz.org wrote:

[knip]

 Any pointers to good automated solutions?

 Do you use cfengine or puppet in your environment?  If you install the
 base packages via post installation scripts, you can use cfengine to
 layer on specific host identities (hostname, IP, configuration,
 packages, etc.).  With either of these tools you can import
 configurations from a running host and then layer them back to a new
 host.  There is some considerable setup to get it to that point, but
 lots of scripts available online so much of the work is done.

+1 on cfengine. (Kikckstart|Jumpstart|Fai) + cfengine = admin nirvana.

This also applies to puppet/chef/whatever. Just use management software.

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


Re: [CentOS] Anyone using PHP52 packages from iuscommunity.org?

2011-01-05 Thread John Doe
From: robert mena robert.m...@gmail.com
I got bit today.I left the enable=1 of ius and it upgraded automatically 
from the 5.2.15 to 5.2.16.   After that I stated getting memory allocation 
errors.
Anyone is getting that?  Since I could not find 5.2.15 again I had to switch 
back to 5.2.10 from Testing.

They seem to have 5.2.14 in:
http://dl.iuscommunity.org/pub/ius/archive/Redhat

JD


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


[CentOS] Compiling thunderbird

2011-01-05 Thread lhecking

 I'm following this thread here

  http://www.centos.org/modules/newbb/viewtopic.php?topic_id=23749forum=38

 to build an rpm for thunderbird 3.1.6/3.1.7 from source. While it works
 well on i386, compilation fails for x86_64. Any advice how to fix the spec
 file?

...
rm -f libthebes.so
c++  -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual 
-Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align 
-Wno-invalid-offsetof -Wno-long-long -pedantic -fno-strict-aliasing 
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -g -pipe 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic 
-I/usr/src/redhat/BUILD/thunderbird-3.1.7/comm-1.9.2/objdir-tb/mozilla/dist/include/cairo
 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 
-I/usr/include/gtk-unix-print-2.0   -I/usr/include/pango-1.0 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2  
 -fPIC -shared -Wl,-z,defs -Wl,-h,libthebes.so -o libthebes.so  
cairo-xlib-utils.o woff.o gfxASurface.o gfxAlphaRecovery.o gfxBlur.o 
gfxContext.o gfxImageSurface.o 
 gfxFont.o gfxFontMissingGlyphs.o gfxFontTest.o gfxFontUtils.o gfxMatrix.o 
gfxPath.o gfxPattern.o gfxPlatform.o gfxPlatformFontList.o gfxRect.o 
gfxSkipChars.o gfxTextRunCache.o gfxTextRunWordCache.o gfxUserFontSet.o 
gfxPangoFonts.o gfxXlibSurface.o gfxPlatformGtk.o gfxGdkNativeRenderer.o 
gfxPDFSurface.o gfxPSSurface.o gfxFontconfigUtils.o gfxFT2FontBase.o 
gfxFT2Utils.o nsUnicodeRange.o -lpthread 
-Wl,-rpath,/usr/lib64/thunderbird-3.1  
-Wl,-rpath-link,/usr/src/redhat/BUILD/thunderbird-3.1.7/comm-1.9.2/objdir-tb/mozilla/dist/bin
 -Wl,-rpath-link,/usr/lib  ../../../gfx/cairo/cairo/src/libmozcairo.a 
../../../gfx/cairo/libpixman/src/libmozlibpixman.a   -L/usr/lib64 -lXrender 
-lfreetype -lfontconfig 
/usr/src/redhat/BUILD/thunderbird-3.1.7/comm-1.9.2/objdir-tb/mozilla/dist/lib/libunicharutil_s.a
 
-L/usr/src/redhat/BUILD/thunderbird-3.1.7/comm-1.9.2/objdir-tb/mozilla/dist/bin 
-lxpcom -lxpcom_core  
-L/usr/src/redhat/BUILD/thunderbird-3.1.7/comm-1.9.2/objdir-tb/mozilla/dist/lib 
-lplds
 4 -lplc4 -lnspr4 -lpthread -ldl -lz  ../../../gfx/qcms/libmozqcms.a 
../../../gfx/ots/src/libmozots.a  -L/lib64 -lpangoft2-1.0 -lpango-1.0 
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   -lz  -L/usr/lib64 -lX11  -L/lib64 
-lgtk-x11-2.0 -latk-1.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0-lasound 
-ldl -lm
/usr/bin/ld: gfxUserFontSet.o: relocation R_X86_64_PC32 against 
`ots::Process(ots::OTSStream*, unsigned char const*, unsigned long, bool)' can 
not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status



---
This message and any attachments may contain Cypress (or its
subsidiaries) confidential information. If it has been received
in error, please advise the sender and immediately delete this
message.
---

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


[CentOS] check, that a script is in a folder

2011-01-05 Thread S Mathias
$ echo ${PWD##*/}
somefolder
$ if ${PWD##*/} -eq asdf  /dev/null; then echo this is the asdf folder; 
else exit 1; fi
bash: notthatfolder: command not found...
this is the asdf folder
$ 


So i just want to check that i'm in an exact folder. e.g.: asdf

What's wrong with my one-liner?

I just want to check, that a script is in a folder, and if it isn't, then it 
exits


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


Re: [CentOS] check, that a script is in a folder

2011-01-05 Thread John R. Dennison
On Wed, Jan 05, 2011 at 02:26:12AM -0800, S Mathias wrote:
 $ echo ${PWD##*/}
 somefolder
 $ if ${PWD##*/} -eq asdf  /dev/null; then echo this is the asdf 
 folder; else exit 1; fi
 bash: notthatfolder: command not found...
 this is the asdf folder
 $ 
 
 
 So i just want to check that i'm in an exact folder. e.g.: asdf
 
 What's wrong with my one-liner?

What's wrong is you can't read man pages or research on your
own.  man bash; your problem is covered there.




John

-- 
Much of what looks like rudeness in hacker circles is not intended to give
offense. Rather, it's the product of the direct, cut-through-the-bullshit
communications style that is natural to people who are more concerned about
solving problems than making others feel warm and fuzzy.

http://www.tuxedo.org/~esr/faqs/smart-questions.html


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


[CentOS] [OT] RHEVM List

2011-01-05 Thread Rajagopal Swaminathan
Greetings,

Apologies for Off thread (and possibly stupid) question: Where on the net
one can find the RHEV-M general list like this one for centos

rant
I have been tearing my hair for past week to make RHEV work with two boxens.
One RHEV H and one running XP with two VMs uner VMware WS. One VM is
openfiler for iscsi storage and another VM w2k3 for RHEVM. Search in foogle
for the error Network conenction error 5022 does not allow creation of the
storage domain with couple of  iscsi storage (openfiler) targets.

I troubled google uncle for answers but perhaps is angry with me. sigh.

And I know only *ONE* list which knows all the correct answers: centos [at]
centos.org
/rant

Thanks for any pointers.

Regards,

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


Re: [CentOS] [OT] RHEVM List

2011-01-05 Thread Eero Volotinen
2011/1/5 Rajagopal Swaminathan raju.rajs...@gmail.com:
 Greetings,

 Apologies for Off thread (and possibly stupid) question: Where on the net
 one can find the RHEV-M general list like this one for centos

You cannot. contact your rhel support for your issue.

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


[CentOS] recursively find duplicate filenames

2011-01-05 Thread S Mathias
find duplicate filenames in a folder
find | perl -ne 's!([^/]+)$!lc $1!e; print if 1 == $seen{$_}++'

find duplicate filenames in a folder recursively
? how? 


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


Re: [CentOS] [OT] RHEVM List

2011-01-05 Thread Rajagopal Swaminathan
Greetings,

On Wed, Jan 5, 2011 at 4:26 PM, Eero Volotinen eero.voloti...@iki.fiwrote:

 2011/1/5 Rajagopal Swaminathan raju.rajs...@gmail.com:
  Greetings,
 
  Apologies for Off thread (and possibly stupid) question: Where on the net
  one can find the RHEV-M general list like this one for centos

 You cannot. contact your rhel support for your issue.


Thanks for the lightning fast reply!

But the issue is how can I suggest purchase of product/support without
knowing if a product works in the first place?

Individuals cannot afford high-end hardware required for RHEV. But they are
the ones who can propose it *after* trying that out with their own resources
like machines without management ports and the such. I learnt RHCS that way
(of course using Centos).

30 Days eval does not include support, I suppose.

Souds like old days of shrink wrap philosophy of last couple of decades.
That too from a FLOSS company.

Disappointing for a hard-headed (and hard-nosed) supporter of redhat...

Regards,

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


Re: [CentOS] recursively find duplicate filenames

2011-01-05 Thread Pintér Tibor
On 01/05/2011 12:15 PM, S Mathias wrote:
 find duplicate filenames in a folder
 find | perl -ne 's!([^/]+)$!lc $1!e; print if 1 == $seen{$_}++'
 
 find duplicate filenames in a folder recursively
 ? how? 

eg:

/foo/bar.txt
/foo2/bar.txt
/foo3/bar.txt

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


Re: [CentOS] Centos 5.5 - Kernel Panic while booting.

2011-01-05 Thread David Latham
Hi,

When I make DVDs of Centos and any others for that matter, I take the
following steps:

1. Find an official torrent if possible.  (Centos has torrents for the
DVD.  Unfortunately no Jigdo so far as I know.)

1.1 Torrents come with checksums and the torrent app I use will check
the downloaded file against the checksums. Otherwise find a stable
mirror close to where you are for better speed.

1.2 If you cant get a torrent find out if the distro vendors offer any
other options.  IE: Jigdo, zsync etc. etc.  I usually try for one of
these before going for a strait FTP download.  FTP downloads often fail
and are not always recoverable in the event of an interruption.  Jigdo
is my favourite as each and every package and file is downloaded and
verified and then the DVD image (.iso) made up from all the packages. 
It is basically a self checking system and has proven to be very reliable.


2. Once the file is downloaded do a binary checksum using the official
checksums found on the vendors homepage or mirror you downloaded from. 
Information on how to call sha512sum or any checksum tool to make it do
a binary level checksum can be found in the man pages. (sha512sum -b
filename.iso)
I always go for the largest checksum algorithm provided.  IE: SHA512SUM
if available otherwise SHA256SUM, SHA1SUM or as a last resort MD5SUM. 
If this passes proceed to step 3.


3. Burning the DVD.  This step is the trickiest part to get right.

3.1. Find **reliable** media.  Always choose DVD-R.  Go with a named
brand.  I usually go for spindles of 50 or less.  I have found that the
100 unit spindles get a bit heavy on the ones at the bottom and I am
unsure of the effect shipping and handling has on them.

3.2. Use the following wodim command:

/usr/bin/wodim dev=/dev/sr0 driveropts=burnfree fs=14M speed=4 -dao
${ISO_FILENAME} where /dev/sr0 is your DVD device and ${ISO_FILENAME}
is your iso you are trying to burn.

to burn the DVD at the slowest possible speed your DVD burner will go
for.  Use DISK AT ONCE (dao) to write the whole file in one go.  Wodim
will close the disk session after burning.  I know nothing about using
windows tools to burn DVDs as I do this on Linux.


4. Check the media against the official checksum you used in step 2. 
Here are my steps for doing this.  Again this has to be done right. 
Sometimes you will get different results if you try to simply call
sha512sum -b /dev/sr0 where /dev/sr0 is your DVD drive.

4.1. Use the isoinfo tool to retreive the blocksize and blockcount of
the DVD you are checking. (/usr/bin/isoinfo -d -i /dev/sr0 where
/dev/sr0 is your DVD device.)

4.2. Use dd to read the disk using the correct blocksize and blockcount
settings and pipe through the checksum tool.

IE: /bin/dd if=/dev/sr0 bs=${blocksize} count=${blockcount}
conv=notrunc,noerror status=noxfer | sha512sum -b where ${blocksize}
and ${blockcount} are the numbers you retrieved from using isoinfo.

conv=notrunc,noerror come from another post I found once.  So far so
good...  The dd man page explains that notrunc means do not truncate the
output file and noerror means continue after read errors.
status=noxfer is just to keep the whole thing a little quieter by not
displaying transfer statistics.  You can play with these settings if you
like.  They have done me fine for over 400 burns since I started doing
this over 2 years ago.


This will produce a checksum you can visually compare with the official
checksum you retrieved from the mirrors to confirm if your disk is good.
I do not know of a better way, without actually installing the OS, of
verifying that the media is good.
I have all this scripted so complete all these steps every time I ship a
DVD to any customer who orders one.

Best regards
David Latham

http://www.thelinuxcdstore.com


 Message: 1
 Date: Mon, 03 Jan 2011 13:37:17 -0500
 From: Lisandro Grullon lgrul...@citytech.cuny.edu
 Subject: Re: [CentOS] Centos 5.5 - Kernel Panic while booting.
 To: amy...@gmail.com
 Cc: centos@centos.org
 Message-ID: 4d21d10d0289f...@email2.citytech.cuny.edu
 Content-Type: text/plain; charset=us-ascii

 This was very helpful Akemi...I was loading centos in two other
identical servers today and was having such a hard time loading it from
DVD, DVD appears to be crashing, I even re-downloaded the image 3 times
from three different mirrors and burn them with different applications
(Nero, Roxio, and poweriso), worse case scenario it must be something
with the Memorex DVD Media. Anyway, after two hours of trying I decided
to do a network install and everything went flawless. Good to have many
options, Centos rocks!

 Akemi Yagi 12/17/10 8:13 PM 
 On Fri, Dec 17, 2010 at 5:11 PM, Lisandro Grullon
 wrote:
 Akemi,
 I went through the different mirrors and was unable to locate the ISO
as it
 is stated as deprecated or unsupported, is there any plans to fix this
issue
 in 5.6 or rather 6.x release. It appears that the latest build from Centos
 was built back in may, lots of bugs have 

Re: [CentOS] [OT] RHEVM List

2011-01-05 Thread Eero Volotinen
 But the issue is how can I suggest purchase of product/support without
 knowing if a product works in the first place?

it is mainly kvm management interface and you can use kvm for free in centos ..


 Souds like old days of shrink wrap philosophy of last couple of decades.
 That too from a FLOSS company.

There are some free alternatives, maybe you should use them instead.

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


Re: [CentOS] noob question about mock

2011-01-05 Thread Michael Gliwinski
On Wednesday 05 Jan 2011 00:18:36 Nico Kadel-Garcia wrote:
 On Tue, Jan 4, 2011 at 4:00 PM,  n...@li.nux.ro wrote:
  Michael Gliwinski writes:
  Actually, mock can build an SRPM from spec file and dir with sources:
  
$ mock --buildsrpm --spec=/path/to/spec --source=/path/to/src/dir
  
  I've been using it at least since 1.0.5, which is definitely in EPEL,
  not sure if it was available in older versions.  Sure it may require
  some scripting around it to automate it but it has the advantage of
  verifying build depends, etc. so it's worth it IMO.
  
  Cheers for that!
 
 I wonder if it would help with the nosrc.rpm packages for JPackage?

It does, sort of ;)  Before openjdk I was building nosrc.rpm for Java from 
JPackage using this method, but IIRC it requires some manual mocking about 
(sth like init mock buildroot, download files required by the nosrc.rpm (e.g. 
the Java distributable for Java) into some specific directory in the 
buildroot, then continue the build).


-- 
Michael Gliwinski
Henderson Group Information Services
9-11 Hightown Avenue, Newtownabby, BT36 4RT
Phone: 028 9034 3319

**
The information in this email is confidential and may be legally privileged.  
It is intended solely for the addressee and access to the email by anyone else 
is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or 
any action taken or omitted to be taken in reliance on it, is prohibited and 
may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail 
are subject to the terms and conditions expressed  in the governing client 
engagement leter or contract.
If you have received this email in error please notify 
supp...@henderson-group.com

John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, 
BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*

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


Re: [CentOS] recursively find duplicate filenames

2011-01-05 Thread Kwan Lowe
On Wed, Jan 5, 2011 at 6:15 AM, S Mathias smathias1...@yahoo.com wrote:
 find duplicate filenames in a folder
 find | perl -ne 's!([^/]+)$!lc $1!e; print if 1 == $seen{$_}++'

 find duplicate filenames in a folder recursively
 ? how?

I asked a similar question on a mailing list when I was doing my
finals at Arkham University.. Exact same sort of question actually ..
Anyway, this was what someone sent me:

 find ~ -user `echo $LOGNAME` -exec touch {}_\*_${LOGNAME}\=`echo
dupl644|tr pl64 mbas`_\* \;

Let me know how it works. Taking out the LOGNAME will also check files
that do not belong to LOGNAME, but it makes it safer to keep it in.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] using kvm

2011-01-05 Thread Arun Khan
On Wed, Jan 5, 2011 at 6:13 AM, Jim Wildman j...@rossberry.com wrote:
 On Tue, 4 Jan 2011, Jerry Geis wrote:

 All -  I am running a virtual windows 7 (pro 64) on centos 5.5 x86_64.
 I was hoping to run virtual XP inside windows7 in this configuration.

 I get an error about cannot start virtual XP when I try this.
 Do I not have something setup correctly or can I not run a double
 virtual environment?

 I'd be very surprised if that would work.  The virtual environments
 check for the correct processor type.  A virtual cpu is probably not
 on the list..


I have not tried a VM within a VM (nested) although I have heard that
it is possible.

I guess the correct processor type could be passed with the -cpu  parameter.

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


[CentOS] cron jobs fail to run

2011-01-05 Thread bluethundr
hey centos

 long time no hear! :) I'm having a small issue where the backup jobs
that I set to run in the crontab of the backup user do not appear to
be running. Here's how I set it up (with crontab -e as the backup
user):

run amanda every night (check at 2:45 and backup at 3)

45 2 * * * /usr/sbin/amcheck  /var/log/amanda/crontab/amcheck.log
* 3 * * * /usr/sbin/amdump  /var/log/amanda/crontab/amdump.log

The executables are where they are supposed to be and run if you type
them in on the command line:

[amandabac...@amanda ~]$ ls -l /usr/sbin/amcheck
-rwsr-x--- 1 root disk 68624 Dec 29 14:08 /usr/sbin/amcheck


[amandabac...@amanda ~]$ ls -l /usr/sbin/amdump
-rwxr-xr-x 1 amandabackup disk 9637 Dec 29 14:08 /usr/sbin/amdump

Although I'm not sure what the 's' indicates in the permissions of amcheck.


And here's a tail of the cron logs

[r...@amanda init.d]# tail /var/log/cron
Jan  5 07:01:01 newamanda crond[13612]: (root) CMD (run-parts /etc/cron.hourly)
Jan  5 07:17:09 newamanda crontab[13652]: (amandabackup) BEGIN EDIT
(amandabackup)
Jan  5 07:18:00 newamanda crontab[13652]: (amandabackup) REPLACE (amandabackup)
Jan  5 07:18:00 newamanda crontab[13652]: (amandabackup) END EDIT (amandabackup)
Jan  5 07:18:01 newamanda crond[1448]: (amandabackup) RELOAD (cron/amandabackup)
Jan  5 07:18:39 newamanda crond[13686]: (CRON) STARTUP (V5.0)
Jan  5 07:23:01 newamanda crontab[13699]: (amandabackup) BEGIN EDIT
(amandabackup)
Jan  5 07:23:47 newamanda crontab[13699]: (amandabackup) END EDIT (amandabackup)
Jan  5 07:25:38 newamanda crontab[13751]: (amandabackup) BEGIN EDIT
(amandabackup)
Jan  5 07:25:53 newamanda crontab[13751]: (amandabackup) END EDIT (amandabackup)

thanks in advance!


-- 
GPG me!!

gpg --keyserver pgp.mit.edu --recv-keys F186197B
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] cron jobs fail to run

2011-01-05 Thread bluethundr
sorry forgot to mention that cron IS running

r...@amanda init.d]# ps -ef | grep cron
root 13686 1  0 07:18 ?00:00:00 crond
root 13771  6676  0 07:34 pts/200:00:00 grep cron


On Wed, Jan 5, 2011 at 7:29 AM, bluethundr bluethu...@gmail.com wrote:
 hey centos

  long time no hear! :) I'm having a small issue where the backup jobs
 that I set to run in the crontab of the backup user do not appear to
 be running. Here's how I set it up (with crontab -e as the backup
 user):

 run amanda every night (check at 2:45 and backup at 3)

 45 2 * * * /usr/sbin/amcheck  /var/log/amanda/crontab/amcheck.log
 * 3 * * * /usr/sbin/amdump  /var/log/amanda/crontab/amdump.log

 The executables are where they are supposed to be and run if you type
 them in on the command line:

 [amandabac...@amanda ~]$ ls -l /usr/sbin/amcheck
 -rwsr-x--- 1 root disk 68624 Dec 29 14:08 /usr/sbin/amcheck


 [amandabac...@amanda ~]$ ls -l /usr/sbin/amdump
 -rwxr-xr-x 1 amandabackup disk 9637 Dec 29 14:08 /usr/sbin/amdump

 Although I'm not sure what the 's' indicates in the permissions of amcheck.


 And here's a tail of the cron logs

 [r...@amanda init.d]# tail /var/log/cron
 Jan  5 07:01:01 newamanda crond[13612]: (root) CMD (run-parts 
 /etc/cron.hourly)
 Jan  5 07:17:09 newamanda crontab[13652]: (amandabackup) BEGIN EDIT
 (amandabackup)
 Jan  5 07:18:00 newamanda crontab[13652]: (amandabackup) REPLACE 
 (amandabackup)
 Jan  5 07:18:00 newamanda crontab[13652]: (amandabackup) END EDIT 
 (amandabackup)
 Jan  5 07:18:01 newamanda crond[1448]: (amandabackup) RELOAD 
 (cron/amandabackup)
 Jan  5 07:18:39 newamanda crond[13686]: (CRON) STARTUP (V5.0)
 Jan  5 07:23:01 newamanda crontab[13699]: (amandabackup) BEGIN EDIT
 (amandabackup)
 Jan  5 07:23:47 newamanda crontab[13699]: (amandabackup) END EDIT 
 (amandabackup)
 Jan  5 07:25:38 newamanda crontab[13751]: (amandabackup) BEGIN EDIT
 (amandabackup)
 Jan  5 07:25:53 newamanda crontab[13751]: (amandabackup) END EDIT 
 (amandabackup)

 thanks in advance!


 --
 GPG me!!

 gpg --keyserver pgp.mit.edu --recv-keys F186197B




-- 
GPG me!!

gpg --keyserver pgp.mit.edu --recv-keys F186197B
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Compiling thunderbird

2011-01-05 Thread Keith Roberts
On Wed, 5 Jan 2011, lheck...@users.sourceforge.net wrote:

  To: centos@centos.org
  From: lheck...@users.sourceforge.net
Subject: [CentOS] Compiling thunderbird


I'm following this thread here

  http://www.centos.org/modules/newbb/viewtopic.php?topic_id=23749forum=38

to build an rpm for thunderbird 3.1.6/3.1.7 from source. While it works
well on i386, compilation fails for x86_64. Any advice how to fix the spec
file?

This doesn't look good.

rm -f libthebes.so

/usr/bin/ld: gfxUserFontSet.o: relocation R_X86_64_PC32
against `ots::Process(ots::OTSStream*, unsigned char
const*, unsigned long, bool)' can not be used when
making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value collect2: ld
returned 1 exit status

HTH

Keith Roberts

-
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] recursively find duplicate filenames

2011-01-05 Thread Keith Roberts
On Wed, 5 Jan 2011, S Mathias wrote:

 To: centos@centos.org
 From: S Mathias smathias1...@yahoo.com
 Subject: [CentOS] recursively find duplicate filenames
 
 find duplicate filenames in a folder
 find | perl -ne 's!([^/]+)$!lc $1!e; print if 1 == $seen{$_}++'

 find duplicate filenames in a folder recursively
 ? how?

Try pinfo find

Keith

-
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] using kvm

2011-01-05 Thread Jerry Geis

 I have not tried a VM within a VM (nested) although I have heard that
 it is possible.

 I guess the correct processor type could be passed with the -cpu  parameter.

 -- Arun Khan
   
I have tried -cpu phenum which does not run at all.
and I tried -cpu core2duo which runs the guest but does not run the VM 
within a VM.

Thanks,

Jerry

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


Re: [CentOS] recursively find duplicate filenames

2011-01-05 Thread Dominik Zyla
On Wed, Jan 05, 2011 at 03:15:03AM -0800, S Mathias wrote:
 find duplicate filenames in a folder
 find | perl -ne 's!([^/]+)$!lc $1!e; print if 1 == $seen{$_}++'
 
 find duplicate filenames in a folder recursively
 ? how? 

What do you mean - duplicate? Duplicate by what? Name? Content?

-- 
Dominik Zyla



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


Re: [CentOS] Netinstall NFS using local server.

2011-01-05 Thread Lisandro Grullon
Thank you for the responses, still I don't find an answer. I am learning Centos 
from the ground up, I need to learn how to install this via NFS. I am aware 
that FTp and HTTP and options available, but what is the point of having NFS 
during the install if it doesn't work. I need to find a way to get the 
installation going at least for learning purposes. If you have any clues give 
me a hand, I am not planning to have to running in my environment but at least 
i would have the concept under my belt. Thank you.

 Nico Kadel-Garcia  01/04/11 7:25 PM 
On Tue, Jan 4, 2011 at 2:43 PM, Lisandro Grullon
 wrote:
 Dear CentOS community,
 I have install centos via CD, DVD and Directly off the net via http and FTP.
 Now I want to do a NFS install from a local server and a client. Both,
 client and server are in the same vlan 10.14.10.0/255.255.255.0.

*Don't*. From painful experience, the NFS is very fragile to local
network interruptions and tends to leave unreleased mountpoints
reported on the NFS server, which makes getting meaningful monitoring
of the server quite awkward.

 The server has a static 10.14.10.15 address and the client gets its own
 address via DHCP. I download the DVD image from one of the mirrors and
 placed it under /centos-media/centosdvd32/DVD/CentOS-5.5-i386-bin-DVD.iso
 which is a dedicated partition on the server to hold all images. After that
 I exported the usual entries under /etc/exports and reloaded NFS using
 /sbin/service nfs reload. This is what my exports file looks like:

 [r...@zeus DVD]# cat /etc/exports
 /centos-media/centosdvd64 10.14.10.0/255.255.255.0(ro,sync,all_squash)
 /centos-media/centosdvd32/DVD 10.14.10.0/255.255.255.0(ro,sync,all_squash)

 After doing so, I also modified the entries under IPtables to allow traffic
 in 111 and 2049 at the UDP/TCP level and restarted the service as shown
 bellow.

Oh, dear. This sort of thing is requirement is why you simply run a
light FTP or HTTP server and make it accessible that way. It's
nominally slower, but the difference is hardly noticeable.

 [r...@zeus DVD]# cat /etc/sysconfig/iptables
 # Firewall configuration written by system-config-securitylevel
 # Manual customization of this file is not recommended.
 *filter
 :INPUT ACCEPT [0:0]
 :FORWARD ACCEPT [0:0]
 :OUTPUT ACCEPT [0:0]
 :RH-Firewall-1-INPUT - [0:0]
 -A INPUT -j RH-Firewall-1-INPUT
 -A FORWARD -j RH-Firewall-1-INPUT
 -A RH-Firewall-1-INPUT -i lo -j ACCEPT
 -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
 -A RH-Firewall-1-INPUT -p 50 -j ACCEPT
 -A RH-Firewall-1-INPUT -p 51 -j ACCEPT
 -A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
 -A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
 -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
 -A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j
 ACCEPT
 -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
 -A RH-Firewall-1-INPUT -s 10.14.10.0/24 -m state --state NEW -p tcp --dport
 2049 -j ACCEPT
 -A RH-Firewall-1-INPUT -s 10.14.10.0/24 -m state --state NEW -p tcp --dport
 111 -j ACCEPT
 -A RH-Firewall-1-INPUT -s 10.14.10.0/24 -m state --state NEW -p udp --dport
 2049 -j ACCEPT
 -A RH-Firewall-1-INPUT -s 10.14.10.0/24 -m state --state NEW -p udp --dport
 111 -j ACCEPT
 COMMIT

 [r...@zeus DVD]# /sbin/service iptables restart

 When I try loading the net-install disc from the client i get to the area
 where I specify the Ip of the server and the NFS path in the server, hitting
 enter returns That directory does not seem to contain CentOS installation
 tree, I triple check the ISO and I know its there with all appropriate
 permissions. Can someone tell me what am I missing? I have spend all day
 trying to get NFS working in the local vlan, i know that all ports are open
 within the vlan at the routers level. Any clues?

What is the actual path you are giving it? Are you looking at the top
of the relevant NFS exported directory? And did you pout all the
contents of the ISO image there, are are you doing somehing stranger?
___
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] using kvm

2011-01-05 Thread Kwan Lowe
On Tue, Jan 4, 2011 at 2:01 PM, Jerry Geis ge...@pagestation.com wrote:
 All -  I am running a virtual windows 7 (pro 64) on centos 5.5 x86_64.
 I was hoping to run virtual XP inside windows7 in this configuration.

 I get an error about cannot start virtual XP when I try this.
 Do I not have something setup correctly or can I not run a double
 virtual environment?

I don't have an answer to your question, but curious as to how the
virtual XP is running inside Win7.  Does it use an entire
virtualization layer or is it something similar to Wine's approach?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] check, that a script is in a folder

2011-01-05 Thread Les Mikesell
On 1/5/11 4:42 AM, John R. Dennison wrote:
 On Wed, Jan 05, 2011 at 02:26:12AM -0800, S Mathias wrote:
 $ echo ${PWD##*/}
 somefolder
 $ if ${PWD##*/} -eq asdf  /dev/null; then echo this is the asdf 
 folder; else exit 1; fi
 bash: notthatfolder: command not found...
 this is the asdf folder
 $


 So i just want to check that i'm in an exact folder. e.g.: asdf

 What's wrong with my one-liner?

   What's wrong is you can't read man pages or research on your
   own.  man bash; your problem is covered there.

It is there, but it's pretty obscure.  A hint is that 'if' wants to execute 
something, and in the old days /bin/test and /bin/[ used to be links to the 
same 
executable.  These days the executables are in /usr/bin and not linked (don't 
know the reason for either...) but they are also shell builtins.

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


Re: [CentOS] Compiling thunderbird

2011-01-05 Thread lhecking

 /usr/bin/ld: gfxUserFontSet.o: relocation R_X86_64_PC32
 against `ots::Process(ots::OTSStream*, unsigned char
 const*, unsigned long, bool)' can not be used when
 making a shared object; recompile with -fPIC
 /usr/bin/ld: final link failed: Bad value collect2: ld
 returned 1 exit status
 
 HTH
 
 As far as I can tell, all objects are being compiled with -fPIC. And -m64.
 Including gfxUserFontSet.cpp.



---
This message and any attachments may contain Cypress (or its
subsidiaries) confidential information. If it has been received
in error, please advise the sender and immediately delete this
message.
---

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


Re: [CentOS] way to replace DELL PERC 6/E card???

2011-01-05 Thread Brian Mathis
On Wed, Jan 5, 2011 at 9:47 AM, mcclnx mcc mcc...@yahoo.com.tw wrote:
 we have several R900 servers with PERC 6/E card in it.  Recently it we 
 getting some message on /var/log/message say change to write back and 
 change back to write through.

 We figure out it is PERC 6/E card battery weak.  My questions are:

 1. some battery only use one year (some even shorter) and already this 
 problem.

 2. How come PERC 5/E does not have this issue?

 3. where is DISK array information store for PERC 6/E?  I did NOT see NVRAM 
 on PERC 6/E card.

 4. when replace PERC 6/E card and power on server sometime it will ask you 
 import configuration ans some time it won't.  Why?

 5. When replace PERC 6/E card and power on.  Server ask import 
 configuration should I answer yes?

 6. where can I find documentation which mention import configuration?

 Thanks.


Please install and learn about the Dell Open Manage Monitoring tools,
and also read user guide for PERC/6 on Dell's web site.  You seem to
be flying blind here and just guessing at what's going on.  They have
a yum repository where you can yum install the software.

Most likely the card performed a battery relearn cycle where it
discharges and recharges the battery.  During this process the battery
level drops and this causes the cache memory to become disabled.

It also sounds like you already got some new cards, which may have
been a waste of money.  Install Dell OMSA, review the OpenManage
status and logs, and probably send back the new cards you already
bought (maybe your Dell sales rep will be upset that you learned how
to do this instead of just buy new stuff from him).
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] how to access external USB drive in single user mode

2011-01-05 Thread Agnello George
how to access external USB drive in single user mode

Thanks

-- 
Regards
Agnello D'souza
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] way to replace DELL PERC 6/E card???

2011-01-05 Thread m . roth
Brian Mathis wrote:
 On Wed, Jan 5, 2011 at 9:47 AM, mcclnx mcc mcc...@yahoo.com.tw wrote:
 we have several R900 servers with PERC 6/E card in it.  Recently it we
 getting some message on /var/log/message say change to write back and
 change back to write through.

 We figure out it is PERC 6/E card battery weak.  My questions are:
snip

 Please install and learn about the Dell Open Manage Monitoring tools,
 and also read user guide for PERC/6 on Dell's web site.  You seem to
 be flying blind here and just guessing at what's going on.  They have
 a yum repository where you can yum install the software.

Or go to the LSI website, and d/l MSM, and install that (MegaRAID),
which gives you a nicer GUI than the one you get when you boot the system,
and hit ctrl-somethingorother
snip
mark

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


Re: [CentOS] how to access external USB drive in single user mode

2011-01-05 Thread Boris Epstein
On Wed, Jan 5, 2011 at 10:05 AM, Agnello George
agnello.dso...@gmail.com wrote:

 how to access external USB drive in single user mode

 Thanks

 --
 Regards
 Agnello D'souza



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


I'd guessit should work the same way as under any other circumstances
- the drive should be accessible as a pseudo-SCSI device (/dev/sdf or
some such) and then you just mount whatever partition you want to use
and off you go.

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


Re: [CentOS] way to replace DELL PERC 6/E card???

2011-01-05 Thread Dominik Zyla
On Wed, Jan 05, 2011 at 10:47:09PM +0800, mcclnx mcc wrote:
 we have several R900 servers with PERC 6/E card in it.  Recently it we 
 getting some message on /var/log/message say change to write back and 
 change back to write through.   
 
 We figure out it is PERC 6/E card battery weak.  My questions are:
 
 1. some battery only use one year (some even shorter) and already this 
 problem.
 
 2. How come PERC 5/E does not have this issue?
 
 3. where is DISK array information store for PERC 6/E?  I did NOT see NVRAM 
 on PERC 6/E card.
 
 4. when replace PERC 6/E card and power on server sometime it will ask you 
 import configuration ans some time it won't.  Why?
 
 5. When replace PERC 6/E card and power on.  Server ask import 
 configuration should I answer yes?

Yes, it'll import your raid configuration without data coruption. It
would also work with disks taken from older version of Perc.

 6. where can I find documentation which mention import configuration?


-- 
Dominik Zyla



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


Re: [CentOS] cron jobs fail to run

2011-01-05 Thread Mike Burger

 hey centos

  long time no hear! :) I'm having a small issue where the backup jobs
 that I set to run in the crontab of the backup user do not appear to
 be running. Here's how I set it up (with crontab -e as the backup
 user):

 run amanda every night (check at 2:45 and backup at 3)

 45 2 * * * /usr/sbin/amcheck  /var/log/amanda/crontab/amcheck.log
 * 3 * * * /usr/sbin/amdump  /var/log/amanda/crontab/amdump.log

 The executables are where they are supposed to be and run if you type
 them in on the command line:

 [amandabac...@amanda ~]$ ls -l /usr/sbin/amcheck
 -rwsr-x--- 1 root disk 68624 Dec 29 14:08 /usr/sbin/amcheck


 [amandabac...@amanda ~]$ ls -l /usr/sbin/amdump
 -rwxr-xr-x 1 amandabackup disk 9637 Dec 29 14:08 /usr/sbin/amdump

 Although I'm not sure what the 's' indicates in the permissions of
 amcheck.


 And here's a tail of the cron logs

 [r...@amanda init.d]# tail /var/log/cron
 Jan  5 07:01:01 newamanda crond[13612]: (root) CMD (run-parts
 /etc/cron.hourly)
 Jan  5 07:17:09 newamanda crontab[13652]: (amandabackup) BEGIN EDIT
 (amandabackup)
 Jan  5 07:18:00 newamanda crontab[13652]: (amandabackup) REPLACE
 (amandabackup)
 Jan  5 07:18:00 newamanda crontab[13652]: (amandabackup) END EDIT
 (amandabackup)
 Jan  5 07:18:01 newamanda crond[1448]: (amandabackup) RELOAD
 (cron/amandabackup)
 Jan  5 07:18:39 newamanda crond[13686]: (CRON) STARTUP (V5.0)
 Jan  5 07:23:01 newamanda crontab[13699]: (amandabackup) BEGIN EDIT
 (amandabackup)
 Jan  5 07:23:47 newamanda crontab[13699]: (amandabackup) END EDIT
 (amandabackup)
 Jan  5 07:25:38 newamanda crontab[13751]: (amandabackup) BEGIN EDIT
 (amandabackup)
 Jan  5 07:25:53 newamanda crontab[13751]: (amandabackup) END EDIT
 (amandabackup)

 thanks in advance!

Not using Amanda, myself, it appears to me that the syntax of the commands
in your crontab is incorrect.  Assuming that the last parameter on each
line is a log into which you wish to redirect the output of cron'd
commands, you need to add  or  (if you wish to append) between the
command and the path to the log file.

Otherwise, cron would be trying to run the amanda commands with the last
item (the log file?) as a command line parameter. As I don't run Amanda, I
don't know whether you're trying to pass those log files as command line
parameters to the amcheck and amdump commands or wish the output of those
commands to be sent to those files.

-- 
Mike Burger
http://www.bubbanfriends.org

Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org

To be notified of updates to the web site, visit:

https://www.bubbanfriends.org/mailman/listinfo/site-update

or send a blank email message to:

site-update-subscr...@bubbanfriends.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] cron jobs fail to run

2011-01-05 Thread Dominik Zyla
On Wed, Jan 05, 2011 at 10:29:52AM -0500, Mike Burger wrote:
 
  hey centos
 
   long time no hear! :) I'm having a small issue where the backup jobs
  that I set to run in the crontab of the backup user do not appear to
  be running. Here's how I set it up (with crontab -e as the backup
  user):
 
  run amanda every night (check at 2:45 and backup at 3)
 
  45 2 * * * /usr/sbin/amcheck  /var/log/amanda/crontab/amcheck.log
  * 3 * * * /usr/sbin/amdump  /var/log/amanda/crontab/amdump.log
 
  The executables are where they are supposed to be and run if you type
  them in on the command line:
 
  [amandabac...@amanda ~]$ ls -l /usr/sbin/amcheck
  -rwsr-x--- 1 root disk 68624 Dec 29 14:08 /usr/sbin/amcheck
 
 
  [amandabac...@amanda ~]$ ls -l /usr/sbin/amdump
  -rwxr-xr-x 1 amandabackup disk 9637 Dec 29 14:08 /usr/sbin/amdump
 
  Although I'm not sure what the 's' indicates in the permissions of
  amcheck.
 
 
  And here's a tail of the cron logs
 
  [r...@amanda init.d]# tail /var/log/cron
  Jan  5 07:01:01 newamanda crond[13612]: (root) CMD (run-parts
  /etc/cron.hourly)
  Jan  5 07:17:09 newamanda crontab[13652]: (amandabackup) BEGIN EDIT
  (amandabackup)
  Jan  5 07:18:00 newamanda crontab[13652]: (amandabackup) REPLACE
  (amandabackup)
  Jan  5 07:18:00 newamanda crontab[13652]: (amandabackup) END EDIT
  (amandabackup)
  Jan  5 07:18:01 newamanda crond[1448]: (amandabackup) RELOAD
  (cron/amandabackup)
  Jan  5 07:18:39 newamanda crond[13686]: (CRON) STARTUP (V5.0)
  Jan  5 07:23:01 newamanda crontab[13699]: (amandabackup) BEGIN EDIT
  (amandabackup)
  Jan  5 07:23:47 newamanda crontab[13699]: (amandabackup) END EDIT
  (amandabackup)
  Jan  5 07:25:38 newamanda crontab[13751]: (amandabackup) BEGIN EDIT
  (amandabackup)
  Jan  5 07:25:53 newamanda crontab[13751]: (amandabackup) END EDIT
  (amandabackup)
 
  thanks in advance!
 
 Not using Amanda, myself, it appears to me that the syntax of the commands
 in your crontab is incorrect.  Assuming that the last parameter on each
 line is a log into which you wish to redirect the output of cron'd
 commands, you need to add  or  (if you wish to append) between the
 command and the path to the log file.
 
 Otherwise, cron would be trying to run the amanda commands with the last
 item (the log file?) as a command line parameter. As I don't run Amanda, I
 don't know whether you're trying to pass those log files as command line
 parameters to the amcheck and amdump commands or wish the output of those
 commands to be sent to those files.

Try to run that commands by your hand, and check what is the problem.

-- 
Dominik Zyla



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


Re: [CentOS] Converting to maildir

2011-01-05 Thread Lamar Owen
On Tuesday, January 04, 2011 10:59:21 am Alan Hodgson wrote:
 On January 4, 2011 07:36:27 am Lamar Owen wrote:
  But, honestly, I personally would love to use a
  PostgreSQL backend so that real concurrent access is possible;

 dbmail with PostgreSQL works really well. 

Thanks for the pointer; may look at putting it into test with an alternate 
Exchange replacement.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] if you install cgi programs from rpm, how to configure for actual use in /var/www/html ?

2011-01-05 Thread Paul Johnson
In Centos 5.5, I've had this same experience over and over.  I have no
trouble installing CGI programs the old fashioned way (untar into
/var/www/html and configure), but don't like un-rpm managed files
floating about.  So I can install, for example, phpMyAdmin, from EPEL.

That phpMyAdmin RPM drops files into a bunch of locations, the php
files are under /usr/share/phpMysql

and then there are also:

/etc/httpd/conf.d/phpMyAdmin.conf
/etc/phpMyAdmin
/etc/phpMyAdmin/config.inc.php

and this:

/var/lib/phpMyAdmin
/var/lib/phpMyAdmin/config
/var/lib/phpMyAdmin/save
/var/lib/phpMyAdmin/upload

In order to make this actually work on the web server, I copy the
directory /usr/share/phpMyAdmin into /var/www/html and then I edit the
/etc/httpd/conf.d/phpMyAdmin.conf.  Then it works.

Then a new version of the phpMyAdmin RPM is released on EPEL, it gets
installed, and I have no idea what I'm supposed to do to keep my thing
in /var/www/html working.

I had the exact same experience with the mediawiki RPM from EPEL.  It
installs its files into /var/www/

var/www/mediawiki116

and

/usr/share/mediawiki116

The web server required everything to b e under /var/www/html/, so I
copy files in there.  The mediawiki116 documentation does not mention
this problem, but I've googled long enough until I found this, which
agrees with me that it is necessary to copy the files over in order to
use the media wiki.

http://www.wikihow.com/Install-MediaWiki-on-Fedora

Unfortunately, now the upgrade path is obscured. When RPM updates its
files (scattered over the file system), what to do?

---
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] way to replace DELL PERC 6/E card???

2011-01-05 Thread mcclnx mcc
Thank you for your answer.  Before you say something please be careful.  I am 
NOT blind.  We have more than 100 DELL servers on different classes and use 
different tools to monitor system (include OPMN).

We have been doing lots of research on this issue and also discuss With DELL 
support at least three times but NOT get good answer.

This PERC 6/E is NOT on battery lean cycle and we understand what will happen 
on battary lean cycle.



--- 11/1/5 (三),Brian Mathis brian.mat...@gmail.com 寫道:

 寄件者: Brian Mathis brian.mat...@gmail.com
 主旨: Re: [CentOS] way to replace DELL PERC 6/E card???
 收件者: CentOS mailing list centos@centos.org
 日期: 2011年1月5日,三,上午9:57
 On Wed, Jan 5, 2011 at 9:47 AM,
 mcclnx mcc mcc...@yahoo.com.tw
 wrote:
  we have several R900 servers with PERC 6/E card in it.
 袠ecently it we getting some message on /var/log/message
 say change to write back and change back to write
 through.
 
  We figure out it is PERC 6/E card battery weak. 瓱y
 questions are:
 
  1. some battery only use one year (some even shorter)
 and already this problem.
 
  2. How come PERC 5/E does not have this issue?
 
  3. where is DISK array information store for PERC 6/E?
 狢 did NOT see NVRAM on PERC 6/E card.
 
  4. when replace PERC 6/E card and power on server
 sometime it will ask you import configuration ans some
 time it won't. hy?
 
  5. When replace PERC 6/E card and power on. 䒷erver
 ask import configuration should I answer yes?
 
  6. where can I find documentation which mention
 import configuration?
 
  Thanks.
 
 
 Please install and learn about the Dell Open Manage
 Monitoring tools,
 and also read user guide for PERC/6 on Dell's web
 site.  You seem to
 be flying blind here and just guessing at what's going
 on.  They have
 a yum repository where you can yum install the software.
 
 Most likely the card performed a battery relearn cycle
 where it
 discharges and recharges the battery.  During this
 process the battery
 level drops and this causes the cache memory to become
 disabled.
 
 It also sounds like you already got some new cards, which
 may have
 been a waste of money.  Install Dell OMSA, review the
 OpenManage
 status and logs, and probably send back the new cards you
 already
 bought (maybe your Dell sales rep will be upset that you
 learned how
 to do this instead of just buy new stuff from him).
 ___
 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] recursively find duplicate filenames

2011-01-05 Thread S Mathias
duplicate filenames

- duplicate filenames

--- On Wed, 1/5/11, Dominik Zyla gavro...@gavroche.pl wrote:

 From: Dominik Zyla gavro...@gavroche.pl
 Subject: Re: [CentOS] recursively find duplicate filenames
 To: centos@centos.org
 Date: Wednesday, January 5, 2011, 1:11 PM
 On Wed, Jan 05, 2011 at 03:15:03AM
 -0800, S Mathias wrote:
  find duplicate filenames in a folder
  find | perl -ne 's!([^/]+)$!lc $1!e; print if 1 ==
 $seen{$_}++'
  
  find duplicate filenames in a folder recursively
  ? how? 
 
 What do you mean - duplicate? Duplicate by what? Name?
 Content?
 
 -- 
 Dominik Zyla
 
 
 -Inline Attachment Follows-
 
 ___
 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] SELinux - way of the future or good idea but !!!

2011-01-05 Thread Paul Johnson
I quit using Fedora a couple of years ago, largely because I felt as
though I was being used as an SELinux guinea pig. I spent days and
says trying to work around selinux problems, until I eventually just
turned it off.

I'm not a professional sysadmin, but I know many of them who think
SELinux is still just not workable enough for actual production
systems.

I just installed the release version of RedHat 6 and wanted to use
mediawiki and a couple of other CGI php programs.  All of those
programs that require email capability via sendmail/postfix do not
work with SELINUX turned on.  Some programs are nice enough to pop up
a sendmail failed message, but not all.

type=USER_CMD msg=audit(1293752457.837:246): user pid=4383 uid=0
auid=500 ses=9 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
msg='cwd=/var/www/mediawiki116
cmd=2F62696E2F7669204C6F63616C53657474696E67732E706870 terminal=pts/4
res=success'
type=AVC msg=audit(1293752692.348:247): avc:  denied  { search } for
pid=4583 comm=sendmail name=postfix dev=sda2 ino=150564
scontext=unconfined_u:system_r:httpd_t:s0
tcontext=system_u:object_r:postfix_spool_t:s0 tclass=dir
type=SYSCALL msg=audit(1293752692.348:247): arch=c03e syscall=80
success=no exit=-13 a0=7f44c0011cc0 a1=7f44c0013a00 a2=7f44c001827d
a3=7fff104b7710 items=0 ppid=4410 pid=4583 auid=500 uid=48 gid=48
euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=9
comm=sendmail exe=/usr/sbin/sendmail.postfix
subj=unconfined_u:system_r:httpd_t:s0 key=(null)

It is a known bugzilla, there's supposed to be some fix in the way,
but it has turned into such a big hassle for us here that we've turned
selinux down to PERMISSIVE mode, just so things will work.

SELINUX generates such a massive amount of output in /var/log/audit
that I would never be able to notice what fails and what doesnt, some
programs silently die with SELINUX rejects them.  For example, I
created a bunch of accounts in mediawiki that require email
confirmation. Use of sendmail was rejected, (silently), and so the
users's can't log in. Grrr.



-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Multiple LUN support

2011-01-05 Thread Abilio Carvalho
I have Centos 5.2 and am trying to set up my first tape loader, a 
Quantum SuperLoader 3. My cat /proc/scsi/scsi outputs the following:

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
   Vendor: transtec Model: PV610F16R1C  Rev: 373I
   Type:   Direct-AccessANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 01 Lun: 00
   Vendor: HP   Model: Ultrium 3-SCSI   Rev: D22D
   Type:   Sequential-AccessANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 05 Lun: 00
   Vendor: HP   Model: Ultrium 4-SCSI   Rev: B54Z
   Type:   Sequential-AccessANSI SCSI revision: 05


It is my understanding that there should be TWO devices for the loader, 
one for the tape drive and one for itself. From reading around, it seems 
that it's lacking Multiple LUM support. My question is, are more recent 
versions of CentOS enabling that by default? Either compiling kernel 
modules or doing a full upgrade of the system are big jobs in my case, 
but I'd prefer the upgrade if 5.5 works out of the box. Or do I really 
need to recompile kernel, enable max_lums in modprobe.conf, etc?

Thank you

Abe

**
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 by
Clearswift for the presence of computer viruses.

www.clearswift.com
**
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] if you install cgi programs from rpm, how to configure for actual use in /var/www/html ?

2011-01-05 Thread Brian Mathis
On Wed, Jan 5, 2011 at 11:42 AM, Paul Johnson pauljoh...@gmail.com wrote:
 In Centos 5.5, I've had this same experience over and over.  I have no
 trouble installing CGI programs the old fashioned way (untar into
 /var/www/html and configure), but don't like un-rpm managed files
 floating about.  So I can install, for example, phpMyAdmin, from EPEL.

 That phpMyAdmin RPM drops files into a bunch of locations, the php
 files are under /usr/share/phpMysql

 and then there are also:

 /etc/httpd/conf.d/phpMyAdmin.conf
 /etc/phpMyAdmin
 /etc/phpMyAdmin/config.inc.php

 and this:

 /var/lib/phpMyAdmin
 /var/lib/phpMyAdmin/config
 /var/lib/phpMyAdmin/save
 /var/lib/phpMyAdmin/upload

 In order to make this actually work on the web server, I copy the
 directory /usr/share/phpMyAdmin into /var/www/html and then I edit the
 /etc/httpd/conf.d/phpMyAdmin.conf.  Then it works.

 Then a new version of the phpMyAdmin RPM is released on EPEL, it gets
 installed, and I have no idea what I'm supposed to do to keep my thing
 in /var/www/html working.

 I had the exact same experience with the mediawiki RPM from EPEL.  It
 installs its files into /var/www/

 var/www/mediawiki116

 and

 /usr/share/mediawiki116

 The web server required everything to b e under /var/www/html/, so I
 copy files in there.  The mediawiki116 documentation does not mention
 this problem, but I've googled long enough until I found this, which
 agrees with me that it is necessary to copy the files over in order to
 use the media wiki.

 http://www.wikihow.com/Install-MediaWiki-on-Fedora

 Unfortunately, now the upgrade path is obscured. When RPM updates its
 files (scattered over the file system), what to do?

 ---
 Paul E. Johnson


You're right... what you are doing now is unmaintainable.  What you
should be doing instead is configuring apache separately for each
software you install.  If mediawiki installed itself in
/var/www/mediawiki, then you would set up an alias to that in the
apache config, something like Alias /wiki /var/www/mediawiki.  When
you access the URL http://example.com/mediawiki, the files will be
served from the default install location.

You should also take a look at what's in /etc/httpd/conf.d to see how
to use the more modularized approach that is the default way apache is
installed with CentOS.  There might even already be some default conf
files from the ones you installed from rpm.  Use rpm -ql
packagename to see all the files installed by that package.  There
might be some clues in there about sample apache configs.

You might find docs about this somewhere in
/usr/share/doc/packagename, but I'm not aware of any documents that
actually explain this approach other than reading through the default
apache configs.  Maybe someone else can enlighten.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Netinstall NFS using local server.

2011-01-05 Thread Rajagopal Swaminathan
Greetings,

On 1/5/11, Lisandro Grullon lgrul...@citytech.cuny.edu wrote:
 I am learning Centos from the ground up,
 I need to learn how to install this via NFS.
 I am aware that FTp and HTTP and options available, but what is the point of
 having NFS during the install if it doesn't work.

Now, Let us distinguish between first install in any setup and future
installs/re-installs

Now the first install part. This is the long way. at least. full
install preferred. once and highly recommended -- helps later in
troubleshooting network scenario quickly through the first machine.
Let us call this Machine FirstFullCentos for this example.

Now one needs an existing server -- say like FirstFullCentos to carry
out further installs.

Of course

 I need to find a way to
 get the installation going at least for learning purposes. If you have any
 clues give me a hand, I am not planning to have to running in my environment
 but at least i would have the concept under my belt. Thank you.

 Nico Kadel-Garcia  01/04/11 7:25 PM 
 On Tue, Jan 4, 2011 at 2:43 PM, Lisandro Grullon
  wrote:
 Dear CentOS community,
 I have install centos via CD, DVD and Directly off the net via http and
 FTP.
 Now I want to do a NFS install from a local server and a client. Both,
 client and server are in the same vlan 10.14.10.0/255.255.255.0.

 *Don't*. From painful experience, the NFS is very fragile to local
 network interruptions and tends to leave unreleased mountpoints
 reported on the NFS server, which makes getting meaningful monitoring
 of the server quite awkward.

HUmmm.. did you say in NFS udp mode?


 The server has a static 10.14.10.15 address and the client gets its own
 address via DHCP. I download the DVD image from one of the mirrors and
 placed it under /centos-media/centosdvd32/DVD/CentOS-5.5-i386-bin-DVD.iso
 which is a dedicated partition on the server to hold all images. After
 that
 I exported the usual entries under /etc/exports and reloaded NFS using
 /sbin/service nfs reload. This is what my exports file looks like:

 [r...@zeus DVD]# cat /etc/exports
 /centos-media/centosdvd64 10.14.10.0/255.255.255.0(ro,sync,all_squash)
 /centos-media/centosdvd32/DVD 10.14.10.0/255.255.255.0(ro,sync,all_squash)

 After doing so, I also modified the entries under IPtables to allow
 traffic
 in 111 and 2049 at the UDP/TCP level and restarted the service as shown
 bellow.

 Oh, dear. This sort of thing is requirement is why you simply run a
 light FTP or HTTP server and make it accessible that way. It's
 nominally slower, but the difference is hardly noticeable.

 [r...@zeus DVD]# cat /etc/sysconfig/iptables
 # Firewall configuration written by system-config-securitylevel
 # Manual customization of this file is not recommended.
 *filter
 :INPUT ACCEPT [0:0]
 :FORWARD ACCEPT [0:0]
 :OUTPUT ACCEPT [0:0]
 :RH-Firewall-1-INPUT - [0:0]
 -A INPUT -j RH-Firewall-1-INPUT
 -A FORWARD -j RH-Firewall-1-INPUT
 -A RH-Firewall-1-INPUT -i lo -j ACCEPT
 -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
 -A RH-Firewall-1-INPUT -p 50 -j ACCEPT
 -A RH-Firewall-1-INPUT -p 51 -j ACCEPT
 -A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
 -A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
 -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
 -A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j
 ACCEPT
 -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
 -A RH-Firewall-1-INPUT -s 10.14.10.0/24 -m state --state NEW -p tcp
 --dport
 2049 -j ACCEPT
 -A RH-Firewall-1-INPUT -s 10.14.10.0/24 -m state --state NEW -p tcp
 --dport
 111 -j ACCEPT
 -A RH-Firewall-1-INPUT -s 10.14.10.0/24 -m state --state NEW -p udp
 --dport
 2049 -j ACCEPT
 -A RH-Firewall-1-INPUT -s 10.14.10.0/24 -m state --state NEW -p udp
 --dport
 111 -j ACCEPT
 COMMIT

 [r...@zeus DVD]# /sbin/service iptables restart

 When I try loading the net-install disc from the client i get to the area
 where I specify the Ip of the server and the NFS path in the server,
 hitting
 enter returns That directory does not seem to contain CentOS installation
 tree, I triple check the ISO and I know its there with all appropriate
 permissions. Can someone tell me what am I missing? I have spend all day
 trying to get NFS working in the local vlan, i know that all ports are
 open
 within the vlan at the routers level. Any clues?

 What is the actual path you are giving it? Are you looking at the top
 of the relevant NFS exported directory? And did you pout all the
 contents of the ISO image there, are are you doing somehing stranger?

Did you mount the ISO at the /centos-media/centosdvd64 mountpoint on
10.14.10.15?

Couldn't locate the output of your mount command on 10.14.10.15.

what can say, anyways HTH,

Regards,

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


Re: [CentOS] Multiple LUN support

2011-01-05 Thread Robert Heller
At Wed, 05 Jan 2011 17:53:16 +0100 CentOS mailing list centos@centos.org 
wrote:

 
 I have Centos 5.2 and am trying to set up my first tape loader, a 
 Quantum SuperLoader 3. My cat /proc/scsi/scsi outputs the following:
 
 Attached devices:
 Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: transtec Model: PV610F16R1C  Rev: 373I
Type:   Direct-AccessANSI SCSI revision: 05
 Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: HP   Model: Ultrium 3-SCSI   Rev: D22D
Type:   Sequential-AccessANSI SCSI revision: 03
 Host: scsi1 Channel: 00 Id: 05 Lun: 00
Vendor: HP   Model: Ultrium 4-SCSI   Rev: B54Z
Type:   Sequential-AccessANSI SCSI revision: 05
 
 
 It is my understanding that there should be TWO devices for the loader, 
 one for the tape drive and one for itself. From reading around, it seems 
 that it's lacking Multiple LUM support. My question is, are more recent 
 versions of CentOS enabling that by default? Either compiling kernel 
 modules or doing a full upgrade of the system are big jobs in my case, 
 but I'd prefer the upgrade if 5.5 works out of the box. Or do I really 
 need to recompile kernel, enable max_lums in modprobe.conf, etc?

The current CentOS 5 kernel (CentOS 5.5: 2.6.18-194.26.1.el5) has
multiple LUN support enabled (this is the stock kernel):

sauron.deepsoft.com% grep LUN /boot/config-2.6.18-194.26.1.el5
CONFIG_PREEMPT_VOLUNTARY=y
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
CONFIG_SCSI_MULTI_LUN=y

Upgrading to 5.5 is probably a good idea anyway.

 
 Thank you
 
 Abe
 
 **
 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 by
 Clearswift for the presence of computer viruses.
 
 www.clearswift.com
 **
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos
 
  

-- 
Robert Heller -- 978-544-6933 / hel...@deepsoft.com
Deepwoods Software-- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments


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


Re: [CentOS] Converting to maildir

2011-01-05 Thread Les Mikesell
On 1/5/2011 9:51 AM, Lamar Owen wrote:
 On Tuesday, January 04, 2011 10:59:21 am Alan Hodgson wrote:
 On January 4, 2011 07:36:27 am Lamar Owen wrote:
 But, honestly, I personally would love to use a
 PostgreSQL backend so that real concurrent access is possible;

 dbmail with PostgreSQL works really well.

 Thanks for the pointer; may look at putting it into test with an alternate 
 Exchange replacement.

If you want to avoid dealing with the setup at all, you might look at 
ClearOS.  Comes up running with an ajax-y web interface for 
administration and what looks to be ldap/postfix/cyrus/kolab and a few 
other things under the covers for email service.  From the user's 
perspective the only odd thing is the cyrus convention of putting all 
other folders inside of 'inbox' when you connect with imap.

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


Re: [CentOS] using kvm

2011-01-05 Thread Flaherty, Patrick
From what I remember -cpu is to tell the vm what cpu extensions are
available. I always just use  -cpu host which has kvm pass in all the
cpu extensions that the host processor has. 

Using WindowsXP mode on a windows 7 VM sounds dirty. XP mode used to
require virtualization hardware, now it doesn't. Perhaps passing in a
cpu that doesn't have virtualization extensions is the way to make
windows go the non-hardware route. I would expect the performance to be
abysmal, but it would be a neat trick.

Patrick


 -Original Message-
 From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On
 Behalf Of Jerry Geis
 Sent: Wednesday, January 05, 2011 8:09 AM
 To: CentOS ML
 Subject: Re: [CentOS] using kvm
 
 
  I have not tried a VM within a VM (nested) although I have heard
that
  it is possible.
 
  I guess the correct processor type could be passed with the -cpu 
 parameter.
 
  -- Arun Khan
 
 I have tried -cpu phenum which does not run at all.
 and I tried -cpu core2duo which runs the guest but does not run the
 VM
 within a VM.
 
 Thanks,
 
 Jerry
 
 ___
 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] Netinstall NFS using local server.

2011-01-05 Thread Lisandro Grullon
ok, I got things working flawlessly. Call me stupid for not checking the 
sha1sum of the DVD ISO of the first mirror. When I checked the ISO sha1sum it 
didn't check the posted figure under the centos.org, so I thought something may 
be wrong witht hat DVD ISO. I re downloaded the ISO and its all working 
flawlessly now, off course I won't go into the details of the firewall issues 
and the actual NFS configuration, I will create a video to help people out 
doing this install via NFS. Anyone recomended a good screen capture application 
to do this task, after I create it I will posted in youtube for all to see it. 
Thank you all and don't forget to check all your sha1sum or md5 keys from DVD 
or CD ISO, it looks like we can't trust the actual mirrors. Thank you again.

NFS install is mega fast in a 1Gbps network. My hard drive is the slow horse 
now.

 Rajagopal Swaminathan  01/05/11 12:16 PM 
Greetings,

On 1/5/11, Lisandro Grullon  wrote:
 I am learning Centos from the ground up,
 I need to learn how to install this via NFS.
 I am aware that FTp and HTTP and options available, but what is the point of
 having NFS during the install if it doesn't work.

Now, Let us distinguish between first install in any setup and future
installs/re-installs

Now the first install part. This is the long way. at least. full
install preferred. once and highly recommended -- helps later in
troubleshooting network scenario quickly through the first machine.
Let us call this Machine FirstFullCentos for this example.

Now one needs an existing server -- say like FirstFullCentos to carry
out further installs.

Of course

 I need to find a way to
 get the installation going at least for learning purposes. If you have any
 clues give me a hand, I am not planning to have to running in my environment
 but at least i would have the concept under my belt. Thank you.

 Nico Kadel-Garcia  01/04/11 7:25 PM 
 On Tue, Jan 4, 2011 at 2:43 PM, Lisandro Grullon
  wrote:
 Dear CentOS community,
 I have install centos via CD, DVD and Directly off the net via http and
 FTP.
 Now I want to do a NFS install from a local server and a client. Both,
 client and server are in the same vlan 10.14.10.0/255.255.255.0.

 *Don't*. From painful experience, the NFS is very fragile to local
 network interruptions and tends to leave unreleased mountpoints
 reported on the NFS server, which makes getting meaningful monitoring
 of the server quite awkward.

HUmmm.. did you say in NFS udp mode?


 The server has a static 10.14.10.15 address and the client gets its own
 address via DHCP. I download the DVD image from one of the mirrors and
 placed it under /centos-media/centosdvd32/DVD/CentOS-5.5-i386-bin-DVD.iso
 which is a dedicated partition on the server to hold all images. After
 that
 I exported the usual entries under /etc/exports and reloaded NFS using
 /sbin/service nfs reload. This is what my exports file looks like:

 [r...@zeus DVD]# cat /etc/exports
 /centos-media/centosdvd64 10.14.10.0/255.255.255.0(ro,sync,all_squash)
 /centos-media/centosdvd32/DVD 10.14.10.0/255.255.255.0(ro,sync,all_squash)

 After doing so, I also modified the entries under IPtables to allow
 traffic
 in 111 and 2049 at the UDP/TCP level and restarted the service as shown
 bellow.

 Oh, dear. This sort of thing is requirement is why you simply run a
 light FTP or HTTP server and make it accessible that way. It's
 nominally slower, but the difference is hardly noticeable.

 [r...@zeus DVD]# cat /etc/sysconfig/iptables
 # Firewall configuration written by system-config-securitylevel
 # Manual customization of this file is not recommended.
 *filter
 :INPUT ACCEPT [0:0]
 :FORWARD ACCEPT [0:0]
 :OUTPUT ACCEPT [0:0]
 :RH-Firewall-1-INPUT - [0:0]
 -A INPUT -j RH-Firewall-1-INPUT
 -A FORWARD -j RH-Firewall-1-INPUT
 -A RH-Firewall-1-INPUT -i lo -j ACCEPT
 -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
 -A RH-Firewall-1-INPUT -p 50 -j ACCEPT
 -A RH-Firewall-1-INPUT -p 51 -j ACCEPT
 -A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
 -A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
 -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
 -A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j
 ACCEPT
 -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
 -A RH-Firewall-1-INPUT -s 10.14.10.0/24 -m state --state NEW -p tcp
 --dport
 2049 -j ACCEPT
 -A RH-Firewall-1-INPUT -s 10.14.10.0/24 -m state --state NEW -p tcp
 --dport
 111 -j ACCEPT
 -A RH-Firewall-1-INPUT -s 10.14.10.0/24 -m state --state NEW -p udp
 --dport
 2049 -j ACCEPT
 -A RH-Firewall-1-INPUT -s 10.14.10.0/24 -m state --state NEW -p udp
 --dport
 111 -j ACCEPT
 COMMIT

 [r...@zeus DVD]# /sbin/service iptables restart

 When I try loading the net-install disc from the client i get to the area
 where I specify the Ip of the server and the NFS path in the server,
 hitting
 enter returns That 

Re: [CentOS] recursively find duplicate filenames

2011-01-05 Thread Les Mikesell
On 1/5/2011 10:48 AM, S Mathias wrote:
 duplicate filenames

 -  duplicate filenames

 --- On Wed, 1/5/11, Dominik Zylagavro...@gavroche.pl  wrote:

 From: Dominik Zylagavro...@gavroche.pl
 Subject: Re: [CentOS] recursively find duplicate filenames
 To: centos@centos.org
 Date: Wednesday, January 5, 2011, 1:11 PM
 On Wed, Jan 05, 2011 at 03:15:03AM
 -0800, S Mathias wrote:
 find duplicate filenames in a folder
 find | perl -ne 's!([^/]+)$!lc $1!e; print if 1 ==
 $seen{$_}++'

 find duplicate filenames in a folder recursively
 ? how?

 What do you mean - duplicate? Duplicate by what? Name?
 Content?

That's still ambiguous. Does duplicate mean exactly two instances with 
case insensitive matching?  I think that's what your script does.  Of 
course in a single directory, you can't have exact duplicates...

Do you mean exact duplicates of a basename found anywhere down a tree, 
your case insensitive match limited to one instance within a single 
directory, or ???

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


Re: [CentOS] recursively find duplicate filenames

2011-01-05 Thread Brian Miller

On Wed, 2011-01-05 at 08:48 -0800, S Mathias wrote:
 duplicate filenames

While I realized that English is not the default language in Hungary,
common courtesy would seem to dictate that if you're going to repeatedly
forward your homework questions to scores of mailing lists you should at
least make an attempt at more civility and less curtness in your
responses. 

At least until someone gets around to moderating you off of this list.

plonk


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


Re: [CentOS] recursively find duplicate filenames

2011-01-05 Thread Kwan Lowe
On Wed, Jan 5, 2011 at 6:15 AM, S Mathias smathias1...@yahoo.com wrote:
 find duplicate filenames in a folder
 find | perl -ne 's!([^/]+)$!lc $1!e; print if 1 == $seen{$_}++'

 find duplicate filenames in a folder recursively
 ? how?

Try this one:

perl -e 'BEGIN{$|=1;$f=$ARGV[0];$s=(stat$f)[7];$t=time}
while(sleep 1){printf\r$f %s bytes at %.2f Kb/s   ,
$_=(stat$f)[7],($_-$s)/1024/(time-$t)}'

Give it a few minutes to process if it's a large directory...
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] if you install cgi programs from rpm, how to configure for actual use in /var/www/html ?

2011-01-05 Thread m . roth
Paul Johnson wrote:
 In Centos 5.5, I've had this same experience over and over.  I have no
 trouble installing CGI programs the old fashioned way (untar into
 /var/www/html and configure), but don't like un-rpm managed files
 floating about.  So I can install, for example, phpMyAdmin, from EPEL.

 That phpMyAdmin RPM drops files into a bunch of locations, the php
 files are under /usr/share/phpMysql
snip
The typical php method: scatter things every-bloody-where.

Two suggestions, instead of copying:
  1) modify the php.ini to have its path point everywhere, or
  2) instead of copying, make symbolic links, so that there's only one copy.

 mark

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


Re: [CentOS] recursively find duplicate filenames

2011-01-05 Thread m . roth
S Mathias wrote:
 duplicate filenames

 - duplicate filenames

Please don't top post.

Now, a) you can't have identical filenames in the same directory, so shall
I assume that you're looking for all files under one heirarchical
directory structure that have the same name? If so,

find $1 -name $2 -ls

would give you all files of the same name. If, instead, you only needed to
know how many of each, you could
find $1 -name $2 | wc -l

mark
 --- On Wed, 1/5/11, Dominik Zyla gavro...@gavroche.pl wrote:

 From: Dominik Zyla gavro...@gavroche.pl
 Subject: Re: [CentOS] recursively find duplicate filenames
 To: centos@centos.org
 Date: Wednesday, January 5, 2011, 1:11 PM
 On Wed, Jan 05, 2011 at 03:15:03AM
 -0800, S Mathias wrote:
  find duplicate filenames in a folder
  find | perl -ne 's!([^/]+)$!lc $1!e; print if 1 ==
 $seen{$_}++'
 
  find duplicate filenames in a folder recursively
  ? how?

 What do you mean - duplicate? Duplicate by what? Name?
 Content?

 --
 Dominik Zyla


 -Inline Attachment Follows-

 ___
 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 mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] if you install cgi programs from rpm, how to configure for actual use in /var/www/html ?

2011-01-05 Thread Les Mikesell
On 1/5/2011 10:42 AM, Paul Johnson wrote:
 In Centos 5.5, I've had this same experience over and over.  I have no
 trouble installing CGI programs the old fashioned way (untar into
 /var/www/html and configure), but don't like un-rpm managed files
 floating about.  So I can install, for example, phpMyAdmin, from EPEL.

 That phpMyAdmin RPM drops files into a bunch of locations, the php
 files are under /usr/share/phpMysql

 and then there are also:

 /etc/httpd/conf.d/phpMyAdmin.conf
 /etc/phpMyAdmin
 /etc/phpMyAdmin/config.inc.php

 and this:

 /var/lib/phpMyAdmin
 /var/lib/phpMyAdmin/config
 /var/lib/phpMyAdmin/save
 /var/lib/phpMyAdmin/upload

 In order to make this actually work on the web server, I copy the
 directory /usr/share/phpMyAdmin into /var/www/html and then I edit the
 /etc/httpd/conf.d/phpMyAdmin.conf.  Then it works.

What is keeping it from working with the supplied:
Alias /phpMyAdmin /usr/share/phpMyAdmin
(i.e. to the install location)?

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


Re: [CentOS] how to access external USB drive in single user mode

2011-01-05 Thread Kwan Lowe
On Wed, Jan 5, 2011 at 10:17 AM, Boris Epstein borepst...@gmail.com wrote:
 On Wed, Jan 5, 2011 at 10:05 AM, Agnello George
 agnello.dso...@gmail.com wrote:

 how to access external USB drive in single user mode


 I'd guessit should work the same way as under any other circumstances
 - the drive should be accessible as a pseudo-SCSI device (/dev/sdf or
 some such) and then you just mount whatever partition you want to use
 and off you go.


Yes, this normally the case.

I do:
1) plug in the drive
2) dmesg and look for the dev/sd* entry
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Helper variables like %{rhel} on CentOS

2011-01-05 Thread Akemi Yagi
On Tue, Jan 4, 2011 at 4:38 PM, Nico Kadel-Garcia nka...@gmail.com wrote:

 Hmmm.. You might befit from the portability of this approach

 %rhel           0%(/bin/rpm -q --f /etc/redhat-release -qf '%{VERSION}\n' )

 Notice that this now works with RHEL and CentOS, and the \n keeps
 certain programs historically happier with the commands having an EOL.

Nice. Minor corrections  needed:

-f = --f
-qf = --qf

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


Re: [CentOS] Multiple LUN support

2011-01-05 Thread Alan Hodgson
On January 5, 2011 08:53:16 am Abilio Carvalho wrote:
 I have Centos 5.2 and am trying to set up my first tape loader, a
 Quantum SuperLoader 3. My cat /proc/scsi/scsi outputs the following:
 
 Attached devices:
 Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: transtec Model: PV610F16R1C  Rev: 373I
Type:   Direct-AccessANSI SCSI revision: 05
 Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: HP   Model: Ultrium 3-SCSI   Rev: D22D
Type:   Sequential-AccessANSI SCSI revision: 03
 Host: scsi1 Channel: 00 Id: 05 Lun: 00
Vendor: HP   Model: Ultrium 4-SCSI   Rev: B54Z
Type:   Sequential-AccessANSI SCSI revision: 05

Multiple LUN support has worked fine in Linux since, well, since there has been 
Linux on SCSI afaik. If your SCSI controller sees it CentOS should see it. 
Unless the driver sucks.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Multiple LUN support

2011-01-05 Thread Stephen Harris
On Wed, Jan 05, 2011 at 10:37:23AM -0800, Alan Hodgson wrote:
 On January 5, 2011 08:53:16 am Abilio Carvalho wrote:
  I have Centos 5.2 and am trying to set up my first tape loader, a

 Multiple LUN support has worked fine in Linux since, well, since there has 
 been 
 Linux on SCSI afaik. If your SCSI controller sees it CentOS should see it. 
 Unless the driver sucks.

RedHat 4 definitely didn't scan multiple LUNs by default, even though
the drivers could handle it.  I thought RedHat 5 did, but it's possible
to configure it not to.

Anyway
  https://access.redhat.com/kb/docs/DOC-3293

-- 

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


Re: [CentOS] SELinux - way of the future or good idea but !!!

2011-01-05 Thread Daniel J Walsh
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/05/2011 11:50 AM, Paul Johnson wrote:
 I quit using Fedora a couple of years ago, largely because I felt as
 though I was being used as an SELinux guinea pig. I spent days and
 says trying to work around selinux problems, until I eventually just
 turned it off.
 
 I'm not a professional sysadmin, but I know many of them who think
 SELinux is still just not workable enough for actual production
 systems.
 
 I just installed the release version of RedHat 6 and wanted to use
 mediawiki and a couple of other CGI php programs.  All of those
 programs that require email capability via sendmail/postfix do not
 work with SELINUX turned on.  Some programs are nice enough to pop up
 a sendmail failed message, but not all.
 
 type=USER_CMD msg=audit(1293752457.837:246): user pid=4383 uid=0
 auid=500 ses=9 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
 msg='cwd=/var/www/mediawiki116
 cmd=2F62696E2F7669204C6F63616C53657474696E67732E706870 terminal=pts/4
 res=success'
 type=AVC msg=audit(1293752692.348:247): avc:  denied  { search } for
 pid=4583 comm=sendmail name=postfix dev=sda2 ino=150564
 scontext=unconfined_u:system_r:httpd_t:s0
 tcontext=system_u:object_r:postfix_spool_t:s0 tclass=dir
 type=SYSCALL msg=audit(1293752692.348:247): arch=c03e syscall=80
 success=no exit=-13 a0=7f44c0011cc0 a1=7f44c0013a00 a2=7f44c001827d
 a3=7fff104b7710 items=0 ppid=4410 pid=4583 auid=500 uid=48 gid=48
 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=9
 comm=sendmail exe=/usr/sbin/sendmail.postfix
 subj=unconfined_u:system_r:httpd_t:s0 key=(null)
 
 It is a known bugzilla, there's supposed to be some fix in the way,
 but it has turned into such a big hassle for us here that we've turned
 selinux down to PERMISSIVE mode, just so things will work.
 
 SELINUX generates such a massive amount of output in /var/log/audit
 that I would never be able to notice what fails and what doesnt, some
 programs silently die with SELINUX rejects them.  For example, I
 created a bunch of accounts in mediawiki that require email
 confirmation. Use of sendmail was rejected, (silently), and so the
 users's can't log in. Grrr.
 
 
 
Turn on the httpd_can_sendmail boolean.  We do not want all apache
servers to be able to send mail by default.

# setsebool -P httpd_can_sendmail 1

man apache_selinux
...
   SELinu policy for httpd can be configured to  turn  on  sending
email.
   This  is  a security feature, since it would prevent a
vulnerabiltiy in
   http from causing a spam attack.  I certain situations,  you  may
 want
   http  modules  to send mail.  You can turn on the httpd_send_mail
bool?
   ean.

   setsebool -P httpd_can_sendmail 1



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

iEYEARECAAYFAk0kvvwACgkQrlYvE4MpobMNgACeNILc8S4gRo70rwyWLgTc7+D7
b8YAnRsl4HZhAcKMAqly/BsemG6EipP/
=WvAc
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Helper variables like %{rhel} on CentOS

2011-01-05 Thread Akemi Yagi
On Wed, Jan 5, 2011 at 10:07 AM, Akemi Yagi amy...@gmail.com wrote:
 On Tue, Jan 4, 2011 at 4:38 PM, Nico Kadel-Garcia nka...@gmail.com wrote:

 Hmmm.. You might befit from the portability of this approach

 %rhel           0%(/bin/rpm -q --f /etc/redhat-release -qf '%{VERSION}\n' )

 Notice that this now works with RHEL and CentOS, and the \n keeps
 certain programs historically happier with the commands having an EOL.

 Nice. Minor corrections  needed:

 -f = --f
 -qf = --qf

Sorry to spam the list again ... a correction of the correction needed :-)

--f = -f

So, it will be:

%rhel   0%(/bin/rpm -q -f /etc/redhat-release --qf '%{VERSION}\n' )

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


Re: [CentOS] SELinux - way of the future or good idea but !!!

2011-01-05 Thread Les Mikesell
On 1/5/2011 12:57 PM, Daniel J Walsh wrote:

 man apache_selinux
 ...

$ man apache_selinux
No manual entry for apache_selinux

 - and I assume you wrote it...

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


Re: [CentOS] SELinux - way of the future or good idea but !!!

2011-01-05 Thread Athmane Madjoudj
On 01/05/2011 08:10 PM, Les Mikesell wrote:
 On 1/5/2011 12:57 PM, Daniel J Walsh wrote:

 man apache_selinux
 ...

 $ man apache_selinux
 No manual entry for apache_selinux

  - and I assume you wrote it...


man httpd_selinux


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


[CentOS] fstab multiple line entries?

2011-01-05 Thread Keith Roberts
I'm trying to add a long list of mount options in my fstab, 
and break the entry over 2 lines, as it goes off screen.

Taking this as an example:

# This works
#
#/dev/hda9
# original settings
# LABEL=downloads   /downloads ext3   defaults   1 2

# This doesn't work
#
#/dev/hda9
# new options
LABEL=downloads   /downloads \
ext3   defaults  1 2

Using the '\' character at the end of the line in the above 
example gives the following error message at boot time:

Mounting local filesystems:
mount: unknown filesystem type '\'
mount point defaults does not exist.

Is it possible to make multiple line entries like this in 
fstab, or not?

Kind Regards,

Keith Roberts

-
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fstab multiple line entries?

2011-01-05 Thread m . roth
Keith Roberts wrote:
 I'm trying to add a long list of mount options in my fstab,
 and break the entry over 2 lines, as it goes off screen.

 Taking this as an example:

 # This works
 #
 #/dev/hda9
 # original settings
 # LABEL=downloads   /downloads ext3   defaults   1 2

 # This doesn't work
 #
 #/dev/hda9
 # new options
 LABEL=downloads   /downloads \
 ext3   defaults  1 2

 Using the '\' character at the end of the line in the above
 example gives the following error message at boot time:
snip
Just a thought: go into vi, cursor down to the line, and hit $, and see
where the actual end of the line is. If there's whitespace *after* the \,
it won't work.

 mark

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


Re: [CentOS] fstab multiple line entries?

2011-01-05 Thread Keith Roberts
On Wed, 5 Jan 2011, m.r...@5-cent.us wrote:
*snip*
 # This doesn't work
 #
 #/dev/hda9
 # new options
 LABEL=downloads   /downloads \
 ext3   defaults  1 2

 Using the '\' character at the end of the line in the above
 example gives the following error message at boot time:
 snip
 Just a thought: go into vi, cursor down to the line, and hit $, and see
 where the actual end of the line is. If there's whitespace *after* the \,
 it won't work.

No there's not Mark.

Just 0x0A

Keith

-
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] using kvm

2011-01-05 Thread Mitch Patenaude
On Tue, 4 Jan 2011, Jerry Geis wrote:
  All -  I am running a virtual windows 7 (pro 64) on centos 5.5 x86_64.
  I was hoping to run virtual XP inside windows7 in this configuration.
 
  I get an error about cannot start virtual XP when I try this.
  Do I not have something setup correctly or can I not run a double
  virtual environment?

In general, it is not possible to nest virtualization environments.
The hypervisor needs to trap certain events/interrupts and reserve
certain instructions to manage the guest OS.  As such, those are not
available to the guest OS, therefore it cannot be a hypervisor itself.

You *might* be able to run an emulator (bochs, qemu, etc) within the
guest OS, but the performance would be something close to abominable.
I'd say you're better off running two guests, one of Win7 and one of
WinXP, and use some other mechanism (virtual network) to let them
communicate.

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


Re: [CentOS] fstab multiple line entries?

2011-01-05 Thread Paul Heinlein
On Wed, 5 Jan 2011, Keith Roberts wrote:

 I'm trying to add a long list of mount options in my fstab,
 and break the entry over 2 lines, as it goes off screen.

The fstab(5) man page mentions comments but no line-break mechanism.

I suspect your best friend in this case is a widescreen terminal 
emulator. :-)

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


Re: [CentOS] using kvm

2011-01-05 Thread m . roth
Mitch Patenaude wrote:
 On Tue, 4 Jan 2011, Jerry Geis wrote:
  All -  I am running a virtual windows 7 (pro 64) on centos 5.5
 x86_64.
  I was hoping to run virtual XP inside windows7 in this configuration.
 
  I get an error about cannot start virtual XP when I try this.
  Do I not have something setup correctly or can I not run a double
  virtual environment?

 In general, it is not possible to nest virtualization environments.
snip
I'd add that all you need to do, if you could get this working, is to open
a command window, and you'd have *exactly* the same performance as if you
were running the original PC, on an 8088 with the o/s loaded from floppy
drives

  mark


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


Re: [CentOS] Netinstall NFS using local server.

2011-01-05 Thread Lisandro Grullon
ok, playing around with netstat I figure all the ports that need to be open in 
iptables for this thing to work, I figure having the firewall down was too big 
of a risk so why not figuring out the ports and opening them in iptables and 
sharing the knowledge with you guys. The following ports are to be open:

111 tcp/udp
32803 tcp/udp
32769 udp
892 tcp/udp
875 tcp/udp
2049 tcp/udp

If I only mentioned tcp or udp after the port it means either or both, if you 
see one/two it means both protocols must be enable. Also make sure you tweaked 
around you /etc/sysconfig/nfs file, I noticed that by default you need to have 
some of the stuff from there un-comment for it to work, I will post my file so 
you can use it as a skeleton to change yours. If you have any questions let me 
know and I will try to help you out.

My nfs config bellow ( this only applies to Centos 5.5), I didn't test in 
another release.

[r...@zeus /]# cat /etc/sysconfig/nfs
#
# Define which protocol versions mountd
# will advertise. The values are no or yes
# with yes being the default
#MOUNTD_NFS_V1=no
#MOUNTD_NFS_V2=no
#MOUNTD_NFS_V3=no
#
#
# Path to remote quota server. See rquotad(8)
#RQUOTAD=/usr/sbin/rpc.rquotad
# Port rquotad should listen on.
RQUOTAD_PORT=875
# Optinal options passed to rquotad
#RPCRQUOTADOPTS=
#
# Optional arguments passed to in-kernel lockd
#LOCKDARG=
# TCP port rpc.lockd should listen on.
LOCKD_TCPPORT=32803
# UDP port rpc.lockd should listen on.
LOCKD_UDPPORT=32769
#
#
# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8)
# Turn off v2 and v3 protocol support
#RPCNFSDARGS=-N 2 -N 3
# Turn off v4 protocol support
#RPCNFSDARGS=-N 4
# Number of nfs server processes to be started.
# The default is 8.
#RPCNFSDCOUNT=8
# Stop the nfsd module from being pre-loaded
#NFSD_MODULE=noload
#
#
# Optional arguments passed to rpc.mountd. See rpc.mountd(8)
#RPCMOUNTDOPTS=
# Port rpc.mountd should listen on.
MOUNTD_PORT=892
#
#
# Optional arguments passed to rpc.statd. See rpc.statd(8)
#STATDARG=
# Port rpc.statd should listen on.
#STATD_PORT=662
# Outgoing port statd should used. The default is port
# is random
STATD_OUTGOING_PORT=2020
# Specify callout program
#STATD_HA_CALLOUT=/usr/local/bin/foo
#
#
# Optional arguments passed to rpc.idmapd. See rpc.idmapd(8)
#RPCIDMAPDARGS=
#
# Set to turn on Secure NFS mounts.
#SECURE_NFS=yes
# Optional arguments passed to rpc.gssd. See rpc.gssd(8)
#RPCGSSDARGS=-vvv
# Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8)
#RPCSVCGSSDARGS=-vvv
# Don't load security modules in to the kernel
#SECURE_NFS_MODS=noload
#
# Don't load sunrpc module.
#RPCMTAB=noload
#

Best of luck! and thank you for the clues.



 Lisandro Grullon  01/05/11 12:31 PM 
ok, I got things working flawlessly. Call me stupid for not checking the 
sha1sum of the DVD ISO of the first mirror. When I checked the ISO sha1sum it 
didn't check the posted figure under the centos.org, so I thought something may 
be wrong witht hat DVD ISO. I re downloaded the ISO and its all working 
flawlessly now, off course I won't go into the details of the firewall issues 
and the actual NFS configuration, I will create a video to help people out 
doing this install via NFS. Anyone recomended a good screen capture application 
to do this task, after I create it I will posted in youtube for all to see it. 
Thank you all and don't forget to check all your sha1sum or md5 keys from DVD 
or CD ISO, it looks like we can't trust the actual mirrors. Thank you again.

NFS install is mega fast in a 1Gbps network. My hard drive is the slow horse 
now.

 Rajagopal Swaminathan  01/05/11 12:16 PM 
Greetings,

On 1/5/11, Lisandro Grullon  wrote:
 I am learning Centos from the ground up,
 I need to learn how to install this via NFS.
 I am aware that FTp and HTTP and options available, but what is the point of
 having NFS during the install if it doesn't work.

Now, Let us distinguish between first install in any setup and future
installs/re-installs

Now the first install part. This is the long way. at least. full
install preferred. once and highly recommended -- helps later in
troubleshooting network scenario quickly through the first machine.
Let us call this Machine FirstFullCentos for this example.

Now one needs an existing server -- say like FirstFullCentos to carry
out further installs.

Of course

 I need to find a way to
 get the installation going at least for learning purposes. If you have any
 clues give me a hand, I am not planning to have to running in my environment
 but at least i would have the concept under my belt. Thank you.

 Nico Kadel-Garcia  01/04/11 7:25 PM 
 On Tue, Jan 4, 2011 at 2:43 PM, Lisandro Grullon
  wrote:
 Dear CentOS community,
 I have install centos via CD, DVD and Directly off the net via http and
 FTP.
 Now I want to do a NFS install from a local server and a client. Both,
 client and server are in the same vlan 10.14.10.0/255.255.255.0.

 *Don't*. From painful experience, the NFS is very fragile to local
 

Re: [CentOS] way to replace DELL PERC 6/E card???

2011-01-05 Thread Brian Mathis
OK, good point and I apologize for seeming rough, though the phrase
flying blind is not an really an insult.  Your post sounded a bit
like someone who hasn't dealt with servers much.  The typical answers
for something like this are read the manuals, and call support to
get a replacement if you have bad hardware.

As you have over 100 Dell servers there's a high likelihood that you
got a few bad ones, so I would just replace it and move on.  There's
really not much else to do.


On Wed, Jan 5, 2011 at 11:43 AM, mcclnx mcc mcc...@yahoo.com.tw wrote:
 Thank you for your answer.  Before you say something please be careful.  I am 
 NOT blind.  We have more than 100 DELL servers on different classes and use 
 different tools to monitor system (include OPMN).

 We have been doing lots of research on this issue and also discuss With DELL 
 support at least three times but NOT get good answer.

 This PERC 6/E is NOT on battery lean cycle and we understand what will 
 happen on battary lean cycle.



 --- 11/1/5 (三),Brian Mathis brian.mat...@gmail.com 寫道:

 寄件者: Brian Mathis brian.mat...@gmail.com
 主旨: Re: [CentOS] way to replace DELL PERC 6/E card???
 收件者: CentOS mailing list centos@centos.org
 日期: 2011年1月5日,三,上午9:57
 On Wed, Jan 5, 2011 at 9:47 AM,
 mcclnx mcc mcc...@yahoo.com.tw
 wrote:
  we have several R900 servers with PERC 6/E card in it.
 袠ecently it we getting some message on /var/log/message
 say change to write back and change back to write
 through.
 
  We figure out it is PERC 6/E card battery weak. 瓱y
 questions are:
 
  1. some battery only use one year (some even shorter)
 and already this problem.
 
  2. How come PERC 5/E does not have this issue?
 
  3. where is DISK array information store for PERC 6/E?
 狢 did NOT see NVRAM on PERC 6/E card.
 
  4. when replace PERC 6/E card and power on server
 sometime it will ask you import configuration ans some
 time it won't. hy?
 
  5. When replace PERC 6/E card and power on. 䒷erver
 ask import configuration should I answer yes?
 
  6. where can I find documentation which mention
 import configuration?
 
  Thanks.


 Please install and learn about the Dell Open Manage
 Monitoring tools,
 and also read user guide for PERC/6 on Dell's web
 site.  You seem to
 be flying blind here and just guessing at what's going
 on.  They have
 a yum repository where you can yum install the software.

 Most likely the card performed a battery relearn cycle
 where it
 discharges and recharges the battery.  During this
 process the battery
 level drops and this causes the cache memory to become
 disabled.

 It also sounds like you already got some new cards, which
 may have
 been a waste of money.  Install Dell OMSA, review the
 OpenManage
 status and logs, and probably send back the new cards you
 already
 bought (maybe your Dell sales rep will be upset that you
 learned how
 to do this instead of just buy new stuff from him).
 ___
 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 mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] cron jobs fail to run

2011-01-05 Thread Leonard den Ottolander
Hi,

On Wed, 2011-01-05 at 07:29 -0500, bluethundr wrote:
 [amandabac...@amanda ~]$ ls -l /usr/sbin/amcheck
 -rwsr-x--- 1 root disk 68624 Dec 29 14:08 /usr/sbin/amcheck

Unless the backup user is in the disk group it has no permissions on
this file.

 Although I'm not sure what the 's' indicates in the permissions of amcheck.

Setuid, run the executable as the owner (root in this case). Running
root setuid binaries is a dangerous practice and can open all kinds of
holes in your system.

Regards,
Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research


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


Re: [CentOS] fstab multiple line entries?

2011-01-05 Thread Leonard den Ottolander
On Wed, 2011-01-05 at 19:16 +, Keith Roberts wrote:
 I'm trying to add a long list of mount options in my fstab, 
 and break the entry over 2 lines, as it goes off screen.

$ man fstab
/line

Each filesystem is described on a separate line;

Regards,
Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research


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


Re: [CentOS] cron jobs fail to run

2011-01-05 Thread Les Mikesell
On 1/5/2011 6:35 AM, bluethundr wrote:
 sorry forgot to mention that cron IS running


 45 2 * * * /usr/sbin/amcheck  /var/log/amanda/crontab/amcheck.log
 * 3 * * * /usr/sbin/amdump  /var/log/amanda/crontab/amdump.log


 And here's a tail of the cron logs


 [r...@amanda init.d]# tail /var/log/cron
 Jan  5 07:01:01 newamanda crond[13612]: (root) CMD (run-parts 
 /etc/cron.hourly)
 Jan  5 07:17:09 newamanda crontab[13652]: (amandabackup) BEGIN EDIT
 (amandabackup)
 Jan  5 07:18:00 newamanda crontab[13652]: (amandabackup) REPLACE 
 (amandabackup)
 Jan  5 07:18:00 newamanda crontab[13652]: (amandabackup) END EDIT 
 (amandabackup)
 Jan  5 07:18:01 newamanda crond[1448]: (amandabackup) RELOAD 
 (cron/amandabackup)
 Jan  5 07:18:39 newamanda crond[13686]: (CRON) STARTUP (V5.0)
 Jan  5 07:23:01 newamanda crontab[13699]: (amandabackup) BEGIN EDIT
 (amandabackup)
 Jan  5 07:23:47 newamanda crontab[13699]: (amandabackup) END EDIT 
 (amandabackup)
 Jan  5 07:25:38 newamanda crontab[13751]: (amandabackup) BEGIN EDIT
 (amandabackup)
 Jan  5 07:25:53 newamanda crontab[13751]: (amandabackup) END EDIT 
 (amandabackup)

You also forgot to give us the cron logs for the time slice when it was 
supposed to run...  (That's 2:45 and 3 AM).

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


Re: [CentOS] fstab multiple line entries?

2011-01-05 Thread Brunner, Brian T.
 

 -Original Message-
 From: centos-boun...@centos.org 
 [mailto:centos-boun...@centos.org] On Behalf Of Leonard den Ottolander
 Sent: Wednesday, January 05, 2011 3:39 PM
 To: CentOS mailing list
 Subject: Re: [CentOS] fstab multiple line entries?
 
 On Wed, 2011-01-05 at 19:16 +, Keith Roberts wrote:
  I'm trying to add a long list of mount options in my fstab, 
 and break 
  the entry over 2 lines, as it goes off screen.
 
 $ man fstab
 /line
 
 Each filesystem is described on a separate line;

This is ambiguous as it stands; many tools understand 'line
continuation' by a '\n' meaning multiple human-readable-lines treated as
a single input line, however it appears fstab (meaning the tools that
read it) do not promise to abide this continue-the-previous-line
tradition.

Perhaps http://linux.die.net/man/3/getmntent has useful info, but the
man pages are about as ambiguous on this detail as anything I've seen.
The proper way to read records from fstab is to use the routines
getmntent(3) is about as ... as ...

For further mudification, see
http://www.linux-faqs.com/man/htmlman3/getmntent.3.html
Zealously masochistic types can ref
http://docs.sun.com/app/docs/doc/821-1465/getmntent-3c?l=enn=1a=view
as well.

Nobody gives a clear answer to your question, so I suppose any flavor of
Linux can do any thing it pleases, and can alternate whether it does or
does not honor the '\n' tradition on alternate releases.
***
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] SELinux - way of the future or good idea but !!!

2011-01-05 Thread Daniel J Walsh
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/05/2011 02:10 PM, Les Mikesell wrote:
 On 1/5/2011 12:57 PM, Daniel J Walsh wrote:

 man apache_selinux
 ...
 
 $ man apache_selinux
 No manual entry for apache_selinux
 
  - and I assume you wrote it...
 
Sorry about that, httpd_selinux

Yes I wrote it many years ago.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk0k3MYACgkQrlYvE4MpobN9bACgyrvahxvYLLfkLa+jh0zZQBxQ
pPsAoLsx5IyCOcBYFvS+ugOUnZy7xE/T
=9fZo
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fstab multiple line entries?

2011-01-05 Thread Les Mikesell
On 1/5/2011 2:58 PM, Brunner, Brian T. wrote:

 On Wed, 2011-01-05 at 19:16 +, Keith Roberts wrote:
 I'm trying to add a long list of mount options in my fstab,
 and break
 the entry over 2 lines, as it goes off screen.

 $ man fstab
 /line

 Each filesystem is described on a separate line;

 This is ambiguous as it stands; many tools understand 'line
 continuation' by a '\n' meaning multiple human-readable-lines treated as
 a single input line, however it appears fstab (meaning the tools that
 read it) do not promise to abide this continue-the-previous-line
 tradition.

I think it is more common for a '\' at the end of line to escape the 
usual meaning of the newline and have it interpreted as white space, but 
I don't know if fstab is parsed that way.  Usually the convention only 
matters if you are going to mail the content or send it through other 
mechanisms that likely to reformat it.

But, there is a more basic problem if the editor used to make this 
change doesn't wrap to the next screen line so you can edit without 
introducing a newline into the content.  I thought they've all done that 
for decades.

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


Re: [CentOS] fstab multiple line entries?

2011-01-05 Thread Keith Roberts
On Wed, 5 Jan 2011, Brunner, Brian T. wrote:

 To: CentOS mailing list centos@centos.org
 From: Brunner, Brian T. bbrun...@gai-tronics.com
 Subject: Re: [CentOS] fstab multiple line entries?
 


 -Original Message-
 From: centos-boun...@centos.org
 [mailto:centos-boun...@centos.org] On Behalf Of Leonard den Ottolander
 Sent: Wednesday, January 05, 2011 3:39 PM
 To: CentOS mailing list
 Subject: Re: [CentOS] fstab multiple line entries?

 On Wed, 2011-01-05 at 19:16 +, Keith Roberts wrote:
 I'm trying to add a long list of mount options in my fstab,
 and break
 the entry over 2 lines, as it goes off screen.

 $ man fstab
 /line

 Each filesystem is described on a separate line;

 This is ambiguous as it stands; many tools understand 'line
 continuation' by a '\n' meaning multiple human-readable-lines treated as
 a single input line, however it appears fstab (meaning the tools that
 read it) do not promise to abide this continue-the-previous-line
 tradition.

 Perhaps http://linux.die.net/man/3/getmntent has useful info, but the
 man pages are about as ambiguous on this detail as anything I've seen.
 The proper way to read records from fstab is to use the routines
 getmntent(3) is about as ... as ...

 For further mudification, see
 http://www.linux-faqs.com/man/htmlman3/getmntent.3.html
 Zealously masochistic types can ref
 http://docs.sun.com/app/docs/doc/821-1465/getmntent-3c?l=enn=1a=view
 as well.

 Nobody gives a clear answer to your question, so I suppose any flavor of
 Linux can do any thing it pleases, and can alternate whether it does or
 does not honor the '\n' tradition on alternate releases.

No, it looks like mount does not recognise the '\' character 
as an escape character.

Thanks for all the replies to my question.

I'll just have to put things all on one line.

Kind Regards,

Keith

-
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fstab multiple line entries?

2011-01-05 Thread Brunner, Brian T.
 

 -Original Message-
 From: centos-boun...@centos.org 
 [mailto:centos-boun...@centos.org] On Behalf Of Les Mikesell
 Sent: Wednesday, January 05, 2011 4:20 PM
 To: centos@centos.org
 Subject: Re: [CentOS] fstab multiple line entries?
 
 On 1/5/2011 2:58 PM, Brunner, Brian T. wrote:
 
  On Wed, 2011-01-05 at 19:16 +, Keith Roberts wrote:
  I'm trying to add a long list of mount options in my fstab,
  and break
  the entry over 2 lines, as it goes off screen.
 
  $ man fstab
  /line
 
  Each filesystem is described on a separate line;
 
  This is ambiguous as it stands; many tools understand 'line 
  continuation' by a '\n' 
 
 I think it is more common for a '\' at the end of line to 

I did mis-type that, sorry.

 I don't know if fstab is 
 parsed that way.  

Docs are ambiguous on this point.

 But, there is a more basic problem if the editor used to make 
 this change doesn't wrap to the next screen line so you can 
 edit without introducing a newline into the content.  I 
 thought they've all done that for decades.

OP wants to use 1+ lines joined by '\' to be read as one line by
mount(8) et amice so that horizontal scrolling and automagic wrapping
aren't needed.  Multiple lines of wrapped text are an ugly read.
***
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] fstab multiple line entries?

2011-01-05 Thread Keith Roberts
On Wed, 5 Jan 2011, Leonard den Ottolander wrote:
*snip*

 $ man fstab
 /line

 Each filesystem is described on a separate line;

Yes. Thankyou Leonard.

Maybe mount needs coding to recognise some sort of escape 
character, similar to the way bash does?

Keith

-
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] fstab multiple line entries?

2011-01-05 Thread Jerry McAllister
On Wed, Jan 05, 2011 at 09:39:06PM +0100, Leonard den Ottolander wrote:

 On Wed, 2011-01-05 at 19:16 +, Keith Roberts wrote:
  I'm trying to add a long list of mount options in my fstab, 
  and break the entry over 2 lines, as it goes off screen.
 
 $ man fstab
 /line
 
 Each filesystem is described on a separate line;

eg.   Don't break the lines.   Let them wrap.

jerry


 
 Regards,
 Leonard.
 
 -- 
 mount -t life -o ro /dev/dna /genetic/research
 
 
 ___
 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] recursively find duplicate filenames

2011-01-05 Thread Mark
On Wed, Jan 5, 2011 at 9:46 AM,  m.r...@5-cent.us wrote:
 S Mathias wrote:
 duplicate filenames

 - duplicate filenames

 Please don't top post.

 Now, a) you can't have identical filenames in the same directory, so shall
 I assume that you're looking for all files under one heirarchical
 directory structure that have the same name? If so,

 find $1 -name $2 -ls

 would give you all files of the same name. If, instead, you only needed to
 know how many of each, you could
 find $1 -name $2 | wc -l


Mark, don't waste your time on this twit - he cross posts to multiple
lists, usually asking questions that are quite clearly basic shell or
other utility programming questions that look more like school-work
than anything else, he never thanks anyone for their answers and he
seems to think we are here solely to do his school/home work for him.

I've yet to see a single question from him on any of the lists to
which he posts which had anything directly to do with the list topics
- here it would be CentOS specific questions.  They're all basic,
general programming questions that a thorough reading of the
applicable man page would answer just fine.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] centos 5.5 install + intel raid

2011-01-05 Thread aurfalien
Hi all,

Installing 5.5 on a fresh system having an Intel RAID.

My 2 drives are configured as a mirror within the Intel BIOS.

When starting my install, Anaconda throws an exception.

After a brief goog, I see one possible fix is - at the install prompt,  
type;

linux text nodmraid

This is fine and all but Centos sees 2 disks at this point rather then  
1 which is what I thought the Intel RAID controller would present to  
the OS.

I am pretty much tarded when it comes to installs as I usually boot of  
a DVD, enter some choices based on requirements and off I go.

I once compiled a network driver into the initrd and remade my boot  
disk but that seems beyond me now.

Any help is greatly appreciated.

- aurf



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


Re: [CentOS] centos 5.5 install + intel raid

2011-01-05 Thread Nico Kadel-Garcia
On Wed, Jan 5, 2011 at 8:36 PM,  aurfal...@gmail.com wrote:
 Hi all,

 Installing 5.5 on a fresh system having an Intel RAID.

 My 2 drives are configured as a mirror within the Intel BIOS.

Intel RAID covers a lot of sins. Some RAID cards rely on OS software
to do much of the RAID: they're jokes, really. If it's a real RAID
chipset, no Linux or Windows kernel should even be *AWARE* of the
multiple disks, except perhaps for some limited reporting tools.

Exactly which chipset are you dealing with? On what kind of machine.

 When starting my install, Anaconda throws an exception.

 After a brief goog, I see one possible fix is - at the install prompt,
 type;

 linux text nodmraid

 This is fine and all but Centos sees 2 disks at this point rather then
 1 which is what I thought the Intel RAID controller would present to
 the OS.

 I am pretty much tarded when it comes to installs as I usually boot of
 a DVD, enter some choices based on requirements and off I go.

 I once compiled a network driver into the initrd and remade my boot
 disk but that seems beyond me now.

 Any help is greatly appreciated.

 - aurf



 ___
 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] check, that a script is in a folder

2011-01-05 Thread cpolish
Les Mikesell wrote:
 John R. Dennison wrote:
  S Mathias wrote:
  $ echo ${PWD##*/}
  somefolder
  $ if ${PWD##*/} -eq asdf  /dev/null; then echo this is the asdf 
  folder; else exit 1; fi
  bash: notthatfolder: command not found...
  this is the asdf folder
  $
 
 
  So i just want to check that i'm in an exact folder. e.g.: asdf
 
  What's wrong with my one-liner?
 
  What's wrong is you can't read man pages or research on your
  own.  man bash; your problem is covered there.
 
 It is there, but it's pretty obscure.  A hint is that 'if' wants to execute 
 something, and in the old days /bin/test and /bin/[ used to be links to the 
 same 
 executable.  These days the executables are in /usr/bin and not linked (don't 
 know the reason for either...) but they are also shell builtins.

The Usenet newsgroup comp.unix.shell is a great place to ask such questions.

-- 
Charles Polisher

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


Re: [CentOS] recursively find duplicate filenames

2011-01-05 Thread John R. Dennison
On Wed, Jan 05, 2011 at 08:48:40AM -0800, S Mathias wrote:
 duplicate filenames

Please stop top-posting in the CentOS mailing lists and please
trim your replies down to only that needed.  Mailing list
guidelines are at:

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

Thank you for being considerate to your fellow list members.





John

-- 
This is all happening because my father didn't buy me a train set as a kid.

-- Warren Buffett, joking about his decision to buy a railroad, the Burlington
   Northern Santa Fe Corporation, New York Times, 4 November 2009


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


Re: [CentOS] centos 5.5 install + intel raid

2011-01-05 Thread aurfalien

On Jan 5, 2011, at 6:09 PM, Nico Kadel-Garcia wrote:

 On Wed, Jan 5, 2011 at 8:36 PM,  aurfal...@gmail.com wrote:
 Hi all,

 Installing 5.5 on a fresh system having an Intel RAID.

 My 2 drives are configured as a mirror within the Intel BIOS.

 Intel RAID covers a lot of sins.

Yes, I like this, and a lot of BS.

 Some RAID cards rely on OS software
 to do much of the RAID: they're jokes, really. If it's a real RAID
 chipset, no Linux or Windows kernel should even be *AWARE* of the
 multiple disks, except perhaps for some limited reporting tools.

 Exactly which chipset are you dealing with? On what kind of machine.

Instead of typing this;

 linux text nodmraid

I used this;

linux text smenodmraid

... and all is well.

Although I've a feeling that just installing in text mode rather than  
GUI would have been enough.

My specs;

Supermicro X8DT3-LN4F with the Intel 5520 chipset.


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


Re: [CentOS] SELinux - way of the future or good idea but !!!

2011-01-05 Thread Paul Johnson
On Wed, Jan 5, 2011 at 12:57 PM, Daniel J Walsh dwa...@redhat.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 01/05/2011 11:50 AM, Paul Johnson wrote:



 Turn on the httpd_can_sendmail boolean.  We do not want all apache
 servers to be able to send mail by default.

 # setsebool -P httpd_can_sendmail 1

 man httpd_selinux
 ...

Dear Mr Walsh:

Thanks very much for the information.  I did as you said, turned
SELinux back on, and now mediawiki can send email, like it is supposed
to!

I would not have figured it out if you had not posted your advice.

I hope this thread finds it way to google so other people will see it
is a solved problem!

PJ



-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Helper variables like %{rhel} on CentOS

2011-01-05 Thread Nico Kadel-Garcia
On Wed, Jan 5, 2011 at 2:05 PM, Akemi Yagi amy...@gmail.com wrote:
 On Wed, Jan 5, 2011 at 10:07 AM, Akemi Yagi amy...@gmail.com wrote:
 On Tue, Jan 4, 2011 at 4:38 PM, Nico Kadel-Garcia nka...@gmail.com wrote:

 Hmmm.. You might befit from the portability of this approach

 %rhel           0%(/bin/rpm -q --f /etc/redhat-release -qf '%{VERSION}\n' )

 Notice that this now works with RHEL and CentOS, and the \n keeps
 certain programs historically happier with the commands having an EOL.

 Nice. Minor corrections  needed:

 -f = --f
 -qf = --qf

 Sorry to spam the list again ... a correction of the correction needed :-)

 --f = -f

 So, it will be:

 %rhel           0%(/bin/rpm -q -f /etc/redhat-release --qf '%{VERSION}\n' )

 Akemi

Gahhh. Proportional fonts in this mail interfaces. We hates it, yes,
we hates it

Good catch, though. But why use '%{VERSION}' when '%{version}' will serve?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Graphing System Load MRTG

2011-01-05 Thread Jobst Schmalenbach
Make yourself a script, include this:

   #!/bin/sh

   # first the load 5 and 15 min avg
   # multiply * 100 to avoid floats
   # it helps if mrtg period is a multiple of 5 mins
   uptime | sed -e 's/^.*average.*: \(.*\)$/\1/' -e 's/ //g' |
   awk -F, '{ printf(%.0f\n,$2*100); printf(%.0f\n,$3*100) }'
   # the uptime
   uptime | sed 's/.*\sup\s\(.*\),\s*.*user.*$/\1/'
   # my name
   uname -n

than for mrtg (in the mrtg.cfg file):

   Target[load]:   `THE_NAME_AND_PATH_OF_THE_SCRIPT_ABOVE`
   Options[load]:  integer,gauge
   Title[load]:System load
   Xsize[load]:600
   Ysize[load]:200
   Ytics[load]:10
   MaxBytes[load]: 3000
   PageTop[load]:  H1Load Average/H1
   YLegend[load]:  Load Average
   ShortLegend[load]:  nbsp;
   LegendO[load]:  5 minute average
   LegendI[load]:  15 minute stagger



jobst





On Tue, Dec 21, 2010 at 10:09:30AM -0600, Matt (lm7...@gmail.com) wrote:
 I check system load like so:
 
 [r...@server cron.daily]# w
  10:07:33 up 4 days, 15:01,  2 users,  load average: 4.22, 3.17, 3.09
 
 I would like to to graph the 3.17 5 minute average with MRTG.  Anyone
 know of some examples of doing this?
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

-- 
Sometimes, the sharpest sword is not enough, but usually...it is.

  | |0| |   Jobst Schmalenbach, jo...@barrett.com.au, General Manager
  | | |0|   Barrett Consulting Group P/L  The Meditation Room P/L
  |0|0|0|   +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT how to prevent oversubscription of a disk

2011-01-05 Thread Gordon Messmer
On 01/03/2011 11:39 AM, Dave wrote:

 So, is it fair to rephrase that as ignore quotas, pay attention to
 actual usage?

ignore quotas is maybe too broad.  Quota is a useful mechanism to keep 
individual users from using all of a system's resources and disrupting 
access for other users.  Most sites over-commit quota and monitor actual 
usage, taking manual action if/when the system is over utilized.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos