nail is very cool. Think mailx meets SMTP auth w/ SSL.
We are making the jump to Google Apps for your Domain and I needed a way for Nagios to send alerts out our Google Apps account. Here’s how I got nail speaking to my Google Apps Account, but it will work just fine with your plain ol’ GMail account as well:
sudo aptitude install nail ca-certificates
Then add the following to the ~/.mailrc of the user that needs it (it my case nagios)
set smtp-use-starttls
set pop-use-starttls
set smtp-auth=login
set smtp=smtp.gmail.com:587
set pop=pop.gmail.com:996
set from=USER@DOMAIN
set smtp-auth-user=USER@DOMAIN
set smtp-auth-password=PASSWORD
and now for a test to run as that user:
nail -s 'Testing123' bobsyouruncle@aol.com ...
Yeah by now you’ve heard of GAP - Google’s App Engine. It’s all the buzz these days. One thing I’m excited about is this statement:
I’d also like to mention that Python is the just first language that we’re offering with App Engine. We’re working on more, but for now, we’d like to get feedback from you on the system as a whole, to see what you like.
How much do you wanna bet that ruby is next? (though I can see php slipping in there too.)
Mormons for Open Source. Phe. nom. i. nal.
(I’m pretty sure that these directions will also work for older versions of ubuntu.)
You need to install a program on your Treo 650 that will let it become a USB modem like:
Treo USBModem or PdaNet
If anyone knows of any free / open source software for the palm that will do the same thing let me know!
/etc/chatscripts/USBModem:
TIMEOUT 5
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\rRINGING\r'
'' \rATZ
TIMEOUT 12
OK ATD#777
TIMEOUT 22
CONNECT ""
/etc/ppp/peers/USBDialup:
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/USBDialup"
defaultroute
usepeerdns
/dev/ttyACM0 115200
local
novj
You may notice that when you turn on the usbmodem software on the Treo and plug it in you may see something like this in dmesg:
[110049.340000] usb 3-1: new full speed USB device using uhci_hcd and address 5
[110049.508000] usb 3-1: configuration #1 chosen from 1 choice
[110049.512000] cdc_acm 3-1:1.0: ttyACM0: USB ACM device
That’s where you find out what tty port the USB modem will be communicating on: /dev/ttyACM0. And that’s the port used in /etc/ppp/peers/USBDialup.
The rest is easy…
pon USBDialup
And you’re gold! You can then tail -f /var/log/messages to ensure it’s connecting alright.
Thanks Railscasts!
<% flash.each do |key, msg| %>
<%= content_tag :div, msg, :id => “flash_#{key}” %>
<% end %>
Ubuntu’s super-awesome new version is out. Help the world and grab the torrent here.
I’ve updated my lds.org greasemonkey script to link to both google and yahoo maps. Find it here: Spicy Ward Web File
UPDATE: It’s new home is here: http://userscripts.org/scripts/show/8357
I’ve just updated my SpicyWardWeb greasemonkey script to include SkypeOut links next to the phone numbers in the membership directory. You can find it here.
I’ve just hacked together a beta version of what I hope will be the start of some ultra-cool greasemonkey scripts for lds.org. I’ve called mine SpicyWardWeb and it modifies your ward website membership directory page by adding google maps links to the addresses. I’m up for more cool ideas to implement. Let me know what you think. XPath rocks!
To use it you’ll need Firefox and Greasemonkey.
my new tumblelog: http://scottyb.tumblr.com/