Re: [CentOS] Build a Firewall (Can I learn to do this...)

2009-10-01 Thread Alan Sparks
Not that it's incredibly difficult to do by hand, but it is a complex undertaking fraught with some risk in doing it wrong. I believe you'd be much better served looking at some of the firewall applications out there, such as IPCop or Smoothwall. Another one to look at is Shorewall (http://www.sh

Re: [CentOS] bind question, please help

2009-10-07 Thread Alan Sparks
Look into allow-recursion. Perhaps something like: options { allow-recursion { localhost; internal-network; }; }; adrian kok wrote: > in my understanding: > > > 1/ this allow internal network can query zone and outside > allow-query { localhost; internal-network; }; > recu

Re: [CentOS] iscsi target for C5.x

2009-10-16 Thread Alan Sparks
John R Pierce wrote: > Does anyone have any recommendations for the best way to bring up a > iSCSI Target on a C5.3+ server ? Various blogs suggest compiling IET > from source, but thats not real appealing to me (not that I can't do it, > I just don't want to have to support it long term). I

Re: [CentOS] [off-topic] Build packages in virtual machine

2009-10-16 Thread Alan Sparks
Marcelo M. Garcia wrote: > Hi > > Sorry for the silly question, but is it safe to build packages, like > rpms, in virtual machines (virtualbox) and use this packages in real > machines? Some of these machines are CentOS and others ares Opensuse. > I do it all the time, a couple of (Xen) VMs p

Re: [CentOS] allowing users to issue the "shutdown" command

2009-10-16 Thread Alan Sparks
Buz Davis wrote: > I am running CentOS 5.3 and have just the two accounts "root" and > "buz". I would like to be able to issue "shutdown" from the account > "buz", and thus created > /etc/shutdown.allow with the single entry "buz" (without any quotes). > I still > get the error message "only

Re: [CentOS] apache env vars - best practices

2009-10-19 Thread Alan Sparks
aurfal...@gmail.com wrote: > Hi Les, > > What I mean is that if I use the Apache directive; > > SetEnv BATCHPATH /foo > > It works. > > If I set; > > SetEnv BATCHPATH /foo:/bar > > Apache errors with a syntax that SetEnv takes 2 args only, a key and a > value. > Doesn't for me on stock Apache

Re: [CentOS] Sudo command

2009-10-22 Thread Alan Sparks
vijay shanker wrote: > Hello guys; > > I am not able to use sudo command on my just installed centos5.3 > > But i know i am using right password to root. > > Is this is by default not enabled; if so, what to do. > You really need to configure /etc/sudoers, if you have not already. -Alan __

Re: [CentOS] FYI: centos 5.4 and xen not working

2009-10-24 Thread Alan Sparks
Gordon Messmer wrote: > On 10/24/2009 07:43 AM, Farkas Levente wrote: > >> i just let you know that xen not working properly in centos 5.4 there >> are upstream fix for this, but for those who use xen it's better to wait >> until centos release updates for 5.4 otherwise xen's domU won't start. >

Re: [CentOS] Install libnet-server-perl on Centos

2009-11-09 Thread Alan Sparks
Dhiraj Chatpar wrote: > Please help me as i am not able to find any way to install Libnet Perl > Server > > I used to install this on debian using > apt-get install libnet-server-perl > Command > > I just cannot figure out how to install this on Centos. Please help > --

Re: [CentOS] Installing libssl-dev

2009-11-12 Thread Alan Sparks
Victor Subervi wrote: > Hi; > I can't "yum install libssl-dev" because apparently it doesn't exist. > Please advise. > TIA, > Victor You probably want "openssl-devel". -Alan ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listi

Re: [CentOS] On-Boot Scripts

2009-11-13 Thread Alan Sparks
Victor Subervi wrote: > I'm a bit rusty. It's been a couple of years since I've run my own > server, and I don't know this OS. And as we all know, each OS is > different. I'm trying to install scripts I wrote years ago to do my > MySQL backups. > > I've loaded my scripts to /etc/rc.d/init.d Now how

Re: [CentOS] AIDE or OSSEC on CentOS 5.4 x86_64?

2009-11-28 Thread Alan Sparks
David McGuffey wrote: > Seems to me that any IDS must be tied to the yum update process so that > one is not dealing with hundreds/thousands of changes that were brought > in by a yum update that I choose to apply. > > Is OSSEC any less noisy? > Nope. -Alan

Re: [CentOS] 64-bit CentOS - your experience

2009-06-25 Thread Alan Sparks
przemol...@poczta.fm wrote: > Hello, > > one of our developers is developing his Web applications (PHP-based+MySql) on > 64-bit Fedora. He would like to use the same, 64-bit environment on CentOS. I > am not against 64-bits (we use it for many, many years using Solaris) but > what concerns me is

Re: [CentOS] [OT] Batch Job Scheduler/Manager

2009-06-30 Thread Alan Sparks
Joseph L. Casale wrote: >> I have pretty loose requirements at this point, but I am looking for a >> tool (or set of tools) where I can automate and control a large group >> of tasks by a basic web front end. >> There is this, Java based but can run scripts in any language: http://www.sos-berl

Re: [CentOS] Regarding LARGE number of files in a folder in linux

2009-07-09 Thread Alan Sparks
Bob Hoffman wrote: > This goes out to you admins who manage servers with a heavy load of > information. > > I would like to know what you do about the number of files in a folder, or > if that is a concern. I think there is a limitation or a slow down if it > gets to big, but what is optimal (if ne

Re: [CentOS] Cleaning up some problems

2009-07-26 Thread Alan Sparks
Sam Drinkard wrote: > >> 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 >> >> I don't believe on CentOS this is a "core" module. Try a Yum install of perl-Net-DNS (in the b

Re: [CentOS] Cleaning up some problems

2009-07-27 Thread Alan Sparks
Sam Drinkard wrote: > Alan Sparks wrote: > >> Sam Drinkard wrote: >> >> >>>> NET::DNS is a core perl module. You don't want to get any version from >>>> CPAN. >>>> >>>> $locate DN

Re: [CentOS] files not showing up in an nfs mounted filesysetm in timely manner

2009-07-30 Thread Alan Sparks
Blackburn, Marvin wrote: > > We have and nfs mount from a windows pc nfs server. A file is created > on the server, but can take as long as 50 seconds to become available > on the client. > > We are running Centos 5.2 (final), using NFS version 3. Is there > anything we can do from the client sid

Re: [CentOS] Strange XEN on CentOS HWaddr Address Issue

2009-08-04 Thread Alan Sparks
Brett Serkez wrote: >> Maybe because you are looking at the bridge's mac and not the >> ethernet's which would be peth0. >> > > No I am not. dmesg shows the kernel messages at boot and it is > looking at the physical device, let's not get distracted, the issue is > clear in this regard. As I

Re: [CentOS] question on managing multiple boxes

2009-08-04 Thread Alan Sparks
Jerry Geis wrote: > How do admins handle a situation with many boxes like 50 for example. > If I wish to tell 50 boxes to run a handful of commands - how is that done? > (I mean without actually logging into 1,2,3,4...X and executing the > commands) > > Thanks, > > Jerry > ___

Re: [CentOS] php-pdo

2009-08-04 Thread Alan Sparks
Peter Peltonen wrote: > I wish to use PostgreSQL with PHP+PDO. I haven't use PDO before. > > I have the php-pdo package installed on my CentOS 4.7 server: > > # rpm -qa |grep pdo > php-pdo-5.1.6-3.el4s1.10 > > Now when I try connect to the PostgeSQL db with this code: > > print "PDO test"; > try {

Re: [CentOS] CentOS Project Infrastructure

2009-08-08 Thread Alan Sparks
Bob Taylor wrote: > On Sat, 2009-08-08 at 05:48 -0500, Johnny Hughes wrote: > >> >> Second, I am supposed to also kiss your ass? >> > > Is it necessary to insult me? I have said *nothing* to you to warrant > this. > > Jeez, people, take it offline. -Alan ___

Re: [CentOS] ntp will not drift to correct time

2009-08-12 Thread Alan Sparks
Tom Brown wrote: > Hi > > On 5.3 i have a situation where some boxes have been 3 or 4 seconds out > and restarting ntpd has fixed the issue. > > What i dont understand is why the clocks did not drift to the correct > time when the config seems correct in that restarting ntp did correct > the tim

Re: [CentOS] httpd .htaccess rewrite for images

2009-08-17 Thread Alan Sparks
Dave wrote: > In my httpd virtual host directive i have: > > alias /images "/var/www/test.example.com/images" > > Options None > AllowOverride None > order allow,deny > Allow from all > > > Comments appreciated. > Assume you mean that the rewrites are ignored. Note that "AllowOverride None"

Re: [CentOS] drbd xen question

2009-08-20 Thread Alan Sparks
Ross Walker wrote: > On Aug 20, 2009, at 10:22 AM, Coert Waagmeester > wrote: > >> Hello all, >> >> >> I am running drbd protocol A to a secondary machine to have >> 'backups' of >> my xen domUs. >> >> Is it necessary to change the xen domains configs to use /dev/drbd* >> instead of the LVM

Re: [CentOS] drbd xen question

2009-08-20 Thread Alan Sparks
Coert Waagmeester wrote: > Hello Alan, > > This is my current setup: > > Xen DomU > > DRBD > > LVM Volume > > RAID 1 > > > What I first wanted to do was: > > DomU | DRBD > > LVM Volume > > RAID 1 > > If I understand you diagram, y

Re: [CentOS] perplexing permissions issue

2009-09-04 Thread Alan Sparks
Dave wrote: > Hello, > I have a perplexing permissions problem that i thought i had, but > it's resurfaced. > I'm running CentOS 5.3 and it runs an apache web server. The > permissions on the web data directory in this case /var/www/secure/data are > set to 4775 owner of apache group of

Re: [CentOS] Problem kernel module DRBD on CentOS 5.3

2009-09-09 Thread Alan Sparks
David Suhendrik wrote: > Hi All, > I'm just tried to install and build replicate failover PDC using DRBD > and HA, but i can't load DRBD kernel module. > Now i'm using CentOS 5.3 up to date. This DRBD's installed: > /kmod-drbd83-xen-8.3.2-6.el5_3 > kmod-drbd83-PAE-8.3.2-6.el5_3 > drbd83-8.3.2-6.el5

Re: [CentOS] Problem kernel module DRBD on CentOS 5.3

2009-09-09 Thread Alan Sparks
David Suhendrik wrote: > Thanks Alan, > > This is error message when start service DRBD > $ sudo /etc/init.d/drbd start > Starting DRBD resources: Can not load the drbd module. > > I don't get any error message, and i think problem is DRBD kernel > module, not ?? > $ sudo cat /proc/drbd > cat: /p

Re: [CentOS] Problem kernel module DRBD on CentOS 5.3

2009-09-09 Thread Alan Sparks
David Suhendrik wrote: > Alan Sparks wrote: > >> David Suhendrik wrote: >> >> >>> Thanks Alan, >>> >>> This is error message when start service DRBD >>> $ sudo /etc/init.d/drbd start >>> Starting DRBD resources: Can n

Re: [CentOS] Problem kernel module DRBD on CentOS 5.3

2009-09-09 Thread Alan Sparks
David Suhendrik wrote: > Alan Sparks wrote: > >> David Suhendrik wrote: >> >> >>> Alan Sparks wrote: >>> >>> >>> >>>> David Suhendrik wrote: >>>> >>>> >&g

Re: [CentOS] Problem kernel module DRBD on CentOS 5.3

2009-09-09 Thread Alan Sparks
David Suhendrik wrote: > Akemi Yagi wrote: > >> On Wed, Sep 9, 2009 at 6:22 PM, David Suhendrik wrote: >> >> >> >>> Akemi, >>> $ sudo rpm -qa --qf "%{name}-%{version}-%{release}.%{arch}\n" kernel\* | >>> sort >>> kernel-2.6.18-128.7.1.el5.i686 >>> kernel-debug-2.6.18-128.1.16.el5.i686 >>

Re: [CentOS] Where to download rpm packages for centos?

2009-09-16 Thread Alan Sparks
Peng Yu wrote: > If you could help me on finding packages for downloading and > installing them in my home directory, that would be very helpful. > > I also find the following link on how to run rpm in my home directory. > Does it work for my problem? > > http://www.techonthenet.com/linux/build_rpm

Re: [CentOS] Where to download rpm packages for centos?

2009-09-16 Thread Alan Sparks
Peng Yu wrote: > I have been trying this way. But there are some source packages that I > can't find. For example, I am looking for imlib-config. Do you know > where I can download its source package. > > Regards, > Peng > Well, there's RPMs for it in the EPEL repository. But since you have no

Re: [CentOS] mounting images created using dd that contain two partitions

2009-09-26 Thread Alan Sparks
Devraj Mukherjee wrote: > Hi all, > > I am trying to mount images that I previously created with dd and the > images have two partitions (swap and LVM). I use these images to house > data for my Xen Guests. > You'll probably need at least kpartx to mount the partitions out of the image. Maybe

Re: [CentOS] Script consumes memory

2009-09-29 Thread Alan Sparks
Perhaps I'm missing it, but where are your definitions of DIRNAME and BASENAME? Without them, you're probably re-executing the script in the bactick references. Basically a fork-bomb. -Alan Frank M. Ramaekers wrote: > I have the following script that when executed, consumes memory and > makes the

Re: [CentOS] Any idea when we will have updated kmod-drbd82 rpm for the latest kernel?

2008-12-31 Thread Alan Sparks
> > On Tue, Dec 2, 2008 at 3:14 AM, mbneto > wrote: > >/ Hi, > />/ > />/ After searching the archive I found one post (last october) complaining > />/ about lack of kmod-drbd2 rpm for the lastest kernels. Almost two months > />/ have passed and no

[CentOS] Missing latest kmod-xfs and kmod-drbd82?

2009-01-27 Thread Alan Sparks
Since December there have been several kernel updates to the centosplus repository for centos4... but no updates to kmod-xfs or kmod-drbd82. Latest kernel is 2.6.9-78.0.13.plus.c4, but latest kmod-xfs is 2.6.9_78.0.5.plus.c4. Latest drbd82 kmod is also for 78.0.5. I know there was a mention on t

Re: [CentOS] Missing latest kmod-xfs and kmod-drbd82?

2009-02-04 Thread Alan Sparks
Alan Sparks wrote: > Since December there have been several kernel updates to the centosplus > repository for centos4... but no updates to kmod-xfs or kmod-drbd82. > Latest kernel is 2.6.9-78.0.13.plus.c4, but latest kmod-xfs is > 2.6.9_78.0.5.plus.c4. Latest drbd82 kmod is als