- Codice: Seleziona tutto
su - root
- Codice: Seleziona tutto
apt-get install sendxmpp
echo "me@myjabberserver.com mypassword" >> ~/.sendxmpprc
chmod 700 ~/.sendxmpprc
cp -v ~/.sendxmpprc /etc/sendxmpprc
installare i seguenti moduli perl:
- Codice: Seleziona tutto
cpan Net::XMPP
cpan Net::Jabber
cpan XML::Stream
editare il file:
- Codice: Seleziona tutto
nano /usr/share/perl5/Net/XMPP/Protocol.pm
commentare le seguenti righe:
- Codice: Seleziona tutto
# if($self-> && $self->->GetStreamFeature($self->GetStreamID(
# ),“xmpp-sasl”))AuthSASL - Try and auth using SASL, the XMPP preferred way of authenticating.
e anche:
- Codice: Seleziona tutto
# if($self->{STREAM}->GetStreamFeature($self->GetStreamID(),"xmpp-sasl"))
# {
# return $self->AuthSASL(%args);
# }
invio messaggio XMPP:
- Codice: Seleziona tutto
echo "test" | sendxmpp -s hello me@myjabberserver.com