{"id":13258,"date":"2019-04-01T09:59:29","date_gmt":"2019-04-01T09:59:29","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=13258"},"modified":"2019-04-01T09:59:29","modified_gmt":"2019-04-01T09:59:29","slug":"newsroom-a-modern-cli-to-get-your-favorite-news-in-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/newsroom-a-modern-cli-to-get-your-favorite-news-in-linux\/","title":{"rendered":"Newsroom \u2013 A Modern CLI to Get Your Favorite News in Linux"},"content":{"rendered":"<p>If you are a command-line addict like me, then you would always want to do everything such as controlling your Linux systems (local or remote), programming,\u00a0<a href=\"https:\/\/www.tecmint.com\/google-commandline-search-terminal\/\" target=\"_blank\" rel=\"noopener\">searching Google using Googler<\/a>, playing\u00a0<a href=\"https:\/\/www.tecmint.com\/best-linux-terminal-console-games\/\" target=\"_blank\" rel=\"noopener\">text-based games<\/a>, reading your favorite news and much more from within a terminal window.<\/p>\n<p>Okay, Linux newbies (or possibly any other Linux users out there) are probably asking, \u201c<strong>how can i get latest news from the command-line?<\/strong>\u201d In this article, we are going to show you how to do this using\u00a0<strong>Newsroom<\/strong>\u00a0(similar to\u00a0<a href=\"https:\/\/www.tecmint.com\/newsboat-rss-atom-feed-reader-for-linux-terminals\/\" target=\"_blank\" rel=\"noopener\">Newsboat \u2013 a RSS\/Atom Feed reader<\/a>\u00a0for Linux console).<\/p>\n<p><strong>Read Also<\/strong>:\u00a0<a href=\"https:\/\/www.tecmint.com\/watch-live-cricket-scores-in-linux-terminal\/\" target=\"_blank\" rel=\"noopener\">Cricket-CLI \u2013 Watch Live Cricket Scores in Linux Terminal<\/a><\/p>\n<p><strong>Newsroom<\/strong>\u00a0is a simple, free open-source modern command-line tool to get your favorite news in Linux. It is developed using\u00a0<strong>JavaScript<\/strong>\u00a0(<strong>NodeJS<\/strong>\u00a0to be specific), so it is cross-platform and runs on Linux systems, Mac OSX as well as Windows.<\/p>\n<p>The default newsroom sources are: hackernews, techcrunch, inside, bnext, ithome, wanqu, nodeweekly, codetengu and gankio. You can configure your own sources via\u00a0<strong>OPML<\/strong>\u00a0(<strong>Outline Processor Markup Language<\/strong>) \u2013 an XML-based format designed for exchange of outline-structured information between applications running on different operating systems and environments.<\/p>\n<p align=\"center\"><img decoding=\"async\" src=\"https:\/\/user-images.githubusercontent.com\/2382594\/33028798-c8a6fb7c-ce51-11e7-98ae-671c1136bbcf.gif\" alt=\"Linux Terminal Newsreader\" data-lazy-loaded=\"true\" \/><\/p>\n<h4>Requirements:<\/h4>\n<ol>\n<li><strong>NPM<\/strong>\u00a0\u2013 Default\u00a0<strong>NodeJS<\/strong>\u00a0package manager; you can\u00a0<a href=\"https:\/\/www.tecmint.com\/install-nodejs-npm-in-centos-ubuntu\/\" target=\"_blank\" rel=\"noopener\">install NodeJS and NPM<\/a>\u00a0at once on your Linux system.<\/li>\n<\/ol>\n<h3>How to Install Newsroom in Linux Systems<\/h3>\n<p>Once you have\u00a0<strong>NPM<\/strong>\u00a0installed on your system, you install\u00a0<strong>newsroom<\/strong>\u00a0with root privileges using the\u00a0<a href=\"https:\/\/www.tecmint.com\/su-vs-sudo-and-how-to-configure-sudo-in-linux\/\" target=\"_blank\" rel=\"noopener\">sudo command<\/a>, as follows (the\u00a0<code>-g<\/code>\u00a0switch means install globally: to be used by all users on the system):<\/p>\n<pre>$ sudo npm install -g newsroom-cli\r\n<\/pre>\n<p>Once you have successfully installed\u00a0<strong>newsroom<\/strong>, the CLI will register the\u00a0<strong>newsroom<\/strong>\u00a0and\u00a0<strong>nr<\/strong>\u00a0commands in your shell. You can start using it as follows, it will take you to an interactive command line interface where you can choose your news source:<\/p>\n<pre>$ newsroom \r\n<\/pre>\n<div id=\"attachment_28924\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/News-Sources.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28924\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/News-Sources.png\" alt=\"News Sources\" width=\"682\" height=\"211\" aria-describedby=\"caption-attachment-28924\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-28924\" class=\"wp-caption-text\">News Sources<\/p>\n<\/div>\n<p>Use the\u00a0<strong>Up<\/strong>\u00a0and\u00a0<strong>Down<\/strong>\u00a0arrows to select a news source from a list of predefined sources, as shown below.<\/p>\n<div id=\"attachment_28925\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/Select-News-Source.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28925\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/Select-News-Source.png\" sizes=\"auto, (max-width: 822px) 100vw, 822px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/Select-News-Source.png 822w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/Select-News-Source-768x286.png 768w\" alt=\"Select News Source\" width=\"822\" height=\"306\" aria-describedby=\"caption-attachment-28925\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-28925\" class=\"wp-caption-text\">Select News Source<\/p>\n<\/div>\n<p>After choosing a news source, all news titles will be shown as in the following screen shot, then you can select an item by pressing the\u00a0<strong>Space<\/strong>\u00a0bar, after making a selection, the item will be indicated by a green colored bullet, as shown in the screen shot below. You can press\u00a0<strong>Enter<\/strong>\u00a0to read it in detail from a web browser.<\/p>\n<div id=\"attachment_28926\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/Select-News-Topic.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-28926\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/Select-News-Topic.png\" sizes=\"auto, (max-width: 822px) 100vw, 822px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/Select-News-Topic.png 822w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/03\/Select-News-Topic-768x286.png 768w\" alt=\"Select News Topic\" width=\"822\" height=\"306\" aria-describedby=\"caption-attachment-28926\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-28926\" class=\"wp-caption-text\">Select News Topic<\/p>\n<\/div>\n<p>To terminate the command-line, type\u00a0<strong>[Ctrl+C]<\/strong>.<\/p>\n<p>You can also provide the source you want to get news from and the number of news items to be displayed as shown.<\/p>\n<pre>$ newsroom [news_source] [number_of_news_items]\r\n<\/pre>\n<p>For example:<\/p>\n<pre>$ newsroom hackernews 3\r\n<\/pre>\n<p>Last but not least, you can also use your own awesome\u00a0<strong>OPML<\/strong>\u00a0file, as follows. This way, you can add your own news sources such as\u00a0<strong>tecmint.com<\/strong>,\u00a0<strong>fossmint.com<\/strong>, etc.<\/p>\n<pre>$ newsroom -o &lt;your-awesome-list.opml&gt;\r\n<\/pre>\n<p>To view the newsroom help message, use the command below.<\/p>\n<pre>$ newsroom --help\r\n<\/pre>\n<p>For more information check out\u00a0<a href=\"https:\/\/www.npmjs.com\/package\/newsroom-cli\" target=\"_blank\" rel=\"nofollow noopener\">Newsroom Github<\/a>\u00a0repository and learn\u00a0<a href=\"http:\/\/dev.opml.org\/\" target=\"_blank\" rel=\"nofollow noopener\">how to create OPML file<\/a>.<\/p>\n<p><strong>Newsroom<\/strong>\u00a0is a great way to get your favorite news in Linux on the command-line. Try it out and share your thoughts about it, with us via the feedback form below.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/newsroom-commandline-linux-news-reader\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are a command-line addict like me, then you would always want to do everything such as controlling your Linux systems (local or remote), programming,\u00a0searching Google using Googler, playing\u00a0text-based games, reading your favorite news and much more from within a terminal window. Okay, Linux newbies (or possibly any other Linux users out there) are &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/01\/newsroom-a-modern-cli-to-get-your-favorite-news-in-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Newsroom \u2013 A Modern CLI to Get Your Favorite News in Linux&#8221;<\/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":[1],"tags":[],"class_list":["post-13258","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=13258"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13258\/revisions"}],"predecessor-version":[{"id":13259,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13258\/revisions\/13259"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=13258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=13258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=13258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}