[CentOS] Samba PDC + BDC using LDAP

2010-07-30 Thread Basil Kurian
I am trying to implement Samba Domain Controller with replication using LDAP
.


My intention is to create two Samba DC servers with LDAP backend , then to
set one as master and other as slave , then replicate LDAP database  in
master to slave


I shutdown second samba server  and only first samba DC was running . Then I
added one XP client to first samba server , I can successfully logged in to
the domain


Then I shutdown first server and  started second server (every settings in
first and second server is same . Also the ID is set to same value using *
setlocalid* command )


but the xp can't login to the domain ..



please help me to figure out the problem


I documented every thing in a wiki ... please go through the steps
.


http://wiki.basil-kurian.co.cc/index.php/SMB_DC_WITH_REPLICATION
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] When should LVM be used?

2010-07-30 Thread Juergen Gotteswinter
On 07/30/2010 07:37 AM, Ron Blizzard wrote:
> In my old computer I have a much bigger hard drive then in this one --
> and I plan to hand that old computer down to one of my sons -- keeping
> his current drive from an even older computer. Currently the hard
> drive on my old computer has SuSE Linux, but that will go. I'll
> rebuild CentOS 5.5 on it, but I want to leave some free space for
> whatever comes up and also dual-boot Vector Linux. Which, at last,
> brings me to the question...
>
> Is there any reason to use LVM on a personal desktop install of
> CentOS? It seems to me, for my purposes, that LVM is just a pain in
> the neck -- although I've always just let CentOS set it up during the
> install in the past.  I would like to be able to use parted to resize
> partitions when I want to, and also I'd like Vector Linux to be able
> to read and write data to the CentOS partition. Would I be missing
> something by not installing LVM, or is this mostly for server purposes
> anyhow?
>
> Thanks for any pointers.
>

* snaphotting (great for db backup)
* resizing partition
* "online" partitioning

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


Re: [CentOS] hplip under CentOS-5.5

2010-07-30 Thread Dag Wieers
On Fri, 30 Jul 2010, Timothy Murphy wrote:

> Is anyone successfully using hplip under CentOS?
> When I try to print on my HP Officejet J4580
> I always get the error
> --
> Printer Filter "foomatic-rip-hplip" for printer "oj" not available:
> No such file or directory
> --
>
> What I find puzzling is that I have googled for this,
> and it appears there has been the same problem with hplip
> for over a year.
>
> I'm using hplip-1.6.7-4.1.el5.4.x86_64 .

If you're interested, RPMforge has an updated hplip in testing that 
supports many more (and newer) devices. It does have an incompatibility 
with dbus, but works fine for my HP PhotoSmart printer that wouldn't work 
otherwise.

You can find those packages here:

 http://packages.sw.be/hplip/

-- 
--   dag wieers,  d...@wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] When should LVM be used?

2010-07-30 Thread Robert Heller
At Fri, 30 Jul 2010 00:37:21 -0500 CentOS mailing list  
wrote:

> 
> In my old computer I have a much bigger hard drive then in this one --
> and I plan to hand that old computer down to one of my sons -- keeping
> his current drive from an even older computer. Currently the hard
> drive on my old computer has SuSE Linux, but that will go. I'll
> rebuild CentOS 5.5 on it, but I want to leave some free space for
> whatever comes up and also dual-boot Vector Linux. Which, at last,
> brings me to the question...
> 
> Is there any reason to use LVM on a personal desktop install of
> CentOS? It seems to me, for my purposes, that LVM is just a pain in
> the neck -- although I've always just let CentOS set it up during the
> install in the past.  I would like to be able to use parted to resize
> partitions when I want to, and also I'd like Vector Linux to be able
> to read and write data to the CentOS partition. Would I be missing
> something by not installing LVM, or is this mostly for server purposes
> anyhow?

LVM has a number of useful features and advantages.  The 'default'
RedHat/CentOS LVM setup (basically creating one LVM volume taking up all
available space for the root file system), is pretty useless.  With
modern *large* disks.  LVM (if set up properly) allows creating and/or
resizing logical disks without having to shutdown and/or rebooting the
system.  This is often usefull for installing virtual processes (eg with
xen). 

> 
> Thanks for any pointers.
> 

-- 
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software-- Linux Installation and Administration
http://www.deepsoft.com/  -- Web Hosting, with CGI and Database
hel...@deepsoft.com   -- Contract Programming: C/C++, Tcl/Tk



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


Re: [CentOS] hplip under CentOS-5.5

2010-07-30 Thread Dag Wieers
On Thu, 29 Jul 2010, Scott Robbins wrote:

> On Fri, Jul 30, 2010 at 01:19:12AM +0200, Timothy Murphy wrote:
>> Is anyone successfully using hplip under CentOS?
>> When I try to print on my HP Officejet J4580
>> I always get the error
>> --
>> Printer Filter "foomatic-rip-hplip" for printer "oj" not available:
>> No such file or directory
>> --
>>
>> What I find puzzling is that I have googled for this,
>> and it appears there has been the same problem with hplip
>> for over a year.
>
> Wow, that's pretty old.  I think rpmforge has newer, but regardless, I
> wound up installing from source.  The hplip page for CentOS is a bit off
> (dated, I imagine), I have my own page on it here.  (I should add that
> it works quite well for me, version 3.9.8 or so.  Haven't checked for
> updates since then, as this does all I need.
>
> http://home.roadrunner.com/~computertaijutsu/hplip.html

Hi Scott,

Thanks fot hat document. I modified my hplip package based on that 
document and am building a 3.10.6 update package as we speak.

I noticed that --enable-dbus-build is set, but I think it might be better 
to disable it. Now people get the following error due to dbus 
incompatiblities:

 error: Unable to load dbus - Automatic status updates in HPLIP Device 
Manager will be disabled.

I've looked into the problem, but only a dbus update could fix the issue 
at hand :-/ Everything else works for me without a problem though.

-- 
--   dag wieers,  d...@wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] mdstat and /dev/mapper

2010-07-30 Thread Jerry Geis
hi all,

In the past I used software RAID-1 and monitored /proc/mdstat to make 
sure things were ok in the array.
I am starting to play with /dev/mapper and was wondering how I monitor 
this for a disk going bad.

Thanks,

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


[CentOS] Postfix SMTP auto on remote relay server

2010-07-30 Thread Rudi Ahlers
Hi,

Does anyone know how to configure Postfix to use SMTP authentication
on a relay host?

i.e. I have a Linux server, running PostFix on an ADSL line with a
dynamic IP. Thus I can't just send out emails from this server but
need to relay it via our ISP's SMTP server, which is very unreliable.
Now I want to relay the email via another SMTP server where a user
account with the same domain has already been setup, but I got no idea
how to get it to work on SMTP authenticiaion.

Any suggestions?

-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] [CORRECTED] Postfix SMTP authentication on remote relay serve

2010-07-30 Thread Rudi Ahlers
Sorry about the previous post, I see the subject had a typo. So here's
the correct one :)



Does anyone know how to configure Postfix to use SMTP authentication
on a relay host?

i.e. I have a Linux server, running PostFix on an ADSL line with a
dynamic IP. Thus I can't just send out emails from this server but
need to relay it via our ISP's SMTP server, which is very unreliable.
Now I want to relay the email via another SMTP, running cPanel server
where a user account with the same domain has already been setup, but
I got no idea how to get it to work on SMTP authenticiaion.

Any suggestions?

-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] hplip under CentOS-5.5

2010-07-30 Thread Scott Robbins
On Fri, Jul 30, 2010 at 01:20:58PM +0200, Dag Wieers wrote:
> On Thu, 29 Jul 2010, Scott Robbins wrote:
> 
> > Wow, that's pretty old.  I think rpmforge has newer, but regardless, I
> > wound up installing from source.  The hplip page for CentOS is a bit off
> > (dated, I imagine), I have my own page on it here.  (I should add that
> > it works quite well for me, version 3.9.8 or so.  Haven't checked for
> > updates since then, as this does all I need.
> >
> > http://home.roadrunner.com/~computertaijutsu/hplip.html
> 
> Hi Scott,
> 
> Thanks fot hat document. I modified my hplip package based on that 
> document and am building a 3.10.6 update package as we speak.
> 
> I noticed that --enable-dbus-build is set, but I think it might be better 
> to disable it. Now people get the following error due to dbus 
> incompatiblities:

Hi Dag, 

I'm going to add mention of that--and also mention the rpmforge rpm--it
won't be till tonight (EDT, GMT -0500).  I'll just put that Dag Wieers
of rpmforge fame has commented that .  (I'll also preface
the article with a mention of the rpmforge rpm.)

Thanks.

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Spike: I did a couple of slayers in my time. I don't like to 
brag. Who am I kidding? I love to brag. One time, during the 
Boxer Rebellion...

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


Re: [CentOS] hplip under CentOS-5.5

2010-07-30 Thread Scott Robbins
On Fri, Jul 30, 2010 at 08:27:33AM -0400, Scott Robbins wrote:
> On Fri, Jul 30, 2010 at 01:20:58PM +0200, Dag Wieers wrote:
> > On Thu, 29 Jul 2010, Scott Robbins wrote:
> > 
> > > Wow, that's pretty old.  I think rpmforge has newer, but regardless, I
> > > wound up installing from source.  The hplip page for CentOS is a bit off
> > > (dated, I imagine), I have my own page on it here.  (I should add that
> > > it works quite well for me, version 3.9.8 or so.  Haven't checked for
> > > updates since then, as this does all I need.
> > >
> > > http://home.roadrunner.com/~computertaijutsu/hplip.html
> > 
> > Hi Scott,
> > 
> > Thanks fot hat document. I modified my hplip package based on that 
> > document and am building a 3.10.6 update package as we speak.
> > 
I've actually already updated the page to make mention of the rpmforge
package and also add your comments about dbus.  I actually only made use
of hp-setup -i and then tested the scanner with scanimage, so I didn't
run into the error. Thanks for pointing it out.

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Buffy: I told one lie... I had one drink... 
Giles: Yes. And you were very nearly devoured by a giant demon 
snake. The words, 'Let that be a lesson' are a tad redundant at 
this juncture. 

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


Re: [CentOS] When should LVM be used?

2010-07-30 Thread Benjamin Franz
On 07/29/2010 10:57 PM, Fajar Priyanto wrote:
> On Fri, Jul 30, 2010 at 1:37 PM, Ron Blizzard  wrote:
>
>> Is there any reason to use LVM on a personal desktop install of
>> CentOS? It seems to me, for my purposes, that LVM is just a pain in
>> the neck -- although I've always just let CentOS set it up during the
>> install in the past.  I would like to be able to use parted to resize
>> partitions when I want to, and also I'd like Vector Linux to be able
>> to read and write data to the CentOS partition. Would I be missing
>> something by not installing LVM, or is this mostly for server purposes
>> anyhow?
>>  
> You don't need LVM if you don't plan to expand the filesystem (or a
> particular mount point).
>

You can use LVM for taking snapshots as well (very useful if you want to 
quiesce databases for the shortest possible time for backups) .  And you 
can use LVM to migrate data from an old drive to a new one or even to 
*shrink* a partition. I've never found LVM to 'be a pain'. 99% of the 
time it's invisible, and 1% of the time it's indispensable.

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


Re: [CentOS] Wifi not working (Solved--Sort of...)

2010-07-30 Thread Phil Savoie
Stephen Harris wrote:
> Create a simple S09 script (eg S09PROMISC) which basically just does
> "/sbin/ifconfig wlan0 promisc up"
> 
> eg create this as /etc/init.d/PROMISC and then do "chkconfig PROMISC on"
> 
> 
> #!/bin/sh
> 
> # PROMISC puts wlan0 in promisc mode
> #
> # chkconfig: 2345 09 91
> # description: puts wlan0 in promisc mode
> 
> case "$1" in
>   start) touch /var/lock/subsys/PROMISC
> 
>  /sbin/ifconfig wlan0 0.0.0.0 promisc up
> 
>  ;;
>   stop)
> # Do nothing
> rm -f /var/lock/subsys/PROMISC
> ;;
>   status|restart|reload)
> # Do nothing
> ;;
>   *)
> echo $"Usage: $0 {start|stop|restart|reload|status}"
> exit 1
> esac
> 
> exit 0
> 
> 
> It might work... who knows :-)
> 
Great suggestion Stephen!  Thanks very much!  Just tried it out and it 
works fine.  Just have one question... any reason not to leave the 
interface in promiscuous mode?

Thanks,

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


Re: [CentOS] When should LVM be used?

2010-07-30 Thread Todd Denniston
Ron Blizzard wrote, On 07/30/2010 01:37 AM:
> Is there any reason to use LVM on a personal desktop install of
> CentOS? It seems to me, for my purposes, that LVM is just a pain in
> the neck -- although I've always just let CentOS set it up during the
> install in the past.  I would like to be able to use parted to resize
> partitions when I want to, and also I'd like Vector Linux to be able
> to read and write data to the CentOS partition. Would I be missing
> something by not installing LVM, or is this mostly for server purposes
> anyhow?
> 
> Thanks for any pointers.
> 

Best use for LVM I have seen...
Reducing the number of times you need to enter the LUKS pass phrase to once per 
boot, i.e., one LUKS
containing an LVM of / and Swap so that the system can boot with one entry of 
the pass phrase and if
you then have other partitions, such as an independent /home, /etc/crypttab can 
be used (with
appropriately constructed and protected cryptpassphrase files).

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [CORRECTED] Postfix SMTP authentication on remote relay serve

2010-07-30 Thread Indunil Jayasooriya
Hi,


If you want to send mail via another server, Pls edit
/etc/postfix/main.cfin following way.


relayhost = an.ip.add.ress of isp mail server


then , restart postfix as follows

service postfix restart




On Fri, Jul 30, 2010 at 5:52 PM, Rudi Ahlers  wrote:

> Sorry about the previous post, I see the subject had a typo. So here's
> the correct one :)
>
>
>
> Does anyone know how to configure Postfix to use SMTP authentication
> on a relay host?
>
> i.e. I have a Linux server, running PostFix on an ADSL line with a
> dynamic IP. Thus I can't just send out emails from this server but
> need to relay it via our ISP's SMTP server, which is very unreliable.
> Now I want to relay the email via another SMTP, running cPanel server
> where a user account with the same domain has already been setup, but
> I got no idea how to get it to work on SMTP authenticiaion.
>
> Any suggestions?
>
> --
> Kind Regards
> Rudi Ahlers
> SoftDux
>
> Website: http://www.SoftDux.com
> Technical Blog: http://Blog.SoftDux.com
> Office: 087 805 9573
> Cell: 082 554 7532
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
Thank you
Indunil Jayasooriya
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] [CORRECTED] Postfix SMTP authentication on remote relay serve

2010-07-30 Thread Ned Slider
On 30/07/10 13:22, Rudi Ahlers wrote:
> Sorry about the previous post, I see the subject had a typo. So here's
> the correct one :)
>
>
>
> Does anyone know how to configure Postfix to use SMTP authentication
> on a relay host?
>
> i.e. I have a Linux server, running PostFix on an ADSL line with a
> dynamic IP. Thus I can't just send out emails from this server but
> need to relay it via our ISP's SMTP server, which is very unreliable.
> Now I want to relay the email via another SMTP, running cPanel server
> where a user account with the same domain has already been setup, but
> I got no idea how to get it to work on SMTP authenticiaion.
>
> Any suggestions?
>

Try reading:

http://wiki.centos.org/HowTos/postfix_sasl
http://www.postfix.org/SASL_README.html
http://postfix.state-of-mind.de/patrick.koetter/smtpauth/

and references therein.

Hope that helps.

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


[CentOS] Announce list digest ??

2010-07-30 Thread Ron Loftin

It seems that the past month or so the CentOS Announce list digest has
no longer been sent out to the general CentOS list ( this list )
although the CentOS Web site still says that this list is subscribed to
the Announce list in digest form.

I've been checking, and the announce message does not seem to be getting
caught in any spam filter that I use.

Is this broken, or am I missing something here ?

-- 
Ron Loftin  relof...@twcny.rr.com

"God, root, what is difference ?"   Piter from UserFriendly

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


Re: [CentOS] Postfix SMTP auto on remote relay server

2010-07-30 Thread Craig White
On Fri, 2010-07-30 at 14:16 +0200, Rudi Ahlers wrote:
> Hi,
> 
> Does anyone know how to configure Postfix to use SMTP authentication
> on a relay host?
> 
> i.e. I have a Linux server, running PostFix on an ADSL line with a
> dynamic IP. Thus I can't just send out emails from this server but
> need to relay it via our ISP's SMTP server, which is very unreliable.
> Now I want to relay the email via another SMTP server where a user
> account with the same domain has already been setup, but I got no idea
> how to get it to work on SMTP authenticiaion.
> 
> Any suggestions?

authentication is fully explained on the documentation on Postfix
website 

you don't really need to do any authentication at all but rather should
use 'smarthost' features on the main server and on the relaying server,
it should be configured to relay mail for that server.

Craig


-- 
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] Announce list digest ??

2010-07-30 Thread Todd Denniston
Ron Loftin wrote, On 07/30/2010 10:03 AM:
> It seems that the past month or so the CentOS Announce list digest has
> no longer been sent out to the general CentOS list ( this list )
> although the CentOS Web site still says that this list is subscribed to
> the Announce list in digest form.
> 
> I've been checking, and the announce message does not seem to be getting
> caught in any spam filter that I use.
> 
> Is this broken, or am I missing something here ?
> 

I don't know if it is broken, i.e., someone may have made a choice, but not 
updated the web site.
But I too had not been receiving the digest, for a similar time period.
Initially it annoyed me to be getting the digest, until I realized that it 
*seemed* the digest
indicated that the metadata (repodata directory) had been pushed, i.e., it 
could be used as an
'interupt' to indicate the primary/secondary yum *mirrors* were ready to be 
pulled from.
Now I miss it.

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] A proposed CentOS mailing list FAQ

2010-07-30 Thread m . roth
Folks,

I threatened to do this a few months ago Here's a first draft. I
was thinking of it as something that might get posted the beginning of
the month, or sent to someone who drops in with "it doesn't work!!!".

PLEASE feel free, no, *please* rip, shred, tear, rend this, and help
me make it usable.

   mark

#

1. This mailing list is here for folks around the world to share knowledge
about CentOS
 and Linux. This is not a paid tech support organization - if you want
that, buy
 a RedHat subscription.

2. We are not here to do your job for you. If you think we should, perhaps
you
  should pay us. Before asking us, have you:
   a) read the documentation (RTFM)?
   b) checked the CentOS wiki for howtos and FAQs?
 i) , and click on "information"
 ii) 
   c) googled for documents on the Web?

3. Many of your problems have been discussed and solved. Feel free to ask
for a link
  to the solution, or the discussion.

4. When you post a question,
   a) mention the version of CentOS, and of any other software;
   b) give a full explanation of the problem, not merely "networking is
broke,
how do I fix it", or something like that, and
   c) Include error messages if possible. Do *not* put pages of them - edit
so that you give only a few lines of example, or only the relevant
message lines, not, say, the entire dump of dmesg.

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


Re: [CentOS] Samba PDC + BDC using LDAP

2010-07-30 Thread Craig White
On Fri, 2010-07-30 at 16:11 +0530, Basil Kurian wrote:
> I am trying to implement Samba Domain Controller with replication
> using LDAP . 
> 
> 
> My intention is to create two Samba DC servers with LDAP backend ,
> then to set one as master and other as slave , then replicate LDAP
> database  in master to slave
> 
> 
> I shutdown second samba server  and only first samba DC was running .
> Then I added one XP client to first samba server , I can successfully
> logged in to the domain
> 
> 
> Then I shutdown first server and  started second server (every
> settings in first and second server is same . Also the ID is set to
> same value using setlocalid command )
> 
> 
> but the xp can't login to the domain .. 
> 
> 
> 
> please help me to figure out the problem
> 
> 
> I documented every thing in a wiki ... please go through the
> steps .
> 
> 
> http://wiki.basil-kurian.co.cc/index.php/SMB_DC_WITH_REPLICATION

didn't bother looking at the wiki but...

Only the PDC should have a localsid and domainsid that are the same. The
BDC should be joined to the domain and will have a different localsid.

It would seem that your LDAP needs to support multi-master replication
so 'writes' could happen at either the PDC or the BDC and LDAP will
handle the sync'ing of the changes.

You can look at the logs in the samba log directory for whichever
machine is having a problem logging in to determine the reason for the
login failure.

Craig


-- 
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] A proposed CentOS mailing list FAQ

2010-07-30 Thread Les Mikesell
On 7/30/2010 9:35 AM, m.r...@5-cent.us wrote:
> Folks,
>
>  I threatened to do this a few months ago Here's a first draft. I
> was thinking of it as something that might get posted the beginning of
> the month, or sent to someone who drops in with "it doesn't work!!!".
>
>  PLEASE feel free, no, *please* rip, shred, tear, rend this, and help
> me make it usable.

I don't quite see the point of posting stuff to try to control what 
people who don't read before posting will do...  But, if you want to 
make the futile effort, the only thing that matters to me is that the 
subject line is written carefully to reflect the topic.  It is easy 
enough to ignore off-topic postings as long as the subject identifies 
them as such.  A FAQ on how to answer might be more useful, pointing out 
that the list is archived in various places and the replies will come up 
in future searches, thus the replies that tell people to search for 
themselves instead of including the definitive link to an answer not 
only are useless to the requester but interfere with everyone's ability 
to search later.

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


Re: [CentOS] DHCP failover ... Some questions.

2010-07-30 Thread Les Mikesell
On 7/29/2010 3:36 PM, Lars Hecking wrote:
>
>> Do you know if you have to do anything special in the case where the
>> primary server has been down for a while and is then brought back up?
>> That is, does the backup automatically re-sync the database with the new
>> leases that have been given out, or does it not have to?
>
>   Nope, it's all automatic - that's the point, after all :)
>
>   Check out the FAILOVER STARTUP section in dhcpd.conf(5).

OK, I can confirm it works.  I had been putting off changing my dhcp 
service for years because the last time I changed it a lot of clients 
(back in Win95/98 days) didn't switch gracefully and the old dhcp server 
never had downtime.  But, this time everything still seems happy and 
will accept the ack to continue a lease from either of the new failover 
servers.

-- 
   Les Mikesell
lesmikes...@gmail.com


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


Re: [CentOS] mdstat and /dev/mapper

2010-07-30 Thread Ross Walker
On Jul 30, 2010, at 8:11 AM, Jerry Geis  wrote:

> hi all,
> 
> In the past I used software RAID-1 and monitored /proc/mdstat to make 
> sure things were ok in the array.
> I am starting to play with /dev/mapper and was wondering how I monitor 
> this for a disk going bad.

For disk errors use smartmon.

If there is an error in the device mapper you will now about it right away as 
the system will fail.

There are LVM configuration backups kept, make sure they're kept in /boot.

-Ross

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


Re: [CentOS] Samba PDC + BDC using LDAP

2010-07-30 Thread Basil Kurian
thanks , let me check the log files of samba !

On 30 July 2010 19:46, Craig White  wrote:

> On Fri, 2010-07-30 at 16:11 +0530, Basil Kurian wrote:
> > I am trying to implement Samba Domain Controller with replication
> > using LDAP .
> >
> >
> > My intention is to create two Samba DC servers with LDAP backend ,
> > then to set one as master and other as slave , then replicate LDAP
> > database  in master to slave
> >
> >
> > I shutdown second samba server  and only first samba DC was running .
> > Then I added one XP client to first samba server , I can successfully
> > logged in to the domain
> >
> >
> > Then I shutdown first server and  started second server (every
> > settings in first and second server is same . Also the ID is set to
> > same value using setlocalid command )
> >
> >
> > but the xp can't login to the domain ..
> >
> >
> >
> > please help me to figure out the problem
> >
> >
> > I documented every thing in a wiki ... please go through the
> > steps .
> >
> >
> > http://wiki.basil-kurian.co.cc/index.php/SMB_DC_WITH_REPLICATION
> 
> didn't bother looking at the wiki but...
>
> Only the PDC should have a localsid and domainsid that are the same. The
> BDC should be joined to the domain and will have a different localsid.
>
> It would seem that your LDAP needs to support multi-master replication
> so 'writes' could happen at either the PDC or the BDC and LDAP will
> handle the sync'ing of the changes.
>
> You can look at the logs in the samba log directory for whichever
> machine is having a problem logging in to determine the reason for the
> login failure.
>
> Craig
>
>
> --
> 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
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] A proposed CentOS mailing list FAQ

2010-07-30 Thread Tom H
On Fri, Jul 30, 2010 at 10:35 AM,   wrote:
>
> I threatened to do this a few months ago Here's a first draft. I
> was thinking of it as something that might get posted the beginning of
> the month, or sent to someone who drops in with "it doesn't work!!!".
>
>    PLEASE feel free, no, *please* rip, shred, tear, rend this, and help
> me make it usable.
>
> #
>
> 1. This mailing list is here for folks around the world to share knowledge
> about CentOS
>     and Linux. This is not a paid tech support organization - if you want
> that, buy
>     a RedHat subscription.
>
> 2. We are not here to do your job for you. If you think we should, perhaps
> you
>      should pay us. Before asking us, have you:
>   a) read the documentation (RTFM)?
>   b) checked the CentOS wiki for howtos and FAQs?
>         i) , and click on "information"
>         ii) 
>   c) googled for documents on the Web?
>
> 3. Many of your problems have been discussed and solved. Feel free to ask
> for a link
>      to the solution, or the discussion.
>
> 4. When you post a question,
>   a) mention the version of CentOS, and of any other software;
>   b) give a full explanation of the problem, not merely "networking is
> broke,
>        how do I fix it", or something like that, and
>   c) Include error messages if possible. Do *not* put pages of them - edit
>        so that you give only a few lines of example, or only the relevant
>        message lines, not, say, the entire dump of dmesg.

First the negative comments.

In (1), "if you want that, buy a RedHat subscription" is unnecessary.

In (2), "If you think we should, perhaps you should pay us" is really
unnecessary.

Second the positive comments.

Overall, a very good undertaking.

In (4)
- use a meaningful subject
- separate opinion from fact
- use a pastebin to post a full log
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] KTorrent on CentOS 5.5 does not exist

2010-07-30 Thread MGW-Discussions

Greetings guys.

What repo do I need to install to be able to install ktorrent?

I have CentOS 5.5 however, when attempting to download a distro for use
on a virtual machine, which only seems to provide a torrent,  I am
unable to locate any torrent clients, and yum installation fails for
ktorrent.

I thought that ktorrent was associated with kde so why isn't it
installed by default?

Thanks.

-- 
Respectfully,

Martes G Wigglesworth
M. G. Wigglesworth Holdings, LLC
www.mgwigglesworth.com

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


Re: [CentOS] KTorrent on CentOS 5.5 does not exist

2010-07-30 Thread Ned Slider
On 30/07/10 19:59, MGW-Discussions wrote:
>
> Greetings guys.
>
> What repo do I need to install to be able to install ktorrent?
>

RPMForge has it.

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

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


Re: [CentOS] A proposed CentOS mailing list FAQ

2010-07-30 Thread m . roth
First of all, I want to thank everyone who's responded so far - keep them
emails coming, boys and girls! (Seriously - I mean it.)

Next:
Tom H wrote:
> On Fri, Jul 30, 2010 at 10:35 AM,   wrote:
>>
>> I threatened to do this a few months ago Here's a first draft. I
>> was thinking of it as something that might get posted the beginning of
>> the month, or sent to someone who drops in with "it doesn't work!!!".
>>
>>    PLEASE feel free, no, *please* rip, shred, tear, rend this, and help
>> me make it usable.
>>
>> #
>>
>> 1. This mailing list is here for folks around the world to share
>> knowledge about CentOS and Linux. This is not a paid tech support
organization
>> - if you want that, buy a RedHat subscription.
>>
>> 2. We are not here to do your job for you. If you think we should,

> First the negative comments.
>
> In (1), "if you want that, buy a RedHat subscription" is unnecessary.

Why?
>
> In (2), "If you think we should, perhaps you should pay us" is really
> unnecessary.

Again, why? *Part* of the reason are the folks who come on, and give us
either a Windows user type of complaint (it doesn't work!), or who seem to
want us to write them a step-by-step for what they need to do (and some of
them have had RHCE and other certs to their sigfile, which tells us how
solid those certs are), who obviously have never even *tried* to look for
the answers.

Some of us get irritated with that.
>
> Second the positive comments.
>
> Overall, a very good undertaking.

Again, thanks. I'm thinking of this in the way of the FAQs we had/have on
usenet.
>
> In (4)
> - use a meaningful subject
> - separate opinion from fact
> - use a pastebin to post a full log

What's the link to pastebin (I always just cut&paste, and only give a few
relevant lines, with all the other kruft cut out, so I've never needed
it)?

 mark

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


Re: [CentOS] A proposed CentOS mailing list FAQ

2010-07-30 Thread Bowie Bailey
 On 7/30/2010 3:05 PM, m.r...@5-cent.us wrote:
> First of all, I want to thank everyone who's responded so far - keep them
> emails coming, boys and girls! (Seriously - I mean it.)
>
> Next:
> Tom H wrote:
>> On Fri, Jul 30, 2010 at 10:35 AM,   wrote:
>>> I threatened to do this a few months ago Here's a first draft. I
>>> was thinking of it as something that might get posted the beginning of
>>> the month, or sent to someone who drops in with "it doesn't work!!!".
>>>
>>>PLEASE feel free, no, *please* rip, shred, tear, rend this, and help
>>> me make it usable.
>>>
>>> #
>>>
>>> 1. This mailing list is here for folks around the world to share
>>> knowledge about CentOS and Linux. This is not a paid tech support
> organization
>>> - if you want that, buy a RedHat subscription.
>>>
>>> 2. We are not here to do your job for you. If you think we should,
> 
>> First the negative comments.
>>
>> In (1), "if you want that, buy a RedHat subscription" is unnecessary.
> Why?
>> In (2), "If you think we should, perhaps you should pay us" is really
>> unnecessary.
> Again, why? *Part* of the reason are the folks who come on, and give us
> either a Windows user type of complaint (it doesn't work!), or who seem to
> want us to write them a step-by-step for what they need to do (and some of
> them have had RHCE and other certs to their sigfile, which tells us how
> solid those certs are), who obviously have never even *tried* to look for
> the answers.
>
> Some of us get irritated with that.

Agreed, but the phrases that Tom wanted removed give a whiny/defensive
tone.  Keep the main points, just remove those phrases and stick to
telling the poster what we want him to do.

>> Second the positive comments.
>>
>> Overall, a very good undertaking.
> Again, thanks. I'm thinking of this in the way of the FAQs we had/have on
> usenet.
>> In (4)
>> - use a meaningful subject
>> - separate opinion from fact
>> - use a pastebin to post a full log
> What's the link to pastebin (I always just cut&paste, and only give a few
> relevant lines, with all the other kruft cut out, so I've never needed
> it)?

Umm   That would be www.pastebin.com...  :)

http://lmgtfy.com/?q=pastebin

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


[CentOS] DHCPD

2010-07-30 Thread tony . chamberlain

Not sure if there is a DHCPD/PXE forum so I will ask here.

I have been trying to get netboot to work (i.e. a machine with nothing on it
but a NIC card, no linux, no operating system, whatever) boots up and receives
a file from a dhcp server.  This dhcp server gives it all the Linux stuff
it needs so a full install can be done over the network.

I actually got this working by turning my desktop into a DHCP server and
placing the Linux images.  My problem?  Now everyone, especially with windows
machines, is complaining that their machine keeps telling them "unknown 
network" and "no internet connection".  Oops, my DHCP server was intercepting
all the other DHCP requests normally for our actual router (192.168.5.1).

I can get around this by unplugging my machine from the LAN and just having
it on a very small network with only two IPS (my desktop DHCP server and
the machine doing the boot).  However, I would rather stay connected to the
LAN especially if I have to go out over it to get an install package (like
DDD).

Can I somehow tell my desktop only to handle PXE requests and anything
else should go to 192.168.5.1?

Couple minor questions but I can save time asking here too:

I can't figure out the correct "option" or keyword to assign host name
via DHCP.

Is there a way I can have a user choose whether to install 4.5 or 5.4
(CentOS) via boot?  I put multiple choices into the C0 file but it ignored
all but one.


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


Re: [CentOS] DHCPD

2010-07-30 Thread Terry Polzin
On Fri, 2010-07-30 at 19:35 +, tony.chamberl...@lemko.com wrote:
> Not sure if there is a DHCPD/PXE forum so I will ask here.
> 
> I have been trying to get netboot to work (i.e. a machine with nothing on it
> but a NIC card, no linux, no operating system, whatever) boots up and receives
> a file from a dhcp server.  This dhcp server gives it all the Linux stuff
> it needs so a full install can be done over the network.
> 
> I actually got this working by turning my desktop into a DHCP server and
> placing the Linux images.  My problem?  Now everyone, especially with windows
> machines, is complaining that their machine keeps telling them "unknown 
> network" and "no internet connection".  Oops, my DHCP server was intercepting
> all the other DHCP requests normally for our actual router (192.168.5.1).
> 
> I can get around this by unplugging my machine from the LAN and just having
> it on a very small network with only two IPS (my desktop DHCP server and
> the machine doing the boot).  However, I would rather stay connected to the
> LAN especially if I have to go out over it to get an install package (like
> DDD).
> 
> Can I somehow tell my desktop only to handle PXE requests and anything
> else should go to 192.168.5.1?
> 
> Couple minor questions but I can save time asking here too:
> 
> I can't figure out the correct "option" or keyword to assign host name
> via DHCP.
> 
> Is there a way I can have a user choose whether to install 4.5 or 5.4
> (CentOS) via boot?  I put multiple choices into the C0 file but it ignored
> all but one.
> 
> 
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
I put a line in my dhcpd.conf file something like the following;

host rhel5ppc2.olysteel.com {fixed-address 192.168.0.53; hardware
ethernet ca:10:e0:00:40:03; next-server 192.168.1.137; filename
"ppc64.img"; update-static-leases on;}

You have to know the mac of the PXE client nic.  Maybe you shouldn't
have a pool in your config file either or a different pool of maybe 1
address for the nic you want to PXE boot.


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


Re: [CentOS] DHCPD

2010-07-30 Thread Christoph Maser
Am 30.07.2010 21:35, schrieb tony.chamberl...@lemko.com:
>
> Can I somehow tell my desktop only to handle PXE requests and anything
> else should go to 192.168.5.1?


Configure your DHCP server only to talk only to certain clients. (deny 
unknown-clients) see man dhcpd.conf.


> Couple minor questions but I can save time asking here too:
>
> I can't figure out the correct "option" or keyword to assign host name
> via DHCP.
>
> Is there a way I can have a user choose whether to install 4.5 or 5.4
> (CentOS) via boot?  I put multiple choices into the C0 file but it ignored
> all but one.

Yes you can do that via the pxelinux config files 
http://syslinux.zytor.com/wiki/index.php/PXELINUX#How_do_I_Configure_PXELINUX.3F

If you plan to do more machines in the future it might be worth to have 
a look at cobbler https://fedorahosted.org/cobbler/.

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


Re: [CentOS] A proposed CentOS mailing list FAQ

2010-07-30 Thread Tom H
On Fri, Jul 30, 2010 at 3:05 PM,   wrote:
> First of all, I want to thank everyone who's responded so far - keep them
> emails coming, boys and girls! (Seriously - I mean it.)

You're welcome.


> Next:
> Tom H wrote:
>> On Fri, Jul 30, 2010 at 10:35 AM,   wrote:
>>>
>>> I threatened to do this a few months ago Here's a first draft. I
>>> was thinking of it as something that might get posted the beginning of
>>> the month, or sent to someone who drops in with "it doesn't work!!!".
>>>
>>>    PLEASE feel free, no, *please* rip, shred, tear, rend this, and help
>>> me make it usable.
>>>
>>> #
>>>
>>> 1. This mailing list is here for folks around the world to share
>>> knowledge about CentOS and Linux. This is not a paid tech support
> organization
>>> - if you want that, buy a RedHat subscription.
>>>
>>> 2. We are not here to do your job for you. If you think we should,
> 
>> First the negative comments.
>>
>> In (1), "if you want that, buy a RedHat subscription" is unnecessary.
>
> Why?
>>
>> In (2), "If you think we should, perhaps you should pay us" is really
>> unnecessary.
>
> Again, why? *Part* of the reason are the folks who come on, and give us
> either a Windows user type of complaint (it doesn't work!), or who seem to
> want us to write them a step-by-step for what they need to do (and some of
> them have had RHCE and other certs to their sigfile, which tells us how
> solid those certs are), who obviously have never even *tried* to look for
> the answers. Some of us get irritated with that.

I understand and share your frustration(s) but both these sentences
seem too petty to be in an informative email.


>> In (4)
>> - use a meaningful subject
>> - separate opinion from fact
>> - use a pastebin to post a full log
>
> What's the link to pastebin (I always just cut&paste, and only give a few
> relevant lines, with all the other kruft cut out, so I've never needed
> it)?

Sometimes what the person asking for help selects to post is
irrelevant so a full log output on http://pastebin.centos.org/ can be
useful.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] When should LVM be used?

2010-07-30 Thread Ron Blizzard
On Fri, Jul 30, 2010 at 12:57 AM, Fajar Priyanto  wrote:

> You don't need LVM if you don't plan to expand the filesystem (or a
> particular mount point).

Okay, thanks. By reading the responses, it appears the very least I
should do is not let CentOS do a standard setup -- in other words I
should save some space on the hard drive.

-- 
RonB -- Using CentOS 5.5
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] When should LVM be used?

2010-07-30 Thread Ron Blizzard
On Fri, Jul 30, 2010 at 5:50 AM, Juergen Gotteswinter  wrote:

> * snaphotting (great for db backup)
> * resizing partition
> * "online" partitioning

I didn't know LVM would do snapshots -- I'll have to look into that.
But I'm guessing the feature is pretty much worthless if the whole
hard drive is taken up by one LVM partition -- which has been my
CentOS default setups.

Thanks.

-- 
RonB -- Using CentOS 5.5
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] When should LVM be used?

2010-07-30 Thread Ron Blizzard
On Fri, Jul 30, 2010 at 6:18 AM, Robert Heller  wrote:

> LVM has a number of useful features and advantages.  The 'default'
> RedHat/CentOS LVM setup (basically creating one LVM volume taking up all
> available space for the root file system), is pretty useless.  With
> modern *large* disks.  LVM (if set up properly) allows creating and/or
> resizing logical disks without having to shutdown and/or rebooting the
> system.  This is often usefull for installing virtual processes (eg with
> xen).

Thanks. I don't know if my 160 Gig hard drive would qualify as a
modern *large* disk or not, but it's definitely bigger than the
current 20 Gig one.  I thought an external USB drive would work fine,
but I'm finding the current situation is too cramped.

Is there any way to mount an LVM partition from another Linux distribution?

-- 
RonB -- Using CentOS 5.5
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] When should LVM be used?

2010-07-30 Thread Ron Blizzard
On Fri, Jul 30, 2010 at 8:13 AM, Benjamin Franz  wrote:

> You can use LVM for taking snapshots as well (very useful if you want to
> quiesce databases for the shortest possible time for backups) .  And you
> can use LVM to migrate data from an old drive to a new one or even to
> *shrink* a partition. I've never found LVM to 'be a pain'. 99% of the
> time it's invisible, and 1% of the time it's indispensable.

I guess my ignorance is showing. It could also be that the small hard
drives that I usually use with CentOS really can't take advantage of
this feature. So far I haven't done much with servers, but I have been
experimenting with Asterisk and plan to work through the "Foundations
of CentOS" -- so that should change.

-- 
RonB -- Using CentOS 5.5
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] When should LVM be used?

2010-07-30 Thread Ron Blizzard
On Fri, Jul 30, 2010 at 8:33 AM, Todd Denniston
 wrote:

> Best use for LVM I have seen...
> Reducing the number of times you need to enter the LUKS pass phrase to once 
> per boot, i.e., one LUKS
> containing an LVM of / and Swap so that the system can boot with one entry of 
> the pass phrase and if
> you then have other partitions, such as an independent /home, /etc/crypttab 
> can be used (with
> appropriately constructed and protected cryptpassphrase files).

At this point I don't even know what a LUKS pass phrase is -- is this
something I'm liable to run into on a home desktop computer?

-- 
RonB -- Using CentOS 5.5
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] When should LVM be used?

2010-07-30 Thread Whit Blauvelt
On Fri, Jul 30, 2010 at 04:11:17PM -0500, Ron Blizzard wrote:

> Is there any way to mount an LVM partition from another Linux distribution?

Yes. They all support it. You might have to install a package for it, but
it's been standard for a few years pretty much across the board.

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


Re: [CentOS] When should LVM be used?

2010-07-30 Thread Robert Heller
At Fri, 30 Jul 2010 16:07:39 -0500 CentOS mailing list  
wrote:

> 
> On Fri, Jul 30, 2010 at 5:50 AM, Juergen Gotteswinter  
> wrote:
> 
> > * snaphotting (great for db backup)
> > * resizing partition
> > * "online" partitioning
> 
> I didn't know LVM would do snapshots -- I'll have to look into that.
> But I'm guessing the feature is pretty much worthless if the whole
> hard drive is taken up by one LVM partition -- which has been my
> CentOS default setups.

Yes, the *default* setup is just plain wrong, and in general should NOT
be used. Yes, the default works (one big happy filesystem), and
actually might make sense for a virtual server, but otherwise no. See 

http://www.deepsoft.com/2006/03/partitioning-for-linux/

for some thoughts on partitioning for Linux (also applies to LVM volumes).

> 
> Thanks.
> 

-- 
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software-- Linux Installation and Administration
http://www.deepsoft.com/  -- Web Hosting, with CGI and Database
hel...@deepsoft.com   -- Contract Programming: C/C++, Tcl/Tk

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


[CentOS] Redirecting PHP error messages into a log file

2010-07-30 Thread Alexander Farber
Hello,

I'm using CentOS release 5.5 x86_64 with the stock php-5.1.6-27.el5
and would like to redirect PHP messages into /var/log/httpd/php_log

First I tried adding that file name to /etc/php.ini:
error_log = "/var/log/httpd/php_log"
and restarted httpd, but the file didn't appear.
I've touched it and changed owner to apache.apache,
but that didn't help.

Then I've changed that line to error_log = syslog
and now I get the messages in /var/log/messages:

Jul 29 21:29:24 hXXX httpd: PHP Notice:
Undefined index:  REMOTE_ADDR in
/var/www/html/odnoklassniki/index.php on line 44
Jul 29 21:29:45 hXXX httpd: PHP Parse error:
syntax error, unexpected '[' in
/var/www/html/odnoklassniki/index.php on line 44

I still would like to move those message to a separate file
though, so I've added the following line to /etc/syslog.conf
and reloaded syslogd service:

httpd.* /var/log/httpd/php_log

but the file is still empty. Any hints please?

Thank you
Alex

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


Re: [CentOS] Redirecting PHP error messages into a log file

2010-07-30 Thread Jason Pyeron
 

> -Original Message-
> From: centos-boun...@centos.org 
> [mailto:centos-boun...@centos.org] On Behalf Of Alexander Farber
> Sent: Friday, July 30, 2010 18:47
> To: CentOS mailing list
> Subject: [CentOS] Redirecting PHP error messages into a log file
> 
> Hello,
> 
> I'm using CentOS release 5.5 x86_64 with the stock 
> php-5.1.6-27.el5 and would like to redirect PHP messages into 
> /var/log/httpd/php_log
> 
> First I tried adding that file name to /etc/php.ini:
> error_log = "/var/log/httpd/php_log"
> and restarted httpd, but the file didn't appear.
> I've touched it and changed owner to apache.apache, but that 
> didn't help.
> 
> Then I've changed that line to error_log = syslog and now I 
> get the messages in /var/log/messages:
> 
> Jul 29 21:29:24 hXXX httpd: PHP Notice:
> Undefined index:  REMOTE_ADDR in
> /var/www/html/odnoklassniki/index.php on line 44 Jul 29 
> 21:29:45 hXXX httpd: PHP Parse error:
> syntax error, unexpected '[' in
> /var/www/html/odnoklassniki/index.php on line 44
> 
> I still would like to move those message to a separate file 
> though, so I've added the following line to /etc/syslog.conf 
> and reloaded syslogd service:
> 
> httpd.* 
> /var/log/httpd/php_log
> 
> but the file is still empty. Any hints please?

Selinux issue?

> 
> Thank you
> Alex
> 
> --
> http://preferans.de
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Principal Consultant  10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.


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


Re: [CentOS] Redirecting PHP error messages into a log file

2010-07-30 Thread Alexander Farber
So you think the "httpd.*" line in syslog.conf is correct?

On Sat, Jul 31, 2010 at 12:48 AM, Jason Pyeron  wrote:
>> -Original Message-
>> I still would like to move those messages to a separate file
>> though, so I've added the following line to /etc/syslog.conf
>> and reloaded syslogd service:
>>
>> httpd.*   /var/log/httpd/php_log
>>
>> but the file is still empty. Any hints please?

> Selinux issue?
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] hplip under CentOS-5.5

2010-07-30 Thread Timothy Murphy
Dag Wieers wrote:

>> Is anyone successfully using hplip under CentOS?
>> When I try to print on my HP Officejet J4580
>> I always get the error
>> --
>> Printer Filter "foomatic-rip-hplip" for printer "oj" not available:
>> No such file or directory
>> --

> If you're interested, RPMforge has an updated hplip in testing that
> supports many more (and newer) devices. It does have an incompatibility
> with dbus, but works fine for my HP PhotoSmart printer that wouldn't work
> otherwise.
> 
> You can find those packages here:
> 
>  http://packages.sw.be/hplip/

Thanks very much.
I'll try that.




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


Re: [CentOS] Redirecting PHP error messages into a log file

2010-07-30 Thread John R. Dennison
On Sat, Jul 31, 2010 at 12:57:07AM +0200, Alexander Farber wrote:
> So you think the "httpd.*" line in syslog.conf is correct?

No, it's incorrect.

Syslog filters based on facility and priority.  "httpd" is not
a known facility.  "man 5 syslog.conf" will list the available
facilities.  I see no quick reference to what facility php
is using, but if I had to hazard a guess I'd say it was
"daemon"; the priority remains in question, though.

Due to potential for DOS I'd not use syslog for this, however;
I would use error_log pointing to an accessible path, making
whatever selinux changes may be required.




John


-- 
You can safely assume you've created God in your own image when it turns
out that God hates all the same people you do.

-- Anne Lamott (10 April 1954-), American author, Bird by Bird


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


Re: [CentOS] A proposed CentOS mailing list FAQ

2010-07-30 Thread Michael Klinosky
m.r...@5-cent.us wrote:
> 2. We are not here to do your job for you. If you think we should, perhaps
> you
>   should pay us. Before asking us, have you:
>a) read the documentation (RTFM)?
>b) checked the CentOS wiki for howtos and FAQs?
>  i) , and click on "information"
>  ii) 
>c) googled for documents on the Web?

Line c should include a link - thus:
http://google.com/linux
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] When should LVM be used?

2010-07-30 Thread JohnS

On Fri, 2010-07-30 at 17:32 -0400, Robert Heller wrote:
> Yes, the *default* setup is just plain wrong, and in general should NOT
> be used. Yes, the default works (one big happy filesystem), and
> actually might make sense for a virtual server, but otherwise no. See 

Yea the default works but how is it Plain Wrong?  If it was flat out
wrong then Upstream would not allow it.  Raid 1 disk array with one hot
spare on a hardware raid controller under a SAN server is what you
saying is wrong?  Case is, the array is not using /home or /var; were
only exporting nfs luns direct attached.  What on earth and why would I
want to have another drive for /var &/home in this case.  I'm just
asking but not arguing.  There are cases where it works exceptionally.
In fact my opinion is it works nice for newbies, untill they gets a lil
experience.

> http://www.deepsoft.com/2006/03/partitioning-for-linux/

With number one I do not agree.  You can install apps under winblows in
any location.  Not every Unix/Linux system has the same file layout.
Debian vs CentOS

John

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


[CentOS] What is the best strategy for updating CentOS from 4 to 5?

2010-07-30 Thread Todd Cary
No doubt I have waited just a little too long, but I think it is time to 
upgrade before it is not supported.  My server is not heavily used 
(mostly for viewing images) and my Admin skills are better than beginner 
but NOT guru.

Todd

-- 
Ariste Software
Petaluma, CA 94952

http://www.aristesoftware.com

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


Re: [CentOS] What is the best strategy for updating CentOS from 4 to 5?

2010-07-30 Thread John R Pierce
  On 07/30/10 10:26 PM, Todd Cary wrote:
> No doubt I have waited just a little too long, but I think it is time to
> upgrade before it is not supported.  My server is not heavily used
> (mostly for viewing images) and my Admin skills are better than beginner
> but NOT guru.

backup your files, configurations, etc, wipe the system, clean install 
centos 5, restore your configurations and files.

if all your user and server files are on seperate file systems from /, 
/var, /usr, then you may be able to leave them inplace as long as you're 
careful with the installer not to touch your data filesystems.


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