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