#ubuntu

Sunday project: Huginn, Docker & Ansible

Some time ago I set up a #Twitter account posting #WWII "as it happened" events to #Socialhome (see here). This was accomplished using Zapier that reads the tweets and then POST's to the Socialhome API.

All that worked great and #Zapier is really nice. Except it's limited to 100 events per month on the free tier and this seems wasn't enough for the WWII tweets coming in. Zapier paid plans are from $20/mo which is way too much just to replicate some tweets.

At first I thought about making my own app to do all this but then I remembered running into Huginn, which I have been wanting to install anyway. It's basically a self-hosted #IFTT or Zapier, but allowing for even more complex stuff like unlimited chaining of events.

Docker + Ansible

I'm pretty new to #Docker but eventually I want to dockerize more of my apps. So of course I was happy to see #Huginn has a Docker image, allowing me to not have to muck about with any more #RoR apps. I use #Ansible for pretty much everything, so it made sense to build a playbook to deploy the app in a Docker container.

Luckily (or thanks to the fantastic Ansible team that is!), maintaining Docker containers with Ansible is as easy as doing anything else with it.

I chose to keep the web server out of the containers to use my standard #LetsEncrypt role for getting SSL on top. This made the role very simple, having only to 1) fetch SSL cert, 2) set up Apache to proxy and 3) push up a container.

The docker_container Ansible module call is basically just this:

 ---
 - docker_container:
   name: huginn
   image: huginn/huginn
   volumes:
     - "{{ huginn_db_volume_mount }}:/var/lib/mysql"
   env:
     APP_SECRET_TOKEN: "{{ huginn_secret }}"
     DOMAIN: "{{ huginn_domain }}"
     FORCE_SSL: "{{ huginn_https}}"
     INVITATION_CODE: "{{ huginn_invitation_code }}"
     MAIL_FROM_ADDRESS: "{{ huginn_mail_from }}"
     RAILS_ENV: production
     SMTP_DOMAIN: "{{ huginn_smtp_domain }}"
     SMTP_PASSWORD: "{{ huginn_smtp_password }}"
     SMTP_PORT: "{{ huginn_smtp_port }}"
     SMTP_SERVER: "{{ huginn_smtp_server }}"
     SMTP_USER_NAME: "{{ huginn_smtp_username }}"
     TWITTER_OAUTH_KEY: "{{ huginn_twitter_key }}"
     TWITTER_OAUTH_SECRET: "{{ huginn_twitter_secret }}"
   register: _docker_huginn

The container IP is then picked up from _docker_huginn by Apache to do the proxying.

The playbook itself, without any extra customization is pretty much here:

 ---
 - hosts: myhost
   become: yes
   become_user: root

   vars:
     letsencrypt_email: youremail@example.com
     huginn_domain: huginn.example.com
     huginn_invitation_code: changeme!
     huginn_secret: changeme!

   roles:
     - huginn

The result is the ansible-huginn role. Tested on #Ubuntu 14.04. Right now a bit limited in terms of configuration that can be passed in. Will expand as necessary.

Fun Huginn stuff

Some initial things I want to do is to use the chaining to make the tweet replicating not embed the tweet, but instead rip out the text + media and create a normal post instead. That should make for cleaner streams with less Twitter JS firing off.

Any tips on fun stuff to do with Huginn?

huginn/huginn
huginn - Create agents that monitor and act on your behalf. Your agents are standing by!

Jason Robinson

Linux Lite's Hardware Database

We've just hit 9000+ submissions to the Hardware Database! Thank you to each and everyone one of you who have participated to date. Onwards to 10,000! #linux #ubuntu #debian #linuxlite #gnu #fsf #xfce #windows7 #windows8 #windows10 #macos #operatingsystem #distro #kernel

linuxlite@joindiaspora.com

#Ubuntu Touch OTA-2 Release | UBports

https://ubports.com/blog/ubports-blog-1/post/ubuntu-touch-ota-2-release-78

Ubuntu Touch OTA-2 Release

Jason Robinson

BeagleBone Black Board Tour and Out-of-box-experience - YouTube

https://www.youtube.com/watch?v=ciX08ysl6LE

#beaglebone #beagleboneblack #gnu #linux #android #ubuntu #debian #hardware #software


Diego Ariel Capeletti

Desktop: #AKiTiO Node, #Ubuntu Podcast, #Vivaldi, #Chromium and #HUION #PenTablet http://www.tuxmachines.org/node/105083 #gnu #linux

Linux

BeagleBoard.org - black

ingresa aquí la descripción de la imagen

BeagleBone Black is a low-cost, community-supported development platform for developers and hobbyists. Boot Linux in under 10 seconds and get started on development in less than 5 minutes with just a single USB cable. Processor: AM335x 1GHz ARM® Cortex-A8

 512MB DDR3 RAM
 4GB 8-bit eMMC on-board flash storage
 3D graphics accelerator
 NEON floating-point accelerator
 2x PRU 32-bit microcontrollers

Connectivity

 USB client for power & communications
 USB host
 Ethernet
 HDMI
 2x 46 pin headers

Other BeagleBone derivatives » Software Compatibility

 Debian
 Android
 Ubuntu
 Cloud9 IDE on Node.js w/ BoneScript library
 plus much more

http://beagleboard.org/black

#beaglebone #beagleboneblack #gnu #linux #android #ubuntu #debian #hardware #software

Diego Ariel Capeletti

Ubuntu Community Council 2017 election under way! http://fridge.ubuntu.com/2017/09/21/ubuntu-community-council-2017-election-under-way/ #ubuntu #gnu #linux

Dr. Roy Schestowitz (罗伊)

it's like #microsoft is paying some OEMs (like Novell) for non-compete agreements http://news.softpedia.com/news/canonical-teams-up-with-microsoft-to-enable-new-azure-tailored-ubuntu-kernel-517787.shtml and #ubuntu almost exits desktop

Dr. Roy Schestowitz (罗伊)

Website is up for Mindfulness at the Computer

https://sunyatazero.github.io/mindfulness-at-the-computer/

Pre-release download for 64-bit Linux is now available. Version is 1.0.0-alpha.1. (Download for Windows is coming soon, but you can run from source with Python installed on your computer)

https://sunyatazero.github.io/mindfulness-at-the-computer/downloads.html

#mindfulness #self-care #software #gnu #linux #gnu-linux #ubuntu #freedom #foss #floss #free-software

Sunyata

#Ubuntu 17.10 (Artful Aardvark) Is Now Powered by #Linux #Kernel 4.13, #GCC 7.2 http://www.tuxmachines.org/node/105016

Linux

#Ubuntu 17.10 (Artful Aardvark) Is Now Powered by #Linux #Kernel 4.13, #GCC 7.2 http://news.softpedia.com/news/ubuntu-17-10-artful-aardvark-is-now-powered-by-linux-kernel-4-13-gcc-7-2-517780.shtml not the latest

Dr. Roy Schestowitz (罗伊)

#Debian /Ubuntu: #Q4OS, #Ubuntu Dock and #LXD Weekly Status Update http://www.tuxmachines.org/node/104996

Linux

#Ubuntu Dock Features Adaptive Transparency on Ubuntu 17.10, Here's How It Works http://news.softpedia.com/news/ubuntu-dock-features-adaptive-transparency-on-ubuntu-17-10-here-s-how-it-works-517774.shtml #gnu #linux

Dr. Roy Schestowitz (罗伊)

Firefly COM dual boots Android and Ubuntu on hexa-core RK3399 http://www.tuxmachines.org/node/104985 #gnome #gnu #linux #ubuntu #android

Linux

#Ubuntu and #LinuxMint Development http://www.tuxmachines.org/node/104963 #gnu #linux

Linux

#Ubuntu #GNOMEShell in Artful: Day 13 http://www.tuxmachines.org/node/104962 #canonical #gnu #linux #gnome

Linux

#BlueBorne Vulnerability Is Patched in All Supported #Ubuntu Releases, Update Now http://www.tuxmachines.org/node/104954 #gnu #linux #security

Linux

What's New In #LinuxLite 3.6 http://www.tuxmachines.org/node/104951 #ubuntu #gnu #linux

Linux

#Ubuntu: Applications Survey, #Mir support for #Wayland, #Canonical #OpenStack Pike and #BrightComputing http://www.tuxmachines.org/node/104947

Linux

Bright Computing Announces Support for Ubuntu https://www.hpcwire.com/off-the-wire/bright-computing-announces-support-ubuntu/ #ubuntu #gnu #linux #hpc

Dr. Roy Schestowitz (罗伊)