Skip to content

Latest commit

 

History

History
252 lines (237 loc) · 12.7 KB

remote-template.org

File metadata and controls

252 lines (237 loc) · 12.7 KB

Org Template For Working with Remote Boxes

Things you can do

  • Start up tmate session, so you can run TMATE code blocks here and see them execute in that session.
  • Run shell code blocks that execute on the remote session, but whose results show up here.
  • create links within here to the ssh’ed box and be int hat ssh session within an emacs buffer.
  • tangle files to the remote machine, instead of on a local directory.

Setting up remote host

We want to change The dir property in our header. and The hostname in our footer to be wherever we are remoting into. You don’t need to change anything else.

Test that it works

pwd
pwd
hostname

We need to take a look at the remote home folder: /ssh:[email protected]:/home/kind

echo hello remote world

build

kind build base-image

shell command

kind build base-image

cluster

kind create cluster

shell command

kind create cluster

Footer

ssh -tAX [email protected] \
tmate -S /tmp/$USER.kind-ci-box.iisocket new-session -A -s kind -n emacs \
\"tmate wait tmate-ready \&\& sleep 2 \&\& \
  echo \\\`tmate display -p \'#{tmate_ssh}\'\\\` \\\# left \
  \| xclip -i -sel p -f \| xclip -i -sel c \&\& \
  emacs -nw org/sigs.k8s.io/kind/kind-ci-box.org\"
ssh -tAX [email protected] \
tmate -S /tmp/kind.kind-ci-box.iisocket new-session -A -s kind -n main \
\"tmate wait tmate-ready \&\& sleep 2 \&\& \
  echo \\\`tmate display -p \'#{tmate_ssh}\'\\\` \\\# right \
  \| xclip -i -sel p -f \| xclip -i -sel c \&\& \
  bash --login\"