Example: Simple Package

This example is an installable cockpit package that runs a simple command to ping a remote address.

Link the package into your home directory:

  1. Make sure Cockpit works on the local machine.
  2. Link this directory into your home directory:
    $ mkdir -p ~/.local/share/cockpit
    $ ln -snf $(pwd) ~/.local/share/cockpit/playground
    $ sudo systemctl restart cockpit
  3. Log into cockpit using your web browser, with the same account as the above.
  4. Choose this item from the sidebar menu
  5. Feel free to edit this file and refresh in the browser.