| 1 |
= cockpit-desktop(1) |
| 2 |
|
| 3 |
== Name |
| 4 |
|
| 5 |
cockpit-desktop - Cockpit Desktop integration |
| 6 |
|
| 7 |
== Synopsis |
| 8 |
|
| 9 |
*cockpit-desktop* _URLPATH_ [_SSH_HOST_] |
| 10 |
|
| 11 |
== Description |
| 12 |
|
| 13 |
The *cockpit-desktop* program provides secure access to Cockpit pages |
| 14 |
in an already running desktop session. It starts a web server |
| 15 |
(*cockpit-ws*) and a web browser in an isolated network namespace, and |
| 16 |
a man:cockpit-bridge[1] in the running user session. |
| 17 |
|
| 18 |
This avoids having to log into Cockpit, and having to enable |
| 19 |
*cockpit.socket* system-wide. The network isolation ensures that no |
| 20 |
other user, and not even other processes in the user's session, can |
| 21 |
access this local web server. |
| 22 |
|
| 23 |
*URLPATH* is the Cockpit page to open, i. e. the path component of |
| 24 |
Cockpit URLs. It is highly recommended to only open a |
| 25 |
https://docs.cockpit-project.org/cockpit-guide/latest/guide/embedding.html[particular page frame], not the entire Cockpit navigation and menu. For example, the |
| 26 |
path `+/cockpit/@localhost/storage/index.html+` will open the Storage |
| 27 |
page. It is also possible to give abbreviated forms of urls, such as |
| 28 |
"`+/storage+`" or "`+/network/firewall+`". |
| 29 |
|
| 30 |
_SSH_HOST_ is an optional SSH remote host specification (_hostname_ |
| 31 |
or _username@hostname_). If given, *cockpit-bridge* will be started |
| 32 |
on the remote host through *ssh(1)* instead, i. e. the Cockpit web |
| 33 |
browser will show that remote host. Note that this is more of an |
| 34 |
experimental/demo feature. |
| 35 |
|
| 36 |
== Environment |
| 37 |
|
| 38 |
The *BROWSER* environment variable specifies the browser command (and |
| 39 |
possibly options) that will be used to open the requested Cockpit page. |
| 40 |
If not set, *cockpit-desktop* attempts to use an internal minimalistic |
| 41 |
WebKit browser, and failing that, will attempt to detect some reasonable |
| 42 |
alternatives. |
| 43 |
|
| 44 |
== Bugs |
| 45 |
|
| 46 |
include::../partials/bugs.adoc[] |
| 47 |
|
| 48 |
== Author |
| 49 |
|
| 50 |
include::../partials/author.adoc[] |
| 51 |
|
| 52 |
== See also |
| 53 |
|
| 54 |
man:cockpit-ws[8], man:cockpit-bridge[1] |