[CentOS] script help - '3rd last field'

2009-06-08 Thread Tom Brown
Hi

I need some logic to work out a value for me - this value is _always_ 
the 3rd last field in a string seperated by '.' but the string could be 
5 or 6 fields long, e.g

foo.bar.VALUE.baz.lala

foor.bar.gigi.VALUE.baz.lala

I need to find VALUE - if this were python or something i could do it 
but this has to be in shell -

Any clues?

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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread michael . kettel
Sehr geehrte Damen und Herren, 

ich bin ab dem 15.06.2009 wieder zurück im Büro.
Bitte wenden Sie sich in dringenden Fällen an Simon Schillings 
[simon.schilli...@rm-solutions.de]

Viele Grüße,
Michael Kettel


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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread michael . kettel
Sehr geehrte Damen und Herren, 

ich bin ab dem 15.06.2009 wieder zurück im Büro.
Bitte wenden Sie sich in dringenden Fällen an Simon Schillings 
[simon.schilli...@rm-solutions.de]

Viele Grüße,
Michael Kettel


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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread michael . kettel
Sehr geehrte Damen und Herren, 

ich bin ab dem 15.06.2009 wieder zurück im Büro.
Bitte wenden Sie sich in dringenden Fällen an Simon Schillings 
[simon.schilli...@rm-solutions.de]

Viele Grüße,
Michael Kettel


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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread michael . kettel
Sehr geehrte Damen und Herren, 

ich bin ab dem 15.06.2009 wieder zurück im Büro.
Bitte wenden Sie sich in dringenden Fällen an Simon Schillings 
[simon.schilli...@rm-solutions.de]

Viele Grüße,
Michael Kettel


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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread michael . kettel
Sehr geehrte Damen und Herren, 

ich bin ab dem 15.06.2009 wieder zurück im Büro.
Bitte wenden Sie sich in dringenden Fällen an Simon Schillings 
[simon.schilli...@rm-solutions.de]

Viele Grüße,
Michael Kettel


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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread michael . kettel
Sehr geehrte Damen und Herren, 

ich bin ab dem 15.06.2009 wieder zurück im Büro.
Bitte wenden Sie sich in dringenden Fällen an Simon Schillings 
[simon.schilli...@rm-solutions.de]

Viele Grüße,
Michael Kettel


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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread muhammad panji
On Mon, Jun 8, 2009 at 4:29 PM, Tom Brown wrote:
> Hi
>
> I need some logic to work out a value for me - this value is _always_
> the 3rd last field in a string seperated by '.' but the string could be
> 5 or 6 fields long, e.g
>
> foo.bar.VALUE.baz.lala
>
> foor.bar.gigi.VALUE.baz.lala
>
> I need to find VALUE - if this were python or something i could do it
> but this has to be in shell -


awk -F\. {'print $3'}
awk -F\. {'print $5'}
awk -F\. {'print $6'}



-- 
Muhammad Panji
http://sumodirjo.wordpress.com
http://www.kurungsiku.web.id
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread michael . kettel
Sehr geehrte Damen und Herren, 

ich bin ab dem 15.06.2009 wieder zurück im Büro.
Bitte wenden Sie sich in dringenden Fällen an Simon Schillings 
[simon.schilli...@rm-solutions.de]

Viele Grüße,
Michael Kettel


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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread michael . kettel
Sehr geehrte Damen und Herren, 

ich bin ab dem 15.06.2009 wieder zurück im Büro.
Bitte wenden Sie sich in dringenden Fällen an Simon Schillings 
[simon.schilli...@rm-solutions.de]

Viele Grüße,
Michael Kettel


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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread michael . kettel
Sehr geehrte Damen und Herren, 

ich bin ab dem 15.06.2009 wieder zurück im Büro.
Bitte wenden Sie sich in dringenden Fällen an Simon Schillings 
[simon.schilli...@rm-solutions.de]

Viele Grüße,
Michael Kettel


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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread Ralph Angenendt
michael.ket...@rm-solutions.de wrote:
> Sehr geehrte Damen und Herren, 
> 
> ich bin ab dem 15.06.2009 wieder zurück im Büro.
> Bitte wenden Sie sich in dringenden Fällen an Simon Schillings 
> [simon.schilli...@rm-solutions.de]
> 
> Viele Grüße,
> Michael Kettel

You can resubcribe then, when you are back. Please do not use
autoresponders if you do not know how they work.

No regards,

Ralph


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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread James Bensley
Is there anyway you can tell which field it will be in (i.e. to use as
a search clause, so "search for the field with X properties"?)

Ultimately to get the data in the X'th field you are going to need
either awk or sed (they can both easily do this, awk probably easier
than sed)

You need to work out how you will know which field it will be in i.e.
the first, second, third? My shell scripting is rubbish but I would
guess it would go something like;

myString = "first.second.VALUE.fourth.fith"

awk -F\. {'print 3'} myString

This would print the third field seperated by a '.' (full stop/period)
of myString

That's a rubbishy wild stab in the dark as im rubbish at shell scripting.

I would actually bet money I have made things more complex hahahah!

Sorry, i tried :'(

James.

-BEGIN GEEK CODE BLOCK-
  Version: 3.1
GIT/MU/U dpu s: a--> C++>$ U+> L++> B-> P+> E?> W+++>$ N K W++ O M++>$ V-
PS+++ PE++ Y+ PGP t 5 X+ R- tv+ b+> DI D+++ G+ e(+) h--(++) r++ z++
--END GEEK CODE BLOCK--
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread michael . kettel
Sehr geehrte Damen und Herren, 

ich bin ab dem 15.06.2009 wieder zurück im Büro.
Bitte wenden Sie sich in dringenden Fällen an Simon Schillings 
[simon.schilli...@rm-solutions.de]

Viele Grüße,
Michael Kettel


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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread Jacques B.
On Mon, Jun 8, 2009 at 5:29 AM, Tom Brown wrote:
> Hi
>
> I need some logic to work out a value for me - this value is _always_
> the 3rd last field in a string seperated by '.' but the string could be
> 5 or 6 fields long, e.g
>
> foo.bar.VALUE.baz.lala
>
> foor.bar.gigi.VALUE.baz.lala
>
> I need to find VALUE - if this were python or something i could do it
> but this has to be in shell -
>
> Any clues?
>
> thanks
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

I am pretty sure there is a way in awk to figure out how many fields
you have, then take the total # of fields -3 each time to get the
third last one.  Just heading out the door and off hand can't remember
how it would be done.

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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread Alex S.
Hi.

   echo foo.bar.VALUE.baz.lala | awk -F. '{ print $(NF-2); }'

-- 
Alex S.



On 08.06.2009 13:29, Tom Brown wrote:
> Hi
>
> I need some logic to work out a value for me - this value is _always_
> the 3rd last field in a string seperated by '.' but the string could be
> 5 or 6 fields long, e.g
>
> foo.bar.VALUE.baz.lala
>
> foor.bar.gigi.VALUE.baz.lala
>
> I need to find VALUE - if this were python or something i could do it
> but this has to be in shell -
>
> Any clues?
>
> thanks
> ___
> 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] script help - '3rd last field'

2009-06-08 Thread Tom Brown

> I am pretty sure there is a way in awk to figure out how many fields
> you have, then take the total # of fields -3 each time to get the
> third last one.  Just heading out the door and off hand can't remember
> how it would be done.
>
>   

i can do it in cheetah templating with

set myloc = $getVar("hostname","")split('.')[-3]

the -3 says the last 3rd field in the string - i need the same so maybe 
awk can do this
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread Mogens Kjaer
muhammad panji wrote:
...
> awk -F\. {'print $3'}
> awk -F\. {'print $5'}
> awk -F\. {'print $6'}

awk -F\. {'print $(NF-2)'}

Mogens
-- 
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Mobile: +45 22 12 53 25
Email: m...@crc.dk Homepage: http://www.crc.dk
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread Tom Brown

>echo foo.bar.VALUE.baz.lala | awk -F. '{ print $(NF-2); }'
>
>   

excellent - just what i needed

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


Re: [CentOS] RealTek 8168B (Rev 02) Issue

2009-06-08 Thread Tosh
Ben Mohilef wrote:
> The 8168B (02) NIC works well except that it does not go into promiscuous
> mode despite advertising itself in that mode after being so directed with
> ifconfig. Unfortunately, the little box is destined to be an IDS monitor, so 
> that
> function is essential. The board is an Intel Atom  330 run as x86_64, the nic
> is internal.
I presume you are talking about a Atom 230 not a Atom 330, as on the an 
original Intel board with an Atom 330, the D945GCLF2 you can just use 
the r8169 driver, on the D945GCLF with an Atom 230 board you need a 
r8101 driver

Intel D945GCLF2 (Atom 330)
* /etc/modprobe.conf
> alias scsi_hostadapter ata_piix
> alias snd-card-0 snd-hda-intel
> options snd-card-0 index=0
> options snd-hda-intel index=0
> remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; 
> /sbi$
> alias eth0 r8169
* lspci output
> 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B 
> PCI Express Gigabit Ethernet controller (rev 02)

Intel D945GCLF (Atom 230)
* /etc/modprobe.conf
> alias scsi_hostadapter ata_piix
> alias snd-card-0 snd-hda-intel
> options snd-card-0 index=0
> options snd-hda-intel index=0
> remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; 
> /sbi$
> alias eth0 r8101
> alias eth1 pegasus
* lspci
> 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
> RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)


> None solve the promiscuous problem (although they fix the funny
> dropped counter issue).
> [...]
> Anyone have any idea as how to make this chip do the promiscuous mode
> thing other than adding another nic card ?

If it is an original Intel board D945GCLF with the Atom 230, I suggest 
downloading the driver from the Intel website
http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&ProductID=2916&DwnldID=16242&strOSs=39&OSFullName=Linux*&lang=eng
I compiled the driver manually (at the time elrepo didn't exist) from 
the Intel website, it has been working fine, and I regularly check my 
tcpdump, dmesg even states that it enter promiscuous mode and exits
> device eth0 entered promiscuous mode
> device eth0 left promiscuous mode
only thing I did that wasn't in the manual is manually delete the r8169 
drivers of my kernel, I did have problem when I didn't do this


-- 
Toshaan  - http://www.toshaan.be
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread Stephen Harris
On Mon, Jun 08, 2009 at 10:56:09AM +0100, Tom Brown wrote:
> 
> >echo foo.bar.VALUE.baz.lala | awk -F. '{ print $(NF-2); }'
> 
> excellent - just what i needed


awk is probably the most readable way.  In traditional shell stuff like
this used to be done in awk or sed
  awk -F. '{print $(NF-2)}'
  sed -n 's/^.*\.\([^\.]*\)\.[^\.]*\.[^\.]*$/\1/p'

Now you _can_ do it totally inside a modern shell in a variety of ways.
Here are three options (tested with ksh93; _should_ work in bash, but
not tested)

1) Use IFS to split the string

 a=foo.var.VALUE.baz.lala
 OIFS="$IFS"
 IFS="."
 set -- $a
 IFS="$OIFS"
 shift $#-3
 echo $1
  
2) variation using arrays

 a=foo.var.VALUE.baz.lala
 OIFS="$IFS"
 IFS="."
 set -A A -- $a
 IFS="$OIFS"
 let x=${#A[*]}-3
 echo ${A[$x]}
  
3) Using string pattern matching

 a=foo.var.VALUE.baz.lala
 front=${a%.*.*.*}
 b=${a#$front.}
 b=${b%%.*}
 echo $b
  
-- 

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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread William L. Maltby

On Mon, 2009-06-08 at 10:29 +0100, Tom Brown wrote:
> Hi
> 
> I need some logic to work out a value for me - this value is _always_ 
> the 3rd last field in a string seperated by '.' but the string could be 
> 5 or 6 fields long, e.g
> 
> foo.bar.VALUE.baz.lala
> 
> foor.bar.gigi.VALUE.baz.lala
> 
> I need to find VALUE - if this were python or something i could do it 
> but this has to be in shell -
> 
> Any clues?

Without trying to make code this early in the A.M., I'll give an
algorithm that will work entirely in shell. Then the man page should
give the details.

1. Make a subshell, either as a separate file or inline using
braces-type stuff
2. Inside that, use the set command to change the field separator to "."
3. Use the set command with the string use wish to parse. This sets each
field into $1, $2, ...
4. Alternate algorithm # 1
   Use the shell variable $# (IIRC) to see how many you have.
   Use the shell's math capabilities to calculate the variable number
 you want
   Use the shell to generate a command (eval, backslashes, ...) to
 reference that variable
5. Alternate algorithm # 2
   do a while loop until $# = 3 (if it's already <= to 3, next is
 skipped
   shift
   access $1
6. Alternate algorithm # 3
   If $# > 3
 use shell math ability to calculate how many shifts needed
 use shift with that number as parameter
   access $1
> 
> thanks
> 

HTH
-- 
Bill

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


Re: [CentOS] script help - '3rd last field'

2009-06-08 Thread William L. Maltby

On Mon, 2009-06-08 at 08:01 -0400, William L. Maltby wrote:
> 
> 2. Inside that, use the set command to change the field separator to "."
> 
Correction: IFS (the Interfield Separator) is just another variable.
Just regular assignment will set it.

-- 
Bill


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


Re: [CentOS] Random server reboot after update to CentOS 5.3

2009-06-08 Thread Peter Hopfgartner
Scott Silva wrote:
> on 6-3-2009 2:27 AM Peter Hopfgartner spake the following:
>   
>> Epilogue:
>>
>> I've tried to disable TSO (ethtool -K eth0 tso off), as was suggested on 
>> the poweredge list. This did not help.
>>
>> I've configured the machine to start with the 5.2 kernel in 
>> /boot/grub/grub.conf, changing the default. It has been running for 6 
>> 1/2 days, now. I would say that this helped and is what I would suggest 
>> to others experiencing the same problem, right now.
>>
>> Thus, current running kernel is  2.6.18-92.1.10.el5xen.
>>
>> Regards and thanks for all replies,
>>
>> Peter
>>
>> 
> That sure points to a machine/kernel conflict. You could try getting the
> source and rebuilding to see if that solves it, or maybe a diff of the two
> kernel configs to see if something is different there. Maybe someting is added
> or turned on in the new kernel that your system doesn't like.
>
> Also, make sure your systems bioses are up to date. Not just motherboard, but
> any other cards that have firmware that might have an update like raidcard/sas
> controllers or ???
>
>   
> 
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>   
Dear Scott,

unfortunately the machine is in production. Any downtime is really a 
problem since it is seen directly by our customers. I would really like 
to do some active effort to isolate the problem, but my boss would cut 
my head off, if I have to stop the machine. The firmware is not current, 
but according to Dell's web site I should stop almost every running 
service on the machine before upgrading the firmware, and in this case I 
would again have to watch out for my head. I do really care to provide 
accurate bug reports to OS projects that I use (I would guess that 90 % 
of my reports lead to a quick fix), but in this case I do have to make 
an exception and keep the machine running.

Thanks,

Peter

-- 
 
Dott. Peter Hopfgartner
 
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
Email: peter.hopfgart...@r3-gis.com
Tel. : +39 0473 494949
Fax  : +39 0473 069902
www  : http://www.r3-gis.com

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


Re: [CentOS] Question about dd (fill a hard disks' unused space with blanks)

2009-06-08 Thread Hakan Koseoglu
Kevin,
On Sun, Jun 7, 2009 at 11:05 PM, Kevin Krieser wrote:

> On Jun 7, 2009, at 2:59 PM, Les Mikesell wrote:
> In my case, I was hoping it would avoid the bad sector since the bad
> sectors were in free space.  So the hope was that it would skip it.
> Bad disks are a difficult case, and not a reason to avoid a tool
> unless it claims to be able to handle it.
One option is not using a cloning tool but a backup & rescue utility.
http://www.mondorescue.org/ might work, it doesn't backup the whole
disk but tries to recreate the original data. I use it for cloning
CentOS/RHEL servers and creating bare-bones rescue disks. Since it
only reads and writes back files, it won't go through the free bad
blocks.

-- 
Hakan (m1fcj) - http://www.hititgunesi.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Random server reboot after update to CentOS 5.3

2009-06-08 Thread Ross Walker
On Jun 8, 2009, at 9:18 AM, Peter Hopfgartner  wrote:

> Scott Silva wrote:
>> on 6-3-2009 2:27 AM Peter Hopfgartner spake the following:
>>
>>> Epilogue:
>>>
>>> I've tried to disable TSO (ethtool -K eth0 tso off), as was  
>>> suggested on
>>> the poweredge list. This did not help.
>>>
>>> I've configured the machine to start with the 5.2 kernel in
>>> /boot/grub/grub.conf, changing the default. It has been running  
>>> for 6
>>> 1/2 days, now. I would say that this helped and is what I would  
>>> suggest
>>> to others experiencing the same problem, right now.
>>>
>>> Thus, current running kernel is  2.6.18-92.1.10.el5xen.
>>>
>>> Regards and thanks for all replies,
>>>
>>> Peter
>>>
>>>
>> That sure points to a machine/kernel conflict. You could try  
>> getting the
>> source and rebuilding to see if that solves it, or maybe a diff of  
>> the two
>> kernel configs to see if something is different there. Maybe  
>> someting is added
>> or turned on in the new kernel that your system doesn't like.
>>
>> Also, make sure your systems bioses are up to date. Not just  
>> motherboard, but
>> any other cards that have firmware that might have an update like  
>> raidcard/sas
>> controllers or ???
>>
>>
>> --- 
>> -
>>
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
> Dear Scott,
>
> unfortunately the machine is in production. Any downtime is really a
> problem since it is seen directly by our customers. I would really  
> like
> to do some active effort to isolate the problem, but my boss would cut
> my head off, if I have to stop the machine. The firmware is not  
> current,
> but according to Dell's web site I should stop almost every running
> service on the machine before upgrading the firmware, and in this  
> case I
> would again have to watch out for my head. I do really care to provide
> accurate bug reports to OS projects that I use (I would guess that  
> 90 %
> of my reports lead to a quick fix), but in this case I do have to make
> an exception and keep the machine running.

Do what works for now and think about a test box or VM setup for the  
future where you can test newer kernels before they go into production.

-Ross

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


Re: [CentOS] Server Build Example

2009-06-08 Thread gene . poole
> luc...@lastdot.org wrote:
>> I'm no Oracle user/expert, but isn't Oracle DB 11g free (as in beer)?
>> So my take is he's not paying anything.
>> 

pie...@hogranch.com wrote:
> AFAIK, its only free for your initial development work.  As soon as you 
> deploy a production app, you have to get support, and as soon as you 
> have a support contract, you can no longer run any free instances, 
> except the lightweight 'express' version which is limited to very small 
> databases with only a few connections and doesn't have any of the 
> enterprise functions.

Let me absolutely clear on this, when I say 'production' I'm speaking 
about my personal home network only. This network consists of a very few 
machines with very limited access to the outside world. I use it for my 
education and experience only. So production, to me, is a environment I 
don't want to update more than once a year.

Thanks,
Gene Poole
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Centos 5.3 update do RHEL 5.3

2009-06-08 Thread Albert
Hi,

If I now installed centos 5.3 and for 6 month I buying support from RHEL 
I can change 5.3 to rhel 5.3? It's possible?

f...@ll

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


Re: [CentOS] please help: Linux Kernel must be loaded before initrd

2009-06-08 Thread Filipe Brandenburger
Hi,

On Sun, Jun 7, 2009 at 07:34, Rudi Ahlers wrote:
> title CentOS (2.6.18-128.1.10.el5xen)
>     root (hd0,0)
>     kernel /xen.gz-2.6.18-128.1.10.el5 ro root=/dev/VolGroup00/LogVol01
> ide0=noprobe ide1=noprobe
>     initrd /initrd-2.6.18-128.1.10.el5.img
[...]
> Can anyone see anyting wrong with this?

Yes,

When you boot Xen, you should not specify a line with an "initrd"
command in your GRUB config, instead you should use lines with
"module" commands to specify both the kernel and the initrd file.

See Xen's documentation here:
http://tx.downloads.xensource.com/downloads/docs/user/#SECTION02151000

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


Re: [CentOS] Disabling IPv6 in CentOS 4.7

2009-06-08 Thread Filipe Brandenburger
Hi,

On Sun, Jun 7, 2009 at 21:50, Stephen Harris wrote:
> But on reboot I still see ipv6 entries against the eth devices, ipv6 module
> is still loaded, and sit0 tunnel is present.
> What needs to be done to disable ipv6?

I had this exact same issue on one of my machines, and I found out
that the "openib" (InfiniBand) package was installed and enabled,
although not needed. The InfiniBand modules were loading the ipv6
module as a dependency, that way it was being indirectly activated.
After uninstalling the RPM and rebooting the machine, it no longer has
IPv6 active.

If that is not the specific case with you, see in the output of
"lsmod" if ipv6 is being used by another module, if that is the case,
you can try to see who is pulling that module and try to desactivate
that one.

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


Re: [CentOS] Basic setup for vsftpd ?

2009-06-08 Thread Filipe Brandenburger
On Sun, Jun 7, 2009 at 09:21, Niki Kovacs wrote:
> * only one user (user 'install' / pass 'install')

userlist_enable = YES
userlist_deny = NO
userlist_file = /etc/vsftpd.user_list

And then:

# echo install >/etc/vsftpd.user_list

That way only "install" will be able to log in to the FTP server.

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


Re: [CentOS] RealTek 8168B (Rev 02) Issue

2009-06-08 Thread Ben Mohilef
It is an D945GCLF2 with a 330.

> use the r8169 driver

That driver has issues with the counters, resolved with the ElRepo and 
Realtek drivers. Ifconfig shows no dropped packets with the latter two 
drivers.

> website, it has been working fine, and I regularly check my tcpdump,
> dmesg even states that it enter promiscuous mode and exits > device
> eth0 entered promiscuous mode > device eth0 left promiscuous mode only

The dmesg statement comes from a printk statement in the  driver. I 
modified the driver to force the register to  always load
rx=AllowMe|AllowAll|AllowBroadcast|AllowMulticast.
I surrounded it with printk statements so I know that it is entering and 
exiting 
the rx setting. It acts like this variable is never being written to the chip 
register. Hmmm, I think I need to look at their code some more to make 
sure they ARE writing to the register.

Despite the kernel messages, the chip does not enter the promiscuous 
mode. If you have a second box talking to a third address, do you see that 
TCP traffic in TCPDump. Another way to check it is using iptraf.  



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


Re: [CentOS] Centos 5.3 update do RHEL 5.3

2009-06-08 Thread Tom Diehl
On Sun, 7 Jun 2009, Albert wrote:

> Hi,
>
> If I now installed centos 5.3 and for 6 month I buying support from RHEL
>I can change 5.3 to rhel 5.3? It's possible?

No. The versions for Centos are always higher then RHEL. Therefore unless
the updates RHEL versions happen to be greater then the existing centos
versions you will never get the updates.

Regards,

-- 
Tom Diehl   tdi...@rogueind.com Spamtrap address 
mtd...@rogueind.com

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


Re: [CentOS] libwpd/libwpd-devel deps screwed?

2009-06-08 Thread Phil Schaffner
Radu-Cristian FOTESCU wrote:
> Oh, sorry, fixed it with
> 
> rpm -iv --force libwpd-0.8.7-3.el5.i386.rpm
> rpm -iv --nodeps libwpd-devel-0.8.7-3.el5.i386.rpm

That's pretty ugly. :-)

Is this perchance a multi-arch system?  On x86_64:

[r...@wx1 ~]# rpm -q libwpd-devel
package libwpd-devel is not installed
[r...@wx1 ~]# rpm -q libwpd
libwpd-0.8.7-3.el5.x86_64
[r...@wx1 ~]# yum install libwpd-devel
...
[r...@wx1 ~]# rpm -q libwpd libwpd-devel
libwpd-0.8.7-3.el5.x86_64
libwpd-0.8.7-3.el5.i386
libwpd-devel-0.8.7-3.el5.x86_64
libwpd-devel-0.8.7-3.el5.i386

> I suppose the RPM database is too fragile by design. 

Sounds more like a yum problem than one with the RPM database.

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


Re: [CentOS] Basic setup for vsftpd ?

2009-06-08 Thread Niki Kovacs
Filipe Brandenburger a écrit :

> 
> userlist_enable = YES
> userlist_deny = NO
> userlist_file = /etc/vsftpd.user_list
> 
> And then:
> 
> # echo install >/etc/vsftpd.user_list
> 
> That way only "install" will be able to log in to the FTP server.

Thanks very much !

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


Re: [CentOS] Centos 5.3 update do RHEL 5.3

2009-06-08 Thread Phil Schaffner
Tom Diehl wrote:
...
> No. The versions for Centos are always higher then RHEL. Therefore unless
> the updates RHEL versions happen to be greater then the existing centos
> versions you will never get the updates.

I'd think that it would be technically possible to migrate a CentOS 
system to RHEL by "reversing" the process documented on the Wiki for 
migrating RHEL -> CentOS; however, the real issue is likely to be that 
RH is not going to support it without a fresh RHEL install.  Either way 
the answer is still "No".

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


[CentOS] Cannot get LD_LIBRARY_PATH to work under NX (freenx)

2009-06-08 Thread Andrzej Szymanski
Hello,

I'm trying to get the LD_LIBRARY_PATH set from .bash_profile (Centos 5.3 
fully updated).

This is a part of my .bash_profile:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/szyman/omnet/omnetpp-2.3p1/lib
export R_HISTSIZE=20

Everything works fine under standard ssh login, but under NX client the 
LD_LIBRARY_PATH variable is missing (the R_HISTSIZE is exported properly).

Any hints?

Thanks,
Andrzej

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


Re: [CentOS] Cannot get LD_LIBRARY_PATH to work under NX (freenx)

2009-06-08 Thread Filipe Brandenburger
Hi,

On Mon, Jun 8, 2009 at 14:38, Andrzej Szymanski wrote:
> Everything works fine under standard ssh login, but under NX client the
> LD_LIBRARY_PATH variable is missing (the R_HISTSIZE is exported properly).
>
> Any hints?

This is probably not related to NX, but to the terminal emulator you
are using (gnome-terminal, kterm, etc.). Some of them do not open
"login" shells (the ones that read .bash_profile) but only
"interactive" shells (the ones that read .bashrc).

Moving those lines from .bash_profile to .bashrc should work for both
cases (as .bash_profile usually sources .bashrc) and solve your
problem in both SSH sessions and NX sessions.

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


Re: [CentOS] Cannot get LD_LIBRARY_PATH to work under NX (freenx)

2009-06-08 Thread Andrzej Szymanski
Filipe Brandenburger wrote:
> Hi,
> 
> On Mon, Jun 8, 2009 at 14:38, Andrzej Szymanski wrote:
>> Everything works fine under standard ssh login, but under NX client the
>> LD_LIBRARY_PATH variable is missing (the R_HISTSIZE is exported properly).
>>
>> Any hints?
> 
> This is probably not related to NX, but to the terminal emulator you
> are using (gnome-terminal, kterm, etc.). Some of them do not open
> "login" shells (the ones that read .bash_profile) but only
> "interactive" shells (the ones that read .bashrc).
> 
> Moving those lines from .bash_profile to .bashrc should work for both
> cases (as .bash_profile usually sources .bashrc) and solve your
> problem in both SSH sessions and NX sessions.
> 
> HTH,
> Filipe

Thanks for a fast resolution.

However, moving this to .bashrc is a workaround. If I log in graphically 
to the console the LD_LIBRARY_PATH from .bash_profile is set correctly. 
It is unset only on NX session (and the other settings from 
.bash_profile are set properly, so this file is definitely parsed during 
nx session startup).

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


Re: [CentOS] Cannot get LD_LIBRARY_PATH to work under NX (freenx)

2009-06-08 Thread Louis Lagendijk
On Mon, 2009-06-08 at 21:04 +0200, Andrzej Szymanski wrote:

> Thanks for a fast resolution.
> 
> However, moving this to .bashrc is a workaround. If I log in graphically 
> to the console the LD_LIBRARY_PATH from .bash_profile is set correctly. 
> It is unset only on NX session (and the other settings from 
> .bash_profile are set properly, so this file is definitely parsed during 
> nx session startup).
As suggested before some terminals do not run as login-shell.
Gnome-terminal has an option (under edit-> profile preferences -> title
and command that allows you to change this behaviour: Run command as
login shell. You may want to check your terminal program for a similar
setting
Louis


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


Re: [CentOS] Cannot get LD_LIBRARY_PATH to work under NX (freenx)

2009-06-08 Thread Jeff
On Mon, Jun 8, 2009 at 2:04 PM, Andrzej Szymanski wrote:
> Filipe Brandenburger wrote:
>> Hi,
>>
>> On Mon, Jun 8, 2009 at 14:38, Andrzej Szymanski wrote:
>>> Everything works fine under standard ssh login, but under NX client the
>>> LD_LIBRARY_PATH variable is missing (the R_HISTSIZE is exported properly).
>>>
>>> Any hints?
>>
>> This is probably not related to NX, but to the terminal emulator you
>> are using (gnome-terminal, kterm, etc.). Some of them do not open
>> "login" shells (the ones that read .bash_profile) but only
>> "interactive" shells (the ones that read .bashrc).
>>
>> Moving those lines from .bash_profile to .bashrc should work for both
>> cases (as .bash_profile usually sources .bashrc) and solve your
>> problem in both SSH sessions and NX sessions.
>>
>> HTH,
>> Filipe
>
> Thanks for a fast resolution.
>
> However, moving this to .bashrc is a workaround. If I log in graphically
> to the console the LD_LIBRARY_PATH from .bash_profile is set correctly.
> It is unset only on NX session (and the other settings from
> .bash_profile are set properly, so this file is definitely parsed during
> nx session startup).

Can you just skip the whole LD_LIBRARY_PATH thing and configure
libraries at the system level?

man ldconfig

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


Re: [CentOS] Cannot get LD_LIBRARY_PATH to work under NX (freenx)

2009-06-08 Thread Filipe Brandenburger
Hi,

On Mon, Jun 8, 2009 at 15:04, Andrzej Szymanski wrote:
> However, moving this to .bashrc is a workaround. If I log in graphically
> to the console the LD_LIBRARY_PATH from .bash_profile is set correctly.
> It is unset only on NX session (and the other settings from
> .bash_profile are set properly, so this file is definitely parsed during
> nx session startup).

I use the "real" NX, not FreeNX, and I know it installs under /usr/NX,
so I know it will use LD_LIBRARY_PATH to find its own libraries. I
believe it will probably reset (erase) the contents of LD_LIBRARY_PATH
once the O.S. processes (window manager, etc.) are started.

As I said, if your terminal emulator opened a "login" shell you would
not have problems leaving the setting in .bash_profile, as it would be
read again when you open a new shell (if you are starting your
application through a shell). However, I believe this is not really
very standardized. As a rule of thumb, I try to put as much as
possible in .bashrc and leave only the source of .bashrc in
.bash_profile, as this increases the chances of it "just working".

And while you say "moving this to .bashrc is a workaround", I would
say that using LD_LIBRARY_PATH is a workaround, or at least a kludge,
since software that is properly installed would never need it... The
interaction of different software packages that need to use it will
always cause this kind of issues, and there is usually nothing much
short of other workarounds or kludges that can be done about it...

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


Re: [CentOS] Centos 5.3 update do RHEL 5.3

2009-06-08 Thread Albert
Phil Schaffner pisze:
> Tom Diehl wrote:
> ...
>> No. The versions for Centos are always higher then RHEL. Therefore unless
>> the updates RHEL versions happen to be greater then the existing centos
>> versions you will never get the updates.
> 
> I'd think that it would be technically possible to migrate a CentOS 
> system to RHEL by "reversing" the process documented on the Wiki for 
> migrating RHEL -> CentOS; however, the real issue is likely to be that 
> RH is not going to support it without a fresh RHEL install.  Either way 
> the answer is still "No".
> 
> Phil

Thx for the answered, but the centos have commercial support like RHEL?

f...@ll

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


Re: [CentOS] Intel Graphics support in future releases

2009-06-08 Thread Scott Silva
on 6-6-2009 5:04 PM Ron Blizzard spake the following:
> On Sat, Jun 6, 2009 at 2:06 PM, 
> RedShift wrote:
> 
>>> I had the same question in the back of my mind. There are some great 
>>> evolutions going on right now, but they take a lot of time to mature. I've 
>>> also been wondering about desktop environments, since fedora 10/11 use KDE 
>>> 4, which, even 4.2, I find very low in quality compared to 3.5, how will 
>>> Red Hat provide a decent desktop? (Don't remind me of Gnome, I've used it 
>>> for years and I still don't like it).<<
> 
> I've made my peace with Gnome, but I modify it to make a bit more
> KDE-like. One panel on the bottom, single click on icons, always open
> with a browser window and modify that window to get rid of the main
> and side menus, etc. I started with KDE but like Gnome now because it
> seems lighter and bit more responsive on my computers.
> 
> I still have openSUSE 11 on (what is now) the backup computer. The
> default was KDE 4, but I reinstalled with KDE 3.5. KDE 4 was just too
> slow. But that was the first release and I think it's getting better
> now.
> 
You could always try XFCE. It seems much lighter than both of them.



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


Re: [CentOS] Centos 5.3 update do RHEL 5.3

2009-06-08 Thread Phil Schaffner
Albert wrote:
...
> Thx for the answered, but the centos have commercial support like RHEL?

CentOS itself is a volunteer non-commercial effort.  If you want a 
paid-support OS RHEL is highly recommended, and CentOS would not exist 
without them.

There are also companies that offer commercial support for CentOS - 
google "centos commercial support" and you will find some.  One that I 
happen to know actively participates in CentOS is

http://www.owlriver.com/support/centos/

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


[CentOS] LZMA for CentOS 5.3 repository or source or rpm

2009-06-08 Thread Rob Townley
i need lzma compression for CloneZilla, but have not found it in any
CentOS repository.  The Finnish website was down and when up, it does
not do much english.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cannot get LD_LIBRARY_PATH to work under NX (freenx)

2009-06-08 Thread Gary Greene
> -Original Message-
> From: centos-boun...@centos.org 
> [mailto:centos-boun...@centos.org] On Behalf Of Louis Lagendijk
> Sent: Monday, June 08, 2009 12:21 PM
> To: CentOS mailing list
> Subject: Re: [CentOS] Cannot get LD_LIBRARY_PATH to work 
> under NX (freenx)
> 
> On Mon, 2009-06-08 at 21:04 +0200, Andrzej Szymanski wrote:
> 
> > Thanks for a fast resolution.
> > 
> > However, moving this to .bashrc is a workaround. If I log 
> in graphically 
> > to the console the LD_LIBRARY_PATH from .bash_profile is 
> set correctly. 
> > It is unset only on NX session (and the other settings from 
> > .bash_profile are set properly, so this file is definitely 
> parsed during 
> > nx session startup).
> As suggested before some terminals do not run as login-shell.
> Gnome-terminal has an option (under edit-> profile 
> preferences -> title
> and command that allows you to change this behaviour: Run command as
> login shell. You may want to check your terminal program for a similar
> setting
> Louis
> 
> 
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 

With Konsole, just change the invocation of /bin/bash to /bin/bash -l

--
Gary L. Greene, Jr.
IT Operations
Minerva Networks, Inc.
Cell:  (650) 704-6633
Phone: (408) 240-1239
 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cannot get LD_LIBRARY_PATH to work under NX (freenx)

2009-06-08 Thread Gary Greene
I'm surprised that since it installs in a non-standard location that it doesn't 
create a /etc/ld.so.conf.d/ conf file. In that case it's a simple drop-in file 
that only requires ldconfig to be run after the package installation

--
Gary L. Greene, Jr.
IT Operations
Minerva Networks, Inc.
Cell:  (650) 704-6633
Phone: (408) 240-1239
 

> -Original Message-
> From: centos-boun...@centos.org 
> [mailto:centos-boun...@centos.org] On Behalf Of Filipe Brandenburger
> Sent: Monday, June 08, 2009 12:26 PM
> To: CentOS mailing list
> Subject: Re: [CentOS] Cannot get LD_LIBRARY_PATH to work 
> under NX (freenx)
> 
> Hi,
> 
> On Mon, Jun 8, 2009 at 15:04, Andrzej 
> Szymanski wrote:
> > However, moving this to .bashrc is a workaround. If I log 
> in graphically
> > to the console the LD_LIBRARY_PATH from .bash_profile is 
> set correctly.
> > It is unset only on NX session (and the other settings from
> > .bash_profile are set properly, so this file is definitely 
> parsed during
> > nx session startup).
> 
> I use the "real" NX, not FreeNX, and I know it installs under /usr/NX,
> so I know it will use LD_LIBRARY_PATH to find its own libraries. I
> believe it will probably reset (erase) the contents of LD_LIBRARY_PATH
> once the O.S. processes (window manager, etc.) are started.
> 
> As I said, if your terminal emulator opened a "login" shell you would
> not have problems leaving the setting in .bash_profile, as it would be
> read again when you open a new shell (if you are starting your
> application through a shell). However, I believe this is not really
> very standardized. As a rule of thumb, I try to put as much as
> possible in .bashrc and leave only the source of .bashrc in
> .bash_profile, as this increases the chances of it "just working".
> 
> And while you say "moving this to .bashrc is a workaround", I would
> say that using LD_LIBRARY_PATH is a workaround, or at least a kludge,
> since software that is properly installed would never need it... The
> interaction of different software packages that need to use it will
> always cause this kind of issues, and there is usually nothing much
> short of other workarounds or kludges that can be done about it...
> 
> Filipe
> ___
> 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] LZMA for CentOS 5.3 repository or source or rpm

2009-06-08 Thread Phil Schaffner
Rob Townley wrote:
> i need lzma compression for CloneZilla, but have not found it in any
> CentOS repository.  The Finnish website was down and when up, it does
> not do much english.

RPMforge has it.  Please read 
http://wiki.centos.org/AdditionalResources/Repositories and note the 
warnings and advice about yum-priorities.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cannot get LD_LIBRARY_PATH to work under NX (freenx)

2009-06-08 Thread Filipe Brandenburger
Hi,

On Mon, Jun 8, 2009 at 16:42, Gary Greene wrote:
> I'm surprised that since it installs in a non-standard location that it 
> doesn't create a /etc/ld.so.conf.d/ conf file. In that case it's a simple 
> drop-in file that only requires ldconfig to be run after the package 
> installation

I believe some of the libraries clash with ones provided by the O.S.,
and should be used by NX binaries only, so adding to ldconfig is not
the proper solution there...

>From what I see, the NX binaries are actually linked to the NX
libraries using the full path, or using RPATH when not specifying the
whole path, so I'm not sure why they use LD_LIBRARY_PATH... However,
using "strings" and "grep" I can see that they do use it and
apparently reset it. They might be resetting it as a measure of
security.

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


Re: [CentOS] Cannot get LD_LIBRARY_PATH to work under NX (freenx)

2009-06-08 Thread Les Mikesell
Filipe Brandenburger wrote:
> Hi,
> 
> On Mon, Jun 8, 2009 at 16:42, Gary Greene wrote:
>> I'm surprised that since it installs in a non-standard location that it 
>> doesn't create a /etc/ld.so.conf.d/ conf file. In that case it's a simple 
>> drop-in file that only requires ldconfig to be run after the package 
>> installation
> 
> I believe some of the libraries clash with ones provided by the O.S.,
> and should be used by NX binaries only, so adding to ldconfig is not
> the proper solution there...
> 
>>From what I see, the NX binaries are actually linked to the NX
> libraries using the full path, or using RPATH when not specifying the
> whole path, so I'm not sure why they use LD_LIBRARY_PATH... However,
> using "strings" and "grep" I can see that they do use it and
> apparently reset it. They might be resetting it as a measure of
> security.

But wouldn't it be more polite to reset it back to what it had picked up 
from your .bash_profile if you had some reason to change it there?

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


[CentOS] Building a custom install CD

2009-06-08 Thread Fred Moyer
Greetings,

I am looking for resources on how to build my own Centos install CD
for a preselected package set that I want to install.  I think Red Hat
may have had this functionality at some point but it has been a while
since I have needed to do this.

I found this on how to build my own kernel -
http://wiki.centos.org/HowTos/BuildingKernelModules  - which I will
need to exercise as well, but I want to build my own .iso that I can
run a kickstart or similar mechanism from.

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


Re: [CentOS] Disabling IPv6 in CentOS 4.7

2009-06-08 Thread Hann-huei Chiou

Hi,

On Sun, Jun 07, 2009 at 09:50:11PM -0400, Stephen Harris wrote:
> I thought I'd done that standard stuff
>   /etc/modprobe.conf:
> alias net-pf-10 off
> alias ipv6 off
>   /etc/sysconfig/network:
> NETWORKING_IPV6=no
> 
> But on reboot I still see ipv6 entries against the eth devices, ipv6 module
> is still loaded, and sit0 tunnel is present.
> 
> What needs to be done to disable ipv6?

Just put these in your /etc/modprobe.conf to disable IPv6:

blacklist net-pf-10
blacklist ipv6
install ipv6 /bin/true

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


Re: [CentOS] Disabling IPv6 in CentOS 4.7

2009-06-08 Thread Stephen Harris
On Tue, Jun 09, 2009 at 06:48:28AM +0800, Hann-huei Chiou wrote:
> On Sun, Jun 07, 2009 at 09:50:11PM -0400, Stephen Harris wrote:
> > I thought I'd done that standard stuff
> >   /etc/modprobe.conf:
> > alias net-pf-10 off
> > alias ipv6 off
> >   /etc/sysconfig/network:
> > NETWORKING_IPV6=no

> Just put these in your /etc/modprobe.conf to disable IPv6:
> 
> blacklist net-pf-10
> blacklist ipv6
> install ipv6 /bin/true

Hmm, well Filipe's answer also worked (openib package for InfiniBand was
causing ipv6 to load as a dependency).  

I guess your answer works by forcably failing any attempt to load it,
even as a dependency.

Thanks to you both.

-- 

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


[CentOS] Networking Issue

2009-06-08 Thread Joseph L. Casale
Need some opinions on making a multihomed box more resilient to
failure. This server runs asterisk and performs nat and firewalling
for an office. Its wan nic is plugged directly into a cable modem
and I am stuck with it being configured as a dhcp client. The lan
nic services a small office, and has a static IP but of course, no
default gateway.

When an internet outage occurs, asterisks sip stack tanks and the pbx
dives. So I have setup fqdn's/ip's in the hosts file for all sip peers
it will attempt to resolve, and setup a local dns with all rfc1912 zones
so every query asterisk can possibly make will be answered locally.

Now it seems there is still one last hurdle, when the connection is yanked
to simulate a complete outage, asterisk still goes down. I can only assume
this happens now as a result of no default gateway?

Would setting up a silly route for 0.0.0.0/0 to say 127.0.0.1 for the internal
nic in /etc/sysconfig/network-scripts/route-eth1 with a metric higher than
what the ISP's dhcp servers default gw would be possibly cure this? My hope
is that when the wan nic goes down, a route is still available.

I can't think of any other network shortcoming that is left when that external
nic goes down, I am hoping this is finally it, so asterisk will stop core
dumping and yelling "Serious Network Trouble".

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


Re: [CentOS] Networking Issue

2009-06-08 Thread nate
Joseph L. Casale wrote:

> Now it seems there is still one last hurdle, when the connection is yanked
> to simulate a complete outage, asterisk still goes down. I can only assume
> this happens now as a result of no default gateway?

check the logs? run strace on the process? run tcpdump on
the interface(s) to see what traffic it is trying to transmit?

>
> Would setting up a silly route for 0.0.0.0/0 to say 127.0.0.1 for the
> internal
> nic in /etc/sysconfig/network-scripts/route-eth1 with a metric higher than
> what the ISP's dhcp servers default gw would be possibly cure this? My hope
> is that when the wan nic goes down, a route is still available.

Last I checked the 'metric' number in the linux routing table is
really only used when your using a routing daemon. as far as
default routes go, it should not have any impact.

I suspect the route is not the issue, I suspect that the app is
trying to talk to something external and then fails, it will fail
the same if you try to point it to a router that goes nowhere.

tcpdump should be able to tell you who the host is trying to talk
to. strace might reveal why.

nate



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


[CentOS] PAE or use 64-bit?

2009-06-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Hi all,

Which would you recommend for a 4GB+ machine?

A 32-bit install with PAE-enabled kernel or just use 64-bit?

Regards,
Matt

-- 
Stand before it and there is no beginning.
Follow it and there is no end.
Stay with the ancient Tao,
Move with the present.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] PAE or use 64-bit?

2009-06-08 Thread Robert Heller
At Tue, 9 Jun 2009 09:42:50 +0800 CentOS mailing list  wrote:

> 
> Hi all,
> 
> Which would you recommend for a 4GB+ machine?
> 
> A 32-bit install with PAE-enabled kernel or just use 64-bit?

It depends...

If you are not doing anything that needs a 64-bit address space, then
32-bit w/PAE will work just fine.

> 
> Regards,
> Matt
> 

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

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


Re: [CentOS] PAE or use 64-bit?

2009-06-08 Thread Filipe Brandenburger
Hi,

On Mon, Jun 8, 2009 at 22:28, Robert Heller wrote:
> At Tue, 9 Jun 2009 09:42:50 +0800 CentOS mailing list  
> wrote:
>> Which would you recommend for a 4GB+ machine?
>> A 32-bit install with PAE-enabled kernel or just use 64-bit?
>
> If you are not doing anything that needs a 64-bit address space, then
> 32-bit w/PAE will work just fine.

Yes, but I would recommend you to go with 64-bit OS anyways.

Even though PAE might work reasonably well if you have 4GB or 6GB or
8GB and with your current applications, 64-bit will keep working well
when you need to upgrade your machine to 16GB or 32GB and run
additional applications or newer versions that need to address more
than 4GB per process.

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


Re: [CentOS] PAE or use 64-bit?

2009-06-08 Thread Akemi Yagi
On Mon, Jun 8, 2009 at 8:30 PM, Filipe
Brandenburger wrote:

> Even though PAE might work reasonably well if you have 4GB or 6GB or
> 8GB and with your current applications, 64-bit will keep working well
> when you need to upgrade your machine to 16GB or 32GB and run
> additional applications or newer versions that need to address more
> than 4GB per process.

Indeed.  This reminded me of the incorrect description about
kernel-PAE in the CentOS documentaion.  I filed a request to correct
it in this bug tracker:

http://bugs.centos.org/view.php?id=3231

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


Re: [CentOS] PAE or use 64-bit?

2009-06-08 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On Tue, Jun 9, 2009 at 2:09 PM, Akemi Yagi wrote:
> On Mon, Jun 8, 2009 at 8:30 PM, Filipe
> Brandenburger wrote:
>
>> Even though PAE might work reasonably well if you have 4GB or 6GB or
>> 8GB and with your current applications, 64-bit will keep working well
>> when you need to upgrade your machine to 16GB or 32GB and run
>> additional applications or newer versions that need to address more
>> than 4GB per process.
>
> Indeed.  This reminded me of the incorrect description about
> kernel-PAE in the CentOS documentaion.  I filed a request to correct
> it in this bug tracker:
>
> http://bugs.centos.org/view.php?id=3231

Thanks guys.

It's 64-bit then.

-- 
Stand before it and there is no beginning.
Follow it and there is no end.
Stay with the ancient Tao,
Move with the present.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos