Re: [CentOS] OT-ish: GPG problem

2009-01-05 Thread JohnS
On Mon, 2009-01-05 at 16:36 +, Anne Wilson wrote: > On Monday 05 January 2009 15:35:29 JohnS wrote: > > On Sun, 2009-01-04 at 19:54 +, Anne Wilson wrote: > > > I'm asking here because it is the best resource I know for knowledgeable > > > people. The problem in question occurs on my Fedor

Re: [CentOS] BackupPC newbie: a couple more questions

2009-01-05 Thread Seán O Sullivan
On Mon, 2008-12-22 at 17:18 +, Timothy Murphy wrote: > I see that the "Falko" tutorial at > recommends (on page 3) that one should enter one's username, > "falko" in this case, as the user in /etc/BackupPC/hosts . > > Other tutorials suggest one sho

Re: [CentOS] Bash cgi upload form

2009-01-05 Thread John Doe
> From: Sean Carolan > > Anyone have a function or script for uploading files from a web > browser with a bash script? I know this is possible to do with Perl, > I'm wondering if the same is possible using only bash. I use curl. It can be a bit tricky if you use POSTDATA... Here's the function

Re: [CentOS] OT-ish: GPG problem

2009-01-05 Thread Anne Wilson
On Monday 05 January 2009 15:35:29 JohnS wrote: > On Sun, 2009-01-04 at 19:54 +, Anne Wilson wrote: > > I'm asking here because it is the best resource I know for knowledgeable > > people. The problem in question occurs on my Fedora 9 box and Fedora 10 > > netbook, while another person, Chris,

Re: [CentOS] OT-ish: GPG problem

2009-01-05 Thread JohnS
On Sun, 2009-01-04 at 19:54 +, Anne Wilson wrote: > I'm asking here because it is the best resource I know for knowledgeable > people. The problem in question occurs on my Fedora 9 box and Fedora 10 > netbook, while another person, Chris, has the problem on a Mandriva 2009 box. > > Whate

[CentOS] will it break the system files?

2009-01-05 Thread cjzjm100
Hi,all,i seted the encoding of vim in order to display chinese well.Because when i opened source files programed by myslfe,the chinese can't display well.My locale is zh_CN.UTF-8,here is the contents of .vimrc: let &termencoding=&encoding set fileencodings=utf-8,gbk,ucs-bom,cp936 After this ,will i

[CentOS] Checking fan state

2009-01-05 Thread Robert Moskowitz
I just replaced my fan in my nc2400. It was a 5hour job. Had to pull EVERYTHING to get to where they have the fan in the thing. Now I want to know if it is working. It is suppose to be thermostatically controlled, and it takes time to heat up. So how can I find out what Centos knows about th

[CentOS] Log File Reviewing

2009-01-05 Thread Joseph L. Casale
I need to review a logfile with Sed and cut out all the lines that start with a certain word, problem is this word begins after some amount of whitespace and unless I search for whitespace at the beginning followed by "word" I may encounter "word" somewhere legitimately hence why I don't just se

Re: [CentOS] Checking fan state

2009-01-05 Thread Joseph L. Casale
>So how can I find out what Centos knows about the system temp and fan state? LM_Sensors does this... let me know what you do to get it working on your rig :) jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Bill Campbell
On Mon, Jan 05, 2009, Joseph L. Casale wrote: >I need to review a logfile with Sed and cut out all the lines that start with >a certain word, problem >is this word begins after some amount of whitespace and unless I search for >whitespace at the >beginning followed by "word" I may encounter "word

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Paul Heinlein
On Mon, 5 Jan 2009, Joseph L. Casale wrote: > I need to review a logfile with Sed and cut out all the lines that > start with a certain word, problem is this word begins after some > amount of whitespace and unless I search for whitespace at the > beginning followed by "word" I may encounter "w

Re: [CentOS] OT-ish: GPG problem

2009-01-05 Thread Anne Wilson
On Monday 05 January 2009 17:09:43 JohnS wrote: > http://freebsd.kde.org/howtos/gnupg-kmail.php > > For BSD but should be similiar in steps. Check it out or search kde.org Hi, John, thanks for answering. Yes, it's a good how-to, but I've done all this dozens of times by now without running into

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Joshua Gimer
What about: perl -ne 'if (/^\s*word/) { print $_; }' logfile any others? On Mon, Jan 5, 2009 at 11:45 AM, Joseph L. Casale wrote: > I need to review a logfile with Sed and cut out all the lines that start with > a certain word, problem > is this word begins after some amount of whitespace and

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Spiro Harvey
> awk '$1 == "word"{print}' /var/log/messages This example assumes that word is the first field and that it consists only of "word". If the first field is "word1" this won't match. Fixes for this are awk '$1 ~ "word"{print}' (this matches any occurrance of "word" in the first field) or: awk

Re: [CentOS] RH devel kernels for Centos repo

2009-01-05 Thread Vandaman
Dag Wieers wrote: > I would personally recommend to use the upstream kernels > from Red Hat > instead. My main motivation is that if you need to report a > problem, you > can do so directly to Red Hat without risking it to be a > specific rebuild > problem. > If those are just 5.3 beta kerne

Re: [CentOS] How to change an executable into a directory

2009-01-05 Thread Scott Silva
> > So, is there a way to change a file into a directory? Or am I crazy? > > Thanks. > > mhr No and Maybe! ;-P -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't signature.asc Description: OpenPGP digital signature _

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Joseph L. Casale
>The regex you want is "^[[:space:]]*word" Wow, thanks everyone for the help! How does one modify this to also knock out lines that *must* have whitespace followed by a number [0-9]? I can do it using "^[[:space:]]*[0-9]" but it also takes out lines w/o whitespace that begin with numbers? I have

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Spiro Harvey
> [0-9]? I can do it using "^[[:space:]]*[0-9]" but it also takes out > lines w/o whitespace that begin with numbers? to match one or more, use + instead of *. * matches 0 or more, + matches 1 or more. > I have to buy a book on RegEx's and Sed :) http://www.gnu.org/manual/gawk/gawk.pdf (G)awk

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Paul Heinlein
On Mon, 5 Jan 2009, Joseph L. Casale wrote: >> The regex you want is "^[[:space:]]*word" > > Wow, thanks everyone for the help! How does one modify this to also > knock out lines that *must* have whitespace followed by a number > [0-9]? I can do it using "^[[:space:]]*[0-9]" but it also takes ou

Re: [CentOS] OT-ish: GPG problem

2009-01-05 Thread Vandaman
Anne Wilson wrote: > There is some obscure bug that probably > interacts with something > else to cause this - it's certainly not normal > behaviour. > > I've talked to several people with quite deep knowledge > of KMail (over a > period of 8 months), yet no-one could tell me why this > occurs

Re: [CentOS] OT-ish: GPG problem

2009-01-05 Thread Anne Wilson
On Monday 05 January 2009 20:27:48 Vandaman wrote: > Anne Wilson wrote: > > There is some obscure bug that probably > > interacts with something > > else to cause this - it's certainly not normal > > behaviour. > > > > I've talked to several people with quite deep knowledge > > of KMail (over a > >

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Joseph L. Casale
>to match one or more, use + instead of *. > >* matches 0 or more, + matches 1 or more. Thanks! >> I have to buy a book on RegEx's and Sed :) > >http://www.gnu.org/manual/gawk/gawk.pdf > >(G)awk is pretty sh!t hot where I work; however we've extended it a >bit. :) So gawk does all that sed does

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Spiro Harvey
> So gawk does all that sed does and more? I suppose I can start with Can't really answer that. In 15 years of using UNIX systems, I've never touched sed. :) With Gawk's BEGIN and END blocks you can use it to write full programs, which is kind of nice. > that in this case, I always wanted a boo

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Steve Huff
On Jan 5, 2009, at 2:56 PM, Joseph L. Casale wrote: The regex you want is "^[[:space:]]*word" Wow, thanks everyone for the help! How does one modify this to also knock out lines that *must* have whitespace followed by a number [0-9]? I can do it using "^[[:space:]]*[0-9]" but it also take

Re: [CentOS] ZFS on Linux

2009-01-05 Thread Matej Cepl
On 2008-12-30, 15:32 GMT, Tony Placilla wrote: > The root answer is that if he wants to use ZFS (which is > a *good* choice) he should use some flavor of Solaris I would just add that RHEL 5.3 (and thus CentOS 5.3) when it happens, will have ext4fs as a technology preview, which may fulfill OT

Re: [CentOS] Log File Reviewing

2009-01-05 Thread William L. Maltby
On Mon, 2009-01-05 at 13:40 -0700, Joseph L. Casale wrote: > >to match one or more, use + instead of *. > > > >* matches 0 or more, + matches 1 or more. > > Thanks! > > So gawk does all that sed does and more? I suppose I can start with Tons. You can write fairly complex programs with (g)awk.

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Les Mikesell
Joseph L. Casale wrote: >> to match one or more, use + instead of *. >> >> * matches 0 or more, + matches 1 or more. > > Thanks! > >>> I have to buy a book on RegEx's and Sed :) >> http://www.gnu.org/manual/gawk/gawk.pdf >> >> (G)awk is pretty sh!t hot where I work; however we've extended it a >>

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Spiro Harvey
> Why not just start with perl which does more than sed/awk while using > similar syntax (if you want)? This is why: awk '/^[[:space:]]*word/ {print}' logfile vs perl -ne 'if (/^\s*word/) { print $_; }' logfile Which syntax is likely to be easier to remember? -- Spiro Harvey

[CentOS] Problem setting up diskless boot.

2009-01-05 Thread clemens
OK, I did this once, several years ago, but I have to do it again, and I cant figure out what this stupid error message is trying to say. I am executing system-config-netboot trying to create a diskless client for a diskless boot I constantly get a popup, with different error messages.

Re: [CentOS] Checking fan state

2009-01-05 Thread Lanny Marcus
On Mon, Jan 5, 2009 at 1:40 PM, Robert Moskowitz wrote: > I just replaced my fan in my nc2400. It was a 5hour job. Had to pull > EVERYTHING to get to where they have the fan in the thing. > > Now I want to know if it is working. It is suppose to be > thermostatically controlled, and it takes ti

Re: [CentOS] Problem setting up diskless boot.

2009-01-05 Thread Amos Shapira
From: Sent: 6.1.'09, 8:17 > You must enter directory of the Operating System Software > This directory must include the images/pxeboot directories > [Errno ftp error] 550 Failed to change directory. > > Now there is nowhere to ENTER the directory of the OS Software, > th

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Les Mikesell
Spiro Harvey wrote: >> Why not just start with perl which does more than sed/awk while using >> similar syntax (if you want)? > > This is why: > > awk '/^[[:space:]]*word/ {print}' logfile > > vs > > perl -ne 'if (/^\s*word/) { print $_; }' logfile > > > Which syntax is likely to be easier t

Re: [CentOS] Checking fan state

2009-01-05 Thread Joseph L. Casale
>I read something in a forum, that said the CPU temperature can go to >100 C., in a few seconds, but I now wonder if that is true or not. Yeah, turn on a machine w/o a heatsink :) In a couple of seconds it will get so hot that you can't touch it and the internal safety threshold on the proc will s

Re: [CentOS] BackupPC newbie: a couple more questions

2009-01-05 Thread Timothy Murphy
Se??n O Sullivan wrote: > I found the BackupPC documentation excellent, not familiar with the > above howto. Just shows how opinions can differ. I found the documentation very bad, at least for one with my needs - a home network on a few computers looking for a simple backup system. I should say

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Bill Campbell
On Tue, Jan 06, 2009, Spiro Harvey wrote: >> Why not just start with perl which does more than sed/awk while using >> similar syntax (if you want)? > >This is why: > >awk '/^[[:space:]]*word/ {print}' logfile > >vs > >perl -ne 'if (/^\s*word/) { print $_; }' logfile > >Which syntax is likely to be

Re: [CentOS] BackupPC newbie: a couple more questions

2009-01-05 Thread Max Hetrick
Timothy Murphy wrote: > Just shows how opinions can differ. > I found the documentation very bad, > at least for one with my needs - > a home network on a few computers > looking for a simple backup system. > > I should say that BackupPC _is_ a simple backup system > once it is installed and conf

Re: [CentOS] BackupPC newbie: a couple more questions

2009-01-05 Thread Timothy Murphy
Max Hetrick wrote: > I just put a guide up on the CentOS wiki a week or so ago. > > > > The goal was to kind of put together all these bits and pieces into one > simple to follow tutorial. It concentrates on using rsync to other > Linux/CentOS clients, bu

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Les Mikesell
Bill Campbell wrote: > > I used to some pretty complex shell and awk scripts before learning perl > about 20 years ago. Perl allowed me to do most things in a single language > including fairly low-level system calls that I previously had to do with > compiled ``C'' programs. And you can probabl

Re: [CentOS] Checking fan state

2009-01-05 Thread John R Pierce
Joseph L. Casale wrote: >> I read something in a forum, that said the CPU temperature can go to >> 100 C., in a few seconds, but I now wonder if that is true or not. >> > > Yeah, turn on a machine w/o a heatsink :) In a couple of seconds it will > get so hot that you can't touch it and the int

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Spiro Harvey
Les Mikesell wrote: > Don't count on the same stability with python. It has an annoying > habit of changing syntax in non-backwards compatible ways with no You seem to be hell-bent (excuse the pun) on turning this into a jihad on scripting languages. Please take the credo of your own favoured re

Re: [CentOS] Log File Reviewing

2009-01-05 Thread Bill Campbell
On Mon, Jan 05, 2009, Les Mikesell wrote: >Bill Campbell wrote: >> >> I used to some pretty complex shell and awk scripts before learning perl >> about 20 years ago. Perl allowed me to do most things in a single language >> including fairly low-level system calls that I previously had to do with

Re: [CentOS] Checking fan state

2009-01-05 Thread Robert Moskowitz
Joseph L. Casale wrote: >> So how can I find out what Centos knows about the system temp and fan state? >> > > LM_Sensors does this... > let me know what you do to get it working on your rig :) Well, /etc/sysconfig/lm_sensors says to run sensors-detect. I answered yes to every prompt and no

Re: [CentOS] Checking fan state

2009-01-05 Thread Robert Moskowitz
Lanny Marcus wrote: > On Mon, Jan 5, 2009 at 1:40 PM, Robert Moskowitz wrote: > >> I just replaced my fan in my nc2400. It was a 5hour job. Had to pull >> EVERYTHING to get to where they have the fan in the thing. >> >> Now I want to know if it is working. It is suppose to be >> thermostatic

Re: [CentOS] Checking fan state

2009-01-05 Thread Christopher Chan
> Either I put the power connector on backwards (the manual's pic is not > clear on this, but I don't know if that connector CAN be put on > backwards), or there is something with the bios with this new fan... > Is not there a plastic guide on the three pin connector? I wonder if upgrading th

Re: [CentOS] Checking fan state

2009-01-05 Thread Lanny Marcus
On Mon, Jan 5, 2009 at 5:05 PM, Joseph L. Casale wrote: >>I read something in a forum, that said the CPU temperature can go to >>100 C., in a few seconds, but I now wonder if that is true or not. > > Yeah, turn on a machine w/o a heatsink :) In a couple of seconds it will > get so hot that you can

Re: [CentOS] Checking fan state

2009-01-05 Thread Lanny Marcus
On Mon, Jan 5, 2009 at 6:41 PM, John R Pierce wrote: > Joseph L. Casale wrote: >> Yeah, turn on a machine w/o a heatsink :) In a couple of seconds it will >> get so hot that you can't touch it and the internal safety threshold on the >> proc will shut it down. I suspect the mobo might have a bios

Re: [CentOS] Checking fan state

2009-01-05 Thread Lanny Marcus
On Mon, Jan 5, 2009 at 7:39 PM, Robert Moskowitz wrote: >>> I just replaced my fan in my nc2400. It was a 5hour job. Had to pull >>> So how can I find out what Centos knows about the system temp and fan state? > Now with the new fan in, it is not turning at all, but the unit is > actually coo

Re: [CentOS] Checking fan state

2009-01-05 Thread Christopher Chan
> The HW people are way ahead of the SW people? A good reason not to use > the latest motherboards, with this technology, in production servers, > at this time? I thought things have always been like that with Linux? But maybe the latest kernels have support for that stuff...Intel has been rath

Re: [CentOS] Checking fan state

2009-01-05 Thread John R Pierce
Lanny Marcus wrote: > The HW people are way ahead of the SW people? A good reason not to use > the latest motherboards, with this technology, in production servers, > at this time? > actually, that was desktop stuff I described, not server.servers would presumably continue to use IPMI, for

Re: [CentOS] Checking fan state

2009-01-05 Thread John R Pierce
Lanny Marcus wrote: > I won't take off the heatsink, but now I have a lot of appreciation > for the one Dell put onto the CPU in this box. The Shroud was > extremely cool, when touched. :-) > the heatsink shroud is not a good indicator, you'd want to get a finger on the metal heatsink itself,

Re: [CentOS] Checking fan state

2009-01-05 Thread Robert Moskowitz
Christopher Chan wrote: >> Either I put the power connector on backwards (the manual's pic is not >> clear on this, but I don't know if that connector CAN be put on >> backwards), or there is something with the bios with this new fan... >> >> > > Is not there a plastic guide on the three p

Re: [CentOS] Checking fan state

2009-01-05 Thread Rainer Duffner
Am 06.01.2009 um 02:16 schrieb John R Pierce: > Lanny Marcus wrote: >> The HW people are way ahead of the SW people? A good reason not to >> use >> the latest motherboards, with this technology, in production servers, >> at this time? >> > > actually, that was desktop stuff I described, not ser

Re: [CentOS] Checking fan state

2009-01-05 Thread Robert Moskowitz
Lanny Marcus wrote: > On Mon, Jan 5, 2009 at 7:39 PM, Robert Moskowitz wrote: > > I just replaced my fan in my nc2400. It was a 5hour job. Had to pull > > So how can I find out what Centos knows about the system temp and fan state? > > >> No

Re: [CentOS] Checking fan state

2009-01-05 Thread Christopher Chan
Robert Moskowitz wrote: > > Christopher Chan wrote: >>> Either I put the power connector on backwards (the manual's pic is not >>> clear on this, but I don't know if that connector CAN be put on >>> backwards), or there is something with the bios with this new fan... >>> >>> >> Is not there

Re: [CentOS] Checking fan state

2009-01-05 Thread Christopher Chan
>> I wonder if upgrading the lm_sensors package would mean you being able >> to read fan speed/stuff... > > To what from where? > Oh, a HP laptop...nevermind ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Checking fan state

2009-01-05 Thread Lanny Marcus
On Mon, Jan 5, 2009 at 8:16 PM, John R Pierce wrote: > Lanny Marcus wrote: >> The HW people are way ahead of the SW people? A good reason not to use >> the latest motherboards, with this technology, in production servers, >> at this time? > > actually, that was desktop stuff I described, not serve

Re: [CentOS] Checking fan state

2009-01-05 Thread John R Pierce
re: thermal sensors... I did a bit of googling. This NC2400 laptop is based on the Intel 945GM chipset w/ the ICH7 southbridge. the 945GM does -not- implement that ME (Management Engine) stuff I previously described, instead, it has thermal sensors on a smbus, along with some interesting he

Re: [CentOS] Checking fan state

2009-01-05 Thread John R Pierce
Lanny Marcus wrote: > I can't imagine that kind of risk on a Server. Bad on a Desktop, but > an unacceptable risk on a Server. risk?whats risky about the hardware managing the fans without CPU software intervention? If anything thats LESS risky then assuming the OS is properly configur

Re: [CentOS] Checking fan state

2009-01-05 Thread John R Pierce
Christopher Chan wrote: >> It is a 4-pin connector, and I think there is a guide, or one side is >> different than the other. That is why I think I could not have but in in >> backwards. >> > > Okay, not the stuff you get on boards that are not 'branded'. > MANY newer desktop CPU fans are

Re: [CentOS] How to change an executable into a directory

2009-01-05 Thread CM
On Mon, 05 Jan 2009 08:16:08 -0800 Scott Silva wrote: > > > > > So, is there a way to change a file into a directory? Or am I > > crazy? > > > > Thanks. > > > > mhr > No and Maybe! ;-P I beg to differ on the first answer: anything can happen given sufficient uncorrected file system errors

[CentOS] Anyone got Diskless BOOT working under CentOS ???

2009-01-05 Thread clemens
Im trying to get a diskless boot set up under CentOS 5.2, and having no luck at all. I am to the point of running system-config-netboot, and whatever information I put in, I get an error message. Responding to the 2nd button on the first popup, which asks for NFS info, I put in the IP address of

Re: [CentOS] Anyone got Diskless BOOT working under CentOS ???

2009-01-05 Thread JohnS
On Tue, 2009-01-06 at 00:02 -0700, clem...@dwf.com wrote: > Im trying to get a diskless boot set up under CentOS 5.2, and having no luck > at all. > > I am to the point of running system-config-netboot, and whatever information > I put in, I get an error message. > > Responding to the 2nd button