RE: [CentOS] Help: Server security compromised?

2008-08-07 Thread [EMAIL PROTECTED]
  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Noob Centos Admin
Sent: Thursday, August 07, 2008 5:17 AM
To: CentOS mailing list
Subject: Re: [CentOS] Help: Server security compromised?


On Thu, Aug 7, 2008 at 1:54 AM, Sorin Srbu <[EMAIL PROTECTED]> wrote:


Seen this? 

http://www.askbjoernhansen.com/2007/09/18/safely_change_firewall_rules_remotel
y.html

Unfortunately, only after you pointed it out :(
But thankfully whoever wrote APF apparently knows this, hence it does insert
an automatic reset of the firewall after 5 minutes.

 No worries, we've all been there at one time or another. Consider it a
learning experience. 8-)
 
 


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


Re: [CentOS] Yum

2008-08-07 Thread Mohsen Pahlevanzadeh

Lanny Marcus wrote:


On Tue, Aug 5, 2008 at 9:07 PM, Jim Perrin <[EMAIL PROTECTED]> wrote:
  

On Tue, Aug 5, 2008 at 5:38 PM, Chris Brentano
<[EMAIL PROTECTED]> wrote:


Hmm, it should be there no matter what, even if you deselect all the package
groups on install. Should be at /usr/bin/yum.
  

You'd think that, however there seems to be a growing (or at least
their users are complaining more vocally on irc) number of VPS
providers using a very stripped down version of centos. They ship it
without yum, which would imply that folks are not able to get basic
security updates via the normal route (if at all).

While I could possibly see excluding the kernel and maybe a few other
packages since it runs a custom built openvz kernel, the entire
removal of yum is extreme, and seems very careless of these VPS
providers.



Not only they cannot do updates. They cannot install additional packages.
If the idea of having a VPS is that it is like having a Dedicated Server,
the people buying those brain dead VPS are getting a very crippled system.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


  


Of course i have installed by hand
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


RE: [CentOS] Whole disk encryption - SOLVED

2008-08-07 Thread Plant, Dean
Timothy Selivanow wrote:
> On Mon, 2008-08-04 at 16:51 +0100, Plant, Dean wrote:
>> Has there been any updates to support encrypting the whole disk in
>> 5.2? 
> 
> There hasn't been any built-in support until Fedora 9, so perhaps at
> the earliest it would be 5.3 if at all.  There are however, ways you
> can implement it yourself.  The biggest things you have to keep in
> mind are that you need to make a change to the mkinitrd script and
> then generate a new initrd image to be able to encrypt /, otherwise
> you could just modify init.
> 
> There are a number of websites that have some docs on how to do it,
> here is just one that I've seen in the past:
> 
> http://www.tummy.com/Community/Articles/cryptoroot-f8/
> 
> 

Thank you to everyone who replied.

Tim,

Thanks for the above link. Those instructions work fine on v5.2. You
have to manually edit /sbin/mkinitrd but the changes are obvious enough
from their patch file. Not quite whole disk encryption but a good
compromise.

Now just need to put this in a kickstart file to try and automate the
setup.

Thanks

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


Re: [CentOS] Kernel 92.1.10 build issue

2008-08-07 Thread Akemi Yagi
On Wed, Aug 6, 2008 at 11:23 PM, Mark Hull-Richter <[EMAIL PROTECTED]> wrote:
> I pulled down the 2.6.18-92.1.10 source, installed it, built the package,
> copied the straight x86_64 config file from SOURCES into the build
> directory, redid make menuconfig to enable NTFS support, added the # x86_64
> back into the .config file, copied .config back to the SOURCES directory and
> ran rpmbuild -ba --target=x86_64  (same as I always do with new
> kernels), but this time I'm getting this error in the build:
>
> Patch #0 (linux-2.6-rhel-version-h.patch):
> + patch -p1 -s
> + perl -p -i -e 's/^SUBLEVEL.*/SUBLEVEL = 18/' Makefile
(snip)
> + cat .config
> + for i in '*.config'
> + mv kernel-2.6.18-x86_64.config .config
> ++ head -1 .config
> ++ cut -b 3-
> + Arch=x86_64
> + make ARCH=x86_64 nonint_oldconfig
> CONFIG_MAX_RAW_DEVS
> make[1]: *** [nonint_oldconfig] Error 1
> make: *** [nonint_oldconfig] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.53835 (%prep)
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.53835 (%prep)
>
> Was there something I needed to tweak in the spec file, other than the build
> id and a few of the build switches I usually turn off (xen, debug, kdump)?

I suggest you take a look at the Wiki article:

http://wiki.centos.org/HowTos/Custom_Kernel

It has been updated recently (Alan did most of the work) to
accommodate recent changes in the spec file.  You will find many lines
that were changed or added newly.  Among other things, it now suggests
that you copy the .config file from the config/ directory (or from
your /boot) instead of the SOURCES directory.  Because your build is
failing at the step of:

  make ARCH=$Arch nonint_oldconfig > /dev/null

I suspect using the config file from configs/ might fix the error you got.

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


[CentOS] Firewire/IEEE1394 support on centos.plus repro and yum update

2008-08-07 Thread Emmanuel Borlet
Helo,

I'm trying to update a centos server with a kernel form the centos.plus
repro because it contain Firewire/IEEE1394 support.
But when y do a :
# yum update 
The kernel from the base is more recent thant the centos plus repro
I have tried with the
http://wiki.centos.org/PackageManagement/Yum/Priorities plug-in and it
didn't take the right kernel :

ftp://ftp.free.fr/mirrors/ftp.centos.org/5.2/centosplus/i386/RPMS/kernel-2.6
.18-92.1.6.el5.centos.plus.i686.rpm
But the 
ftp://ftp.free.fr/mirrors/ftp.centos.org/5.2/updates/i386/RPMS/kernel-2.6.18
-92.1.10.el5.i686.rpm

How i can force kernel choice form centos plus ?

Thank's for your help

Emmanuel Borlet


See :
# cat /etc/yum.repos.d/CentOS-Base.repo

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
priority=1

#released updates 
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
priority=10

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


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


Re: [CentOS] Firewire/IEEE1394 support on centos.plus repro and yum update

2008-08-07 Thread Akemi Yagi
On Thu, Aug 7, 2008 at 2:41 AM, Emmanuel Borlet <[EMAIL PROTECTED]> wrote:
> Helo,
>
> I'm trying to update a centos server with a kernel form the centos.plus
> repro because it contain Firewire/IEEE1394 support.
> But when y do a :
> # yum update
> The kernel from the base is more recent thant the centos plus repro
> I have tried with the
> http://wiki.centos.org/PackageManagement/Yum/Priorities plug-in and it
> didn't take the right kernel :
>
> ftp://ftp.free.fr/mirrors/ftp.centos.org/5.2/centosplus/i386/RPMS/kernel-2.6
> .18-92.1.6.el5.centos.plus.i686.rpm
> But the
> ftp://ftp.free.fr/mirrors/ftp.centos.org/5.2/updates/i386/RPMS/kernel-2.6.18
> -92.1.10.el5.i686.rpm
>
> How i can force kernel choice form centos plus ?
>
> Thank's for your help
>
> Emmanuel Borlet
>
>
> See :
> # cat /etc/yum.repos.d/CentOS-Base.repo
>
> [base]
> name=CentOS-$releasever - Base
> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
> repo=os
> #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
> gpgcheck=1
> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
> priority=1
>
> #released updates
> [updates]
> name=CentOS-$releasever - Updates
> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
> repo=updates
> #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
> gpgcheck=1
> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

Please check out:

http://wiki.centos.org/AdditionalResources/Repositories/CentOSPlus

Make sure you set the priority correctly for all repositories AND
exclude kernel etc from the base and updates as seen in Example 2 in
the wiki article.

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


Re: [CentOS] Firewire/IEEE1394 support on centos.plus repro and yum update

2008-08-07 Thread Emmanuel Borlet
It seems to work ! 

Thank's you !

I have removed the priority added the exclude / includepkgs arguments

See my new
# cat /etc/yum.repos.d/CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=kernel kernel-devel kernel-PAE-*

#released updates 
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=kernel kernel-devel kernel-PAE-*

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
includepkgs=kernel*

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5



Le 07/08/08 11:57, « Akemi Yagi » <[EMAIL PROTECTED]> a écrit

> On Thu, Aug 7, 2008 at 2:41 AM, Emmanuel Borlet <[EMAIL PROTECTED]>
> wrote:
>> Helo,
>> 
>> I'm trying to update a centos server with a kernel form the centos.plus
>> repro because it contain Firewire/IEEE1394 support.
>> But when y do a :
>> # yum update
>> The kernel from the base is more recent thant the centos plus repro
>> I have tried with the
>> http://wiki.centos.org/PackageManagement/Yum/Priorities plug-in and it
>> didn't take the right kernel :
>> 
>> ftp://ftp.free.fr/mirrors/ftp.centos.org/5.2/centosplus/i386/RPMS/kernel-2.6
>> .18-92.1.6.el5.centos.plus.i686.rpm
>> But the
>> ftp://ftp.free.fr/mirrors/ftp.centos.org/5.2/updates/i386/RPMS/kernel-2.6.18
>> -92.1.10.el5.i686.rpm
>> 
>> How i can force kernel choice form centos plus ?
>> 
>> Thank's for your help
>> 
>> Emmanuel Borlet
>> 
>> 
>> See :
>> # cat /etc/yum.repos.d/CentOS-Base.repo
>> 
>> [base]
>> name=CentOS-$releasever - Base
>> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
>> repo=os
>> #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
>> gpgcheck=1
>> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
>> priority=1
>> 
>> #released updates
>> [updates]
>> name=CentOS-$releasever - Updates
>> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&;
>> repo=updates
>> #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
>> gpgcheck=1
>> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
> 
> Please check out:
> 
> http://wiki.centos.org/AdditionalResources/Repositories/CentOSPlus
> 
> Make sure you set the priority correctly for all repositories AND
> exclude kernel etc from the base and updates as seen in Example 2 in
> the wiki article.
> 
> Akemi
> ___
> 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] Mount a Xen disk image file

2008-08-07 Thread Dirk H. Schulz

Hi Folks,

I search for a way to mount the .img files virt-install creates for Xen 
VMs. Using fdisk -lu I found it contains to 2 partitions:



# fdisk -lu /var/lib/xen/images/BaseCentos.img
last_lba(): I don't know how to handle files with mode 81ed
Sie müssen angeben Zylinder.
Sie können dies im Zusatzfunktionsmenü tun.

Platte /var/lib/xen/images/BaseCentos.img: 0 MByte, 0 Byte
255 heads, 63 sectors/track, 0 cylinders, zusammen 0 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes

  Gerät  boot. AnfangEnde Blöcke   Id  System
/var/lib/xen/images/BaseCentos.img1   *  63  208844 

104391   83  Linux
/var/lib/xen/images/BaseCentos.img2  208845 8177084 

3984120   8e  Linux LVM


And I can mount the first partition with no problem using the offset 
(start) from the partition table:

mount -o loop,offset=$((63*512) /PATH/TO/IMAGE.img /MOUNTPOINT

But I cannot mount the second partition using the offset of it:

mount -o loop,offset=$((208845*512)) /PATH/TO/IMAGE.img /MOUNTPOINT
mount: you have to specify the file system type
Even using ext3, ext2 does not work. I do not think the offset is incorrect 
- I venture it is because the second partition is LVM (8e).


Did anybody out there succeed in mounting an LVM partition out of an image 
file?


Any hint or help is appreciated.

Dirk

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


Re: [CentOS] Kernel 92.1.10 build issue

2008-08-07 Thread Johnny Hughes

Akemi Yagi wrote:

On Wed, Aug 6, 2008 at 11:23 PM, Mark Hull-Richter <[EMAIL PROTECTED]> wrote:

I pulled down the 2.6.18-92.1.10 source, installed it, built the package,
copied the straight x86_64 config file from SOURCES into the build
directory, redid make menuconfig to enable NTFS support, added the # x86_64
back into the .config file, copied .config back to the SOURCES directory and
ran rpmbuild -ba --target=x86_64  (same as I always do with new
kernels), but this time I'm getting this error in the build:

Patch #0 (linux-2.6-rhel-version-h.patch):
+ patch -p1 -s
+ perl -p -i -e 's/^SUBLEVEL.*/SUBLEVEL = 18/' Makefile

(snip)

+ cat .config
+ for i in '*.config'
+ mv kernel-2.6.18-x86_64.config .config
++ head -1 .config
++ cut -b 3-
+ Arch=x86_64
+ make ARCH=x86_64 nonint_oldconfig
CONFIG_MAX_RAW_DEVS
make[1]: *** [nonint_oldconfig] Error 1
make: *** [nonint_oldconfig] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.53835 (%prep)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.53835 (%prep)

Was there something I needed to tweak in the spec file, other than the build
id and a few of the build switches I usually turn off (xen, debug, kdump)?


I suggest you take a look at the Wiki article:

http://wiki.centos.org/HowTos/Custom_Kernel

It has been updated recently (Alan did most of the work) to
accommodate recent changes in the spec file.  You will find many lines
that were changed or added newly.  Among other things, it now suggests
that you copy the .config file from the config/ directory (or from
your /boot) instead of the SOURCES directory.  Because your build is
failing at the step of:

  make ARCH=$Arch nonint_oldconfig > /dev/null

I suspect using the config file from configs/ might fix the error you got.


Also,

Do 'make oldconfig' first, before adding the x86_64 back in and coping 
back to the SOURCES dir.


ALSO ... there are some "generic" parts that need stripped out of the 
spec or it will override CONFIG settings.  I think they do this so they 
don't have to change the fedora configs and still get the RHEL settings.


If you don't remove the "generic" compares in the spec, it will turn of 
NTFS regardless of your settings in the config file.




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


Re: [CentOS] CentOS 5.2 -- how do I choose a wireless network?

2008-08-07 Thread Johnny Hughes

MHR wrote:

On Wed, Aug 6, 2008 at 3:57 AM, Johnny Hughes <[EMAIL PROTECTED]> wrote:

WRT wireless on CentOS, use NetworkManager to find and connect to networks
...

You can see if it is installed with the command:

rpm -qa | egrep "NetworkManager|wpa_supplicant"

If installed, the output is similar to this:

NetworkManager-0.6.4-8.el5
NetworkManager-glib-0.6.4-8.el5
NetworkManager-gnome-0.6.4-8.el5
wpa_supplicant-0.4.8-10.2.el5

If not, install with thsi command:

yum install NetworkManger\* wpa_supplicant

The run NetworkManager from the command line.

You will see a NetworkManager applet beside the clock and you should be able
to click it and pick a network.

Here are more details for how to setup NetworkManager:

http://fedoraproject.org/wiki/Tools/NetworkManager



The OP was wondering if this was possible from the live CD - I'm
wondering if installing a (missing?) package is the right solution in
/that/ case.

For (normal) CentOS, I have used a USB plugin wireless adapter on my
laptop with excellent success, although it is not as easy as (okay, I
won't name that other excuse for an OS) 1-2-3 - it takes some looking
to find the whole enchilada, but it /is/ find-able.



you can install packages on the live CD for centos-5



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


Re: [CentOS] Yum

2008-08-07 Thread Johnny Hughes

Lanny Marcus wrote:

On Wed, Aug 6, 2008 at 2:10 AM, Bent Terp <[EMAIL PROTECTED]> wrote:

On Tue, Aug 5, 2008 at 7:01 PM, Mohsen Pahlevanzadeh
<[EMAIL PROTECTED]> wrote:

Dear All,
When i install CentOS, it doesn't install yum package.
How i do it?
when i haven't yum, it is like that i haven't apt-get.
Please help me
Yours,
Mohsen
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Sounds like you need to talk to the support staff where you bought the
VPServer - after all, they're the ones responsible for creating your
problem.

Alternatively, you could try 'rpm --upgrade
http://mirror.centos.org/centos-5/5.2/updates/i386/RPMS/yum-3.2.8-9.el5.centos.2.1.noarch.rpm";
- add dependencies ad nauseam.


Hosts normally advertise a VPS as being almost like a Dedicated
Server. Lots of resources and lots of options. In this case,
without being able to use yum, it starts as a Security problem,
because he cannot update the packages that are
installed. His second problem is that he cannot install new software
with yum, which eliminates a lot of options. Unlike Shared Hosting,
which is Managed, someone with a VPS must Manage their VPS, as if it
was a Dedicated Server, or, pay someone to do that. But, how
would they manage it, without yum? It's much more difficult, without
yum. IMHO, he should look for a VPS with another provider, that allows
him to use yum, etc.


Well .. the problem is that yum breaks their VPS

Those VPS providers should have provided another way to get updates and 
install packages.


If you install yum with the normal defaults it will allow you to install 
packages that will break your VPS.


You should ONLY do what the VPS providers says to do and you should ONLY 
contact them for support.  To do anything else will break your system




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


Re: [CentOS] Mount a Xen disk image file

2008-08-07 Thread Fabian Arrotin

Dirk H. Schulz wrote:
- I venture it is because the second partition is LVM (8e).


Did anybody out there succeed in mounting an LVM partition out of an 
image file?




That's why kpartx (for lvm) and lomount exist ;-)
Don't forget after you've used kpartx -a to use lvscan to discover your 
lv and vgchange ...

--
-
Fabian Arrotin <[EMAIL PROTECTED]>
"Internet network currently down, TCP/IP packets delivered now by 
UPS/Fedex ..."




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


Re: [CentOS] Mount a Xen disk image file

2008-08-07 Thread Dirk H. Schulz

Hi Fabian,

--On 7. August 2008 16:22:36 +0200 Fabian Arrotin 
<[EMAIL PROTECTED]> wrote:



Dirk H. Schulz wrote:
- I venture it is because the second partition is LVM (8e).


Did anybody out there succeed in mounting an LVM partition out of an
image file?



That's why kpartx (for lvm) and lomount exist ;-)
Don't forget after you've used kpartx -a to use lvscan to discover your
lv and vgchange ...


- snip -

I had hoped for some other way because there is an open bug in kpartx on 
recent CentOS which leads to

failed to stat() /var/lib/xen/images/BaseCentos.img

Seems to work only with rather small img files.

Do you have any other idea?

Dirk

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


Re: [CentOS] Re: I'm Stuck

2008-08-07 Thread Glenn

At 11:31 PM 8/6/2008, you wrote:

Dear List,

Many thanks for all the suggestions!  I will see if the Vaio can boot
from a pen drive.  Being several years old, I'm not sure.  If not, the
suggestion to put the drive in another computer is intriguing.

Best regards,
--


I have used this technique on Windows and Linux machines for many 
years (over a decade). This will work unless your file system is 
encrypted. Even then, I think, as long as you have the encryption key 
and nnative tools for the OS that mounts it, it will work.


With the proliferation of USB and Firewire enclosures these days it 
has actually gotten easier.. especially with notebook drives!


Cheers,
Glenn 


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


[CentOS] CentOS5 running very slowly on a core 2 duo with 4 GB RAM

2008-08-07 Thread israel.garcia
Hi, I've installed CentOS5.2 on an INTEL Core 2 Duo (Intel(R) Core(TM)2
Duo CPU E6550  @ 2.33GHz), 4 GB RAM (MemTotal:  4072176 kB) and
my system gets sevarel minutes to startup, specially on udev daemon.
Once the system is UP, every command I run gets 100% CPU and every is
very slowly at the point yum -y update never ends. The system installed
by default this kernel 2.6.18-53.el5PAE. I would like to know what's
wrong with my server. Do I have to install another kernel? Can you help
me?

 

More details of my server:

 

[EMAIL PROTECTED] ~]# uname -a

Linux netreporter-test 2.6.18-53.el5PAE #1 SMP Mon Nov 12 02:55:09 EST
2007 i686 i686 i386 GNU/Linux

 

[EMAIL PROTECTED] ~]# cat /proc/cpuinfo

processor   : 0

vendor_id   : GenuineIntel

cpu family  : 6

model   : 15

model name  : Intel(R) Core(TM)2 Duo CPU E6550  @ 2.33GHz

stepping: 11

cpu MHz : 2331.000

cache size  : 4096 KB

physical id : 0

siblings: 2

core id : 0

cpu cores   : 2

fdiv_bug: no

hlt_bug : no

f00f_bug: no

coma_bug: no

fpu : yes

fpu_exception   : yes

cpuid level : 10

wp  : yes

flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm
constant_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr lahf_lm

bogomips: 4667.95

processor   : 1

vendor_id   : GenuineIntel

cpu family  : 6

model   : 15

model name  : Intel(R) Core(TM)2 Duo CPU E6550  @ 2.33GHz

stepping: 11

cpu MHz : 2331.000

cache size  : 4096 KB

physical id : 0

siblings: 2

core id : 1

cpu cores   : 2

fdiv_bug: no

hlt_bug : no

f00f_bug: no

coma_bug: no

fpu : yes

fpu_exception   : yes

cpuid level : 10

wp  : yes

flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm
constant_tsc pni monitor ds_cpl vmx smx est tm2 cx16 xtpr lahf_lm

bogomips: 4665.47

 

[EMAIL PROTECTED] ~]# cat /proc/meminfo

MemTotal:  4072176 kB

MemFree:   3871428 kB

Buffers: 14224 kB

Cached: 145872 kB

 

Thanks in advance

Israel.

 

 

 

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


Re: [CentOS] Kernel 92.1.10 build issue

2008-08-07 Thread MHR
On Thu, Aug 7, 2008 at 2:24 AM, Akemi Yagi <[EMAIL PROTECTED]> wrote:
>
> I suggest you take a look at the Wiki article:
>
> http://wiki.centos.org/HowTos/Custom_Kernel
>
> It has been updated recently (Alan did most of the work) to
> accommodate recent changes in the spec file.  You will find many lines
> that were changed or added newly.  Among other things, it now suggests
> that you copy the .config file from the config/ directory (or from
> your /boot) instead of the SOURCES directory.

Wow!  Major update, and I didn't need these for the 92.1.6 build

THANKS!

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


Re: [CentOS] Kernel 92.1.10 build issue

2008-08-07 Thread MHR
On Thu, Aug 7, 2008 at 6:45 AM, Johnny Hughes <[EMAIL PROTECTED]> wrote:
> Akemi Yagi wrote:
>
> Also,
>
> Do 'make oldconfig' first, before adding the x86_64 back in and coping back
> to the SOURCES dir.
>
> ALSO ... there are some "generic" parts that need stripped out of the spec
> or it will override CONFIG settings.  I think they do this so they don't
> have to change the fedora configs and still get the RHEL settings.
>
> If you don't remove the "generic" compares in the spec, it will turn of NTFS
> regardless of your settings in the config file.
>

Actually, this is covered in the Wiki now, but thanks as well.

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


Re: [CentOS] CentOS5 running very slowly on a core 2 duo with 4 GB RAM

2008-08-07 Thread Eduardo Grosclaude
On 8/7/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi, I've installed CentOS5.2 on an INTEL Core 2 Duo (Intel(R) Core(TM)2 Duo
> CPU E6550  @ 2.33GHz), 4 GB RAM (MemTotal:  4072176 kB) and my
> system gets sevarel minutes to startup, specially on udev daemon. Once the
> system is UP, every command I run gets 100% CPU and every is very slowly at
> the point yum –y update never ends. The system installed by default this
> kernel 2.6.18-53.el5PAE. I would like to know what's wrong with my server.
> Do I have to install another kernel? Can you help me?

Does disabling Hyperthreading (at BIOS setup control program) help?


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


Re: [CentOS] CentOS5 running very slowly on a core 2 duo with 4 GB RAM

2008-08-07 Thread Ralph Angenendt
[EMAIL PROTECTED] wrote:
> Hi, I've installed CentOS5.2 on an INTEL Core 2 Duo (Intel(R) Core(TM)2
> Duo CPU E6550  @ 2.33GHz), 4 GB RAM (MemTotal:  4072176 kB) and
> my system gets sevarel minutes to startup, specially on udev daemon.
> Once the system is UP, every command I run gets 100% CPU and every is
> very slowly at the point yum -y update never ends. The system installed
> by default this kernel 2.6.18-53.el5PAE. I would like to know what's
> wrong with my server. Do I have to install another kernel? Can you help
> me?

With 4G I'd install the x86_64 version. Not that I think that PAE is the
reason for this slow behaviour (last reporter who had that somewhere on
bugs.centos.org had bad RAM), but ...

Cheers,

Ralph


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


Re: [CentOS] Kernel 92.1.10 build issue

2008-08-07 Thread Akemi Yagi
On Thu, Aug 7, 2008 at 8:34 AM, MHR <[EMAIL PROTECTED]> wrote:
> On Thu, Aug 7, 2008 at 2:24 AM, Akemi Yagi <[EMAIL PROTECTED]> wrote:
>>
>> I suggest you take a look at the Wiki article:
>>
>> http://wiki.centos.org/HowTos/Custom_Kernel
>>
>> It has been updated recently (Alan did most of the work) to
>> accommodate recent changes in the spec file.  You will find many lines
>> that were changed or added newly.  Among other things, it now suggests
>> that you copy the .config file from the config/ directory (or from
>> your /boot) instead of the SOURCES directory.
>
> Wow!  Major update, and I didn't need these for the 92.1.6 build
>
> THANKS!

One other note about the updated wiki article.  This line:

[EMAIL PROTECTED] cp /boot/config-`uname -r` .config

is especially important at this moment even if you are building just
the standard kernel.  This is because there is a bug in the current
kernel:

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

which causes custom kernel build to fail (details are in that
bugzilla).  This has to do with the fact we need to remove the
template section which would otherwise disable the buslogic driver.
By running the above cp command, you will be using the config files
that have buslogic disabled.

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


Re: [CentOS] Help: Server security compromised?

2008-08-07 Thread Ray Leventhal

Noob Centos Admin wrote:



On Thu, Aug 7, 2008 at 1:54 AM, Sorin Srbu <[EMAIL PROTECTED] 
> wrote:


Seen this?


http://www.askbjoernhansen.com/2007/09/18/safely_change_firewall_rules_remotely.html

Unfortunately, only after you pointed it out :(
But thankfully whoever wrote APF apparently knows this, hence it does 
insert an automatic reset of the firewall after 5 minutes

Hi,

My US$0.02 on this.I'm a fan of apf as a front-end to iptables...but 
it takes some reading to understand the switches and the entire RAB 
(reactive address blocking) configuration options.  Sadly, RAB is poorly 
documented, but with a bit of tinkering, I've enjoyed this feature 
tremendously as it cuts down on the hammering I used to get to port 22 
by the bots and script kiddies.


If you've a static IP at your workstation, add your IP address to the 
apf nicely formed 'allow_hosts.rules' file, usually located in 
/etc/apf.  This is a simple IP address or IP block list (using slash 
notation, i.e. 192.168.1.0/24) to allow access to an IP or range of 
IPs.  Further, the deny_hosts.rules list is the same format for hosts to 
always deny.


/usr/local/sbin/apf -a 
will add to the allow list *and* flush and reload the iptables back-end 
so you don't have to restart apf


likewise
/usr/local/sbin/apf -d 
will add to the deny list *and* flush and reload the iptables back-end 
so you don't have to restart apf


Once the firewall is configured properly, set DEVEL to 0 in the conf.apf 
file, then restart apf.  The authors rightly include DEVEL mode which 
crons a shutdown every 5 mins so you're not locked out for long.  Trust 
me, I've been bitten by this (more than I care to admit)


There are other CLI switches, all well documented on the apf site 
(http://rfxnetworks.com/apf.php)

http://rfxnetworks.com/appdocs/README.apf

HTH,
-Ray


--
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] Kernel 92.1.10 build issue

2008-08-07 Thread Akemi Yagi
On Thu, Aug 7, 2008 at 8:53 AM, Akemi Yagi <[EMAIL PROTECTED]> wrote:
> On Thu, Aug 7, 2008 at 8:34 AM, MHR <[EMAIL PROTECTED]> wrote:
>> On Thu, Aug 7, 2008 at 2:24 AM, Akemi Yagi <[EMAIL PROTECTED]> wrote:
>>>
>>> I suggest you take a look at the Wiki article:
>>>
>>> http://wiki.centos.org/HowTos/Custom_Kernel
>>>
>>> It has been updated recently (Alan did most of the work) to
>>> accommodate recent changes in the spec file.  You will find many lines
>>> that were changed or added newly.  Among other things, it now suggests
>>> that you copy the .config file from the config/ directory (or from
>>> your /boot) instead of the SOURCES directory.
>>
>> Wow!  Major update, and I didn't need these for the 92.1.6 build
>>
>> THANKS!
>
> One other note about the updated wiki article.  This line:
>
> [EMAIL PROTECTED] cp /boot/config-`uname -r` .config

Oooops, not that line.  The line I was talking about was this:

[EMAIL PROTECTED] cp configs/* ~/rpmbuild/SOURCES

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


Re: [CentOS] CentOS5 running very slowly on a core 2 duo with 4 GB RAM

2008-08-07 Thread John R Pierce

[EMAIL PROTECTED] wrote:


Hi, I’ve installed CentOS5.2 on an INTEL Core 2 Duo (Intel(R) 
Core(TM)2 Duo CPU E6550 @ 2.33GHz), 4 GB RAM (MemTotal: 4072176 kB) 
and my system gets sevarel minutes to startup, specially on udev 
daemon. Once the system is UP, every command I run gets 100% CPU and 
every is very slowly at the point yum –y update never ends. The system 
installed by default this kernel 2.6.18-53.el5PAE. I would like to 
know what’s wrong with my server. Do I have to install another kernel? 
Can you help me?


More details of my server:



additional useful info might be ...

# dmesg
# lspci
#vmstat 5 5
# iostat -x 5 5

the last 2 will take about 30 seconds each to run (oh, iostat is part of 
package `sysstat` which may not be installed by default, `yum install 
sysstat`)


and if the dmesg output doesn't start with
Linux version 2.6.18-92.1.6.el5 ([EMAIL PROTECTED]) (gcc 
version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Wed Jun 25 1

3:49:24 EDT 2008

(or similar) that means the dmesg buffer likely overflowed, so cat 
/var/log/dmesg to get the snapshot output of it right after the system 
booted



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


Re: [CentOS] CentOS5 running very slowly on a core 2 duo with 4 GB RAM

2008-08-07 Thread John R Pierce

Eduardo Grosclaude wrote:

On 8/7/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
  



Hi, I've installed CentOS5.2 on an INTEL Core 2 Duo (Intel(R) Core(TM)2 Duo
CPU E6550  @ 2.33GHz), 4 GB RAM (MemTotal:  4072176 kB) and my
system gets sevarel minutes to startup, specially on udev daemon. Once the
system is UP, every command I run gets 100% CPU and every is very slowly at
the point yum –y update never ends. The system installed by default this
kernel 2.6.18-53.el5PAE. I would like to know what's wrong with my server.
Do I have to install another kernel? Can you help me?



Does disabling Hyperthreading (at BIOS setup control program) help?


  



there is no hyperthreading on core2duo cpus, they are true dual core.

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


Re: [CentOS] Firewire/IEEE1394 support on centos.plus repro and yum update

2008-08-07 Thread MHR
On Thu, Aug 7, 2008 at 3:21 AM, Emmanuel Borlet <[EMAIL PROTECTED]> wrote:
> It seems to work !
>
> Thank's you !
>
> I have removed the priority added the exclude / includepkgs arguments
>

1) Please don't top post.

2) I would recommend strongly AGAINST removing the priorities.  First,
there is no connection between priorities and include/exclude
commands, and second, you open yourself up to other weaknesses if you
use any repos other than those at CentOS.  Looks like you just need to
set them correctly, and get the excludes right, and the two should
work together nicely.

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


Re: [CentOS] CentOS5 running very slowly on a core 2 duo with 4 GB RAM

2008-08-07 Thread Jayson Rowe

Ralph Angenendt wrote:

[EMAIL PROTECTED] wrote:
  

Hi, I've installed CentOS5.2 on an INTEL Core 2 Duo (Intel(R) Core(TM)2
Duo CPU E6550  @ 2.33GHz), 4 GB RAM (MemTotal:  4072176 kB) and
my system gets sevarel minutes to startup, specially on udev daemon.
Once the system is UP, every command I run gets 100% CPU and every is
very slowly at the point yum -y update never ends. The system installed
by default this kernel 2.6.18-53.el5PAE. I would like to know what's
wrong with my server. Do I have to install another kernel? Can you help
me?



With 4G I'd install the x86_64 version. Not that I think that PAE is the
reason for this slow behaviour (last reporter who had that somewhere on
bugs.centos.org had bad RAM), but ...

Cheers,

Ralph


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
I don't think PAE would be causing his issue...I have a similar system 
with 8GB of RAM and I got better performance w/ PAE than I did with 
x86_64, but YMMV depending on usage of the system...


Israel, have you tried running memtest86 just to rule out a memory 
error? Also, when you installed, did you let the installer check your media?

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


Re: [CentOS] Kernel 92.1.10 build issue

2008-08-07 Thread MHR
On Thu, Aug 7, 2008 at 8:54 AM, Akemi Yagi <[EMAIL PROTECTED]> wrote:
> On Thu, Aug 7, 2008 at 8:53 AM, Akemi Yagi <[EMAIL PROTECTED]> wrote:
>>
>> One other note about the updated wiki article.  This line:
>>
>> [EMAIL PROTECTED] cp /boot/config-`uname -r` .config
>
> Oooops, not that line.  The line I was talking about was this:
>
> [EMAIL PROTECTED] cp configs/* ~/rpmbuild/SOURCES
>

Wait - which one works and which one does not, or do they both work or 

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


Re: [CentOS] Kernel 92.1.10 build issue

2008-08-07 Thread MHR
On Thu, Aug 7, 2008 at 9:57 AM, MHR <[EMAIL PROTECTED]> wrote:
> On Thu, Aug 7, 2008 at 8:54 AM, Akemi Yagi <[EMAIL PROTECTED]> wrote:
>> On Thu, Aug 7, 2008 at 8:53 AM, Akemi Yagi <[EMAIL PROTECTED]> wrote:
>>>
>>> One other note about the updated wiki article.  This line:
>>>
>>> [EMAIL PROTECTED] cp /boot/config-`uname -r` .config
>>
>> Oooops, not that line.  The line I was talking about was this:
>>
>> [EMAIL PROTECTED] cp configs/* ~/rpmbuild/SOURCES
>>
>
> Wait - which one works and which one does not, or do they both work or 
>

NEVER MIND!  (Please) - I was reading with my dyslexia glasses on

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


[CentOS] CentOS as a desktop was Re: Slightly OT

2008-08-07 Thread Donald Buchan
> OK ... this is silly
>
> CentOS is an Enterprise distro and works great as a workstation.  In
> fact, it is just as good as Ubuntu for a desktop.  I would argue that a
> stable, supported for several year desktop is much better than a distro
> that upgrades every 6 months.

I have found just that.

I was introduced to linux a couple of years ago by way of FC5 (known about
it for years, always wanted to migrate, dabbled in RH6 about 8 years ago
and dropped it).  I was supposed to get CentOS 4.4 but got FC5, allegedly
-devel.  Big mistake, I had it removed and CentOS 4.4 installed after a
couple of months.  The stability, the lower number of updates, reduced to
effective nil dependency hell (provided that I stuck with the repo stuff,
and even then many outside stuff) and long-term support was what attracted
me.  The 6 month treadmill was one of several issues I had; why spend 6
months installing and fighting with a system, only to have to go through
the trouble of reinstalling after 6 months and starting again?

However getting my "new" printer (about one year on the market and had it
since December 2007) to work on my desktop under 5.2 as well as getting,
then keeping keeping wireless on my laptop using a 4 year old PCMCIA card
were deal breakers.

I currently run 3 computers at home, one on the same box that got the 4.4
a couple of years ago and now upgraded to 4.6.  The other two ... I had
4.4 on one and the other is a new acquisition, and installed 5.2 on both,
and within a month I had to move to Ubuntu (gg-lee.  I will be
moving to F9 soon if things work out, Ubuntu is a strange breed that
works, with a consumer experience virtually identical to what I had under
CentOS with the exception of stuff that works with no trouble and a few
nuances, but ... something rubs me the wrong way.  Things like the Ubuntu
customizations to the Gnome menus and the fact that the default user is
defacto root while root is relegated to uselessness (including not being
able to log into its own desktop to take advantage of the gui admin
tools!)

Long and the short of it, I would rather keep up with CentOS, made a rash
decision to use Ubuntu 8.06 since it works and has the saving grace of
being LTS, and will look into Fedora 9 since I'd rather be running a(n
albeit small) Red Hat farm instead of a mostly Ubuntu/Debian farm.

I still agree that CentOS is a robust and highly appropriate desktop. 
Just getting it to do basic things like wireless and printing (forget
easily, just at all) need MAJOR work from upstream.  Oh well, I don't pay
site licences and CentOS strives for 100% binary compatibility 

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


Re: [CentOS] I'm Stuck

2008-08-07 Thread Florin Andrei
Please don't reply to an existing discussion thread and change the 
subject. Create a new message if you start a new topic.


Thanks.

--
Florin Andrei

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


Re: [CentOS] Kernel 92.1.10 build issue

2008-08-07 Thread Farkas Levente

Akemi Yagi wrote:

On Thu, Aug 7, 2008 at 8:34 AM, MHR <[EMAIL PROTECTED]> wrote:

On Thu, Aug 7, 2008 at 2:24 AM, Akemi Yagi <[EMAIL PROTECTED]> wrote:

I suggest you take a look at the Wiki article:

http://wiki.centos.org/HowTos/Custom_Kernel

It has been updated recently (Alan did most of the work) to
accommodate recent changes in the spec file.  You will find many lines
that were changed or added newly.  Among other things, it now suggests
that you copy the .config file from the config/ directory (or from
your /boot) instead of the SOURCES directory.

Wow!  Major update, and I didn't need these for the 92.1.6 build

THANKS!


One other note about the updated wiki article.  This line:

[EMAIL PROTECTED] cp /boot/config-`uname -r` .config

is especially important at this moment even if you are building just
the standard kernel.  This is because there is a bug in the current
kernel:

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

which causes custom kernel build to fail (details are in that
bugzilla).  This has to do with the fact we need to remove the
template section which would otherwise disable the buslogic driver.
By running the above cp command, you will be using the config files
that have buslogic disabled.


hi,
first of all this bug is already fixed by rhel (after i reported it). 
second i've a few comment about this wiki page (since we don't do this 
way and imho it's much easier and cleaner).


- i don't do the step 3, except:
 - %define buildid .your_identifier
 - #   %_sourcedir/kabitool -b . -d ...
 - touch symsets-$KernelVer.tar.gz
 - and of course the patches:-)

- at the and of the config merge (currently at line 4768) we add our 
extra setting merge eg: like this (and of course we've got our 
config-xxx files):

# --- Start Custom ---
# XFS hardcoded
for i in %{all_arch_configs}
do
  mv $i $i.tmp
  $RPM_SOURCE_DIR/merge.pl $RPM_SOURCE_DIR/config-xfs $i.tmp > $i
  rm $i.tmp
done
# move to the new libata driver (only sdX)
for i in %{all_arch_configs}
do
  sed -i "s/CONFIG_IDE=y/# CONFIG_IDE is not set/g" $i
done
#  End Custom ---

in this way out diff from the centos spec file has about a dozen of 
different lines which much easier the read. and after that we build with:
rpmbuild -ba --target "noarch,i386,i686" --without pae --without debug 
--without debuginfo --without kabichk ~/rpm/SPECS/kernel-2.6-custom.spec


yours.


--
  Levente   "Si vis pacem para bellum!"
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Kernel 92.1.10 build issue

2008-08-07 Thread Akemi Yagi
On Thu, Aug 7, 2008 at 10:58 AM, Farkas Levente <[EMAIL PROTECTED]> wrote:
> Akemi Yagi wrote:

>> is especially important at this moment even if you are building just
>> the standard kernel.  This is because there is a bug in the current
>> kernel:
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=445095
>>
>> which causes custom kernel build to fail (details are in that
>> bugzilla).  This has to do with the fact we need to remove the
>> template section which would otherwise disable the buslogic driver.
>> By running the above cp command, you will be using the config files
>> that have buslogic disabled.
>
> hi,
> first of all this bug is already fixed by rhel (after i reported it).

Well, it is not considered "fixed" until the patch gets actually
incorporated into the kernel upstream.  We have to apply the patch
manually at this moment to compile the buslogic module.

> second
> i've a few comment about this wiki page (since we don't do this way and imho
> it's much easier and cleaner).
(snip)

>  Levente   "Si vis pacem para bellum!"

Thanks.  I will make sure Alan gets to read your note.

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


Re: [CentOS] Mount a Xen disk image file

2008-08-07 Thread Kai Schaetzl
Dirk H. Schulz wrote on Thu, 07 Aug 2008 16:46:47 +0200:

> Do you have any other idea?

Do you want to regularly access it that way or do you just need to access 
the files onetime?
I do not like this xvda stuff at all. So I created a basic setup with 
virt-install and copied all content off (I don't know what I used, I 
assume cp or rsync or so). I used these files for a new VM based on ext3 
formatted disks (you can either use files or LV). Can be done within 15 
minutes or so. I tweaked that a bit to my liking and now use it as a 
template for new VMs. As the disks are ext3 I can now easily access the 
drives by mounting that LV.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



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


Re: [CentOS] openldap package compilation flags?

2008-08-07 Thread Bob Beers
On Wed, Jul 16, 2008 at 6:30 PM, Johnny Hughes <[EMAIL PROTECTED]> wrote:
> tblader wrote:
>>
>> Hello All.
>> How do I find out what flags were used to compile
>> the Centos openldap-2.3.27-8.el5_2.4 rpm package?
>> I'm specifically wondering if it was compiled with
>> --enable-lmpasswd
>>
>> Thanks!
>>
> If you download the SRPM and install it, then you can look at the spec file.
>
> Server is built like this:
>
>--enable-plugins \
>--enable-slapd \
>--enable-slurpd \
>--enable-multimaster \
>--enable-bdb \
>--enable-hdb \
>--enable-ldap \
>--enable-ldbm \
>--with-ldbm-api=%{ldbm_backend} \
>--enable-meta \
>--enable-monitor \
>--enable-null \
>--enable-shell \
>--enable-sql=mod \
>--disable-perl \
>--disable-shared \
>--disable-dynamic \
>--enable-static \
>--with-kerberos=k5only
>
> Client like this:
>
>   --disable-slapd \
>--disable-slurpd \
>--enable-shared \
>--enable-dynamic \
>--enable-static \
>--without-kerberos \
>--with-pic
>

Slightly OT, but related to this question and answer,
 I'd like to know what options are used to
 build the openssh-4.3p2-26.el5 package.

Fetching the SRPM and exploring in there
I can see the %configure section in the openssh.spec:

%configure \
--sysconfdir=%{_sysconfdir}/ssh \
--libexecdir=%{_libexecdir}/openssh \
--datadir=%{_datadir}/openssh \
--with-tcp-wrappers \
--with-rsh=%{_bindir}/rsh \
--with-default-path=/usr/local/bin:/bin:/usr/bin \
--with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
\
--with-privsep-path=%{_var}/empty/sshd \
--enable-vendor-patchlevel="FC-%{version}-%{release}" \
--disable-strip \
--without-zlib-version-check \
%if %{nss}
--with-nss \
%endif
%if %{scard}
--with-smartcard \
%endif
%if %{rescue}
--without-pam \
%else
--with-pam \
%endif
%if %{WITH_SELINUX}
--with-selinux \
%endif
%if %{WITH_AUDIT}
--with-linux-audit \
%endif
%if %{kerberos5}
--with-kerberos5${krb5_prefix:+=${krb5_prefix}}
%else
--without-kerberos5
%endif

But many of these %if's leave me wondering what was actually used.
Is there a way to query the resultant binary files for their options?

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


Re: [CentOS] openldap package compilation flags?

2008-08-07 Thread Johnny Hughes

Bob Beers wrote:

On Wed, Jul 16, 2008 at 6:30 PM, Johnny Hughes <[EMAIL PROTECTED]> wrote:

tblader wrote:

Hello All.
How do I find out what flags were used to compile
the Centos openldap-2.3.27-8.el5_2.4 rpm package?
I'm specifically wondering if it was compiled with
--enable-lmpasswd

Thanks!


If you download the SRPM and install it, then you can look at the spec file.

Server is built like this:

   --enable-plugins \
   --enable-slapd \
   --enable-slurpd \
   --enable-multimaster \
   --enable-bdb \
   --enable-hdb \
   --enable-ldap \
   --enable-ldbm \
   --with-ldbm-api=%{ldbm_backend} \
   --enable-meta \
   --enable-monitor \
   --enable-null \
   --enable-shell \
   --enable-sql=mod \
   --disable-perl \
   --disable-shared \
   --disable-dynamic \
   --enable-static \
   --with-kerberos=k5only

Client like this:

  --disable-slapd \
   --disable-slurpd \
   --enable-shared \
   --enable-dynamic \
   --enable-static \
   --without-kerberos \
   --with-pic



Slightly OT, but related to this question and answer,
 I'd like to know what options are used to
 build the openssh-4.3p2-26.el5 package.

Fetching the SRPM and exploring in there
I can see the %configure section in the openssh.spec:

%configure \
--sysconfdir=%{_sysconfdir}/ssh \
--libexecdir=%{_libexecdir}/openssh \
--datadir=%{_datadir}/openssh \
--with-tcp-wrappers \
--with-rsh=%{_bindir}/rsh \
--with-default-path=/usr/local/bin:/bin:/usr/bin \
--with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
\
--with-privsep-path=%{_var}/empty/sshd \
--enable-vendor-patchlevel="FC-%{version}-%{release}" \
--disable-strip \
--without-zlib-version-check \
%if %{nss}
--with-nss \
%endif
%if %{scard}
--with-smartcard \
%endif
%if %{rescue}
--without-pam \
%else
--with-pam \
%endif
%if %{WITH_SELINUX}
--with-selinux \
%endif
%if %{WITH_AUDIT}
--with-linux-audit \
%endif
%if %{kerberos5}
--with-kerberos5${krb5_prefix:+=${krb5_prefix}}
%else
--without-kerberos5
%endif

But many of these %if's leave me wondering what was actually used.
Is there a way to query the resultant binary files for their options?



Not by looking at the RPM .. but you can look in the build log (if you 
have one).  Here is the line for i386 for openssh-4.3p2-26.el5:


./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu 
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr 
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 
--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include 
--libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var 
--sharedstatedir=/usr/com --mandir=/usr/share/man 
--infodir=/usr/share/info --sysconfdir=/etc/ssh 
--libexecdir=/usr/libexec/openssh --datadir=/usr/share/openssh 
--with-tcp-wrappers --with-rsh=/usr/bin/rsh 
--with-default-path=/usr/local/bin:/bin:/usr/bin 
--with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 
--with-privsep-path=/var/empty/sshd 
--enable-vendor-patchlevel=FC-4.3p2-26.el5 --disable-strip 
--without-zlib-version-check --with-nss --with-pam --with-selinux 
--with-linux-audit --with-kerberos5




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


Re: [CentOS] openldap package compilation flags?

2008-08-07 Thread Bob Beers
On Thu, Aug 7, 2008 at 4:20 PM, Johnny Hughes <[EMAIL PROTECTED]> wrote:
> Bob Beers wrote:
>> Slightly OT, but related to this question and answer,
>>  I'd like to know what options are used to
>>  build the openssh-4.3p2-26.el5 package.
>>
>> Fetching the SRPM and exploring in there
>> I can see the %configure section in the openssh.spec:
>>
>> %configure \
>> --sysconfdir=%{_sysconfdir}/ssh \
>> --libexecdir=%{_libexecdir}/openssh \
>> --datadir=%{_datadir}/openssh \
>> --with-tcp-wrappers \
>> --with-rsh=%{_bindir}/rsh \
>> --with-default-path=/usr/local/bin:/bin:/usr/bin \
>>
>> --with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
>> \
>> --with-privsep-path=%{_var}/empty/sshd \
>> --enable-vendor-patchlevel="FC-%{version}-%{release}" \
>> --disable-strip \
>> --without-zlib-version-check \
>> %if %{nss}
>> --with-nss \
>> %endif
>> %if %{scard}
>> --with-smartcard \
>> %endif
>> %if %{rescue}
>> --without-pam \
>> %else
>> --with-pam \
>> %endif
>> %if %{WITH_SELINUX}
>> --with-selinux \
>> %endif
>> %if %{WITH_AUDIT}
>> --with-linux-audit \
>> %endif
>> %if %{kerberos5}
>> --with-kerberos5${krb5_prefix:+=${krb5_prefix}}
>> %else
>> --without-kerberos5
>> %endif
>>
>> But many of these %if's leave me wondering what was actually used.
>> Is there a way to query the resultant binary files for their options?
>>
>
> Not by looking at the RPM .. but you can look in the build log (if you have
> one).  Here is the line for i386 for openssh-4.3p2-26.el5:
>
> ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu
> --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr
> --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
> --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib
> --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
> --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/etc/ssh
> --libexecdir=/usr/libexec/openssh --datadir=/usr/share/openssh
> --with-tcp-wrappers --with-rsh=/usr/bin/rsh
> --with-default-path=/usr/local/bin:/bin:/usr/bin
> --with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> --with-privsep-path=/var/empty/sshd
> --enable-vendor-patchlevel=FC-4.3p2-26.el5 --disable-strip
> --without-zlib-version-check --with-nss --with-pam --with-selinux
> --with-linux-audit --with-kerberos5
>

ok, very nice!

And could I get such build log by rebuilding the rpm from the SRPM?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 5.2 -- how do I choose a wireless network?

2008-08-07 Thread Aleksey Tsalolikhin
Hi.  Thanks again for all your replies.

The CentOS 5.2 Live CD does include NetworkManager.

However the only choice in the Network Manager applet is "Wired Network".

I then tried Ubuntu Live CD.   Using it's network manager, I was able
to browse the several local wireless networks, and to successfully
connect.

This is on an IBM T42 laptop.

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


Re: [CentOS] CentOS 5.2 -- how do I choose a wireless network?

2008-08-07 Thread Aleksey Tsalolikhin
Any suggestions on how to make this work under CentOS?   I'd prefer to
have CentOS on my laptop, to keep it the same OS as our servers.I
don't want to learn two flavors of Linux...

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


Re: [CentOS] openldap package compilation flags?

2008-08-07 Thread Johnny Hughes

Bob Beers wrote:

On Thu, Aug 7, 2008 at 4:20 PM, Johnny Hughes <[EMAIL PROTECTED]> wrote:

Bob Beers wrote:

Slightly OT, but related to this question and answer,
 I'd like to know what options are used to
 build the openssh-4.3p2-26.el5 package.

Fetching the SRPM and exploring in there
I can see the %configure section in the openssh.spec:

%configure \
--sysconfdir=%{_sysconfdir}/ssh \
--libexecdir=%{_libexecdir}/openssh \
--datadir=%{_datadir}/openssh \
--with-tcp-wrappers \
--with-rsh=%{_bindir}/rsh \
--with-default-path=/usr/local/bin:/bin:/usr/bin \

--with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
\
--with-privsep-path=%{_var}/empty/sshd \
--enable-vendor-patchlevel="FC-%{version}-%{release}" \
--disable-strip \
--without-zlib-version-check \
%if %{nss}
--with-nss \
%endif
%if %{scard}
--with-smartcard \
%endif
%if %{rescue}
--without-pam \
%else
--with-pam \
%endif
%if %{WITH_SELINUX}
--with-selinux \
%endif
%if %{WITH_AUDIT}
--with-linux-audit \
%endif
%if %{kerberos5}
--with-kerberos5${krb5_prefix:+=${krb5_prefix}}
%else
--without-kerberos5
%endif

But many of these %if's leave me wondering what was actually used.
Is there a way to query the resultant binary files for their options?


Not by looking at the RPM .. but you can look in the build log (if you have
one).  Here is the line for i386 for openssh-4.3p2-26.el5:

./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/etc/ssh
--libexecdir=/usr/libexec/openssh --datadir=/usr/share/openssh
--with-tcp-wrappers --with-rsh=/usr/bin/rsh
--with-default-path=/usr/local/bin:/bin:/usr/bin
--with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
--with-privsep-path=/var/empty/sshd
--enable-vendor-patchlevel=FC-4.3p2-26.el5 --disable-strip
--without-zlib-version-check --with-nss --with-pam --with-selinux
--with-linux-audit --with-kerberos5



ok, very nice!

And could I get such build log by rebuilding the rpm from the SRPM?
___



Yes, you will have to redirect standard out, like this:

rpmbuild --rebuild  > build.log 2>&1




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


[CentOS] CentOS 5.2 - Nautilus - file types are not associated with an action and icons are not displayed

2008-08-07 Thread Vaclav Mocek

Hi all,

I use CentOS 5.2 as a desktop and the Gnome Nautilus doesn't display 
icons related to the file types and all associated actions ("open with") 
are lost. It is so bad, that the desktop shortcuts are displayed as 
ordinary files "Filesystem.desktop" or 
"openoffice.org-1.9-calc.desktop", and when I click on them, the 
Nautilus wants to know what it should do with these files.


The problem emerged after I installed the  new kernel 
(2.6.18-92.1.10.el5) and  uninstalled packages "joystick", "slrn" and 
"planner".  All user accounts have the same problem, when I run the 
Nautilus as root (sudo nautilus), it works fine => probably some access 
restrictions.


I run the Nautilus with strace, but the output is too messy to provide 
some sensible information. Any hint what to do is welcomed.


Best  Regards

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


Re: [CentOS] CentOS 5.2 - Nautilus - file types are not associated with an action and icons are not displayed

2008-08-07 Thread MHR
On Thu, Aug 7, 2008 at 3:51 PM, Vaclav Mocek <[EMAIL PROTECTED]> wrote:
>
> I use CentOS 5.2 as a desktop and the Gnome Nautilus doesn't display icons
> related to the file types and all associated actions ("open with") are lost.
> It is so bad, that the desktop shortcuts are displayed as ordinary files
> "Filesystem.desktop" or "openoffice.org-1.9-calc.desktop", and when I click
> on them, the Nautilus wants to know what it should do with these files.
>
> The problem emerged after I installed the  new kernel (2.6.18-92.1.10.el5)
> and  uninstalled packages "joystick", "slrn" and "planner".  All user
> accounts have the same problem, when I run the Nautilus as root (sudo
> nautilus), it works fine => probably some access restrictions.
>
> I run the Nautilus with strace, but the output is too messy to provide some
> sensible information. Any hint what to do is welcomed.
>

Check the permissions on all files and directories in anything under
/usr that has "gnome" in it.  Chances are something is screwed up
there.

Also, double check your root's umask - it should be 2 (and NOT 22 or
27 or 77) while you're installing.

I ran into something like this a while back when I changed the root
umask to something other than 2, and it really screwed up all my
settings until I changed the permissions and umask back.

HTH

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


Re: [CentOS] Yum

2008-08-07 Thread Brett Davidson

David Dyer-Bennet wrote:

On Wed, August 6, 2008 13:40, Lanny Marcus wrote:

  

Hosts normally advertise a VPS as being almost like a Dedicated
Server. Lots of resources and lots of options. In this case,
without being able to use yum, it starts as a Security problem,
because he cannot update the packages that are
installed. His second problem is that he cannot install new software
with yum, which eliminates a lot of options. Unlike Shared Hosting,
which is Managed, someone with a VPS must Manage their VPS, as if it
was a Dedicated Server, or, pay someone to do that. But, how
would they manage it, without yum? It's much more difficult, without
yum. IMHO, he should look for a VPS with another provider, that allows
him to use yum, etc.



FTP?  Rpm?  Ftp up a suitable yum rpm and install it.

(Maybe it's really part of an active attempt to keep people from
installing software, but on a virtual private server that'd be amazingly
stupid; so I'm guessing, from a great distance and very little
information, that it's something simpler like just not having installed
yum.)
  

Almost certainly.
Depends on the VPS software as to whether yum is included in the base 
packages for each VPS or if you have to add it on as part of a 
"developer" set or such like.
VPS's are often used in an Enterprise setting to ease system 
administration and as such, these are often pared down feature-wise. 
Makes sense in some software-manufacturer's points of view to keep the 
base product lite and add on what you need. Others install the full shebang.
If the provider is not fully savvy about the product they are pushing, 
then they could easily miss things like this.


--
Regards,

Brett Davidson
Systems Engineer
RHCE, CCNA, MCSE, SCSA, NZCE, TC(Electronics)

--
Net24 Limited
Phone: 0800 5000 24 | DDI: +64 3 962 9518 | Web: www.net24.co.nz
--

// web hosting / email hosting / data backup / VPS

This transmission is for the intended addressee only and is confidential
information. If you have received this transmission in error, please
delete it and notify the sender.

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


Re: [CentOS] CentOS 5.2 - Nautilus - file types are not associated with an action and icons are not displayed

2008-08-07 Thread Vaclav Mocek

MHR wrote:

On Thu, Aug 7, 2008 at 3:51 PM, Vaclav Mocek <[EMAIL PROTECTED]> wrote:
  

I use CentOS 5.2 as a desktop and the Gnome Nautilus doesn't display icons
related to the file types and all associated actions ("open with") are lost.
It is so bad, that the desktop shortcuts are displayed as ordinary files
"Filesystem.desktop" or "openoffice.org-1.9-calc.desktop", and when I click
on them, the Nautilus wants to know what it should do with these files.

The problem emerged after I installed the  new kernel (2.6.18-92.1.10.el5)
and  uninstalled packages "joystick", "slrn" and "planner".  All user
accounts have the same problem, when I run the Nautilus as root (sudo
nautilus), it works fine => probably some access restrictions.

I run the Nautilus with strace, but the output is too messy to provide some
sensible information. Any hint what to do is welcomed.




Check the permissions on all files and directories in anything under
/usr that has "gnome" in it.  Chances are something is screwed up
there.

Also, double check your root's umask - it should be 2 (and NOT 22 or
27 or 77) while you're installing.

I ran into something like this a while back when I changed the root
umask to something other than 2, and it really screwed up all my
settings until I changed the permissions and umask back.

HTH

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

  

Hi,

thanks a lot, the problem was solved - there is necessary to reinstall 
the package shared-mime-info


rpm -ivh --force shared-mime-info-0.19-5.el5.i386.rpm

and after that it works fine again. It was a problem of Fedora Core 6 - 
the time from the time it was broken after an update and it seems that 
CentOS has the same problem as well. Before I sent my mail, I checked 
the integrity of the package shared-mime-info and time stamps of its 
files, and everything was OK. I still don't know the real reason, 
however it works.


Best Regards

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


Re: [CentOS] CentOS 5.2 -- how do I choose a wireless network?

2008-08-07 Thread Mark Pryor



--- On Thu, 8/7/08, Aleksey Tsalolikhin <[EMAIL PROTECTED]> wrote:

> From: Aleksey Tsalolikhin <[EMAIL PROTECTED]>
> Subject: Re: [CentOS] CentOS 5.2 -- how do I choose a wireless network?
> To: "CentOS mailing list" 
> Date: Thursday, August 7, 2008, 2:24 PM
> Hi.  Thanks again for all your replies.
> 
> The CentOS 5.2 Live CD does include NetworkManager.
> 
> However the only choice in the Network Manager applet is
> "Wired Network".
> 

Using C5.1 and KDE, I use the kNetworkManager built from fc6.

#chkconfig NetworkManager on
#chkconfig NetworkManagerDispatcher on

#/etc/init.d/NetworkManager start
(ditto for dispatch)

Anything that shows from
#iwlist scan

also shows in the knetworkmanager AP list.

-- 
Mark




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


[CentOS] ext2online / ext2resize

2008-08-07 Thread Al Sparks
I'm running CentOS 5.2 x x86_64.

I did an lvextend of a logical volume, and proceeded to run one of the
ext2 utilities (e.g. ext2online, ext2resize) and found to my surprise
that it wasn't on there.

So I started googling around, and as far as I can see, though I'm not
sure, they're supposed to be a part of the e2fsprogs package.

Well, it's installed on the system, at least the x86_64 version is.

Should I be downloading the i386 version of that package?  If I do,
will I be stomping on the x86_64 tools?

Is there another package I should be looking at?

BTW, I tried loading the source, and compiling, ./configure and make
fails.
  === Al

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


Re: [CentOS] ext2online / ext2resize

2008-08-07 Thread Ignacio Vazquez-Abrams
On Thu, 2008-08-07 at 18:32 -0700, Al Sparks wrote:
> I'm running CentOS 5.2 x x86_64.
> 
> I did an lvextend of a logical volume, and proceeded to run one of the
> ext2 utilities (e.g. ext2online, ext2resize) and found to my surprise
> that it wasn't on there.

Did you mean resize2fs?

-- 
Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>

PLEASE don't CC me; I'm already subscribed


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


Re: [CentOS] CentOS 5.2 -- how do I choose a wireless network?

2008-08-07 Thread D Steward
> Any suggestions on how to make this work under CentOS?   
What errors are you getting in the log files?
What is your wireless card/chipset?

> I'd prefer to
> have CentOS on my laptop, to keep it the same OS as our servers.I
> don't want to learn two flavors of Linux...
fedora is very close to CentOS. Some of the directory structures and
configuration are only slightly different.
Most of my scripts created on fedora work without needing changes on
Centos 5.2
If your laptop is Centrino-based or uses an Intel chipset, fedora will
connect you to a WPA network out-of-the-box just like Ubuntu did.

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


Re: [CentOS] Mount a Xen disk image file

2008-08-07 Thread Dirk H. Schulz

Hi Kai,

--On 7. August 2008 20:31:22 +0200 Kai Schaetzl <[EMAIL PROTECTED]> 
wrote:



Dirk H. Schulz wrote on Thu, 07 Aug 2008 16:46:47 +0200:


Do you have any other idea?


Do you want to regularly access it that way or do you just need to access
the files onetime?
I do not like this xvda stuff at all. So I created a basic setup with
virt-install


You are talking about a basic vm installation to a partition instead of an 
image file?



and copied all content off (I don't know what I used, I
assume cp or rsync or so). I used these files for a new VM based on ext3
formatted disks (you can either use files or LV). Can be done within 15
minutes or so. I tweaked that a bit to my liking and now use it as a
template for new VMs. As the disks are ext3 I can now easily access the
drives by mounting that LV.


I should have done that. I always did it when I compiled xen on my own 
using Debian. Now I tried to use the easy way the RedHat tools suggest, but 
more and more I come to regret it. If they work at all you one way or the 
other do not like the outcome.


Dirk

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


[CentOS] MRTG Problem - no traffic recorded

2008-08-07 Thread Morten Nilsen

Hi all,

I've just recently replaced my old firewall with a new one, running 
CentOS 5..


Yesterday, I decided to get MRTG up and running again, so I entered 
sections like this into the mrtg.conf file:


Title[vlan10]: Bandwidth usage on tenchi.4th-age.com (Internet)
PageTop[vlan10]: Traffic stats on VLAN 10 (Internet)
Target[vlan10]: `ifconfig vlan10 |
   /usr/bin/awk '/bytes/{ gsub(/:/, " "); print $3 "\n" $8}'`
MaxBytes[vlan10]: 1250
Options[vlan10]: noinfo, growright, bits
WithPeak[vlan10]: wmy

The Target is all on one line in the file.

This config worked fine on my old firewall, but on the new, I get this 
in the log files:


[EMAIL PROTECTED] mrtg]# head /var/lib/mrtg/vlan10.log
1218175802 -1 -1
1218175802 3 3 3 3
1218175501 3 3 3 3
1218175500 3 3 3 3

When testing, I ran the mrtg command, precisely as it is written in 
/etc/cron.d/mrtg, and that placed real values where now it says -1, but 
as soon as the cron job ran, the values became -1 again.


I hope someone can shed some light on this problem..

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


[CentOS] rebuilding the kernel.

2008-08-07 Thread Yahia Tachwali

Hello folks,

I am trying to add HDLC module support in the menuconfig. However, I am 
facing difficulties in rebuilding the kernel and modules. My main 
objective is to get the HDLC supported in kernel 2.6.9. I have a CentOS 
4.4 with kernel 2.6.9.42. I need help in finding the best way to add the 
HDLC support whether through getting an RPM package for it or refering 
me to the right procedure in rebuilding the kernel.


Thank you very much in advance for your help.

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