1. 28 Sep, 2017 5 commits
    • Jérome Perrin's avatar
      slaprunner: integrate mosh-component · 8e413842
      Jérome Perrin authored
      Because we have set a $PATH containing mosh-server it can be used with:
      
      $ LC_ALL=C.UTF-8 mosh slapuser0@2001:67c:?:?:?:? --ssh='ssh -p 22222'
      8e413842
    • Jérome Perrin's avatar
      slaprunner: factorize $PATH definition · fbe09269
      Jérome Perrin authored
      shellinabox shell wrapper, bash's .bashrc, gunicorn environment (which
      minishell's inherit) and openssh command should all have the same $PATH
      for consistency
      fbe09269
    • Jérome Perrin's avatar
      slaprunner: adjust shell $PATH to use first slapos provided commands · b6f89993
      Jérome Perrin authored
      Only use /usr/bin:/bin/ as a fallback.
      b6f89993
    • Jérome Perrin's avatar
      slaprunner: do not include user $PATH in instance · ea40a72e
      Jérome Perrin authored
      Environment of user running `slapos node instance` should not influence the
      instance.
      ea40a72e
    • Jérome Perrin's avatar
      Add Mosh component · 728b9ba2
      Jérome Perrin authored
      Add a Mosh (mobile shell) component https://mosh.org/ , especially for the "local echo" feature ( see [demo](https://youtu.be/XsIxNYl0oyU?t=6m11s)) that makes remote shell over high latency network less painful.
      
      ---
      I could not get the integrated `mosh` command to work with webrunner's openssh, but I'm already opening this MR for visibility.
      For now, connecting using the way described as **Q: How do I run the mosh client and server separately?** in mosh [FAQ](https://mosh.org/#faq) works.
      
      You can evaluate this with:
      ```ini
      [buildout]
      extends = component/mosh/buildout.cfg
      parts = mosh
      ```
      
      Start the server from the server side (after ssh'ing to the server) :
      ```bash
      $ LC_ALL=C.UTF-8 ./parts/mosh/bin/mosh-server new -s -v
      ```
      it will prints something like:
      ```
      MOSH CONNECT 60002 XXXeu5nj+CLZtw/HiIcrLQ
      
      mosh-server (mosh 1.3.0) [build mosh 1.3.0]
      Copyright 2012 Keith Winstein <mosh-devel@mit.edu>
      License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
      
      [mosh-server detached, pid = 24525]
      ```
      
      then from client connect with:
       ```bash
      $ MOSH_KEY=XXXeu5nj+CLZtw/HiIcrLQ mosh-client 2001:X:X:X:X  60002
      ```
      
      /reviewed-on !164
      728b9ba2
  2. 27 Sep, 2017 9 commits
  3. 26 Sep, 2017 1 commit
  4. 25 Sep, 2017 1 commit
  5. 20 Sep, 2017 2 commits
  6. 18 Sep, 2017 1 commit
  7. 14 Sep, 2017 3 commits
  8. 13 Sep, 2017 7 commits
  9. 12 Sep, 2017 4 commits
  10. 11 Sep, 2017 3 commits
  11. 07 Sep, 2017 2 commits
  12. 06 Sep, 2017 2 commits