You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 17, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 17, 2021. It is now read-only.
At the moment it does not support installing over ssh but it will soon and the plan is for it to replace and deprecate sshcode as something we'll maintain alongside code-server.
All sshcode does is run rsync, run ssh, then run rsync again. There's lots of boilerplate involved in executing programs in golang, whereas a shell script would be much smaller and easier to read
sshcode has much less visibility than code-server as well. With a script inside code-server we can get many more eyes on it and ensure it's always up to date.
sshcode's lack of commits isn't necessarily bad. It's simple software with a simple scope.
The script's UX seems dramatically different than what sshcode does? I don't personally care what language it's written in, but doing sshcode user@server is quite a nice workflow.
I think self-competition is the best way to resolve this problem. sshcode is clearly a succesful workflow, but it's hard to see if the new script will be. I think we should track and measure the usage of both and reconvene after a month of data.
# This would install code-server on user@host, forward the port and open it for you.
curl -fsSL https://code-server.dev/install.sh | sh -s -- user@host
sshcode as it stands right now is just a glorified script written in golang, most of it's functionality is handled by calling out to rsync and ssh, most of the other code is just args handling. The shell version would just do the same steps as the go version but in a more cross-platform fashion.
Since sshcode isn't really maintained anymore anyways I think we should archive this repo when the shell script alternative lands in code-server. If people are still attached to sshcode they could still use it even if it's archived
Alright, that would work, Would need to figure out how to do repo packaging and how to use the build tools you guys have, but i would be alright with that
if that outcome is the final outcome, I would be happy to have some of the team here occasionally reveiwing PRs on it when i cant
Maybe instead we could just not archive the repo and just keep committing fixes if it breaks. The maintenance work would be minimal, probably only when code-server version changes to update the args/download script.
It would still be deprecated in favor of the script though, and we wouldn't add any new features. It would only not be archived so we can make sure it still functions.
### This Tool is no longer officially maintained
This tool is being replaced by a shell script that can use via `curl -fsSL https://code-server.dev/install.sh | sh -s -- user@host` or `curl https://code-server.dev/install.sh > sshcode.sh`[sshcode](/cdr/sshcode) will still be open to RP's to fix bugs and add features the community wants. And will still be updated to support newer versions of code-server, however there will be no active [Coder](/cdr/] developers working on this project, PR's will still be reviewed and accepted.
This Tool is no longer officially maintained
This tool is being replaced by a shell script that can use via curl -fsSL https://code-server.dev/install.sh | sh -s -- user@host or curl https://code-server.dev/install.sh > sshcode.sh
sshcode will still be open to RP's to fix bugs and add features the community wants. And will still be updated to support newer versions of code-server, however there will be no active [Coder](/cdr/] developers working on this project, PR's will still be reviewed and accepted.
just an example of what could be put at the begining of the readme, obviously it would need to be better,
I would love to read through the whole issue as well as check the shell script to see if it addresses my use-case. Unfortunately can do it during the weekend. So I would kindly ask you to hold on for couple of days if possible 😃
We're not deleting or archiving the repo at the moment, we're just expressing that this repo will most likely become deprecated soon. You're still free to use sshcode. The script version will accomplish mostly the same things as the go version
You see the script isnt the same as this tool from what i am seeing, the script will outright install code-server onto the remote server, which many people will not like as they need the tool to run without this capability, and what about windows client support? windows does not have an SH binary and not everyone wants to use wsl,
Okay, That did not answer my question about windows client support, as it does not have a SH binary, and does not address the issue that it is clunky to use and unless you give it a very specific flag, defaults to attempting to install code-server system wide, rather than just the user,
At the very least, accept the PR to utilize the new V3 format, and then allow the community or others to do things from there, or point to a more maintained fork that is willing to accept PR's with features that users would like to see, such as My Fork
Okay, That did not answer my question about windows client support, as it does not have a SH binary, and does not address the issue that it is clunky to use and unless you give it a very specific flag, defaults to attempting to install code-server system wide, rather than just the user,
You normally want to use your package manager to install it, not just for your user. But if you do it's just a flag away. What's clunky about it? It's also much simpler/easier to understand and audit than sshcode and supports more operating systems and they're much easier to add.
At the very least, accept the PR to utilize the new V3 format, and then allow the community or others to do things from there, or point to a more maintained fork that is willing to accept PR's with features that users would like to see, such as My Fork
Windows is an outlier for sure. code-server doesn't even officially support it yet but when it does, I think it's acceptable for a user to have to install windows bash/sh from cygwin/git and we can always add a wrapper around the /bin/sh script in windows batch to install it for you and execute and the /bin/sh script.
I agree we haven't been very responsive on this repository and that's a problem but we're a small company. This is an open source project and we don't want to push it in a direction we do not agree with when we see a better way forward for our users and customers. These things take time.
For now I've added a deprecation notice in the README to this library linking to the code-server install script and I'll try to make some time this week to get the install script on par with sshcode.
You normally want to use your package manager to install it, not just for your user. But if you do it's just a flag away. What's clunky about it? It's also much simpler/easier to understand and audit than sshcode and supports more operating systems and they're much easier to add.
Not really, as most use cases where one would be using said script, they WILL NOT have administrator access to install software on that system.
And while the shell script may be easier to understand for new programmers, it will still be complicated and people coming from normal programming may not even be able to understand shell script, especially as i am unable to even find where the damn script even STARTS, (yes, i am still looking)
And how shell scripts define and handle functions is generally confusing to those who don't make shell script.
IE: if i define a function with function(), i would expect to call said function with function() and not function
Also in my opinion at least, shell script functions should be defined in a top down order of how the function flows, where the beginning is the first line called, and the end is the last function called, In my opinion
Windows is an outlier for sure. code-server doesn't even officially support it yet but when it does,
code-server does not need to support windows in this argument i am making, as windows would be the client machine, not the remote
I think it's acceptable for a user to have to install windows bash/sh from cygwin/git and we can always add a wrapper around the /bin/sh script in windows batch to install it for you and execute and the /bin/sh script.
Please take a look at the utter NIGHTMARE i went through just to get sshcode.exe user@server "/workspace" to work... just look at that chaotic code, and you will see why this, is a terrible idea
For now I've added a deprecation notice in the README to this library linking to the code-server install script and I'll try to make some time this week to get the install script on par with sshcode.
The whole point of this tool was so that a install would not be needed, at all.
SSH does not work with the current script, just in case anyone else spends > 20 minutes like I did trying to get this working.
I don't know if it really matters at this point, but your typo at the very beginning of this entire thread is quite confusing, and with the additional shell snippets that make it seem like ssh is a part of this, when it really isn't.
At the moment it does support installing over ssh but it will soon and the plan is for it to replace and deprecate sshcode as something we'll maintain alongside code-server.
If you only scan and read the first half of this statement, it sure seems like it should work with ssh.
I am sad to see that sshcode won't be maintained, but I look forward to the new developer experience with the script when it is finalized.
Activity
deansheather commentedon May 21, 2020
All sshcode does is run rsync, run ssh, then run rsync again. There's lots of boilerplate involved in executing programs in golang, whereas a shell script would be much smaller and easier to read
coadler commentedon May 21, 2020
sshcode has much less visibility than code-server as well. With a script inside code-server we can get many more eyes on it and ensure it's always up to date.
ammario commentedon May 21, 2020
sshcode user@serveris quite a nice workflow.I think self-competition is the best way to resolve this problem. sshcode is clearly a succesful workflow, but it's hard to see if the new script will be. I think we should track and measure the usage of both and reconvene after a month of data.
deansheather commentedon May 21, 2020
@ammario From what I gather, you could do:
curl -fL https://get.code-server.sh > sshcode.sh chmod +x sshcode.sh ./sshcode.sh user@hostnhooyr commentedon May 21, 2020
Yes it'd be as simple as:
deansheather commentedon May 21, 2020
sshcode as it stands right now is just a glorified script written in golang, most of it's functionality is handled by calling out to
rsyncandssh, most of the other code is just args handling. The shell version would just do the same steps as the go version but in a more cross-platform fashion.Since sshcode isn't really maintained anymore anyways I think we should archive this repo when the shell script alternative lands in code-server. If people are still attached to sshcode they could still use it even if it's archived
nhooyr commentedon May 21, 2020
@Merith-TK If you fork I'd be happy to add a link in the
README.mdto your fork so anyone who still prefers this over the install script can use it.Merith-TK commentedon May 21, 2020
Alright, that would work, Would need to figure out how to do repo packaging and how to use the build tools you guys have, but i would be alright with that
if that outcome is the final outcome, I would be happy to have some of the team here occasionally reveiwing PRs on it when i cant
deansheather commentedon May 21, 2020
Maybe instead we could just not archive the repo and just keep committing fixes if it breaks. The maintenance work would be minimal, probably only when code-server version changes to update the args/download script.
Merith-TK commentedon May 21, 2020
Yeah, that would work as well.
deansheather commentedon May 21, 2020
It would still be deprecated in favor of the script though, and we wouldn't add any new features. It would only not be archived so we can make sure it still functions.
Merith-TK commentedon May 21, 2020
maybe in the readme have it state there are two methods, the recommended and the alternative?
Merith-TK commentedon May 22, 2020
like for example
This Tool is no longer officially maintained
This tool is being replaced by a shell script that can use via
curl -fsSL https://code-server.dev/install.sh | sh -s -- user@hostorcurl https://code-server.dev/install.sh > sshcode.shsshcode will still be open to RP's to fix bugs and add features the community wants. And will still be updated to support newer versions of code-server, however there will be no active [Coder](/cdr/] developers working on this project, PR's will still be reviewed and accepted.
just an example of what could be put at the begining of the readme, obviously it would need to be better,
@nhooyr
I do have a fork, a bit out of date with other PR's iirc
gyzerok commentedon May 22, 2020
I would love to read through the whole issue as well as check the shell script to see if it addresses my use-case. Unfortunately can do it during the weekend. So I would kindly ask you to hold on for couple of days if possible 😃
deansheather commentedon May 22, 2020
We're not deleting or archiving the repo at the moment, we're just expressing that this repo will most likely become deprecated soon. You're still free to use sshcode. The script version will accomplish mostly the same things as the go version
Merith-TK commentedon Jun 18, 2020
You see the script isnt the same as this tool from what i am seeing, the script will outright install
code-serveronto the remote server, which many people will not like as they need the tool to run without this capability, and what about windows client support? windows does not have an SH binary and not everyone wants to use wsl,Merith-TK commentedon Aug 6, 2020
Can we get a update on my previous comment?
ammario commentedon Aug 10, 2020
We're going to continue holding off feature development here, preferring the script. We will continue to do bugfixes.
Merith-TK commentedon Aug 10, 2020
Okay, That did not answer my question about windows client support, as it does not have a SH binary, and does not address the issue that it is clunky to use and unless you give it a very specific flag, defaults to attempting to install code-server system wide, rather than just the user,
At the very least, accept the PR to utilize the new V3 format, and then allow the community or others to do things from there, or point to a more maintained fork that is willing to accept PR's with features that users would like to see, such as My Fork
Add deprecation notice to README
nhooyr commentedon Aug 10, 2020
You normally want to use your package manager to install it, not just for your user. But if you do it's just a flag away. What's clunky about it? It's also much simpler/easier to understand and audit than sshcode and supports more operating systems and they're much easier to add.
Windows is an outlier for sure. code-server doesn't even officially support it yet but when it does, I think it's acceptable for a user to have to install windows bash/sh from cygwin/git and we can always add a wrapper around the
/bin/shscript in windows batch to install it for you and execute and the/bin/shscript.I agree we haven't been very responsive on this repository and that's a problem but we're a small company. This is an open source project and we don't want to push it in a direction we do not agree with when we see a better way forward for our users and customers. These things take time.
For now I've added a deprecation notice in the README to this library linking to the code-server install script and I'll try to make some time this week to get the install script on par with
sshcode.Add deprecation notice to README
Merith-TK commentedon Aug 10, 2020
Not really, as most use cases where one would be using said script, they WILL NOT have administrator access to install software on that system.
And while the shell script may be easier to understand for new programmers, it will still be complicated and people coming from normal programming may not even be able to understand shell script, especially as i am unable to even find where the damn script even STARTS, (yes, i am still looking)
And how shell scripts define and handle functions is generally confusing to those who don't make shell script.
IE: if i define a function with
function(), i would expect to call said function withfunction()and notfunctionAlso in my opinion at least, shell script functions should be defined in a top down order of how the function flows, where the beginning is the first line called, and the end is the last function called, In my opinion
code-server does not need to support windows in this argument i am making, as windows would be the client machine, not the remote
Please take a look at the utter NIGHTMARE i went through just to get
sshcode.exe user@server "/workspace"to work... just look at that chaotic code, and you will see why this, is a terrible ideaThe whole point of this tool was so that a install would not be needed, at all.
likwid commentedon Aug 19, 2020
SSH does not work with the current script, just in case anyone else spends > 20 minutes like I did trying to get this working.
I don't know if it really matters at this point, but your typo at the very beginning of this entire thread is quite confusing, and with the additional shell snippets that make it seem like ssh is a part of this, when it really isn't.
At the moment it does support installing over ssh but it will soon and the plan is for it to replace and deprecate sshcode as something we'll maintain alongside code-server.If you only scan and read the first half of this statement, it sure seems like it should work with ssh.
I am sad to see that sshcode won't be maintained, but I look forward to the new developer experience with the script when it is finalized.
install.sh: Add remote install support
install.sh: Add remote install support
install.sh: Add remote install support
install.sh: Add remote install support
install.sh: Add remote install support
install.sh: Add remote install support