[SLL] DenyHosts install problem solved.

Paul Franz paul at eucleides.com
Fri Feb 27 19:25:58 PST 2009


It took a couple of days to get DenyHosts working on a Fedora Core 1 installation. I
believe the problem comes from installation scripts not properly dealing with multiple
Python installations.

I had previously installed python 3.0 and 2.61 and had problems so it was suggested I
use the 2.5 rpm and install Python 2.5. I did, same problem. Here's a log of what I
did and how I got it working. What I don't know how to do is to prepare an rpm for
DenyHosts or fix the scripts in the tarball. Please read this and it will probably be
very easy for you to suggest what I need to do to supplement the readme file, and
create rpms for installing both Python and DenyHosts.

Thank you,
Paul Franz
paul at eucleides.com

[root at Beaker bin]# pwd
/root/bin
[root at Beaker bin]# /usr/local/bin/python3.0 /usr/bin/denyhosts.py -c
/usr/share/denyhosts/denyhosts.cfg
  File "/usr/bin/denyhosts.py", line 26
    print "Usage:"
                 ^
SyntaxError: invalid syntax

[root at Beaker bin]# wget
http://downloads.sourceforge.net/denyhosts/DenyHosts-2.6-python2.5.rpm?use_mirror=internap

[root at Beaker bin]# ls -l | grep DenyHosts-2.6
drwxr-x---   5 paul    paul        4096 Dec  7  2006 DenyHosts-2.6
-rw-r--r--   1 root    root       72969 Oct  3 20:50 DenyHosts-2.6-python2.5.rpm
-rw-r--r--   1 root    root       42667 Dec  7  2006 DenyHosts-2.6.tar.gz

[root at Beaker bin]# wget http://www.python.org/ftp/python/2.5.4/Python-2.5.4.tgz
--12:02:21--  http://www.python.org/ftp/python/2.5.4/Python-2.5.4.tgz
           => `Python-2.5.4.tgz'
Resolving www.python.org... done.
Connecting to www.python.org[82.94.164.162]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11,604,497 [application/x-tar]

100%[======================================================================>]
11,604,497    29.37K/s    ETA 00:00

12:08:51 (29.37 KB/s) - `Python-2.5.4.tgz' saved [11604497/11604497]

[root at Beaker bin]# tar -xzvf Python-2.5.4.tgz

(lots of stuff)



More information about the linux-list mailing list