Re: [CentOS] Amavisd start - SOLVED

2013-12-22 Thread Jussi Hirvi
This was connected with SELinux. I disabled SELinux and rebooted 
(naughty me), and things are back to normal.

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


[CentOS] Amavisd start

2013-12-22 Thread Jussi Hirvi
This is CentOS 6. Why can it be that when I try to run
/etc/init.d/amavisd start
... I get this error:
Starting Mail Virus Scanner (amavisd): Config file "/etc/amavisd.conf" 
is inaccessible: Permission denied, at /usr/sbin/amavisd line 2085.
[FAILED]

But when I use sh:
sh /etc/init.d/amavisd start
...it starts ok.

This is connected to the fact that my amavisd.conf is from another 
machine (CentOS 5). If I replace amavisd.conf with the default conf 
(that came with yum install amavisd-new), the starting problem goes away.

I would like to debug this, but I don't know where to look.

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


Re: [CentOS] Serial Console Config in 6.5

2013-12-22 Thread SilverTip257
On Sun, Dec 22, 2013 at 2:15 PM, Michael Lampe
wrote:

> Camron W. Fox wrote:
>
> > After upgrading from 6.4 to 6.5, our serial console configuration non
> > longer work. We have the following upstart file: ...
>
> According to the comments in /etc/init/serial.conf you shouldn't have a
> /etc/init/ttyS0.conf or do anything to /etc/securetty. This is all
> handled automatically. You just add 'console=tty0 console=ttySX,YZ' to
> the kernel line in grub and that's it.
>

+1
-- passing serial params to the kernel in grub.conf should be all it takes
with the CentOS 6 initscripts

In the past I incorrectly configured both and they fought (caused a
feedback loop).  Tail /var/log/secure and you'll find invalid logins every
couple of seconds if you have this type of feedback loop. :)

In most of my cases, the feedback loop only seemed to begin when I
disconnected from the serial console (Serial over LAN).


>
> I did it like this a couple of days ago on 6.5. Works as advertised for
> me but I have never used a serial console before.
>

If you want Linux kernel boot output redirected to serial, the grub.conf
modifications are necessary.  BUT if you just want a getty listening once
the machine is fully booted, a separate serial initscript is worthwhile.


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



-- 
---~~.~~---
Mike
//  SilverTip257  //
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] monitor config in xorg.conf

2013-12-22 Thread ken
On 12/22/2013 11:15 AM Ned Slider wrote:
> On 22/12/13 15:29, ken wrote:
>> On 12/22/2013 07:46 AM Reindl Harald wrote:
>>>
>>>
>>> Am 22.12.2013 13:36, schrieb ken:
 What's the smoothest way to change the monitor on a system?  I've done
 this before and, aside from the initial cold boot (after unplugging the
 old monitor and plugging in the new one), it also took restarting X
 (gnome) several times to get the (new) monitor tuned correctly.

 The "new" (actually a bit old) monitor is an Acer P191W d.  It is a
 19-inch, LCD flat-screen.  Other specs:

 Aspect Ratio 16:10,
 Native Resolution 1440 x 900 at 75 Hz
 Pixel Pitch 0.284 mm

 Does anyone have an xorg.conf entry for this monitor and/or suggestions
 as to what a workable (or optimal) xorg.conf entry might be?
>>>
> CentOS 5 or CentOS 6?

5.


>
> Are you using any proprietary display drivers, or are you using the
> native Xorg drivers?

Just the native... at least to start out.


>
> Answers to these questions will affect your options.
>
> I'd back up any current xorg.conf file, plug it in and restart X and see
> what happens. If it's not to your liking try running your Xorg config
> utility (which can be different for different proprietary display drivers).

I did the "restart X and see what happens" thing for a different monitor 
a few months ago and it made a real mess of things.  So that's 
specifically what I'm trying to avoid this time... if I can.  Having a 
working xorg.conf, in my experience, is a better, cleaner way to go.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Remove/deactivate the session and language buttons in login screen

2013-12-22 Thread cbul...@gmail.com
Hi All,

I'm using centOS 6.4 with openbox as windows manager. I modified
/etc/X11/xinit/Xsession file in orden to set up openbox as default
windows manager for all users (I changed gnome-session to openbox-session).
Now, I would like to remove or deactivate the the session and language
button in login screen. I tried to find these using gconf-editor but
without any luck. I could change the banner text message and disabled
user list but nothing for the other buttons.
Any clue how can I accomplish this?

Thanks in advance!


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


Re: [CentOS] Serial Console Config in 6.5

2013-12-22 Thread Michael Lampe
Camron W. Fox wrote:

> After upgrading from 6.4 to 6.5, our serial console configuration non
> longer work. We have the following upstart file: ...

According to the comments in /etc/init/serial.conf you shouldn't have a 
/etc/init/ttyS0.conf or do anything to /etc/securetty. This is all 
handled automatically. You just add 'console=tty0 console=ttySX,YZ' to 
the kernel line in grub and that's it.

I did it like this a couple of days ago on 6.5. Works as advertised for 
me but I have never used a serial console before.

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


Re: [CentOS] Log rolling with a daemon

2013-12-22 Thread Larry Martell
On Sat, Dec 21, 2013 at 9:46 PM, Cliff Pratt  wrote:
> John's suggestion is still pertinent. You'll need a SIGHUP handler in your
> script. Logrotate could send the SIGHUP in a postrotate 'script'.

Thanks!


> On Sun, Dec 22, 2013 at 3:15 PM, Larry Martell wrote:
>
>> On Sat, Dec 21, 2013 at 8:52 PM, John R Pierce 
>> wrote:
>> > On 12/21/2013 4:56 PM, Larry Martell wrote:
>> >> I'm looking for advice or suggestions for rolling log files with a
>> >> daemon. I have a python script that I daemonized with
>> >>
>> http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/
>> .
>> >> Before I daemonized it it was run from a bash script that invoked the
>> >> underlying python script. It ran the python script, waited for it to
>> >> complete and then it slept for 5 seconds and ran it again. This was in
>> >> a infinite loop. In between each invocation it checked the log file
>> >> and if it was over 10MB it renamed it and then the next invocation
>> >> started with a new empty log. Since each invocation was a separate run
>> >> this worked fine.  But now the daemonized python script doesn't exit -
>> >> the same log file is attached to it forever. So my renaming of the
>> >> file does nothing - the i node doesn't change and it's still logging
>> >> to the same large file. Anyone have any ideas how I can achieve this
>> >> sort of log rolling in this situation?
>> >>
>> >
>> > send a SIGHUP to syslog  and it shoudl re-opent he log files.
>> >
>> > silly question, but whats wrong with the logrotate daemon thats built
>> > into centos?
>>
>> This is not using syslog. If you look at the daemonizing script I gave
>> the link to, you pass in the log files for stdout and stderr, and it
>> does some double fork magic and then associates the given files with
>> them.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] monitor config in xorg.conf

2013-12-22 Thread Ned Slider
On 22/12/13 15:29, ken wrote:
> On 12/22/2013 07:46 AM Reindl Harald wrote:
>>
>>
>> Am 22.12.2013 13:36, schrieb ken:
>>> What's the smoothest way to change the monitor on a system?  I've done
>>> this before and, aside from the initial cold boot (after unplugging the
>>> old monitor and plugging in the new one), it also took restarting X
>>> (gnome) several times to get the (new) monitor tuned correctly.
>>>
>>> The "new" (actually a bit old) monitor is an Acer P191W d.  It is a
>>> 19-inch, LCD flat-screen.  Other specs:
>>>
>>>Aspect Ratio 16:10,
>>>Native Resolution 1440 x 900 at 75 Hz
>>>Pixel Pitch 0.284 mm
>>>
>>> Does anyone have an xorg.conf entry for this monitor and/or suggestions
>>> as to what a workable (or optimal) xorg.conf entry might be?
>>
>> there is no xorg.conf these days becaue it's auto-detected
>> and if you have one *that* might be the problem
>
> Reindl, perhaps your system is configured differently or something, but
> nothing you said reflects my experience.
>
> Everybody else, my situation and query stand as they are.  Any solutions?
>
> Thanks.
>

CentOS 5 or CentOS 6?

Are you using any proprietary display drivers, or are you using the 
native Xorg drivers?

Answers to these questions will affect your options.

I'd back up any current xorg.conf file, plug it in and restart X and see 
what happens. If it's not to your liking try running your Xorg config 
utility (which can be different for different proprietary display drivers).


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


Re: [CentOS] monitor config in xorg.conf

2013-12-22 Thread ken
On 12/22/2013 07:46 AM Reindl Harald wrote:
>
>
> Am 22.12.2013 13:36, schrieb ken:
>> What's the smoothest way to change the monitor on a system?  I've done
>> this before and, aside from the initial cold boot (after unplugging the
>> old monitor and plugging in the new one), it also took restarting X
>> (gnome) several times to get the (new) monitor tuned correctly.
>>
>> The "new" (actually a bit old) monitor is an Acer P191W d.  It is a
>> 19-inch, LCD flat-screen.  Other specs:
>>
>>   Aspect Ratio 16:10,
>>   Native Resolution 1440 x 900 at 75 Hz
>>   Pixel Pitch 0.284 mm
>>
>> Does anyone have an xorg.conf entry for this monitor and/or suggestions
>> as to what a workable (or optimal) xorg.conf entry might be?
>
> there is no xorg.conf these days becaue it's auto-detected
> and if you have one *that* might be the problem

Reindl, perhaps your system is configured differently or something, but 
nothing you said reflects my experience.

Everybody else, my situation and query stand as they are.  Any solutions?

Thanks.

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


[CentOS] monitor config in xorg.conf

2013-12-22 Thread ken
What's the smoothest way to change the monitor on a system?  I've done 
this before and, aside from the initial cold boot (after unplugging the 
old monitor and plugging in the new one), it also took restarting X 
(gnome) several times to get the (new) monitor tuned correctly.

The "new" (actually a bit old) monitor is an Acer P191W d.  It is a 
19-inch, LCD flat-screen.  Other specs:

 Aspect Ratio 16:10,
 Native Resolution 1440 x 900 at 75 Hz
 Pixel Pitch 0.284 mm

Does anyone have an xorg.conf entry for this monitor and/or suggestions 
as to what a workable (or optimal) xorg.conf entry might be?

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