Linux Command Line News.

Introduction: Linux Command Line News.

About: Bytesize articles instead of a trilogy in one post.

Since news is mostly text anyway, the command line excels in this area. Newsbeuter is a fairly simple program to use and work with. Not only will it import opml files typically used by a lot of newsreaders, but you can easily add newsfeeds via an ascii file. News readers are also called news aggregators. Like the mail it is fast and I do not worry about looking at all the advertisements or the pictures.

To install:

$ sudo apt-get install newsbeuter
$ _

Step 1: Reading the News.

As easy as moving the cursor to the news feed you want to look at and pressing enter. Then with the list of articles cursor down again and press enter to read the article. you will press the letter "q" to back up step in the reader.

Step 2: Getting Newsfeeds.

Normally a lot of sites ill have an icon to press to get you to a listing of the feeds. Also like to use a web search engine. Mainly you want to search for the website and or subject name, "rss", and the word "feeds". You can copy the details from there.

Even though the majority of the work you do is without the mouse on the command line, installing "gpm" to use the mouse to scrape text is not a bad idea.

$ sudo apt-get install gpm
$ _

Step 3: Importing Existing Feeds.

Most news readers will let you export what is known as an opml file. Newsbeuter can import those easity. We have a lot of feeds saved.

$ newbeuter -i feedlist.opml
$ newsbeuter

You can also set up separate files for different feeds if you did not want the all the urls in one place.

$ newsbeuter -u urlfile

$ cat urlfile
$ _

Step 4: Manually Adding Feeds.

All you need is an ascii editor to add the urls. So lets get to where the file is that holds the rss list. Note the filename as a dot in front of it. to aid in keeping it hidden

$ cd .newsbeuter

:~/.newsbeuter$ vim urls


~/..newsbeuter$ nano urls

Use to edit the file. Guess you could use as a last resort:

~/..newsbeuter$ echo http://urlname.etc >> urls
~/..newsbeuter$ cd
$ _

Step 5: Sorting,

You can always rearrange the list in alphabetical order also. I suggest copying ro backing up the original file first. Using sort with the -u argument should also get rid of duplicates. i.e. (sort -u inputfile -o outputfile)

$ cd .newsbeuter
~/.newsbeuter$ cp urls urls.bak
~/.newsbeuter$ sort urls -o
~/.newsbeuter$ mv urls
~/.newsbeuter$ cat urls "MIT" "MIT" "geekie" "geekie" "geekie" "geekie" "geekie" "geekie" "linux" "linux" "linux" "geekie" "linux"

Be the First to Share


    • Science Fair Challenge

      Science Fair Challenge
    • Cardboard Speed Challenge

      Cardboard Speed Challenge
    • Make It Modular: Student Design Challenge

      Make It Modular: Student Design Challenge