Browse Source

fix workspace invokation and require socat

pull/1/head
parent
commit
59183c3a7e
2 changed files with 8 additions and 1 deletions
  1. +7
    -0
      tasks/apt.yaml
  2. +1
    -1
      templates/workspaces/workspace.space.fish.j2

+ 7
- 0
tasks/apt.yaml View File

@@ -0,0 +1,7 @@
---

- name: ensure that all apt package requirements are met
apt:
pkg:
- socat

+ 1
- 1
templates/workspaces/workspace.space.fish.j2 View File

@@ -15,7 +15,7 @@ end


{% if workspaces[workspace].type == "vncviewer-ssh-socket" %} {% if workspaces[workspace].type == "vncviewer-ssh-socket" %}


socat "UNIX-LISTEN:.vnc/socket.anix,reuseaddr" EXEC:'ssh {{workspaces[workspace].host}} socat STDIO UNIX-CONNECT\:.vnc/socket' &
socat "UNIX-LISTEN:.vnc/socket.{{workspaces[workspace].host}},reuseaddr" EXEC:'ssh {{workspaces[workspace].host}} socat STDIO UNIX-CONNECT\:.vnc/socket' &
exec xtigervncviewer .vnc/socket.{{workspaces[workspace].host}} exec xtigervncviewer .vnc/socket.{{workspaces[workspace].host}}


{% elif workspaces[workspace].type == "vncviewer-ssh-tcp" %} {% elif workspaces[workspace].type == "vncviewer-ssh-tcp" %}