{"id":105,"date":"2016-10-25T18:16:14","date_gmt":"2016-10-25T17:16:14","guid":{"rendered":"http:\/\/www.contentecontent.com\/blog\/?p=105"},"modified":"2016-10-25T18:16:14","modified_gmt":"2016-10-25T17:16:14","slug":"use-twitter-from-the-command-line-on-ubuntu-bash-for-windows","status":"publish","type":"post","link":"https:\/\/www.contentecontent.com\/blog\/2016\/10\/use-twitter-from-the-command-line-on-ubuntu-bash-for-windows\/","title":{"rendered":"Use Twitter from the command line on Ubuntu bash for Windows"},"content":{"rendered":"<p>I read <a href=\"http:\/\/www.omgubuntu.co.uk\/2016\/10\/twitter-command-line-client-rainbow-stream\">this<\/a> (&#8220;<em>Using Twitter From the Command Line Is Actually Really Fun<\/em>&#8220;) and I wanted it too. Not in an ordinary Linux box but in the Ubuntu bash on Windows 10. Turned out that I needed to add a graphical browser to be able to log into Twitter and authenticate the Rainbow Stream app.<\/p>\n<p>It isn&#8217;t hard to do, but I thought I&#8217;d write it down anyway.<\/p>\n<p>Assuming that bash is already installed, run these commands. There will be lots of notices and messages&#8230;<\/p>\n<ol>\n<li><code>sudo apt-get install python3-pip<\/code> (skip this if you already have pip; it is only required for the third step)<\/li>\n<li><code>sudo apt-get install libsqlite3-dev libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev<\/code><\/li>\n<li><code>sudo pip3 install rainbowstream<\/code><\/li>\n<li><code>sudo apt-get install firefox<\/code> (or any other web browser)<\/li>\n<li>in Windows, install an X server. I followed <a href=\"http:\/\/www.pcworld.com\/article\/3055403\/windows\/windows-10s-bash-shell-can-run-graphical-linux-applications-with-this-trick.html\">this article<\/a> and installed the Xming X Server for Windows.<\/li>\n<li>back in bash: <code>export DISPLAY=:0<\/code><\/li>\n<li><code>firefox &amp;<\/code> (should open FF in an X window)<\/li>\n<\/ol>\n<p>Hit enter to return to the prompt.<\/p>\n<p>Now run <code>rainbowstream<\/code> and authenticate the app in the browser. Enter the pin Twitter returns into rainbowstream and it should be up and running.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I read this (&#8220;Using Twitter From the Command Line Is Actually Really Fun&#8220;) and I wanted it too. Not in an ordinary Linux box but in the Ubuntu bash on Windows 10. Turned out that I needed to add a graphical browser to be able to log into Twitter and authenticate the Rainbow Stream app. &hellip; <a href=\"https:\/\/www.contentecontent.com\/blog\/2016\/10\/use-twitter-from-the-command-line-on-ubuntu-bash-for-windows\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Use Twitter from the command line on Ubuntu bash for Windows<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[17,18,19],"class_list":["post-105","post","type-post","status-publish","format-standard","hentry","category-misc","tag-twitter","tag-ubuntu","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":5,"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":110,"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/posts\/105\/revisions\/110"}],"wp:attachment":[{"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/media?parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/categories?post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.contentecontent.com\/blog\/wp-json\/wp\/v2\/tags?post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}