Install msmtp:
sudo apt-get install msmtp
then:
create a file ~/.msmtprc
then chmod 0600 ./msmtprc
Edit .msmtprc:
- - - - - - - - - - - - - - - - -
account accountName
host smtp.gmail.com
tls on
tls_certcheck off
port 587
auth login
from user@domain.com
user user@domain.com
password PASSWORD
account default: accountName
- - - - - - - - - - - - - - - - -
To send e-mail, first create e-mail template, e.g:
- - - - - - - - - - - - - - - - -
To: someone@domain.com
From: user@domain.com
Subject: TOPIC
CONTENT OF THE EMAIL
- - - - - - - - - - - - - - - - -
and finally:
cat myscripts/sendmail.txt | msmtp -a accountName recipient@domain.com
where parameters are: "-a ACCOUNT" -> profile from .msmtprc and recipient.
Reference: http://code.google.com/p/google-gadgets-for-linux/wiki/MSMPTQuickStart
To send automatic emails about torrent completion from transmission one has to:
- set up transmission
- set up msmtp
- as my transmission runs as root as per the config in /etc/transmission-daemon, I had to place .msmtprc to root's home directory (in my case /root)
This is a bLog of my voyages into the world of linux, raspberry pi, openwrt, android & ios...
Monday, 25 November 2013
Saturday, 16 November 2013
Up till today
This is all the interesting stuff I have done and configured so far. From now on every change I make in my rPI setup will be reflected in this blog for future reference.
* change audio output
xbmc-send -a "command"
* smb,samba
http://malinowepi.pl/post/50091493128/raspbmc-i-openelec-jako-sieciowe-serwery-z
http://malinowepi.pl/post/40102430385/dysk-sieciowy-instalacja-samby
* webmin
http://c-mobberley.com/wordpress/index.php/2013/04/16/webmin-setup/
http://www.webmin.com/deb.html
* amule
http://bokunoshumi.wordpress.com/2012/12/09/convierte-tu-raspberry-pi-en-un-servidor-de-descargas-amule/
http://www.paolocampitelli.com/2013/04/17/tutorial-come-trasformare-il-raspberry-pi-in-un-muletto-media-center/
https://github.com/MatteoRagni/AmuleWebUI-Reloaded
* change audio output
http://www.wexoo.net/20130330/changing-audio-and-other-settings-in-raspbmc
Go to /home/pi/.xbmc/userdata/guisettings.xml and change audiooutput>mode to 3
Go to /home/pi/.xbmc/userdata/guisettings.xml and change audiooutput>mode to 3
* command line XBMC
http://boshdirect.com/Blogs/Tech/set-xbmc-to-auto-update-library.html,
http://wiki.xbmc.org/index.php?title=List_of_built-in_functions
http://boshdirect.com/Blogs/Tech/set-xbmc-to-auto-update-library.html,
http://wiki.xbmc.org/index.php?title=List_of_built-in_functions
sudo apt-get install xbmc-eventclients-xbmc-send
and then
http://malinowepi.pl/post/50091493128/raspbmc-i-openelec-jako-sieciowe-serwery-z
http://malinowepi.pl/post/40102430385/dysk-sieciowy-instalacja-samby
http://c-mobberley.com/wordpress/index.php/2013/04/16/webmin-setup/
http://www.webmin.com/deb.html
* amule
http://bokunoshumi.wordpress.com/2012/12/09/convierte-tu-raspberry-pi-en-un-servidor-de-descargas-amule/
http://www.paolocampitelli.com/2013/04/17/tutorial-come-trasformare-il-raspberry-pi-in-un-muletto-media-center/
https://github.com/MatteoRagni/AmuleWebUI-Reloaded
Etykiety:
amule,
audio,
barracuda drive,
command line,
tricks,
webdav,
xbmc
Subscribe to:
Posts (Atom)