[RESOLU] SME 7.5 + Installer Contributio DenyHosts a la main

Forum dédié à la distribution du même nom et que vous pourrez télécharger sur http://www.contribs.org. La nouvelle version de cette distribution se nomme SME Server. Une description est donnée sur le portail phénIXUS : http://www.ixus.net/sme-server/.

[RESOLU] SME 7.5 + Installer Contributio DenyHosts a la main

Message par HP77 » 23 Mai 2012 12:34

[edit]
Edition #1 = 2012-05-24@09h37_SGT
- Changement du titre : suite a sujet [RESOLU]
- Ancien titre : [RESOLU] SME 7.5.1 + Installer Contrib' DenyHosts a la main
[/edit]



Bonjour,

:!: Avant toute autre chose, j'ai l'intention de faire de ce fil un tutoriel reutilisable pour d'autres contributions a installer a la main.
(en "bon utilisateur SME type", un detour par le Shell me rappelle tres vite la limite de mes connaissances en la matiere... :roll: :oops: )


:arrow: Suite a un probleme de "ping" / "temps de latence" trop eleve (semble-t-il), je me vois dans l'obligation d'installer la contribution SmeServer-DenyHosts a la main.


Je viens enfin de trouver le fichier introuvable par yum (repository "smecontribs" introuvable a cause (seulement ??) d'un "ping" a plus de 300 ms (alors que d'autres repositories non cites en erreur semblent etre joignables... :roll: je n'ai pas encore vu ou est la subtilite...) : smeserver-denyhosts - smeserver-denyhosts => smeserver-denyhosts-2.6-18.el4.sme.noarch :)


Mon probleme du moment est que c'est la premiere fois que je me vois confronte' au probleme des "dependancies" ...

:arrow: Bon, je vais chercher de mon cote sur G**gle.

En attendant, je colle ici ma progression sur cette installation:
Code : Tout sélectionner
[root@ServeurTests ~]# mkdir -p /root/_Contribs/DenyHosts/

[root@ServeurTests DenyHosts]# cd /root/_Contribs/DenyHosts/

[root@ServeurTests DenyHosts]# wget http://mirror.ovh.ifec.net/releases/7.5.1/smecontribs/i386/RPMS/smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm
--18:57:19--  http://mirror.ovh.ifec.net/releases/7.5.1/smecontribs/i386/RPMS/smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm
           => `smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm'
Resolving mirror.ovh.ifec.net... 91.121.70.16
Connecting to mirror.ovh.ifec.net|91.121.70.16|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 35,039 (34K) [application/octet-stream]

100%[===========================================================================================================>] 35,039        40.51K/s

18:57:23 (40.45 KB/s) - `smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm' saved [35039/35039]

[root@ServeurTests DenyHosts]# rpm --install smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm
error: Failed dependencies:
        denyhosts >= 2.6 is needed by smeserver-denyhosts-2.6-18.el4.sme.noarch
[root@ServeurTests DenyHosts]#

[root@ServeurTests DenyHosts]# wget http://downloads.sourceforge.net/project/denyhosts/denyhosts/2.6/DenyHosts-2.6.tar.gz?r=&ts=1337770799&use_mirror=nchc
[1] 23916
[2] 23917
[root@ServeurTests DenyHosts]# --19:00:32--  http://downloads.sourceforge.net/project/denyhosts/denyhosts/2.6/DenyHosts-2.6.tar.gz?r=
           => `DenyHosts-2.6.tar.gz?r='
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://nchc.dl.sourceforge.net/project/denyhosts/denyhosts/2.6/DenyHosts-2.6.tar.gz [following]
--19:00:34--  http://nchc.dl.sourceforge.net/project/denyhosts/denyhosts/2.6/DenyHosts-2.6.tar.gz
           => `DenyHosts-2.6.tar.gz'
Resolving nchc.dl.sourceforge.net... 211.79.60.17, 2001:e10:ffff:1f02::17
Connecting to nchc.dl.sourceforge.net|211.79.60.17|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 42,667 (42K) [application/x-gzip]

100%[===========================================================================================================>] 42,667        --.--K/s

19:00:35 (495.52 KB/s) - `DenyHosts-2.6.tar.gz' saved [42667/42667]
[root@ServeurTests DenyHosts]#

[root@ServeurTests DenyHosts]# ll
total 84
-rw-r--r--  1 root root 42667 Dec  8  2006 DenyHosts-2.6.tar.gz
-rw-r--r--  1 root root   531 May 10 13:47 Install - LOG - 2012-05-10@13h45_SGT.txt
-rw-r--r--  1 root root 35039 Mar  4  2009 smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm
[1]-  Done                    wget http://downloads.sourceforge.net/project/denyhosts/denyhosts/2.6/DenyHosts-2.6.tar.gz?r=
[2]+  Done                    ts=1337770799
[root@ServeurTests DenyHosts]# rpm --install smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm                                                            error: Failed dependencies:
        denyhosts >= 2.6 is needed by smeserver-denyhosts-2.6-18.el4.sme.noarch
[root@ServeurTests DenyHosts]#


:arrow: Le contenu du fichier DenyHosts-2.6.tar.gz ne m'inspire pas vraiment pour une utilisation directe avec SME Server. Je prefere le laisser de cote pour le moment.

:arrow: A plus tard pour la suite, si je trouve ce que je cherche: "Comment resoudre les dependances des RPM". ;)

Cordialement,
HP_
Dernière édition par HP77 le 24 Mai 2012 02:39, édité 1 fois.
HP77
 
Message(s) : 127
Inscription : 03 Nov 2011 03:58
Localisation : Singapore

Re: SME 7.5.1 + Installer Contribution DenyHosts a la main

Message par unnilennium » 23 Mai 2012 13:14

unnilennium
 
Message(s) : 218
Inscription : 28 Nov 2011 19:32
Localisation : Québec, QC, Canada

Re: SME 7.5.1 + Installer Contribution DenyHosts a la main

Message par HP77 » 23 Mai 2012 13:31

Re-moi...

En cherchant ceci: how to resolve rpm dependencies

J'ai donc cela:
1. http://unixunitedprof.forumandco.com/t2 ... -resolving
2. http://answers.oreilly.com/topic/18-how ... -problems/
3. http://www.cyberciti.biz/faq/how-do-i-f ... -file-has/
4. http://ask.fedoraproject.org/question/4 ... alling-rpm
5. http://en.wikipedia.org/wiki/Dependency_hell (Dependency hell, cela s'annonce "epice" pour un debut... ;) )


1*/ Le premier lien suggere d'utiliser l'option --aid

Code : Tout sélectionner
# rpm --install --aid smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm
error: Failed dependencies:
        denyhosts >= 2.6 is needed by smeserver-denyhosts-2.6-18.el4.sme.noarch
[root@ServeurTEO DenyHosts]#


2*/ Apres un coup d'oeil rapide a l'archive DenyHosts-2.6.tar.gz, pas de trace de RPM donc, ca s'annonce plutot mal pour enchainer les RPM comme indique dans le 2eme lien de resultats.

3*/ Le 3eme lien me laisse perplexe quant a savoir quels fichiers j'ai besoin, exactement ...
Code : Tout sélectionner
[root@ServeurTests DenyHosts]# rpm -qpR smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm
/bin/sh
/usr/bin/perl
denyhosts >= 2.6
e-smith-formmagick >= 1.4.0-12
perl(Carp)
perl(Exporter)
perl(File::Basename)
perl(esmith::ConfigDB)
perl(esmith::FormMagick)
perl(esmith::FormMagick::Panel::denyhosts)
perl(esmith::cgi)
perl(esmith::util)
perl(strict)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
smeserver-release >= 7.0
[root@ServeurTests DenyHosts]#

[root@ServeurTests DenyHosts]# rpm -ivh smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm
error: Failed dependencies:
        denyhosts >= 2.6 is needed by smeserver-denyhosts-2.6-18.el4.sme.noarch
[root@ServeurTests DenyHosts]#


4*/ Ce lien semble dire que yum install ou yum localinstall ca reviendrait au meme ! :shock: J'en doute. Sinon, pourquoi s'encombrer de deux commandes differentes ?
Bon, je vais aussi rechercher les differences / nuances entre ces deux options. wikipedia/yum => yum's website

5*/ On verra demain, 20h30 et deja un peu sommeil (dormi de 5h a 7h du matin la veille...) :roll: ;)

Cordialement,
HP_
HP77
 
Message(s) : 127
Inscription : 03 Nov 2011 03:58
Localisation : Singapore

Re: SME 7.5.1 + Installer Contribution DenyHosts a la main

Message par HP77 » 23 Mai 2012 13:49


:x Comment se fait-il que je ne l'ai pas vu celui-la ?

Et, Pourquoi deux fichiers ? Quelle(s) difference(s) ? :?:


Bon, j'ai tente' et voila le resultat :

Code : Tout sélectionner
[root@ServeurTests DenyHosts]# wget http://mirror.ovh.ifec.net/releases/7.5.1/smeaddons/i386/RPMS/denyhosts-2.6-5.el4.noarch.rpm
--20:33:28--  http://mirror.ovh.ifec.net/releases/7.5.1/smeaddons/i386/RPMS/denyhosts-2.6-5.el4.noarch.rpm
           => `denyhosts-2.6-5.el4.noarch.rpm'
Resolving mirror.ovh.ifec.net... 91.121.70.16
Connecting to mirror.ovh.ifec.net|91.121.70.16|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 98,366 (96K) [application/octet-stream]

100%[===========================================================================================================>] 98,366        37.98K/s

20:33:35 (37.97 KB/s) - `denyhosts-2.6-5.el4.noarch.rpm' saved [98366/98366]

[root@ServeurTests DenyHosts]#

[root@ServeurTests DenyHosts]# rpm --install denyhosts-2.6-5.el4.noarch.rpm
'denyhosts' is not a valid service name
[root@ServeurTests DenyHosts]#


simplement ... il me crache un 'denyhosts' is not a valid service name :shock:

Merci quand meme. ;)


Juste au cas ou ca marcherait avec un bout du puzzle, j'avais aussi tente ceci avec le fichier precedent:

Code : Tout sélectionner
[root@ServeurTests DenyHosts]# yum install smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: smeaddons
Error: Cannot find a valid baseurl for repo: smeaddons
[root@ServeurTests DenyHosts]#


Mais, le "repository" smeaddons manque toujours a l'appel... :roll:


Franchement, je commence a me demander si je n'ai pas un peu "la poisse" ces derniers temps. :roll: ;)

Bon, je vais "diner" au bureau ce soir (personne "a la maison"... ;) )
A+

Cordialement,
HP_
HP77
 
Message(s) : 127
Inscription : 03 Nov 2011 03:58
Localisation : Singapore

Re: SME 7.5.1 + Installer Contribution DenyHosts a la main

Message par HP77 » 23 Mai 2012 13:57

Ahhh LALALALALALAALALALALAAAAAA !!!
Quelle petite memoire que j'ai ce soir. Image

Bon, je vais manger un morceau mais, juste avant je colle ceci:

Code : Tout sélectionner
[root@ServeurTests DenyHosts]# rpm --install smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm denyhosts-2.6-5.el4.noarch.rpm
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
        package denyhosts-2.6-5.el4 is already installed
[root@ServeurTests DenyHosts]#


Ah bon, j'ai deja quelque chose d'installe' !??
Et depuis quand ? (il n'a jamais ete' installe', yum me laissant tomber a chaque fois... :| )

Voila ce que je disais (source = http://wiki.contribs.org/Denyhosts#Chec ... ed_version ) :

Code : Tout sélectionner
[root@ServeurTests DenyHosts]# yum info installed smeserver-denyhosts
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Loading "installonlyn" plugin
[root@ServeurTests DenyHosts]#



Bon, je reviens dans 5-10 minutes. ;)

A+
HP_
HP77
 
Message(s) : 127
Inscription : 03 Nov 2011 03:58
Localisation : Singapore

Re: SME 7.5.1 + Installer Contribution DenyHosts a la main

Message par HP77 » 23 Mai 2012 15:05

Bon, me revoila avec mon probleme principal resolu. :D

Ce que j'ai fait:

0*/ pour rappel, la commande rpm --install smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm denyhosts-2.6-5.el4.noarch.rpm ne convient pas:

Code : Tout sélectionner
[root@ServeurTest DenyHosts]# rpm --install smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm denyhosts-2.6-5.el4.noarch.rpm
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
        package denyhosts-2.6-5.el4 is already installed
[root@ServeurTest DenyHosts]#



1*/ verifier si vraiment il y a quelque chose d'installe' avec yum info installed smeserver-denyhosts :

Code : Tout sélectionner
[root@ServeurTest DenyHosts]# yum info installed smeserver-denyhosts
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Loading "installonlyn" plugin
[root@ServeurTest DenyHosts]#

Pas de resultat, je prends ca comme rien du tout d'installe'.


2*/ Juste au cas ou il y aurait quelque chose quand meme mais d'incomplet : yum remove smeserver-denyhosts :
(maintenant que j'y pense, cela aurait peut-etre ete plus intelligent de ma part de commencer par la commande equivalente avec rpm ... :oops: :roll: )

Code : Tout sélectionner
[root@ServeurTest DenyHosts]# yum remove smeserver-denyhosts
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Loading "installonlyn" plugin
Setting up Remove Process
No Match for argument: smeserver-denyhosts
No Packages marked for removal
[root@ServeurTest DenyHosts]#

Bonne nouvelle, rien n'a ete trouve'.


3*/ Lancement de yum mais avec la mauvaise invocation "install" :

Code : Tout sélectionner
[root@ServeurTest DenyHosts]# yum install smeserver-denyhosts
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories


Exiting on user cancel

[root@ServeurTest DenyHosts]#

Bon, cela permet de voir la difference avec ce qui suit... ;)


4*/Lancement de yum mais avec la bonne invocation "local install FichierPrincipal.rpm FichierAuxiliaire1.rpm ..." :

Code : Tout sélectionner
[root@ServeurTest DenyHosts]# yum localinstall smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm denyhosts-2.6-5.el4.noarch.rpm
Loading "fastestmirror" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Loading "installonlyn" plugin
Setting up Local Package Process
Examining smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm: smeserver-denyhosts - 2.6-18.el4.sme.noarch
Examining denyhosts-2.6-5.el4.noarch.rpm: denyhosts - 2.6-5.el4.noarch
Marking smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm to be installed
denyhosts-2.6-5.el4.noarch.rpm: does not update installed package.
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package smeserver-denyhosts.noarch 0:2.6-18.el4.sme set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 smeserver-denyhosts     noarch     2.6-18.el4.sme   smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm   35 k

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 35 k
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
warning: only V3 signatures can be verified, skipping V4 signature
  Installing: smeserver-denyhosts          ######################### [1/1]
Migrating existing database spamassassin
Migrating existing database accounts
Migrating existing database domains
Migrating existing database configuration
Migrating existing database yum_installed
Migrating existing database yum_updates
Migrating existing database yum_repositories
Migrating existing database yum_available
Migrating existing database hosts
Migrating existing database backups
Migrating existing database mailpatterns
Migrating existing database networks

Installed: smeserver-denyhosts.noarch 0:2.6-18.el4.sme
Complete!

==============================================================
WARNING: You now need to run BOTH of the following commands
to ensure consistent system state:

signal-event post-upgrade; signal-event reboot

You should run these commands unless you are certain that
yum made no changes to your system.
==============================================================
[root@ServeurTest DenyHosts]#

Bon, la, on voit que le 2nd fichier RPM semble n'avoir joue aucun role.


5*/ Il faut upgrader via le systeme de "templates" puis rebooter le serveur (cf. message en rouge dans l'interface Server-Manager ou le panneau SSH DenyHosts est enfin visible)

Code : Tout sélectionner
[root@ServeurTest DenyHosts]# signal-event post-upgrade; signal-event reboot

Broadcast message from root (pts/0) (Wed May 23 21:25:03 2012):

The system is going down for reboot NOW!
[root@ServeurTest DenyHosts]#


Bon, cette fois c'est termine. :D ;)


Cela m'a permis de voir et comprendre la difference entre :
- yum install smeserver-denyhosts qui va chercher les infos sur les "repositories"
et
- yum localinstall smeserver-denyhosts-2.6-18.el4.sme.noarch.rpm denyhosts-2.6-5.el4.noarch.rpm qui va se contenter des fichiers RPM indique's et pre'sents en local sur la machine concerne'e.

(dites-le moi si je me trompe ou oublie quelque chose, merci ;) )


Maintenant, pour ce qui est de l'aspect "HowTo" generalise' a` d'autres "contributions", cela me semble etre un peu compromis. :|

Je passe le sujet en resolu mais je me reserve le droit de rajouter une meilleure conclusion redigee a tete reposee... ;)


Merci de m'avoir lu.

Cordialement,
HP_
HP77
 
Message(s) : 127
Inscription : 03 Nov 2011 03:58
Localisation : Singapore


Retour vers SME

Qui est en ligne ?

Utilisateur(s) parcourant ce forum : Aucun utilisateur inscrit et 1 invité

cron