Re: [CentOS] Unable to remove interface (5.4)

2010-03-16 Thread Mr. X
Jason,

--- On Tue, 3/16/10, Jason Gates  wrote:

> From: Jason Gates 
> Subject: [CentOS] Unable to remove interface (5.4)
> To: centos@centos.org
> Date: Tuesday, March 16, 2010, 1:23 PM
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> So here is my problem: I'm unable to remove an interface on
> CentOS 5.4
> (/etc/init.d/network restart keeps enabling it again)
> 

the eth0.9 might be presisted via udev rules
sudo cat /etc/udev/rules.d/60-net.rules

if you don't see it in there, then do this
>sudo grep -i eth0 /etc/rules.d/*.rules

if a line comes up, you can delete it.

-- 
Mark


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


Re: [CentOS] Install Help

2010-03-03 Thread Mr. X
> On Wed, March 3, 2010 4:17 pm, Slack-Moehrle wrote:
> > Hi All,
> >
> > I have a new system that is dual AMD's. I have a
> CentOS 5.4 x64 dvd.
> >
> > I power on the machine
> > It boots to the CentOS media I had in the dvd drive
> > I start the install
> > it comes up and asks me where I have CentOS, I select
> 'Local CD' and I get
> > that a message saying CentOS install files cannot be
> found. Strange
> > because it boots to it!
> >
> > What could be the issue?

to double check that the DVD is still OK:
get the mount point from device mapper
>md5sum /media/hdc

and compare result with the value posted on any C5 mirror for your media.

If you still have the iso, setup a network install (requires another machine) 
by mounting the iso and exporting it as nfs. IIRC, the C5 installer won't 
support harddrive installs from media found locally.

On another box:
#mkdir /mnt/repo
#mount -t iso9660 /Path-to/CentOS-5.4-x86_64-bin-DVD.iso /mnt/repo -o loop
#echo "/mnt/repo/ *(sync)" >> /etc/exports
#/etc/init.d/nfs restart

now back at your new dual-AMD setup,
grab the diskboot.img from the /images folder of the DVD/iso.

either dd that IMG file to a USB flash, or boot it with syslinux/memdisk
from a fat32 partition already existing on your new system (not likely), or 
burn the boot.iso to a CD (also found in images).

Using a network install is much faster than via DVD. 

-- 
Mark


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


Re: [CentOS] Trying to rebuild srpm from fedora....

2010-01-31 Thread Mr. X
Tom,

--- On Sun, 1/31/10, Tom Bishop  wrote:

> From: Tom Bishop 
> Subject: [CentOS] Trying to rebuild srpm from fedora
> To: "CentOS mailing list" 
> Date: Sunday, January 31, 2010, 8:11 PM
> So I am trying to rebuild this source rpm
> from fedora 10, shutter-0.85.1-1.fc10.src.rpm -its a screen
> capture application ( http://shutter-project.org/
> )  that I have been unable to find in any repos, although
> it is in the fedora repos. Thought I would give it a go and
> try to rebuild the rpm, so here is the error that I am
> getting:
> 
> 
> + desktop-file-install --delete-original

Below is an example of what firefox has for this line in the SPEC

$ grep -i vendor ./redhat/SPECS/*.spec
./redhat/SPECS/firefox.spec:desktop-file-install --vendor mozilla \

so ..
if not done already, you need to rpm -i the SRC.rpm and edit the spec.

-- 
Mark


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


[CentOS] bind a web root sub-folder to /usr/share/xxyy

2010-01-28 Thread Mr. X
This is OT, but what is the RH/Centos best practice for this scenario.

I have a web root under control of user webmaster.
In /etc/fstab
--- snip --
/var/www/dev  /home/webmaster/www_devnonebind00
- unsnip --

ls -al /var/www/dev/
drwxr-xr-x 10 webmaster webmaster 4096 Jan 28 14:21 dev

what I'd like to do is bind /usr/share/xxyy to /var/www/dev/xxyy under
control ~webmaster. Is it as simple as

/usr/share/xxyy   /var/www/dev/xxyy  nonebind00

do I have chown webmaster:webmaster /usr/share/xxyy ?

-- 
Mark




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


Re: [CentOS] kvm and virto on Centos 5.4

2010-01-05 Thread Mr. X


--- On Tue, 1/5/10, Christopher Chan  wrote:

> From: Christopher Chan 
> Subject: Re: [CentOS] kvm and virto on Centos 5.4
> To: centos@centos.org
> Date: Tuesday, January 5, 2010, 10:03 PM
> Hello Steve,
> 
> S.Tindall wrote:
> > On Wed, 2010-01-06 at 10:48 +0800, Christopher Chan
> wrote:
> >> I have not tried kvm on Centos 5.4 yet...does
> anyone know if it has 
> >> support for virtio?
> > 
> > Yes, it does.
> > 
> 
> Thanks for the confirmation. Now I can feel free to stick a
> Windows 2008 
> server on a Centos 5.4 box.
> 

Ideally you want bridged networking for KVM, especially with a guest
like Win2k8.

KVM by itself will not install a supporting br0 device. However Xen will. 
Unless you want to spend anywhere from 20min-2hours cooking up a DIY br0 
install, install Xen no matter if you never intend to use it.

KVM is meant to be used with Virt-manager although you can run qemu-kvm in its 
own console.

Your success with KVM has a lot to do with your hardware. Intel (vmx) far and 
away has more bugs than AMD (svx) for some new guests like Win7 and Win2k8. 
Google around for kvm or Xen crashes (in Win2k8) for your intended CPU if it is 
an Intel vmx type. 

KVM is faster than qemu with kqemu-kernel and I've only come across one bug : 
the -usbdevice feature will not work in KVM but it works with qemu/kqemu.

-- 
Mark


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


[CentOS] OT: piped greps with regex

2010-01-04 Thread Mr. X
List,

Happy NY.

>From the bash command below, I'm trying to parse out the startsector value:
$ sudo file mini_vusb.img
mini_vusb.img: x86 boot sector, Microsoft Windows XP MBR, Serial 0x25d84; 
partition 1: ID=0xe, active, starthead 1, startsector 32, 390496 sectors

First try was with grep/egrep but I wanted to capture 'startsector 32' as a 
group (). Nothing came close to working. Fail 1

Next attempt was with Perl
file mini_vusb | perl -lane '$i=0 ;for (@F) {print substr($F[$i+1],0,-1) if ($_ 
eq "startsector"); $i++}'

the above works, but it's too much fire power for the job :)
Actually I came up with it in a minute or two once I remembered the special var 
@F. Success 1

Last effort led to this
$ sudo file mini_vusb.img | grep -Po 'startsector\s+\d+'| grep -Po '\d+'
32

I like this best. Is there a way to shorten it up?

-- 
Mark



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


Re: [CentOS] Setting CDROM parms

2010-01-02 Thread Mr. X


--- On Sat, 1/2/10, Robert  wrote:

> From: Robert 
> Subject: [CentOS] Setting CDROM parms
> To: "CentOS mailing list" 
> Date: Saturday, January 2, 2010, 6:23 PM
> My apologies in advance for asking
> such an elementary question.  I 
> called myself searching the Installation Guide and
> Deployment Guide, 
> with no success.
> The situation is that I bought a Lite-On ATAPI iHAP122 that
> will not 
> burn DVDs unless I use hdparm to turn dma off. I bought
> that drive 
> because it was a rare beige drive.  Until I can find a
> decent DVD burner 
> and/or get a Windows machine put together strictly for
> doing BIOS 
> updates, running with dma disabled seems to be the best
> solution. 
> (hdparm -d0 /dev/hdb )
> So, my question is, where should I script the command
> without having to 
> become root each time I wat to burn a DVD?
> 

Robert,

The -k flag to hdparm allows you to persist your settings across a reset.
Did you try to elevate the dma to the highest supported by the device?
- info 
sudo hdparm -I /dev/cdrom

/dev/cdrom:

ATAPI CD-ROM, with removable media
Model Number:   Slimtype DVDRW SOSW-852S
Serial Number:
Firmware Revision:  PSU2
Standards:
Supported: CD-ROM ATAPI-2
Configuration:
DRQ response: 50us.
Packet size: 12 bytes
Capabilities:
LBA, IORDY(cannot be disabled)
DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2
 Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
 Cycle time: no flow control=227ns  IORDY flow control=120ns
--- end snip --

On Centos, you can run k3b to handle burning easily. The only caveat is
sometimes on KDE installs you will have the hdc unavailable for exclusive 
access. You can fix that by 
$sudo killall kio_audiocd

see http://bugs.kde.org/135669

One more thing. If you want to demo the Knoppix 6, save burning the DVD and 
boot the ISO directly with qemu-kvm or qemu with kqemu.

>sudo qemu -kernel-kqemu -cdrom KNOPPIX_V6.0.1CD-2009-02-08-EN.iso -m 384 -usb 
>-boot d -net nic,model=rtl8139 -net user &

put the above on one line. You need 2 packages to run qemu in this fast mode. 

$ rpm -qa | grep qemu
dkms-kqemu-1.4.0-0.1.pre1.nodist.rf
qemu-0.10.5-1.el5.rf

-- 
Mark




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


[CentOS] acpi for Intel p45 chipset (C2Duo)

2009-12-17 Thread Mr. X
Hello,

First time I install Centos (5.4) on a consumer Intel Motherboard. I've done 5+ 
AMD (am2 form factor) installs.

The MB is Gigabyte ep45-ud3r with a CPU:Intel LGA 775 E7600 wolfdale

I cracked the lm_sensors nut with 2 modules and lm_sensors from elrepo. The 
modules were
   kmod-coretemp
   kmod-it87

Now I'm trying to get cpuspeed to behave, or at least understand what it's 
doing. Here's my bios objects
 snip dmesg-
$sudo dmesg | grep state
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [CPU0] (supports 8 throttling states)
ACPI: CPU1 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [CPU1] (supports 8 throttling states)
-- unsnip --

In the advanced bios menu I enabled all the switches for CPU state management. 
If not enabled there is no acpi.

My CPU is OC'ed to 3.74 Ghz
The Intel state management hands it off to the kernel with max frequency of 
2.8Ghz but bogoMips is unchanged and reflects OC'ed value. There are supposed 
to be 8 throttling states, but acpi-cpufreq (driver) only uses 3 states (1.6 
Ghz - 2.8 Ghz).

Has anyone found another driver to work better? I tried
  speedstep-centrino

but it refuses to load. There is also p4-clockmod too, but I had doubts about 
it. Is this the best I can do?

So far benchmarks are very good and the acpi power management does not hurt 
them. 

-- 
Mark


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


Re: [CentOS] libvirt 0.7.4 for Centos 5.4

2009-12-15 Thread Mr. X
Albert,

--- On Tue, 12/15/09, Albert  wrote:

> From: Albert 
> Subject: [CentOS] libvirt 0.7.4 for Centos 5.4
> To: centos@centos.org
> Date: Tuesday, December 15, 2009, 1:33 PM
> Hi,
> 
> It's exist any repo where I find a newer libvirt-0.7.4 for
> Centos 
> 5.4_x86_64?
> 
> f...@ll

It is from FC13.
 history ---
wget 
ftp://ftp.pbone.net/mirror/download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/libvirt-0.7.4-1.fc13.src.rpm
history | grep rpmbuild
rpmbuild --rebuild --sign --define 'dist .el5' libvirt-0.7.4-1.fc13.src.rpm
man rpmbuild
// fc13 now uses sha256 sigs, so do a workaround
sudo rpm -i --nomd5 libvirt-0.7.4-1.fc13.src.rpm
ls -l ./redhat/SPECS/
rpmbuild -ba ./redhat/SPECS/libvirt.spec
history | tail
// bad news
error: Failed build dependencies:
xen-devel is needed by libvirt-0.7.4-1.x86_64
xmlrpc-c-devel >= 1.14.0 is needed by libvirt-0.7.4-1.x86_64
xhtml1-dtds is needed by libvirt-0.7.4-1.x86_64
gnutls-devel is needed by libvirt-0.7.4-1.x86_64
cyrus-sasl-devel is needed by libvirt-0.7.4-1.x86_64
parted-devel is needed by libvirt-0.7.4-1.x86_64
device-mapper-devel is needed by libvirt-0.7.4-1.x86_64
libssh2-devel is needed by libvirt-0.7.4-1.x86_64
 end snip ---

AFAIK, you don't want to go here and try this any further since you
need the device-mapper-devel from FC13.

Maybe someone else will show how to get around that!

-- 
Mark

my Phronix Test Suite Page for C5.4
http://www.tlviewer.org/pts/


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


[CentOS] using an alternate audio driver in C5.4

2009-12-06 Thread Mr. X
Hello,

C5.4 on
Abit kn9 ultra with MCP55 chipset, 
model name  : AMD Athlon(tm) 64 X2 Dual Core Processor 4600+

#lspci
00:06.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)

sudo lsmod | grep hda
snd_hda_intel 584593  1
snd_pcm   116681  2 snd_hda_intel,snd_pcm_oss
snd_page_alloc 44113  2 snd_hda_intel,snd_pcm
snd_hwdep  43593  1 snd_hda_intel
snd   100073  11 
snd_hda_intel,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer

Is there a way to use the ac97 drivers instead of the hda_intel?
I want to explore this cause Qemu has an ac97 driver. If I can make my audio 
compatible with the Qemu sound, then I can use guest and local audio at the 
same time!

-- 
Mark


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


Re: [CentOS] pan news reader

2009-11-13 Thread Mr. X


--- On Fri, 11/13/09, MIKE - EMAIL IGNORED  wrote:

> From: MIKE - EMAIL IGNORED 
> Subject: [CentOS] pan news reader
> To: centos@centos.org
> Date: Friday, November 13, 2009, 7:38 PM
> Does anyone know if the pan news
> reader works
> on CentOS 5.4?  I am considering installing
> version 0.132 that I downloaded from
> pan.rebelbase.com .
> 
> Thanks for your advice.

Pan is very strong with binary news. 
  Choose your NZB file from a site like www.binsearch.info

then call Pan from a prompt 
   $pan -nzb file.nzb -o ./

it opens a window dedicated to this download with all the parts
listed in the NZB. You can eliminate some of the PAR2 parity files if you want.

Once all the desired PAR and rar parts are down, then do a parity check
   $par2 v filename.par2

I've got PAR2 here   
http://www.tlviewer.org/centos/5/i386/repodata/repoview/par2-0-0.4-5.9.html

Now extract
   $unrar x filename..part01.rar

UNRAR is in rpmforge

-- 
Mark


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


Re: [CentOS] mock, extras vs epel

2009-11-02 Thread Mr. X


--- On Mon, 11/2/09, Todd Denniston  
wrote:

> From: Todd Denniston 
> Subject: [CentOS] mock, extras vs epel
> To: "CentOS mailing list" 
> Date: Monday, November 2, 2009, 4:09 PM
> I am looking to be a bit more
> standard in the builds of my CentOS rpms, and so I was about
> to 
> install mock but noticed that there is one provided in the
> centos/5/extras and another in epel.
> 
> epel is obviously newer, but are there reasons/experiences
> in this group that would suggest sticking 
> with the extras version instead? Or even reasons other than
> the shiny version number on the epel one 
> to go with it?

I'm a rank and file package builder too. Of course, Mock is not part of Centos 
base and you can't damage your install by using it, since it runs in a chroot.

Use the latest version (which might be epel) and get the hang of it - you may 
not like using it.

If you want to do broad searches about mock in C5, try the centos-dev group 
from the lists.centos.org page or #centos-dev on IRC.

-- 
Mark




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


Re: [CentOS] problem with a repo

2009-09-12 Thread Mr. X


--- On Fri, 9/11/09, Dave  wrote:

> From: Dave 
> Subject: [CentOS] problem with a repo
> To: "'CentOS mailing list'" 
> Date: Friday, September 11, 2009, 8:55 PM
> Hello,
> I've got rpmforge and epel on centos
> 5.3. I'm trying to do an
> install of perl-Image-Info for spamassassin image scanning.
> The package was
> picked up in rpmforge since first, but it is failing to
> install because a
> dependency is missing. 

if the missing depends is ExtUtils::MakeMaker or perl-ExtUtils-MakeMaker, then 
you have a problem. This perl module is provided by perl.rpm in C5.x and the 
RPM DB will generate errors if you try and update the module.

So take your medicine and don't force the install. One workaround is to install 
perl from source and run it somewhere other /usr/bin/.

-- 
Mark


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


Re: [CentOS] building CentOS rpms?

2009-08-14 Thread Mr. X
Dave,

--- On Fri, 8/14/09, Dave  wrote:

> From: Dave 
> Subject: [CentOS] building CentOS rpms?
> To: centos@centos.org
> Date: Friday, August 14, 2009, 5:31 PM
> Hello,
> I'd like to get in to rpm building and
> am looking for a CentOS
> specific document if any to get me going? I want to
> repackage an existing
> rpm and give it different runtime options so it'll work on
> a server, and
> make an rpm at least one probably more, and then submit
> them to the rpmforge
> repo.

The rpmforge repo is independent (but much loved) from Centos. It has its own 
rules and mailing lists.
http://lists.rpmforge.net/

To get started you need a small toolset called rpmdevtools (found at Epel).
(usage):
To make a buildroot in your home folder,
rpmdev-setuptreeCreate RPM build tree within user's home directory

The bible for building rpm packages was written by Ed Bailey
http://www.rpm.org/max-rpm/

Fedora has stellar docs for rpm building, compatible with Centos
https://fedoraproject.org/wiki/Packaging/Guidelines

To modify an SRPM, you need to extract the source to your buildroot first. If 
you want to change default values in a config file, then rebuild the rpm, you 
can use rpmbuild.

-- 
Mark


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


Re: [CentOS] Flow-Tools RPM for CentOS 5.3

2009-08-07 Thread Mr. X


--- On Fri, 8/7/09, Camron W. Fox  wrote:

> From: Camron W. Fox 
> Subject: [CentOS] Flow-Tools RPM for CentOS 5.3
> To: "CentOS mailing list" 
> Date: Friday, August 7, 2009, 1:26 PM
> Alle,
> 
> Does anyone know if there is/where to
> get an rpm of flow-tools V0.66 or 
> better for CentOS/RHEL 5.3?
> We've been trying to build from the SRPM
> @ 
> http://cng.ateneo.net/cng/wyu/software/srpm/flow-tools-0.68-2.src.rpm
> 
> with no luck.
> 

Hello,

It's here in my repo
http://www.tlviewer.org/centos/5/x86_64/

but built on C5.2. I don't have a buildroot on C5.3, yet.

It has a depends on rrdtool and its perl and python hooks. The build passed a 
test install on both a C5.2 and C5.3.

To get the rrdtool packages, you need rpmforge.

-- 
Mark


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


Re: [CentOS] Cleaning up some problems

2009-07-26 Thread Mr. X



--- On Sun, 7/26/09, Sam Drinkard  wrote:

> From: Sam Drinkard 
> Subject: [CentOS] Cleaning up some problems
> To: CentOS@centos.org
> Date: Sunday, July 26, 2009, 6:16 PM
> Over the past year or so, I've
> collected several errors that some I have 
> found the solution for, others, like the one below are
> quite 
> befuddling.  I get this one every week when
> /etc/cron.weekly runs.  What 
> the heck is the "S" or what it is looking for?  Also,
> I've checked with 
> cpan, and according to cpan, it says it doesn't know what
> NET::DNS is, 

NET::DNS is a core perl module. You don't want to get any version from CPAN.

$locate DNS.pm
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Net/DNS.pm

-- 
Mark



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


Re: [CentOS] Problems with rpmforge repo?

2009-07-08 Thread Mr. X



--- On Wed, 7/8/09, Phil Savoie  wrote:

> From: Phil Savoie 
> Subject: [CentOS] Problems with rpmforge repo?
> To: "CentOS mailing list" 
> Date: Wednesday, July 8, 2009, 2:26 AM
> Hello,
> 
> Tried yum update all yesterday and today and seems there is
> a perl
> dependency missing.  Does anyone know if it is a
> problem or just a sync
> thing and that I should be more patient.  Error is
> below:
> 
> --> Processing Dependency: perl(Compress::Raw::Zlib)
> >= 2.020 for
> package: perl-IO-Compress
> --> Finished Dependency Resolution
> perl-IO-Compress-2.020-1.el5.rf.noarch from rpmforge has
> depsolving problems
>   --> Missing Dependency: perl(Compress::Raw::Zlib)
> >= 2.020 is needed
> by package perl-IO-Compress-2.020-1.el5.rf.noarch
> (rpmforge)

if you are running x86_64 then exclude the i386 package. Try uninstalling 
perl-IO-Compress.i386 first.

-- 
Mark


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