Re: [CentOS] Dual or quad fast ethernet NICs (that work with CentOS)

2011-01-01 Thread Louis Lagendijk
On Fri, 2010-12-31 at 16:32 -0600, Jeff Hefner wrote:
> I can vouch for the Sun Quad Fast Ethernet (PCI) cards. Quite a while
> back a few co-workers and I had split a small lot of them from eBay
> the broke down to roughly 8 or 9 bucks with shipping. Everyone had
> good luck with whatever they ended up being used for (mostly
> firewalls).
> 
> jeff
> 
Hm, I used one in the past, but had problems with Centos 5 C86_64:
https://bugzilla.kernel.org/show_bug.cgi?id=10790 which is still not
solved I believe (but see the BZ for a possible patch).
I don't use it anymore as I need less ethernot ports as I now have a
VLAN capable swith

Louis

> On Fri, Dec 31, 2010 at 4:00 PM, Lamar Owen  wrote:
> > On Tuesday, December 28, 2010 07:13:22 am robert mena wrote:
> >> I am looking for dual or quad fast ethernet NICs that work with CentOS.
> >>  There is no need for high performance so regular fast/pci is ok.
> >
> > I have in a firewall box here a quad fastethernet board; lspci shows:
> > 01:09.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 03)
> > 02:04.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 
> > (rev 41)
> > 02:05.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 
> > (rev 41)
> > 02:06.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 
> > (rev 41)
> > 02:07.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 
> > (rev 41)
> >
> > This uses the 'tulip' driver, very common, and good performance.
> >
> > I have another one, but this one uses the 21140 instead of the 21142.  
> > Still the tulip driver. Part number on it is 'COM-0040-50' or 
> > 123400-21-998, googling gives me that it's a Sun partit's 32-bit PCI.
> >
> > The older Sun Quad Fast Ethernet (PCI) should also work fine; uses sunhme 
> > driver, IIRC, which is in the vanilla C5 kernel (I just checked the latest 
> > updated kernel; should be in all of them).  The ones I found on eBay 
> > (starting at the high price of $9.99 free shipping) are 64-bit, but should 
> > work fine in a 32-bit slot, just slower.
> >
> > Also, I have in hand a couple of dual-port boards made by Intel; Pro/100+ 
> > Dual, part 711269-004; has two 82558B controllers and an Intel-sourced 
> > 21152 bridge (32-bit PCI).  I have one of these in a CentOS 3 box, and it 
> > works fine.
> > ___
> > CentOS mailing list
> > CentOS@centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> >
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos


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


Re: [CentOS] Dual or quad fast ethernet NICs (that work with CentOS)

2011-01-01 Thread Jeff Hefner
I know I didn't have the luxury of 2GB of ram at the time and would
have been on a 32-bit only CPU. Possibly my scant hardware might have
saved me a headache. Or maybe my memory is just getting worse as time
wears on. :) I also recall playing with it on OpenBSD and FreeBSD as
well.

jeff

On Sat, Jan 1, 2011 at 4:27 AM, Louis Lagendijk
 wrote:
> On Fri, 2010-12-31 at 16:32 -0600, Jeff Hefner wrote:
>> I can vouch for the Sun Quad Fast Ethernet (PCI) cards. Quite a while
>> back a few co-workers and I had split a small lot of them from eBay
>> the broke down to roughly 8 or 9 bucks with shipping. Everyone had
>> good luck with whatever they ended up being used for (mostly
>> firewalls).
>>
>> jeff
>>
> Hm, I used one in the past, but had problems with Centos 5 C86_64:
> https://bugzilla.kernel.org/show_bug.cgi?id=10790 which is still not
> solved I believe (but see the BZ for a possible patch).
> I don't use it anymore as I need less ethernot ports as I now have a
> VLAN capable swith
>
> Louis
>
>> On Fri, Dec 31, 2010 at 4:00 PM, Lamar Owen  wrote:
>> > On Tuesday, December 28, 2010 07:13:22 am robert mena wrote:
>> >> I am looking for dual or quad fast ethernet NICs that work with CentOS.
>> >>  There is no need for high performance so regular fast/pci is ok.
>> >
>> > I have in a firewall box here a quad fastethernet board; lspci shows:
>> > 01:09.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 03)
>> > 02:04.0 Ethernet controller: Digital Equipment Corporation DECchip 
>> > 21142/43 (rev 41)
>> > 02:05.0 Ethernet controller: Digital Equipment Corporation DECchip 
>> > 21142/43 (rev 41)
>> > 02:06.0 Ethernet controller: Digital Equipment Corporation DECchip 
>> > 21142/43 (rev 41)
>> > 02:07.0 Ethernet controller: Digital Equipment Corporation DECchip 
>> > 21142/43 (rev 41)
>> >
>> > This uses the 'tulip' driver, very common, and good performance.
>> >
>> > I have another one, but this one uses the 21140 instead of the 21142.  
>> > Still the tulip driver. Part number on it is 'COM-0040-50' or 
>> > 123400-21-998, googling gives me that it's a Sun partit's 32-bit PCI.
>> >
>> > The older Sun Quad Fast Ethernet (PCI) should also work fine; uses sunhme 
>> > driver, IIRC, which is in the vanilla C5 kernel (I just checked the latest 
>> > updated kernel; should be in all of them).  The ones I found on eBay 
>> > (starting at the high price of $9.99 free shipping) are 64-bit, but should 
>> > work fine in a 32-bit slot, just slower.
>> >
>> > Also, I have in hand a couple of dual-port boards made by Intel; Pro/100+ 
>> > Dual, part 711269-004; has two 82558B controllers and an Intel-sourced 
>> > 21152 bridge (32-bit PCI).  I have one of these in a CentOS 3 box, and it 
>> > works fine.
>> > ___
>> > CentOS mailing list
>> > CentOS@centos.org
>> > http://lists.centos.org/mailman/listinfo/centos
>> >
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] happy new year :D i have a problem to upgrade my glibc to 2.7 on centos 5.5

2011-01-01 Thread Gordon Messmer
On 12/31/2010 03:55 PM, Max Haann wrote:
>
> the nasm version 2(rpm from offcial site) requires glibc 2.7, i know its a
> core component, but is there a way to upgrade it without break system?

Build the src.rpm on your own system using "rpm --rebuild".  The results 
won't require glibc 2.7.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] set privoxy to rewrite http to https

2011-01-01 Thread S Mathias
I use the

KB SSL Enforcer
https://chrome.google.com/extensions/detail/flcpelgcagfhfoegekianiofphddckof?hl=en

so i could browse the net safer [i mean webserver <-> me] with using https, if 
available.

The problem is: e.g.: facebook...

if i go to 
https://www.facebook.com/

that's ok, it's https.
But all the links are "http" on the site..
if i click on a "http" link, it will request the page on "http", and THEN it 
switches to "https". Heres the problem. 

How/where could i write a privoxy rule, to rewrite all the "http" links to 
"https"? [so that it would by always trully over https]

Are there any "general" rules (with privoxy), so that i don't have to write 
rules / site? 

with the KB SSL Enforcer its always first http, then it recognizes that the 
site can do https, than it switches to it. But i want to "bypass" the http part.

thank you for any information

Happy New Year!


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


[CentOS] automated remote cloning

2011-01-01 Thread Geoff Galitz

Good morning/day and Happy New Year.

We have a geographically distributed environment (marketing speak: cloud) where 
we regularly need to migrate individual systems to new hardware (for bigger 
disks or for better geographical placement, for example).  We currently use 
Cobbler to do our base installs automatically and I am now looking at 
integrating Clonezilla with Cobbler.  The goal is take an *individual* system 
that has been customized and migrate it in an automated fashion.

We currently do this using Cobbler and then running rsync and mysqldump in a 
script along with other system -> userland module configurations (such as PHP 
modules) but the process is tedious and generally a PITA.  We also must have 
the ability to run this across different datacenters on different continents.

Any pointers to good automated solutions?  


References:  

https://fedorahosted.org/cobbler/wiki/ClonezillaIntegration

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


Re: [CentOS] remove newlines / perl /concise example

2011-01-01 Thread Dave Cross
On 30 December 2010 21:57, ken  wrote:
> Thanks for the previous tips and suggestions.  Here's a more concise
> example:
>
> Input file:
>
> 
> 
> 
> 
>
> I want everything on one line, i.e., remove all newlines.  Like so:
>
> 
>
> Simple perl code:

Code like this is often simpler if you use the Unix filter model and
let the operating system take care of opening all the files.

  #!/usr/bin/env perl

  use strict;
  use warnings;

  chomp(my @lines = <>);

  print @lines;

If this is in a file called 'join', you can run it like this:

 $ ./join < input.txt > output.txt

hth,

Dave...

-- 
Dave Cross :: d...@dave.org.uk
http://dave.org.uk/
@davorg
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] remove newlines / perl /concise example

2011-01-01 Thread Stephen Harris
On Sat, Jan 01, 2011 at 03:42:46PM +, Dave Cross wrote:
> Code like this is often simpler if you use the Unix filter model and
> let the operating system take care of opening all the files.
> 
>   #!/usr/bin/env perl
> 
>   use strict;
>   use warnings;
> 
>   chomp(my @lines = <>);
> 
>   print @lines;

That's one way of using up a lot of memory.

> If this is in a file called 'join', you can run it like this:
> 
>  $ ./join < input.txt > output.txt

Use the tools you've already got as part of the OS install:
  /usr/bin/tr -d '\012' < input.txt > output.txt

-- 

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


Re: [CentOS] set privoxy to rewrite http to https

2011-01-01 Thread Mark
On Sat, Jan 1, 2011 at 3:46 AM, S Mathias  wrote:
> I use the
>
> KB SSL Enforcer
> https://chrome.google.com/extensions/detail/flcpelgcagfhfoegekianiofphddckof?hl=en
>
This is a Chrome extension.

Last I checked, Chrome is unavailable for CentOS because it requires a
newer gtk+ than is available for CentOS.

Please correct me if I'm wrong on this.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] remove newlines / perl /concise example

2011-01-01 Thread James A. Peltier
- Original Message -
| On Sat, Jan 01, 2011 at 03:42:46PM +, Dave Cross wrote:
| > Code like this is often simpler if you use the Unix filter model and
| > let the operating system take care of opening all the files.
| >
| >   #!/usr/bin/env perl
| >
| >   use strict;
| >   use warnings;
| >
| >   chomp(my @lines = <>);
| >
| >   print @lines;
| 
| That's one way of using up a lot of memory.
| 
| > If this is in a file called 'join', you can run it like this:
| >
| >  $ ./join < input.txt > output.txt
| 
| Use the tools you've already got as part of the OS install:
| /usr/bin/tr -d '\012' < input.txt > output.txt
| 
| --
| 
| rgds
| Stephen
| ___
| CentOS mailing list
| CentOS@centos.org
| http://lists.centos.org/mailman/listinfo/centos

You could have used /usr/bin/tr -d "\n" < input.txt > output.txt .  It looks a 
bit cleaner and indicates that no special incantation or knowledge of the ASCII 
character set is required.

-- 
James A. Peltier
Research Computing Group
Simon Fraser University - Burnaby Campus
Phone   : 778-782-6573
Fax : 778-782-3045
E-Mail  : jpelt...@sfu.ca
Website : http://www.sfu.ca/itservices
  http://blogs.sfu.ca/people/jpeltier


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


[CentOS] virtual machines refuse to start up

2011-01-01 Thread benedict dcunha
Dear All,

 am new to xen and recently implemented it.
i had some issues initially but googling arround and some wise replies from
you guys out there managed to clear them.

now I have 2 virtual machines on my xen domains

one is windows 2003 and other windows2008

both the virtual machines were working fine for about a week

jus 2 days back we had a change in our network . i mean we rearanged the
vlans so the linux host server which runs xen was moved to another vlan
then i fould that i could not ping the linux xen host . on further
investigations i fould that there was another file created for my ethernet
device
ifcfg-eth1.bak and also ifcfg-eth1 existed. the ifcfg-eth0 existed as before


the right config for my eth1 was there in ifcfg-eth1.bak file so i renamed
the ifcfg-eth1.bak to ifcfg-eth1 and did a network service restart and then
found that i could reach the xen host server . but fould that one of my
virtual server was shut

i tried to restart it in virt-manager but it gave a error although the other
virtual machine was running

so i tried to restart my linux xen host server and then found that the
virtual server which was running also had not started .

so i tried to start it and it would not start and after long time gives
error

here below i paste the error message

googling arround did not lead me to any possible solution

really would apprecite if any guys out there would advice and help

thanks and regards

simon

-
/var/messages log

Jan 1 14:51:35 xenserver kernel: device vif19.0 left promiscuous mode
Jan 1 14:51:35 xenserver kernel: type=1700 audit(1293882695.424:69):
dev=vif19.0 prom=0 old_prom=256 auid=4294967295 ses=4294967295
Jan 1 14:51:35 xenserver kernel: xenbr1: port 4(vif19.0) entering disabled
state
Jan 1 14:51:36 xenserver avahi-daemon[3890]: Interface tap0.IPv6 no longer
relevant for mDNS.
Jan 1 14:51:36 xenserver avahi-daemon[3890]: Leaving mDNS multicast group on
interface tap0.IPv6 with address fe80::9cab:81ff:fec4:b1e8.
Jan 1 14:51:36 xenserver avahi-daemon[3890]: Withdrawing address record for
fe80::9cab:81ff:fec4:b1e8 on tap0.
Jan 1 14:51:36 xenserver kernel: xenbr1: port 3(tap0) entering disabled
state
Jan 1 14:51:36 xenserver kernel: device tap0 left promiscuous mode
Jan 1 14:51:36 xenserver kernel: type=1700 audit(1293882696.060:70):
dev=tap0 prom=0 old_prom=256 auid=4294967295 ses=4294967295
Jan 1 14:51:36 xenserver kernel: xenbr1: port 3(tap0) entering disabled
state



part of /var/log/xen/xend.log

VmError: Device 5632 (vbd) could not be connected. Hotplug scripts not
working.
[2011-01-01 14:51:35 xend.XendDomainInfo 634] DEBUG (XendDomainInfo:2189)
XendDomainInfo.destroy: domid=19
[2011-01-01 14:51:35 xend.XendDomainInfo 634] INFO (XendDomainInfo:2330) Dev
768 still active, looping...
[2011-01-01 14:51:35 xend.XendDomainInfo 634] INFO (XendDomainInfo:2330) Dev
5632 still active, looping...
[2011-01-01 14:51:35 xend.XendDomainInfo 634] INFO (XendDomainInfo:2330) Dev
768 still active, looping...
[2011-01-01 14:51:35 xend.XendDomainInfo 634] INFO (XendDomainInfo:2330) Dev
5632 still active, looping...
[2011-01-01 14:51:35 xend.XendDomainInfo 634] INFO (XendDomainInfo:2330) Dev
768 still active, looping...
[2011-01-01 14:51:35 xend.XendDomainInfo 634] INFO (XendDomainInfo:2330) Dev
5632 still active, looping...
[2011-01-01 14:51:36 xend.XendDomainInfo 634] DEBUG (XendDomainInfo:2114)
UUID Created: True
[2011-01-01 14:51:36 xend.XendDomainInfo 634] DEBUG (XendDomainInfo:2115)
Devices to release: [], domid = 19
[2011-01-01 14:51:36 xend.XendDomainInfo 634] DEBUG (XendDomainInfo:2127)
Releasing PVFB backend devices ...
[2011-01-01 14:51:36 xend 634] DEBUG (DevController:509)
hotplugStatusCallback /local/domain/0/backend/vbd/19/5632/hotplug-status.
[2011-01-01 14:51:36 xend 634] DEBUG (DevController:509)
hotplugStatusCallback /local/domain/0/backend/vbd/19/5632/hotplug-status.
[2011-01-01 14:51:36 xend 634] DEBUG (DevController:509)
hotplugStatusCallback /local/domain/0/backend/vbd/18/5632/hotplug-status.
[2011-01-01 14:51:36 xend 634] DEBUG (DevController:509)
hotplugStatusCallback /local/domain/0/backend/vbd/19/5632/hotplug-status.
[2011-01-01 14:51:36 xend 634] DEBUG (DevController:509)
hotplugStatusCallback /local/domain/0/backend/vbd/18/5632/hotplug-status.
[2011-01-01 14:51:36 xend 634] DEBUG (DevController:509)
hotplugStatusCallback /local/domain/0/backend/vbd/19/5632/hotplug-status.

--

/var/log/xen/xen-hot-plug.log
Nothing to flush.
stat: cannot stat `/dev/scd0': No such file or directory
stat: cannot stat `/dev/scd0': No such file or directory


if you need more information it will be my utmost pleasure to provide you
the same
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] No ices for icecast ?

2011-01-01 Thread Keith Roberts
Hi, and a Happy New Year to everyone.

I have followed this tutorial to install icecast on Centos 
5.5,

http://www.howtoforge.com/linux_webradio_with_icecast2_ices2

but cannot find the ices package for sending the audio 
to icecast for it to stream.

I would like to send the data as mp3, if there is a suitable 
program to do this.

Has anyone on the list done this on Centos?

Kind Regards,

Keith Roberts

-
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] No ices for icecast ?

2011-01-01 Thread Frank Cox
I set up and operate the streaming audio server for CreekFM (www.creekfm.com)

It runs on Centos 5.5 with ices and icecast, and serves OGG.

Is that of any help to you?

On Sun, 02 Jan 2011 00:16:12 + (GMT)
Keith Roberts wrote:

> Hi, and a Happy New Year to everyone.
> 
> I have followed this tutorial to install icecast on Centos 
> 5.5,
> 
> http://www.howtoforge.com/linux_webradio_with_icecast2_ices2
> 
> but cannot find the ices package for sending the audio 
> to icecast for it to stream.
> 
> I would like to send the data as mp3, if there is a suitable 
> program to do this.
> 
> Has anyone on the list done this on Centos?
> 
> Kind Regards,
> 
> Keith Roberts
> 
> -
> Websites:
> http://www.karsites.net
> http://www.php-debuggers.net
> http://www.raised-from-the-dead.org.uk
> 
> All email addresses are challenge-response protected with
> TMDA [http://tmda.net]
> -
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos


-- 
MELVILLE THEATRE ~ Melville Sask ~ www.melvilletheatre.com
www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] OT how to prevent oversubscription of a disk

2011-01-01 Thread Dave
2010/12/31 Jorge Fábregas :
> On Thursday, December 30, 2010 09:53:25 pm Dave wrote:
>> I want to add up the quotas I've assigned on a particular partition
>> and see if the total is bigger than the disk. It's possible to do this
>> (awkwardly) using repquota or quota. Is there no more accurate/elegant
>> way?
>
> I don't think so. I haven't seen any switch on any of the usual commands
> (repquota etc)  to get this. I guess you'll have to do some scripting to add
> up the "used" values in order to compare them with your partition size.
>
> If you find/create the elegant way, please share...

Is there a best practice? People have to be doing something!
Dave
>
> Happy New Year!
> Jorge
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
Q: Why should this email be 5 sentences or less?
A: http://five.sentenc.es
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Anaconda hangs using 100% CPU

2011-01-01 Thread cpolish
> I have been struggling with my first PXEboot today, using a
> kickstart with packages served over http on the local network.
> 
> The details:
> 
> - Anaconda is using 100% CPU



I got the PXE/kickstart going by sheer persistence.  It
eventually completed without hanging. Post-install the box
hung several times, generally with a kernel panic, sometimes
with only the flashing keyboard lights as a "tell".

In an attempt to diagnose a hardware issue I've run: 

- memtest86 6.5+ hours, 0 errors, 0 hangs.  Both motherboard &
  cpu have ECC enabled.

- bonnie++  1+ hours, 0 errors, 0 hangs.

- sys_basher is running now, it tests the floating point unit,
  the integer unit, RAM, and disk.

I'd hate to let this server loose in production as-is.
Does anyone have suggestions for other things I can test?
-- 
Charles Polisher

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


Re: [CentOS] automated remote cloning

2011-01-01 Thread Nico Kadel-Garcia
On Sat, Jan 1, 2011 at 6:50 AM, Geoff Galitz  wrote:
>
> Good morning/day and Happy New Year.
>
> We have a geographically distributed environment (marketing speak: cloud)
> where we regularly need to migrate individual systems to new hardware (for
> bigger disks or for better geographical placement, for example).  We
> currently use Cobbler to do our base installs automatically and I am now
> looking at integrating Clonezilla with Cobbler.  The goal is take an
> *individual* system that has been customized and migrate it in an automated
> fashion.

The "RHEL" way is to use RHN. I don't recommend it, it's expensive and
requires an Oracle server even if you want to install your own based
on the "Spacewalk" toolkit.

More efficiently, you can use 'mock' or other tools to build a
stripped chroot cage, tarball it up, then un-tarball it and apply
patches as needed. Then push tools to partition the disk, mount the
partitions, apply the tarball on it, and configure to your particular
needs. I've probably done. 20,000 systems this way, with the
approach dating all the way back to RedHat 5.2.

Properly done, you can even write a remote installer that grabs your
existing swap space, stuffs the OS image *there*, then rebuilds the OS
around the existing allocated swap space, then releases and
re-apportions. That's less trivial.

> We currently do this using Cobbler and then running rsync and mysqldump in a
> script along with other system -> userland module configurations (such as
> PHP modules) but the process is tedious and generally a PITA.  We also must
> have the ability to run this across different datacenters on different
> continents.

Push or pull the OS image tarball first. You  can strip out the
sensitive data. such as unlocked passwords, and push commands from
your central repository to reset those passwords with their encrypted
versions if necessary.

> Any pointers to good automated solutions?
>
>
> References:
>
> https://fedorahosted.org/cobbler/wiki/ClonezillaIntegration
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] noob question about mock

2011-01-01 Thread Nico Kadel-Garcia
On Thu, Dec 30, 2010 at 9:45 AM, Leonard den Ottolander
 wrote:
> Hi,
>
> On Thu, 2010-12-30 at 13:51 +, n...@li.nux.ro wrote:
>> As far as I could read about it, mock
>> essentially rebuilds srpms so to use it I would need a separate "classical"
>> build environment to create those srpms in the first place.
>> Am I right or did I get something terribly wrong?
>
> Since CentOS is an rpm based system you will almost always be rebuilding
> from srpms and *not* from plain tar balls. Repos catering for
> RHEL/CentOS/Fedora provide srpms by default.
>
> However, if you want to make your own (s)rpms or patch existing ones you
> will indeed need a "classical" build environment to do so. And since
> there are a couple of packages that mock will not build you will need a
> fallback build environment for such cases.
>
> Regards,
> Leonard.

You can do it inside the mock chroot cage. I do, on occasion. The
difficult is that I find myself wanting things like emacs to edit code
and patches, RCS to manage versions of my new .spec files, and
unpredictable dependencies as I wrote the code.

If necessary, I use one text window (with Alt-F2) to run "mock
--shell" and get that working shell window, and another window (with
Alt-F3) to drop other RPM's into /var/lib/mock/[whatever]/root/tmp/
and be able to install them in the other windows. But I'm a complete
weasel.

I also use the 'mock' from 'epel-testing', which has some very useful
features not in the version of mock from CentOS 5.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] noob question about mock

2011-01-01 Thread Lucian
On Sun, Jan 2, 2011 at 4:00 AM, Nico Kadel-Garcia wrote:
> You can do it inside the mock chroot cage. I do, on occasion. The
> difficult is that I find myself wanting things like emacs to edit code
> and patches, RCS to manage versions of my new .spec files, and
> unpredictable dependencies as I wrote the code.
>
> If necessary, I use one text window (with Alt-F2) to run "mock
> --shell" and get that working shell window, and another window (with
> Alt-F3) to drop other RPM's into /var/lib/mock/[whatever]/root/tmp/
> and be able to install them in the other windows. But I'm a complete
> weasel.
>
> I also use the 'mock' from 'epel-testing', which has some very useful
> features not in the version of mock from CentOS 5.
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

Thanks Nico. I ended up building the srpms outside mock as it was just
too much hassle.
What are the advantages in using mock from epel-testing?

Regards,

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