Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
tuto:linux_divers:installer_ejabberd_sur_centos [25/01/2011 11:19] dani [Configuration de de base] |
tuto:linux_divers:installer_ejabberd_sur_centos [05/09/2013 17:19] (Version actuelle) |
||
---|---|---|---|
Ligne 9: | Ligne 9: | ||
===== Configuration des dépôts tiers ===== | ===== Configuration des dépôts tiers ===== | ||
- | Suivre ce [[extras_repo|how-to]] pour configurer les dépôts tiers | + | Suivre ce [[tuto: |
===== Installer Ejabberd ===== | ===== Installer Ejabberd ===== | ||
Ligne 297: | Ligne 297: | ||
{mod_version, | {mod_version, | ||
{mod_admin_extra, | {mod_admin_extra, | ||
+ | % {mod_archive_odbc, | ||
+ | % {default_auto_save, | ||
+ | % {enforce_default_auto_save, | ||
+ | % {default_expire, | ||
+ | % {enforce_min_expire, | ||
+ | % {enforce_max_expire, | ||
+ | % {replication_expire, | ||
+ | % {session_duration, | ||
+ | % {wipeout_interval, | ||
+ | % {mod_log_chat, | ||
+ | |||
+ | |||
{mod_echo, | {mod_echo, | ||
]}. | ]}. | ||
Ligne 313: | Ligne 325: | ||
</ | </ | ||
+ | ===== Installer spectrum ===== | ||
+ | [[http:// | ||
+ | <code bash> | ||
+ | yum --enablerepo=epel install spectrum | ||
+ | </ | ||
+ | |||
+ | ==== Configurer la passerelle MSN ==== | ||
+ | |||
+ | Il faut d' | ||
+ | < | ||
+ | [service] | ||
+ | # enable this spectrum instance | ||
+ | enable=1 | ||
+ | |||
+ | # one of: aim, facebook, gg, icq, irc, msn, myspace, qq, simple, xmpp, yahoo | ||
+ | protocol=msn | ||
+ | |||
+ | # component ip | ||
+ | server=127.0.0.1 | ||
+ | |||
+ | # if use_proxy is 1, the http_proxy env var will be used as the proxy server | ||
+ | # for example export http_proxy=" | ||
+ | use_proxy=0 | ||
+ | |||
+ | # component JID | ||
+ | jid=$protocol.domain.tld | ||
+ | |||
+ | # component secret | ||
+ | password=secret | ||
+ | |||
+ | # component port | ||
+ | port=5347 | ||
+ | |||
+ | config_interface = / | ||
+ | |||
+ | # IP:port where filetransfer proxy binds to. This has to be public IP. | ||
+ | # | ||
+ | |||
+ | # IP:port which will be sent in filetransfer request as stream host. | ||
+ | # | ||
+ | |||
+ | # admin JIDs - Jabber IDs of transport administrators who have access to admin adhoc commands | ||
+ | # separated by semicolons | ||
+ | # | ||
+ | |||
+ | # directory where downloaded files will be saved | ||
+ | filetransfer_cache=/ | ||
+ | |||
+ | # URL used to acces filestransfer_cache directory from the web. | ||
+ | filetransfer_web=http:// | ||
+ | |||
+ | # name of transport (this will appear in service discovery) | ||
+ | name=MSN Transport | ||
+ | |||
+ | # default language | ||
+ | language=fr | ||
+ | |||
+ | # transport features separated by semicolons | ||
+ | # combination of: avatars, chatstate, filetransfer | ||
+ | # if commented, all features will be used | ||
+ | # This variable is DEPRECATED and will be removed in future versions. Use [features] instead. | ||
+ | # | ||
+ | |||
+ | # if vip_mode is 1, users are divided to 2 groups according to ' | ||
+ | vip_mode=0 | ||
+ | |||
+ | # if vip_mode is 1, you can set transport to be availabe only for VIP users by setting only_for_vip to 1. | ||
+ | only_for_vip=0 | ||
+ | |||
+ | # if vip_mode is 1 and only_for_vip is 1, users can connect from these servers even they are not VIP. | ||
+ | # This feature is useful, if you want to enable transport only for users from your server, but also want | ||
+ | # to give access to VIP users from other servers (for example from GTalk) | ||
+ | # seperated by semicolons | ||
+ | allowed_servers=localhost; | ||
+ | |||
+ | # transport features separated by semicolons which will be used for VIP users. | ||
+ | # combination of: avatars, chatstate, filetransfer | ||
+ | # if commented, all features will be used | ||
+ | # This variable is DEPRECATED and will be removed in future versions. | ||
+ | # | ||
+ | |||
+ | # pid file | ||
+ | pid_file=/ | ||
+ | |||
+ | # require_tls to connect legacy network | ||
+ | # | ||
+ | |||
+ | # Eventloop used by Spectrum. Allows to change default use of poll to epoll, | ||
+ | # which should be faster and handles more connections better. | ||
+ | # WARNING: some 3rd party libpurple protocol plugins are not prepared to be | ||
+ | # used with different eventloop, but protocols included in libpurple by default | ||
+ | # works OK. | ||
+ | # | ||
+ | |||
+ | [registration] | ||
+ | # Set to 0 to disable transport registration to everyone except | ||
+ | # people from host from allowed_servers list. | ||
+ | enable_public_registration=0 | ||
+ | |||
+ | # You can override username registered by transport user. This is useful | ||
+ | # for example if you want to let users to register only their Facebook name | ||
+ | # and internally connect them to facebook_name@chat.facebook.com. | ||
+ | # $username variable is replaced by username which has been registered | ||
+ | # by particular user. | ||
+ | # | ||
+ | |||
+ | # This option allows you to white-list newly created accounts according | ||
+ | # to regexp. for example allowed_usernames=*.\.gmail\.com$ will allow only | ||
+ | # GTalk users to register. If you use username_mask, | ||
+ | # applied before this option. | ||
+ | allowed_usernames=*.\.firewall-services\.com$ | ||
+ | |||
+ | # Label used to described username field in registration form | ||
+ | # | ||
+ | |||
+ | # This variable overrides default instructions text in registration form. | ||
+ | # | ||
+ | |||
+ | # Transport features, all features are enabled by default. | ||
+ | [features] | ||
+ | # | ||
+ | #avatars=1 | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # Transport features for VIP users, all features are enabled by default. | ||
+ | [vip-features] | ||
+ | # | ||
+ | #avatars=1 | ||
+ | # | ||
+ | |||
+ | [logging] | ||
+ | # log file, needs to be unique for each spectrum instance | ||
+ | log_file=/ | ||
+ | |||
+ | # log areas | ||
+ | # combination of: xml, purple | ||
+ | log_areas=xml; | ||
+ | |||
+ | [database] | ||
+ | # mysql or sqlite | ||
+ | type=sqlite | ||
+ | |||
+ | # hostname (not needed for sqlite) | ||
+ | # | ||
+ | |||
+ | # username (not needed for sqlite) | ||
+ | #user=user | ||
+ | |||
+ | # password (not needed for sqlite) | ||
+ | # | ||
+ | # sqlite: set path to database file here | ||
+ | # mysql: set to name of database | ||
+ | database=/ | ||
+ | # table prefix for multiple transport instances sharing the same database | ||
+ | # | ||
+ | |||
+ | [purple] | ||
+ | # avatar, vcard, roster storage | ||
+ | # needs to be unique for each spectrum instance | ||
+ | userdir=/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | Puis, il faut démarrer spectrum: | ||
+ | <code bash> | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Les logs d' | ||
+ | ===== Activer les services ===== | ||
+ | Une fois que tout est fonctionnel, | ||
+ | |||
+ | <code bash> | ||
+ | chkconfig ejabberd on | ||
+ | chkconfig mysqld on | ||
+ | chkconfig spectrum on | ||
+ | </ |