Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

Hold on any future development #185

Open

Description

@nhooyr

I've written a shell script in /bin/sh to automatically and correctly install code-server on any MacOS and Linux system.

It'll be in the main code-server repo.

See coder/code-server#1701

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.

Please let me know your thoughts in this issue.

Activity

  1. deansheather commented on May 21, 2020

    @deansheather
    Collaborator

    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

  2. coadler commented on May 21, 2020

    @coadler
    Contributor

    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.

  3. ammario commented on May 21, 2020

    @ammario
    Member
    1. sshcode's lack of commits isn't necessarily bad. It's simple software with a simple scope.
    2. 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.

  4. deansheather commented on May 21, 2020

    @deansheather
    Collaborator

    @ammario From what I gather, you could do:

    curl -fL https://get.code-server.sh > sshcode.sh
    chmod +x sshcode.sh
    ./sshcode.sh user@host
  5. nhooyr commented on May 21, 2020

    @nhooyr
    ContributorAuthor

    Yes it'd be as simple as:

    # 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
    
  6. deansheather commented on May 21, 2020

    @deansheather
    Collaborator

    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

  7. nhooyr commented on May 21, 2020

    @nhooyr
    ContributorAuthor

    @Merith-TK If you fork I'd be happy to add a link in the README.md to your fork so anyone who still prefers this over the install script can use it.

  8. Merith-TK commented on May 21, 2020

    @Merith-TK
    Contributor

    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

  9. deansheather commented on May 21, 2020

    @deansheather
    Collaborator

    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.

  10. Merith-TK commented on May 21, 2020

    @Merith-TK
    Contributor

    Yeah, that would work as well.

  11. deansheather commented on May 21, 2020

    @deansheather
    Collaborator

    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.

  12. Merith-TK commented on May 21, 2020

    @Merith-TK
    Contributor

    maybe in the readme have it state there are two methods, the recommended and the alternative?

  13. Merith-TK commented on May 22, 2020

    @Merith-TK
    Contributor

    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@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,

    @nhooyr

    If you fork I'd be happy to add a link in the README.md to your fork so anyone who still prefers this over the install script can use it.

    I do have a fork, a bit out of date with other PR's iirc

  14. gyzerok commented on May 22, 2020

    @gyzerok

    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 😃

  15. deansheather commented on May 22, 2020

    @deansheather
    Collaborator

    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

  16. pinned this issue on May 25, 2020
  17. Merith-TK commented on Jun 18, 2020

    @Merith-TK
    Contributor

    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,

  18. Merith-TK commented on Aug 6, 2020

    @Merith-TK
    Contributor

    Can we get a update on my previous comment?

  19. ammario commented on Aug 10, 2020

    @ammario
    Member

    We're going to continue holding off feature development here, preferring the script. We will continue to do bugfixes.

  20. Merith-TK commented on Aug 10, 2020

    @Merith-TK
    Contributor

    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

  21. added a commit that references this issue on Aug 10, 2020
  22. nhooyr commented on Aug 10, 2020

    @nhooyr
    ContributorAuthor

    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.

  23. added a commit that references this issue on Aug 10, 2020
  24. Merith-TK commented on Aug 10, 2020

    @Merith-TK
    Contributor

    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.

  25. likwid commented on Aug 19, 2020

    @likwid

    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.

  26. added 6 commits that reference this issue on Aug 21, 2020
    f611d67
    2dc53cf
    3d70736
    407e824
    8dffc23
    9be6d1b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy