Re: [CentOS] trying to install 5.2 on a laptop

2009-03-01 Thread Linux Advocate





- Original Message 
> From: Michael Klinosky 

> 
> The X wiki suggested that I try adding this to /etc/X11/xorg.conf:
> Section "ServerFlags"
>  Option "AllowMouseOpenFail" "1"
> EndSection
> 
> Using "cat xorg.conf", I seeSection "InputDevice"   , which refers 
> to the Synaptics module.
> 
> Being new-ish to linux, I can't figure out the text-based editor (vi) to 
> modify the file. I have "System Rescue CD" and "Ultimate Boot CD", but 
> (apparently) they don't mount the installed system.
> 

vi is not too difficult. 
from the commandline prompt, type ;
vi /etc/X11/xorg.conf

then press the small letter "i" to allow u to insert text.
use the arrow keys to navigate to an empty line and add the text u need.

then press ESC.
next type;

:wq   and hit enter.

from the commandline use cat to see if the changes u made hv been recorded and 
then try to reboot.



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


Re: [CentOS] mailscanner installation - centos 5.2 - rpmforge + vanderkooij rpms

2009-03-01 Thread Linux Advocate

thanx.



- Original Message 
> From: "tdu...@sc.rr.com" 
> To: CentOS mailing list 
> Cc: Linux Advocate 
> Sent: Saturday, February 28, 2009 11:38:35 PM
> Subject: Re: [CentOS] mailscanner installation - centos 5.2 - rpmforge + 
> vanderkooij rpms
> 
> I think ClamAV updates itself via cron.
> 
> The modules you are missing can be installed from CPAN maybe yum or check Dag 
> Wieers site.
> 
>  Linux Advocate wrote: 
> > 
> > Guys,  i have just installed  ( after reading
> > the docs on the mailscanner site and centos lists ) Mailscanner, and was 
> wondering
> > 
> > a.) How do i test my installation? is there some sample spam/ virus 
> > messages 
> that can be used to test.
> > 
> > b.) MailScanner -V shows;
> > 
> > b.1)
> > 
> > LibClamAV Warning: **
> > LibClamAV Warning: ***  The virus database is older than 7 days!  ***
> > LibClamAV Warning: ***   Please update it as soon as possible.***
> > LibClamAV Warning: **
> > 
> > how do i update this database?
> > 
> > b.2) there are some modules missing; how do i iinstall them or do i ignore 
> them
> > 
> > 
> >


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


Re: [CentOS] Fail2Ban

2009-03-01 Thread Robert Spangler
On Saturday 28 February 2009 23:45, Devraj Mukherjee wrote:

>  Hi all,
>
>  I am trying to get fail2ban going on my server and its log message
>  reports the following error
>
>  2009-02-16 17:42:05,339 ERROR: 'iptables -L INPUT | grep -q
>  fail2ban-SSH' returned 256
>  2009-02-16 17:42:05,354 ERROR: 'iptables -D INPUT -p tcp --dport ssh
>  -j fail2ban-SSH
>
>  Is this because of the way the RedHat tool sets up the firewall?
>
>  Thanks for any responses.

Redhart in their great wisdom decided to make themselve different.  As a way 
of making it's customers dependant on them.  This is simple to fix.

Edit the rule set with your favoirate editor and do the following:

Remove all the lines with -j RH-Firewall-1-INPUT.
Replace all the lines with RH-Firewall-1-INPUT with INPUT

The original looks something like this:

# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT


The new should look something like this:

# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp --icmp-type any -j ACCEPT
-A INPUT -p 50 -j ACCEPT
-A INPUT -p 51 -j ACCEPT
-A INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A INPUT -p udp -m udp --dport 631 -j ACCEPT
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT

Fail2Ban should work now.


-- 

Regards
Robert

Linux User #296285
http://counter.li.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] trying to install 5.2 on a laptop

2009-03-01 Thread Michael Klinosky
Ok, I modified xorg.conf, but it didn't help (still getting that error, 
and X refuses to start).

I could re-install, but I don't like that notion (I definitely don't 
want all the packages in the default setup, so I have to go thru every 
group and sub-group to de-select most - that was a big hassle with a 
'keypad mouse').

So, is there another way? Would it work if I merely put the synaptics.so 
on a usb stick and copied it?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] (a) WinPower RPM available? (b) where to install if use tar.gz file?

2009-03-01 Thread Lanny Marcus
On Sat, Feb 28, 2009 at 1:40 AM, Filipe Brandenburger
 wrote:
> On Fri, Feb 27, 2009 at 19:39, Joseph L. Casale
>  wrote:
>> Looks like rpmfind doesn't show any for RHEL :/ You might have to roll your 
>> own.
>> Let's try and get Apcupsd working first, your config was wrong to start so 
>> its worth
>> trying again.
>
> NUT RPMs seems to be available from EPEL. NUT 2.2.0 is available for
> CentOS 5. Here are the i386 RPMs:
> http://download.fedora.redhat.com/pub/epel/5/i386/repoview/nut.html

I just  installed the repo file for EPEL (and gave it a very low
priority). I installed nut and nut-client from EPEL. When I try to
start the ups daemon, I get the below error:

ups failed. The error was: Starting UPS driver controller: [FAILED]

Starting upsd: [FAILED]

Starting UPS monitor (master): [FAILED]

If I can't get apcupsd  or nut configured properly, then I will try
the WinPower software the UPS manufacturer (and many others) specify.
I have the tar ball on my hard drive (45.3 MB) and maybe I can "roll
my own" RPM for the first time.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] trying to install 5.2 on a laptop

2009-03-01 Thread Lanny Marcus
On Sun, Mar 1, 2009 at 11:41 AM, Michael Klinosky  wrote:
> Ok, I modified xorg.conf, but it didn't help (still getting that error,
> and X refuses to start).
>
> I could re-install, but I don't like that notion (I definitely don't
> want all the packages in the default setup, so I have to go thru every
> group and sub-group to de-select most - that was a big hassle with a
> 'keypad mouse').
>
> So, is there another way? Would it work if I merely put the synaptics.so
> on a usb stick and copied it?

Another thing you might do is try the CentOS LiveCD on your laptop, to
see if this distro will run properly on it. Laptops are frequently
more difficult to install CentOS on.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] trying to install 5.2 on a laptop

2009-03-01 Thread Phil Schaffner

On Sat, 2009-02-28 at 22:23 -0500, Michael Klinosky wrote:
...
> I have some Fedora install disks (if they'd be of any help) - but not
> a 
> rescue CD. It seems like CentOS doesn't have a rescue CD - would 
> Fedora's help?

The CentOS install disk IS the rescue CD - try install CD #1 (or the DVD
install images).  Unfortunately if you only downloaded the netinstall
image you may not have the correct media at hand.

Live CD as suggested elsewhere could also be useful for rescue.  May
also want to try a USB mouse.  The synaptics RPM is available from
RPMforge.  See

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

May also want to have a look at

http://wiki.centos.org/HowTos/Laptops

Laptops do tend to be problematic.  Sorry you're having problems, but
welcome to CentOS.

Phil


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


Re: [CentOS] trying to install 5.2 on a laptop

2009-03-01 Thread Kwan Lowe
On Sat, Feb 28, 2009 at 10:23 PM, Michael Klinosky  wrote:
> Hello.
> I burned a CD with the 5.2 netinstall iso, and installed it onto a
> laptop (Acer Aspire 3680). Note that I'm *totally* new to laptops.
>
> The install went fine. But, when I boot it, it errors at the user login.
> A screen comes up, stating that X11 cannot start, and that it's probably
> the mouse.

It sounds like you have at least the video drivers functioning, if not
the mouse...

> A bit of investigating revealed that there is no Synaptics module
> installed. It will boot into runlevel=3.

Have you verified if the synaptics package itself is installed:

  rpm -q synaptics

If not, is this laptop connected to the Internet?  If so, you can do:

   yum -y install synaptics

This will install the synaptics package, though doesn't install the module.

Once this is done, you can look at the xorg.conf file itself. If
you're not familiar with vi, there's another editor called "nano" that
may be easier the first few times (after that, it pays to learn vi).

The main things you need to verify are the following sections in the xorg.conf:

Section "ServerLayout"
Identifier "Layout0"
Screen  0  "Screen0" 0 0
Screen  1  "Screen1" RightOf "Screen0"
InputDevice"Keyboard0" "CoreKeyboard"
InputDevice"Synaptics" "CorePointer"
EndSection

Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
Option "Emulate3Buttons" "yes"
EndSection


> The X wiki suggested that I try adding this to /etc/X11/xorg.conf:
> Section "ServerFlags"
>         Option "AllowMouseOpenFail" "1"
> EndSection


>
> Using "cat xorg.conf", I see    Section "InputDevice"   , which refers
> to the Synaptics module.
>
> Being new-ish to linux, I can't figure out the text-based editor (vi) to
> modify the file. I have "System Rescue CD" and "Ultimate Boot CD", but
> (apparently) they don't mount the installed system.
>
> I have some Fedora install disks (if they'd be of any help) - but not a
> rescue CD. It seems like CentOS doesn't have a rescue CD - would
> Fedora's help?
>
> I need to modify xorg.conf, or figure out how to install the Synaptics
> module. How can I do that?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] trying to install 5.2 on a laptop

2009-03-01 Thread Michael Klinosky
Kwan Lowe wrote:
> Have you verified if the synaptics package itself is installed:
> 
>   rpm -q synaptics

'not installed'. Is there more to this package than just the library (.so)?

> If not, is this laptop connected to the Internet?  If so, you can do:
> 
>yum -y install synaptics
> 
> This will install the synaptics package, though doesn't install the module.

hmmm ... I didn't think of that (along with a few other readers!)

Ok, it's installed ... reboot.

YES  :)   :)  It at least boots properly!  Thaank you!

Like I mentioned, I'm new-ish to linux. And, I use the gui exclusively. 
So, it never occured to me to install in runlevel=3. I figured that I'd 
have to get it to boot somehow, then use Applications > Add/Remove 
Software. Same with vi - it just occurred to me that I could have easily 
tried 'man vi'.

> The main things you need to verify are the following sections in the 
> xorg.conf:
> 
> Section "ServerLayout"
> Identifier "Layout0"
> Screen  0  "Screen0" 0 0
> Screen  1  "Screen1" RightOf "Screen0"

One difference from yours -
Identifier   "Default Layout"
Does that matter?
Also, I don't have Screen 1 - I guess because I didn't set up multiple 
screens.

> Section "InputDevice"

Same as yours.

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


Re: [CentOS] (a) WinPower RPM available? (b) where to install if use tar.gz file?

2009-03-01 Thread Lanny Marcus
On Sun, Mar 1, 2009 at 11:42 AM, Lanny Marcus  wrote:
> On Sat, Feb 28, 2009 at 1:40 AM, Filipe Brandenburger
>  wrote:

>> NUT RPMs seems to be available from EPEL. NUT 2.2.0 is available for
>> CentOS 5. Here are the i386 RPMs:
>> http://download.fedora.redhat.com/pub/epel/5/i386/repoview/nut.html

> If I can't get apcupsd  or nut configured properly, then I will try
> the WinPower software the UPS manufacturer (and many others) specify.
> I have the tar ball on my hard drive (45.3 MB) and maybe I can "roll
> my own" RPM for the first time.
>
I would like to "roll my own" RPM for the WinPower UPS monitoring
software. Never done this before. I have the WinPower tarball on my
box. I have installed the development tools. I followed Filipe's How
to:

and these commands:
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
(for a non root user)

Questions:
(1) After I unzip the WinPower tarball, what command(s) do I use to
create an RPM for WinPower?
(2) Is there any need to install the development kernel for this?
(This is a fully updated CentOS 5.2 box, 32 bit)

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


[CentOS] Best CentOS to install on *old* laptop?

2009-03-01 Thread Bart Schaefer
I've found an old IBM OmniBook 800 and am curious whether I can get it
going again.  (Currently it boots either Windows 95 or some
then-contemporary version of Slackware.)  The CDROM is external (SCSI,
I think) and the machine won't boot from it, so it'd require a boot
floppy.  Any suggestions?  Or is CentOS entirely the wrong Linux to be
thinking about for this?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Best CentOS to install on *old* laptop?

2009-03-01 Thread Michael Klinosky
Bart Schaefer wrote:
> I've found an old IBM OmniBook 800 and am curious whether I can get it
> going again.  (Currently it boots either Windows 95 or some
> then-contemporary version of Slackware.)  The CDROM is external (SCSI,
> I think) and the machine won't boot from it, so it'd require a boot
> floppy.  Any suggestions?  Or is CentOS entirely the wrong Linux to be
> thinking about for this?

True, this is out of my league, and I'm just brainstorming, but ...

Does it have a pcmcia slot? Does anyone make a USB-pcmcia adapter?

Set up a usb stick to boot from.

Good? Or, am I totally off base?  :)

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


Re: [CentOS] Best CentOS to install on *old* laptop?

2009-03-01 Thread Les Mikesell
Bart Schaefer wrote:
> I've found an old IBM OmniBook 800 and am curious whether I can get it
> going again.  (Currently it boots either Windows 95 or some
> then-contemporary version of Slackware.)  The CDROM is external (SCSI,
> I think) and the machine won't boot from it, so it'd require a boot
> floppy.  Any suggestions?  Or is CentOS entirely the wrong Linux to be
> thinking about for this?

What are you planning to do with it?  Given the current prices on much 
faster/lighter laptops I'm not sure how much time you want to waste on 
an old one that isn't going to be a good GUI workstation anyway. If it 
boots from USB or a floppy that transfers bios control to the CDROM you 
can probably make the install work.  Centos3.x might be more lightweight 
and efficient if you don't need current desktop apps.

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

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


Re: [CentOS] Best CentOS to install on *old* laptop?

2009-03-01 Thread Kevin Krieser
2.1's support ends in a couple months.

The last time I tried to put a Linux on an obsolete box, it was on a  
computer with only 80MB of RAM.  Pick an old enough distribution to  
fit that, and I had all sorts of problems getting a PCMCIA LAN card to  
work.

If I had got it to work, it would have been usable only as a proof of  
concept.

On Mar 1, 2009, at 1:31 PM, Les Mikesell wrote:

> Bart Schaefer wrote:
>> I've found an old IBM OmniBook 800 and am curious whether I can get  
>> it
>> going again.  (Currently it boots either Windows 95 or some
>> then-contemporary version of Slackware.)  The CDROM is external  
>> (SCSI,
>> I think) and the machine won't boot from it, so it'd require a boot
>> floppy.  Any suggestions?  Or is CentOS entirely the wrong Linux to  
>> be
>> thinking about for this?
>
> What are you planning to do with it?  Given the current prices on much
> faster/lighter laptops I'm not sure how much time you want to waste on
> an old one that isn't going to be a good GUI workstation anyway. If it
> boots from USB or a floppy that transfers bios control to the CDROM  
> you
> can probably make the install work.  Centos3.x might be more  
> lightweight
> and efficient if you don't need current desktop apps.
>
> -- 
>   Les Mikesell
>lesmikes...@gmail.com
>
> ___
> 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] Best CentOS to install on *old* laptop?

2009-03-01 Thread Stephen John Smoogen
On Sun, Mar 1, 2009 at 11:09 AM, Bart Schaefer
 wrote:
> I've found an old IBM OmniBook 800 and am curious whether I can get it
> going again.  (Currently it boots either Windows 95 or some
> then-contemporary version of Slackware.)  The CDROM is external (SCSI,
> I think) and the machine won't boot from it, so it'd require a boot
> floppy.  Any suggestions?  Or is CentOS entirely the wrong Linux to be
> thinking about for this?

Its hard for us scavengers to do, but sometimes the better question
is: Is this hardware worth putting Linux on?

First I couldn't find an IBM Omnibook but I found HP ones...

http://www.gbnet.net/~richard/digital/omni.html

Basically, the system is pretty low end and maybe would run CentOS-2.1
or 3.9 but would be pretty much pushing it to do so. The hardware is
circa 1995 or so and would probably want something from the Red Hat
5.2/6.2 days versus even CentOS-2.1.

Long term you are probably going to want a different OS like Damn
Small Linux as the Omnibook looks like it hs 64 or less MB.

http://damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi?act=ST;f=8;t=20595

Most of the time, I find that the batteries are going and
non-replaceable so I find that sending them to the computer recycling
center better than trying to put something on it.

-- 
Stephen J Smoogen. -- BSD/GNU/Linux
How far that little candle throws his beams! So shines a good deed
in a naughty world. = Shakespeare. "The Merchant of Venice"
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] (a) WinPower RPM available? (b) where to install if use tar.gz file?

2009-03-01 Thread Lanny Marcus
On Sun, Mar 1, 2009 at 1:00 PM, Lanny Marcus  wrote:
> On Sun, Mar 1, 2009 at 11:42 AM, Lanny Marcus  
> wrote:
>> On Sat, Feb 28, 2009 at 1:40 AM, Filipe Brandenburger
>>  wrote:
> 
>>> NUT RPMs seems to be available from EPEL. NUT 2.2.0 is available for
>>> CentOS 5. Here are the i386 RPMs:
>>> http://download.fedora.redhat.com/pub/epel/5/i386/repoview/nut.html
> 
>> If I can't get apcupsd  or nut configured properly, then I will try
>> the WinPower software the UPS manufacturer (and many others) specify.
>> I have the tar ball on my hard drive (45.3 MB) and maybe I can "roll
>> my own" RPM for the first time.
>>
> I would like to "roll my own" RPM for the WinPower UPS monitoring
> software. Never done this before. I have the WinPower tarball on my
> box. I have installed the development tools. I followed Filipe's How
> to:
> 
> and these commands:
> mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
> echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
> (for a non root user)
>
> Questions:
> (1) After I unzip the WinPower tarball, what command(s) do I use to
> create an RPM for WinPower?
> (2) Is there any need to install the development kernel for this?
> (This is a fully updated CentOS 5.2 box, 32 bit)
>
Follow on: Neither of the 2 books I have for reference explain how to
do this. Looks like the SPEC file is the biggest mystery for me. I
discovered rpm.org and will do some online reading about RPM there.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] (a) WinPower RPM available? (b) where to install if use tar.gz file?

2009-03-01 Thread Joseph L. Casale
>When I try to
>start the ups daemon, I get the below error:
>
>ups failed. The error was: Starting UPS driver controller: [FAILED]
>
>Starting upsd: [FAILED]
>
>Starting UPS monitor (master): [FAILED]

I have never used NUT before, I just knew it existed. Apcupsd has
always done what I need but I would check the logs, I have no doubt
they would show what is wrong. Have made any initial config?
Check http://eu1.networkupstools.org/doc/2.2.0/README.html
Read the FAQ:
Once the config files are ready, start upsd:
# /usr/local/ups/sbin/upsd -u nutsrv
Check your syslog

>If I can't get apcupsd  or nut configured properly, then I will try
>the WinPower software the UPS manufacturer (and many others) specify.

Look here: http://www.apcupsd.com
And here is a possible config:
http://www.apcupsd.com/manual/Configuration_Examples.html#SECTION000133000

>I have the tar ball on my hard drive (45.3 MB) and maybe I can "roll
>my own" RPM for the first time.

You need to write a spec file, then use rpmbuild to make the rpm.
Google should hopefully provide the guidance this needs, you can
also ckeck the spec from any src.rpm file you can get by extracting
the contents: rpm2cpio example.src.rpm | cpio -dimv
The look for the spec.

jlc

Ps. My guess you:)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Best CentOS to install on *old* laptop?

2009-03-01 Thread Robert Heller
At Sun, 1 Mar 2009 10:09:47 -0800 CentOS mailing list  wrote:

> 
> I've found an old IBM OmniBook 800 and am curious whether I can get it
> going again.  (Currently it boots either Windows 95 or some
> then-contemporary version of Slackware.)  The CDROM is external (SCSI,
> I think) and the machine won't boot from it, so it'd require a boot
> floppy.  Any suggestions?  Or is CentOS entirely the wrong Linux to be
> thinking about for this?

I had no problems running WhiteBox 3.0 (same as CentOS 3.0) on a Toshiba
laptop.  It was a 586 box (P133), so I used the 586 kernels.  I did
have CentOS 4.3 on it at one point (but could not get the ISA-flavor
sound card to work).  It has 144meg of RAM and I put something like a
20gig hard drive in it.

If you have some sort of functional Linux install on it (even an old
Slackware), and have a supported network card for it, it should be
possible to contrive to do a network install, esp. if you have another
box also running Linux and capable of running NFS.

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

-- 
Robert Heller -- 978-544-6933
Deepwoods Software-- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
hel...@deepsoft.com   -- http://www.deepsoft.com/ModelRailroadSystem/
 
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] trying to install 5.2 on a laptop

2009-03-01 Thread William L. Maltby

On Sun, 2009-03-01 at 12:59 -0500, Michael Klinosky wrote:
> Kwan Lowe wrote:
> > Have you verified if the synaptics package itself is installed:
> > 
> >   rpm -q synaptics
> 
> 'not installed'. Is there more to this package than just the library (.so)?
> 
> > If not, is this laptop connected to the Internet?  If so, you can do:
> > 
> >yum -y install synaptics
> > 
> > This will install the synaptics package, though doesn't install the module.
> 
> hmmm ... I didn't think of that (along with a few other readers!)
> 
> Ok, it's installed ... reboot.
> 
> YES  :)   :)  It at least boots properly!  Thaank you!
> 
> Like I mentioned, I'm new-ish to linux. And, I use the gui exclusively. 
> So, it never occured to me to install in runlevel=3. I figured that I'd 
> have to get it to boot somehow, then use Applications > Add/Remove 
> Software. Same with vi - it just occurred to me that I could have easily 
> tried 'man vi'.

That's a heavy read if you're not familiar with regular expressions.
I'll throw a couple of quick most frequently used commands for you at
the end of this post.

> 
> > The main things you need to verify are the following sections in the 
> > xorg.conf:
> > 
> > Section "ServerLayout"
> > Identifier "Layout0"
> > Screen  0  "Screen0" 0 0
> > Screen  1  "Screen1" RightOf "Screen0"
> 
> One difference from yours -
> Identifier   "Default Layout"
> Does that matter?

No.

> Also, I don't have Screen 1 - I guess because I didn't set up multiple 
> screens.

That's ok too.

> 
> > Section "InputDevice"
> 
> Same as yours.

The basic thing to know about vi is that it has three modes. Input,
replace and interactive. Default on startup is interactive. From here
you can switch modes, move around in the file and search for things. The
most common interactive stuff is moving the cursor around with the
arrows. If you're more comfortable with them, regular letter keys can
accomplish the same movements. I tend to use them as they do not depend
on proper terminal definitions being available (hangover from the old
days when I worked on lots of different systems and terminals).

Another common interactive function is searching for stuff. Without
getting into regex, a slash followed by some text and a slash or 
finds the next occurence. Repeat as needed. Replace the slash with ? and
it goes backwards (up the file).

Scrolling through the text file can be done with , , 
and  keys. There's also standard keyboard letter equivalents.

Once positioned, you can enter input mode (which also includes
replacement of text if desired). Hitting the  key will insert
characters at the current cursor position. Hitting it a second time
replaces characters. Toggle by hitting as many times as needed. To exit
either mode use the  key.

To insert a line before or after the current one, O or o (that's "oh",
not zero) for "Open before" or "open after".

I'll leave it to your "man vi" excursion to notice the "i", "I", "a",
"A" meanings and some of the equivalents to which I've alluded above.

Another useful function is the yank and pull functions. Keep an eye out
for them. Marking lines with the letters, e.g. ma, mb, ... is also quite
useful for setting a "bookmark". Used in conjunction with the t (copy)
or m (move) commands, it can save a lot of time.

":w" writes the file (suggested for frequent saves), "ZZ" writes and
quits, as does ":wq".

Notice that ":" puts you in "command mode". Lots of possibilities there,
like changing the file name, splitting the screens, switch the active
window, reading in another file, etc.

Read small sections, test what you read to reinforce your memory and you
should get it quickly.

Happy sailing.

> 

HTH
-- 
Bill

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


Re: [CentOS] trying to install 5.2 on a laptop

2009-03-01 Thread William L. Maltby

On Sun, 2009-03-01 at 16:17 -0500, William L. Maltby wrote:
> 
Sorry, I meant to change this before I sent it.

> The basic thing to know about vi is that it has three modes. Input,

s/three/four/
s/Input/Command, input/

If you're not familiar with regex, the above may be meaningless to you.

> 

-- 
Bill

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


Re: [CentOS] trying to install 5.2 on a laptop

2009-03-01 Thread William L. Maltby

On Sun, 2009-03-01 at 16:17 -0500, William L. Maltby wrote:
> 

CRAP! Forget my other post too. Just replace interactive with command"
and we should be good.

> The basic thing to know about vi is that it has three modes. Input,
> replace and interactive. Default on startup is interactive. From here
> 

-- 
Bill

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


Re: [CentOS] (a) WinPower RPM available? (b) where to install if use tar.gz file?

2009-03-01 Thread Lanny Marcus
On Sun, Mar 1, 2009 at 3:06 PM, Joseph L. Casale
 wrote:
>>When I try to
>>start the ups daemon, I get the below error:
>>
>>ups failed. The error was: Starting UPS driver controller: [FAILED]
>>Starting upsd: [FAILED]
>>Starting UPS monitor (master): [FAILED]
>
> I have never used NUT before, I just knew it existed. Apcupsd has
> always done what I need but I would check the logs, I have no doubt
> they would show what is wrong. Have made any initial config?

Joe: Thank you for replying again! This is a learning experience for
me. I just finished getting at the WinPower Linux stuff. Not at all
what I expected! Everything seems to be JRE.  I didn't see any Linux
source files, etc., so now I assume that it is not open source and
this is not the software for me to learn how to "roll my own" RPM
with. With some other software, another day, I will begin to learn
about packaging. I just installed WinPower, the Software specified by
the UPS manufacturer, the old fashioned (non RPM way) which is highly
not recommended. After I send this email, I will try to configure it
and see if it works properly. If not, back to apcupsd and nut. I'm
going to cut out the rest of your reply. I read part of a book  on
rpm.org so now I have the beginnings of understanding how to package
something. Your help is much appreciated! Lanny

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


Re: [CentOS] (a) WinPower RPM available? (b) where to install if use tar.gz file?

2009-03-01 Thread Lanny Marcus
On Sun, Mar 1, 2009 at 4:43 PM, Lanny Marcus  wrote:
> On Sun, Mar 1, 2009 at 3:06 PM, Joseph L. Casale
>  wrote:
>>>When I try to
>>>start the ups daemon, I get the below error:
>>>
>>>ups failed. The error was: Starting UPS driver controller: [FAILED]
>>>Starting upsd: [FAILED]
>>>Starting UPS monitor (master): [FAILED]

> Joe: Thank you for replying again! This is a learning experience for
> me. I just finished getting at the WinPower Linux stuff. Not at all
> what I expected! Everything seems to be JRE.  I didn't see any Linux
> source files, etc., so now I assume that it is not open source and


I have the WinPower UPS monitoring SW running OK on Linux. Voltage in
and out is 122 and the maximum load I saw was 47%. I need to do a
simulated power failure, to verify that it will in fact shutdown the
box after 2 minutes!
Still curious about nut and apcupsd and learning how to package.
Thanks to everyone who replied!
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Deleting Large Files

2009-03-01 Thread Joseph L. Casale
I have an issue with a busy CentOS server exporting iSCSI and NFS/SMB shares.
Some of the files are very large, and when they get deleted IO climbs to an
unacceptable rate. Is there a way to purge a file with little to no IO
overhead on ext3?

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


Re: [CentOS] (a) WinPower RPM available? (b) where to install if use tar.gz file?

2009-03-01 Thread Joseph L. Casale
>I need to do a
>simulated power failure, to verify that it will in fact shutdown the
>box after 2 minutes!

Plug the PC into a stable power source, let the same PC monitor the UPS.
Unplug the UPS and place a load on it, watch what it instructs the PC to
do :)

Check your halt scripts for a command to drop the power in the UPS
*after* your root remounts ro and hopefully your ups supports this and your
bios powers up after power returns so when the outage is over, everything
returns to normal.

>Still curious about nut and apcupsd and learning how to package.
>Thanks to everyone who replied!

I would be as well:) Apcupsd and NUT are both stable, popular and well
documented projects. I am not sure about the one you are using...

jlc

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


Re: [CentOS] Fail2Ban

2009-03-01 Thread John Hinton
Agile Aspect wrote:
> Devraj Mukherjee wrote:
>   
>> Hi all,
>>
>> I am trying to get fail2ban going on my server and its log message
>> reports the following error
>>
>> 2009-02-16 17:42:05,339 ERROR: 'iptables -L INPUT | grep -q
>> fail2ban-SSH' returned 256
>> 2009-02-16 17:42:05,354 ERROR: 'iptables -D INPUT -p tcp --dport ssh
>> -j fail2ban-SSH
>>
>> Is this because of the way the RedHat tool sets up the firewall?
>>
>> Thanks for any responses.
>>
>>   
>> 
> First, have you installed iptables, shorewall, and tcp-wrappers
> installed?
>
> Second, have you tried the failed grep expression, i.e., have
> you tried
>
>   iptables -L INPUT | grep -q fail2ban-SSH
>
> As to why this would fail, you need to ask on the fail2ban
> mailing list since evidently this appears to be part of the
> installation.
>
> The iptables can be setup by anyone - RedHat simply provides
> a default set of rules.
>
>   
Actually, it is a rather OS dependent package and the rules for CentOS 
are difficult to write. That really doesn't belong on the fail2ban list 
either.

You don't need shorewall, just the standard CentOS firewall works fine. 
Just be sure to only enable iptables rules. I have rules working for 
several things. SSH attempts, Dovecot attempts and a rule to block based 
on my Spamhaus setup so that the same spammer doesn't keep loading up 
sendmail with DNS queries. Now to try to figure out a rule for email 
dictionary attacks. Unfortunately the logs don't provide a good method 
of tying the reject to an IP address. RegEx... I'm very weak at RegEx.

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


Re: [CentOS] (a) WinPower RPM available? (b) where to install if use tar.gz file?

2009-03-01 Thread Lanny Marcus
On Sun, Mar 1, 2009 at 5:43 PM, Joseph L. Casale
 wrote:
>>I need to do a
>>simulated power failure, to verify that it will in fact shutdown the
>>box after 2 minutes!
>
> Plug the PC into a stable power source, let the same PC monitor the UPS.
> Unplug the UPS and place a load on it, watch what it instructs the PC to
> do :)

I plugged the UPS into a surge protector and after awhile, I cut the
power to the UPS. The UPS continued to supply power to the box and
monitor and the alarm beeped. All OK. But, the WinPower software
supplied for the UPS did *not* shut the box down, after 2 minutes of
power failure, as I expected. The reason I installed the WinPower SW
was so it could shut down the box   Here's the output:

[la...@dell2400 Winpower]$ ./monitor
 Starting Winpower Manager:
 Done
[la...@dell2400 Winpower]$
Broadcast message from root (Sun Mar  1 18:03:28 2009):
/usr/local/Winpower/UPSPILOT.TRA
Broadcast message from root (Sun Mar  1 18:03:28 2009):
Winpower Message: LINE-INT in /dev/ttyS0 input power failed
Broadcast message from root (Sun Mar  1 18:08:52 2009):
Winpower Message: LINE-INT in /dev/ttyS0 input power restored.
Broadcast message from root (Sun Mar  1 18:08:52 2009):
/usr/local/Winpower/UPSPILOT.TRA

As you can see, I killed the power to the UPS for 5 minutes, but the
WinPower SW did *not* shut down the box. The monitoring part of the
WinPower SW works well, but their default settings are for it to
shutdown the box if the battery is low or after a 2 minute power
failure.

I will RFM the WinPower manual, but if I don't find a solution there,
there's nobody to contact, so then nut and apcupsd become much more
interesting, again.

> bios powers up after power returns so when the outage is over, everything
> returns to normal.

BIOS is set to power up the box when power is restored.
 I would be as well:) Apcupsd and NUT are both stable, popular and well
> documented projects. I am not sure about the one you are using...

The WinPower software for the UPS is apparently proprietary and I
don't see a way to contact them. That's the best way for them to do
it. If users have problems, the problems are for the users and they
don't have to support the users.   :-)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Deleting Large Files

2009-03-01 Thread Stephen John Smoogen
On Sun, Mar 1, 2009 at 3:39 PM, Joseph L. Casale
 wrote:
> I have an issue with a busy CentOS server exporting iSCSI and NFS/SMB shares.
> Some of the files are very large, and when they get deleted IO climbs to an
> unacceptable rate. Is there a way to purge a file with little to no IO
> overhead on ext3?

Is it the ext3 or the exports. M

1) What is the local storage on (controller, disks, raid, etc)
2) Does the IO go up if you do the delete locally, remotely or both
3) What is your definition of unacceptable rate?

I have seen rm on NFS tie up things on various servers.. not sure if
its something the protocol does or something with the filesystem.



-- 
Stephen J Smoogen. -- BSD/GNU/Linux
How far that little candle throws his beams! So shines a good deed
in a naughty world. = Shakespeare. "The Merchant of Venice"
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Fail2Ban

2009-03-01 Thread Agile Aspect
John Hinton wrote:
> Agile Aspect wrote:
>   
>> Devraj Mukherjee wrote:
>>   
>> 
>>> Hi all,
>>>
>>> I am trying to get fail2ban going on my server and its log message
>>> reports the following error
>>>
>>> 2009-02-16 17:42:05,339 ERROR: 'iptables -L INPUT | grep -q
>>> fail2ban-SSH' returned 256
>>> 2009-02-16 17:42:05,354 ERROR: 'iptables -D INPUT -p tcp --dport ssh
>>> -j fail2ban-SSH
>>>
>>> Is this because of the way the RedHat tool sets up the firewall?
>>>
>>> Thanks for any responses.
>>>
>>>   
>>> 
>>>   
>> First, have you installed iptables, shorewall, and tcp-wrappers
>> installed?
>>
>> Second, have you tried the failed grep expression, i.e., have
>> you tried
>>
>>   iptables -L INPUT | grep -q fail2ban-SSH
>>
>> As to why this would fail, you need to ask on the fail2ban
>> mailing list since evidently this appears to be part of the
>> installation.
>>
>> The iptables can be setup by anyone - RedHat simply provides
>> a default set of rules.
>>
>>   
>> 
> Actually, it is a rather OS dependent package and the rules for CentOS 
> are difficult to write. That really doesn't belong on the fail2ban list 
> either.
>   
Please post the iptable rule which you is believe is OS dependent.

> You don't need shorewall, just the standard CentOS firewall works fine. 
>   
It depends upon what the OP installed. The fail2ban web page
recommends shorewall be installed - so there's a chance the OP
installed it.

-- 
Article. VI. Clause 3 of the constitution of the United States states: 

"The Senators and Representatives before mentioned, and the Members of 
the several State Legislatures, and all executive and judicial Officers, 
both of the United States and of the several States, shall be bound by 
Oath or Affirmation, to support this Constitution; but no religious Test 
shall ever be required as a Qualification to any Office or public Trust 
under the United States." 


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


Re: [CentOS] Fail2Ban

2009-03-01 Thread Linux Advocate





> >  
> Actually, it is a rather OS dependent package and the rules for CentOS 
> are difficult to write. That really doesn't belong on the fail2ban list 
> either.

i have a basic fail2ban with tcp-wrappers & /etc/hosts.deny  combo working. i 
couldnt get the iptables thing working properly.

> You don't need shorewall, just the standard CentOS firewall works fine. 
> Just be sure to only enable iptables rules. I have rules working for 
> several things. SSH attempts, Dovecot attempts and a rule to block based 
> on my Spamhaus setup so that the same spammer doesn't keep loading up 
> sendmail with DNS queries. 

john, could u share your rules for the dovecot attempts?t



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


Re: [CentOS] Deleting Large Files

2009-03-01 Thread Joseph L. Casale
>Is it the ext3 or the exports. M

It's on the ext3 fs when rm'ed locally via ssh (I export some ext3
fs's over NFS and SMB).

>1) What is the local storage on (controller, disks, raid, etc)

HP MSA20 (scsi => sata discs)

>2) Does the IO go up if you do the delete locally, remotely or both
>3) What is your definition of unacceptable rate?

Well, enough that the whole machine becomes slightly unresponsive. I
tried ionice'ing it at -c3 but that had no effect. I will play with
different schedulers and see if I can find one that matches my needs.

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


Re: [CentOS] Fail2Ban

2009-03-01 Thread John Hinton
Agile Aspect wrote:
> John Hinton wrote:
>   
>> Agile Aspect wrote:
>>   
>> 
>>> Devraj Mukherjee wrote:
>>>   
>>> 
>>>   
 Hi all,

 I am trying to get fail2ban going on my server and its log message
 reports the following error

 2009-02-16 17:42:05,339 ERROR: 'iptables -L INPUT | grep -q
 fail2ban-SSH' returned 256
 2009-02-16 17:42:05,354 ERROR: 'iptables -D INPUT -p tcp --dport ssh
 -j fail2ban-SSH

 Is this because of the way the RedHat tool sets up the firewall?

 Thanks for any responses.

   
 
   
 
>>> First, have you installed iptables, shorewall, and tcp-wrappers
>>> installed?
>>>
>>> Second, have you tried the failed grep expression, i.e., have
>>> you tried
>>>
>>>   iptables -L INPUT | grep -q fail2ban-SSH
>>>
>>> As to why this would fail, you need to ask on the fail2ban
>>> mailing list since evidently this appears to be part of the
>>> installation.
>>>
>>> The iptables can be setup by anyone - RedHat simply provides
>>> a default set of rules.
>>>
>>>   
>>> 
>>>   
>> Actually, it is a rather OS dependent package and the rules for CentOS 
>> are difficult to write. That really doesn't belong on the fail2ban list 
>> either.
>>   
>> 
> Please post the iptable rule which you is believe is OS dependent.
>
>   
>> You don't need shorewall, just the standard CentOS firewall works fine. 
>>   
>> 
> It depends upon what the OP installed. The fail2ban web page
> recommends shorewall be installed - so there's a chance the OP
> installed it.
>
>   
First, I installed the RPM from dag. Some of it was set to go out of the 
box. Seems like I didn't need to do anything for SSH rules to work 
besides turning it on. Seems like VSFTP was pretty close. Dovecot was a 
write I think I might have done... or a major rewrite. Also, as there 
are differences between CentOS 3, 4 and 5... I'd also need to know which 
version you're running.

This really is a great tool. It is not easy to create rules. I was 
actually thinking that a CentOS fail2ban wiki or something might be 
nice. If it were divided into separate versions, we could share rules 
there. It took me about 3 or 4 hours to write and test just one. But 
again, I'm really slow at RegEx.

I keep seeing more attacks on just about every service available. 
Dovecot logins being the latest. VSFTP gets hit pretty hard... SSH gets 
pounded. But, using this also as a spam filter is also another good use. 
On one of my servers with moderate email traffic, it is banning about 
150 IP address per hour based just on multiple Spamhaus rejects. That's 
a lot of load reduction right there. Now, if I could start pulling out 
stuff from SpamAssassin rejects... that could drop our loads by a huge 
amount. Over time, it might even reduce the number of attempts... if 
they do any purging of old email addresses.

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


[CentOS] PAM and vsftpd

2009-03-01 Thread RobertH
i have been researching for alternatives.

it is latest centos 4 (4.7) and uses vsftpd 2.01

started (again) investigating possible PAM or PAM module way...

Q: is there a PAM way to control repeated crack retires on vsftpd?

possibly something that can be done in /etc/pam.d/vsftpd

i have been looking for a solution other than fail2ban and/or similar
methods using hosts.allow and hosts.deny or iptables

specifically, i am trying to stop repeated access to vsftpd after more than
x attempts from the same ip address

thanks in advance for any pointers..

 - rh

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


Re: [CentOS] PAM and vsftpd

2009-03-01 Thread RobertH
of course, replying to own post.

gigegigegige  ;->

what i found was

pam_abl

http://www.hexten.net/wiki/index.php/Pam_abl

it is in dag land.

search for   pam_abl dag rpm

does anyone have an experience they are willing to share with the group re:
pam_abl ?

thanks in advance

 - rh


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