简体   繁体   English

如何使用beaglebone black发送电子邮件更新?

[英]How to send email updates with beaglebone black?

I am trying to do a (presumably) very simple task. 我想做一个(大概)非常简单的任务。 I want my Beaglebone Black (BBB) to send me an email when a button wired to it is pushed. 我希望我的Beaglebone Black(BBB)在按下连接到它的按钮时向我发送电子邮件。

A) I don't know for sure if I have Angstrom or Debian (or otherwise?) and I don't know how to find out A)我不确定我是否有Angstrom或Debian(或其他?)我不知道如何找出

B) I'm aware of email services include msmtp, ssmtp, exim4, etc from my current efforts on the topic, but I don't know how to download, install, and set them up (or even which one I should use) B)我知道电子邮件服务包括msmtp,ssmtp,exim4等我当前在这个主题上的努力,但我不知道如何下载,安装和设置它们(甚至我应该使用哪一个)

C) I'm going to have to figure out how to actually write the logic (syntax, where/how to write the code in the first place, all that jazz) C)我将不得不弄清楚如何实际编写逻辑(语法,首先在哪里/如何编写代码,所有的爵士乐)

Background info: I'm currently using Putty as my terminal to talk to the BBB. 背景信息:我目前正在使用Putty作为我的终端与BBB交谈。 I've found that I need to connect an ethernet cable directly to the BBB (instead of piggybacking via USB tot he laptop's wireless) to actually get network capability. 我发现我需要将以太网电缆直接连接到BBB(而不是通过USB搭载笔记本电脑的无线)以实际获得网络功能。 I do have previous experience with microcontroller coding, but not with operating systems. 我之前有过微控制器编码的经验,但没有操作系统。

I've been working on this for the past few days, but this is my first time getting my hands dirty with a BBB (and Linux, operating systems in general), so most of the tutorials I've been reading aren't very helpful because they assume I know things that I don't (they say "install this package"....but how?). 过去几天我一直在研究这个问题,但这是我第一次用BBB(以及Linux,一般的操作系统)弄脏手,所以我读过的大部分教程都不是很有用,因为他们认为我知道我不知道的事情(他们说“安装这个包”......但是如何?)。 If we could piece together a sort of step-by-step for this whole process, that would vastly help both myself and anyone else trying to do what I'm doing. 如果我们能够为整个过程拼凑出一个步骤,这将极大地帮助我自己和其他任何试图做我正在做的事情的人。 Thanks much! 非常感谢!

The main tutorial I'm following: http://inspire.logicsupply.com/2014/04/alarm1-send-email.html 我正在遵循的主要教程: http//inspire.logicsupply.com/2014/04/alarm1-send-email.html

Some other links I've been using: http://dumb-looks-free.blogspot.com/2014/06/beaglebone-black-bbb-send-mail-via-gmail.html (can't post the rest of the links because my reputation isn't high enough.) 我一直在使用的其他一些链接: http//dumb-looks-free.blogspot.com/2014/06/beaglebone-black-bbb-send-mail-via-gmail.html (不能发布其余的链接链接,因为我的声誉不够高。)

A) cat /etc/issue should answer that A) cat /etc/issue应该回答这个cat /etc/issue
B) This will depend on which distribution you run. B)这取决于您运行的分发。 (I'd recommend Debian , regardless of what you run right now) (无论你现在跑什么,我都会推荐Debian
C) That will depend very much on what you use to write that. C)这在很大程度上取决于你用它来写的东西。 Note: You can use any Debian tutorial for the email setup part. 注意:您可以将任何 Debian教程用于电子邮件设置部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM