Title: MSYS/MINGW Client Support (FINNALLY Working) by Merith-TK · Pull Request #127 · coder/sshcode · GitHub
Open Graph Title: MSYS/MINGW Client Support (FINNALLY Working) by Merith-TK · Pull Request #127 · coder/sshcode
X Title: MSYS/MINGW Client Support (FINNALLY Working) by Merith-TK · Pull Request #127 · coder/sshcode
Description: EDIT: OLD IMAGES HAVE BEEN REDUCED TO LINKS TO SAVE POST SPACE
Basically, I have made sshcode run properly on msys/mingw enviroments,
TL;DR
Chrome only works when using msys/cygwin based enviroments
sshcode only works in msys/cygwin based enviroments
sshcode in cmd.exe does not work yet due to how sshcode calls ssh
Summary of my edits
main.go > Added filepath conversion, (thanks @eargollo )
settings.go > added default paths for VSCode data on windows
sshcode.go > copied and slightly tweaked the wslPath to match a windows enviroment for accessing the C:\ drive.
TODO
100% windows support: NOTE, I do not plan on implementing this for the time being, i feel like i have dont enought to make a great step towards windows support, this todo will be a log of the errors in windows
Some odd bug where it returns this when running with cmd.exe
The error appears to be sshcode not actually executing ssh on windows even if it is in %path%
This appears to be because of how sshcode calls the ssh command
C:\Misc\MegaSync\Code\Workspace\sshcode>go build
C:\Misc\MegaSync\Code\Workspace\sshcode>sshcode.exe --skipsync merith@192.168.0.101
2019-07-29 20:58:13 �[94mINFO�[0m failed to stat ~/.ssh directory, disabling connection reuse feature: CreateFile ~\.ssh: The system cannot find the path specified.
2019-07-29 20:58:13 �[94mINFO�[0m ensuring code-server is updated...
2019-07-29 20:58:13 �[31mFATAL�[0m error: failed to update code-server:
---ssh cmd---
ssh merith@192.168.0.101 '/usr/bin/env bash -l'
---download script---
set -euxo pipefail || exit 1
[ "$(uname -m)" != "x86_64" ] && echo "Unsupported server architecture $(uname -m). code-server only has releases for x86_64 systems." && exit 1
pkill -f ~/.cache/sshcode/sshcode-server || true
mkdir -p ~/.local/share/code-server ~\.cache\sshcode
cd ~\.cache\sshcode
curlflags="-o latest-linux"
if [ -f latest-linux ]; then
curlflags="$curlflags -z latest-linux"
fi
curl $curlflags https://codesrv-ci.cdr.sh/latest-linux
[ -f ~/.cache/sshcode/sshcode-server ] && rm ~/.cache/sshcode/sshcode-server
ln latest-linux ~/.cache/sshcode/sshcode-server
chmod +x ~/.cache/sshcode/sshcode-server: exec: "sh": executable file not found in %PATH%
attached image is of it building and running (first working release,)
https://user-images.githubusercontent.com/10422110/61765201-ef1c0e80-ad90-11e9-87cb-b46e6dc2a909.gif
This image is of the second build working just fine, Note, yes i did have to drag the window over from the side, that is because i have two monitors, and for some reason my mouse wasnt recorded so... thats a thing
https://user-images.githubusercontent.com/10422110/62153007-8533c580-b2b8-11e9-9d2b-03e25af9bbd0.gif
8-9-2019, 1211 -7PST
This build has the sshMaster fix (i didnt bother building it again just for the example as it would take FOREVER as seen in previous pictures, and sorry for horrible quality,)
https://user-images.githubusercontent.com/10422110/62803352-094b3180-ba9f-11e9-818f-4c4b93fb60ed.gif
8-9-2019, 1308 -7PST
this build is a work in progress, some users may have to modify main.go to match their setups. otherwise sshcode --skipsync user@server /
Open Graph Description: EDIT: OLD IMAGES HAVE BEEN REDUCED TO LINKS TO SAVE POST SPACE Basically, I have made sshcode run properly on msys/mingw enviroments, TL;DR Chrome only works when using msys/cygwin based enviromen...
X Description: EDIT: OLD IMAGES HAVE BEEN REDUCED TO LINKS TO SAVE POST SPACE Basically, I have made sshcode run properly on msys/mingw enviroments, TL;DR Chrome only works when using msys/cygwin based enviromen...
Opengraph URL: https://github.com/coder/sshcode/pull/127
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:140e351f-a95e-49c5-d92a-a0e4a135f0a6 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | DBDC:194D77:14AF6AF:1CEC058:696A362E |
| html-safe-nonce | 0d294b510f8bd6935a0f20d47ca0280737452805f4cea461c9cd3ffcbfe900c6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkRDOjE5NEQ3NzoxNEFGNkFGOjFDRUMwNTg6Njk2QTM2MkUiLCJ2aXNpdG9yX2lkIjoiOTIxOTg0NjM3Mjk4NDUwMTgwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 85cecc96b59a6eee876da562aaf811ee6dd268f646a985cd49ebdf15a8727c6e |
| hovercard-subject-tag | pull_request:300549942 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/coder/sshcode/pull/127/checks |
| twitter:image | https://avatars.githubusercontent.com/u/10422110?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10422110?s=400&v=4 |
| og:image:alt | EDIT: OLD IMAGES HAVE BEEN REDUCED TO LINKS TO SAVE POST SPACE Basically, I have made sshcode run properly on msys/mingw enviroments, TL;DR Chrome only works when using msys/cygwin based enviromen... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/sshcode git https://github.com/coder/sshcode.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 182143383 |
| octolytics-dimension-repository_nwo | coder/sshcode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 182143383 |
| octolytics-dimension-repository_network_root_nwo | coder/sshcode |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7a9163cefd1ea4bd06f8eb7c082f43e4e53f626f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width