Does the inky blackness of the termimal on your computer seem a bit dawnting? Then use iimatey to call on a trusted matey to explore it with you!
Matey depends on the tools tmux, ttyd, and wireguard. To install, first:
apt install tmux,ttyd,wg
first install brew, then:
brew install tmux,ttyd,wg
curl -fsSL https://raw.githubusercontent.com/ii/matey/canon/iimatey-setup.sh | bash
iimatey start
tmux session exists! ttyd logs are available in /Users/hh/.config/iimatey/ttyd.log tunnel logs are available in /Users/hh/.config/iimatey/ttyd.log Connect to tmux locally via: tmux -L ii at [2023/03/22 05:34:47:5174] N: ttyd 1.7.3 (libwebsockets 4.3.2-unknown) [2023/03/22 05:34:47:5179] N: tty configuration: [2023/03/22 05:34:47:5179] N: start command: tmux -L ii at [2023/03/22 05:34:47:5179] N: close signal: SIGHUP (1) [2023/03/22 05:34:47:5179] N: terminal type: xterm-256color hh@Max iimatey % [2023/03/22 05:34:47:5547] N: /opt/homebrew/Cellar/libwebsockets/4.3.2/lib/libwebsockets-evlib_uv.dylib [2023/03/22 05:34:47:5548] N: lws_create_context: LWS: 4.3.2-unknown, NET CLI SRV H1 H2 WS ConMon IPV6-off [2023/03/22 05:34:47:5549] N: elops_init_pt_uv: Using foreign event loop... [2023/03/22 05:34:47:5550] N: __lws_lc_tag: ++ [wsi|0|pipe] (1) [2023/03/22 05:34:47:5552] N: __lws_lc_tag: ++ [vh|0|default||54321] (1) [2023/03/22 05:34:47:5578] N: [vh|0|default||54321]: lws_socket_bind: source ads 0.0.0.0 [2023/03/22 05:34:47:5578] N: __lws_lc_tag: ++ [wsi|1|listen|default||54321] (2) [2023/03/22 05:34:47:5578] N: Listening on port: 54321 Tunnel is ready. You can now connect to one of the following URLs: - https://656n2rc5uc81a.try.ii.nz - https://fcca314d716d85f310159675dc4bdf22.try.ii.nz
iimatey connect
iimatey status
In order to connect coder, you`ll need a custom build/branch from coder/coder#6489 until it merges and a release is made.
coder server --wg-tunnel-host try.ii.nz
Here is the build from src:
hh@Max coder % git remote get-url coder [email protected]:coder/coder hh@Max coder % git log -1 commit c90142937e23ef5e573e498a78a16e1c3d7a5317 (HEAD -> tunnelsdk, coder/dean/tunnelsdk) Author: Dean Sheather <[email protected]> Date: Tue Mar 21 03:01:20 2023 +0000 chore: rename tunnel-host to wgtunnel-host hh@Max coder % make build/coder-slim_0.19.2-devel+c9014293.tar : 23.79% ( 384 MiB => 91.3 MiB, build/coder-slim_0.19.2-devel+c9014293.tar.zst) hh@Max coder % ./build/coder_0.19.2-devel+c9014293_darwin_amd64 server --wg-tunnel-host try.ii.nz Coder v0.19.2-devel+c9014293 - Your Self-Hosted Remote Development Platform Using built-in PostgreSQL (/Users/hh/Library/Application Support/coderv2/postgres) Started HTTP listener at http://127.0.0.1:3000 Opening tunnel so workspaces can connect to your deployment. For production scenarios, specify an external access URL View the Web UI: https://q1bn1bs94rnrm.try.ii.nz