coder / sshcode

Run VS Code on any server over SSH.
MIT License
5.74k stars 216 forks source link

Update code-server download to use new code-server v3 packaging #167

Open nathanpotter opened 4 years ago

nathanpotter commented 4 years ago

Code server is no longer packaged as a static binary and is instead packaged as a tarball. We should update sshcode to download from the new release URL: https://codesrv-ci.cdr.sh/releases/latest/linux-x86_64.tar.gz

We can then untar that to /usr/lib/code-server and symlink the executable to the correct location.

Merith-TK commented 4 years ago

that would require sudo, which a user using sshcode may not have on the server they are connecting to, —Merith

On Thu, Mar 5, 2020 at 8:55 AM Nathan Potter notifications@github.com wrote:

Code server is no longer packaged as a static binary and is instead packaged as a tarball. We should update sshcode to download from the new release URL: https://codesrv-ci.cdr.sh/releases/latest/linux-x86_64.tar.gz

We can then untar that to /usr/lib/code-server and symlink the executable to the correct location.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cdr/sshcode/issues/167?email_source=notifications&email_token=ACPQOXX4LIEI2AYP3FSQS4DRF7KQBA5CNFSM4LCOFMTKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IS3DF6Q, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPQOXU2AM6VA44QG3LMMMLRF7KQBANCNFSM4LCOFMTA .

Merith-TK commented 4 years ago

if anything, it should be extracted to $HOME/.cache/sshcode/ —Merith

On Thu, Mar 5, 2020 at 12:00 PM Merith TK merith.tk@gmail.com wrote:

that would require sudo, which a user using sshcode may not have on the server they are connecting to, —Merith

On Thu, Mar 5, 2020 at 8:55 AM Nathan Potter notifications@github.com wrote:

Code server is no longer packaged as a static binary and is instead packaged as a tarball. We should update sshcode to download from the new release URL: https://codesrv-ci.cdr.sh/releases/latest/linux-x86_64.tar.gz

We can then untar that to /usr/lib/code-server and symlink the executable to the correct location.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cdr/sshcode/issues/167?email_source=notifications&email_token=ACPQOXX4LIEI2AYP3FSQS4DRF7KQBA5CNFSM4LCOFMTKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IS3DF6Q, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPQOXU2AM6VA44QG3LMMMLRF7KQBANCNFSM4LCOFMTA .

nathanpotter commented 4 years ago

Yeah that sounds good as well, we should just untar it wherever is reasonable

Merith-TK commented 4 years ago

Would take too long, and affect user friendly ness, but would be easier in the long run

gyzerok commented 4 years ago

I seem to have a working solution here: https://github.com/gyzerok/sshcode/commit/9e0d09428836dcbd8c5bffd58461751cf7a4ab06. Can't open a PR yet, since it is dependent on another PR from me, which is currently open. However I welcome any feedback.

I've used ~/.sshcode-server since it is similar to how VSCode store its' settings and its' server.

Merith-TK commented 4 years ago

Code server is no longer packaged as a static binary and is instead packaged as a tarball. We should update sshcode to download from the new release URL: https://codesrv-ci.cdr.sh/releases/latest/linux-x86_64.tar.gz We can then untar that to /usr/lib/code-server and symlink the executable to the correct location.

Please do not simply repost the original message