cannot make it work, documentation unclear?

#2 · open · 1 comments

View on GitHub ↗

mfioretti

Hello, I have cockpit running on an ubuntu 16.04 test box. I wanted to run this addon , to figure out how cockpit addons work in general, but all I get is "not found" messages in the browser. For example, the README says public URL for RSS feed is https://url/to/cockpit/feed/listFeeds/rss. I understand this as (running cockpit on localhost) to mean https://localhost:9090//feed/listFeeds/rss. Am I right? Because when I do that I get "not found" and the same happen for every other URL mentioned in the readme. Hence the following questions: 1) WHERE to install it? the readme says "Copy this folder to `addons/Feed", but where should "addons" be? In /usr/share/cockpit? /usr/lib/cockpit? Where else? 2) ditto for configuration. README says "[write this] in 'config/config.yaml", but WHERE must that config folder be? Inside addons/feed? am I missing something totally obvious? probably yes, but what? Thanks

Comments

raffaelj

Sorry, I missed your issue. > 1. WHERE to install it? If cockpit is in `/var/www/html`, create a folder `/var/www/html/addons`. Now your addons dir exists. The addon sits in `/var/www/html/addons/Feed`. > 2. WHERE must that config folder be? Same as above. Just create the config folder `/var/www/html/config`. Besides that, The Feed addon is a bad start for testing addons. I have to mark it as a draft, because I never found the time to finish it. It relies on field names of a collection and uses a modified template, that I wrote for a jekyll project in the past. Also, have a look at the cockpit community forum. There are many tips for these basic and very advanced questions: https://discourse.getcockpit.com