Title: Access the desktop environment of a workspace · Issue #2106 · coder/coder · GitHub
Open Graph Title: Access the desktop environment of a workspace · Issue #2106 · coder/coder
X Title: Access the desktop environment of a workspace · Issue #2106 · coder/coder
Description: It'd be useful to access the desktop environment of a workspace in Coder. Cross-platform browser testing Installing applications on Windows (it's hard to install packages on the Windows command line) Desktop application development Andro...
Open Graph Description: It'd be useful to access the desktop environment of a workspace in Coder. Cross-platform browser testing Installing applications on Windows (it's hard to install packages on the Windows command lin...
X Description: It'd be useful to access the desktop environment of a workspace in Coder. Cross-platform browser testing Installing applications on Windows (it's hard to install packages on the Windows com...
Opengraph URL: https://github.com/coder/coder/issues/2106
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Access the desktop environment of a workspace","articleBody":"It'd be useful to access the desktop environment of a workspace in Coder.\r\n\r\n- Cross-platform browser testing\r\n- Installing applications on Windows (it's hard to install packages on the Windows command line)\r\n- Desktop application development\r\n- Android and iOS development\r\n- ... and I'm sure many more!\r\n\r\nThis would be implemented as a native access application, similar to the web terminal. A command would be added too, something like: `coder desktop \u003cworkspace>` or `coder open desktop \u003cworkspace>`.\r\n\r\n\r\n\r\n# Implementation\r\n\r\nVNC clients will use [noVNC](https://github.com/novnc/noVNC) through the browser. This should use noVNC APIs to hide the overlay user interface, making it feel like a native experience.\r\n\r\nRDP clients don't currently have a web-based solution (💡 ideas are welcome here). An initial implementation could exclude Windows and still provide significant value, so this shouldn't be a hard blocker!\r\n\r\nAlthough implementations with RDP and VNC are different, we should make this transparent to the user to deliver a consistent experience.\r\n\r\n## Linux and macOS\r\n\r\nSpecify a VNC server address in the `coder_agent` resource (naming subject to change):\r\n\r\n```terraform\r\nresource \"coder_agent\" \"dev\" {\r\n vnc = \"tcp://localhost:5900\"\r\n}\r\n```\r\n\r\nIn the absence of a VNC server specified:\r\n- On Linux, look for `x11vnc` on `$PATH` and start it with the agent when VNC is requested.\r\n- On macOS, [start the VNC server](https://apple.stackexchange.com/questions/30238/how-to-enable-os-x-screen-sharing-vnc-through-ssh).\r\n\r\nExpose the VNC connection through a new DataChannel protocol, and pipe it to a WebSocket endpoint.\r\n\r\n## Windows\r\n\r\nSpecify a RDP server address in the `coder_agent` resource (naming subject to change):\r\n\r\n```terraform\r\nresource \"coder_agent\" \"dev\" {\r\n rdp = \"tcp://localhost:3389\"\r\n}\r\n```\r\n\r\nIn the absence of an RDP server specified, attempt to start it (I googled around a bit, but was unable to find much).\r\n\r\nExpose the RDP connection through a new DataChannel protocol, and pipe it to a WebSocket endpoint.\r\n","author":{"url":"https://github.com/kylecarbs","@type":"Person","name":"kylecarbs"},"datePublished":"2022-06-06T22:52:04Z","url":"https://github.com/coder/coder/issues/2106"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6afdb82c-c611-3324-281e-70785079ebab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0EC:2C4BED:2350A81:2CD9F21:6B01810F |
| html-safe-nonce | e6f59237df195c7f57fe88008d26b1b9aedc87113b4e4ea7e8c41238c9773bfb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEVDOjJDNEJFRDoyMzUwQTgxOjJDRDlGMjE6NkIwMTgxMEYiLCJ2aXNpdG9yX2lkIjoiMzU4Mzk1NjE1MDc5OTkyNTUxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 796834bf738a0009e79275d3f2b9c8ee869bf1529c89a6307906aaac7f665b66 |
| hovercard-subject-tag | issue:1262516129 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/2106/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf687d3722292f8f74bc66568206acf3ae1158c2569f4a2f29d943abcab30851/coder/coder/issues/2106 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf687d3722292f8f74bc66568206acf3ae1158c2569f4a2f29d943abcab30851/coder/coder/issues/2106 |
| og:image:alt | It'd be useful to access the desktop environment of a workspace in Coder. Cross-platform browser testing Installing applications on Windows (it's hard to install packages on the Windows command lin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kylecarbs |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width