diff --git a/doc/guide.md b/doc/guide.md index c336c565..e235a2a4 100644 --- a/doc/guide.md +++ b/doc/guide.md @@ -93,7 +93,6 @@ curl -fsSL https://code-server.dev/install.sh | sh Docs on the install script, manual installation and docker instructions are at [./doc/install.md](./doc/install.md). - ## 3. Expose code-server **Never**, **ever** expose `code-server` directly to the internet without some form of authentication diff --git a/doc/install.md b/doc/install.md index 20d6defd..bb012b9b 100644 --- a/doc/install.md +++ b/doc/install.md @@ -2,6 +2,7 @@ # Install +- [install.sh](#installsh) - [Debian, Ubuntu](#debian-ubuntu) - [Fedora, CentOS, RHEL, SUSE](#fedora-centos-rhel-suse) - [Arch Linux](#arch-linux) @@ -43,11 +44,13 @@ curl -fsSL https://code-server.dev/install.sh | sh - For Fedora, CentOS, RHEL, openSUSE it will install the latest rpm package. - For Arch Linux it will install the AUR package. - For any unrecognized Linux operating system it will install the latest static release into ~/.local - - Add ~/.local/bin to your $PATH to run code-server. + + - Add ~/.local/bin to your \$PATH to run code-server. - For macOS it will install the Homebrew package. + - If Homebrew is not installed it will install the latest static release into ~/.local - - Add ~/.local/bin to your $PATH to run code-server. + - Add ~/.local/bin to your \$PATH to run code-server. - If ran on an architecture with no binary releases, it will install the npm package with yarn or npm. - We only have binary releases for amd64 and arm64 presently. @@ -100,8 +103,8 @@ systemctl --user enable --now code-server We recommend installing with `yarn` or `npm` if: -1. We don't have a precompiled release for your machine's platform or architecture. -2. glibc < v2.17. +1. You aren't using `amd64` or `arm64`. +2. glibc < v2.17 **note:** Installing via `yarn` or `npm` builds native modules on install and so requires C dependencies. See [./doc/npm.md](./doc/npm.md) for installing these dependencies. @@ -161,4 +164,8 @@ docker run -it -p 127.0.0.1:8080:8080 \ codercom/code-server:latest ``` -You should also check out +Our official image supports `amd64` and `arm64`. + +For `arm32` support there is a highly popular community maintained alternative: + +https://hub.docker.com/r/linuxserver/code-server diff --git a/install.sh b/install.sh index e96d9c6c..0bb4d8f3 100755 --- a/install.sh +++ b/install.sh @@ -13,13 +13,12 @@ To use latest: curl -fsSL https://code-server.dev/install.sh | sh -s -- EOF - )"$"\n" + )"" +" fi cat << EOF Installs the latest code-server on Linux or macOS preferring to use the system package manager. -Lives at https://code-server.dev/install.sh - Usage: $cli [--dry-run] [--version X.X.X] [--static =~/.local]