A cikin labarin na gaba zamu kalli Jirgin Jirgin Ruwa. Wannan shi ne Free da buɗaɗɗen tushe RSS / Atom feed RSS don tashar. An halicce shi daga asali Labarai, mai karanta RSS / Atom feed mai karanta rubutu, amma ba a kiyaye Newsbeuter sosai. Wannan shine dalilin da yasa wannan kyakkyawan zaɓi ne don la'akari.
Ga wanda bai sani ba, da RSS / Atom siffofin XML ne ana amfani dashi don sadarwa, bugawa da haɗin labarai. Misali na yau da kullun na wannan zai zama labarai ko labaran blog. An ƙirƙiri jirgin ruwa don amfani dashi daga tashar GNU / Linux, FreeBSD ko tsarin macOS.
Newsboat shine mai karanta RSS / Atom mai sauƙin fahimta. A cikin wannan labarin, zamu ga yadda ake girkawa da amfani da Newsboat. Wannan mai karanta layin umarni ne don karanta labaran da kuka fi so ko labarai cikin sauri ga duk masoya tashar.
Wajibi ne a fayyace hakan don amfani da wannan kayan aikin zai zama dole ga tsarinmu ya cika wasu buƙatu wanda za'a iya karantawa a ƙasa.
Abubuwan buƙatu
- GCC 4.9 ko daga baya, ko Clang 3.6 ko kuma daga baya.
- STFLversion 0.21 ko kuma daga baya).
- Pkg-jeri.
- GNU samun bayanai (kawai don tsarin da ba ya bayar da bayanan a cikin libc).
- yarfara (version 7.18.0 ko kuma daga baya).
- libxml2, xmllint, da xsltproc.
- json-c (daversion 0.11 ko kuma daga baya).
- SQLite3 (version 3.5 ko kuma daga baya).
- DocBook XML da DocBook SML.
- Asciidoc.
Shigar da Jirgin Ruwa a kan Ubuntu
Za mu iya shigar da wannan shirin a cikin tsarin aiki daban-daban, amma don wannan labarin za mu ga yadda ake girka shi a cikin Ubuntu. A wannan yanayin zan shigar da shi akan Ubuntu 16.04. Newsboat zai samo shi don girkawa ta hanyar kwatankwacinsa. Ya zama dole a farko bari mu sanya snapd a cikin tsarin aikin mu don samun damar sanya Newsboat kamar yadda aka nuna a ƙasa.
Idan ba mu sanya snapd ba, za mu buɗe tashar (Ctrl + Alt T) kuma mu rubuta a ciki:
sudo apt install snapd
Yanzu zamu iya shigar da kayan aikin da muke magana akan su. A cikin wannan tashar mun rubuta:
sudo snap install newsboat
Idan ba mu son fakitin kwaskwarima, za mu iya zaɓarwa shigar da Jirgin Ruwa ta amfani da lambar tushe. Da wannan za mu iya amfani da sababbin abubuwa, amma kafin hakan za mu buƙaci cikakken shigar dogara. Don yin wannan muna buɗe tashar (Ctrl + Alt + T) kuma rubuta kowane layin da ke gaba:
sudo apt update sudo apt install libncursesw5-dev ncurses-term debhelper libjson0 libjson0-dev libxml2-dev libstfl-dev libsqlite3-dev perl pkg-config libcurl4-gnutls-dev librtmp-dev libjson-c-dev asciidoc libxml2-utils xsltproc docbook-xml docbook-xsl bc wget http://www.clifford.at/stfl/stfl-0.24.tar.gz tar -xvf stfl-0.24.tar.gz cd stfl-0.24 make sudo make install
Bayan wannan zamu iya clone da Github Newsboat mangaza a cikin tsarin mu kuma girka shi. Don yin wannan, zamuyi amfani da tashar guda ɗaya kawai, kuma a ciki muna bin umarni masu zuwa:
git clone git://github.com/newsboat/newsboat.git cd newsboat make sudo make install
Yadda ake amfani da Mai karanta Labaran Jirgin Ruwa
Yanzu za mu ga yadda ake amfani da Newsboat don karanta ciyarwar RSS daga wani shafi, misali. ubunlog.com. Da farko, za mu buƙaci samu hanyar rss-feed para ubunlog.com daga wani browser kuma kwafi shi. A wannan yanayin, url shine kamar haka:
https://ubunlog.com/feed/
Nan gaba zamu rubuta masu zuwa don adana abun ciki zuwa fayil don amfanin gaba.
echo "https://ubunlog.com/feed/" > rss_links.txt
Yanzu za mu iya karanta RSS feed na ubunlog.com ta amfani da umarni mai zuwa tare da -u masu gyara (ƙayyade fayil ɗin da ke ƙunshe da URLs na saƙon RSS) da -r (sabunta abubuwan ciyarwa a farawa) mai bi:
newsboat -ru rss_links.txt
Don zaɓar wani abu na labarai, za mu yi amfani da kibiyoyi sama da ƙasa don kewayawa. Sannan zamu danna Shigar da wanda yake sha'awa. A cikin wannan misalin zan zabi lambar labarai 5 daga jerin. Wanne zai yi kama da wannan.
para bude labarai a burauz din, kawai za mu danna 'o', kuma zuwa fita daga shirin, kawai za mu danna 'q'.
Zamu iya ganin duk zaɓuɓɓuka da amfani mai yiwuwa ta aiwatar da umarni mai zuwa a cikin tashar (Ctrl + Alt + T):
newsboat -h
para sami ƙarin bayani game da wannan kayan aikin, zamu iya ziyartar ma'ajiyar github ko takaddun hukuma cewa mahaliccin wannan kayan aikin sun samar dashi ga masu amfani akan gidan yanar gizon su.