Re: [CentOS] Inquiry:How to compare two files but not in line-by-line basis?

2009-12-02 Thread hadi motamedi
On Wed, Dec 2, 2009 at 11:23 AM, John Doe  wrote:

> From: hadi motamedi 
> >Sorry . I tried for "#diff -y" but its output seems to have a comparison
> between the two files in line-by-line basis . As you mentioned , if the
> row#1 in file1 is in match with say row#5 in file2 I want it not to be
> considered as a difference. But the the output shows it as if it is being
> considered as a difference. Please correct me .
>
> Could you be more precise when you say "compare"...?
> By example, to get matching lines, you could:
>
>  cat $FILE1 $FILE2 | sort | uniq -c | ...
>
> You'd get each line preceded by the number of occurence; then grep what you
> want...
>
> JD
>
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



 Thank you very much for your reply . Please be informed that I tried to
compare the files with your proposed code , as the followings :
#cat Edit3 Edit4 |sort |uniq -c
It is returning the same count on matches as I got from the following code :
#perl -MData::Dumper -le 'while(<>) {chomp; push @{$s->{"$_"}},$ARGV}; END{
print Dumper($s) }' Edit3 Edit4
But it is easier to be used . Can you please do me favor and let me know if
I can go further and try for advanced search like finding how many rows
inside a file have data that does not start with a zero after the third
comma ?
Sincerely Yours
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] LDAP for central authentication?

2009-12-02 Thread Scott Ehrlich
I have the following on a network:

1) RHEL 5.0 Server acting as NIS and Samba domain controller

2) CentOS 5.x machines on NIS network

3) Win XP machines on Samba domain


When I create an account for someone, I need to first type adduser
new_person -d /home/new_person then passwd new_person, then cd /var/yp
and make.    Then smbpasswd -a new_person.   Thus, two different
databases.



On another network, I have separate XP and Linux (CentOS 5.x, RHEL
5.x, and Suse) systems.   No Samba, no NIS.   Can I still set up a
central LDAP directory for a single account database?


For the NIS+Samba case, can I merge both credential files into a
central database using LDAP?   I would also want to control password
length, complexity, aging, and other things.

What is the best way to do this?


Thanks.

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


Re: [CentOS] Skype version for CentOS 5.3

2009-12-02 Thread Niki Kovacs
Niki Kovacs a écrit :
> Andrew a écrit :
>> Which is the best version of skype to install in CentOS 5.3? skype.i586
>> 2.0.0.72-fc5 from the skype repo or skype 2.1.0.47-fc10.i586.rpm from
>> the 'skype for linux beta' downloads section of the skype website?
>>
> 
> I'm using the static version, which works fine. I have an install script 
> for it, see below. Download the tarball and put it in /tmp, then run the 
> script as root. 

... or, even better, just launch the script. Forgot I put that wget line 
in it.

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


Re: [CentOS] Skype version for CentOS 5.3

2009-12-02 Thread Niki Kovacs
Andrew a écrit :
> Which is the best version of skype to install in CentOS 5.3? skype.i586
> 2.0.0.72-fc5 from the skype repo or skype 2.1.0.47-fc10.i586.rpm from
> the 'skype for linux beta' downloads section of the skype website?
> 

I'm using the static version, which works fine. I have an install script 
for it, see below. Download the tarball and put it in /tmp, then run the 
script as root. Only thing you'll miss is a correct .desktop file, which 
comes from another script here.

Cheers,

Niki Kovacs


#!/bin/bash
#
# install-skype.sh

set -x

VERSION=2.1.0.47

# Clean up old Skype install
rm -rf /usr/share/skype
rm -f /usr/bin/skype
rm -f /usr/share/applications/skype.desktop
rm -f /etc/dbus-1/system.d/skype.conf

cd /tmp

rm -rf skype_static-$VERSION

if [ ! -f skype_static-$VERSION.tar.bz2 ]; then
 wget -c 
http://www.skype.com/go/getskype-linux-beta-static/skype_static-$VERSION.tar.bz2
fi

tar xvjf skype_static-$VERSION.tar.bz2
cd skype_static-$VERSION

mkdir /usr/share/skype
mv avatars/ icons/ lang/ sounds/ /usr/share/skype/
mv skype /usr/bin/
mv skype.conf /etc/dbus-1/system.d/
touch /usr/share/applications/skype.desktop

cd ../
rm -rf skype_static-$VERSION

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


Re: [CentOS] Latency Monitor

2009-12-02 Thread Eduardo Grosclaude
On Wed, Dec 2, 2009 at 6:41 PM, Matt  wrote:
> Does anyone know of a utillity I can run on a server to periodically
> ping several hosts and record the result?  Does not need to be
> anything fancy at all.
>
> Matt

MRTG does it nicely if you provide an adequate ping script. It *is*
somewhat fancy indeed, but I think it is the simplest among the fancy.
Install by simply yumming it in. Less fancy, but also simple: moSSHe
(http://www.wyae.de).
Both of them will let you record not only ping results, but any
imaginable statistics as well.


-- 
Eduardo Grosclaude
Universidad Nacional del Comahue
Neuquen, Argentina
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Latency Monitor

2009-12-02 Thread Thomas Harold
On 12/2/2009 4:41 PM, Matt wrote:
> Does anyone know of a utility I can run on a server to periodically
> ping several hosts and record the result?  Does not need to be
> anything fancy at all.

Various monitoring apps (cacti, nagios, etc)... or MRTG.  All of which 
store their data in RRDTool.

Which reminds me, I need to setup Nagios 3 this month.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Latency Monitor

2009-12-02 Thread Les Mikesell
Matt wrote:
> Does anyone know of a utillity I can run on a server to periodically
> ping several hosts and record the result?  Does not need to be
> anything fancy at all.

It's overkill, but once you get started monitoring it's nice to not run 
into something it won't do: http://www.opennms.org/wiki/Main_Page

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


Re: [CentOS] Latency Monitor

2009-12-02 Thread Rainer Duffner

Am 02.12.2009 um 22:41 schrieb Matt:

> Does anyone know of a utillity I can run on a server to periodically
> ping several hosts and record the result?  Does not need to be
> anything fancy at all.



I think smokeping does that.
I must get around to configure it. I've already installed it...


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


[CentOS] Latency Monitor

2009-12-02 Thread Matt
Does anyone know of a utillity I can run on a server to periodically
ping several hosts and record the result?  Does not need to be
anything fancy at all.

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


[CentOS] Skype version for CentOS 5.3

2009-12-02 Thread Andrew
Which is the best version of skype to install in CentOS 5.3? skype.i586
2.0.0.72-fc5 from the skype repo or skype 2.1.0.47-fc10.i586.rpm from
the 'skype for linux beta' downloads section of the skype website?

Andy

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


Re: [CentOS] (re)load new kernel with rebooting host node?

2009-12-02 Thread Rudi Ahlers
On Wed, Dec 2, 2009 at 10:28 PM, JS  wrote:

>
> You're a lot better off go over to the Linux Kernel Devel site. AFIK kexec
> can only do this on real hardware. I think your better off scheduling
> downtime for the server. Although kexec does have a site page.
>
> John
>
> ___


John, that's what I want todo :) I want to reload the kernel on the
"real hardware" server


-- 
Kind Regards
Rudi Ahlers
CEO, SoftDux Hosting
Web: http://www.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 5.3 - changing display settings

2009-12-02 Thread Andrew

> 
> Checked the /etc/X11/xorg.conf file...?
> Maybe you could try to add:
> 
>   Section "Screen"
>   ...
>   SubSection "Display"
>   Modes"1024x768"
>   EndSubSection
>   EndSection
> 
> JD
> 
Thanks,
I've done that and it works brilliantly!

Andy

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


Re: [CentOS] (re)load new kernel with rebooting host node?

2009-12-02 Thread Mathew S. McCarrell
On Wed, Dec 2, 2009 at 2:22 PM, Rudi Ahlers  wrote:

> Hi all,
>
> Is it possible to reload the dom0 / host node's kernel with a newer
> one, without rebooting the server? I know kexec can do something like
> this for security patches, but I don't know much about kexec, and I
> don't want to mess up a production server either. So, has anyone done
> something like this before? I need to load a new kernel for one of the
> domU's iptables to work, but don't want to reboot the whole server and
> cause downtime for the other domU's.
>
>
http://www.ksplice.com/

--
Mathew S. McCarrell
Clarkson University '10

mccar...@gmail.com
mccar...@clarkson.edu
1-518-314-9214
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] (re)load new kernel with rebooting host node?

2009-12-02 Thread JS


> -Original Message-
> From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On
> Behalf Of Rudi Ahlers
> Sent: Wednesday, December 02, 2009 2:23 PM
> To: CentOS mailing list
> Subject: [CentOS] (re)load new kernel with rebooting host node?
> 
> Hi all,
> 
> Is it possible to reload the dom0 / host node's kernel with a newer
> one, without rebooting the server? I know kexec can do something like
> this for security patches, but I don't know much about kexec, and I
> don't want to mess up a production server either. So, has anyone done
> something like this before? I need to load a new kernel for one of the
> domU's iptables to work, but don't want to reboot the whole server and
> cause downtime for the other domU's.
---

You're a lot better off go over to the Linux Kernel Devel site. AFIK kexec
can only do this on real hardware. I think your better off scheduling
downtime for the server. Although kexec does have a site page. 

John

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


Re: [CentOS] Small proxy appliance hardware

2009-12-02 Thread Jason Pyeron
 

> -Original Message-
> From: centos-boun...@centos.org 
> [mailto:centos-boun...@centos.org] On Behalf Of Neil Aggarwal
> Sent: Wednesday, December 02, 2009 14:53
> To: 'CentOS mailing list'
> Subject: Re: [CentOS] Small proxy appliance hardware
> 
> > The Realtek 8111C gigabit controller is supported by 
> RH/Centos? Even 
> > at install time?
> 
> I have used many different Supermicro servers and never had 
> any problems installing CentOS and everything works out of the box.
> 
> Looking at the wiki page:
> http://wiki.centos.org/AdditionalResources/HardwareList/RealTe
> kRTL8111b
> It looks like sometimes it works and other times it requires 
> a custom driver.
> 
> I did not realize there was a potential issue with that 
> server.  I wish I had one to test to say for sure.
> 
> Thanks for the heads up!

I wish you had tested and found no problems... Back to the search.

> 
>   Neil
> 
> --
> Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net CentOS 
> 5.4 VPS with unmetered bandwidth only $25/month!
> No overage charges, 7 day free trial, Google Checkout accepted 
> 
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

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


Re: [CentOS] Unable to share directory via Samba?

2009-12-02 Thread JS


> -Original Message-
> From: centos-boun...@centos.org [mailto:centos-boun...@centos.org] On
> Behalf Of James Bensley
> Sent: Tuesday, December 01, 2009 4:39 AM
> To: CentOS mailing list
> Subject: Re: [CentOS] Unable to share directory via Samba?
> 
> This is the repeating entry from my smbd.log from every time I try to
> mount the share via samba;
> 
> [2009/12/01 09:32:59, 0] lib/util_sock.c:get_peer_addr(1224)
>   getpeername failed. Error was Transport endpoint is not connected
> 
> I had read online that this can be caused by samba not making its mind
> up about weather to use TCP ports 139 or 445 so I set it statically
> from within the smb config file by using "smb ports = 445" and "smb
> ports 139" restart after each change and checking if this had fixed my
> problem but it has not.
> 
> --
> Regards,
> James ;)
> 
> Samuel Goldwyn  - "I'm willing to admit that I may not always be
> right, but I am never wrong." -
> http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos


Try ports = 445 in /etc/smb.conf or "disable netbios = yes" Make sure for
your config you have you add the user mars to the tdbsam pass word backend.

John

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


[CentOS] Errors in core dump apache

2009-12-02 Thread Matias Sardisco
Hi.

I saw that some instances of apache die in a segmentation fault.
I found this errors in core dump of apache.


#0  0x2b180e623820 in crc32 () from /usr/lib64/libz.so.1
-
#0  0x2b180e623820 in crc32 () from /usr/lib64/libz.so.1
-
#0  0x2b180e623820 in crc32 () from /usr/lib64/libz.so.1
-
#0  0x2b180e623820 in crc32 () from /usr/lib64/libz.so.1
-
#0  0x2b180e623820 in crc32 () from /usr/lib64/libz.so.1
-
#0  0x2b181603e3a9 in ?? () from /etc/httpd/modules/libphp5.so
-
#0  0x2b180e623820 in crc32 () from /usr/lib64/libz.so.1
-
#0  0x2b180e623820 in crc32 () from /usr/lib64/libz.so.1
-

We run this software:

CentOS 5.4
php 5.2.9 (test repository)
httpd 2.2.3
zlib 1.2.3-3

Some ideas?

Thank!

-
Matias Sardisco
e-mail: msardi...@mancia.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Small proxy appliance hardware

2009-12-02 Thread Neil Aggarwal
> The Realtek 8111C gigabit controller is supported by 
> RH/Centos? Even at install
> time?

I have used many different Supermicro servers and
never had any problems installing CentOS and
everything works out of the box.

Looking at the wiki page:
http://wiki.centos.org/AdditionalResources/HardwareList/RealTekRTL8111b
It looks like sometimes it works and other times it
requires a custom driver.

I did not realize there was a potential issue with that
server.  I wish I had one to test to say for sure.

Thanks for the heads up!

Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
CentOS 5.4 VPS with unmetered bandwidth only $25/month!
No overage charges, 7 day free trial, Google Checkout accepted 

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


Re: [CentOS] Tomcat authentication via PAM (or other system methods)?

2009-12-02 Thread Alexander Georgiev
2009/12/2 Les Mikesell :
> Is there a way to coax java services running under tomcat to use the
> system authentication methods set up through PAM? In my case, this would
> be users in the local passwd file or through smb to a windows domain.
> I've added mod_auth_pam to get this effect with apache but would like to
> also handle java web services.
>

java and J2EE (I think also tomcat) use JAAS for authentication
purposes. JAAS is like PAM for java applications, in fact JAAS
specification is based on PAM specification. There must be JAAS
modules that authenticate against pam:

http://www.google.bg/search?sourceid=chrome&ie=UTF-8&q=jaas+pam+module
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Tomcat authentication via PAM (or other system methods)?

2009-12-02 Thread nate
Les Mikesell wrote:
> Is there a way to coax java services running under tomcat to use the
> system authentication methods set up through PAM? In my case, this would
> be users in the local passwd file or through smb to a windows domain.
> I've added mod_auth_pam to get this effect with apache but would like to
> also handle java web services.

If you use LDAP you can use LDAP with PAM and apparently configure
Tomcat to talk to LDAP as well

http://blog.mc-thias.org/?title=tomcat_ldap_authentication&more=1&c=1&tb=1&pb=1

"Using Tomcat6 (Tomcat 6.0.13 to be precise ;)) on CentOS 4.5, a LDAP
authentication can be set up using the JNDI Realm."[..]

http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JNDIRealm

Same for if your using a SQL DB for authentication, tomcat can
tie into that too -
http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JDBCRealm

nate


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


[CentOS] (re)load new kernel with rebooting host node?

2009-12-02 Thread Rudi Ahlers
Hi all,

Is it possible to reload the dom0 / host node's kernel with a newer
one, without rebooting the server? I know kexec can do something like
this for security patches, but I don't know much about kexec, and I
don't want to mess up a production server either. So, has anyone done
something like this before? I need to load a new kernel for one of the
domU's iptables to work, but don't want to reboot the whole server and
cause downtime for the other domU's.

-- 
Kind Regards
Rudi Ahlers
CEO, SoftDux Hosting
Web: http://www.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Small proxy appliance hardware

2009-12-02 Thread nate
Jason Pyeron wrote:

> The Realtek 8111C gigabit controller is supported by RH/Centos? Even at
> install
> time?

I avoid Realtek for everything myself..

Another option may be
http://www.supermicro.com/products/system/1U/5015/SYS-5015M-MR.cfm

Uses a dual core pentium D, and dual Intel Gigabit NICs, and you
get optional IPMI for remote management as well, similar half
depth chassis.

Only downside is you have to crack open the chassis to swap the disk,
though if you use CF you could have your system builder make you
a system with a CF->SATA adapter in the available I/O slot so
the CF card is easily accessible from the outside of the chassis.

Rackable/SGI products are nicer in that they have better management
and LCD screens on their half depth stuff

http://www.sgi.com/products/servers/half_depth/1u_intel_2p.html

But I doubt they want to talk to anyone that wants to order just one.

nate


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


Re: [CentOS] Small proxy appliance hardware

2009-12-02 Thread Jason Pyeron
 

> -Original Message-
> From: centos-boun...@centos.org 
> [mailto:centos-boun...@centos.org] On Behalf Of Neil Aggarwal
> Sent: Wednesday, December 02, 2009 13:54
> To: 'CentOS mailing list'
> Subject: Re: [CentOS] Small proxy appliance hardware
> 
> > I need to configure a small proxy appliance which doesn't require a 
> > lot of CPU power I need something with UL/CSA/CE approvals
> 
> I recommend you look at the Supermicro 5015A-H:
> http://www.supermicro.com/products/system/1U/5015/SYS-5015A-H.
cfm?typ=H
> 
> The server is RoHS compliant and the power supply has these approvals:
>   USA - UL listed, FCC 
>   Canada - CUL listed 
>   EN 60950/IEC 60950-Compliant 
>   Europe/CE Mark 
>   Germany - TUV Certified 
> 
> This would be more flexible than anything else.  It already 
> has ethernets and there would not be any compatability issues.

The Realtek 8111C gigabit controller is supported by RH/Centos? Even at install
time?

> 
> I hope it helps,
>   Neil
> 
> --
> Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net CentOS 
> 5.4 VPS with unmetered bandwidth only $25/month!
> No overage charges, 7 day free trial, Google Checkout accepted 
> 
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

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


Re: [CentOS] Small proxy appliance hardware

2009-12-02 Thread Neil Aggarwal
> I need to configure a small proxy appliance which doesn't 
> require a lot of CPU power
> I need something with UL/CSA/CE approvals

I recommend you look at the Supermicro 5015A-H:
http://www.supermicro.com/products/system/1U/5015/SYS-5015A-H.cfm?typ=H

The server is RoHS compliant and the power supply has
these approvals:
USA - UL listed, FCC 
Canada - CUL listed 
EN 60950/IEC 60950-Compliant 
Europe/CE Mark 
Germany - TUV Certified 

This would be more flexible than anything else.  It already
has ethernets and there would not be any compatability
issues.

I hope it helps,
Neil

--
Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net
CentOS 5.4 VPS with unmetered bandwidth only $25/month!
No overage charges, 7 day free trial, Google Checkout accepted 

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


[CentOS] (HOWTO) Crypto root with the LUKS key on a USB stick

2009-12-02 Thread Devin Reade
I've written up a document on how to have whole-disk encryption
(minus /boot) while having your LUKS key on a USB stick.  (Whether or
not this is a good idea depends on your usage model, and I won't get
into that).

The document is at
 
and is targetted at CentOS 5.4.  It supersedes my howto for crypto root
(for interactive boot or USB sticks) for CentOS 5.1 - 5.3 (the old
links are on that page).

If anyone has feedback on it, feel free to contact me privately.

Devin
-- 
Anyone who cannot cope with mathematics is not fully human.  At best he
is a tolerable subhuman who has learned to wear shoes, bathe, and not make
messes in the house.- Robert Heinlein

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


[CentOS] Tomcat authentication via PAM (or other system methods)?

2009-12-02 Thread Les Mikesell
Is there a way to coax java services running under tomcat to use the 
system authentication methods set up through PAM? In my case, this would 
be users in the local passwd file or through smb to a windows domain. 
I've added mod_auth_pam to get this effect with apache but would like to 
also handle java web services.

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


Re: [CentOS] Autofs cannot bind LDAP server

2009-12-02 Thread Eric B.
"Benjamin Donnachie"  
wrote in message 
news:732076a80912020835u4cc87abwb3633c40320e8...@mail.gmail.com...
2009/12/2 Eric B. :
> > In the meantime, if anyone else has any suggestions what
> > can do, would love to hear about it.

> Do you just have the one LDAP server?  I would probably set up a slave
> and add it to your client's ldap configuration.

Yes - thanks.  Actually, my problem has to do with sequencing.  I'm running 
most of my servers as Virtual Machines, so if/when a Virtual Host reboots, 
all the vms on it reboot as well.  If any of the other vms happen to boot 
prior to the ldap servers, I run into this problem.  So I'm trying to figure 
out if there is a way around this, apart from making sure never to boot both 
the ldaps at the same time.

Thanks,

Eric



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


[CentOS] Kerberos + NFSv4 difficulties

2009-12-02 Thread Dan Burkland
Hey All,

I recently have been trying to setup an NFSv4 share that utilizes Kerberos. My 
experience in general with NFS is very slim however I feel like I am very close 
to getting this project completed. Currently I have the following things in 
place:
1) NFS server nfs.example.net (VM#2) - Running CentOS 5.4 with all of the 
latest updates and NFS-related packages
2) Kerberos KDC running on Kerberos.example.net (VM#1) - Running CentOS 5.4 
with all of the latest updates
3) NFS client nfs-client.example.net (VM#3) - Running CentOS 5.4 with all of 
the latest updates

Before I give you the error message I receive when I enable NFS, I'll first 
describe my setup process.

1)   Verified Kerberos works on all machines by attempting a kinit testuser 
which worked properly.
2)   Verified that the clocks on all machines represent the same time 
(synced using a local NTP server)
3)   Created a service principle for nfs.example.net by performing the 
following commands on the nfs.example.net machine: - (Performed on NFS server)
a.   kadmin (Logged in as an admin principle)
b.   addprinc -randkey nfs/nfs.example.net
c.   ktadd -e des-cbc-crc:normal nfs/nfs.example.net
d.   quit
e.   kinit nfs/nfs.example.net -k -t /etc/krb5.keytab
f. klist to verify
4)   Edited /etc/idmapd.conf with the following changes: - (Performed on 
NFS server)
a.   changed Nobody-{User,Group} to nfsnobody
b.   changed Domain to nfs.example.net
5)   Mkdir /nfs/ - (Performed on NFS server)
6)   Added the following to /etc/exports - (Performed on NFS server)
a.   /nfs gss/krb5p(rw,sync,fsid=0)
7)   exportfs -rv - (Performed on NFS server)
8)   Verified all relevant nfs services were stopped - (Performed on NFS 
server)
9)   Uncommented and made the following changes to /etc/sysconfig/nfs - 
(Performed on NFS server)
a.   MOUNTD_NFS_V1="no"
b.   MOUNTD_NFS_V2="no"
c.   RPCNFSDARGS="-N 2 -N 3 -U"
d.   SECURE_NFS = "yes"
10)   /etc/init.d/portmap start; /etc/init.d/rpcidmapd start; /etc/init.d/nfs 
start - (Performed on NFS server)
11)   And I receive the following output when the nfs service starts:
a.   Starting RPC svcgssd: FAILED
b.   Starting NFS Services: OK
c.   Starting NFS quotas: OK
d.   Starting NFS daemon: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 
state recovery directory
e.   NFSD: starting 90-second grace period
f. Starting NFS mountd: OK
12)   I then checked /var/log/messages to find the following log entries:
a.   Dec  2 12:16:51 nfs rpc.svcgssd[6018]: ERROR: GSS-API: error in 
gss_acquire_cred(): Unspecified GSS failure.  Minor code may provide more 
information - No principal in keytab matches desired name
b.   Dec  2 12:16:51 nfs rpc.svcgssd[6018]: Unable to obtain credentials 
for 'nfs'
c.   Dec  2 12:16:51 nfs rpc.svcgssd[6018]: unable to obtain root (machine) 
credentials
d.   Dec  2 12:16:51 nfs rpc.svcgssd[6018]: do you have a keytab entry for 
nfs/@ in /etc/krb5.keytab?

I seem to be stuck at this point and would appreciate your insight.

Thank you,

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


[CentOS] Small proxy appliance hardware

2009-12-02 Thread Chuck Munro
I need to configure a small proxy appliance which doesn't require a lot
of CPU power.  I'm looking for any warnings this group may have
regarding CentOS-5 on the following:

 - Acer AspireRevo 3610  (Atom CPU)
 - Dell Inspiron 537s  (Celeron)
 - Any other small machines you might recommend (UL approved)

I need to implement dual NICs, and for the Dell it should be no problem
finding a low-profile 3Com or Intel adapter, but for the Acer I'll need
to use one of those USB wired network dongle things.

Does anyone have recommendations for a USB dongle that is fully
automatic (regarding speed and duplex negotiation) supported by CentOS?
Gigabit speed is not required.

Any other compatibility issues with the above machines?

Normally I'd simply build something from components and squeeze it into
a small box, but in this case I need something with UL/CSA/CE approvals,
which lets out homebrew hardware.

Many thanks in advance!


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


Re: [CentOS] Samsung M800

2009-12-02 Thread Les Mikesell
Frank Cox wrote:
> On Wed, 2009-12-02 at 07:45 -0600, Les Mikesell wrote:
>> This is the Sprint Instinct, right?
> 
> Yes.
> 
>>   The phone does connect as a disk on a Mac 
>> with no drivers but that only started working after an update to the
>> phone 
>> firmware so be sure you are up to date.
> 
> Interesting to know.  Sask Tel might frown on me updating the firmware,
> though.
> 
>>  If you aren't on Sprint in the US, it 
>> might be different, though.
> 
> I'm on Sask Tel in Saskatchewan, Canada, so I might be out of luck.
> 
>>   I'll try it with a Centos box later today.
> 
> Let me know what happens.


OK, I just verified that it does connect and auto-mounts on the desktop 
as you'd expect on a centos5 box.  But your behavior is what I used to 
see when connecting to a Mac with the original firmware - and it might 
have needed the drivers installed to work on windows.  Bluetooth would 
work even before the update but its too slow to be useful with a 
several-gig micro-sd card.

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

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


Re: [CentOS] Autofs cannot bind LDAP server

2009-12-02 Thread Benjamin Donnachie
2009/12/2 Eric B. :
> In the meantime, if anyone else has any suggestions what
> I can do, would love to hear about it.

Do you just have the one LDAP server?  I would probably set up a slave
and add it to your client's ldap configuration.

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


Re: [CentOS] Samsung M800

2009-12-02 Thread Frank Cox

On Wed, 2009-12-02 at 07:45 -0600, Les Mikesell wrote:
> This is the Sprint Instinct, right?

Yes.

>   The phone does connect as a disk on a Mac 
> with no drivers but that only started working after an update to the
> phone 
> firmware so be sure you are up to date.

Interesting to know.  Sask Tel might frown on me updating the firmware,
though.

>  If you aren't on Sprint in the US, it 
> might be different, though.

I'm on Sask Tel in Saskatchewan, Canada, so I might be out of luck.

>   I'll try it with a Centos box later today.

Let me know what happens.

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

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


Re: [CentOS] Persistent NFS Caching

2009-12-02 Thread James Pearson
Paul Berger wrote:

> I read a CentOS bugzilla http://bugs.centos.org/view.php?id=3853 that
> indicated that the functionality may exist in the kernels yet, but
> just the user space tools were missing. After doing some testing, the
> persistent caching does not appear to be in the kernels, either that
> or process outlined in the bugzilla entry and
> http://people.redhat.com/steved/fscache/docs/HOWTO.txt are missing
> something.

Looks like that CentOS bug listing is not quite right - the FS-Cache 
code is still in the 5.[34] kernels (and the fscache.ko module is 
available), but the 'fsc' mount option in the nfs client module has been 
disabled - from the kernel changelog:

* Sat Sep 13 2008 Don Zickus  [2.6.18-115.el5]
...
- [nfs] disable the fsc mount option (Steve Dickson ) [447474]

> I also tried the Centos Plus kernel to see if it's be enabled in there
> and the results appear to be the same.
> 
> Apparently I need to use either Fedora 12 if I want to use this
> feature now, use CentOS 5.2 and not update as waiting till CentOS 6 is
> not really an option.  I really hate using bleeding edge and not
> updating and running with packages with know security vulnerabilities
> (even on our internal networkd) seems like a poor idea. ::sigh::

Theoretically, you could rebuild a more recent CentOS 5.[34] kernel with 
the 'linux-2.6-nfs-disable-the-fsc-mount-option.patch' commented out in 
the spec file - but as I mentioned previously, the FS-Cache code that is 
in these kernels is now quite old (and buggy).

If you really need to use FS-Cache now, then you need to use something 
like Fedora 12 or, as I have recently done, use CentOS 5 with a recent 
mainline kernel (2.6.32-rc8-git4 has up to date FS-Cache patches) and a 
more recent nfs-utils version - see:



James Pearson

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


Re: [CentOS] Autofs cannot bind LDAP server

2009-12-02 Thread Eric B.
"Todd Denniston" 
 wrote in 
message news:4b168426.9030...@tsb.cranrdte.navy.mil...
> Kwan Lowe wrote, On 12/02/2009 07:07 AM:
>> On Fri, Nov 27, 2009 at 12:30 PM, Eric B. 
>>  wrote:
>>
>>> My problem, however, is that once my ldap server is back up, autofs 
>>> never
>>> seems to retry to connect to it, so all my /home mounts fail. 
>>> Basically, it
>>> means I have to make sure that my LDAP server is never down while 
>>> another
>>> server is rebooting.
>>>
>>> I figure there must be something in the configuration file that would 
>>> allow
>>> me to tweak this to indicate to autofs to recheck the ldap server
>>> periodically to see if it has come back up, but can't seem to find 
>>> anything.
>>
>> Once the server is back up, does restarting the autofs daemon fix the
>> behaviour?
>>
>> Also, try setting the logging to debug.. Might give you a better idea
>> of why it's not reconnecting.
>
> Perhaps the following links from an autofs list thread will point to 
> something for Eric:
> subject: "[autofs] ldap and reloading"
> http://linux.kernel.org/pipermail/autofs/2009-June/005775.html
> http://linux.kernel.org/pipermail/autofs/2009-June/005779.html
>
> BTW the 'how to' debug Autofs is at:
> http://people.redhat.com/jmoyer/

Thanks for the links.  Not exactly what I need, but maybe an alley to help 
me down the path.  In the meantime, if anyone else has any suggestions what 
I can do, would love to hear about it.

Thanks,

Eric



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


Re: [CentOS] Autofs cannot bind LDAP server

2009-12-02 Thread Eric B.
> "Alan McKay"  wrote in
> message news:844129e80912011526o16aa6aen206a1cf7676a5...@mail.gmail.com...
> > I'm using Autofs and LDAP for mounting my home directories via nfs. In
> > general, everything seems to work fine. However, I have one small
> > problem.
> > If I reboot my server using autofs while my LDAP server is down, I get
> > the
> > following error message in my logs:
>
> I can't help you - but can you help me by pointing me to the docs you
> used to get this far?

Holy cow.  It wasn't easy... I had to do a lot of digging around to find the
necessary stuff, and unfortunately, don't have all the links any more.  I
did a lot of searching online using LDAP and autofs as query strings.  Some
of the links I found were the following that helped me understand.  Mind
you, none were "howto" recepies as such.


http://www.linuxtopia.org/online_books/rhel5/rhel5_administration/rhel5_s1-nfs-client-config-autofs.html
http://www.openldap.org/faq/data/cache/599.html


In a nutshell (if memory serves properly), you needed to do the following 
(this is all assuming you already have a functional LDAP server up and 
running and properly configured in your nsswitch.conf files and your 
ldap.conf files, etc).

1) Add the autofs schema to your ldap server (add the following line to the
slapd.conf file:  include
/etc/openldap/schema/redhat/autofs.schema).  I don't remember if I already
had the autofs.schema file or not, or if I had to search for it.

2) Modify your /etc/sysconfig/autofs to uncomment:
#
MAP_OBJECT_CLASS="automountMap"
ENTRY_OBJECT_CLASS="automount"
MAP_ATTRIBUTE="ou"
ENTRY_ATTRIBUTE="cn"
VALUE_ATTRIBUTE="automountInformation"


3)  Create an ldif file and import into your LDAP server to show the
following.  Note, that my NFS server has the home directories located at
/var/nfs/home/.  Your mapping may be different.

dn: ou=auto.home,dc=domain,dc=com
objectClass: top
objectClass: automountMap
ou: auto.home

dn: cn=/,ou=auto.home,dc=domain,dc=com
objectClass: automount
cn: /
automountInformation: -rsize=8192,wsize=8192,intr
nfs_server.domain.com:/var/nfs/home/&

dn: ou=auto.master,dc=domain,dc=com
objectClass: top
objectClass: automountMap
ou: auto.master

dn: cn=/home,ou=auto.master,dc=domain,dc=com
objectClass: automount
cn: /home
automountInformation:
ldap:ldap_server.domain.com:ou=auto.home,dc=domain,dc=com


4) Cross your fingers and restart your ldap server and your autofs daemon
and hope it works.  I got this working on CentOS 5.3.

Hope this helps.  I remember having to do a lot of digging around, a lot of
searching and a lot of trial and error to get it working.  But hopefully the
above points should at least set you off in the correct path.  Keep in mind 
I am by far no expert - I just poked around until I got it working, and once 
I did, stepped away from it.

Good luck.

Eric




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


Re: [CentOS] Autofs cannot bind LDAP server

2009-12-02 Thread Eric B.
>
> "Kwan Lowe"  wrote in 
> message 
> news:b7e478370912020407p35def217td1bcf579d7bb8...@mail.gmail.com...
> On Fri, Nov 27, 2009 at 12:30 PM, Eric B. 
>  wrote:
>
> > My problem, however, is that once my ldap server is back up, autofs 
> > never
> > seems to retry to connect to it, so all my /home mounts fail. Basically, 
> > it
> > means I have to make sure that my LDAP server is never down while 
> > another
> > server is rebooting.
> >
> > I figure there must be something in the configuration file that would 
> > allow
> > me to tweak this to indicate to autofs to recheck the ldap server
> > periodically to see if it has come back up, but can't seem to find 
> > anything.
>
> Once the server is back up, does restarting the autofs daemon fix the
> behaviour?

Yes.  Restarting autofs daemon causes it to reconnect to the ldap server, 
and all automounts work properly at that point.

> Also, try setting the logging to debug.. Might give you a better idea
> of why it's not reconnecting.

I tried, but I got not additional useful information out of the automounter. 
Basically, it says that it failed to connect to ldap server, and never 
retries.  But nothing particularly more useful (to me at least) there.

Any ideas of lists or groups that I can try otherwise?  I've tried posting 
to the kernel.autofs mailing list, but for some reason my posts never make 
it on.  I even tried mailing the list admins but got no response back from 
them either.

Thanks,

Eric



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


Re: [CentOS] Startup script woes

2009-12-02 Thread Les Mikesell
Robert Bielik wrote:
> Les Mikesell skrev:
>> The straightforward way would be to give each of your services a different 
>> name 
>> (service-a, service-b, etc) so you would have different init file instances, 
>> different pid file names, and can specify the appropriate arguements to each 
>> program.
> 
> Yeah, thought of doing multiple:
> ln -s /usr/bin/java service_a
> ln -s /usr/bin/java service_b
> etc.
> 
> If the jsvc track fails, I'll fallback on this.

Don't they really need different config files for things like which port 
to bind to anyway?  Using different init scripts instead of links would 
give you a place to specify that - or you could use the RedHat-style 
scheme of extrapolating specific variable settings into files that match 
the service name under /etc/sysconfig to keep local changes out of the 
distributed init and config files.

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


Re: [CentOS] Autofs cannot bind LDAP server

2009-12-02 Thread Todd Denniston
Kwan Lowe wrote, On 12/02/2009 07:07 AM:
> On Fri, Nov 27, 2009 at 12:30 PM, Eric B.  wrote:
> 
>> My problem, however, is that once my ldap server is back up, autofs never
>> seems to retry to connect to it, so all my /home mounts fail.  Basically, it
>> means I have to make sure that my LDAP server is never down while another
>> server is rebooting.
>>
>> I figure there must be something in the configuration file that would allow
>> me to tweak this to indicate to autofs to recheck the ldap server
>> periodically to see if it has come back up, but can't seem to find anything.
> 
> Once the server is back up, does restarting the autofs daemon fix the
> behaviour?
> 
> Also, try setting the logging to debug.. Might give you a better idea
> of why it's not reconnecting.

Perhaps the following links from an autofs list thread will point to something 
for Eric:
subject: "[autofs] ldap and reloading"
http://linux.kernel.org/pipermail/autofs/2009-June/005775.html
http://linux.kernel.org/pipermail/autofs/2009-June/005779.html

BTW the 'how to' debug Autofs is at:
http://people.redhat.com/jmoyer/

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Startup script woes

2009-12-02 Thread Robert Bielik
Les Mikesell skrev:
> 
> The straightforward way would be to give each of your services a different 
> name 
> (service-a, service-b, etc) so you would have different init file instances, 
> different pid file names, and can specify the appropriate arguements to each 
> program.

Yeah, thought of doing multiple:
ln -s /usr/bin/java service_a
ln -s /usr/bin/java service_b
etc.

If the jsvc track fails, I'll fallback on this.

Thnx
/R


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


Re: [CentOS] Persistent NFS Caching

2009-12-02 Thread Paul Berger
On Wed, Dec 2, 2009 at 8:08 AM, James Pearson
 wrote:
> Ray Van Dolson wrote:
>> On Tue, Dec 01, 2009 at 05:09:31PM -0600, Paul Berger wrote:
>>
>>>Has anybody got persistent NFS caching to work after 5.3 update
>>>removed the tech preview?
>>>
>>>I have cachesfilesd installed & running and using nfs-utils with fsc
>>>patched back in but it appears to not be working, any pointers?
>>
>> I can't find the link, but I thought the kernel components required for
>> FS-Cache to function were pulled in the 5.3 kernel...
>
> 
>
>> I'm not sure if they'll be back in 5.5, 6.0 or if I'm completely
>> mistaken.
>>
>> I seem to recall the delay being a result of upstream kernel not
>> accepting the FS-Cache patches (which I believe they did do recently in
>> 2.6.30).
>
> The kernel patches that were in the earlier 5.x kernels are now a bit
> out-of-date and IMHO not really suitable for production use.
>
> There has recently been a number of new FS-Cache patches/improvements
> that will be in the 2.6.32 mainline kernel
>
> I doubt FS-Cache will be back in future 5.x kernels - my guess is that
> it will be in the 6.x kernels
>
> James Pearson

I read a CentOS bugzilla http://bugs.centos.org/view.php?id=3853 that
indicated that the functionality may exist in the kernels yet, but
just the user space tools were missing. After doing some testing, the
persistent caching does not appear to be in the kernels, either that
or process outlined in the bugzilla entry and
http://people.redhat.com/steved/fscache/docs/HOWTO.txt are missing
something.

I also tried the Centos Plus kernel to see if it's be enabled in there
and the results appear to be the same.

Apparently I need to use either Fedora 12 if I want to use this
feature now, use CentOS 5.2 and not update as waiting till CentOS 6 is
not really an option.  I really hate using bleeding edge and not
updating and running with packages with know security vulnerabilities
(even on our internal networkd) seems like a poor idea. ::sigh::

Regards,
Paul Berger
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] non-threaded perl no longer in .spec file

2009-12-02 Thread Kurt Hansen

Robert Heller wrote:
> At Mon, 30 Nov 2009 16:16:43 -0500 CentOS mailing list  
> wrote:
>
>   
>> Hello,
>>
>> I'm setting up a new server on 5.4 and noticed this in the perl.spec file:
>>
>> * Mon Jul 21 2008 Stepan Kasal - 4:5.8.8-14.el5
>> - add two patches, which...
>> - Resolves: #435505, #431041
>> - remove %%define threading, the non-threading variant is not supported,
>>   Related: 435376
>>
>>
>> That comment wasn't there when I set up a server on 5.2 a few months 
>> back and the %define threading option was still in the perl.spec file, 
>> making it easy for me to create my own non-threaded perl.
>>
>> I want a non-threaded perl because the mod_perl folks say that the 
>> performance is better on a non-threaded perl.
>>
>> I believe I can compare the spec files and figure out where to edit the 
>> new spec file, but I wondered about that "not supported" comment.
>>
>> Is there something "bad" about the non-threading variant?
>> 
>
> Probably the same thing that is bad about a single core processor. 
> Which are pretty much no longer available (except for processors meant
> for little SBC/Embedded systems).  I suspect that either RH or (more
> likely) the Perl people don't want to have to support two versions of
> Perl, one with and one without threading.
>   
Actually, I'm pretty sure that this is a decision by RH alone. If 
anything, the "Perl people" advised against it. Everything I've read by 
perl developers is that threading is a performance hit in perl unless 
you've written your program specifically to take advantage of threading. 
Most perl programs don't, so it would be better for those who use perl 
the most if the default version were the non-threaded one. However, I 
realize that choosing the threaded version almost assuredly is preferred 
by a majority of RH users. It has been clear by choices RH has made over 
the years with respect to perl that heavy users of perl in Apache are 
not a core constituency of RH. Those of us who do use perl extensively 
on RH distributions have to adapt. I only wish RH made it easier.

I do know, though, that there is a set of perl modules, called bioperl, 
used extensively by folks analyzing the human genome. Plus, they even 
have a pretty large cluster at the National Institutes of Health running 
on CentOS. I wonder if a lot of those modules are optimized for threaded 
perl?

The program that I use the most, mod_perl, which is a persistent perl 
interpreter in Apache, was not written to take advantage of threading. 
The mod_perl developers report that you can get a 20-30% increase in 
performance by using a non-threaded perl vs a threaded one.

No-one's brought up any problems with the non-threaded one, so I think 
I'll go ahead with my own spec file and rebuilding perl.

Thank you!

Take care,

Kurt Hansen
khan...@charityweb.net
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Persistent NFS Caching

2009-12-02 Thread James Pearson
Ray Van Dolson wrote:
> On Tue, Dec 01, 2009 at 05:09:31PM -0600, Paul Berger wrote:
> 
>>Has anybody got persistent NFS caching to work after 5.3 update
>>removed the tech preview?
>>
>>I have cachesfilesd installed & running and using nfs-utils with fsc
>>patched back in but it appears to not be working, any pointers?
> 
> I can't find the link, but I thought the kernel components required for
> FS-Cache to function were pulled in the 5.3 kernel... 



> I'm not sure if they'll be back in 5.5, 6.0 or if I'm completely
> mistaken.
> 
> I seem to recall the delay being a result of upstream kernel not
> accepting the FS-Cache patches (which I believe they did do recently in
> 2.6.30).

The kernel patches that were in the earlier 5.x kernels are now a bit 
out-of-date and IMHO not really suitable for production use.

There has recently been a number of new FS-Cache patches/improvements 
that will be in the 2.6.32 mainline kernel

I doubt FS-Cache will be back in future 5.x kernels - my guess is that 
it will be in the 6.x kernels

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


Re: [CentOS] Inquiry:How to compare two files but not in line-by-line basis?

2009-12-02 Thread Les Mikesell
hadi motamedi wrote:
> Dear All
> Can you please do me favor and let me know how can I compare two files 
> but not in line-by-line basis on my CentOS server ? I mean say row#1 in 
> file1 has the same data as say row#5 in file2 , but the comm compares 
> them in line-by-line basis that is not intended . It seems that the diff 
> cannot do the job as well .

Diff should resync after showing the some lines have been inserted.  If it 
shows 
that no lines match when you think that some do, it may mean the files have 
different line endings.  Was one created under windows or transferred in a way 
that could change them?

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


Re: [CentOS] Startup script woes

2009-12-02 Thread Steve Huff


On Dec 2, 2009, at 8:47 AM, Jeff wrote:


I use the Java Service Wrapper to run JBoss in CentOS 4. A little work
to set up, but it works great once you get it figured out. My version
is s few years old now, so I can't speak for what may have changed in
the meantime.

http://wrapper.tanukisoftware.org/doc/english/download.jsp



this software is also available from the JPackage repository (http://jpackage.org/ 
) as 'tanukiwrapper'.


-steve

--
If this were played upon a stage now, I could condemn it as an  
improbable fiction. - Fabian, Twelfth Night, III,v

http://five.sentenc.es



PGP.sig
Description: This is a digitally signed message part
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Startup script woes

2009-12-02 Thread Les Mikesell
Robert Bielik wrote:
> Ok, I think I'm going nuts. I simply want to startup a Java Service like so:
> 
> daemon --pidfile=$PIDFILE --user $USER "cd $WORKING_DIR && /usr/bin/java 
> $DAEMON_ARGS >/dev/null 2>&1 &"
> 
> I can get it to startup alrite, but the litte "thingy" is that I have no way 
> of getting the process ID of the
> started service to put in the PIDFILE, in order for me to later on be able to 
> stop the service.
> (I can have up to 5 of these Java services running, each needing a different 
> pidfile).
> 
> This is a BREEZE to do in Debian/Ubuntu with start-stop-daemon!
> 
> Please help!

The straightforward way would be to give each of your services a different name 
(service-a, service-b, etc) so you would have different init file instances, 
different pid file names, and can specify the appropriate arguements to each 
program.

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


Re: [CentOS] ldapsearch -f file doesn't work

2009-12-02 Thread Sergio Belkin
2009/12/2 Craig White :
> On Wed, 2009-12-02 at 06:06 -0700, Craig White wrote:
>

Well at last, it was easier I thought

Thanks God, google and this Novell page :D

http://www.novell.com/coolsolutions/tip/17144.html

I hope be useful...
-- 
--
Open Kairos http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Startup script woes

2009-12-02 Thread Jeff
On Wed, Dec 2, 2009 at 3:55 AM, Robert Bielik  wrote:
> Ok, I think I'm going nuts. I simply want to startup a Java Service like so:
>
> daemon --pidfile=$PIDFILE --user $USER "cd $WORKING_DIR && /usr/bin/java 
> $DAEMON_ARGS >/dev/null 2>&1 &"
>
> I can get it to startup alrite, but the litte "thingy" is that I have no way 
> of getting the process ID of the
> started service to put in the PIDFILE, in order for me to later on be able to 
> stop the service.
> (I can have up to 5 of these Java services running, each needing a different 
> pidfile).
>
> This is a BREEZE to do in Debian/Ubuntu with start-stop-daemon!

I use the Java Service Wrapper to run JBoss in CentOS 4. A little work
to set up, but it works great once you get it figured out. My version
is s few years old now, so I can't speak for what may have changed in
the meantime.

http://wrapper.tanukisoftware.org/doc/english/download.jsp

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


Re: [CentOS] Samsung M800

2009-12-02 Thread Les Mikesell
Benjamin Donnachie wrote:
> 2009/12/1 Frank Cox :
>> Unfortunately, my phone doesn't show under /proc/scsi/scsi.  I suspect
>> that it won't show up until it is in mass storage mode, and if I can get
>> it into mass storage mode I probably won't have to worry about the issue
>> described in that tech note.
> 
> Hmmm...  I suspect that the phone may need a command over the USB bus
> to put it into mass storage mode - these guys may be able to help -
> http://www2.one-eyed-alien.net/~mdharm/linux-usb/  However, many of
> the multi-function Samsung devices listed don't work properly so you
> may not have much success.

This is the Sprint Instinct, right?  The phone does connect as a disk on a Mac 
with no drivers but that only started working after an update to the phone 
firmware so be sure you are up to date. If you aren't on Sprint in the US, it 
might be different, though.  I'll try it with a Centos box later today. But I 
still recommend a usb adapter for the memory card if you are moving any media 
files, especially video - it's faster even if you count the time popping the 
card in and out.

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


Re: [CentOS] ldapsearch -f file doesn't work

2009-12-02 Thread Craig White
On Wed, 2009-12-02 at 06:06 -0700, Craig White wrote:

> I don't know because I haven't figured out how the 'f' option would be
> useful to me but I think the way you are trying to do it is clunky...
> 
> #!/bin/sh
> #
> # usage - myldap-search user
> #
> LDAP_PASSWD="whatever"
> BINDDN="cn=Manager,dc=palermo,dc=edu"
> BASEDN="ou=people,dc=mydomain,dc=edu"
> for i in `cat users.txt` do;
> USER_PASSWD = ldapsearch -x\
>-w $LDAP_PASSWORD \
>-D $BINDDN \
>-b uid=$0","$BASEDN \
>legajo
> done
> 

correction, the first one s/h/b

#!/bin/sh
#
# usage - myldap-search user
#
LDAP_PASSWD="whatever"
BINDDN="cn=Manager,dc=palermo,dc=edu"
BASEDN="ou=people,dc=mydomain,dc=edu"
ldapsearch -x\
 -w $LDAP_PASSWORD \
 -D $BINDDN \
 -b uid=$0","$BASEDN \
 legajo

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: [CentOS] ldapsearch -f file doesn't work

2009-12-02 Thread Craig White
On Wed, 2009-12-02 at 10:48 -0200, Sergio Belkin wrote:
> 2009/12/2 Sergio Belkin :
> > Hi,
> >
> > Firstly, system info:
> >
> > Linux mysystem 2.6.18-53.1.4.el5 #1 SMP Fri Nov 30 00:45:55 EST 2007
> > x86_64 x86_64 x86_64 GNU/Linux
> >
> >
> > I am running ldap on Centos with packages openldap-2.3.27-8.el5_2.4 y
> > openldap-2.3.27-8.el5_2.4
> > I'd want to perform a query that return one attribute. So I did
> > something as follows:
> >
> >
> > ldapsearch -W  -f qbis.ldif -D "cn=Manager,dc=palermo,dc=edu" -b
> > "ou=people,dc=mydomain,dc=edu" -x  legajo
> >
> > (Where legajo is the filter)
> >
> > There is no problem with filter but wih the file "qbis.ldif" which contains:
> >
> >
> > dn: uid=jdoe,ou=people,dc=mydomain,dc=edu
> >
> >
> > Of course I could perform that query with no need of one file, but I
> > need to get "legajo" from around 800 users so it would be nice to be
> > able to use "-f file". I cannot do something like a "loop for" because
> > it would ask me every time the Manager password.
> >
> > Am I doing something wrong or is a ldap bug?
> >
> > Thanks in advance!
> > --
> 
> Ouch, I forget to comment what is the problem, well the problem is
> that query returns all database entries (onlt it works the filter) but
> doesn't honor "-f file" at all. So that was my question, what's wrong
> with that option?

I don't know because I haven't figured out how the 'f' option would be
useful to me but I think the way you are trying to do it is clunky...

#!/bin/sh
#
# usage - myldap-search user
#
LDAP_PASSWD="whatever"
BINDDN="cn=Manager,dc=palermo,dc=edu"
BASEDN="ou=people,dc=mydomain,dc=edu"
for i in `cat users.txt` do;
USER_PASSWD = ldapsearch -x\
   -w $LDAP_PASSWORD \
   -D $BINDDN \
   -b uid=$0","$BASEDN \
   legajo
done

or to do a whole shot of users

#!/bin/sh
#
# input file of users = users.txt
#
LDAP_PASSWD="whatever"
BINDDN="cn=Manager,dc=palermo,dc=edu"
BASEDN="ou=people,dc=mydomain,dc=edu"
for i in `cat users.txt` do;
 USER_PASSWD = ldapsearch -x\
   -w $LDAP_PASSWORD \
   -D $BINDDN \
   -b $BASEDN \
   legajo
  echo $i \t $USER_PASSWD >> /tmp/ldap-output.txt
done

Something like that should do it - untested

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: [CentOS] CentOS 5.3 - changing display settings

2009-12-02 Thread mark
Andrew wrote:
> I've just installed CentOS 5.3 on my desktop and need to change the
> installed display setting from 1280x1024 to 1024x768 (more suitable for
> my monitor). When I try this on the Display Settings tab, I get the
> message:
> 
> "Display settings changed
> You need to log out and restart the X server for the changes to take
> effect.
> Configuration was written to /etc/X11/xorg.conf, original configuration
> saved as /etc/X11/xorg.conf.backup."
> 
> Trouble is, I don't know how to restart the X server apart from
> rebooting the computer, but that has no effect and the display settings
> remain unchanged! Any help appreciated,

What runlevel is the system at - 3, or 5? If 3, log out and log back in. If 5, 
as someone said, you can always do a .

Hmmm, wonder if init 3 would work

mark
-- 
Headlines: two-thirds of Americans are overweight!
"I have heard it said that you can tell a lot about a country by its
cuisine. I have also heard it said that the US is known around the world
for creating the world's best...junk food" - whitroth
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] ldapsearch -f file doesn't work

2009-12-02 Thread Sergio Belkin
2009/12/2 Sergio Belkin :
> Hi,
>
> Firstly, system info:
>
> Linux mysystem 2.6.18-53.1.4.el5 #1 SMP Fri Nov 30 00:45:55 EST 2007
> x86_64 x86_64 x86_64 GNU/Linux
>
>
> I am running ldap on Centos with packages openldap-2.3.27-8.el5_2.4 y
> openldap-2.3.27-8.el5_2.4
> I'd want to perform a query that return one attribute. So I did
> something as follows:
>
>
> ldapsearch -W  -f qbis.ldif -D "cn=Manager,dc=palermo,dc=edu" -b
> "ou=people,dc=mydomain,dc=edu" -x  legajo
>
> (Where legajo is the filter)
>
> There is no problem with filter but wih the file "qbis.ldif" which contains:
>
>
> dn: uid=jdoe,ou=people,dc=mydomain,dc=edu
>
>
> Of course I could perform that query with no need of one file, but I
> need to get "legajo" from around 800 users so it would be nice to be
> able to use "-f file". I cannot do something like a "loop for" because
> it would ask me every time the Manager password.
>
> Am I doing something wrong or is a ldap bug?
>
> Thanks in advance!
> --

Ouch, I forget to comment what is the problem, well the problem is
that query returns all database entries (onlt it works the filter) but
doesn't honor "-f file" at all. So that was my question, what's wrong
with that option?

Thanks in advance again :)



-- 
--
Open Kairos http://www.openkairos.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] ldapsearch -f file doesn't work

2009-12-02 Thread Sergio Belkin
Hi,

Firstly, system info:

Linux mysystem 2.6.18-53.1.4.el5 #1 SMP Fri Nov 30 00:45:55 EST 2007
x86_64 x86_64 x86_64 GNU/Linux


I am running ldap on Centos with packages openldap-2.3.27-8.el5_2.4 y
openldap-2.3.27-8.el5_2.4
I'd want to perform a query that return one attribute. So I did
something as follows:


ldapsearch -W  -f qbis.ldif -D "cn=Manager,dc=palermo,dc=edu" -b
"ou=people,dc=mydomain,dc=edu" -x  legajo

(Where legajo is the filter)

There is no problem with filter but wih the file "qbis.ldif" which contains:


dn: uid=jdoe,ou=people,dc=mydomain,dc=edu


Of course I could perform that query with no need of one file, but I
need to get "legajo" from around 800 users so it would be nice to be
able to use "-f file". I cannot do something like a "loop for" because
it would ask me every time the Manager password.

Am I doing something wrong or is a ldap bug?

Thanks in advance!
-- 
--
Open Kairos http://www.openkairos.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Autofs cannot bind LDAP server

2009-12-02 Thread Kwan Lowe
On Fri, Nov 27, 2009 at 12:30 PM, Eric B.  wrote:

> My problem, however, is that once my ldap server is back up, autofs never
> seems to retry to connect to it, so all my /home mounts fail.  Basically, it
> means I have to make sure that my LDAP server is never down while another
> server is rebooting.
>
> I figure there must be something in the configuration file that would allow
> me to tweak this to indicate to autofs to recheck the ldap server
> periodically to see if it has come back up, but can't seem to find anything.

Once the server is back up, does restarting the autofs daemon fix the
behaviour?

Also, try setting the logging to debug.. Might give you a better idea
of why it's not reconnecting.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Inquiry:How to compare two files but not in line-by-line basis?

2009-12-02 Thread John Doe
From: hadi motamedi 
>Sorry . I tried for "#diff -y" but its output seems to have a comparison 
>between the two files in line-by-line basis . As you mentioned , if the row#1 
>in file1 is in match with say row#5 in file2 I want it not to be considered as 
>a difference. But the the output shows it as if it is being considered as a 
>difference. Please correct me .

Could you be more precise when you say "compare"...?
By example, to get matching lines, you could:

  cat $FILE1 $FILE2 | sort | uniq -c | ...

You'd get each line preceded by the number of occurence; then grep what you 
want...

JD


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


Re: [CentOS] how to install ash on CentOS 5.4?

2009-12-02 Thread John Doe
From: Rudi Ahlers 
> Does anyone know if it's possible to install ash on CentOS 5.4, or
> just CentOS 5, for that matter? I'm trying to install OpenQRM which
> requires ash, but ash doesn't exist in the repositories. rpmfind.net
> als only has an older version listed, for CentOS 4
> http://rpmfind.net/linux/rpm2html/search.php?query=ash&submit=Search+...&system=&arch=

Not sure but maybe it is used on the install CD...
Or is that busybox...?

JD


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


Re: [CentOS] Startup script woes

2009-12-02 Thread John Doe
From: Robert Bielik 
> Ok, I think I'm going nuts. I simply want to startup a Java Service like so:
> daemon --pidfile=$PIDFILE --user $USER "cd $WORKING_DIR && /usr/bin/java 
> $DAEMON_ARGS >/dev/null 2>&1 &"
> I can get it to startup alrite, but the litte "thingy" is that I have no way 
> of 
> getting the process ID of the
> started service to put in the PIDFILE, in order for me to later on be able to 
> stop the service.

Try without the '='

JD


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


Re: [CentOS] Startup script woes

2009-12-02 Thread Robert Bielik
Christoph Maser skrev:
> We are a java shop and use an old/patched debian version of
> start-stop-daamon rolled in our own rpm. It works but but one problem
> whe have is when java is updated stop/restart won't work because the
> inode of the process binary is changed.
> Also interesting to have a look at is jsvc, we use that for tomcat and
> we are quite happy with it.

Thnx, I remember trying jsvc for my java services before, but I failed then to 
get it to work
properly. But I'll try again :)

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


Re: [CentOS] CentOS 5.3 - changing display settings

2009-12-02 Thread John Doe
From: Andrew 
> I've just installed CentOS 5.3 on my desktop and need to change the
> installed display setting from 1280x1024 to 1024x768 (more suitable for
> my monitor). When I try this on the Display Settings tab, I get the
> message:
> "Display settings changed
> You need to log out and restart the X server for the changes to take
> effect.
> Configuration was written to /etc/X11/xorg.conf, original configuration
> saved as /etc/X11/xorg.conf.backup."
> Trouble is, I don't know how to restart the X server apart from
> rebooting the computer, but that has no effect and the display settings
> remain unchanged! Any help appreciated,

Checked the /etc/X11/xorg.conf file...?
Maybe you could try to add:

  Section "Screen"
  ...
  SubSection "Display"
  Modes"1024x768"
  EndSubSection
  EndSection

JD


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


Re: [CentOS] Startup script woes

2009-12-02 Thread Christoph Maser
Am Mittwoch, den 02.12.2009, 10:55 +0100 schrieb Robert Bielik:
> Ok, I think I'm going nuts. I simply want to startup a Java Service like so:
>
> daemon --pidfile=$PIDFILE --user $USER "cd $WORKING_DIR && /usr/bin/java 
> $DAEMON_ARGS >/dev/null 2>&1 &"
>
> I can get it to startup alrite, but the litte "thingy" is that I have no way 
> of getting the process ID of the
> started service to put in the PIDFILE, in order for me to later on be able to 
> stop the service.
> (I can have up to 5 of these Java services running, each needing a different 
> pidfile).
>
> This is a BREEZE to do in Debian/Ubuntu with start-stop-daemon!
>
> Please help!
> TIA
> /Rob


We are a java shop and use an old/patched debian version of
start-stop-daamon rolled in our own rpm. It works but but one problem
whe have is when java is updated stop/restart won't work because the
inode of the process binary is changed.
Also interesting to have a look at is jsvc, we use that for tomcat and
we are quite happy with it.

Chrid


financial.com AG

Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | 
Germany
Frankfurt branch office/Niederlassung Frankfurt: Messeturm | 
Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany
Management board/Vorstand: Dr. Steffen Boehnert | Dr. Alexis Eisenhofer | Dr. 
Yann Samson | Matthias Wiederwach
Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender)
Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID 
number/St.Nr.: DE205 370 553
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Inquiry:How to compare two files but not in line-by-line basis?

2009-12-02 Thread hadi motamedi
On Wed, Dec 2, 2009 at 10:16 AM, Paul Bijnens
wrote:

> On 2009-12-02 11:10, hadi motamedi wrote:
> > Thank you very much for your reply . This code actually solved my
> > problem and returned exact matches between the two files (irrespective
> > of their location in the files) . As I understood , it will list each
> > data showing to which file it belongs (or it is common to both files) .
> > It is really what I wanted .
>
> (( do not top-post ))
>
> You could do the same by first sorting the two files, and then use "comm".
>
>
> --
> Paul Bijnens, Xplanation Technology ServicesTel  +32 16 397.525
> Interleuvenlaan 86, B-3001 Leuven, BELGIUM  Fax  +32 16 397.552
> ***
> * I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
> * quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, ~., *
> * stop, end, ^]c, +++ ATH, disconnect,  halt,  abort,  hangup,  KJOB, *
> * ^X^X,  :D::D,  kill -9 1,  kill -1 $$,  shutdown,  init 0,  Alt-F4, *
> * Alt-f-e, Ctrl-Alt-Del, Alt-SysRq-reisub, Stop-A, AltGr-NumLock, ... *
> * ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out  *
> ***
> ___
>  CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>


The two files are assorted ones , but the comm will compare them in
line-by-line basis . If row#1 in file1 is equal to say row#5 in file2 , so I
want it not to being considered as a difference .
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Inquiry:How to compare two files but not in line-by-line basis?

2009-12-02 Thread hadi motamedi
On Wed, Dec 2, 2009 at 10:01 AM, Paul Bijnens
wrote:

> On 2009-12-02 10:56, hadi motamedi wrote:
> > But "#diff -y" compares the two files in line-by-line basis . But my two
> > files do not have one-to-one correspondence , say row#1 in file1 maybe
> > the same as say row#5 in file2 . So I seek a way that does not consider
> > this as a difference (but diff will consider).
>
> (( First, please do not top-post. ))
>
> "diff" would match the line2 in file1 with the line5 in file2,
> and it would mark that some lines were inserted there.
>
> I think you'll have to specify more what you mean by "compare",
> and what you think is different or same.
>
>
>
>
> --
> Paul Bijnens, Xplanation Technology ServicesTel  +32 16 397.525
> Interleuvenlaan 86, B-3001 Leuven, BELGIUM  Fax  +32 16 397.552
> ***
> * I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
> * quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, ~., *
> * stop, end, ^]c, +++ ATH, disconnect,  halt,  abort,  hangup,  KJOB, *
> * ^X^X,  :D::D,  kill -9 1,  kill -1 $$,  shutdown,  init 0,  Alt-F4, *
> * Alt-f-e, Ctrl-Alt-Del, Alt-SysRq-reisub, Stop-A, AltGr-NumLock, ... *
> * ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out  *
> ***
>  ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>




Sorry . I tried for "#diff -y" but its output seems to have a comparison
between the two files in line-by-line basis . As you mentioned , if the
row#1 in file1 is in match with say row#5 in file2 I want it not to
be considered as a difference. But the the output shows it as if it is being
considered as a difference. Please correct me .
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Inquiry:How to compare two files but not in line-by-line basis?

2009-12-02 Thread Paul Bijnens
On 2009-12-02 11:10, hadi motamedi wrote:
> Thank you very much for your reply . This code actually solved my 
> problem and returned exact matches between the two files (irrespective 
> of their location in the files) . As I understood , it will list each 
> data showing to which file it belongs (or it is common to both files) . 
> It is really what I wanted .

(( do not top-post ))

You could do the same by first sorting the two files, and then use "comm".


-- 
Paul Bijnens, Xplanation Technology ServicesTel  +32 16 397.525
Interleuvenlaan 86, B-3001 Leuven, BELGIUM  Fax  +32 16 397.552
***
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, ~., *
* stop, end, ^]c, +++ ATH, disconnect,  halt,  abort,  hangup,  KJOB, *
* ^X^X,  :D::D,  kill -9 1,  kill -1 $$,  shutdown,  init 0,  Alt-F4, *
* Alt-f-e, Ctrl-Alt-Del, Alt-SysRq-reisub, Stop-A, AltGr-NumLock, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out  *
***
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Samsung M800

2009-12-02 Thread Benjamin Donnachie
2009/12/1 Frank Cox :
> Unfortunately, my phone doesn't show under /proc/scsi/scsi.  I suspect
> that it won't show up until it is in mass storage mode, and if I can get
> it into mass storage mode I probably won't have to worry about the issue
> described in that tech note.

Hmmm...  I suspect that the phone may need a command over the USB bus
to put it into mass storage mode - these guys may be able to help -
http://www2.one-eyed-alien.net/~mdharm/linux-usb/  However, many of
the multi-function Samsung devices listed don't work properly so you
may not have much success.

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


Re: [CentOS] Inquiry:How to compare two files but not in line-by-line basis?

2009-12-02 Thread hadi motamedi
Thank you very much for your reply . This code actually solved my problem
and returned exact matches between the two files (irrespective of their
location in the files) . As I understood , it will list each data showing to
which file it belongs (or it is common to both files) . It is really what I
wanted .
Sincerely Yours



On Wed, Dec 2, 2009 at 9:42 AM, Simon Banton  wrote:

>  At 08:54 + 2/12/09, hadi motamedi wrote:
> >Dear All
> >Can you please do me favor and let me know how can I compare two
> >files but not in line-by-line basis on my CentOS server ? I mean say
> >row#1 in file1 has the same data as say row#5 in file2 , but the
> >comm compares them in line-by-line basis that is not intended . It
> >seems that the diff cannot do the job as well
>
> This'll show you which lines are common to both files, and for the
> ones that aren't which file they're in.
>
> perl -MData::Dumper -le 'while(<>) {chomp; push @{$s->{"$_"}},
> $ARGV}; END{ print Dumper($s) }' file1 file2
>
> ... someone will be along shortly with a more elegant method.
>
> HTH
>
> S.
> ___
> 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] Inquiry:How to compare two files but not in line-by-line basis?

2009-12-02 Thread Paul Bijnens
On 2009-12-02 10:56, hadi motamedi wrote:
> But "#diff -y" compares the two files in line-by-line basis . But my two 
> files do not have one-to-one correspondence , say row#1 in file1 maybe 
> the same as say row#5 in file2 . So I seek a way that does not consider 
> this as a difference (but diff will consider).

(( First, please do not top-post. ))

"diff" would match the line2 in file1 with the line5 in file2,
and it would mark that some lines were inserted there.

I think you'll have to specify more what you mean by "compare",
and what you think is different or same.




-- 
Paul Bijnens, Xplanation Technology ServicesTel  +32 16 397.525
Interleuvenlaan 86, B-3001 Leuven, BELGIUM  Fax  +32 16 397.552
***
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, ~., *
* stop, end, ^]c, +++ ATH, disconnect,  halt,  abort,  hangup,  KJOB, *
* ^X^X,  :D::D,  kill -9 1,  kill -1 $$,  shutdown,  init 0,  Alt-F4, *
* Alt-f-e, Ctrl-Alt-Del, Alt-SysRq-reisub, Stop-A, AltGr-NumLock, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out  *
***
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Startup script woes

2009-12-02 Thread Robert Bielik
Ok, I think I'm going nuts. I simply want to startup a Java Service like so:

daemon --pidfile=$PIDFILE --user $USER "cd $WORKING_DIR && /usr/bin/java 
$DAEMON_ARGS >/dev/null 2>&1 &"

I can get it to startup alrite, but the litte "thingy" is that I have no way of 
getting the process ID of the
started service to put in the PIDFILE, in order for me to later on be able to 
stop the service.
(I can have up to 5 of these Java services running, each needing a different 
pidfile).

This is a BREEZE to do in Debian/Ubuntu with start-stop-daemon!

Please help!
TIA
/Rob

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


Re: [CentOS] Inquiry:How to compare two files but not in line-by-line basis?

2009-12-02 Thread hadi motamedi
But "#diff -y" compares the two files in line-by-line basis . But my two
files do not have one-to-one correspondence , say row#1 in file1 maybe the
same as say row#5 in file2 . So I seek a way that does not consider this as
a difference (but diff will consider).



On Wed, Dec 2, 2009 at 9:47 AM, Brian McKerr  wrote:

> diff -y ?
>
>
> On Wed, Dec 2, 2009 at 7:42 PM, Simon Banton  wrote:
>
>>  At 08:54 + 2/12/09, hadi motamedi wrote:
>> >Dear All
>> >Can you please do me favor and let me know how can I compare two
>> >files but not in line-by-line basis on my CentOS server ? I mean say
>> >row#1 in file1 has the same data as say row#5 in file2 , but the
>> >comm compares them in line-by-line basis that is not intended . It
>> >seems that the diff cannot do the job as well
>>
>> This'll show you which lines are common to both files, and for the
>> ones that aren't which file they're in.
>>
>> perl -MData::Dumper -le 'while(<>) {chomp; push @{$s->{"$_"}},
>> $ARGV}; END{ print Dumper($s) }' file1 file2
>>
>> ... someone will be along shortly with a more elegant method.
>>
>> HTH
>>
>> S.
>> ___
>> 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] Inquiry:How to compare two files but not in line-by-line basis?

2009-12-02 Thread Brian McKerr
diff -y ?

On Wed, Dec 2, 2009 at 7:42 PM, Simon Banton  wrote:

> At 08:54 + 2/12/09, hadi motamedi wrote:
> >Dear All
> >Can you please do me favor and let me know how can I compare two
> >files but not in line-by-line basis on my CentOS server ? I mean say
> >row#1 in file1 has the same data as say row#5 in file2 , but the
> >comm compares them in line-by-line basis that is not intended . It
> >seems that the diff cannot do the job as well
>
> This'll show you which lines are common to both files, and for the
> ones that aren't which file they're in.
>
> perl -MData::Dumper -le 'while(<>) {chomp; push @{$s->{"$_"}},
> $ARGV}; END{ print Dumper($s) }' file1 file2
>
> ... someone will be along shortly with a more elegant method.
>
> HTH
>
> S.
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 5.3 - changing display settings

2009-12-02 Thread Eero Volotinen
Quoting Andrew :

> I've just installed CentOS 5.3 on my desktop and need to change the
> installed display setting from 1280x1024 to 1024x768 (more suitable for
> my monitor). When I try this on the Display Settings tab, I get the
> message:
>
> "Display settings changed
> You need to log out and restart the X server for the changes to take
> effect.
> Configuration was written to /etc/X11/xorg.conf, original configuration
> saved as /etc/X11/xorg.conf.backup."
>
> Trouble is, I don't know how to restart the X server apart from
> rebooting the computer, but that has no effect and the display settings
> remain unchanged! Any help appreciated,

control-alt-backspace

--
Eero


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


Re: [CentOS] Inquiry:How to compare two files but not in line-by-line basis?

2009-12-02 Thread Simon Banton
At 08:54 + 2/12/09, hadi motamedi wrote:
>Dear All
>Can you please do me favor and let me know how can I compare two 
>files but not in line-by-line basis on my CentOS server ? I mean say 
>row#1 in file1 has the same data as say row#5 in file2 , but the 
>comm compares them in line-by-line basis that is not intended . It 
>seems that the diff cannot do the job as well

This'll show you which lines are common to both files, and for the 
ones that aren't which file they're in.

perl -MData::Dumper -le 'while(<>) {chomp; push @{$s->{"$_"}}, 
$ARGV}; END{ print Dumper($s) }' file1 file2

... someone will be along shortly with a more elegant method.

HTH

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


[CentOS] CentOS 5.3 - changing display settings

2009-12-02 Thread Andrew
I've just installed CentOS 5.3 on my desktop and need to change the
installed display setting from 1280x1024 to 1024x768 (more suitable for
my monitor). When I try this on the Display Settings tab, I get the
message:

"Display settings changed
You need to log out and restart the X server for the changes to take
effect.
Configuration was written to /etc/X11/xorg.conf, original configuration
saved as /etc/X11/xorg.conf.backup."

Trouble is, I don't know how to restart the X server apart from
rebooting the computer, but that has no effect and the display settings
remain unchanged! Any help appreciated,

Andy

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


[CentOS] Inquiry:How to compare two files but not in line-by-line basis?

2009-12-02 Thread hadi motamedi
Dear All
Can you please do me favor and let me know how can I compare two files but
not in line-by-line basis on my CentOS server ? I mean say row#1 in file1
has the same data as say row#5 in file2 , but the comm compares them in
line-by-line basis that is not intended . It seems that the diff cannot do
the job as well .
Thank you in advance
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos