Re: [CentOS-virt] Simulate Network Cable Disconnect

2010-05-13 Thread Tait Clarridge
On Wed, 2010-05-12 at 10:09 -0400, Kanwar Ranbir Sandhu wrote: 
 On Tue, 2010-05-04 at 12:28 -0400, Tait Clarridge wrote:
  I am having trouble simulating a network cable disconnect with KVM. I
  would like to test active backup bonding for a switch IOS upgrade in a
  production environment.
 
 Couldn't you just do a ifdown ethX in the KVM itself?  One of the
 bonded NICs will go down, and the kernel should report it as such.
 
 Regards,
 
 Ranbir

I did try that but it didn't fail over, actually I think I did ifconfig
ethX down instead of ifdown ethX. I will try again when I get some
time, thanks for the pointer! :)

Tait


signature.asc
Description: This is a digitally signed message part
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS] Text file manipulation in CentOS?

2010-05-13 Thread Dominik Zyla
On Thu, May 13, 2010 at 04:59:06AM +0100, hadi motamedi wrote:
 
 
 For mangling text??!! I think your example is way off topic for this
 
 Thank you for your reply. I thought to write C code to accomplish this but 
 next
 I found very powerful centos tools for this application from the help of you
 Gentlemen.

Those tools are not centos only.

-- 
Dominik Zyla



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


Re: [CentOS] Text file manipulation in CentOS?

2010-05-13 Thread hadi motamedi
Those tools are not centos only.


 Thank you for your reply. Yes, you are right. But my server is running
centos and so I wanted to find its power in text file manipulations (rather
than trying to write C code).
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Simplifying making a USB install key

2010-05-13 Thread Jure Pečar
On Mon, 3 May 2010 17:21:02 -0400
Phil Schaffner philip.r.schaff...@nasa.gov wrote:

 m.r...@5-cent.us wrote on 04/30/2010 11:03 AM:
  Ok, where/how do I submit this to the CentOS project?
  
  Here's a complete script - anyone, *please* feel free to test it, and let
  me know if I've missed anything.

Does anyone have a copy of livecd-iso-to-disk converted to use blkid instead of 
vol_id?


-- 

Jure Pečar
http://jure.pecar.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RHEL 6 Beta available for public download

2010-05-13 Thread Michael Simpson
sorry for bumping the thread,

https://bugzilla.redhat.com/show_bug.cgi?id=589332

not bug but feature.
seems a shame to have built in obsolesence from RH.
also means new laptop i bought for the purpose of using 6 when it
comes won't work even though it is several generations of cpu newer
than my current CentOS5 laptop (pentium M 1.8GHz vs P3 700MHz).
fedora 12 runs well but i can't abide the churn.

mike
/me going back to ebay
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] RHEL 6 Beta available for public download

2010-05-13 Thread Kwan Lowe
On Thu, May 13, 2010 at 6:48 AM, Michael Simpson
mikie.simp...@gmail.com wrote:
 sorry for bumping the thread,

 https://bugzilla.redhat.com/show_bug.cgi?id=589332

 not bug but feature.
 seems a shame to have built in obsolesence from RH.
 also means new laptop i bought for the purpose of using 6 when it
 comes won't work even though it is several generations of cpu newer
 than my current CentOS5 laptop (pentium M 1.8GHz vs P3 700MHz).
 fedora 12 runs well but i can't abide the churn.


I guess it comes down to diminishing returns. PAE has been around for
a few years and it may not be worth the effort for that prominent
vendor to provide support for 5 year old, non-server systems that may
be just fractions of their market.

However, it's *just* a kernel... Kernels are relatively easy to build
and don't necessarily affect much in the user space. You may be able
to take the CentOS image, once it's ready, then rebuild with a non-PAE
kernel.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] update of rpm directory

2010-05-13 Thread Adrian Sevcenco
Hi! I have an directory full with rpms that are installed on some
machines.. what is the best way to update those rpms to the latest
version? are there more optimal approaches then searching for each rpm
names in an update repo and download one by one?

Thanks,
Adrian



smime.p7s
Description: S/MIME Cryptographic Signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] update of rpm directory

2010-05-13 Thread Brunner, Brian T.
 
 Hi! I have an directory full with rpms that are installed on 
 some machines.. what is the best way to update those rpms to 
 the latest version? are there more optimal approaches then 
 searching for each rpm names in an update repo and download 
 one by one?

yum update
***
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] update of rpm directory

2010-05-13 Thread Chaitanya Yanamadala
On 5/13/10, Adrian Sevcenco adrian.sevce...@cern.ch wrote:
 Hi! I have an directory full with rpms that are installed on some
 machines.. what is the best way to update those rpms to the latest
 version? are there more optimal approaches then searching for each rpm
 names in an update repo and download one by one?

 Thanks,
 Adrian



Try

yum upgrade
 to upgrade all the installed rpms or else try
Yum update rpmname
To upgrade individual rpm


-- 
Chaitanya

A man can get discouraged many times but he is not a failure until he
stops trying...

The difference between 'involvement' and 'commitment' is like an
eggs-and-ham breakfast: the chicken was 'involved' - the pig was
'committed'.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] update of rpm directory

2010-05-13 Thread Phil Schaffner
Adrian Sevcenco wrote on 05/13/2010 08:49 AM:
 Hi! I have an directory full with rpms that are installed on some
 machines.. what is the best way to update those rpms to the latest
 version? are there more optimal approaches then searching for each rpm
 names in an update repo and download one by one?

Your question is not very clear.  Do you mean that you have just a local 
directory of RPMS or that you maintain a local repo?  If just a 
directory then you may want to read:

http://wiki.centos.org/HowTos/CreateLocalRepos
http://wiki.centos.org/HowTos/CreateLocalMirror

In either case, it you want to see what updates are available from a 
particular repo, say reponame:

yum --disablerepo \* --enablerepo reponame check-update

You could then download and put RPMS in your local repo as desired.

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


[CentOS] yum screwup

2010-05-13 Thread rray_1
I have several machine running CentOS
I upgraded all of them from 5.3 to 5.4
One machine has a yum problem after upgrading

# yum update
Loaded plugins: fastestmirror
Determining fastest mirrors
  * addons: mirror.trouble-free.net
  * base: mirror.team-cymru.org
  * extras: mirror.team-cymru.org
  * updates: mirror.raystedman.net
addons   |  951 B 
00:00
addons/primary   |  201 B 
00:00
Traceback (most recent call last):
   File /usr/bin/yum, line 29, in ?
 yummain.user_main(sys.argv[1:], exit_code=True)
   File /usr/share/yum-cli/yummain.py, line 309, in user_main
 errcode = main(args)
   File /usr/share/yum-cli/yummain.py, line 178, in main
 result, resultmsgs = base.doCommands()
   File /usr/share/yum-cli/cli.py, line 345, in doCommands
 self._getTs(needTsRemove)
   File /usr/lib/python2.4/site-packages/yum/depsolve.py, line 101, in 
_getTs
 self._getTsInfo(remove_only)
   File /usr/lib/python2.4/site-packages/yum/depsolve.py, line 112, in 
_getTsInfo
 pkgSack = self.pkgSack
   File /usr/lib/python2.4/site-packages/yum/__init__.py, line 661, in 
lambda
 pkgSack = property(fget=lambda self: self._getSacks(),
   File /usr/lib/python2.4/site-packages/yum/__init__.py, line 501, in 
_getSacks
 self.repos.populateSack(which=repos)
   File /usr/lib/python2.4/site-packages/yum/repos.py, line 260, in 
populateSack
 sack.populate(repo, mdtype, callback, cacheonly)
   File /usr/lib/python2.4/site-packages/yum/yumRepo.py, line 190, in 
populate
 dobj = repo_cache_function(xml, csum)
   File /usr/lib/python2.4/site-packages/sqlitecachec.py, line 42, in 
getPrimary
 self.repoid))
TypeError: Parsing primary.xml error: Start tag expected, '' not found



I have tried 'yum clean all', 'yum --noplugins', 'rm -r /var/cache/yum/*',
deleting all yum packages and reinstalling, and nothing helps
If I copy /var/cache/yum/* from a working machine all is well
I have used md5sum to check the downloaded files and they match the files 
on a working machine
If I disable the addons repo the other repos load ok
Also rpmforge repo breaks yum
What else might I try

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


Re: [CentOS] yum screwup

2010-05-13 Thread Karanbir Singh
On 05/13/2010 02:27 PM, rra...@comcast.net wrote:
   self.repoid))
 TypeError: Parsing primary.xml error: Start tag expected, '' not found


one of the mirrors you are hitting has bad repodata, or you have 
misconfigured a baseurl / mirrorlist line. I wont be surprised if one of 
the machines is actually returning a 404 for the primary.xml in one of 
the repos.

run yum with -d7 and you should be able to work out which one that is 
and against what repo.

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


Re: [CentOS] yum screwup

2010-05-13 Thread rray_1
On Thu, 13 May 2010, Karanbir Singh wrote:

 On 05/13/2010 02:27 PM, rra...@comcast.net wrote:
   self.repoid))
 TypeError: Parsing primary.xml error: Start tag expected, '' not found


 one of the mirrors you are hitting has bad repodata, or you have
 misconfigured a baseurl / mirrorlist line. I wont be surprised if one of
 the machines is actually returning a 404 for the primary.xml in one of
 the repos.

 run yum with -d7 and you should be able to work out which one that is
 and against what repo.

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


I am a bit lost
The addons repo is the first one failing
If I run 'yum clean all' and then 'yum update' I get
'* addons: mirror.trouble-free.net' and yum fails
If I run 'yum clean all' again and 'yum update' I get
'* addons: ftp.usf.edu' and yum fails
Both times I ran 'md5sum md5sum /var/cache/yum/addons/primary.xml.gz'
for the machine that failed and a machine that works and they match
It does not seem to matter which server the repo file comes from
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] yum screwup

2010-05-13 Thread Karanbir Singh
On 05/13/2010 02:51 PM, rra...@comcast.net wrote:
 Both times I ran 'md5sum md5sum /var/cache/yum/addons/primary.xml.gz'
 for the machine that failed and a machine that works and they match
 It does not seem to matter which server the repo file comes from

is your machine running out of RAM ?

You can try dropping into #yum on irc.freenode.net and see if you can 
work through your issue there. irc is a better means of doing these kind 
of interactive problem hunting.

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


[CentOS] Free and Robust Hotspot Management Software ?

2010-05-13 Thread Roberto HT
Dear all,

Could anybody give me some recommended open source software for wifi management?

What I am looking for is a simple and basic tools, for example the software 
will have these kind of features :
- user connect to the wifi network
- user got IP from DHCP but he can't browse to anywhere at first. Instead he 
will redirected to a login page
- administrator will set the username and password (e.g : user1, password ; 
user2, password2)
- if needed, the username will be enabled and be given to the user
- if unused, the username will simply be disabled so no authenticated user 
could connect eventhough they remember the password.
- I don't need the billing system just the administration tools.

I already googled and found chillispot, but it seemed to be an overkill 
software. Are there anything simpler than chillispot?

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


Re: [CentOS] automount complaints

2010-05-13 Thread James Pearson
m.r...@5-cent.us wrote:
 Folks,
 
I've been getting complaints in our logfiles, such as
 May 12 10:07:07 servername automount[3415]: update_negative_cache: key
 .git not found in map.
 
a) Is there a FAQ on automount that might cover some of this? Googling
 hasn't found one for me?
b) Any clues as to what might be causing this? I see a lot of it,
 in spurts.

At a guess, someone or something is trying to access a file/directory 
called '.git' in your automount directory.

You might want to try and go something like:

cd /mntpoint/thisdoesnotexist

where /mntpoint is name of an automount directory (e.g. defined in 
/etc/auto.master) and see if you get a log message saying something 
similar about 'thisdoesnotexist'

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


Re: [CentOS] Free and Robust Hotspot Management Software ?

2010-05-13 Thread Rainer Duffner

Am 13.05.2010 um 18:49 schrieb Roberto HT:

 Dear all,

 Could anybody give me some recommended open source software for wifi  
 management?




you could try pfSense.
http://www.pfsense.org

They have a captive portal mode.

Coming with 2.0 is a function to pre-generate vouchers.


Nothing to do with CentOS, but the software is cool and free ;-)


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


Re: [CentOS] Free and Robust Hotspot Management Software ?

2010-05-13 Thread Les Mikesell
On 5/13/2010 11:49 AM, Roberto HT wrote:
 Dear all,

 Could anybody give me some recommended open source software for wifi 
 management?

 What I am looking for is a simple and basic tools, for example the software 
 will have these kind of features :
 - user connect to the wifi network
 - user got IP from DHCP but he can't browse to anywhere at first. Instead he 
 will redirected to a login page
 - administrator will set the username and password (e.g : user1, password ; 
 user2, password2)
 - if needed, the username will be enabled and be given to the user
 - if unused, the username will simply be disabled so no authenticated user 
 could connect eventhough they remember the password.
 - I don't need the billing system just the administration tools.

 I already googled and found chillispot, but it seemed to be an overkill 
 software. Are there anything simpler than chillispot?


I don't know if it is still being supported or if there are better 
alternatives, but nocat.net used to have something like this.

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


[CentOS] Can't print a pdf?

2010-05-13 Thread MHR
I just had a strange occurrence.  I was printing out some PDFs and I
pulled one down off the web (my wireless bill) and tried to print page
1.  My browser properly fired up AR9, but nothing printed.  I tried
agian, still nothing.  I saved the file, opened it with the Document
Viewer and it can't print the file either.  I tried opening it with
GIMP, and it gets this error:

Opening '/home/mhr/Documents/pdfs/vzwA0418.pdf' failed: Plug-in could
not open image

I couldn't find any related data in the logs (spooler logs are all
empty, nothing in dmesg).  I tried disabling and enabling the printer,
then turning it off and on to no effect (which is not too surprising).

Anyone have a clue where I should look or what to do?

Thanks.

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


Re: [CentOS] Can't print a pdf?

2010-05-13 Thread MHR
On Thu, May 13, 2010 at 10:28 AM, MHR mhullr...@gmail.com wrote:
 I just had a strange occurrence.  I was printing out some PDFs and I
 pulled one down off the web (my wireless bill) and tried to print page
 1.  My browser properly fired up AR9, but nothing printed.  I tried
 agian, still nothing.  I saved the file, opened it with the Document
 Viewer and it can't print the file either.  I tried opening it with
 GIMP, and it gets this error:

 Opening '/home/mhr/Documents/pdfs/vzwA0418.pdf' failed: Plug-in could
 not open image

 I couldn't find any related data in the logs (spooler logs are all
 empty, nothing in dmesg).  I tried disabling and enabling the printer,
 then turning it off and on to no effect (which is not too surprising).


Follow-up:

I opened up my WXP VM and ran Photoshop Elements to open the file (no
errors), created a new PDF of page 1 and it prints just fine

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


Re: [CentOS] Can't print a pdf?

2010-05-13 Thread Robert Heller
At Thu, 13 May 2010 10:35:27 -0700 CentOS mailing list centos@centos.org 
wrote:

 
 On Thu, May 13, 2010 at 10:28 AM, MHR mhullr...@gmail.com wrote:
  I just had a strange occurrence.  I was printing out some PDFs and I
  pulled one down off the web (my wireless bill) and tried to print page
  1.  My browser properly fired up AR9, but nothing printed.  I tried
  agian, still nothing.  I saved the file, opened it with the Document
  Viewer and it can't print the file either.  I tried opening it with
  GIMP, and it gets this error:
 
  Opening '/home/mhr/Documents/pdfs/vzwA0418.pdf' failed: Plug-in could
  not open image
 
  I couldn't find any related data in the logs (spooler logs are all
  empty, nothing in dmesg).  I tried disabling and enabling the printer,
  then turning it off and on to no effect (which is not too surprising).
 
 
 Follow-up:
 
 I opened up my WXP VM and ran Photoshop Elements to open the file (no
 errors), created a new PDF of page 1 and it prints just fine

I'm guessing the file contains some MS-Windows specific thingy (image
or embeded object), for which you don't have the whatever plugin to
deal with.  Photoshop Elements (for MS-Windows) appearently has whatever
plugin that can deal with this embeded thingy.

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


-- 
Robert Heller -- 978-544-6933
Deepwoods Software-- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
hel...@deepsoft.com   -- http://www.deepsoft.com/ModelRailroadSystem/

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


Re: [CentOS] Can't print a pdf?

2010-05-13 Thread MHR
On Thu, May 13, 2010 at 11:03 AM, Robert Heller hel...@deepsoft.com wrote:

 I'm guessing the file contains some MS-Windows specific thingy (image
 or embedded object), for which you don't have the whatever plugin to
 deal with.  Photoshop Elements (for MS-Windows) apparently has whatever
 plugin that can deal with this embeded thingy.


That makes sense.  Does anyone know if any of the newer releases of
GNOME/GIMP have more plugins/fixes along these lines?  Sounds like
something that should be back-ported to CentOS 5 (and 6?).

Just asking

Thanks

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


Re: [CentOS] Not firewall, but what?

2010-05-13 Thread Gordon Messmer
On 05/11/2010 10:21 PM, Jussi Hirvi wrote:
 On 12.5.2010 3.25, Gordon Messmer wrote:
 On 05/11/2010 10:21 AM, Jussi Hirvi wrote:

 Interesting commands, and revealing, it seems to me.

 Well, there you go.  Something set up policy routing on the working
 host.  Do you have any files like /etc/sysconfig/network-scripts/route-*
 or /etc/sysconfig/network-scripts/rule-* ?

 None. But I found these (standard CentOS files):

 [r...@farm1 network-scripts]# grep -rl ip rule .
 ./ifdown-routes
 ./ifup-routes

Yes, those scripts will run ip rule to process the contents of the 
rule-* files.  The company I work for uses shorewall on all of their 
multi-homed systems, so I'm not sure how systems without it behave. 
That said, I don't see any magic in the init scripts to handle this 
without your input.  I'm inclined to believe that something on your 
system was manually configured to set up the routing policy that you see.

Find it harder:
find /etc/ -type f -print0 | xargs -0 grep ip rule
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] raid resync speed?

2010-05-13 Thread Les Mikesell
Has anything changed in updates that would affect md raid1 resync speed? 
  I regularly swap a 750G drive and resync to keep an offsite copy and 
haven't paid enough attention to known when things changed but it seems 
to take much longer to sync than it did months ago, even if I unmount 
the partition and stop most other processes that might compete with it.

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


Re: [CentOS] raid resync speed?

2010-05-13 Thread Eero Volotinen
2010/5/13 Les Mikesell lesmikes...@gmail.com:
 Has anything changed in updates that would affect md raid1 resync speed?
  I regularly swap a 750G drive and resync to keep an offsite copy and
 haven't paid enough attention to known when things changed but it seems
 to take much longer to sync than it did months ago, even if I unmount
 the partition and stop most other processes that might compete with it.


well, try this:

http://www.ducea.com/2006/06/25/increase-the-speed-of-linux-software-raid-reconstruction/

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


Re: [CentOS] Can't print a pdf?

2010-05-13 Thread m . roth
 On Thu, May 13, 2010 at 11:03 AM, Robert Heller hel...@deepsoft.com
 wrote:

 I'm guessing the file contains some MS-Windows specific thingy (image
 or embedded object), for which you don't have the whatever plugin to
 deal with.  Photoshop Elements (for MS-Windows) apparently has whatever
 plugin that can deal with this embeded thingy.

 That makes sense.  Does anyone know if any of the newer releases of
 GNOME/GIMP have more plugins/fixes along these lines?  Sounds like
 something that should be back-ported to CentOS 5 (and 6?).

Have you tried evince?

  mark

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


Re: [CentOS] Free and Robust Hotspot Management Software ?

2010-05-13 Thread Athmane Madjoudj
On 05/13/2010 05:49 PM, Roberto HT wrote:
 Dear all,

 Could anybody give me some recommended open source software for wifi 
 management?

 What I am looking for is a simple and basic tools, for example the software 
 will have these kind of features :
 - user connect to the wifi network
 - user got IP from DHCP but he can't browse to anywhere at first. Instead he 
 will redirected to a login page
 - administrator will set the username and password (e.g : user1, password ; 
 user2, password2)
 - if needed, the username will be enabled and be given to the user
 - if unused, the username will simply be disabled so no authenticated user 
 could connect eventhough they remember the password.
 - I don't need the billing system just the administration tools.

 I already googled and found chillispot, but it seemed to be an overkill 
 software. Are there anything simpler than chillispot?

 Thanks.
 Roberto

- Linux-based solution: Endian Firewall - 
http://www.endian.com/en/solutions/technology/endianhotspot/

- FreeBSD-based solution: pfSense (see Captive Portal) - 
http://www.pfsense.org/index.php?option=com_contenttask=viewid=40Itemid=43



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


Re: [CentOS] Not firewall, but what?

2010-05-13 Thread m . roth
Gordon wrote:
 On 05/11/2010 10:21 PM, Jussi Hirvi wrote:
 On 12.5.2010 3.25, Gordon Messmer wrote:
 On 05/11/2010 10:21 AM, Jussi Hirvi wrote:

snip
 Find it harder:
 find /etc/ -type f -print0 | xargs -0 grep ip rule

Or, since modern find's default to -print, you could do
find /etc -type f -exec grep -l ip rule {} \;

mark of all the ways you *can* do it in *Nix, how
   would you *like* to do it?

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


Re: [CentOS] raid resync speed?

2010-05-13 Thread Paul Heinlein
On Thu, 13 May 2010, Eero Volotinen wrote:

 well, try this:

 http://www.ducea.com/2006/06/25/increase-the-speed-of-linux-software-raid-reconstruction/

Interesting link. Thanks. I'll be interested to try it out next time I 
swap out a RAID disk.

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


Re: [CentOS] update of rpm directory

2010-05-13 Thread Adrian Sevcenco
On 05/13/2010 04:23 PM, Phil Schaffner wrote:
 Adrian Sevcenco wrote on 05/13/2010 08:49 AM:
 Hi! I have an directory full with rpms that are installed on some
 machines.. what is the best way to update those rpms to the latest
 version? are there more optimal approaches then searching for each rpm
 names in an update repo and download one by one?
 
 Your question is not very clear.  Do you mean that you have just a local 
Sorry about that..

 directory of RPMS or that you maintain a local repo?  If just a 
i have just a directory of rpms that are going to be installed through
some scripting (through PXE) on a bunch of servers. all i need is to
update the version for the rpms present in that dir

 directory then you may want to read:
 
 http://wiki.centos.org/HowTos/CreateLocalRepos
 http://wiki.centos.org/HowTos/CreateLocalMirror
 
 In either case, it you want to see what updates are available from a 
 particular repo, say reponame:
 
 yum --disablerepo \* --enablerepo reponame check-update
 
 You could then download and put RPMS in your local repo as desired.
Thanks it helps! but a little more bit of info^Whints could help even more:
lets say that on the server i do this stuff (and where is this dir from
which nodes are installed) everything is up to date.. (and worker nodes
are NOT updated) and i dont want to ask nodes do give me an rpm -qa..
how can a make a diff (comparing versions) between rpms form local
directory and update repo? (other than take the rpm name from dir; strip
name and version ; search in update repo the rpm name ; compare version
, if newer download rpm )

Thanks a lot!!
Adrian

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


-- 
Best regards,
Adrian

---
Adrian Sevcenco - Institute of Space Sciences, Romania
---



smime.p7s
Description: S/MIME Cryptographic Signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] update of rpm directory

2010-05-13 Thread Spiro Harvey
Adrian Sevcenco adrian.sevce...@cern.ch wrote:

 Thanks it helps! but a little more bit of info^Whints could help even
 more: lets say that on the server i do this stuff (and where is this
 dir from which nodes are installed) everything is up to date.. (and
 worker nodes are NOT updated) and i dont want to ask nodes do give me
 an rpm -qa.. how can a make a diff (comparing versions) between
 rpms form local directory and update repo? (other than take the rpm
 name from dir; strip name and version ; search in update repo the rpm
 name ; compare version , if newer download rpm )

If I understand you correctly, you're asking how the worker nodes know
what to update?

The simplest answer is that yum deals with all that.

If you set up a local repo mirror, then that machine should share out
that repo directory via http or ftp. You would sync that with an upline
mirror, either via ftp or rsync.

Then on the worker nodes, you would create a custom repo file
in /etc/yum.repos.d pointing to your local repository.

Then the worker nodes could just run a yum update and they would get
all the updates they need. It will do all the version checking, and all
you have to worry about is keeping your server's local mirror up to
date.


-- 
Spiro Harvey  Knossos Networks Ltd
021-295-1923  www.knossos.net.nz


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


Re: [CentOS] update of rpm directory

2010-05-13 Thread Les Mikesell
On 5/13/2010 3:26 PM, Adrian Sevcenco wrote:
 On 05/13/2010 04:23 PM, Phil Schaffner wrote:
 Adrian Sevcenco wrote on 05/13/2010 08:49 AM:
 Hi! I have an directory full with rpms that are installed on some
 machines.. what is the best way to update those rpms to the latest
 version? are there more optimal approaches then searching for each rpm
 names in an update repo and download one by one?

 Your question is not very clear.  Do you mean that you have just a local
 Sorry about that..

 directory of RPMS or that you maintain a local repo?  If just a
 i have just a directory of rpms that are going to be installed through
 some scripting (through PXE) on a bunch of servers. all i need is to
 update the version for the rpms present in that dir

 directory then you may want to read:

 http://wiki.centos.org/HowTos/CreateLocalRepos
 http://wiki.centos.org/HowTos/CreateLocalMirror

 In either case, it you want to see what updates are available from a
 particular repo, say reponame:

 yum --disablerepo \* --enablerepo reponame check-update

 You could then download and put RPMS in your local repo as desired.
 Thanks it helps! but a little more bit of info^Whints could help even more:
 lets say that on the server i do this stuff (and where is this dir from
 which nodes are installed) everything is up to date.. (and worker nodes
 are NOT updated) and i dont want to ask nodes do give me an rpm -qa..
 how can a make a diff (comparing versions) between rpms form local
 directory and update repo? (other than take the rpm name from dir; strip
 name and version ; search in update repo the rpm name ; compare version
 , if newer download rpm )


Why don't you just do the 'yum update' on each box and let it figure out 
and get what is newer itself?

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


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


Re: [CentOS] Free and Robust Hotspot Management Software ?

2010-05-13 Thread Spiro Harvey
Roberto HT htdocs.b...@gmail.com wrote:
 Could anybody give me some recommended open source software for wifi
 management?


They're called Captive Portals:

http://en.wikipedia.org/wiki/Captive_portal

That page lists a few of them.


-- 
Spiro Harvey  Knossos Networks Ltd
021-295-1923  www.knossos.net.nz


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


Re: [CentOS] Can't print a pdf?

2010-05-13 Thread Les Mikesell
On 5/13/2010 2:45 PM, m.r...@5-cent.us wrote:
 On Thu, May 13, 2010 at 11:03 AM, Robert Hellerhel...@deepsoft.com
 wrote:

 I'm guessing the file contains some MS-Windows specific thingy (image
 or embedded object), for which you don't have the whatever plugin to
 deal with.  Photoshop Elements (for MS-Windows) apparently has whatever
 plugin that can deal with this embeded thingy.

 That makes sense.  Does anyone know if any of the newer releases of
 GNOME/GIMP have more plugins/fixes along these lines?  Sounds like
 something that should be back-ported to CentOS 5 (and 6?).

 Have you tried evince?


Or the yummable Adobe Reader?
http://www.if-not-true-then-false.com/2010/03/install-adobe-acrobat-pdf-reader-on-fedora-centos-red-hat-rhel/

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


Re: [CentOS] Can't print a pdf?

2010-05-13 Thread MHR
On Thu, May 13, 2010 at 12:45 PM,  m.r...@5-cent.us wrote:

 Have you tried evince?

      mark


Document Viewer = evince

I just tried it with AR by opening the file with it, but it also does
not print the page.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Can't print a pdf?

2010-05-13 Thread MHR
On Thu, May 13, 2010 at 2:18 PM, Les Mikesell lesmikes...@gmail.com wrote:

 Or the yummable Adobe Reader?
 http://www.if-not-true-then-false.com/2010/03/install-adobe-acrobat-pdf-reader-on-fedora-centos-red-hat-rhel/


Yummy.

No, seriously, I'm waiting for it to download - 61Mb(!).  Will post
when it's done

Okay, that worked.

Thanks.

Still, shouldn't evince, GIMP, etc. have a backport update to fix this?

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


Re: [CentOS] Can't print a pdf?

2010-05-13 Thread fred smith
On Thu, May 13, 2010 at 04:18:11PM -0500, Les Mikesell wrote:
 On 5/13/2010 2:45 PM, m.r...@5-cent.us wrote:
  On Thu, May 13, 2010 at 11:03 AM, Robert Hellerhel...@deepsoft.com
  wrote:
 
  I'm guessing the file contains some MS-Windows specific thingy (image
  or embedded object), for which you don't have the whatever plugin to
  deal with.  Photoshop Elements (for MS-Windows) apparently has whatever
  plugin that can deal with this embeded thingy.
 
  That makes sense.  Does anyone know if any of the newer releases of
  GNOME/GIMP have more plugins/fixes along these lines?  Sounds like
  something that should be back-ported to CentOS 5 (and 6?).
 
  Have you tried evince?

I've had similalr trouble with acrobat reader where some documents simply
don't come out of the printer. When that happens, I've been able to print
from evince or othr PDF reader util on Linux.

Oddly, the same PDF prints fine on windows acrobat reader. go figure.


-- 
 Fred Smith -- fre...@fcshome.stoneham.ma.us -
  For him who is able to keep you from falling and to present you before his 
 glorious presence without fault and with great joy--to the only God our Savior
 be glory, majesty, power and authority, through Jesus Christ our Lord, before
 all ages, now and forevermore! Amen.
- Jude 1:24,25 (niv) -
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] update of rpm directory

2010-05-13 Thread Jobst Schmalenbach

If I understand this correctly then you want to update
the LOCAL RPM files to the latest version?

I am not sure but you could try yumdownloader 
with some kind of bash script:

 for f in `ls -1 *rpm`; do
  echo Working on file: $f
  rpm=${f##*/}
  name=${rpm%%-[0-9]*}
  echo The name of the rpm: $name
  yumdownloader $name
 done


This is NOT tested but you could give it a try!

jobst




On Thu, May 13, 2010 at 03:49:27PM +0300, Adrian Sevcenco 
(adrian.sevce...@cern.ch) wrote:
 Hi! I have an directory full with rpms that are installed on some
 machines.. what is the best way to update those rpms to the latest
 version? are there more optimal approaches then searching for each rpm
 names in an update repo and download one by one?
 
 Thanks,
 Adrian
 



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


-- 
I have always wished that my computer would be as easy to use as my telephone. 
My wish has come true. I no longer know how to use my telephone. -- Bjarne 
Stroustrup, inventor of the C++ language.

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


[CentOS] release of 5.5? (filesystem troubles)

2010-05-13 Thread Rainer Fuegenstein
hi guys,

is there an estimate when centos 5.5 will be released?

I'm sitting on needles here, because since I moved my 4*1.5TB raid5
from an asus to an intel D510 mainboard I encounter bug the described
here:

https://bugzilla.redhat.com/show_bug.cgi?id=512552

short version: running xfs on top of a raid5 under heavy load causes
corrupted data to be read and the filesystem shutting down
occasionally.

version 5.5 should solve this problem. if 5.5 is just a few days away
I'll keep waiting, but if it takes much longer I'll need to work
around this problem like going back to the old mainboard, compiling
the kernel myself, switching to ext3 - none of which I'm eager to do.

cu

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


Re: [CentOS] release of 5.5? (filesystem troubles)

2010-05-13 Thread Christopher Chan
On Friday, May 14, 2010 08:50 AM, Rainer Fuegenstein wrote:
 hi guys,

 is there an estimate when centos 5.5 will be released?

 I'm sitting on needles here, because since I moved my 4*1.5TB raid5
 from an asus to an intel D510 mainboard I encounter bug the described
 here:

 https://bugzilla.redhat.com/show_bug.cgi?id=512552

 short version: running xfs on top of a raid5 under heavy load causes
 corrupted data to be read and the filesystem shutting down
 occasionally.

That bug does not appear to be hardware specific.



 version 5.5 should solve this problem. if 5.5 is just a few days away
 I'll keep waiting, but if it takes much longer I'll need to work
 around this problem like going back to the old mainboard, compiling
 the kernel myself, switching to ext3 - none of which I'm eager to do.


Trying the raid5 patch for md and rolling your own kernel seems to be 
the best option if you cannot wait...or you could use the ones them 
Redhat engineers have put up.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Free and Robust Hotspot Management Software ?

2010-05-13 Thread Roberto HT
Ah, Captive Portal it is.

Thanks a lot Sir. :)

Regards,
Roberto

On Fri, May 14, 2010 at 4:07 AM, Spiro Harvey sp...@knossos.net.nz wrote:

 Roberto HT htdocs.b...@gmail.com wrote:
  Could anybody give me some recommended open source software for wifi
  management?


 They're called Captive Portals:

 http://en.wikipedia.org/wiki/Captive_portal

 That page lists a few of them.


 --
 Spiro Harvey  Knossos Networks Ltd
 021-295-1923  www.knossos.net.nz

 ___
 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] upgrading to a minor release 4.1 to 4.2

2010-05-13 Thread sheraz naz
Hi,

I need to upgrade a system running 4.1 to 4.2, but before I do I want to list 
out all the packages that will be updated/installed/removed. I can run up2date 
-l to get a list of updates but does that show packages that need to be 
installed and removed as well or just the updates?

Second, how would I go about upgrading 4.1 to 4.2 instead of 4.8 (i.e. latest 
update).

Unfortunately I don't have access to centos 4.x at the moment.and googling just 
centos 4.1 to 4.2 is not bringing up relevant information.

Thanks
Sheraz



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


Re: [CentOS] Not firewall, but what?

2010-05-13 Thread Gordon Messmer
On 05/13/2010 12:47 PM, m.r...@5-cent.us wrote:
 Gordon wrote:
 Find it harder:
 find /etc/ -type f -print0 | xargs -0 grep ip rule

 Or, since modern find's default to -print,

Yes, they do, but I have no idea what that has to do with your 
suggestion to use -exec.  If you had suggested eliminating the use of 
-print as redundant, your suggestion would be merely inefficient rather 
than a non sequitur.

 you could do
 find /etc -type f -exec grep -l ip rule {} \;

You could, but that would run grep once for each file where xargs will 
run grep the minimum number of times.  Using xargs is substantially faster.

Having said that, I see that find has an option of which I was 
previously unaware.  If you use the '+' character instead of the ';', it 
will behave more or less the same way that xargs does:

find /etc/ -type f -exec grep ip rule {} +

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